@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300;1,9..40,400&display=swap');

/* =============================================================================
   tokens.css — Venture Factory Design Token System — v1.2
   Load order: tokens.css FIRST, base.css SECOND. Never reversed.

   ── HOW THIS FILE WORKS ──────────────────────────────────────────────────────

   LAYER 1  RAW INPUTS          The only lines a new venture touches.
                                Change these and everything cascades down.

   LAYER 2  COLOUR SCALES        Auto-derived via color-mix(). Do not edit.
                                brand-500 = --input-brand.
                                accent-500 = --input-accent.
                                sand-100 = --input-sand.

   LAYER 3  SEMANTIC ALIASES     --color-bg, --color-text, --color-accent etc.
                                All reference Layer 2. Never hardcode hex here.
                                Also declares --color-text-soft, --color-text-whisper,
                                --color-border-soft, --color-border-whisper —
                                all theme-aware via color-mix(transparent).

   LAYER 4  TYPOGRAPHY           Fonts declared here.
                                Sizes come from base.css fluid scale variables.

   LAYER 5  THEMES               Five themes + theme-sage — background context per section.
                                Each theme sets --color-cta-bg / --color-cta-text
                                so btn--primary auto-colours correctly.

                                theme-brand        brand green bg   → btn = accent fill
                                theme-brand-light  lighter green bg → btn = accent fill
                                theme-brand-dark   deep green bg    → btn = accent fill
                                theme-sage         warm linen-sage  → btn = accent fill
                                theme-light        linen bg         → btn = brand fill
                                theme-dark         near-black bg    → btn = sand fill

   LAYER 6  BUTTON OVERRIDES     Hero gets sand fill (not accent). Footer gets accent fill.
                                All other themes: standard Layer 5 CTA colours.
                                Hover: hero → accent. Footer accent → sand.

   LAYER 7  COMPONENT RULES      Nav, hero, sections, footer.
                                No hardcoded hex below Layer 1.

   ── BUTTON SYSTEM ────────────────────────────────────────────────────────────

   Two classes only:
     .btn--primary    solid filled button
     .btn--secondary  outline button

   Special overrides (Layer 6):
     .section--hero   .btn--primary  → sand fill, brand text → hover: accent fill, sand text
     footer           .btn--primary  → accent fill, sand text → hover: sand fill, brand text

   ── TYPOGRAPHY ───────────────────────────────────────────────────────────────

   --font-display  Plus Jakarta Sans 500/600  all headlines + display moments
   --font-primary  DM Sans 300                body copy
                   DM Sans 500                labels, buttons, nav

   ============================================================================= */


/* ═══════════════════════════════════════════════════════════════════════
   LAYER 1 — RAW INPUTS
   New venture? Change only these values. Everything else cascades.
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --input-brand:  #0E2214;   /* primary brand colour  — deep forest green  */
  --input-accent: #E67622;   /* accent colour          — bright amber       */
   /* base light tone        — warm linen         */
  --input-sand:      #FAF6F1;   /* lightest — section backgrounds */
  --input-sand-mid:  #F2EDE4;   /* mid — section alt backgrounds  */
  --input-sand-deep: #E5DDD2;   /* deepest — cards, placeholders  */
}


/* ═══════════════════════════════════════════════════════════════════════
   LAYER 2 — COLOUR SCALES  (auto-derived — do not edit directly)
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  /* Brand — green */
  --brand-900: color-mix(in srgb, var(--input-brand) 92%, black);
  --brand-800: color-mix(in srgb, var(--input-brand) 80%, black);
  --brand-700: color-mix(in srgb, var(--input-brand) 65%, black);
  --brand-600: color-mix(in srgb, var(--input-brand) 88%, var(--input-sand));
  --brand-500: var(--input-brand);
  --brand-400: color-mix(in srgb, var(--input-brand) 65%, var(--input-sand));
  --brand-300: color-mix(in srgb, var(--input-brand) 45%, var(--input-sand));
  --brand-200: color-mix(in srgb, var(--input-brand) 28%, var(--input-sand));
  --brand-100: color-mix(in srgb, var(--input-brand) 12%, var(--input-sand));

  /* Accent — amber */
  --accent-700: color-mix(in srgb, var(--input-accent) 75%, black);
  --accent-600: color-mix(in srgb, var(--input-accent) 88%, black);
  --accent-500: var(--input-accent);
  --accent-400: color-mix(in srgb, var(--input-accent) 75%, var(--input-sand));
  --accent-300: color-mix(in srgb, var(--input-accent) 50%, var(--input-sand));
  --accent-100: color-mix(in srgb, var(--input-accent) 12%, var(--input-sand));

  /* Sand — linen */
  --sand-100: var(--input-sand);
  --sand-200: color-mix(in srgb, var(--input-sand) 0%, var(--input-sand-mid));
  --sand-300: color-mix(in srgb, var(--input-sand) 0%, var(--input-sand-deep));
  --sand-900: color-mix(in srgb, var(--input-brand) 50%, var(--input-sand-deep));

  /* Sage — warm linen-leaning mid (24% brand into sand) */
  --sage-bg:     color-mix(in srgb, var(--input-brand) 24%, var(--input-sand));
  --sage-bg-alt: color-mix(in srgb, var(--input-brand) 30%, var(--input-sand));
}

/* Forward-map to base.css variable names so base.css colour chains work */
:root {
  --brand-500: var(--input-brand); /* explicit — base.css reads this */
  --light-1:   var(--sand-100);
  --light-2:   var(--sand-200);
  --light-3:   var(--sand-300);
  --dark-1:    var(--brand-900);
  --dark-2:    var(--brand-700);
  --dark-3:    var(--brand-400);
}


