/* ============================================================
   CACHE VERSION: v1
   Bump this on every change AND match it in the ?v= number on the
   <link>/<script> tags in all .html files. That query-string bump is
   what actually forces phones/browsers to pull the fresh files.
   (Reset to v1 once the site is live on GitHub.)
   ============================================================ */

/* ============================================================
   HOME OS  ·  theme tokens
   Source of truth: claude's-outputs/design-system.html
   ============================================================ */
:root {
  /* base sky, top -> bottom  ·  Option A darkened 75% (lightness x0.25, blue kept) */
  --sky-top:    oklch(4.75% 0.14 264);
  --sky-mid:    oklch(2.88% 0.085 266);
  --sky-deep:   oklch(1.5% 0.035 268);

  /* stars */
  --star-cool:  oklch(88.2% 0.0574 275.4);
  --star-warm:  oklch(96.6% 0.04 88.2);
  --star-pure:  oklch(100% 0 0);

  /* surfaces + ink */
  --surface:      oklch(18% 0.055 272);
  --surface-hi:   oklch(21% 0.06 272);
  --panel:        oklch(16% 0.05 272);
  --card:         oklch(13.5% 0.045 272);
  --hairline:     oklch(26% 0.055 272);
  --hairline-soft:oklch(26% 0.055 272 / 0.55);
  --text:         oklch(87% 0.016 272);
  --muted:        oklch(57% 0.046 272);

  /* amber accent */
  --accent:        oklch(70% 0.162 65);
  --accent-bright: oklch(77% 0.162 65);
  --accent-deep:   oklch(50% 0.162 65);
  --btn-ink:       oklch(20% 0.05 65);

  /* lifted amber: the ramp floor sits at 66% lightness, or the tail sinks into the sky.
     one source for every gradient-text title (.page-title, .grad). */
  --title-lift: oklch(84% 0.145 78);
  --title-base: oklch(66% 0.165 55);
  --title-ramp: linear-gradient(96deg,
    var(--title-lift) 0%,
    var(--accent-bright) 46%,
    var(--title-base) 100%);

  /* orange accent — alpha variants (single source for the amber; each alpha is a distinct value) */
  --accent-a0:         oklch(70% 0.162 65 / 0);
  --accent-a06:        oklch(70% 0.162 65 / 0.06);
  --accent-a08:        oklch(70% 0.162 65 / 0.08);
  --accent-a10:        oklch(70% 0.162 65 / 0.1);
  --accent-a12:        oklch(70% 0.162 65 / 0.12);
  --accent-a14:        oklch(70% 0.162 65 / 0.14);
  --accent-a30:        oklch(70% 0.162 65 / 0.3);
  --accent-a32:        oklch(70% 0.162 65 / 0.32);
  --accent-a35:        oklch(70% 0.162 65 / 0.35);
  --accent-a38:        oklch(70% 0.162 65 / 0.38);
  --accent-a40:        oklch(70% 0.162 65 / 0.4);
  --accent-a42:        oklch(70% 0.162 65 / 0.42);
  --accent-a50:        oklch(70% 0.162 65 / 0.5);
  --accent-a55:        oklch(70% 0.162 65 / 0.55);
  --accent-a90:        oklch(70% 0.162 65 / 0.9);
  --accent-bright-a0:  oklch(77% 0.162 65 / 0);
  --accent-bright-a50: oklch(77% 0.162 65 / 0.5);

  /* white / neutral translucents */
  --transparent:       oklch(0% 0 0 / 0);
  --white-a03:         oklch(100% 0 0 / 0.03);
  --white-a40:         oklch(100% 0 0 / 0.4);
  --btn-ghost-fill:    oklch(80% 0.05 70 / 0.04);

  /* translucent surface fills (form fields, footer, chips, step dots) */
  --surface-glass:     oklch(18% 0.035 272 / 0.6);
  --surface-glass-hi:  oklch(18% 0.035 272 / 0.85);
  --placeholder:       oklch(62% 0.02 272);

  /* deep blue-black drop-shadow ink (alpha variants) */
  --shadow-ink-a35:    oklch(8.9% 0.042 267.9 / 0.35);
  --shadow-ink-a40:    oklch(8.9% 0.042 267.9 / 0.4);

  /* success / live green */
  --success-a16:       oklch(62% 0.16 150 / 0.16);
  --success-border:    oklch(72% 0.17 150);
  --success-stroke:    oklch(82% 0.18 150);
  --live-green:        oklch(72% 0.19 149);

  /* editorial ghost numeral watermark */
  --numeral-ghost:     oklch(72% 0.16 55 / 0.14);

  /* bento + feature tile fills (reused across pages) */
  --tile-blue-top:     oklch(15% 0.06 272);
  --tile-blue-bot:     oklch(12% 0.055 272);
  --tile-feature-top:  oklch(16% 0.07 65);
  --tile-feature-bot:  oklch(10% 0.06 65);

  /* type. One token per role, so a typeface swap is a one-line edit.
     Space Grotesk tops out at 700: never ask it for 800, or the browser
     fakes the weight and the headings go muddy. */
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --radius: 10px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 16px 40px var(--shadow-ink-a40);
  --shadow-lift: 0 26px 60px oklch(8.9% 0.042 267.9 / 0.62);
  --edge-light: inset 0 1px 0 oklch(100% 0 0 / 0.05);
}

/* ============================================================
   BASE / LAYOUT  ·  reset, page background, content wrapper
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }
/* smooth anchor jumps, offset so sections clear the sticky nav */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  /* deep sky colour on the root too: fills the phone's overscroll bounce and the
     browser-bar zones, so there are no white bands top or bottom. */
  background: var(--sky-deep);
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga" 1, "calt" 1;
}

