/* ==========================================================================
   dylanhstein.com
   Geist, one amber accent, dark first. Motion lives at the bottom of the file.
   ========================================================================== */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens: dark (default) ---------- */
:root {
  color-scheme: dark;
  --bg: #0B0B0C;
  --s1: #121214;
  --s2: #18181B;
  --ink: #F5F4F2;
  --ink-2: #A3A3A8;
  --ink-3: #85858B;
  --ink-fade: #B4B3B0;
  --accent: #F7B538;
  --accent-text: #F7B538;
  --on-accent: #1A1306;
  --accent-soft: rgb(247 181 56 / 0.14);
  --hair: rgb(255 255 255 / 0.08);
  --hair-strong: rgb(255 255 255 / 0.14);
  --wash: rgb(255 255 255 / 0.06);
  --wash-2: rgb(255 255 255 / 0.1);
  --ring: 0 0 0 1px rgb(255 255 255 / 0.075);
  --ring-hover: 0 0 0 1px rgb(255 255 255 / 0.14);
  --card-sheen: linear-gradient(180deg, rgb(255 255 255 / 0.035), rgb(255 255 255 / 0) 55%);
  --lift-shadow: 0 30px 80px -24px rgb(0 0 0 / 0.7);
  --image-outline: rgb(255 255 255 / 0.1);
  --glow: rgb(247 181 56 / 0.16);
  --placeholder: #1E1E22;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-enter: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: clamp(1.25rem, 0.6rem + 2.8vw, 2.5rem);
  --nav-h: 64px;
  --r-card: 22px;
  --r-inner: 14px;
}

/* ---------- Tokens: light ---------- */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #FAFAFA;
    --s1: #FFFFFF;
    --s2: #F4F4F5;
    --ink: #111113;
    --ink-2: #57575E;
    --ink-3: #6B6B72;
    --ink-fade: #45454B;
    --accent: #F7B538;
    --accent-text: #9A5800;
    --accent-soft: rgb(247 181 56 / 0.2);
    --hair: rgb(0 0 0 / 0.08);
    --hair-strong: rgb(0 0 0 / 0.14);
    --wash: rgb(0 0 0 / 0.05);
    --wash-2: rgb(0 0 0 / 0.08);
    --ring: 0 0 0 1px rgb(0 0 0 / 0.07), 0 1px 2px -1px rgb(0 0 0 / 0.06), 0 2px 4px 0 rgb(0 0 0 / 0.03);
    --ring-hover: 0 0 0 1px rgb(0 0 0 / 0.1), 0 4px 12px -2px rgb(0 0 0 / 0.08), 0 2px 4px 0 rgb(0 0 0 / 0.05);
    --card-sheen: linear-gradient(180deg, rgb(255 255 255 / 0), rgb(255 255 255 / 0));
    --lift-shadow: 0 30px 70px -28px rgb(17 17 19 / 0.35);
    --image-outline: rgb(0 0 0 / 0.1);
    --glow: rgb(247 181 56 / 0.22);
    --placeholder: #D9D9DD;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #FAFAFA;
  --s1: #FFFFFF;
  --s2: #F4F4F5;
  --ink: #111113;
  --ink-2: #57575E;
  --ink-3: #6B6B72;
  --ink-fade: #45454B;
  --accent: #F7B538;
  --accent-text: #9A5800;
  --accent-soft: rgb(247 181 56 / 0.2);
  --hair: rgb(0 0 0 / 0.08);
  --hair-strong: rgb(0 0 0 / 0.14);
  --wash: rgb(0 0 0 / 0.05);
  --wash-2: rgb(0 0 0 / 0.08);
  --ring: 0 0 0 1px rgb(0 0 0 / 0.07), 0 1px 2px -1px rgb(0 0 0 / 0.06), 0 2px 4px 0 rgb(0 0 0 / 0.03);
  --ring-hover: 0 0 0 1px rgb(0 0 0 / 0.1), 0 4px 12px -2px rgb(0 0 0 / 0.08), 0 2px 4px 0 rgb(0 0 0 / 0.05);
  --card-sheen: linear-gradient(180deg, rgb(255 255 255 / 0), rgb(255 255 255 / 0));
  --lift-shadow: 0 30px 70px -28px rgb(17 17 19 / 0.35);
  --image-outline: rgb(0 0 0 / 0.1);
  --glow: rgb(247 181 56 / 0.22);
  --placeholder: #D9D9DD;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "liga" 1;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
