/* ==========================================================================
   The Irreversible Mix — site styles
   Palette: deep blue-black studio dark, electric blue + turquoise taken from
   the logo's slash. Type: Cormorant Garamond (display) + Jost (text/UI).
   Signature motif: "the slash" — the logo's kinked blade line, drawn in.
   ========================================================================== */

/* Self-hosted fonts (latin subset) — no third-party request before first paint */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cormorantgaramond-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorantgaramond-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/cormorantgaramond-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 500; font-display: swap; src: url("../fonts/jost-300-500-normal.woff2") format("woff2"); }

:root {
  --ink: #05070d;         /* page background, matches logo field */
  --ink-2: #0a1122;        /* raised panels */
  --ink-3: #111b33;        /* inputs, hover */
  --line: rgba(150, 178, 225, 0.16);
  --line-strong: rgba(150, 178, 225, 0.32);
  --text: #e9eef7;
  --text-2: #b9c4d6;
  --muted: #8e9bb2;
  --blue: #3d8bff;         /* electric blue, from logo slash */
  --teal: #2de2d0;         /* turquoise highlight */
  --blue-btn: #2563eb;     /* filled buttons: white text 5.2:1 */
  --blue-btn-hover: #1d4ed8; /* white text 6.7:1 */
  --blue-soft: rgba(61, 139, 255, 0.14);
  --slash: linear-gradient(90deg, var(--blue) 0%, #49a6ff 55%, var(--teal) 100%);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;

  /* type scale (perfect fourth, 1.333) */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.3125rem;
  --fs-xl: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
  --fs-2xl: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem);
  --fs-3xl: clamp(2.6rem, 1.5rem + 4.4vw, 5.4rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --measure: 62ch;
  --radius: 2px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-base);
  font-weight: 350;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
.hero-media picture { width: 100%; height: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
::selection { background: var(--blue); color: #fff; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 1px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--teal); color: var(--ink); padding: 10px 16px; text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type roles ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-3xl);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-2xl);
  line-height: 1.08;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--fs-xl);
  line-height: 1.15;
}
.lede { font-size: var(--fs-lg); line-height: 1.55; color: var(--text-2); max-width: 46ch; font-weight: 300; }
.body-copy { max-width: var(--measure); color: var(--text-2); }
.body-copy strong { color: var(--text); font-weight: 500; }
/* Section kicker: wide-tracked like the logo's "THE", used only where it names the section */
.kicker {
  display: block;
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--text); --bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0.8rem 1.6rem;
  font: 500 var(--fs-sm)/1 var(--sans); letter-spacing: 0.08em;
  color: var(--fg); background: var(--bg); border: 1px solid var(--bd); border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.btn:hover { --bd: var(--blue); --bg: var(--blue-soft); }
.btn:active { transform: translateY(1px); }
/* Button blue is a deeper shade of the accent so white text passes WCAG AA (5.2:1) */
.btn-primary { --bg: var(--blue-btn); --bd: var(--blue-btn); --fg: #fff; box-shadow: 0 0 24px rgba(61,139,255,0.25); }
.btn-primary:hover { --bg: var(--blue-btn-hover); --bd: var(--blue); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  color: var(--text); text-decoration: none; font-weight: 500; letter-spacing: 0.04em;
  background: linear-gradient(var(--teal), var(--teal)) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px; transition: background-size 0.3s var(--ease-out), color 0.3s;
}
.text-link:hover { color: var(--teal); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(5, 7, 13, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; line-height: 0; }
.brand img { height: 50px; width: auto; }
.nav-list { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav-list a {
  font-size: var(--fs-sm); letter-spacing: 0.1em; text-decoration: none; color: var(--text-2);
  padding: 10px 0; position: relative; transition: color 0.25s;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: var(--slash); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease-out);
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--text); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list .btn { padding: 0.65rem 1.1rem; min-height: 44px; color: var(--text); }
.nav-list .btn::after { display: none; }

.menu-toggle {
  display: none; width: 48px; height: 48px; margin-right: -10px;
  background: none; border: 0; color: var(--text); cursor: pointer; position: relative;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  position: absolute; left: 13px; width: 22px; height: 1.5px; background: currentColor; content: "";
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.menu-toggle span { top: 23px; }
.menu-toggle span::before { left: 0; top: -7px; }
.menu-toggle span::after { left: 0; top: 7px; width: 14px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span::after { width: 22px; transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .brand img { height: 40px; }
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--ink);
    padding: 32px var(--gutter);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
  }
  .menu-open .site-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  /* backdrop-filter would make the header the containing block for the fixed nav */
  .menu-open .site-header { background: var(--ink); border-bottom-color: var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav-list a { font-family: var(--serif); font-size: 2rem; letter-spacing: 0; color: var(--text); }
  .nav-list li:last-child { margin-top: 20px; }
  .nav-list .btn { font-family: var(--sans); font-size: var(--fs-sm); letter-spacing: 0.08em; }
  body.menu-open { overflow: hidden; }
}

/* ---------- The slash (signature divider) ---------- */
.slash { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 22; overflow: visible; }
.slash .rail { stroke: url(#slashGrad); stroke-width: 1.2; fill: none; }
.slash .blade { fill: url(#slashGrad); }
.js .slash .rail { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-out); }
.js .slash .blade { opacity: 0; transform: translateX(-24px); transition: opacity 0.6s ease 0.7s, transform 0.9s var(--ease-out) 0.7s; }
.js .slash.is-in .rail { stroke-dashoffset: 0; }
.js .slash.is-in .blade { opacity: 1; transform: none; }
.slash-divider { padding: clamp(56px, 9vw, 112px) 0; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  padding: calc(var(--header-h) + 48px) 0 clamp(48px, 8vw, 96px);
  isolation: isolate; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 68% 30%;
  filter: grayscale(1) contrast(1.12) brightness(0.62);
}
/* Blue duotone + fade to ink so text sits on calm ground */
.hero-media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, #0b2a66 0%, #072c3a 100%); mix-blend-mode: color; opacity: 0.85;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(90deg, rgba(5,7,13,0.96) 0%, rgba(5,7,13,0.82) 36%, rgba(5,7,13,0.15) 70%, rgba(5,7,13,0.35) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(5,7,13,0) 38%);
}
.hero-inner { max-width: 760px; }
.hero .display { margin-bottom: 1.5rem; }
.hero .lede { margin-bottom: 2.25rem; }
.hero-credit { margin-top: 3rem; font-size: var(--fs-xs); letter-spacing: 0.06em; color: var(--muted); max-width: 52ch; }
.hero-credit b { color: var(--text-2); font-weight: 500; }

@media (max-width: 820px) {
  .hero { align-items: end; }
  /* Phones: let Andrew's face read in the top half, keep text on calm ground below */
  .hero-media img { object-position: 64% 18%; filter: grayscale(1) contrast(1.12) brightness(0.8); }
  .hero-media::after {
    background: linear-gradient(0deg, var(--ink) 10%, rgba(5,7,13,0.9) 46%, rgba(5,7,13,0.25) 72%, rgba(5,7,13,0.1) 100%);
  }
}

/* Hero waveform: the mix printing past a playhead. Masked away from the text column. */
.hero-wave { display: none; }
.js .hero-wave {
  display: block; position: absolute; left: 0; right: 0; bottom: 0; z-index: -1;
  width: 100%; height: clamp(130px, 26vh, 260px); pointer-events: none;
  opacity: 0; transition: opacity 1.8s var(--ease-out) 0.6s;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 38%, #000 60%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, transparent 38%, #000 60%, #000 94%, transparent 100%);
}
.js .is-loaded .hero-wave { opacity: 1; }
@media (max-width: 820px) {
  /* Phones: text runs full width and the face fills the top, so the wave closes the hero under the buttons */
  .hero-inner { position: relative; }
  .js .hero { padding-bottom: 76px; }
  .js .hero-wave {
    top: calc(100% + 14px); bottom: auto; left: 50%; right: auto; width: 100vw; height: 48px;
    transform: translateX(-50%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  }
}

/* Hero load sequence: one orchestrated moment */
.js .hero-media img { transform: scale(1.06); transition: transform 2.4s var(--ease-out); }
.js .is-loaded .hero-media img { transform: scale(1); }
.js .rise { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out); }
.js .is-loaded .rise { opacity: 1; transform: none; }
.js .is-loaded .rise:nth-child(2) { transition-delay: 0.15s; }
.js .is-loaded .rise:nth-child(3) { transition-delay: 0.3s; }
.js .is-loaded .rise:nth-child(4) { transition-delay: 0.45s; }
.js .is-loaded .rise:nth-child(5) { transition-delay: 0.6s; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 11vw, 144px) 0; position: relative; }
.section-tight { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .h2 { margin-bottom: 1.25rem; }

/* Liner notes: credits set like an album sleeve */
.liner { border-top: 1px solid var(--line); }
.liner-row {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 13.5rem; gap: 16px 32px;
  align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line);
}
.liner-title { font-family: var(--serif); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); line-height: 1.1; }
.liner-artist { color: var(--text-2); font-size: var(--fs-lg); font-weight: 300; }
.liner-role { font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-align: right; white-space: nowrap; }
.liner-role .yr { color: var(--teal); margin-left: 10px; }
.liner-foot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 40px; color: var(--muted); font-size: var(--fs-sm); }
.liner-foot b { color: var(--text); font-weight: 500; font-family: var(--serif); font-size: 1.5rem; margin-right: 8px; }
@media (max-width: 640px) {
  .liner-row { grid-template-columns: 1fr; gap: 4px; }
  .liner-role { text-align: left; margin-top: 6px; }
}

/* Manifesto split */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.manifesto-quote {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: var(--fs-2xl); line-height: 1.12; color: var(--text);
}
/* Looping clip of Andrew's hand on the console, quote set over its lower third */
.manifesto-media {
  margin: 0; position: sticky; top: calc(var(--header-h) + 32px);
  isolation: isolate; overflow: hidden; background: var(--ink-2);
}
.manifesto-media video {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  filter: grayscale(1) contrast(1.15) brightness(0.85);
}
.manifesto-media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, #0d3a8c, #06363f); mix-blend-mode: color; opacity: 0.8;
}
.manifesto-media::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(0deg, rgba(5,7,13,0.95) 0%, rgba(5,7,13,0.7) 34%, rgba(5,7,13,0) 62%);
}
.manifesto-media .manifesto-quote {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: clamp(20px, 3vw, 36px); font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.5rem);
}
.manifesto-media .manifesto-quote::before {
  content: ""; display: block; width: 56px; height: 2px; margin-bottom: 18px; background: var(--slash);
}
@media (max-width: 900px) {
  .manifesto-media { position: relative; top: auto; max-width: 520px; }
}