/* the sky gradient, pinned as a full-screen layer behind everything.
   done as a fixed layer (NOT background-attachment: fixed) because iOS Safari
   ignores that property and stretches the gradient down the whole page, so the
   phone only ever showed the light top. this renders the same on every device. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    /* soft glow up top */
    radial-gradient(ellipse 120% 80% at 50% -20%,
      oklch(15.15% 0.1361 276.7 / 0.14) 0%, oklch(15.15% 0.1361 276.7 / 0) 55%),
    /* deep vertical sky */
    linear-gradient(180deg,
      var(--sky-top) 0%,
      var(--sky-mid) 45%,
      var(--sky-deep) 100%);
}

/* starfield canvas, pinned behind everything.
   anchored top-left (not inset:0) so JS can size it to the full screen height;
   that lets it stay covered when the phone's URL bar hides, without resizing on
   scroll. fixed = it never moves with the page, only its own drift plays. */
#space {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
}

/* page content sits above the sky.
   flex column so the hero fills exactly the space under the nav:
   one viewport, no scroll. */
#page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
}

/* ============================================================
   NAV  ·  sticky, translucent, blurred
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  /* frosted glass: neutral (no colour tint) translucent grey + blur */
  background: oklch(16% 0 0 / 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(72% 0 0 / 0.12);
}
.nav-inner {
  position: relative;                /* anchor for the dropdown panel */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
/* brand logo: Filo, the favicon, as a small rounded tile beside the name */
.brand .logo {
  display: block;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 8px;
}
/* brand mark: "~/" = home directory in a terminal. amber-gradient mono glyph. */
.brand .mark {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1;
  flex-shrink: 0;                 /* never squish the glyph */
  /* fill the text with the amber gradient */
  background: linear-gradient(160deg, var(--accent-bright), var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* top-level page tabs: inline on desktop, collapse to a dropdown on mobile */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); }

/* burger button: hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  /* 44x44 minimum so it's an easy tap target on phones */
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--btn-ghost-fill);
  border: 1px solid var(--hairline);
  border-radius: 9px;
  cursor: pointer;
  /* kill the grey iOS tap flash that made the bars look glitchy on press */
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
/* bars morph into an X when the menu is open */
.nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
/* middle bar collapses to nothing (scaleX 0), so its rounded ends don't peek
   out past the X as two dots while the other two bars rotate across it */
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1;          /* keeps <a> and <button> the same height */
  letter-spacing: -0.01em;
  padding: 12px 22px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  border: 1px solid var(--transparent);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
/* No coloured bloom under the primary button: the amber halo read as a game
   button. The two insets stay, they are what gives the face its curve, and
   the drop shadow stays neutral so the button sits on the sky, not in it. */
.btn-primary {
  background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent) 58%, var(--accent-deep) 140%);
  color: var(--btn-ink);
  box-shadow:
    inset 0 1px 0 oklch(100% 0 0 / 0.35),
    inset 0 -7px 14px oklch(45% 0.11 52 / 0.28),
    0 2px 6px var(--shadow-ink-a40);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 var(--white-a40),
    inset 0 -7px 14px oklch(45% 0.11 52 / 0.3),
    0 4px 12px oklch(8.9% 0.042 267.9 / 0.45);
}
.btn-primary .arrow { transition: transform 0.2s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(5px); }
.btn-ghost {
  /* same glass fill + light frost as the footer, so the stars still fizz through */
  background: var(--surface-glass);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  color: var(--text);
  border-color: var(--hairline);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-a08);
  transform: translateY(-2px);
}
.btn-lg { padding: 15px 30px; font-size: 1rem; }

/* disabled button: dim + inert, used by the contact submit until the form is full */
.btn:disabled,
.btn[disabled] {
  opacity: 0.4;
  filter: saturate(0.55);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn:disabled:hover { transform: none; }
/* the send button lights up once every field is filled */
#cf-submit:not(:disabled) {
  box-shadow:
    inset 0 1px 0 var(--white-a40),
    0 0 0 1px var(--accent-bright-a50),
    0 10px 30px var(--accent-a42),
    0 2px 6px var(--shadow-ink-a40);
}
/* sending state: a spinner takes over the button while the message goes out.
   overrides the dimmed disabled look so the button stays lit and active-feeling. */