/* ═══════════════════════════════════════════════════════════════════════
   LAYER 3 — SEMANTIC ALIASES
   All component rules reference these. Never reference Layer 2 directly
   in components — always go through a semantic alias.
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --color-bg:           var(--sand-100);
  --color-bg-alt:       var(--sand-200);
  --color-text:         var(--brand-600);
  --color-text-muted:   var(--brand-400);
  --color-border:       var(--sand-300);
  --color-accent:       var(--accent-500);
  --color-cta-bg:       var(--brand-500);
  --color-cta-text:     var(--sand-100);
  --radius-full:        9999px;

  /* ── Text opacity levels — theme-aware via color-mix ──────────────────
     Always relative to --color-text, so they work on any theme background.
     theme-brand:  --color-text = --sand-100 → soft = sand at 55%, whisper = sand at 28%
     theme-light:  --color-text = --brand-600 → soft = brand at 55%, whisper = brand at 28%
     ─────────────────────────────────────────────────────────────────── */
  --color-text-soft:    color-mix(in srgb, var(--color-text) 55%, transparent);  /* body copy on dark  */
  --color-text-whisper: color-mix(in srgb, var(--color-text) 28%, transparent);  /* asides, footnotes  */

  /* ── Border opacity levels — theme-aware ──────────────────────────────
     Same principle — relative to --color-text so they adapt per theme.
     ─────────────────────────────────────────────────────────────────── */
  --color-border-soft:    color-mix(in srgb, var(--color-text) 22%, transparent);  /* nav-pill, founder-link  */
  --color-border-whisper: color-mix(in srgb, var(--color-text)  8%, transparent);  /* portrait, nav shadow    */
}


/* ═══════════════════════════════════════════════════════════════════════
   LAYER 4 — TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --font-display:   'Plus Jakarta Sans', sans-serif;
  --font-primary:   'DM Sans', sans-serif;
  --font-secondary: 'DM Sans', sans-serif;
}


/* ═══════════════════════════════════════════════════════════════════════
   LAYER 5 — THEMES
   Five section-level themes + theme-sage. Each sets --color-cta-bg /
   --color-cta-text so that .btn--primary colours correctly without
   any extra classes.

   BRAND THEMES  (green backgrounds)
     btn--primary → accent fill (amber), sand text
     btn--secondary → sand outline, sand text

   SAGE THEME    (warm linen-sage background)
     btn--primary → accent fill (amber), sand text

   LIGHT THEME   (linen background)
     btn--primary → brand fill (green), sand text
     btn--secondary → brand outline, brand text

   DARK THEME    (near-black background)
     btn--primary → sand fill, dark text
     btn--secondary → sand outline, sand text
   ═══════════════════════════════════════════════════════════════════════ */

.theme-brand {
  --color-bg:             var(--brand-500);
  --color-bg-alt:         var(--brand-600);
  --color-text:           var(--sand-100);
  --color-text-muted:     var(--brand-300);
  --color-text-soft:      color-mix(in srgb, var(--sand-100) 55%, transparent);
  --color-text-whisper:   color-mix(in srgb, var(--sand-100) 28%, transparent);
  --color-border-soft:    color-mix(in srgb, var(--sand-100) 22%, transparent);
  --color-border-whisper: color-mix(in srgb, var(--sand-100)  8%, transparent);
  --color-border:         var(--brand-400);
  --color-cta-bg:         var(--accent-500);
  --color-cta-text:       var(--sand-100);
  background-color:       var(--color-bg);
  color:                  var(--color-text);
}

.theme-brand-light {
  --color-bg:             var(--brand-300);
  --color-bg-alt:         var(--brand-200);
  --color-text:           var(--brand-700);
  --color-text-muted:     var(--brand-600);
  --color-text-soft:      color-mix(in srgb, var(--brand-700) 55%, transparent);
  --color-text-whisper:   color-mix(in srgb, var(--brand-700) 28%, transparent);
  --color-border-soft:    color-mix(in srgb, var(--brand-700) 22%, transparent);
  --color-border-whisper: color-mix(in srgb, var(--brand-700)  8%, transparent);
  --color-border:         var(--brand-400);
  --color-cta-bg:         var(--accent-500);
  --color-cta-text:       var(--sand-100);
  background-color:       var(--color-bg);
  color:                  var(--color-text);
}

.theme-brand-dark {
  --color-bg:             var(--brand-800);
  --color-bg-alt:         var(--brand-900);
  --color-text:           var(--sand-100);
  --color-text-muted:     var(--brand-300);
  --color-text-soft:      color-mix(in srgb, var(--sand-100) 55%, transparent);
  --color-text-whisper:   color-mix(in srgb, var(--sand-100) 28%, transparent);
  --color-border-soft:    color-mix(in srgb, var(--sand-100) 22%, transparent);
  --color-border-whisper: color-mix(in srgb, var(--sand-100)  8%, transparent);
  --color-border:         var(--brand-700);
  --color-cta-bg:         var(--accent-500);
  --color-cta-text:       var(--sand-100);
  background-color:       var(--color-bg);
  color:                  var(--color-text);
}