/* ---------- The 5 Mix Decisions (framework diagram) ---------- */
.decisions { overflow: hidden; isolation: isolate; }
.decisions::before {
  content: ""; position: absolute; left: 50%; top: 38%; width: min(1100px, 120vw); height: 520px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(61,139,255,0.10), transparent); pointer-events: none; z-index: -1;
}
.decisions-head { text-align: center; margin-left: auto; margin-right: auto; }
.decisions-head .lede { margin: 0 auto; }
.dtree { position: relative; }
.dtree-root {
  width: 148px; height: 148px; margin: 0 auto; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2px solid var(--blue); background: radial-gradient(circle, rgba(61,139,255,0.16), rgba(5,7,13,0.9) 70%);
  box-shadow: 0 0 0 12px rgba(61,139,255,0.05), 0 0 48px rgba(61,139,255,0.38), inset 0 0 28px rgba(61,139,255,0.22);
  font-family: var(--sans); font-weight: 500; font-size: 2.4rem; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text);
}
.dtree-root span { font-size: 0.8rem; letter-spacing: 0.32em; margin: 0 0 6px 0.32em; color: var(--text-2); }
.dtree-stem { width: 2px; height: 44px; margin: 0 auto; background: var(--blue); box-shadow: 0 0 10px rgba(61,139,255,0.7); transform-origin: top; }
.dtree-bar { height: 2px; margin: 0 10%; background: linear-gradient(90deg, var(--blue), #49a6ff 50%, var(--blue)); box-shadow: 0 0 10px rgba(61,139,255,0.6); }
.dtree-list { list-style: none; margin: 0; padding: 40px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 24px); }
.decision {
  position: relative; text-align: center; padding: 28px 18px 30px;
  border: 1px solid rgba(61,139,255,0.42); border-radius: 16px;
  background: linear-gradient(180deg, rgba(61,139,255,0.08), rgba(5,7,13,0) 65%);
}
.decision::before {
  content: ""; position: absolute; left: 50%; top: -41px; width: 2px; height: 40px; margin-left: -1px;
  background: var(--blue); box-shadow: 0 0 10px rgba(61,139,255,0.6); transform-origin: top;
}
.decision::after {
  content: ""; position: absolute; left: 50%; top: -5px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%;
  background: #8cc2ff; box-shadow: 0 0 10px 2px rgba(61,139,255,0.8);
}
.d-num {
  display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: 0 auto 16px;
  border: 1.5px solid var(--blue); border-radius: 50%;
  font-family: var(--sans); font-weight: 500; font-size: 1.45rem; color: var(--blue); text-shadow: 0 0 12px rgba(61,139,255,0.6);
}
.d-name { font-family: var(--sans); font-weight: 500; font-size: clamp(0.9rem, 0.75rem + 0.35vw, 1.1rem); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); padding-top: 14px; border-top: 1px solid var(--line); }
/* Hover: the decision's name lights up turquoise and steps forward */
.d-word {
  display: inline-block; transform-origin: center;
  transition: color 0.3s var(--ease-out), transform 0.45s var(--ease-out), text-shadow 0.3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .decision:hover .d-word { color: var(--teal); transform: scale(1.22); text-shadow: 0 0 18px rgba(45,226,208,0.5); }
}
@media (max-width: 820px) { .d-word { transform-origin: left center; } }
.d-icon { display: block; width: 64px; height: 64px; margin: 22px auto; fill: none; stroke: var(--blue); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(61,139,255,0.6)); overflow: visible; }
.d-icon .fill { fill: var(--blue); }
.d-icon .dash { stroke-dasharray: 1.2 1.8; stroke-width: 0.8; }
.d-q { margin: 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.35; color: var(--text-2); }
.decisions-foot { margin-top: clamp(40px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.motto { margin: 0; font-size: var(--fs-sm); font-weight: 400; letter-spacing: 0.32em; text-transform: uppercase; color: var(--text-2); }

/* Build sequence: root, stem, bar, then each decision drops in */
.js .dtree .dtree-root { opacity: 0; transform: scale(0.9); transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out); }
.js .dtree .dtree-stem { transform: scaleY(0); transition: transform 0.4s var(--ease-out) 0.4s; }
.js .dtree .dtree-bar { transform: scaleX(0); transition: transform 0.8s var(--ease-out) 0.75s; }
.js .dtree .decision { opacity: 0; transform: translateY(12px); transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: calc(1.3s + var(--i) * 0.12s); }
.js .dtree .decision::before { transform: scaleY(0); transition: transform 0.35s var(--ease-out); transition-delay: calc(1.25s + var(--i) * 0.12s); }
.js .dtree.is-in .dtree-root { opacity: 1; transform: none; }
.js .dtree.is-in .dtree-stem { transform: none; }
.js .dtree.is-in .dtree-bar { transform: none; }
.js .dtree.is-in .decision { opacity: 1; transform: none; }
.js .dtree.is-in .decision::before { transform: none; }

@media (max-width: 1024px) and (min-width: 821px) {
  .decision { padding: 22px 12px 24px; }
  .d-name { letter-spacing: 0.1em; }
  .d-q { font-size: 1.05rem; }
}
/* Phones and small tablets: a vertical spine from The Mix down through the five decisions */
@media (max-width: 820px) {
  .dtree-root { width: 104px; height: 104px; font-size: 1.7rem; margin: 0 0 0 -8px; }
  .dtree-root span { font-size: 0.66rem; }
  .dtree-stem { height: 22px; margin: 0 0 0 43px; }
  .dtree-bar { display: none; }
  .dtree-list { grid-template-columns: 1fr; gap: 16px; padding-top: 16px; }
  .decision {
    display: grid; grid-template-columns: 48px minmax(0, 1fr) 44px; gap: 4px 16px; align-items: center;
    text-align: left; padding: 18px 18px 18px 20px;
  }
  .decision::before { left: 44px; top: -17px; height: 16px; }
  .decision::after { left: 44px; }
  .d-num { grid-row: 1 / span 2; margin: 0; }
  .d-name { grid-column: 2; border-top: 0; padding-top: 0; align-self: end; }
  .d-q { grid-column: 2; font-size: 1.05rem; }
  .d-icon { grid-column: 3; grid-row: 1 / span 2; width: 40px; height: 40px; margin: 0; }
  .decisions-head { text-align: left; }
  .decisions-head .lede { margin: 0; }
}

/* The path: four offers as an ascending ladder */
.ladder { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.ladder-item {
  position: relative; display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto; gap: 8px 32px; align-items: center;
  padding: clamp(24px, 3.4vw, 40px) 0; border-top: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.ladder li:last-child .ladder-item { border-bottom: 1px solid var(--line); }
.ladder-item::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--slash);
  transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease-out);
}
.ladder-item:hover::before, .ladder-item:focus-visible::before { transform: scaleX(1); }
.ladder-step { font-family: var(--serif); font-size: 1.1rem; color: var(--muted); font-feature-settings: "lnum"; }
.ladder-name { font-family: var(--serif); font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.4rem); line-height: 1.1; transition: color 0.3s; }
.ladder-desc { grid-column: 2; color: var(--text-2); font-size: var(--fs-base); max-width: 56ch; }
.ladder-price { grid-row: 1 / span 2; grid-column: 3; text-align: right; }
.ladder-price .amt { font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); color: var(--text); display: block; }
.ladder-price .unit { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ladder-item:hover .ladder-name { color: var(--teal); }
/* depth bar grows with each rung */
.ladder-depth { grid-column: 2; height: 2px; background: var(--line); margin-top: 10px; max-width: 320px; position: relative; overflow: hidden; }
.ladder-depth i { position: absolute; inset: 0 auto 0 0; background: var(--slash); width: var(--d, 25%); }
@media (max-width: 640px) {
  .ladder-item { grid-template-columns: 40px minmax(0, 1fr); }
  .ladder-price { grid-row: auto; grid-column: 2; text-align: left; margin-top: 8px; }
  .ladder-price .amt { display: inline; margin-right: 8px; }
}

/* Mentor teaser */
.mentor { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.mentor-photo { position: relative; }
.mentor-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.mentor-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(61,139,255,0.22), rgba(45,226,208,0.08) 60%, transparent); mix-blend-mode: screen; pointer-events: none;
}
.mentor-photo figcaption { margin-top: 12px; font-size: var(--fs-xs); color: var(--muted); letter-spacing: 0.06em; }
.mentor .h2 { margin-bottom: 1.25rem; }
.mentor .body-copy { margin-bottom: 1.75rem; }
.mentor-names { display: flex; flex-direction: column; gap: 6px; margin: 0 0 2rem; padding: 0; list-style: none; font-family: var(--serif); font-size: 1.35rem; color: var(--text); }
.mentor-names li::before { content: ""; display: inline-block; width: 20px; height: 1px; margin-right: 14px; vertical-align: middle; background: var(--slash); }
@media (max-width: 900px) { .mentor { grid-template-columns: 1fr; } }