.btn.is-loading {
  color: transparent;
  opacity: 1;
  filter: none;
  cursor: wait;
  position: relative;
}
.btn.is-loading .arrow { opacity: 0; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;                  /* pull back by half its size to sit dead-centre */
  border-radius: 50%;
  border: 2px solid var(--btn-ink);
  border-top-color: transparent;         /* the gap that makes it read as spinning */
  animation: btnSpin 0.6s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  /* fill exactly one viewport under the sticky nav, any screen size.
     --nav-h is measured in JS; 66px is a safe fallback before it runs.
     min-height (not height) means tall content grows instead of clipping. */
  min-height: calc(100dvh - var(--nav-h, 66px));
  display: flex;
  align-items: center;
  text-align: center;
  padding: clamp(24px, 5vh, 64px) 0;
}
/* accent glow bloom behind the headline */
.hero::before {
  content: "";
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, 92vw);
  height: 420px;
  background: radial-gradient(ellipse at center,
    var(--accent-a12) 0%,
    var(--accent-a0) 68%);
  pointer-events: none;
  z-index: -1;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 7px 15px;
  border: 1px solid var(--accent-a38);
  border-radius: 999px;
  background: var(--accent-a06);
  box-shadow: inset 0 0 12px var(--accent-a10), 0 2px 12px var(--shadow-ink-a35);
  /* hero rhythm: this gap is kept equal to the title, sub and note gaps below */
  margin-bottom: clamp(46px, 6.5vh, 72px);
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;           /* lock the width, never grow or shrink in the flex row */
  aspect-ratio: 1 / 1;     /* force a perfect circle, never an oval */
  align-self: center;      /* don't let the flex row stretch it vertically */
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 8px var(--accent-a90), 0 0 16px var(--accent-a50);
}
/* live "Booking open" status dot: green + blinking, live-availability signal */
.eyebrow .dot-live {
  background: var(--live-green);                                              /* green */
  box-shadow: 0 0 8px oklch(72% 0.19 149 / 0.9), 0 0 16px oklch(72% 0.19 149 / 0.5);
  animation: dotBlink 1.6s ease-in-out infinite;                               /* slow, calm blink */
}
@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}
/* respect reduced-motion: hold the dot steady instead of blinking */
@media (prefers-reduced-motion: reduce) {
  .eyebrow .dot-live { animation: none; }
}
.hero-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.1rem, 5.3vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 15ch;
  margin: 0 auto clamp(46px, 6.5vh, 72px);   /* equal hero gap */
}
/* hero span. same amber ramp as .page-title, so both titles read as one material. */
.grad {
  background: var(--title-ramp);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: var(--transparent);
  color: var(--transparent);
}
.hero-sub {
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.16rem);
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto clamp(46px, 6.5vh, 72px);   /* equal hero gap */
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-note { margin-top: clamp(46px, 6.5vh, 72px); }   /* equal hero gap */
.hero-note .eyebrow { margin-bottom: 0; }

/* index hero load-in: on first paint the hero content fades + rises in,
   element by element, over ~1s instead of popping. only .hero exists on
   index, so this stays scoped to the home page. `both` holds the hidden
   start state until each element's turn. */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.hero-inner > * { animation: heroIn 0.8s var(--ease) both; }
.hero-inner > .eyebrow      { animation-delay: 0.05s; }
.hero-inner > .hero-title   { animation-delay: 0.20s; }
.hero-inner > .hero-sub     { animation-delay: 0.40s; }
.hero-inner > .hero-actions { animation-delay: 0.55s; }
.hero-inner > .hero-note    { animation-delay: 0.70s; }

/* same load-in for the enroll + deposit cards: the card content rises in
   block by block on open, matching the index hero. */
.page-enroll .enroll-card-head,
.page-enroll .enroll-steps,
.page-enroll .enroll-recap,
.page-enroll .enroll-form,
.page-checkout .enroll-card-head,
.page-checkout .enroll-steps,
.page-checkout .pay-flow { animation: heroIn 0.8s var(--ease) both; }
.page-enroll .enroll-card-head,
.page-checkout .enroll-card-head { animation-delay: 0.05s; }
.page-enroll .enroll-steps,
.page-checkout .enroll-steps { animation-delay: 0.25s; }
.page-enroll .enroll-recap,
.page-checkout .pay-flow { animation-delay: 0.45s; }
.page-enroll .enroll-form { animation-delay: 0.70s; }

@media (prefers-reduced-motion: reduce) {
  .hero-inner > *,
  .page-enroll .enroll-card-head,
  .page-enroll .enroll-steps,
  .page-enroll .enroll-recap,
  .page-enroll .enroll-form,
  .page-checkout .enroll-card-head,
  .page-checkout .enroll-steps,
  .page-checkout .pay-flow { animation: none; }
}

/* ============================================================
   PAGE HEADER  ·  compact hero for inner pages (About, Enroll…)
   ============================================================ */
.page-head {
  position: relative;
  padding: clamp(26px, 4vh, 48px) 0 clamp(20px, 4vh, 40px);
}
.page-head .eyebrow { margin-bottom: 0; }
.page-title {
  font-family: var(--font-head);
  font-weight: 700;
  /* bumped up so the h1 sits a clear step above the h2 section heads */
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin: 22px 0 20px;
  /* warm highlight into deep amber, floor held above the sky */
  background: var(--title-ramp);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: var(--transparent);
  color: var(--transparent);
}
.page-lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.24rem);
  line-height: 1.6;
  max-width: 620px;
}

/* required-field asterisk on form labels */
.field .req { color: var(--accent-bright); margin-left: 2px; }

/* ---- contact page: ONE spacing scale, keyed to the index hero.
   - Outer frame  = hero container padding      (top of header, bottom before footer)
   - Stack gap    = hero rhythm gap / 2          (title -> lead -> form, one even gap)
   - Field gap    = hero rhythm gap / 3          (between form fields)
   Collapses the old double-spacing (page-head bottom + section top + form
   margin all stacked) into a single gap. Stays one screen, no scroll.
   Tune the two knobs below to loosen or tighten the whole page at once. ---- */
.page-contact {
  --gap-stack: clamp(22px, 3.2vh, 36px);   /* header + form stack rhythm */
  --gap-field: clamp(15px, 2.2vh, 22px);   /* between individual fields */
}
.page-contact .page-head  { padding: clamp(24px, 5vh, 64px) 0 0; }   /* frame top, no bottom */
.page-contact .page-title { margin: 0 0 var(--gap-stack); }
.page-contact .page-lead  { margin: 0; }
.page-contact .section    { padding: var(--gap-stack) 0 clamp(24px, 5vh, 64px); }
.page-contact .form       { margin-top: 0; gap: var(--gap-field); }
.page-contact .form-row   { gap: var(--gap-field); }
.page-contact .field textarea { min-height: clamp(84px, 13vh, 120px); }