/* theme-sage — warm linen-leaning sage, restores the S3 "middle gear" feel */
.theme-sage {
  --color-bg:             var(--sage-bg);
  --color-bg-alt:         var(--sage-bg-alt);
  --color-text:           var(--brand-700);
  --color-text-muted:     rgba(14, 34, 20, 0.52);  /* intentional — opacity on raw brand for sage mid-tone */
  --color-text-soft:      color-mix(in srgb, var(--brand-700) 55%, transparent);
  --color-text-whisper:   color-mix(in srgb, var(--brand-700) 28%, transparent);
  --color-border-soft:    color-mix(in srgb, var(--brand-700) 22%, transparent);
  --color-border-whisper: color-mix(in srgb, var(--brand-700)  8%, transparent);
  --color-border:         rgba(14, 34, 20, 0.12);  /* intentional — opacity on raw brand for sage mid-tone */
  --color-cta-bg:         var(--accent-500);
  --color-cta-text:       var(--sand-100);
  background-color:       var(--color-bg);
  color:                  var(--color-text);
}

.theme-light {
  --color-bg:             var(--sand-100);
  --color-bg-alt:         var(--sand-200);
  --color-text:           var(--brand-600);
  --color-text-muted:     var(--brand-400);
  --color-text-soft:      color-mix(in srgb, var(--brand-600) 55%, transparent);
  --color-text-whisper:   color-mix(in srgb, var(--brand-600) 28%, transparent);
  --color-border-soft:    color-mix(in srgb, var(--brand-600) 22%, transparent);
  --color-border-whisper: color-mix(in srgb, var(--brand-600)  8%, transparent);
  --color-border:         var(--sand-300);
  --color-cta-bg:         var(--brand-500);
  --color-cta-text:       var(--sand-100);
  background-color:       var(--color-bg);
  color:                  var(--color-text);
}

.theme-dark {
  --color-bg:             var(--brand-900);
  --color-bg-alt:         var(--brand-800);
  --color-text:           var(--sand-100);
  --color-text-muted:     var(--sand-300);
  --color-text-soft:      color-mix(in srgb, var(--sand-100) 55%, transparent);
  --color-text-whisper:   color-mix(in srgb, var(--sand-100) 28%, transparent);
  --color-border-soft:    color-mix(in srgb, var(--sand-100) 22%, transparent);
  --color-border-whisper: color-mix(in srgb, var(--sand-100)  8%, transparent);
  --color-border:         var(--brand-700);
  --color-cta-bg:         var(--sand-100);
  --color-cta-text:       var(--brand-900);
  background-color:       var(--color-bg);
  color:                  var(--color-text);
}


/* ═══════════════════════════════════════════════════════════════════════
   LAYER 6 — BUTTON OVERRIDES
   Standard hover: all themes → accent fill.
   Hero override: sand fill → hover: accent.
   Footer override: accent fill → hover: sand.
   ═══════════════════════════════════════════════════════════════════════ */

/* Standard primary hover — accent on all themes */
.theme-brand       .btn--primary:hover,
.theme-brand-light .btn--primary:hover,
.theme-brand-dark  .btn--primary:hover,
.theme-sage        .btn--primary:hover,
.theme-light       .btn--primary:hover,
.theme-dark        .btn--primary:hover {
  background-color: var(--accent-500);
  border-color:     var(--accent-500);
  color:            var(--sand-100);
  filter:           none;
}

