/* ============ SOUND PRO ACADEMY ============ */

:root {
  --white: #fafaf8;
  --black: #0a0a0a;
  --ink: #111110;
  --grey: #6f6d68;
  --hairline: rgba(10, 10, 10, 0.12);
  /* Accent tokens — currently a monochrome B&W system to match the
     black-and-white footage. Kept under the old names so the whole site can
     be swapped back to colour by editing just these three values.
     (e.g. gold: #f0b429 / #d99a2b / #a87616) */
  --gold: #f4f4f0;      /* on-dark accent: near-white (eyebrows, rules, CTA) */
  --gold-deep: #d7d7d2; /* on-dark, slightly dimmed */
  --gold-dark: #1c1c19; /* on-light accent: near-black */
  --font-display: "Anton", Impact, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  /* Hero video darkening overlay: 0 = no darkening, 1 = fully black.
     Raise this if the title text is hard to read over the footage. */
  --hero-overlay-opacity: 0.7;

  /* Macro (Trained Perception) video darkening overlay: 0 = none, 1 = fully black.
     Raise this if the text is hard to read over the footage. */
  --macro-overlay-opacity: 0.4;

  /* Macro (Trained Perception) positioning controls. On desktop the headline
     (left) and the quote box (right) share ONE top reference so their tops
     line up; tweak these to move things — no layout code needs to change.
     (vh = % of screen height, vw = % of screen width.) */
  --macro-margin-desktop: 8vw;         /* headline left edge / quote right edge, desktop */
  --macro-block-top-desktop: 20vh;     /* shared top of BOTH headline & quote, desktop */
  --macro-lines-nudge-desktop: 5vh;    /* fine vertical nudge of quote vs headline (0 = tops aligned) */
  --macro-head-top-mobile: 14vh;       /* headline distance from top, mobile only */
  --macro-lines-bottom-mobile: 18vh;   /* quote distance from bottom, mobile */
  --macro-lines-nudge-mobile: 0vh;     /* push the quote card UP (negative) or DOWN (positive), mobile */
  --macro-lines-margin-mobile: 10vw;   /* quote left/right margin, mobile only */

  /* Video blur, per section (px). 0 = sharp, raise for a softer/frosted look. */
  --hero-video-blur: 0px;
  --macro-video-blur: 3px;
  --method-video-blur: 0px;

  /* Method (Sonic Modeling) video darkening overlay: 0 = none, 1 = fully black.
     Raise this if the callout text is hard to read over the footage. */
  --method-overlay-opacity: 0.6;

  /* Method (Sonic Modeling) code cards (SM-01…SM-04) vertical position.
     NEGATIVE moves them UP, POSITIVE moves them DOWN. Must be a real length
     with a unit — e.g. -6vh, 40px. ("-0vh" is zero = no movement!)
     Desktop: offset from dead-centre. Mobile: offset from its bottom anchor. */
  --method-specs-nudge-desktop: 10vh;
  --method-specs-nudge-mobile: -18vh;

  /* Students collage flat darkening wash: 0 = none, 1 = fully black. Sits
     under the bottom-heavy caption gradient (same pattern as the other
     sections above) so the whole photo reads a touch darker/moodier, not
     just its base. */
  --collage-overlay-opacity: 0.32;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Global safety net: an image can never exceed its container, even if a more
   specific rule fails to load (e.g. a stale cached stylesheet). */
img { max-width: 100%; height: auto; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  /* Black by default so first paint / overscroll never flashes white — every
     light section paints its own white via .light. */
  background: var(--black);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #c9c9c4; color: var(--black); }

.dark { background: var(--black); color: var(--white); }
.light { background: var(--white); color: var(--ink); }

/* ===== Loader — black veil that covers first paint + reload settle ===== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 300; /* above nav (50) and modal (100) */
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.3rem;
  opacity: 1;
  transition: opacity 0.6s ease;
}
.loader.is-done {
  opacity: 0;
  pointer-events: none;
}
.loader__brand {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.55);
}
.loader__bar {
  width: 160px;
  height: 2px;
  background: rgba(250, 250, 248, 0.14);
  overflow: hidden;
  border-radius: 2px;
}
/* Width is driven from JS (main.js) as real load progress fills in.
   No CSS transition — the JS eases the value every frame, so a
   transition here would only lag behind it. */