/* ============================================================
   SENT MODAL  ·  green-check popup shown after the form sends
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: oklch(8% 0.02 267 / 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modalFade 0.25s var(--ease);
}
.modal-backdrop[hidden] { display: none; }
.modal {
  background: oklch(17% 0.03 270 / 0.97);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 34px 30px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px oklch(8.9% 0.042 267.9 / 0.6);
  animation: modalPop 0.28s var(--ease);
}
.modal-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--success-a16);
  border: 1.5px solid var(--success-border);
}
.modal-check svg {
  width: 30px;
  height: 30px;
  /* a tick has a flat top and a pointed bottom, so it reads slightly high in
     a circle. this nudges it down to optically re-centre it. tune if you want. */
  transform: translateY(1px);
  fill: none;
  stroke: var(--success-stroke);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.modal h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: 10px;
}
.modal p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 22px;
}
@keyframes modalFade { from { opacity: 0; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(12px) scale(0.96); } }

/* ============================================================
   SECTIONS  ·  content blocks below the hero
   ============================================================ */
.section {
  position: relative;
  padding: clamp(72px, 12vh, 140px) 0;
}
/* section label pill: same eyebrow atom, but no hero-sized gap under it */
.section .eyebrow { margin-bottom: 0; }

/* ============================================================
   AUDIENCE  ·  who it's for / not for (two panels)
   ============================================================ */
.audience {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  margin-top: clamp(34px, 5vh, 52px);
  align-items: start;
}
.aud-panel {
  position: relative;
  background: linear-gradient(180deg, var(--tile-blue-top) 0%, var(--tile-blue-bot) 100%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--edge-light), var(--shadow-card);
}
.aud-head {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 20px;
}
.aud-yes .aud-head { color: var(--accent); }
.aud-list { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.aud-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  color: var(--text);
  font-size: 0.99rem;
  line-height: 1.55;
}
.aud-no .aud-item { color: var(--muted); }
.aud-mark {
  flex-shrink: 0;
  width: 23px;
  height: 23px;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
  border-radius: 50%;
}
.aud-yes .aud-mark {
  color: var(--accent-bright);
  border: 1px solid var(--accent-a40);
  background: var(--accent-a10);
  box-shadow: inset 0 0 10px var(--accent-a12);
}
.aud-no .aud-mark {
  color: var(--muted);
  border: 1px solid var(--hairline);
  background: oklch(80% 0.05 70 / 0.03);
}

/* ============================================================
   CURRICULUM  ·  "being built" block with loading bar
   ============================================================ */
.curriculum {
  position: relative;
  margin-top: clamp(34px, 5vh, 52px);
  background: linear-gradient(180deg, var(--tile-blue-top) 0%, var(--tile-blue-bot) 100%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
  overflow: hidden;
  box-shadow: var(--edge-light), var(--shadow-card);
}
.curriculum::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-bright-a0) 0%, var(--accent-bright-a50) 50%, var(--accent-bright-a0) 100%);
}
.curriculum-top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.curriculum-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  padding: 5px 11px;
  border: 1px solid var(--accent-a38);
  border-radius: 999px;
  background: var(--accent-a06);
}
.curriculum-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  letter-spacing: -0.02em;
  color: var(--text);
}
.curriculum-note {
  color: var(--muted);
  font-size: 0.99rem;
  line-height: 1.6;
  margin-top: 12px;
}
.loading {
  position: relative;
  height: 10px;
  margin-top: 22px;
  border-radius: 999px;
  background: oklch(26% 0.055 272 / 0.6);
  border: 1px solid var(--hairline-soft);
  overflow: hidden;
}
.loading-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 42%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-bright), var(--accent-deep));
  box-shadow: 0 0 14px var(--accent-a50);
  animation: loading-sweep 2.4s var(--ease) infinite;
}
@keyframes loading-sweep {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(340%); }
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  /* same translucent shading as the contact form fields, plus a minor frost:
     a light blur fizzes the stars showing through without hiding them */
  background: var(--surface-glass);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  border-top: 1px solid oklch(72% 0.03 275 / 0.12);
  padding: clamp(20px, 3vh, 32px) 0;       /* even top/bottom so the single line centres */
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0;
}
.footer-note {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form {
  max-width: 620px;
  margin-top: clamp(34px, 5vh, 52px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background-color: var(--surface-glass);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 13px 15px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
  width: 100%;
}
/* drag-to-resize grip: three even diagonal lines painted in the corner.
   The tiny native resizer clips a 3rd line, so we clear it and draw the grip
   on the textarea itself, sized and positioned so all three lines stay clear
   of the rounded corner. (min-height/resize folded in from the duplicate block) */
.field textarea {
  min-height: 148px;
  resize: vertical;
  line-height: 1.55;
  background-repeat: no-repeat;
  background-position: calc(100% - 4px) calc(100% - 4px);
  background-size: 13px 13px;
  background-image:
    linear-gradient(135deg,
      transparent 0 22%,
      var(--muted) 22% 32%,
      transparent 32% 49%,
      var(--muted) 49% 59%,
      transparent 59% 76%,
      var(--muted) 76% 86%,
      transparent 86%);
}
.field textarea::-webkit-resizer { background: transparent; }
.field input::placeholder,
.field textarea::placeholder { color: var(--placeholder); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--surface-glass-hi);
  box-shadow: 0 0 0 3px var(--accent-a14);
}
/* filled state: once a field has content its frame stays lit orange, so a done
   field still reads as done after you click away. Empty fields stay default.
   The focus glow above stays focus-only, marking the field you're actively in. */
.field input:not(:placeholder-shown),
.field textarea:not(:placeholder-shown) {
  border-color: var(--accent);
  background-color: var(--surface-glass-hi);
}

/* ============================================================
   PICKER  ·  every dropdown on the site
   One listbox component rather than a native <select>: a native
   one can't be styled, can't be searched, and can't carry a badge
   on a row. The country picker on the enroll page is this same
   component with a search box and two extra columns added on top.
   ============================================================ */
.pick { position: relative; }

.pick-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  /* matches `.field input` above so a picker and a text box line up
     to the same height and edge */
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--placeholder);
  background-color: var(--surface-glass);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
              background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.pick-trigger:focus-visible {
  outline: none;
  border-color: var(--accent);
  background-color: var(--surface-glass-hi);
  box-shadow: 0 0 0 3px var(--accent-a14);
}
/* open, and answered: both light up the same way a filled input does */
.pick-trigger[aria-expanded="true"],
.pick-trigger.is-set {
  color: var(--text);
  border-color: var(--accent);
  background-color: var(--surface-glass-hi);
}
/* still on the placeholder while the menu is open */
.pick-trigger[aria-expanded="true"]:not(.is-set) { color: var(--placeholder); }