/* Hero button — sand fill, brand text (elegant, not shouting) */
.section--hero .btn--primary {
  background-color: var(--sand-100);
  border-color:     var(--sand-100);
  color:            var(--brand-900);
}
/* Hero hover — accent fill */
.section--hero .btn--primary:hover {
  background-color: var(--accent-500);
  border-color:     var(--accent-500);
  color:            var(--sand-100);
  filter:           none;
  transform:        translateY(-2px);
  box-shadow:       0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Footer button — accent fill, sand text (bold closing CTA) */
footer .btn--primary {
  background-color: var(--accent-500);
  border-color:     var(--accent-500);
  color:            var(--sand-100);
}
/* Footer hover — sand fill, brand text (inversion) */
footer.theme-brand .btn--primary:hover,
footer .theme-brand .btn--primary:hover {
  background-color: var(--sand-100);
  border-color:     var(--accent-500);
  color:            var(--accent-500);
  filter:           none;
  transform:        translateY(-2px);
  box-shadow:       0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Secondary on brand/sage/dark — uses border-soft token */
.theme-brand       .btn--secondary,
.theme-brand-light .btn--secondary,
.theme-brand-dark  .btn--secondary,
.theme-sage        .btn--secondary,
.theme-dark        .btn--secondary {
  color:            var(--color-text);
  border-color:     var(--color-border-soft);
}
.theme-brand       .btn--secondary:hover,
.theme-brand-light .btn--secondary:hover,
.theme-brand-dark  .btn--secondary:hover,
.theme-sage        .btn--secondary:hover,
.theme-dark        .btn--secondary:hover {
  background-color: var(--sand-100);
  border-color:     var(--sand-100);
  color:            var(--brand-900);
}

/* Secondary on light — brand outline */
.theme-light .btn--secondary {
  color:            var(--brand-500);
  border-color:     var(--brand-500);
}
.theme-light .btn--secondary:hover {
  background-color: var(--brand-500);
  border-color:     var(--brand-500);
  color:            var(--sand-100);
}


/* ═══════════════════════════════════════════════════════════════════════
   LAYER 8 — IMAGE TOKENS
   One place to swap all page photography. Paths are relative to index.html.
   Set a variable to none to revert that element to its CSS placeholder.

   Folder convention:  images/
     hero.jpg          Full-bleed hero background (landscape, high res)
     room.jpg          S3 wide editorial shot (21:7 ratio)
     card-listen.jpg   S4 card 01 — listening 1:1
     card-session.jpg  S4 card 02 — group session
     card-call.jpg     S4 card 03 — first call
     anh.jpg           S5 portrait — Anh (3:4 ratio)
     eddi.jpg          S5 portrait — Eddi (3:4 ratio)
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --img-hero:          none;   /* url('images/hero.jpg')         */
  --img-room:          none;   /* url('images/room.jpg')         */
  --img-card-01:       none;   /* url('images/card-listen.jpg')  */
  --img-card-02:       none;   /* url('images/card-session.jpg') */
  --img-card-03:       none;   /* url('images/card-call.jpg')    */
  --img-portrait-anh:  url('images/anh-q-nguyen--profile-picture.jpg');   /* url('images/anh.jpg')          */
  --img-portrait-eddi: url('images/eddi--profile-picture.jpg');   /* url('images/eddi.jpg')         */
}


/* ═══════════════════════════════════════════════════════════════════════
   LAYER 7 — COMPONENT RULES
   No hardcoded hex below this line. All colours via Layer 2/3 tokens.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Nav ─────────────────────────────────────────────────────────────── */

/* ── Nav: transparent at top ── */
.nav:not(.nav--scrolled) {
  background-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ── Nav: semi-transparent frosted dark on scroll ── */
.nav--scrolled {
  background-color: color-mix(in srgb, var(--brand-600) 83%, transparent) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 1px 0 var(--color-border-whisper);
}

.nav .nav__logo,
.nav .nav__link        { color: var(--sand-100); }
.nav .nav__link::after { background-color: var(--color-border-soft); }
.nav .nav__hamburger span { background-color: var(--sand-100); }

.nav-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: var(--text-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--sand-100);
  border: 1px solid rgba(250,246,241,0.45);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: transparent;
  text-decoration: none;
  transition: border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.nav-pill:hover {
  border-color: var(--accent-500);
  color:        var(--accent-500);
}


/* ── Hero ────────────────────────────────────────────────────────────── */
.section--hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: 0;
  min-height: 100vh;
  margin-top: 0;
  background-image: var(--img-hero);
  background-size: cover;
  background-position: center;
}
/* Hero overlay — only active when a real image is set */
.section--hero:has([style])::before,
.section--hero:not([style*="none"])::before {
  content: '';
  position: absolute;
  inset: 0;
  /* intentional — raw brand rgba for gradient overlay; cannot be tokenised without losing gradient syntax */
  background: linear-gradient(to bottom, rgba(14,34,20,0.35) 0%, rgba(14,34,20,0.72) 100%);
  pointer-events: none;
}
.section--hero { position: relative; }

#hero {
  background:
    radial-gradient(circle at 18% 72%,
      color-mix(in srgb, var(--accent-500) 18%, transparent) 0%,
      transparent 34%),
    radial-gradient(circle at 76% 18%,
      color-mix(in srgb, var(--sand-100) 7%, transparent) 0%,
      transparent 32%),
    var(--brand-500);
}

.section--hero > .container {
  padding-top: calc(var(--nav-height, 4rem) + var(--space-xl));
  padding-bottom: var(--space-2xl);
  position: relative;
  z-index: 2;
}

/* Hero grain texture — SVG fractal noise, no image file needed */
.section--hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  opacity: 0.07;
  mix-blend-mode: overlay;
  z-index: 1;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 5.8rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--color-text);
  max-width: 960px;
  margin-bottom: var(--space-lg);
}
.hero-headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--color-text-soft);
  position: relative;
  display: inline-block;
}

.mark-svg {
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.mark-svg::after {
  content: '';
  position: absolute;
  left: -0.06em;
  width: calc(100% + 0.12em);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  pointer-events: none;
  z-index: -1;
}

.mark-svg--underline::after {
  background-image: url('images/underline-single.svg');
  bottom: -0.16em;
  height: 0.26em;
}

.mark-svg--underline-long::after {
  background-image: url('images/underline-single-long.svg');
  bottom: -0.16em;
  height: 0.25em;
}

.mark-svg--double::after {
  background-image: url('images/underline-double.svg');
  bottom: -0.22em;
  height: 0.38em;
}

.mark-svg--circle::after {
  background-image: url('images/circle.svg');
  left: -0.18em;
  width: calc(100% + 0.36em);
  top: -0.18em;
  bottom: -0.16em;
}

.mark-svg--bright {
  color: color-mix(in srgb, var(--sand-100) 86%, transparent);
}

.hero-emphasis::after {
  left: -0.1em;
  width: calc(100% + 0.2em);
  bottom: -0.24em;
  height: 0.29em;
}

.instead-emphasis {
  display: inline-block;
  margin-top: 0.04em;
  white-space: nowrap;
}

.instead-emphasis::after {
  left: -0.42em;
  width: calc(100% + 0.84em);
  bottom: -0.22em;
  height: 0.4em;
}

.outcomes-emphasis::after {
  left: -0.14em;
  width: calc(100% + 0.28em);
  bottom: -0.22em;
  height: 0.29em;
}
.hero-sub {
  font-family: var(--font-primary);
  font-size: var(--text-body);
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-text-soft);
  max-width: 480px;
  margin-bottom: var(--space-lg);
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: heroFadeUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}


/* ── Section 2 — Phrase cycling ──────────────────────────────────────── */
.s2-anchor {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 0;
  line-height: 1.2;
}
.s2-phrase-wrap {
  position: relative;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-lg);
  transition: height 0.35s ease;
}
.s2-phrase {
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0;
  font-style: italic;
  font-weight: 300;
  font-family: var(--font-display);
  font-size: var(--text-h2);
  color: var(--accent-500);
  opacity: 0;
  transition: opacity 0.8s ease;
  line-height: 1.2;
}
.s2-phrase.active {
  opacity: 1;
}
.s2-phrase-ghost {
  display: block;
  visibility: hidden;
  pointer-events: none;
  font-family: var(--font-display);
  font-size: var(--text-h2);
  line-height: 1.2;
  margin: 0; padding: 0;
}
.s2-note {
  font-family: var(--font-primary);
  font-size: var(--text-body);
  font-weight: 300;
  line-height: 1.85;
  color: var(--color-text-muted);
  max-width: 38ch;
  margin-inline: auto;
}