/* Closing CTA */
.closing { text-align: left; }
.closing .h2 { max-width: 18ch; margin-bottom: 1.25rem; }
.closing .lede { margin-bottom: 2rem; }

/* Follow along: Instagram strip */
.ig { border-top: 1px solid var(--line); }
.ig-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 28px; }
.ig-head .kicker { margin-bottom: 0.75rem; }
.ig-head .h3 a { color: var(--teal); text-decoration: none; }
.ig-head .h3 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ig-glyph { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }
.ig-glyph .dot { fill: currentColor; stroke: none; }
.ig-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ig-tile { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; isolation: isolate; background: var(--ink-2); }
.ig-tile picture, .ig-tile img { width: 100%; height: 100%; }
.ig-tile img { object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(0.82); transition: transform 0.9s var(--ease-out), filter 0.5s var(--ease-out); }
/* Brand duotone that lifts on hover to show the real photo */
.ig-tile:not(.ig-card)::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(160deg, #0d3a8c, #06363f); mix-blend-mode: color; opacity: 0.8; transition: opacity 0.5s var(--ease-out);
}
.ig-tile:not(.ig-card)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 2px; background: var(--slash);
  transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease-out);
}
.ig-card {
  display: flex; flex-direction: column; justify-content: space-between; padding: clamp(18px, 2vw, 26px);
  text-decoration: none; color: var(--text); border: 1px solid var(--line-strong);
  background: radial-gradient(120% 90% at 100% 0%, rgba(61,139,255,0.22), transparent 60%), var(--ink-2);
  transition: border-color 0.3s;
}
.ig-card .ig-glyph { width: 30px; height: 30px; color: var(--teal); stroke-width: 1.4; }
.ig-handle { font-family: var(--serif); font-size: clamp(1.4rem, 1rem + 1vw, 1.9rem); line-height: 1.1; margin-top: auto; margin-bottom: 8px; }
.ig-cta { font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); }
@media (hover: hover) and (pointer: fine) {
  .ig-tile:hover img { transform: scale(1.04); filter: grayscale(0) contrast(1.02) brightness(0.95); }
  .ig-tile:hover::before { opacity: 0; }
  .ig-tile:hover::after { transform: scaleX(1); }
  .ig-card:hover { border-color: var(--teal); }
  .ig-card:hover .ig-cta { color: var(--teal); }
}
@media (max-width: 640px) {
  /* One swipeable row of tiles, the follow card last */
  .ig-head { margin-bottom: 22px; }
  .ig-head > div { width: 100%; }
  .ig-head .btn { width: 100%; min-height: 52px; }
  .ig-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 64%; gap: 10px;
    overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter);
    scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none;
  }
  .ig-grid::-webkit-scrollbar { display: none; }
  .ig-grid li { scroll-snap-align: start; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(56px, 10vw, 128px)) 0 clamp(40px, 6vw, 72px); }