.loader__fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--white);
  will-change: width;
}
.loader__pct {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(250, 250, 248, 0.4);
  font-variant-numeric: tabular-nums; /* digits don't jitter as they count */
}
@media (prefers-reduced-motion: reduce) {
  .loader { transition: none; }
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 6vw;
}

/* ---------- Type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 8.5vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--black);
}
.display--onblack { color: var(--white); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 1.6rem;
}
.eyebrow.gold { color: var(--gold); }

.gold-dark { color: var(--gold-dark); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 3vw;
  mix-blend-mode: difference;
}
.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.nav__cta { opacity: 0.85; }
.nav__cta:hover { opacity: 1; }

/* ---------- Canvas stages ---------- */

.seq-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#canvas-hero { filter: blur(var(--hero-video-blur)); }
#canvas-macro { filter: blur(var(--macro-video-blur)); }
#canvas-method { filter: blur(var(--method-video-blur)); }

/* ---------- 1. Hero ---------- */

.hero { position: relative; background: var(--black); }
/* Dark base behind the canvas so there's no white flash on load/reload:
   the <canvas> is transparent until its first frame is drawn, and without
   this the white <body> would show through for a beat. */
.hero__stage {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--black);
}
.hero .seq-canvas { background: var(--black); }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--hero-overlay-opacity));
  pointer-events: none;
}
.hero__title-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  pointer-events: none;
  padding: 0 4vw;
}
.hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.55);
  margin-bottom: 2rem;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.4rem, 11vw, 11rem);
  line-height: 0.95;
  color: var(--white);
  text-transform: uppercase;
}
.hero__title .tline { display: block; }
.hero__title .char { display: inline-block; }
/* Typewriter caret — rides along behind the cursor as the headline types in,
   blinks while waiting, then JS fades it out once the line is complete. */
.hero__caret {
  display: inline-block;
  width: 0.055em;
  height: 0.78em;
  margin-left: 0.05em;
  background: var(--white);
  vertical-align: baseline;
  transform: translateY(0.02em);
  animation: heroCaretBlink 0.9s steps(1, end) infinite;
}
@keyframes heroCaretBlink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero__caret { display: none; }
}
.hero__sub {
  margin-top: 2.2rem;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(250, 250, 248, 0.6);
}
/* Mid-scroll prompt — fades in ~70% through the pinned hero, teeing up
   the problem section that answers it. JS drives the opacity. */
.hero__prompt {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1.4rem;
  padding: 0 6vw;
  pointer-events: none;
  opacity: 0;
}
.hero__prompt-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero__prompt-line {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.01em;
  font-size: clamp(2.6rem, 7vw, 6rem);
  color: var(--white);
}
.hero__prompt-cue {
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.65);
}
.hero__prompt-arrow {
  color: rgba(250, 250, 248, 0.85);
  animation: nudge 1.8s ease-in-out infinite;
}
@keyframes nudge {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(8px); opacity: 1; }
}

.hero__scrollcue {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.45);
}
.hero__scrollcue-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(250, 250, 248, 0.9), transparent);
  animation: cue 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(18px); opacity: 0; }
}

/* ---------- 2. Problem ---------- */

.problem { padding: 22vh 0 20vh; }

/* ---------- Highlight marks ----------
   Inverted "chip" highlights (like the original 100%. block) that WIPE IN
   left-to-right as they scroll into view — a repeated motif across the site
   to pull the eye to the key phrase and lift retention.
   .mark            → dark chip / white text  (use on LIGHT sections)
   .mark--onblack   → white chip / dark text  (use on DARK sections)
   JS adds .is-lit when the phrase enters the viewport. Before it lights, the
   text simply sits in its normal colour, so it's always readable. */