/* ── Section 3 — Rooms ───────────────────────────────────────────────── */
.s3-opener {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--color-text);
  margin-bottom: var(--space-xl);
}
.s3-image {
  width: 100%;
  aspect-ratio: 21 / 7;
  background-color: var(--color-border);
  background-image: var(--img-room);
  background-size: cover;
  background-position: center;
  border: 1px dashed var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2xl);
  opacity: 0.6;
}
.s3-image::before {
  content: 'Candid photography — a real room, mid-session';
  font-family: var(--font-primary);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.s3-moment {
  font-family: var(--font-primary);
  font-size: var(--text-body);
  font-weight: 300;
  line-height: 1.95;
  color: var(--color-text);
  max-width: 60ch;
  margin-bottom: var(--space-md);
}
.s3-rule {
  width: 32px;
  height: 1px;
  background-color: var(--accent-500);
  opacity: 0.45;
  margin-bottom: var(--space-md);
}
.s3-aside {
  font-family: var(--font-primary);
  font-size: var(--text-small);
  font-weight: 300;
  line-height: 1.95;
  color: var(--color-text-muted);
  max-width: 50ch;
  margin-bottom: var(--space-xl);
}
.s3-closer {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--text-h3);
  letter-spacing: -0.015em;
  color: var(--color-text);
}
.s3-story-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.2vw + 0.85rem, 2rem);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.22;
  color: var(--color-text);
  max-width: 22ch;
  margin-bottom: 0;
}
.s3-story-kicker {
  font-family: var(--font-primary);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-muted);
  max-width: none;
  margin-bottom: 0;
}


/* ── Section 4 — Reconnect ───────────────────────────────────────────── */
.s4-headline {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.12;
  max-width: 700px;
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}
.s4-headline .s4-hl-main {
  display: block;
  font-size: var(--text-h1);
  font-weight: 500;
}
.s4-headline .s4-hl-sub {
  display: block;
  font-family: var(--font-primary);
  font-size: var(--text-h3);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--color-text-muted);
  margin-top: 0.2em;
}
.card__number {
  font-family: var(--font-primary);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--accent-500);
  margin-bottom: var(--space-sm);
}
.card__title {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
}
/* Cards on theme-light use warm sand background (--sand-200), not green */
.card-img {
  width: 100%;
  aspect-ratio: 16 / 7;
  background-color: var(--sand-300);  /* warm sand — not green-tinted */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: var(--space-sm);
  position: relative;
}
.card:nth-child(1) .card-img { background-image: var(--img-card-01); }
.card:nth-child(2) .card-img { background-image: var(--img-card-02); }
.card:nth-child(3) .card-img { background-image: var(--img-card-03); }
.card-img::before {
  content: attr(data-label);
  font-family: var(--font-primary);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--brand-400);
  position: relative;
  z-index: 2;
}

/* Card image colour grade — brand green tint, no Photoshop needed.
   mix-blend-mode: color shifts the photo's hues toward the brand palette
   without affecting brightness. Swap opacity to taste (0.25 subtle → 0.45 strong). */
.card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--brand-500);
  mix-blend-mode: color;
  opacity: 0.32;
  pointer-events: none;
  z-index: 1;
}


/* ── Section 5 — Founders ────────────────────────────────────────────── */
.s5-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}
@media (max-width: 640px) {
  .s5-grid { grid-template-columns: 1fr; }
}
.s5-opener {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}
.s5-body {
  font-family: var(--font-primary);
  font-size: var(--text-body);
  font-weight: 300;
  line-height: 1.9;
  color: var(--color-text-soft);
  margin-bottom: var(--space-md);
  max-width: 58ch;
}
.s5-closer {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--text-h3);
  letter-spacing: -0.01em;
  color: var(--color-text-whisper);
  margin-bottom: var(--space-lg);
}
.founder-link {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border-soft);
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.founder-link:hover {
  border-color: var(--accent-500);
  color:        var(--accent-500);
}
.portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(160deg, var(--brand-700) 0%, var(--brand-900) 100%);
  background-size: cover;
  background-position: center top;
  border: none;
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
  border-radius: 6px;
}
.portrait[data-name="Anh"]  { background-image: var(--img-portrait-anh); background-position: center top; }
.portrait[data-name="Eddi"] { background-image: var(--img-portrait-eddi); background-position: center center; }
.portrait::before {
  content: attr(data-name);
  font-family: var(--font-primary);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-whisper);
}


/* ── Footer ──────────────────────────────────────────────────────────── */
.footer-cta-line {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}
.footer-legal {
  font-family: var(--font-primary);
  font-size: var(--text-small);
  color: var(--color-text-whisper);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-legal:hover {
  color: var(--color-text);
}


/* ==========================================================================
   EMBERVEIL HOMEPAGE REDESIGN OVERRIDES
   ========================================================================= */

.chapter-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.4vw, 4.15rem);
  line-height: 1.1;
  letter-spacing: -0.024em;
  max-width: 13ch;
}

.hero-shell {
  max-width: 960px;
}

.section--hero {
  min-height: min(100vh, 54rem);
  min-height: min(100svh, 54rem);
  height: auto;
  max-height: none;
}