.pick-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pick-caret {
  margin-left: auto;
  flex: none;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
  transition: transform 0.2s var(--ease), border-top-color 0.2s var(--ease);
}
.pick-trigger[aria-expanded="true"] .pick-caret {
  transform: rotate(180deg);
  border-top-color: var(--accent);
}

/* ---- the dropdown ---- */
.pick-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  z-index: 20;
  background: var(--surface-hi);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  animation: pickIn 0.16s var(--ease) both;
}
@keyframes pickIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: none; }
}

.pick-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 264px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.pick-list:focus { outline: none; }

.pick-opt {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
}
.pick-opt.is-active { background: var(--surface-glass-hi); }
.pick-opt.is-picked { color: var(--accent-bright); }
/* tick on the answered row. The country rows carry a dial code in this
   column instead, so they opt out in enroll.css. */
.pick-opt.is-picked::after {
  content: "\2713";
  font-size: 0.85rem;
  color: var(--accent);
}

.pick-empty {
  padding: 14px 16px 18px;
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---- search box, country picker only ---- */
.pick-search-wrap { padding: 10px; border-bottom: 1px solid var(--hairline); }
/* scoped through .pick-menu so it outweighs `.field input` above, which
   would otherwise hand this box the full-size input padding and the
   lit-when-filled border meant for real form fields */
.pick-menu .pick-search {
  width: 100%;
  padding: 9px 11px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--surface-glass);
  border: 1px solid var(--hairline);
  border-radius: 9px;
}
.pick-menu .pick-search::placeholder { color: var(--placeholder); }
/* same reason: a filled input lights orange above, and a search box is
   not a filled field */
.pick-menu .pick-search:not(:placeholder-shown) {
  border-color: var(--hairline);
  background-color: var(--surface-glass);
}
.pick-menu .pick-search:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--surface-glass);
  box-shadow: 0 0 0 3px var(--accent-a14);
}
.pick-menu .pick-search::-webkit-search-cancel-button { filter: grayscale(1) opacity(0.5); }

@media (prefers-reduced-motion: reduce) {
  .pick-menu { animation: none; }
  .pick-caret { transition: none; }
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.form-status {
  font-size: 0.92rem;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.form-status.show { opacity: 1; }
.form-status.ok { color: var(--accent-bright); }
.form-status.err { color: oklch(66% 0.17 25); }

/* ============================================================
   ABOUT PAGE  ·  hero photo, proof screenshots, socials
   Components only the About page uses. The .ph placeholder boxes
   stand in for the real portrait + screenshots until Saif drops
   them in; swap the markup, these styles stay.
   ============================================================ */
/* generic placeholder box: dashed frame + centred mono label.
   Text inside states the aspect ratio + what the asset is. */
.ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5px;
  border: 1px dashed var(--hairline);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-hi) 0%, var(--surface) 100%);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 16px;
}
.ph small { opacity: 0.65; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; }

/* hero: photo left, intro right. stacks on phones (see RESPONSIVE) */
.about-hero {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
}
.about-portrait { aspect-ratio: 4 / 5; width: 100%; }

/* phones AND tablets (iPad): stack the hero. heading + paragraph first,
   portrait below them and centered. laptops (>1024px) keep photo-left. */
@media (max-width: 1024px) {
  .about-hero { grid-template-columns: 1fr; text-align: left; }
  .about-hero-text { order: 1; }
  .about-portrait { order: 2; max-width: 200px; justify-self: center; }
}


/* socials: link cards. kept low on the page on purpose (exit doors) */
.socials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;  /* normalized to the 16px grid gap */
  margin-top: clamp(34px, 5vh, 52px);
  max-width: 720px;
}
.social-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, var(--tile-blue-top) 0%, var(--tile-blue-bot) 100%);
  box-shadow: var(--edge-light), var(--shadow-card);
  text-decoration: none;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