.mark, .hundred {
  display: inline-block;
  padding: 0 0.22em;
  line-height: 1;
  color: var(--black);
  background-image: linear-gradient(var(--black), var(--black));
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 0% 100%;
  transition: background-size 0.55s cubic-bezier(0.65, 0, 0.35, 1),
              color 0.3s ease 0.12s;
}
.mark.is-lit, .hundred.is-lit { background-size: 100% 100%; color: var(--white); }
.mark--onblack {
  color: var(--white);
  background-image: linear-gradient(var(--white), var(--white));
}
.mark--onblack.is-lit { color: var(--black); }
@media (prefers-reduced-motion: reduce) {
  .mark, .hundred { background-size: 100% 100%; color: var(--white); transition: none; }
  .mark--onblack { color: var(--black); }
}
.problem__punch {
  max-width: 620px;
  margin-top: 3.5rem;
  color: var(--black);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.35;
}
.problem__symptoms {
  list-style: none;
  margin-top: 6rem;
  border-top: 1px solid var(--hairline);
}
.problem__symptoms li {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.2vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: rgba(10, 10, 10, 0.25);
  transition: color 0.4s ease;
}
.problem__symptoms li.lit { color: var(--black); }

/* ---------- 3. Macro ---------- */

.macro { position: relative; }
.macro__stage {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.macro__waveform {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 22vh;
  pointer-events: none;
  opacity: 0.5;
}
.macro__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--macro-overlay-opacity));
  pointer-events: none;
}
.macro__copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8vw;
  pointer-events: none;
}

/* Headline: pinned top-left at the shared block-top so it lines up with the
   quote box on the right. */
.macro__head {
  position: absolute;
  top: var(--macro-block-top-desktop);
  left: var(--macro-margin-desktop);
  max-width: 720px;
}
.macro__head .display { font-size: clamp(2.2rem, 5.4vw, 4.6rem); }

/* Lines: pinned top-right at the SAME block-top (plus an optional nudge) so
   the quote box aligns with the headline. JS crossfades them one at a time.
   Presented as frosted gold-ruled pull-quotes so they read as distinct
   "insights" rather than more of the same display headline. */
.macro__lines {
  position: absolute;
  top: calc(var(--macro-block-top-desktop) + var(--macro-lines-nudge-desktop));
  right: var(--macro-margin-desktop);
  width: min(440px, 38vw);
}
.macro__line {
  /* anchored to the top of the box; multi-line text grows downward. */
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  margin: 0;
  padding: 1.3rem 1.5rem 1.3rem 1.6rem;
  border-left: 2px solid var(--gold);
  background: rgba(10, 10, 10, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.42;
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  color: rgba(250, 250, 248, 0.95);
}
/* Balanced typographic quotes hugging the text (open + close). */
.macro__line span::before { content: "\201C"; color: var(--gold); font-weight: 700; }
.macro__line span::after { content: "\201D"; color: var(--gold); font-weight: 700; }

/* ---------- 4. Method ---------- */

.method { position: relative; }
.method__stage {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.method__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--method-overlay-opacity));
  pointer-events: none;
}
.method__head {
  position: absolute;
  top: 10vh;
  left: 8vw;
  right: 8vw;
}
.method__head .display { font-size: clamp(2.4rem, 6vw, 5rem); }
.method__enemy {
  margin-top: 1.4rem;
  max-width: 440px;
  color: rgba(250, 250, 248, 0.68);
  font-size: 1.02rem;
  line-height: 1.5;
}
/* Callouts sit centered on the LEFT — aligned to the same left margin as the
   headline and body copy above them. Each spec crossfades in place as a
   frosted, gold-ruled card. */
.method__callouts {
  position: absolute;
  left: 8vw;
  top: calc(50% + var(--method-specs-nudge-desktop));
  transform: translateY(-50%);
  width: min(440px, 80vw);
  /* reserve height so the vertical centering holds across specs of
     different lengths (they're absolutely stacked inside). */
  min-height: 220px;
}
.spec {
  position: absolute;
  left: 0;
  top: 50%;
  /* vertical centering (yPercent:-50) is applied in JS so it composes with
     GSAP's x animation instead of being overwritten by it. */
  width: 100%;
  padding: 1.4rem 1.6rem 1.5rem 1.7rem;
  border-left: 2px solid var(--gold);
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 28px 70px -28px rgba(0, 0, 0, 0.75);
  opacity: 0;
}
.spec__num {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold);
}
.spec h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0.6rem 0 0.7rem;
  color: var(--white);
}
.spec p {
  font-size: 0.96rem;
  line-height: 1.5;
  color: rgba(250, 250, 248, 0.72);
}