cite { font-style: italic; }
.num { font-variant-numeric: tabular-nums; }
.sprite { position: absolute; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { width: 100%; max-width: 75rem; margin-inline: auto; padding-inline: var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: -999px; inset-block-start: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 0.9375rem;
}
.skip-link:focus { inset-inline-start: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; padding: 0 20px 0 18px; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { flex-shrink: 0; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hair-strong); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 0.875rem; }
.btn-lg { height: 50px; padding: 0 24px 0 22px; font-size: 1rem; }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: color-mix(in oklab, var(--ink) 86%, var(--bg)); transform: translateY(-1px); }
  .btn-ghost:hover { background: var(--wash); border-color: var(--hair-strong); transform: translateY(-1px); }
  .btn:hover:active { transform: translateY(0) scale(0.97); }
}

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  border: 0; background: transparent; color: var(--ink-2); cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.icon-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--wash); color: var(--ink); } }

.i-moon { display: none; }
:root[data-theme="light"] .i-sun { display: none; }
:root[data-theme="light"] .i-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .i-sun { display: none; }
  :root:not([data-theme="dark"]) .i-moon { display: block; }
}

/* ---------- Tags and chips ---------- */
.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px;
  background: var(--wash); color: var(--ink-2); font-size: 0.75rem; font-weight: 500; white-space: nowrap;
}
.tag-accent { background: var(--accent-soft); color: var(--accent-text); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease;
}
.nav.is-scrolled {
  background: color-mix(in oklab, var(--bg) 74%, transparent);
  border-bottom-color: var(--hair);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.975rem; letter-spacing: -0.015em; margin-inline-end: auto; padding: 6px 4px; margin-inline-start: -4px; }