/* brand icon tile: each logo sits on its platform's own colour */
.social-ico {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
}
.social-ico svg { width: 34px; height: 34px; display: block; }
.ico-li svg { width: 32px; height: 32px; }  /* LinkedIn mark reads big, nudge it down */
.social-ico img { width: 100%; height: 100%; object-fit: cover; }
.ico-ig  { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.ico-li  { background: #0a66c2; }
.ico-web { background: var(--surface-hi); border: 1px solid var(--hairline); }
.ico-sp  { background: #191414; color: #1db954; }  /* Spotify: green mark on black (waves cut to the black tile) */
.social-text { display: flex; flex-direction: column; gap: 3px; }
.social-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.social-handle {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
}
@media (hover: hover) {
  .social-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--edge-light), var(--shadow-lift);
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  /* phones: show the burger, collapse the page tabs into a dropdown panel */
  .nav-toggle { display: inline-flex; }
  .nav-links {
    /* closed state: present but hidden, so open/close can animate (display can't) */
    display: flex;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    /* fade + slide takes 0.6s; visibility flips only after that when closing */
    transition: opacity 0.6s var(--ease),
                transform 0.6s var(--ease),
                visibility 0s linear 0.6s;
    position: absolute;
    top: calc(100% - 6px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    background: oklch(14% 0 0 / 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid oklch(26% 0 0 / 0.5);
    border-radius: 12px;
    box-shadow: 0 24px 50px oklch(8.9% 0 0 / 0.55);
  }
  /* open: fade in and slide down over 0.6s */
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.6s var(--ease),
                transform 0.6s var(--ease),
                visibility 0s;
  }
  .nav-links a:not(.btn) {
    /* full 44px tap height in the dropdown (padding alone left them ~41px) */
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 11px 12px;
    border-radius: 8px;
    font-size: 1rem;
  }
  .nav-links a:not(.btn):hover { background: oklch(80% 0.05 70 / 0.05); }
  .nav-links .btn { margin-top: 4px; justify-content: center; }

  .hero-actions .btn { width: 100%; }
  /* hero keeps the full-viewport lock on phones too; min-height means
     tall content just grows past one screen instead of clipping. */

  /* fixed grids collapse to one column on phones. */
  .audience { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* about page: screenshots + socials go single column (hero stacks earlier, see below) */
  .socials { grid-template-columns: 1fr; }
  /* phone: let the portrait fill the full content width, not a small centered box */
  .about-portrait { max-width: none; }

  /* footer stacks and left-aligns on phones */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  /* clear the iPhone home indicator (the page uses viewport-fit=cover) */
  .site-footer { padding-bottom: calc(clamp(20px, 3vh, 32px) + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn-primary .arrow { transition: none; }
  /* freeze the loading bar at a static posed fill */
  .loading-fill { animation: none; transform: none; width: 42%; }
}

/* ============================================================
   TOUCH TARGETS  ·  phones + tablets (finger, not mouse)
   Everything tappable gets a 44px minimum so it's easy to hit.
   Scoped to touch screens (pointer: coarse), so the desktop
   mouse layout stays exactly as designed.
   ============================================================ */
@media (hover: none) and (pointer: coarse) {
  /* buttons: floor the height at 44px (the small .btn sits ~38px otherwise).
     covers the nav Enroll button and the "sent" modal Close button. */
  .btn { min-height: 44px; }
}
/* tablets show the nav links inline. give each link a full 44px tap height
   without making the bar taller (trim the bar's own padding to compensate). */
@media (hover: none) and (pointer: coarse) and (min-width: 721px) {
  .nav-inner { padding-top: 11px; padding-bottom: 11px; }
  .nav-links a:not(.btn) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* ============================================================
   DESIGN SYSTEM v1  (editorial base + one bento + gradient FAQ)
   New namespaced classes. Old classes above stay until all
   pages are migrated, then removed in a final cleanup.
   ============================================================ */

/* new depth / glow tokens, appended additively (original :root above is untouched) */
:root {
  --depth-far: oklch(15% 0.045 268);
  --depth-near: oklch(20% 0.065 64);
  --glow-amber-sm: 0 0 20px oklch(70% 0.162 65 / 0.22);
  --glow-amber-md: 0 0 32px oklch(70% 0.162 65 / 0.28);
  --glow-amber-lg: 0 0 48px oklch(70% 0.162 65 / 0.34);
}

/* ------------------------------------------------------------
   DS editorial section header · ghost numeral rail
   ------------------------------------------------------------ */
.ds-head-grid {
  display: block;
  position: relative;
}
.ds-numeral {
  position: absolute;
  top: -0.55em;
  left: -0.1em;
  z-index: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(5rem, 12vw, 8rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: oklch(72% 0.16 55 / 0.13);
  user-select: none;
  pointer-events: none;
}
.ds-head-content { min-width: 0; position: relative; z-index: 1; }
.ds-head { text-align: left; }
.ds-head h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
  margin: 0 0 20px;
  max-width: 20ch;
}
.ds-head-body {
  font-family: var(--font-body);
  font-size: 1.04rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 62ch;
  margin: 0;
}
.ds-head-body + .ds-head-body { margin-top: 14px; }

/* ------------------------------------------------------------
   DS list rows · editorial card pattern A
   ------------------------------------------------------------ */
.ds-traps-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: clamp(34px, 5vh, 52px) 0 6px;
}
.ds-rows { border-top: 1px solid var(--hairline-soft); margin-top: 18px; }
.ds-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 18px;
  padding: 30px 0;
  border-bottom: 1px solid var(--hairline-soft);
  position: relative;
  transition: padding-left 200ms var(--ease);
  overflow: hidden;
}
.ds-row::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0%;
  background: var(--accent-a55);
  transition: width 200ms var(--ease);
}
@media (hover: hover) {
  .ds-row:hover { padding-left: 14px; }
  .ds-row:hover::before { width: 100%; }
  .ds-row:hover .ds-row-index { color: var(--accent-bright); }
}
.ds-row-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  padding-top: 4px;
  transition: color 200ms var(--ease);
}
.ds-row-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 10px;
}
.ds-row-desc {
  font-family: var(--font-body);
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.65;
  margin: 0;
}
.ds-row-lead .ds-row-title { font-size: clamp(1.45rem, 2.2vw, 1.75rem); }
.ds-row-lead .ds-row-desc { font-size: 1.03rem; }

/* ------------------------------------------------------------
   DS list rows · layout variants
   --cards    : 2-up cards, big faint index watermark (single-digit)
   --timeline : vertical rail with numbered nodes
   ------------------------------------------------------------ */
.ds-rows--cards {
  border-top: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.ds-rows--cards .ds-row {
  display: block;
  grid-template-columns: none;
  column-gap: 0;
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--white-a03);
  backdrop-filter: blur(2px) saturate(108%);
  -webkit-backdrop-filter: blur(2px) saturate(108%);
  overflow: hidden;
}
.ds-rows--cards .ds-row::before { display: none; }
.ds-rows--cards .ds-row-index {
  position: absolute;
  top: -0.32em;
  right: 0.06em;
  padding-top: 0;
  z-index: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 6rem;
  line-height: 0.8;
  color: var(--numeral-ghost);
  pointer-events: none;
  user-select: none;
}
.ds-rows--cards .ds-row > div { position: relative; z-index: 1; }
/* uniform cards: neutralise the lead-row size bump */
.ds-rows--cards .ds-row-lead .ds-row-title { font-size: clamp(1.2rem, 1.8vw, 1.4rem); }
.ds-rows--cards .ds-row-lead .ds-row-desc { font-size: 1rem; }
/* odd card out: span the full grid so it never sits alone in a half-width slot */
.ds-rows--cards .ds-row--full { grid-column: 1 / -1; }

.ds-rows--timeline {
  border-top: none;
  position: relative;
  padding-left: 34px;
}
.ds-rows--timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--hairline);
}
.ds-rows--timeline .ds-row {
  display: block;
  grid-template-columns: none;
  column-gap: 0;
  padding: 0 0 26px;
  border-bottom: none;
  overflow: visible;
}
.ds-rows--timeline .ds-row:last-child { padding-bottom: 0; }
.ds-rows--timeline .ds-row::before { display: none; }
.ds-rows--timeline .ds-row-index {
  position: absolute;
  left: -34px;
  top: 2px;
  padding-top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sky-deep);
  border: 2px solid var(--accent);
  display: grid;
  place-items: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--accent);
}
/* variants: keep rows static on hover (no shift, no recolour drift) */
@media (hover: hover) {
  .ds-rows--cards .ds-row:hover { padding-left: 24px; }
  .ds-rows--timeline .ds-row:hover { padding-left: 0; }
  .ds-rows--cards .ds-row:hover .ds-row-index { color: var(--numeral-ghost); }
  .ds-rows--timeline .ds-row:hover .ds-row-index { color: var(--accent); }
}