/* ---------- 5. Proof ---------- */

.proof { padding: 22vh 0; }
.proof__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem;
  margin-top: 5rem;
}
.proof__card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.proof__card p { color: var(--grey); font-size: 0.98rem; }
.proof__stat {
  margin-top: 7rem;
  border-top: 1px solid var(--hairline);
  padding-top: 3rem;
}
.proof__stat-line {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  text-transform: uppercase;
  line-height: 1.15;
}
.strike { text-decoration: line-through; text-decoration-thickness: 3px; color: rgba(10,10,10,0.3); }
.proof__stat-note { margin-top: 1rem; color: var(--grey); max-width: 480px; }

/* ---- case-study media cards (real video + before/after audio) ---- */
.proof__sub {
  margin-top: 2.2rem;
  max-width: 560px;
  color: var(--grey);
  font-size: 1.05rem;
}
.cases {
  margin-top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 6.5rem;
}
.case {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.4rem 3.5rem;
  align-items: center;
}
.case__rule {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.case__num {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dark);
  white-space: nowrap;
}
.case__ruleline {
  flex: 1;
  height: 1px;
  background: var(--hairline);
  transform-origin: left center;
}
.case--right .case__video { order: 2; }
.case--right .case__info { order: 1; }

.case__video {
  position: relative;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--hairline);
  will-change: clip-path;
}
.case__poster,
.case__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  display: block;
}
.case__poster { cursor: pointer; will-change: transform; }
.case__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 1px solid rgba(250, 250, 248, 0.5);
  background: rgba(10, 10, 10, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.case__play svg { width: 26px; height: 26px; fill: var(--white); margin-left: 3px; transition: fill 0.25s ease; }
.case__play:hover { transform: translate(-50%, -50%) scale(1.08); background: var(--gold); border-color: var(--gold); }
.case__play:hover svg { fill: #0a0a0a; }

.case__info {
  border-left: 2px solid var(--gold);
  padding-left: clamp(1.4rem, 2.5vw, 2.2rem);
}

.case__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--black);
}
.case__desc {
  margin: 1rem 0 1.8rem;
  color: var(--grey);
  font-size: 0.98rem;
}
.case__desc b { color: var(--black); font-weight: 600; }

/* before/after audio player — flat editorial rows */
.ab { display: flex; flex-direction: column; border-top: 1px solid var(--hairline); }
.ab__player {
  padding: 1rem 0 1.15rem;
  border-bottom: 1px solid var(--hairline);
}
.ab__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 0.6rem;
}
.ab__player--after .ab__label { color: var(--gold-dark); }
.ab__row { display: flex; align-items: center; gap: 0.8rem; }
.ab__btn {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(10, 10, 10, 0.3);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.ab__btn:hover { background: rgba(10, 10, 10, 0.06); }
.ab__btn svg { width: 12px; height: 12px; fill: var(--ink); }
.ab__player--after .ab__btn { border-color: rgba(168, 118, 22, 0.55); }
.ab__player--after .ab__btn svg { fill: var(--gold-dark); }
.ab__player--after .ab__btn:hover { background: rgba(240, 180, 41, 0.15); }
.ab__time, .ab__dur {
  font-size: 0.75rem;
  color: var(--grey);
  font-variant-numeric: tabular-nums;
  min-width: 30px;
}
.ab__dur { text-align: right; }
.ab__track {
  flex: 1;
  height: 3px;
  background: var(--hairline);
  position: relative;
  cursor: pointer;
}
.ab__fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0%;
  background: rgba(10, 10, 10, 0.45);
}
.ab__player--after .ab__fill { background: var(--gold-dark); }