.mark { color: var(--ink); }
.mark-dot { fill: var(--accent); }
.nav-links { display: none; gap: 2px; }
.nav-links a {
  display: inline-block; padding: 8px 12px; border-radius: 999px;
  font-size: 0.875rem; color: var(--ink-2); transition: color 160ms ease, background-color 160ms ease;
}
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--ink); background: var(--wash); } }
.nav-actions { display: flex; align-items: center; gap: 6px; }
@media (min-width: 52rem) {
  .nav-links { display: flex; }
  .brand { margin-inline-end: 0; }
  nav[aria-label="Sections"] { margin-inline: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow-x: clip; }
.hero-visual::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -38% -45%;
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
}
.hero-grid {
  display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center;
  padding-block: clamp(2.5rem, 7vw, 5rem) clamp(4rem, 9vw, 7rem);
  min-height: min(calc(100svh - var(--nav-h)), 60rem);
}
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 13px 6px 11px; border-radius: 999px;
  background: color-mix(in oklab, var(--s1) 70%, transparent);
  box-shadow: var(--ring);
  font-size: 0.8125rem; font-weight: 500; color: var(--ink-2);
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hero-title {
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
  font-size: clamp(3.25rem, 1.4rem + 7vw, 6.75rem);
  font-weight: 600; letter-spacing: -0.048em; line-height: 0.98;
}
.line { display: block; overflow: clip; padding-bottom: 0.1em; margin-bottom: -0.1em; padding-inline-end: 0.06em; }
.line > span {
  display: inline-block;
  background: linear-gradient(180deg, var(--ink) 38%, var(--ink-fade));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede {
  margin-top: clamp(1.25rem, 2.6vw, 1.75rem); max-width: 36ch;
  font-size: clamp(1.125rem, 1rem + 0.55vw, 1.375rem); line-height: 1.5; color: var(--ink-2);
  letter-spacing: -0.01em; text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }

.hero-visual {
  position: relative; width: min(100%, 31rem); aspect-ratio: 520 / 600; justify-self: center;
}
.track { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.track .lane, .mini-track .lane { fill: none; stroke: var(--hair-strong); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.track .finish, .mini-track .finish { stroke: color-mix(in oklab, var(--ink) 45%, transparent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.comet {
  fill: none; stroke: var(--accent); stroke-width: 4.5; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 0 1000; opacity: 0; filter: drop-shadow(0 0 6px rgb(247 181 56 / 0.7));
}
.runner { fill: var(--accent); transform-box: fill-box; transform-origin: center; }
.portrait {
  position: absolute; left: 21.15%; top: 18.67%; width: 57.7%;
  border-radius: 26px; overflow: hidden; background: var(--placeholder);
  box-shadow: var(--lift-shadow), var(--ring);
}
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.portrait::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--image-outline);
}

@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .hero-visual { justify-self: end; }
}

/* ---------- About: the scroll moment ---------- */
.about { padding-block: clamp(3rem, 10vw, 10rem) clamp(4rem, 10vw, 10rem); }
.lit {
  max-width: 26em;
  font-size: clamp(1.625rem, 0.95rem + 2.7vw, 3rem);
  font-weight: 500; letter-spacing: -0.032em; line-height: 1.2; color: var(--ink);
  text-wrap: pretty;
}
.classes { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.label { font-size: 0.8125rem; font-weight: 500; color: var(--ink-3); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 7px 13px; border-radius: 999px; background: var(--s1); box-shadow: var(--ring);
  font-size: 0.875rem; color: var(--ink-2);
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.sh {
  max-width: 26ch; margin-bottom: clamp(2rem, 4.5vw, 3.5rem);
  font-size: clamp(2rem, 1.25rem + 2.8vw, 3.375rem);
  font-weight: 600; letter-spacing: -0.038em; line-height: 1.06; color: var(--ink);
  text-wrap: balance;
}
.sh span { color: var(--ink-3); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 45rem) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
  .span-4, .span-5, .span-7 { grid-column: span 6; }
  .span-12 { grid-column: 1 / -1; }
  .bento > .card-small { grid-column: 1 / -1; }
  .bento-lead > .card { grid-column: 1 / -1; }
}
@media (min-width: 64rem) {
  .span-4 { grid-column: span 4; }
  .span-5 { grid-column: span 5; }
  .span-7 { grid-column: span 7; }
  .bento > .card-small { grid-column: span 4; }
  .bento-lead > .span-7 { grid-column: span 7; }
  .bento-lead > .span-5 { grid-column: span 5; }
  .bento-lead > .span-12 { grid-column: 1 / -1; }
}

.card {
  position: relative; display: flex; flex-direction: column;
  padding: 8px; border-radius: var(--r-card);
  background: var(--card-sheen), var(--s1);
  border: 1px solid transparent; box-shadow: var(--ring);
  transition: transform 260ms var(--ease-out), box-shadow 220ms ease;
}
.viz {
  position: relative; display: grid; place-items: center; overflow: hidden;
  min-height: 15rem; border-radius: var(--r-inner); background: var(--s2);
}
.card-body { padding: 18px 14px 14px; }
.card-body h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.card-body p { margin-top: 6px; max-width: 54ch; font-size: 0.9375rem; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }

/* Linked card: the whole card is the hit area, it lifts 2px */
.card-link .stretch { display: inline-flex; align-items: center; gap: 6px; }
.card-link .stretch svg { color: var(--ink-3); transition: transform 200ms var(--ease-out), color 200ms ease; }
.card-link .stretch::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.card-link .stretch:focus-visible { outline: none; }
.card-link:has(.stretch:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .card-link:hover { transform: translateY(-2px); box-shadow: var(--ring-hover); }
  .card-link:hover .stretch svg { transform: translate(2px, -2px); color: var(--ink); }
  .card-link:hover .window { transform: translateY(-4px); }
}

/* Photos */
.photo { padding: 0; overflow: hidden; background: var(--placeholder); }
.photo img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: inherit; }
.photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--image-outline); pointer-events: none; }
@media (min-width: 64rem) { .photo-wide img { aspect-ratio: 21 / 8; } }