/* ------------------------------------------------------------
   DS bento · card pattern B (used once, on #promise)
   ------------------------------------------------------------ */
.ds-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: 16px;
  margin-top: clamp(34px, 5vh, 52px);
}
.ds-tile {
  position: relative;
  grid-column: span 1;
  /* darker than the shared --surface tokens: scoped to the bento only */
  background: linear-gradient(180deg, var(--tile-blue-top) 0%, var(--tile-blue-bot) 100%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--edge-light), var(--shadow-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.ds-tile::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-bright-a0) 0%, var(--accent-bright-a50) 50%, var(--accent-bright-a0) 100%);
}
@media (hover: hover) {
  .ds-tile:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--edge-light), var(--shadow-lift); }
}
.ds-tile h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.ds-tile p { color: var(--muted); font-size: 0.93rem; line-height: 1.6; margin: 0; }
.ds-tile--feature {
  grid-column: span 2;
  grid-row: span 2;
  padding: 32px;
  background: linear-gradient(180deg, var(--tile-feature-top) 0%, var(--tile-feature-bot) 100%);
  border-color: var(--accent-a35);
}
.ds-tile--feature h3 { font-size: 1.4rem; }
.ds-tile--wide { grid-column: span 2; }
.ds-tile--stat { align-items: flex-start; justify-content: center; }
.ds-stat-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1;
  background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent) 60%, var(--accent-deep) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: var(--transparent);
  color: var(--transparent);
  margin-bottom: 8px;
}
.ds-stat-cap { font-size: 0.85rem; color: var(--muted); max-width: 20ch; line-height: 1.4; }

/* ------------------------------------------------------------
   DS shot frame · editorial screenshot / example placeholder
   ------------------------------------------------------------ */