/* ---- students collage — full-bleed, scroll-driven proof moment ----
   A dark island inside the light .proof section — matching the dark/light
   rhythm the rest of the site uses (hero/macro/method are all dark), so this
   doesn't read as a break in the pattern. As it scrolls into view the image
   band wipes in from right to left (JS scrubs its clip-path), revealing the
   collage — following the same scroll logic as the rest of the site.
   It's a direct sibling of .container (see index.html), so it spans the
   section's full width natively — no 100vw/50vw math, which is fragile
   whenever a scrollbar makes vw and % disagree.
   The band is locked to the image's REAL aspect ratio so the photo is never
   cropped: on desktop it's a wide cinematic strip with the caption over its
   darkened base; on mobile it becomes a shorter ribbon with the caption
   stacked cleanly above it (a headline would never fit legibly on top of a
   short, wide image). */
.collage {
  position: relative;
  width: 100%;
  margin: 9rem 0;
  background: var(--black);
}
.collage__band {
  position: relative;
  width: 100%;
  aspect-ratio: 2442 / 741;   /* real ratio of students-collage.jpg — no crop */
  overflow: hidden;
  background: #0a0a0a;
  will-change: clip-path;
}
.collage__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.collage__img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* band matches the image ratio, so this never crops */
  display: block;
}
.collage__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* two layers: a bottom-heavy gradient so the caption stays legible, plus a
     flat wash (--collage-overlay-opacity) over the whole band — matching the
     darkening treatment used on the hero/macro/method footage. */
  background:
    linear-gradient(to top, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.05) 42%, rgba(10, 10, 10, 0.3) 100%),
    rgba(10, 10, 10, var(--collage-overlay-opacity));
}
.collage__cap {
  position: absolute;
  left: 6vw;
  right: 6vw;
  bottom: clamp(2.5rem, 7vh, 6rem);
  z-index: 2;
}
.collage__eyebrow { color: var(--gold); margin-bottom: 1rem; }
.collage__head {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--white);
  max-width: 14ch;
}
.collage__hint {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: rgba(250, 250, 248, 0.5);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.collage__hint code {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
}
.collage__media.is-empty { background: #101010; }
.collage__media.is-empty .collage__img { display: none; }
.collage__media.is-empty .collage__hint { display: flex; }

/* Mobile: the wide ribbon is too short to hold the headline — lift the
   caption OUT of the image and stack it above, both still on the figure's
   own black background (colors stay the on-dark defaults above). */
@media (max-width: 820px) {
  .collage { margin: 5rem 0; padding-top: 2.75rem; }
  .collage__cap {
    position: static;
    left: auto; right: auto; bottom: auto;
    max-width: 1080px;
    padding: 0 6vw;
    margin: 0 auto 1.5rem;
  }
  .collage__head { max-width: none; }
}

.proof__more {
  margin-top: 3rem;
  color: var(--grey);
  font-size: 0.98rem;
}
.proof__more a { color: var(--gold-dark); text-decoration: none; border-bottom: 1px solid rgba(168, 118, 22, 0.4); padding-bottom: 1px; }
.proof__more a:hover { border-color: var(--gold-dark); }

@media (max-width: 820px) {
  .cases { gap: 4.5rem; }
  .case { grid-template-columns: 1fr; gap: 1.6rem; }
  .case--right .case__video { order: 0; }
  .case--right .case__info { order: 0; }
  .case__info { padding-left: 1.2rem; }

  /* Macro: title above the subject, lines below it, both full-width & centered. */
  .macro__copy {
    justify-content: flex-start;
    padding: var(--macro-head-top-mobile) 6vw 0;
  }
  .macro__head {
    position: static;        /* desktop pins it absolutely; mobile flows it */
    top: auto;
    left: auto;
    max-width: 100%;
    text-align: center;
    margin-top: 0;
  }
  .macro__head .display { font-size: clamp(1.7rem, 7.5vw, 2.4rem); }
  .macro__lines {
    top: auto;
    /* negative nudge = card moves UP, positive = DOWN */
    bottom: calc(var(--macro-lines-bottom-mobile) - var(--macro-lines-nudge-mobile));
    right: auto;
    left: 0;
    width: 100%;
  }
  /* Mobile keeps the SAME frosted, gold-ruled card graphic as desktop (all the
     card visuals — border, background, blur, shadow, quote marks — are inherited
     from the base .macro__line rule). Only the LAYOUT changes here: the card is
     anchored to the bottom of the frame and spans the screen width. */
  .macro__lines-kicker { display: none; }
  .macro__line {
    /* anchored to the BOTTOM of the box (matches .macro__lines using
       `bottom`) so multi-line text grows upward — otherwise it gets
       clipped by the section's overflow:hidden edge.
       left/right set directly here (not padding on the parent) because
       an absolutely positioned box ignores its parent's padding. */
    top: auto;
    bottom: 0;
    left: var(--macro-lines-margin-mobile);
    right: var(--macro-lines-margin-mobile);
    padding: 1.1rem 1.2rem 1.1rem 1.3rem;
    font-size: clamp(0.88rem, 3.6vw, 1.05rem);
  }

  /* Method: headline sits at the top, cards drop to the BOTTOM of the frame
     so they never cover the headline + intro paragraph (which they did when
     vertically centered on a narrow screen). */
  .method__head { top: 7vh; }
  .method__head .display { font-size: clamp(1.7rem, 7.5vw, 2.6rem); }
  .method__callouts {
    left: 6vw; right: 6vw; width: auto;
    top: auto;
    /* negative nudge = cards move UP, positive = DOWN */
    bottom: calc(7vh - var(--method-specs-nudge-mobile));
    transform: none;
    min-height: 0;
  }
  .spec { top: auto; bottom: 0; }
}

/* ---------- 6. Apply ---------- */

.apply {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 18vh 0;
  /* near-black with a whisper of gold in one corner for depth. Swap for a
     background-image here later if a real photo is dropped in. */
  background:
    radial-gradient(120% 90% at 85% 15%, rgba(240, 180, 41, 0.06), rgba(0, 0, 0, 0) 55%),
    #060606;
}
/* Placeholder atmosphere graphic retired in favour of a clean dark field. */
.apply__canvas { display: none; }
.apply__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 6vw;
}
.apply__note {
  margin-top: 2.2rem;
  max-width: 440px;
  color: rgba(250, 250, 248, 0.7);
}
.apply__form {
  margin-top: 3.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  max-width: 560px;
}
.apply__fitnote {
  margin-top: 1rem;
  max-width: 440px;
  font-size: 0.82rem;
  color: rgba(250, 250, 248, 0.5);
}
.apply__input {
  flex: 1 1 260px;
  background: transparent;
  border: 1px solid rgba(250, 250, 248, 0.25);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 1rem 1.2rem;
  outline: none;
  border-radius: 0;
}
.apply__input:focus { border-color: var(--gold); }
.apply__input::placeholder { color: rgba(250, 250, 248, 0.35); }
.apply__btn {
  flex: 0 0 auto;
  background: var(--gold);
  color: var(--black);
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: background 0.25s ease;
}
.apply__btn:hover { background: #ffffff; }
.apply__confirm { margin-top: 2rem; color: var(--gold); font-weight: 500; }
.apply__cta { margin-top: 3.2rem; }

/* ---------- 7. FAQ ---------- */

.faq { padding: 18vh 0 16vh; }
.faq__list { margin-top: 4rem; border-top: 1px solid var(--hairline); }
.faq__item { border-bottom: 1px solid var(--hairline); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  padding: 1.5rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.4;
}
.faq__q::-webkit-details-marker { display: none; }
/* plus → minus indicator */
.faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--ink);
  transition: transform 0.25s ease;
}
.faq__icon::before { width: 14px; height: 2px; }
.faq__icon::after { width: 2px; height: 14px; }
.faq__item[open] .faq__icon::after { transform: rotate(90deg); }
.faq__a {
  padding: 0 2.4rem 1.7rem 0;
  max-width: 720px;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--grey);
}