.section--hero > .container {
  display: flex;
  align-items: flex-end;
  min-height: inherit;
  padding-top: calc(var(--nav-height, 4rem) + clamp(1.5rem, 3vw, 2.5rem));
  padding-bottom: clamp(3rem, 8vh, 5rem);
}

.hero-content {
  display: grid;
  gap: clamp(0.9rem, 1.8vw, 1.4rem);
  max-width: 58rem;
}

.hero-headline {
  font-size: clamp(2.35rem, 6.65vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.024em;
  max-width: 13ch;
  margin-bottom: 0;
}

.hero-sub {
  max-width: 34rem;
  margin-bottom: 0;
}

.hero-cta {
  margin-top: var(--space-sm);
}

.chapter-kicker,
.offer-step__number,
.offer-support__label {
  letter-spacing: 0.18em;
}

.hero-cta .btn--secondary {
  color: var(--sand-100);
  border-color: var(--color-border-soft);
}

.hero-cta .btn--secondary:hover {
  background-color: var(--sand-100);
  border-color: var(--sand-100);
  color: var(--brand-500);
}

.problem-title {
  max-width: 11ch;
}

#problem .chapter-intro {
  margin-bottom: clamp(1.35rem, 2.6vw, 2rem);
}

#problem .chapter-summary {
  max-width: 43ch;
}

.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.98fr);
  gap: clamp(1.45rem, 2.2vw, 1.9rem);
  align-items: start;
}

.problem-copy,
.problem-thought {
  min-height: auto;
}

.problem-copy {
  display: grid;
  gap: clamp(1rem, 1.4vw, 1.2rem);
  background-color: color-mix(in srgb, var(--sand-200) 72%, white);
}

.problem-lead {
  font-family: var(--font-primary);
  font-size: clamp(1.12rem, 0.65vw + 1.02rem, 1.34rem);
  font-weight: 400;
  line-height: 1.66;
  letter-spacing: -0.006em;
  color: var(--color-text);
  max-width: 31ch;
  margin-bottom: 0;
}

.problem-points {
  display: grid;
  gap: 0.55rem;
  padding-top: var(--space-sm);
  border-top: 1px solid color-mix(in srgb, var(--brand-700) 10%, transparent);
  padding-left: 0;
  list-style: none;
}

.problem-point {
  position: relative;
  padding-left: 1.15rem;
  color: var(--color-text-muted);
  max-width: 34ch;
  --dash-offset: 0.83em;
}

.problem-point::before,
.offer-step__points p::before {
  content: '';
  position: absolute;
  top: var(--dash-offset, 0.83em);
  left: 0;
  transform: translateY(-50%);
  width: 0.68rem;
  height: 0.16rem;
  border-radius: 999px;
  background-color: var(--accent-500);
  opacity: 0.8;
}

.problem-point,
.s2-note {
  font-size: clamp(1rem, 0.45vw + 0.95rem, 1.1rem);
  line-height: 1.8;
}

.problem-point:nth-child(2) {
  max-width: 35ch;
}

.problem-point--closing {
  max-width: 39ch;
}

.story-panel.problem-thought {
  display: grid;
  gap: clamp(0.45rem, 0.8vw, 0.7rem);
  align-content: start;
  justify-items: stretch;
  align-self: start;
  justify-self: stretch;
  width: 100%;
  background: color-mix(in srgb, var(--brand-700) 1%, transparent);;
  border: 1px solid color-mix(in srgb, var(--brand-700) 22%, transparent);
  box-shadow: inset 0 0 1px rgba(14, 34, 20, 0.16);
  box-shadow: 0 0 1px rgba(14, 34, 20, 0.06);
}

.problem-thought .s2-anchor {
  width: 100%;
  max-width: 12ch;
}

.problem-thought .s2-anchor,
.problem-thought .s2-phrase,
.problem-thought .s2-phrase-ghost {
  font-size: clamp(1.8rem, 2.2vw + 0.9rem, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
}

.problem-thought .s2-phrase-wrap {
  width: 100%;
  margin-top: 0.05rem;
  margin-bottom: clamp(1.5rem, 2vw, 1.9rem);
}

.problem-thought .s2-phrase,
.problem-thought .s2-phrase-ghost {
  max-width: 18ch;
}

.problem-thought .s2-anchor,
.problem-thought .s2-note {
  text-align: left;
}

.problem-thought .s2-note {
  margin-inline: 0;
  margin-top: 0;
  width: 100%;
  padding-top: var(--space-sm);
  border-top: 1px solid color-mix(in srgb, var(--brand-700) 10%, transparent);
}

.problem-thought .s2-note span {
  display: block;
  max-width: 37ch;
  text-wrap: balance;
}

#instead {
  padding-block: clamp(4.25rem, 9vw, 7rem);
  position: relative;
  overflow: hidden;
}

#founders {
  position: relative;
  overflow: hidden;
}

#instead::after,
#founders::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

#instead .container--narrow,
#founders .container {
  position: relative;
  z-index: 1;
}

.instead-title {
  max-width: 11ch;
}

#instead .chapter-intro {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  justify-items: center;
}

#instead .chapter-summary {
  color: color-mix(in srgb, var(--sand-100) 68%, transparent);
  max-width: 22ch;
  font-size: clamp(1.05rem, 0.6vw + 1rem, 1.22rem);
  line-height: 1.6;
}

.instead-summary {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  text-align: right;
  margin: 0;
}

.instead-spine {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  column-gap: clamp(1.25rem, 3vw, 2.75rem);
  row-gap: clamp(1.5rem, 3vw, 2.6rem);
  align-items: start;
}