.ds-shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  margin-top: clamp(34px, 5vh, 52px);
}
/* section 4 showcase: force a fixed 2x2 instead of auto-fit's 3+1 */
.ds-shots--2col { grid-template-columns: repeat(2, 1fr); }
.ds-shot { display: flex; flex-direction: column; }
.ds-shot-frame {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5px;
  aspect-ratio: 16 / 10;
  width: 100%;
  border: 1px dashed var(--hairline);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-hi) 0%, var(--card) 100%);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 34px 16px 16px;
  box-shadow: var(--edge-light), 0 12px 30px oklch(8.9% 0.042 267.9 / 0.38);
}
/* browser-window chrome: a title strip with three traffic-light dots */
.ds-shot-frame::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 26px;
  background: var(--white-a03);
  border-bottom: 1px solid var(--hairline);
}
.ds-shot-frame::after {
  content: "";
  position: absolute;
  top: 9px; left: 12px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: oklch(66% 0.2 25);
  box-shadow: 13px 0 0 oklch(80% 0.15 85), 26px 0 0 var(--live-green);
}
.ds-shot-frame small {
  opacity: 0.65;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: none;
}
.ds-shot-cap {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.ds-shot-cap b { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------
   DS FAQ · gradient question cards (reserved for course.html)
   ------------------------------------------------------------ */
.ds-faq { margin-top: clamp(34px, 5vh, 52px); max-width: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-items: start; }
.ds-faq-item {
  position: relative;
  background: linear-gradient(180deg, var(--tile-blue-top) 0%, var(--tile-blue-bot) 100%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: 0 6px 16px oklch(8.9% 0.042 267.9 / 0.28);
  transition: box-shadow 0.32s var(--ease), border-color 0.32s var(--ease);
  overflow: hidden;
}
/* gradients can't be transitioned, so the orange sits on an overlay we fade in.
   same gradient as the bento feature tile. */
.ds-faq-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--tile-feature-top) 0%, var(--tile-feature-bot) 100%);
  opacity: 0;
  transition: opacity 0.32s var(--ease);
  pointer-events: none;
}
.ds-faq-item[open]::before { opacity: 1; }
.ds-faq-item[open] {
  border-color: var(--accent-a35);
  box-shadow: var(--glow-amber-sm), 0 12px 30px var(--shadow-ink-a40);
}
/* summary and answer ride above the overlay */
.ds-faq-item summary,
.ds-faq-item .ds-faq-answer { position: relative; }

/* smooth open/close. browsers without ::details-content just snap, as before. */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .ds-faq-item::details-content {
    height: 0;
    overflow: hidden;
    transition: height 0.32s var(--ease), content-visibility 0.32s var(--ease) allow-discrete;
  }
  .ds-faq-item[open]::details-content { height: auto; }
}
.ds-faq-item[open] summary { border-bottom: 1px solid var(--hairline); }
.ds-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  list-style: none;
}
.ds-faq-item summary::-webkit-details-marker { display: none; }
.ds-faq-item summary:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
  border-radius: 6px;
}
.ds-faq-marker {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent);
  display: inline-block;
  transition: transform 0.28s var(--ease);
}
.ds-faq-item[open] .ds-faq-marker { transform: rotate(45deg); }
.ds-faq-answer { padding: 4px 24px 22px; color: var(--muted); line-height: 1.65; font-size: 0.98rem; margin: 0; }

/* ------------------------------------------------------------
   DS CTA masthead · full-bleed band
   ------------------------------------------------------------ */
.ds-masthead {
  width: 100%;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  border-top: 1px solid var(--accent-a40);
  border-bottom: 1px solid var(--accent-a40);
  padding: clamp(50px, 7vh, 80px) 24px;
  background: var(--white-a03);
  backdrop-filter: blur(2px) saturate(108%);
  -webkit-backdrop-filter: blur(2px) saturate(108%);
  box-shadow: var(--edge-light), inset 0 -24px 60px var(--shadow-ink-a35);
}
.ds-cta-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.ds-cta-text { max-width: 640px; }
.ds-cta-head {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  margin: 0;
}
.ds-cta-body {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.65;
  max-width: 52ch;
  margin: 12px 0 0;
}

/* ------------------------------------------------------------
   DS responsive · down to 360px
   ------------------------------------------------------------ */
@media (max-width: 720px) {
  .ds-numeral { font-size: clamp(3.6rem, 20vw, 6rem); top: -0.4em; }
  .ds-row { grid-template-columns: 36px 1fr; }
  .ds-rows--cards { grid-template-columns: 1fr; }
  .ds-bento { grid-template-columns: 1fr; }
  .ds-tile,
  .ds-tile--feature,
  .ds-tile--wide,
  .ds-tile--stat { grid-column: span 1 !important; grid-row: span 1 !important; }
  .ds-cta-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .ds-shots,
  .ds-shots--2col { grid-template-columns: 1fr; }
  .ds-faq { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ds-row { grid-template-columns: 30px 1fr; column-gap: 12px; }
  .ds-row-index { font-size: 0.78rem; }
}
@media (max-width: 360px) {
  .ds-row { grid-template-columns: 1fr; row-gap: 8px; }
  .ds-row-index { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ds-row,
  .ds-row::before,
  .ds-row-index,
  .ds-tile,
  .ds-faq-item,
  .ds-faq-item::before,
  .ds-faq-item::details-content,
  .ds-faq-marker { transition: none !important; }
}

/* site-wide accessible focus ring, ported from the approved design system.
   base rule (not ds-specific): applies to every page's links/buttons/summaries. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   PREMIUM POLISH  ·  scroll-reveal · numerals · selection · scrollbar
   ============================================================ */

/* scroll-reveal: content fades + rises as it enters the viewport.
   the .reveal class is added by JS, so nothing hides if JS is off. */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* tabular figures so the big numerals and stats sit on their own columns */
.ds-row-index, .ds-numeral, .ds-tile--stat { font-variant-numeric: tabular-nums; }

/* amber text selection */
::selection { background: var(--accent-a30); color: oklch(98% 0.01 90); }

/* themed scrollbar (Firefox + WebKit) */
html { scrollbar-color: var(--hairline) var(--sky-deep); scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--sky-deep); }
::-webkit-scrollbar-thumb { background: var(--hairline); border-radius: 999px; border: 3px solid var(--sky-deep); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-deep); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