.page-hero .display { max-width: 16ch; margin-bottom: 1.5rem; }

/* Jump nav (products) */
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2.5rem; padding: 0; list-style: none; }
.jump a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; font-size: var(--fs-sm); color: var(--text-2);
  transition: border-color 0.25s, color 0.25s, background-color 0.25s;
}
.jump a:hover { border-color: var(--teal); color: var(--text); }
.jump a span { color: var(--teal); font-family: var(--serif); font-size: 1.05rem; }

/* ---------- Product blocks ---------- */
.product { border-top: 1px solid var(--line); padding: clamp(56px, 9vw, 112px) 0; scroll-margin-top: var(--header-h); }
.product-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr; } }
.product-meta { display: flex; align-items: baseline; gap: 16px; margin-bottom: 1.25rem; color: var(--muted); font-size: var(--fs-sm); }
.product-meta .step { font-family: var(--serif); font-size: 1.15rem; color: var(--teal); }
.product-name { font-family: var(--serif); font-size: var(--fs-2xl); line-height: 1.06; margin-bottom: 1.5rem; text-wrap: balance; }
.product-name .tm { font-size: 0.4em; vertical-align: super; color: var(--muted); }
.product-name small { display: block; font-family: var(--sans); font-size: var(--fs-xs); letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; font-weight: 500; }
.product .lede { margin-bottom: 2rem; max-width: 52ch; }
.callout {
  max-width: 52ch; margin: -0.75rem 0 2rem; padding: 14px 18px;
  border-left: 2px solid var(--teal); background: rgba(45,226,208,0.06);
  color: var(--text-2);
}
.callout strong { color: var(--teal); font-weight: 500; letter-spacing: 0.04em; margin-right: 4px; }
/* Product shot (toolkit mockup) */
.product-shot { margin: 0 0 2rem; max-width: 640px; }
.product-shot img { width: 100%; height: auto; border: 1px solid var(--line); }
.product-shot figcaption { margin-top: 10px; font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
/* A real photo instead of a mockup: same blue duotone as the site's other photos */
.product-shot.is-photo picture { position: relative; isolation: isolate; overflow: hidden; }
.product-shot.is-photo img { filter: grayscale(1) contrast(1.1) brightness(0.85); }
.product-shot.is-photo picture::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, #0d3a8c, #06363f); mix-blend-mode: color; opacity: 0.75;
}
.product-shot.is-photo picture::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 2px; background: var(--slash);
}
@media (max-width: 640px) {
  .product-shot { margin: 0 calc(-1 * var(--gutter)) 1.5rem; max-width: none; }
  .product-shot img { border-left: 0; border-right: 0; }
  .product-shot figcaption { padding: 0 var(--gutter); letter-spacing: 0.08em; }
}
.includes { list-style: none; margin: 0 0 1rem; padding: 0; border-top: 1px solid var(--line); max-width: 60ch; }
.includes li { position: relative; padding: 14px 0 14px 32px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.includes li::before {
  content: ""; position: absolute; left: 0; top: 1.45em; width: 16px; height: 1px; background: var(--slash);
}
.for-whom { margin-top: 2rem; max-width: 60ch; color: var(--text-2); }
.for-whom h3 { font-family: var(--sans); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }

/* Price panel */
.price-panel {
  position: sticky; top: calc(var(--header-h) + 28px);
  border: 1px solid var(--line-strong); background: linear-gradient(180deg, var(--ink-2), var(--ink));
  padding: clamp(24px, 3vw, 36px);
}
.price-panel::before { content: ""; display: block; height: 2px; margin: calc(-1 * clamp(24px, 3vw, 36px)) calc(-1 * clamp(24px, 3vw, 36px)) clamp(24px, 3vw, 36px); background: var(--slash); }
.price-panel .amt { font-family: var(--serif); font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 1; display: block; }
.price-panel .unit { display: block; margin: 0.6rem 0 1.5rem; color: var(--muted); font-size: var(--fs-sm); }
.price-panel .btn { width: 100%; }
.price-panel .note { margin: 1rem 0 0; font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 900px) { .price-panel { position: static; } }

/* Flagship (mentorship): its own stage — slash rule on top, studio photo behind, lit price panel */
.product-flagship { position: relative; isolation: isolate; border-top: 0; overflow: hidden; }
/* The pseudo-element is sized to the photo (70% wide, 3:2) so the bottom fade lands on the photo's own edge */
.product-flagship::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 47vw; z-index: -1;
  background:
    linear-gradient(90deg, var(--ink) 30%, rgba(5,7,13,0.82) 60%, rgba(5,7,13,0.7)),
    linear-gradient(0deg, var(--ink) 2%, rgba(5,7,13,0) 55%),
    url("../img/mentor-bg-1140.jpg") right top / 70% auto no-repeat;
  background:
    linear-gradient(90deg, var(--ink) 30%, rgba(5,7,13,0.82) 60%, rgba(5,7,13,0.7)),
    linear-gradient(0deg, var(--ink) 2%, rgba(5,7,13,0) 55%),
    image-set(url("../img/mentor-bg-1140.webp") type("image/webp"), url("../img/mentor-bg-1140.jpg") type("image/jpeg")) right top / 70% auto no-repeat;
  filter: grayscale(1);
}
.product-flagship::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--slash);
  box-shadow: 0 0 18px rgba(61,139,255,0.6);
}
.product-flagship .product-name { font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.2rem); }
.product-flagship .product-meta .step { color: var(--blue); }
.product-flagship .price-panel {
  border-color: rgba(61,139,255,0.7);
  box-shadow: 0 0 0 1px rgba(61,139,255,0.15), 0 0 60px rgba(61,139,255,0.18);
  background: linear-gradient(180deg, rgba(37,99,235,0.16), var(--ink-2) 55%);
}
@media (max-width: 900px) {
  .product-flagship::before { height: 87vw; background-size: auto, auto, 130% auto; background-position: 0 0, 0 0, 60% top; }
}