.instead-spine__line {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  width: 1px;
  background-color: color-mix(in srgb, var(--sand-100) 18%, transparent);
}

.instead-line {
  grid-column: 3;
  grid-row: 2;
  justify-self: start;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.45vw + 1rem, 2.1rem);
  font-weight: 300;
  line-height: 1.35;
  color: color-mix(in srgb, var(--sand-100) 52%, transparent);
  max-width: 22ch;
  text-align: left;
  margin: 0;
}

.reveal--delay-lg.reveal--visible {
  transition-delay: 0.32s;
}

.rooms-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.rooms-title {
  max-width: 11ch;
}

.rooms-summary {
  max-width: 30ch;
}

.s3-image {
  grid-column: 1 / -1;
  margin-top: var(--space-sm);
  margin-bottom: 0;
  border-style: solid;
  border-color: var(--color-border-soft);
  border-radius: 1.25rem;
  overflow: hidden;
}

.s3-image::before {
  content: 'Candid photography - a real room, mid-session';
}

.rooms-story {
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  background-color: color-mix(in srgb, var(--sand-100) 30%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-700) 12%, transparent);
  display: grid;
  align-content: start;
  gap: clamp(0.55rem, 0.75vw, 0.85rem);
}

.rooms-aside {
  grid-column: 2;
  margin-top: 0;
  padding-top: var(--space-sm);
  border-left-color: color-mix(in srgb, var(--brand-700) 14%, transparent);
}

.s3-moment {
  max-width: 46ch;
  line-height: 1.74;
  color: color-mix(in srgb, var(--brand-700) 86%, var(--sand-100));
}

.s3-aside {
  margin-bottom: 0;
  line-height: 1.8;
  max-width: 34ch;
  color: color-mix(in srgb, var(--brand-700) 54%, transparent);
}

.s3-closer {
  font-size: clamp(1.3rem, 1vw + 1rem, 1.8rem);
  line-height: 1.3;
  max-width: 12ch;
  color: color-mix(in srgb, var(--brand-700) 92%, var(--sand-100));
}

.offer-heading {
  max-width: 13ch;
}

.offer-heading span {
  display: block;
  margin-top: var(--space-sm);
  font-size: 0.68em;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--color-text-muted);
  max-width: none;
}

.offer-flow {
  display: grid;
  gap: clamp(1.25rem, 2vw, 2rem);
  position: relative;
}


.offer-step {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  background-color: color-mix(in srgb, var(--sand-100) 72%, var(--sage-bg));
  border-color: color-mix(in srgb, var(--brand-700) 9%, transparent);
}

.offer-step__header {
  display: grid;
  gap: 0.45rem;
}

.offer-step__number,
.offer-support__label {
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-500);
  max-width: none;
  margin-bottom: 0.35rem;
}

.offer-step__title,
.offer-support__title,
.offer-outcomes__title,
.s5-opener,
.footer-cta-line {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.11;
  letter-spacing: -0.016em;
  color: var(--color-text);
}

.offer-step__title,
.offer-support__title {
  font-size: clamp(1.9rem, 1.35vw + 1.3rem, 2.85rem);
  max-width: 12ch;
}

.offer-outcomes__title,
.s5-opener,
.footer-cta-line {
  font-size: clamp(2.1rem, 2.2vw + 1.1rem, 3.35rem);
}

.offer-step__summary {
  color: var(--color-text-muted);
  font-size: clamp(1.02rem, 0.45vw + 0.96rem, 1.15rem);
  line-height: 1.65;
  margin-top: 0;
  max-width: 26ch;
}

.offer-step__body {
  display: grid;
  gap: var(--space-sm);
}

.offer-step__body--list {
  gap: 0.85rem;
}

.offer-step__body p {
  color: var(--color-text-muted);
  max-width: 58ch;
  line-height: 1.78;
}

.offer-step__body p:first-child {
  color: var(--color-text);
}

.offer-step__points {
  display: grid;
  gap: 0.45rem;
  padding-top: 0.15rem;
}

.offer-step__points p {
  position: relative;
  padding-left: 1.15rem;
  color: var(--color-text);
  max-width: 34ch;
  line-height: 1.58;
  --dash-offset: 0.79em;
}

.offer-support {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  gap: 0;
  align-items: start;
  padding-top: clamp(1.5rem, 2.5vw, 2.5rem);
  padding-bottom: clamp(2.5rem, 4vw, 4.5rem);
  padding-inline: clamp(1.5rem, 3vw, 2.5rem);
}

.offer-trust {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding-right: clamp(2rem, 3vw, 3.5rem);
}

.offer-support__body {
  color: var(--color-text-muted);
  max-width: 48ch;
  line-height: 1.72;
}

.offer-note {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding-left: clamp(2rem, 3vw, 3.5rem);
  border-left: 1px solid var(--color-border-soft);
}

.offer-note__quote {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 1vw + 1rem, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.22;
  color: var(--color-text);
  max-width: none;
}

.offer-step--primary {
  border-width: 1.5px;
  border-style: solid;
  border-color: color-mix(in srgb, var(--brand-700) 18%, transparent);
  background-color: color-mix(in srgb, var(--sand-100) 78%, white);
}

.offer-step.offer-step--dark {
  background-color: var(--brand-500);
  border-color: var(--color-border-soft);
}

.offer-step--dark .offer-step__number {
  color: var(--accent-500);
}

.offer-step--dark .offer-step__title,
.offer-step--dark .offer-step__body p,
.offer-step--dark .offer-step__points p {
  color: var(--sand-100);
}