/* Track card */
.viz-track { aspect-ratio: 600 / 300; min-height: 0; padding: 7% 8%; }
.mini-track { width: 100%; height: auto; overflow: visible; }
.mile { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.mile-time { font-size: clamp(2.75rem, 1.6rem + 4vw, 4.5rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.mile-label { margin-top: 8px; font-size: 0.8125rem; font-weight: 500; color: var(--ink-3); }

/* Case file card */
.viz-case { padding: 22px; }
.doc { width: min(100%, 21rem); padding: 14px 14px 12px; border-radius: 12px; background: var(--s1); box-shadow: var(--ring); }
.doc-head { display: flex; align-items: center; gap: 10px; padding: 2px 2px 12px; color: var(--ink-3); }
.doc-title { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.doc-head .tag { margin-inline-start: auto; }
.doc-rows li {
  display: flex; align-items: center; gap: 10px; padding: 10px 2px;
  border-top: 1px solid var(--hair); font-size: 0.875rem; color: var(--ink-2);
}
.tick { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); flex-shrink: 0; }
.doc-foot { margin-top: 6px; padding: 8px 2px 0; border-top: 1px solid var(--hair); font-size: 0.75rem; color: var(--ink-3); }

/* Basketball */
.viz-ball { color: var(--ink-3); min-height: 11rem; }

/* Roles card */
.viz-roles { place-items: stretch; padding: 8px; }
.roles { display: grid; align-content: center; }
.roles li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name tag" "role tag";
  align-items: center; column-gap: 12px; padding: 12px 12px; border-bottom: 1px solid var(--hair);
}
.roles li:last-child { border-bottom: 0; }
.r-name { grid-area: name; font-size: 0.9375rem; font-weight: 500; color: var(--ink); }
.r-role { grid-area: role; font-size: 0.8125rem; color: var(--ink-3); }
.roles .tag { grid-area: tag; justify-self: end; }
@media (min-width: 40rem) {
  .roles li { grid-template-columns: minmax(0, 1fr) 8.5rem 6.5rem; grid-template-areas: "name role tag"; }
}

/* High School Heroes */
.viz-heroes { place-items: start; align-content: center; gap: 12px; padding: 26px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 500; color: var(--accent-text); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.heroes-title { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.lessons { display: flex; flex-wrap: wrap; gap: 8px; }
.lessons li { padding: 6px 12px; border-radius: 999px; background: var(--s1); box-shadow: var(--ring); font-size: 0.8125rem; color: var(--ink-2); }
.heroes-foot { font-size: 0.8125rem; color: var(--ink-3); }

/* Browser card */
.viz-browser { align-items: end; padding: 22px 22px 0; }
.window {
  width: 100%; border-radius: 12px 12px 0 0; overflow: hidden; background: var(--s1);
  box-shadow: var(--ring); transition: transform 320ms var(--ease-out);
}
.window-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--hair); }
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--wash-2); }
.url { margin-inline: auto; padding: 3px 10px; border-radius: 6px; background: var(--wash); font-size: 0.75rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window-body { padding: 18px 18px 22px; }
.sk { display: block; height: 10px; border-radius: 6px; background: var(--wash); }
.sk-title { width: 52%; height: 16px; margin-bottom: 12px; background: var(--wash-2); }
.sk-line { width: 86%; margin-bottom: 8px; }
.sk-line.short { width: 62%; }
.features { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.features li {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 6px 9px; border-radius: 999px;
  background: var(--s2); box-shadow: var(--ring); font-size: 0.8125rem; color: var(--ink-2);
}
.features svg { color: var(--accent-text); }
.launch { display: grid; gap: 8px; margin-top: 20px; }
.launch-label { font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); }
.launch-bar { display: block; height: 6px; border-radius: 999px; background: var(--wash); overflow: hidden; }
.launch-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in oklab, var(--accent) 55%, transparent), var(--accent)); transform-origin: 0 50%; }