/* ---------- Phone buy bar (products page) ---------- */
.buybar { display: none; }
@media (max-width: 900px) {
  .buybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(5, 7, 13, 0.94); border-top: 1px solid var(--line-strong);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    transform: translateY(110%); transition: transform 0.35s var(--ease-out);
  }
  .buybar.is-visible { transform: none; }
  .bb-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
  .bb-name { font-size: var(--fs-xs); letter-spacing: 0.06em; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bb-price { font-family: var(--serif); font-size: 1.6rem; color: var(--text); }
  .buybar .btn { min-height: 46px; padding: 0.7rem 1.1rem; white-space: nowrap; }
}

/* ---------- Application form ---------- */
.apply { margin-top: clamp(48px, 7vw, 80px); border: 1px solid var(--line-strong); background: var(--ink-2); padding: clamp(24px, 4vw, 48px); max-width: 860px; }
.apply .h3 { margin-bottom: 0.5rem; }
.apply > p { color: var(--text-2); margin-bottom: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: var(--fs-sm); font-weight: 500; color: var(--text); margin-bottom: 8px; }
.field .hint { display: block; font-size: var(--fs-xs); color: var(--muted); margin: -4px 0 8px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--sans); color: var(--text);
  background: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 132px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(45,226,208,0.18); }
