/* Dalton Tims portfolio. Loaded after site.css (the starter kit's stylesheet, copied unchanged).
   Part 1 sets the kit's "modern-minimal" preset as plain CSS, because this page is static and does not use the kit's site.js.
   Part 2 is this page's own parts. */

/* ---------- 1. The modern-minimal preset ---------- */
:root {
  --sk-bg: #ffffff;
  --sk-surface: #f4f5f7;
  --sk-text: #0f1115;
  --sk-muted: #5b616e;
  --sk-line: rgba(15, 17, 21, .12);
  --sk-accent: #2f5bff;
  --sk-accent-hover: #1f47e0;
  --sk-accent-text: #ffffff;
  --sk-font-heading: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sk-font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sk-heading-case: none;
  --sk-heading-weight: 600;
  --sk-heading-spacing: -.035em;
  --sk-heading-line: 1;
  --sk-heading-scale: 1.05;
  --sk-radius: 2px;
  --sk-btn-radius: 2px;
  --sk-btn-case: none;
  --sk-btn-weight: 600;
  --sk-btn-spacing: 0;
  --sk-btn-size: 1rem;
  --sk-btn-font: var(--sk-font-body);
  --sk-section-space: 120px;
  --sk-hero-height: auto;
}

/* ---------- 2. This page ---------- */
/* No phone action bar on this page, so the footer does not need room for one */
.sk-footer { padding-bottom: 36px; }
.sk-footer a { display: inline-block; padding: 10px 0; color: var(--sk-text); text-underline-offset: 3px; }
.sk-hero-plain .sk-h1 { font-size: calc(clamp(2.5rem, 11vw, 5.6rem) * var(--sk-heading-scale)); }

/* Main case study: photo, then the name, points and a small before/after slider */
.pf-case { display: grid; gap: 24px; margin-top: 28px; padding: 16px; background: var(--sk-surface); border: 1px solid var(--sk-line); border-radius: var(--sk-radius); }
.pf-case-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--sk-radius); }
.pf-case-body { min-width: 0; }
.pf-case-title { margin: 0; font-size: clamp(1.5rem, 5.6vw, 2.1rem); line-height: 1.08; }
.pf-case .sk-points { color: var(--sk-text); }

.pf-compare-wrap { max-width: 420px; margin: 24px 0 0; }
.pf-compare-wrap figcaption { margin-top: 8px; color: var(--sk-muted); font-size: .88rem; }
.pf-compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0f1115;
  border-radius: var(--sk-radius);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.pf-photo { position: absolute; inset: 0; }
.pf-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
/* Both photos fill the same 4:3 frame; the --fit-* values on each one line the two shots up */
.pf-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--fit-pos, 50% 50%);
  transform: scale(var(--fit-zoom, 1));
  transform-origin: var(--fit-origin, 50% 50%);
  pointer-events: none;
}
.pf-tag { position: absolute; top: 8px; padding: 3px 9px; background: rgba(0, 0, 0, .78); color: #fff; border-radius: 2px; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pf-before .pf-tag { left: 8px; }
.pf-after .pf-tag { right: 8px; }
.pf-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); display: flex; align-items: center; justify-content: center; width: 44px; margin-left: -22px; }
.pf-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #fff; }
.pf-knob { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--sk-accent); color: var(--sk-accent-text); border-radius: 50%; font-size: 1.15rem; box-shadow: 0 2px 10px rgba(0, 0, 0, .4); }

/* Concept sites: four small linked cards */
.pf-concepts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.pf-concept { display: block; height: 100%; padding: 8px 8px 12px; background: var(--sk-bg); border: 1px solid var(--sk-line); border-radius: var(--sk-radius); text-decoration: none; transition: border-color .18s ease; }
.pf-concept:hover { border-color: var(--sk-accent); }
.pf-concept img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border: 1px solid var(--sk-line); border-radius: var(--sk-radius); }
.pf-concept-label { display: block; margin-top: 10px; color: var(--sk-muted); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.pf-concept-name { display: block; font-family: var(--sk-font-heading); font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.pf-concept-name::after { content: " \2197"; color: var(--sk-accent); }

/* How it works: three numbered steps */
.pf-steps { display: grid; gap: 0; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: pf-step; }
.pf-steps li { counter-increment: pf-step; padding: 20px 0; border-top: 1px solid var(--sk-line); font-family: var(--sk-font-heading); font-size: clamp(1.3rem, 5vw, 1.7rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.pf-steps li::before { content: counter(pf-step); display: block; margin-bottom: 10px; color: var(--sk-accent); font-family: var(--sk-font-body); font-size: .85rem; font-weight: 600; letter-spacing: .08em; }

/* Pricing: three plan cards, stacked on phones and side by side from 900px. The middle one is highlighted. */
.pf-plans { display: grid; gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.pf-plan { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 28px 20px 20px; background: var(--sk-bg); border: 1px solid var(--sk-line); border-radius: var(--sk-radius); }
.pf-plan-top { border: 2px solid var(--sk-accent); padding: 27px 19px 19px; }
.pf-plan-flag { position: absolute; top: 0; left: 19px; margin: 0; padding: 4px 10px; background: var(--sk-accent); color: var(--sk-accent-text); border-radius: var(--sk-radius); font-size: .72rem; font-weight: 600; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; transform: translateY(-50%); }
.pf-plan-name { margin: 0; color: var(--sk-muted); font-family: var(--sk-font-body); font-size: .85rem; font-weight: 600; letter-spacing: .1em; line-height: 1.3; text-transform: uppercase; }
.pf-plan-top .pf-plan-name { color: var(--sk-accent); }
.pf-plan-price { margin: 10px 0 0; font-family: var(--sk-font-heading); font-size: clamp(1.45rem, 6vw, 1.7rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.pf-plan .sk-points { margin-bottom: 24px; padding-top: 18px; border-top: 1px solid var(--sk-line); }
.pf-plan-btn { width: 100%; margin-top: auto; }
.pf-plans-note {margin: 24px 0 0; color: var(--sk-muted); }
.pf-plans-note a { display: inline-block; padding: 10px 0; color: var(--sk-text); font-weight: 600; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .pf-concept { transition: none; }
}

@media (min-width: 900px) {
  .pf-case { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 40px; padding: 32px; }
  .pf-concepts { grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
  .pf-steps { grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; }
  .pf-steps li { padding: 24px 0 0; }
  .pf-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
  .pf-plan { padding: 32px 24px 24px; }
  .pf-plan-top { padding: 31px 23px 23px; }
  .pf-plan-flag { left: 23px; }
}