/* Podium */
.viz-podium { padding: 28px 24px 0; align-items: end; }
.podium { display: flex; align-items: flex-end; gap: 10px; height: 11.5rem; }
.step { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; width: 4.25rem; height: 100%; }
.step span { font-size: 0.8125rem; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.step i { display: block; width: 100%; border-radius: 10px 10px 0 0; background: var(--wash-2); transform-origin: 50% 100%; }
.s1 i { height: 82%; }
.s2 i { height: 62%; }
.s3 i { height: 44%; background: linear-gradient(180deg, var(--accent), color-mix(in oklab, var(--accent) 60%, transparent)); }
.s3 span { color: var(--accent-text); font-weight: 600; }

/* Credtent */
.viz-credtent {
  display: grid; grid-template-columns: minmax(0, 1fr) 4.5rem; grid-template-areas: "search reel" "results reel";
  place-items: stretch; align-content: center; gap: 14px; padding: 28px;
}
.search { grid-area: search; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--s1); box-shadow: var(--ring); color: var(--ink-3); }
.sk-search { width: 64%; }
.results { grid-area: results; display: grid; gap: 9px; padding-inline: 4px; }
.results .sk:nth-child(1) { width: 78%; }
.results .sk:nth-child(2) { width: 94%; }
.results .sk:nth-child(3) { width: 66%; }
.results .hit { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.reel {
  grid-area: reel; align-self: center; display: grid; place-items: center; aspect-ratio: 9 / 16; border-radius: 12px;
  background: var(--s1); box-shadow: var(--ring); color: var(--ink-2);
}

/* Also list */
.card-body-list { padding: 18px 16px 10px; }
.also { margin-top: 8px; }
.also li { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid var(--hair); font-size: 0.9375rem; color: var(--ink-2); line-height: 1.5; }
.also li:first-child { border-top: 0; }
.also svg { flex-shrink: 0; margin-top: 2px; color: var(--ink-3); }
.also strong { color: var(--ink); font-weight: 600; }

/* How I build */
.card-how { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 28px; }
.how-copy { max-width: 58ch; }
.how-copy h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; }
.how-copy p { margin-top: 6px; color: var(--ink-2); font-size: 0.9375rem; }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.soon {
  --spin: 200deg;
  padding: 1px; border-radius: 999px;
  background: conic-gradient(from var(--spin), var(--hair-strong) 0deg, var(--accent) 60deg, var(--hair-strong) 120deg, var(--hair-strong) 360deg);
}
.soon-inner { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 14px; border-radius: 999px; background: var(--s1); font-size: 0.9375rem; font-weight: 500; }
.soon-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- Off the clock: the shelf ---------- */
.shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 16px); }
.film {
  position: relative; display: flex; align-items: flex-end; aspect-ratio: 4 / 5; overflow: hidden; min-width: 0;
  padding: clamp(10px, 1.6vw, 20px); border-radius: clamp(12px, 1.6vw, 20px);
  color: #F5F4F2; background: #141416;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.07);
}
.film::before { content: ""; position: absolute; inset: 0; background: var(--tint); }
.film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgb(0 0 0 / 0.55)); }
.film cite {
  position: relative; z-index: 1; font-style: normal;
  font-size: clamp(0.9375rem, 0.6rem + 1.35vw, 1.625rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05;
  text-wrap: balance;
}
.f1 { --tint: radial-gradient(120% 90% at 20% 0%, rgb(232 160 64 / 0.35), transparent 60%); }
.f2 { --tint: radial-gradient(120% 90% at 80% 0%, rgb(84 150 96 / 0.32), transparent 60%); }
.f3 { --tint: radial-gradient(110% 80% at 50% 0%, rgb(110 130 170 / 0.32), transparent 62%); }
.f4 { --tint: radial-gradient(90% 60% at 50% 100%, rgb(245 170 70 / 0.38), transparent 70%), radial-gradient(60% 40% at 50% 30%, rgb(0 0 0 / 0.6), transparent); }
.f5 { --tint: radial-gradient(120% 90% at 30% 0%, rgb(90 135 140 / 0.32), transparent 60%); }
.f6 { --tint: radial-gradient(120% 90% at 70% 10%, rgb(170 140 110 / 0.3), transparent 60%); }
.f7 { --tint: radial-gradient(120% 90% at 50% 0%, rgb(150 150 80 / 0.28), transparent 60%); }
.f8 { --tint: radial-gradient(120% 90% at 20% 0%, rgb(120 150 200 / 0.3), transparent 60%); }
.f9 { --tint: radial-gradient(120% 90% at 80% 0%, rgb(120 130 145 / 0.32), transparent 60%); }

@media (min-width: 45rem) {
  .film { aspect-ratio: 2 / 1; }
  .film cite { font-size: clamp(1rem, 0.55rem + 1vw, 1.375rem); }
}

/* ---------- Experience ---------- */
.xp { border-top: 1px solid var(--hair); }
.xp li { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--hair); }
.xp h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; }
.xp p { margin-top: 4px; max-width: 60ch; font-size: 0.9375rem; color: var(--ink-2); }
.note { margin-top: 20px; font-size: 0.875rem; color: var(--ink-3); }