.offer-step--dark .offer-step__summary {
  color: color-mix(in srgb, var(--sand-100) 55%, transparent);
}

.offer-step--dark .offer-step__points p::before {
  background-color: var(--accent-500);
}

.offer-outcomes {
  display: grid;
  gap: var(--space-lg);
  padding-top: clamp(3rem, 5vw, 5rem);
  margin-top: var(--space-2xl);
  border-top: 1px solid color-mix(in srgb, var(--brand-700) 12%, transparent);
}

.offer-outcomes .chapter-intro {
  margin-bottom: 0;
}

.offer-outcomes__title {
  max-width: 16ch;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
}

.outcome-card {
  padding-top: clamp(1.25rem, 1.8vw, 1.75rem);
  border-top: 1px solid color-mix(in srgb, var(--accent-500) 45%, transparent);
}

.outcome-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1vw + 1rem, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.12;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  max-width: 10ch;
}

.outcome-text {
  color: var(--color-text-muted);
  max-width: 28ch;
  line-height: 1.78;
}

.offer-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-lg);
  align-items: end;
  background-color: color-mix(in srgb, var(--sand-100) 62%, var(--sage-bg));
  margin-top: var(--space-lg);
}

.offer-footer > div:first-child {
  max-width: 40rem;
  display: grid;
  gap: 0.85rem;
}

.offer-footer .offer-support__title {
  max-width: 15ch;
}

.offer-footer .offer-support__body {
  max-width: 40ch;
}

.offer-footer .cta-row {
  justify-content: flex-end;
}

.founders-grid {
  align-items: start;
  gap: var(--space-2xl);
}

.founders-copy {
  display: block;
}

.founders-copy .s5-opener {
  margin-bottom: var(--space-lg);
  max-width: none;
}

.s5-body {
  max-width: 58ch;
  line-height: 1.9;
}

.s5-closer {
  margin-top: 0;
  font-size: var(--text-h3);
  letter-spacing: -0.01em;
}

.founders-portraits {
  align-items: flex-start;
}

.footer-cta-line {
  max-width: none;
}

/* ── Panel elevation ─────────────────────────────────────────────────── */
.story-panel {
  box-shadow:
    0 24px 80px rgba(14, 34, 20, 0.044),
    0 8px  28px rgba(14, 34, 20, 0.03);
}

.theme-light .story-panel:not(.offer-step--dark):not(.problem-thought),
.theme-sage  .story-panel:not(.offer-step--dark):not(.problem-thought) {
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--sand-100) 94%, white),
    color-mix(in srgb, var(--sand-100) 85%, var(--sage-bg))
  );
}

/* ── Grain on light sections ─────────────────────────────────────────── */
.theme-light,
.theme-sage {
  position: relative;
}

.theme-light::after,
.theme-sage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.68' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  opacity: 0.022;
  mix-blend-mode: multiply;
  z-index: 0;
}

.theme-light > .container,
.theme-light > .container--narrow,
.theme-sage  > .container,
.theme-sage  > .container--narrow {
  position: relative;
  z-index: 1;
}

/* ── Motion refinements ──────────────────────────────────────────────── */
.chapter-intro.reveal {
  transform: translateY(1.2rem);
}

.story-panel.reveal {
  transform: translateY(2rem) scale(0.992);
}

.chapter-intro.reveal--visible,
.story-panel.reveal--visible {
  transform: none;
}

@media (max-width: 980px) {
  .problem-grid,
  .rooms-grid,
  .offer-step,
  .offer-support,
  .offer-footer {
    grid-template-columns: 1fr;
  }

  .offer-trust {
    padding-right: 0;
    padding-bottom: clamp(1.5rem, 2.5vw, 2.5rem);
  }

  .offer-note {
    border-left: none;
    border-top: 1px solid var(--color-border-soft);
    padding-left: 0;
    padding-top: clamp(1.5rem, 2.5vw, 2.5rem);
  }

  .problem-thought {
    justify-items: start;
    justify-self: stretch;
    width: 100%;
  }

  .problem-thought .s2-anchor,
  .problem-thought .s2-note {
    text-align: left;
  }

  .problem-thought .s2-note span {
    max-width: none;
  }

  .rooms-aside {
    grid-column: auto;
    padding-top: 0;
  }

  .instead-spine {
    grid-template-columns: 1fr;
    row-gap: 1.1rem;
  }

  .instead-spine__line {
    display: none;
  }

  .instead-summary,
  .instead-line {
    grid-column: 1;
    justify-self: start;
    margin-inline: 0;
    text-align: left;
    max-width: none;
  }

  .outcomes-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-shell {
    max-width: 100%;
  }

  .section--hero > .container {
    padding-bottom: clamp(2.5rem, 8vw, 3.5rem);
  }

  .hero-cta,
  .offer-footer .cta-row {
    width: 100%;
  }

  .hero-cta .btn,
  .offer-footer .btn {
    width: 100%;
  }

  .problem-title,
  .instead-title,
  .rooms-title,
  .offer-heading,
  .offer-outcomes__title,
  .offer-step__title,
  .offer-support__title {
    max-width: none;
  }

  .offer-heading span {
    max-width: none;
  }

  .instead-summary,
  .instead-line {
    justify-self: start;
  }
}


/* ── Offer section — bonfire spotlight ────────────────────────────────── */
#bonfire {
  transition: box-shadow 0.5s ease,
              opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#bonfire.bonfire--spotlight {
  box-shadow:
    0 48px 160px rgba(14, 34, 20, 0.30),
    0 16px  56px rgba(14, 34, 20, 0.16),
    0  4px  18px rgba(14, 34, 20, 0.10);
}