/* ---------- 8. About / Founder ---------- */
/* Copy-only for now — the founder portrait was removed and will be rebuilt
   from scratch later. Keep this section free of image/wipe logic until then. */

.about { position: relative; overflow: hidden; }
.about__inner {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 100vh;
}
.about__media {
  /* Full-height column down the left edge of the section */
  flex: 0 0 46%;
  align-self: stretch;
  overflow: hidden;
}
.about__photo {
  display: block;
  width: 100%;
  height: 100%;
  /* Fill the column edge-to-edge without distortion; the image's black margins
     get trimmed rather than the subject. object-position keeps the face framed. */
  object-fit: cover;
  object-position: center 32%;
}
.about__copy {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12vh 8vw 12vh 6vw;
  max-width: 760px;
}
.about__copy .display { font-size: clamp(2.4rem, 5vw, 4.4rem); margin-bottom: 2.2rem; }
.about__lead {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.5;
  color: var(--white);
  margin-bottom: 1.6rem;
}
.about__body {
  font-size: 1rem;
  line-height: 1.72;
  color: rgba(250, 250, 248, 0.68);
  margin-bottom: 1.2rem;
}
.about__body em { color: var(--white); font-style: italic; }
.about__sign {
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}

@media (max-width: 820px) {
  .about__inner {
    flex-direction: column;
    min-height: 0;
    padding: 0;
  }
  /* Full-bleed photo: full viewport width, no dark margins around it */
  .about__media {
    flex: 0 0 auto;
    width: 100%;
    height: 70vh;
  }
  .about__copy { padding: 9vh 8vw 12vh; max-width: 100%; }
}