/* ---------- Contact ---------- */
.contact-section { padding-bottom: clamp(4rem, 8vw, 6rem); }
.contact {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(2rem, 6vw, 4.5rem); border-radius: 28px;
  background: var(--card-sheen), var(--s1); box-shadow: var(--ring);
}
.contact-glow {
  position: absolute; z-index: -1; pointer-events: none;
  top: -60%; left: -10%; width: 80%; aspect-ratio: 1.6;
  background: radial-gradient(closest-side, var(--glow), transparent 75%);
}
.contact .sh { margin-bottom: 0; max-width: 18ch; }
.contact-copy { margin-top: 18px; max-width: 46ch; font-size: 1.0625rem; color: var(--ink-2); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 28px; font-size: 0.9375rem; }
.contact-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); padding: 6px 0; transition: color 160ms ease; }
.contact-links .muted { color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .contact-links a:hover { color: var(--ink); } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hair); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 28px 36px; font-size: 0.8125rem; color: var(--ink-3); }
.footer .brand { color: var(--ink); font-size: 0.9375rem; }

/* ---------- 404 ---------- */
.lost-main { min-height: 100svh; display: grid; align-content: center; justify-items: start; padding-block: 4rem; }
.lost-track { width: min(100%, 26rem); margin-bottom: 2.75rem; overflow: visible; }
.lost-track .lane { fill: none; stroke: var(--hair-strong); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.lost-title { font-size: clamp(3rem, 1.6rem + 6vw, 5.5rem); font-weight: 600; letter-spacing: -0.048em; line-height: 0.98; }
.lost-copy { margin-top: 1.25rem; max-width: 40ch; font-size: 1.125rem; color: var(--ink-2); }
.lost-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2rem; }