.field [aria-invalid="true"] { border-color: #ff7a7a; }
.field .error { display: block; min-height: 1.2em; margin-top: 6px; font-size: var(--fs-xs); color: #ff9a9a; }
.form-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { font-size: var(--fs-sm); color: var(--text-2); }
.form-status.ok { color: var(--teal); }
.form-status.err { color: #ff9a9a; }

/* ---------- Audit intake page ---------- */
.intake-hero { padding-bottom: clamp(24px, 4vw, 40px); }
.intake-section { padding-top: 0; }
.intake { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.intake .apply { margin-top: 0; max-width: none; }
.intake-aside { position: sticky; top: calc(var(--header-h) + 28px); padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(61,139,255,0.08), transparent 70%); }
.intake-aside::before { content: ""; display: block; height: 2px; margin: calc(-1 * clamp(22px, 3vw, 32px)) calc(-1 * clamp(22px, 3vw, 32px)) clamp(22px, 3vw, 32px); background: var(--slash); }
.intake-steps { list-style: none; margin: 0 0 1.75rem; padding: 0; counter-reset: s; }
.intake-steps li { position: relative; padding: 12px 0 12px 40px; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: var(--fs-sm); counter-increment: s; }
.intake-steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 10px; font-family: var(--serif); font-size: 1.25rem; color: var(--teal); }
.intake-steps b { color: var(--text); font-weight: 500; }
.intake-next p { color: var(--text-2); font-size: var(--fs-sm); }
.intake-help { margin: 1.25rem 0 0; font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 900px) {
  .intake { grid-template-columns: 1fr; }
  .intake-aside { position: static; order: -1; }
}

/* ---------- About page ---------- */
.about-hero { position: relative; padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 0; }
.about-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 900px) { .about-hero-grid { grid-template-columns: 1fr; } .about-photo { max-width: 440px; } }
.about-hero .display { margin-bottom: 1.25rem; }
.about-role { font-size: var(--fs-sm); letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal); margin-bottom: 1.5rem; font-weight: 500; }
.about-photo { position: relative; margin: 0; isolation: isolate; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.12) brightness(0.8); }
/* blue duotone + fade into the page so the bright outdoor shot sits in the dark palette */
.about-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, #0d3a8c, #06363f); mix-blend-mode: color; opacity: 0.75; }
.about-photo::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(0deg, var(--ink) 0%, rgba(5,7,13,0) 35%), linear-gradient(200deg, rgba(45,226,208,0.16), transparent 50%); }
.about-photo .frame { position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--line-strong); z-index: -1; }
.studio-band { margin: 0; position: relative; }
.studio-band img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 40%; filter: grayscale(1) contrast(1.1) brightness(0.7); }
.studio-band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #0b2a66, #072c3a); mix-blend-mode: color; opacity: 0.8; }
.studio-band::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(0deg, var(--ink), transparent 40%, transparent 70%, var(--ink)); }
@media (max-width: 640px) { .studio-band img { aspect-ratio: 4 / 3; } }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 28px 20px 28px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact dt { font-size: var(--fs-sm); color: var(--muted); order: 2; }
.fact dd { margin: 0 0 6px; font-family: var(--serif); font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.8rem); line-height: 1.05; color: var(--text); }
.fact { display: flex; flex-direction: column; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.facts-source { margin-top: 12px; font-size: var(--fs-xs); color: var(--muted); }
.facts-source a { color: var(--text-2); }

/* Timeline: a real sequence, so it's numbered by year */
.timeline { position: relative; }
.tl-list { list-style: none; margin: 0; padding: 0; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline-progress { position: absolute; left: 7px; top: 8px; width: 1px; height: calc(var(--p, 0) * (100% - 16px)); background: var(--slash); background: linear-gradient(180deg, var(--blue), var(--teal)); }
.tl-item { position: relative; display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 32px; padding: 0 0 clamp(36px, 5vw, 56px) 44px; }
.tl-item::before {
  content: ""; position: absolute; left: 2px; top: 0.55em; width: 11px; height: 11px; border-radius: 50%;
  background: var(--ink); border: 1px solid var(--line-strong); transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.tl-item.is-lit::before { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 0 5px rgba(45,226,208,0.14); }
.tl-when { font-family: var(--serif); font-size: 1.35rem; color: var(--teal); line-height: 1.3; }
.tl-what h3 { font-family: var(--serif); font-size: var(--fs-xl); line-height: 1.15; margin-bottom: 0.5rem; }
.tl-what p { color: var(--text-2); max-width: 58ch; margin: 0; }
@media (max-width: 640px) { .tl-item { grid-template-columns: 1fr; padding-left: 36px; } }

.artist-wall { display: flex; flex-wrap: wrap; gap: 0.15em 0.6em; font-family: var(--serif); font-size: clamp(1.7rem, 1.1rem + 2.4vw, 3.2rem); line-height: 1.2; color: var(--text-2); margin: 0; padding: 0; list-style: none; }
.artist-wall li:nth-child(3n+1) { color: var(--text); }
.artist-wall li:nth-child(4n+2) { font-style: italic; }
.artist-wall li + li::before { content: "·"; color: var(--blue); margin-right: 0.6em; font-style: normal; }
.artist-note { margin-top: 1.5rem; font-size: var(--fs-sm); color: var(--muted); max-width: 70ch; }

/* ==========================================================================
   Phone pass (most visitors). Tighter rhythm, thumb-sized actions,
   shorter scroll through proof, nothing that only works with a mouse.
   ========================================================================== */
a, button { -webkit-tap-highlight-color: transparent; }
@media (max-width: 640px) {
  :root { --gutter: 20px; }

  /* Rhythm: desktop spacing reads as dead air on a 6-inch screen */
  .section { padding: 64px 0; }
  .section-tight { padding: 48px 0; }
  .slash-divider { padding: 28px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head .h2 { margin-bottom: 1rem; }

  /* Type: keep the serif drama, calm the body sizes */
  .h2 { font-size: clamp(2rem, 1.2rem + 4vw, 2.4rem); line-height: 1.1; }
  .lede { font-size: 1.125rem; line-height: 1.6; }
  .kicker { font-size: 0.75rem; letter-spacing: 0.2em; margin-bottom: 1rem; }

  /* Every button row becomes a full-width stack: easy thumb targets, even edges */
  .btn-row { flex-direction: column; gap: 10px; }
  .btn-row .btn { width: 100%; min-height: 52px; }

  /* Hero: tighter stack so the headline sits below Andrew's face */
  .hero .display { font-size: clamp(2.5rem, 1.6rem + 5vw, 3rem); margin-bottom: 1.1rem; }
  .hero .lede { margin-bottom: 1.75rem; }

  /* Credits: two-line entries instead of three, so the list is a quick read */
  .liner-row {
    grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 16px 0;
  }
  .liner-title { grid-column: 1 / -1; font-size: 1.45rem; }
  .liner-artist { font-size: 0.95rem; align-self: baseline; }
  .liner-role { margin-top: 0; font-size: 0.68rem; letter-spacing: 0.12em; text-align: right; align-self: baseline; }
  .liner-role .yr { margin-left: 6px; }
  .liner-foot { margin-top: 20px; gap: 6px 28px; }

  /* Manifesto clip: square, so it doesn't eat a full screen of scroll */
  .manifesto-media { max-width: none; }
  .manifesto-media video { aspect-ratio: 1 / 1; }
  .manifesto-media .manifesto-quote { font-size: 1.45rem; padding: 18px; }

  /* Decisions: slightly smaller cards */
  .decision { padding: 16px 16px 16px 18px; }
  .d-q { font-size: 1rem; }

  /* Program ladder: drop the number column, show "Step 1" as a small label */
  .ladder-item { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 24px 0; }
  .ladder-step, .ladder-name, .ladder-desc, .ladder-price, .ladder-depth { grid-column: 1; }
  .ladder-step { font-family: var(--sans); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); }
  .ladder-step::before { content: "Step "; }
  .ladder-name { font-size: 1.6rem; }
  .ladder-price { margin-top: 2px; }
  .ladder-price .amt { font-size: 1.5rem; }
  .ladder-desc { font-size: 1rem; }
  .ladder-depth { max-width: none; margin-top: 8px; }

  /* Mentor teaser */
  .mentor-names { font-size: 1.25rem; }

  /* Products: jump chips become one swipeable row instead of a ragged wrap */
  .jump {
    flex-wrap: nowrap; overflow-x: auto; margin: 2rem calc(-1 * var(--gutter)) 0; padding: 2px var(--gutter);
    scroll-snap-type: x proximity; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
            mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .jump::-webkit-scrollbar { display: none; }
  .jump li { flex: none; scroll-snap-align: start; }
  .jump a { white-space: nowrap; }
  .product { padding: 56px 0; }
  .product-meta { flex-wrap: wrap; gap: 4px 12px; }
  .product-meta .step { white-space: nowrap; }
  .product-name { margin-bottom: 1.1rem; }
  .product .lede { margin-bottom: 1.5rem; }
  .callout { margin: -0.25rem 0 1.5rem; }
  .includes li { padding: 12px 0 12px 28px; font-size: 1rem; }
  .product-flagship .product-name { font-size: 2.4rem; }
  .apply { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); border-left: 0; border-right: 0; padding: 32px var(--gutter); }
  .field input, .field select, .field textarea { font-size: 16px; } /* 16px stops iOS zooming into fields */

  /* About */
  .about-hero .display { font-size: clamp(2.6rem, 1.6rem + 5vw, 3.2rem); }
  .about-photo { max-width: none; margin-right: 14px; }
  .fact { padding: 22px 12px 22px 0; }
  .fact + .fact { padding-left: 16px; }
  .tl-item { padding-bottom: 32px; gap: 4px; }
  .tl-what h3 { font-size: 1.5rem; }

  /* Footer */
  body .site-footer { padding: 44px 0 32px; }
  body .footer-grid img { height: 52px; }
  body .footer-base { margin-top: 32px; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-grid img { height: 64px; width: auto; margin-bottom: 16px; }
.footer-grid h2 { font-family: var(--sans); font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-2); font-weight: 500; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { text-decoration: none; color: var(--muted); transition: color 0.2s; display: inline-block; padding: 4px 0; }
.footer-grid a:hover { color: var(--teal); }
.footer-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: var(--fs-xs); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Scroll reveal (used sparingly) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .rise, .js .reveal { opacity: 1; transform: none; }
  .js .hero-media img { transform: none; }
  .js .slash .rail { stroke-dashoffset: 0; }
  .js .slash .blade { opacity: 1; transform: none; }
}