/* ---------- Apply modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
}
/* the display:flex above would override the `hidden` attribute's UA style,
   so the closed state needs an explicit rule. */
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal__card {
  position: relative;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #0d0d0c;
  border: 1px solid rgba(250, 250, 248, 0.14);
  border-left: 2px solid var(--gold);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9);
  padding: 2.6rem 2.4rem 2.4rem;
  color: var(--white);
}
.modal__close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(250, 250, 248, 0.6);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}
.modal__close:hover { color: var(--white); }
.modal__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.5vw, 2.3rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.modal__note {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(250, 250, 248, 0.65);
}
.modal__form {
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
/* same `hidden`-vs-display:flex clash as .modal[hidden] above: after a
   successful submit JS hides the form, so the attribute must win. */
.modal__form[hidden] { display: none; }
/* the base .apply__input rule sets flex: 1 1 260px for the old inline row —
   inside the modal's COLUMN flex that basis becomes a 260px HEIGHT, so the
   modal's inputs reset to natural height. */
.modal__form .apply__input { flex: 0 0 auto; }
.modal__row { display: flex; gap: 0.8rem; }
.modal__row .apply__input { flex: 1 1 0; min-width: 0; }
.modal__submit { margin-top: 0.6rem; }
.apply__input.is-invalid { border-color: #c0392b; }
@media (max-width: 480px) {
  .modal__row { flex-direction: column; }
  .modal__card { padding: 2.2rem 1.5rem 1.8rem; }
}

/* ---------- Footer ---------- */

.footer {
  padding: 4rem 6vw 3.5rem;
  border-top: 1px solid var(--hairline);
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__brand {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
}
.footer__tag { font-size: 0.8rem; color: var(--grey); letter-spacing: 0.08em; }
.footer__disclaimer {
  margin-top: 2.4rem;
  max-width: 720px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--grey);
}
.footer__legal { margin-top: 1.6rem; }
.footer__doc { border-top: 1px solid var(--hairline); }
.footer__doc summary {
  padding: 0.9rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}
.footer__doc summary::-webkit-details-marker { display: none; }
.footer__doc summary::after { content: " +"; }
.footer__doc[open] summary::after { content: " –"; }
.footer__doc summary:hover { color: var(--ink); }
.footer__doc p {
  padding: 0 0 1.2rem;
  max-width: 720px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--grey);
}
.footer__copy {
  margin-top: 2.4rem;
  font-size: 0.72rem;
  color: var(--grey);
}

/* ---------- Reveal helpers (JS animates) ---------- */

.reveal, .reveal-lines .line { will-change: transform, opacity; }
.reveal-lines .line { display: block; }

@media (prefers-reduced-motion: reduce) {
  .hero__scrollcue-line { animation: none; }
}