/* ==========================================================================
   Motion
   Everything here sits behind no-preference. The resting state above is the
   finished state, so without JS or with reduced motion nothing is hidden.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  /* Hero entrance: the headline rises out of its mask, then the rest follows */
  .pill { animation: fade-up 620ms var(--ease-enter) 40ms both; }
  .line > span { animation: rise 900ms var(--ease-enter) 120ms both; }
  .hero-lede { animation: fade-up 620ms var(--ease-enter) 420ms both; }
  .hero-actions { animation: fade-up 620ms var(--ease-enter) 500ms both; }
  .portrait img { animation: settle 1400ms var(--ease-enter) both; }
  .hero-visual .track { animation: fade-in 900ms ease 120ms both; }

  /* One lap: the amber dot runs the outer lane once, then rests at the line */
  .hero-visual .comet { animation: lap 2300ms cubic-bezier(0.55, 0.05, 0.3, 1) 600ms both; }
  .hero-visual .runner { animation: arrive 500ms var(--ease-out) 2750ms both; }

  /* Card stories: play once when the card first comes into view */
  .stories-ready .story:not(.is-in) .tick,
  .stories-ready .story:not(.is-in) .launch-bar i,
  .stories-ready .story:not(.is-in) .step i { visibility: hidden; }
  .story.is-in .tick { animation: pop 420ms var(--ease-out) both; }
  .story.is-in li:nth-child(1) .tick { animation-delay: 150ms; }
  .story.is-in li:nth-child(2) .tick { animation-delay: 380ms; }
  .story.is-in li:nth-child(3) .tick { animation-delay: 610ms; }
  .story.is-in .launch-bar i { animation: fill 1600ms var(--ease-io) 250ms both; }
  .story.is-in .step i { animation: grow 900ms var(--ease-enter) both; }
  .story.is-in .s2 i { animation-delay: 100ms; }
  .story.is-in .s1 i { animation-delay: 220ms; }
  .story.is-in .s3 i { animation-delay: 420ms; }
  .story.is-in .mini-track .comet { animation: lap 1900ms cubic-bezier(0.55, 0.05, 0.3, 1) 200ms both; }
  .story.is-in .mini-track .runner { animation: arrive 500ms var(--ease-out) 2050ms both; }

  /* The teaser's border makes one slow pass when seen, and again on hover */
  .card-how.is-in .soon,
  .card-how:hover .soon { animation: spin 2600ms var(--ease-io) both; }

  /* 404: the runner drifts off the lane */
  .lost-runner { animation: veer 1400ms var(--ease-enter) 300ms both; }

  /* Theme switch: a circle grows from the toggle */
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
  .theme-switching::view-transition-new(root) { animation: theme-reveal 560ms var(--ease-out); }
}

/* About: words light up as the paragraph scrolls through (scroll-driven) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .about { view-timeline: --about block; }
    .lit .w {
      color: var(--ink-3);
      animation: light-up linear both;
      animation-timeline: --about;
      animation-range: cover calc(14% + var(--p) * 36%) cover calc(20% + var(--p) * 36%);
    }
  }
}

@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes settle { from { transform: scale(1.045); } }
@keyframes lap {
  0% { opacity: 1; stroke-dasharray: 90 910; stroke-dashoffset: 90; }
  92% { opacity: 1; }
  100% { opacity: 0; stroke-dasharray: 90 910; stroke-dashoffset: -910; }
}
@keyframes veer { from { transform: translate(-260px, -225px); } }
@keyframes arrive { from { transform: scale(0); opacity: 0; } }
@keyframes pop { from { transform: scale(0.4); opacity: 0; visibility: visible; } to { visibility: visible; } }
@keyframes fill { from { transform: scaleX(0); visibility: visible; } to { visibility: visible; } }
@keyframes grow { from { transform: scaleY(0); visibility: visible; } to { visibility: visible; } }
@keyframes spin { from { --spin: 200deg; } to { --spin: 920deg; } }
@keyframes light-up { to { color: var(--ink); } }
@keyframes theme-reveal {
  from { clip-path: circle(0 at var(--vt-x, 100%) var(--vt-y, 0)); }
  to { clip-path: circle(var(--vt-r, 150vmax) at var(--vt-x, 100%) var(--vt-y, 0)); }
}

@media print {
  .nav, .hero-glow, .contact-glow { display: none; }
  body { background: #fff; color: #000; }
}
