/* =========================================================================
   John O'Brien Consulting — Live Event Operations
   Editorial-cinematic system. Borderless, full-bleed, type-led.
   Navy / graphite / ivory / restrained gold.
   ========================================================================= */

:root {
  /* Type scale */
  --text-xs: clamp(0.72rem, 0.68rem + 0.18vw, 0.8rem);
  --text-sm: clamp(0.84rem, 0.8rem + 0.25vw, 0.94rem);
  --text-base: clamp(1rem, 0.96rem + 0.22vw, 1.12rem);
  --text-lg: clamp(1.18rem, 1.04rem + 0.7vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.15rem + 1.6vw, 2.4rem);
  --text-2xl: clamp(2rem, 1.3rem + 3.2vw, 3.9rem);
  --text-3xl: clamp(3rem, 1.2rem + 7.2vw, 8.4rem);
  --text-mega: clamp(4rem, 1rem + 12vw, 13rem);

  /* Palette — cinematic navy / graphite / ivory / restrained gold */
  --ink-950: #03070f;
  --ink-900: #050a14;
  --ink-850: #070d18;
  --ink-800: #0a1320;
  --ink-700: #101c2e;
  --ink-600: #16273d;
  --line: rgba(200, 214, 235, 0.1);
  --line-strong: rgba(200, 214, 235, 0.2);

  --ivory: #f4f1ea;
  --ivory-soft: #d6d4cd;
  --mute: #7e8a9c;
  --mute-soft: #a4aebd;

  --gold: #d8b15a;
  --gold-bright: #ecc977;
  --gold-deep: #b08a36;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.15, 1);
  --t-fast: 200ms var(--ease-out);
  --t-med: 480ms var(--ease-out);
  --t-slow: 900ms var(--ease-out);

  --content: 1280px;
  --gutter: clamp(1.4rem, 5vw, 5rem);

  --font-display: 'Boska', 'Times New Roman', 'Georgia', serif;
  --font-alt: 'Satoshi', 'Helvetica Neue', system-ui, sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-padding-top: 92px;
}
/* Native smooth-scroll only as a no-JS fallback; Lenis takes over when armed. */
html:not(.lenis-on) { scroll-behavior: smooth; }
/* Lenis recommended baseline */
html.lenis-on, html.lenis-on body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.62;
  color: var(--ivory-soft);
  background: var(--ink-950);
  overflow-x: hidden;
}

img, picture, svg, canvas { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-display); color: var(--ivory); line-height: 0.98;
  text-wrap: balance; font-weight: 500; letter-spacing: -0.018em;
  font-feature-settings: "liga" 1, "dlig" 1;
}
p { text-wrap: pretty; max-width: 64ch; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; color: inherit; font: inherit; }

::selection { background: rgba(216, 177, 90, 0.28); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  background: var(--gold); color: var(--ink-900); padding: 10px 18px;
  border-radius: 6px; font-weight: 600; transition: top var(--t-fast);
}
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ---------- Atmosphere: a single coherent depth field, not scattered dots --
   Fixed canvas renders a slow vertical "operations grid" that drifts.
   A vignette + grain sit above the page background for cinematic depth.    */
#flow-canvas {
  position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0.6;
}
.atmos {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(140% 100% at 50% -10%, rgba(22, 39, 61, 0.55) 0%, transparent 55%),
    radial-gradient(120% 90% at 100% 100%, rgba(176, 138, 54, 0.07) 0%, transparent 50%);
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 220px 60px rgba(3, 7, 15, 0.9);
}
/* Lift the scrolling content above the fixed atmosphere layers (z 0/1).
   Scoped to main/footer only — using a high-specificity :not(#id) catch-all
   here would clobber the fixed header, skip-link and scroll-progress
   (an :not() carries the specificity of its most specific argument). */
body > main, body > footer { position: relative; z-index: 2; }

/* ---------- Scroll progress (hairline gold, top of viewport) ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 150; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  box-shadow: 0 0 12px -2px rgba(216, 177, 90, 0.6);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(1rem, 2vw, 1.5rem) var(--gutter);
  transition: background var(--t-med), backdrop-filter var(--t-med), border-color var(--t-med), padding var(--t-med);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in oklab, var(--ink-950) 78%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
  padding-top: 0.7rem; padding-bottom: 0.7rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark { color: var(--gold); width: 36px; height: 36px; flex: none; }
.brand-mark.small { width: 24px; height: 24px; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-alt); font-weight: 700; font-size: 1.02rem; color: var(--ivory); letter-spacing: 0.01em; }
.brand-text span { font-size: 0.64rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--mute); }

.primary-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.4rem); }
.primary-nav a { font-size: var(--text-sm); color: var(--mute-soft); transition: color var(--t-fast); }
.primary-nav a:not(.nav-cta) { position: relative; }
.primary-nav a:not(.nav-cta):hover { color: var(--ivory); }
.primary-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--gold); transition: width var(--t-med);
}
.primary-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-strong); padding: 0.62rem 1.3rem; border-radius: 0;
  color: var(--ivory); font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 500; isolation: isolate;
  transition: color var(--t-med), border-color var(--t-med);
}
.nav-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ivory);
  transform: translateY(101%); transition: transform var(--t-med) var(--ease-out);
}
.nav-cta:hover { color: var(--ink-900); border-color: var(--ivory); }
.nav-cta:hover::before { transform: translateY(0); }
.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 22px; height: 1.6px; background: var(--ivory); transition: transform var(--t-fast), opacity var(--t-fast); }

/* ---------- Buttons — sharp, restrained, no pill / no glow ---------- */
.btn-primary, .btn-ghost {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--font-alt);
  font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 1.15rem 2rem; border-radius: 0; line-height: 1;
  transition: color var(--t-med), border-color var(--t-med);
}
.btn-primary svg, .btn-ghost svg { width: 16px; height: 16px; transition: transform var(--t-med) var(--ease-out); }
.btn-primary:hover svg, .btn-ghost:hover svg { transform: translateX(6px); }

/* Primary: ivory bar, ink text, gold underline accent. Fill wipes to gold on hover. */
.btn-primary {
  background: var(--ivory); color: var(--ink-900); border: 1px solid var(--ivory);
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold);
  transform: translateY(101%); transition: transform var(--t-med) var(--ease-out);
}
.btn-primary:hover::before { transform: translateY(0); }
.btn-primary:active { transform: translateY(1px); }

/* Ghost: hairline rule only. Fills ivory on hover. */
.btn-ghost {
  border: 1px solid var(--line-strong); color: var(--ivory); background: transparent;
}
.btn-ghost::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ivory);
  transform: translateY(101%); transition: transform var(--t-med) var(--ease-out);
}
.btn-ghost:hover { color: var(--ink-900); border-color: var(--ivory); }
.btn-ghost:hover::before { transform: translateY(0); }
.btn-ghost:active { transform: translateY(1px); }

/* ---------- Shared bits ---------- */
.kicker { font-size: var(--text-xs); letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.section-tag {
  display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--font-alt);
  font-size: var(--text-xs); letter-spacing: 0.28em; text-transform: uppercase; color: var(--mute);
}
.section-tag i { color: var(--gold); font-style: normal; font-weight: 700; }
.wrap { max-width: var(--content); margin-inline: auto; padding-inline: var(--gutter); }

/* Section index marker rule used as a structural device instead of boxes */
.rule { height: 1px; background: var(--line); width: 100%; }

/* =========================================================================
   HERO — full-bleed, type sits in the gutter, image breathes
   ========================================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: flex-end; padding: clamp(2rem, 6vw, 5rem) var(--gutter) clamp(3.5rem, 6vw, 5rem);
  overflow: hidden; isolation: isolate;
}
.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transform-origin: 50% 62%; }
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(95deg, rgba(3, 7, 15, 0.78) 0%, rgba(3, 7, 15, 0.42) 34%, transparent 62%),
    radial-gradient(130% 90% at 48% 58%, transparent 0%, rgba(3, 7, 15, 0.4) 72%),
    linear-gradient(180deg, rgba(3, 7, 15, 0.72) 0%, rgba(3, 7, 15, 0.1) 36%, rgba(3, 7, 15, 0.66) 74%, var(--ink-950) 100%);
}
.hero-inner { max-width: 1100px; width: 100%; }
.hero .kicker { margin-bottom: clamp(1rem, 2vw, 1.6rem); }
.hero-title {
  font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 500;
  line-height: 0.94; letter-spacing: -0.018em; color: var(--ivory);
  font-feature-settings: "liga" 1, "dlig" 1;
}
.hero-title .accent {
  font-family: var(--font-alt);
  font-size: 0.26em; line-height: 1.3; letter-spacing: 0.005em; font-weight: 400;
  color: var(--ivory-soft); max-width: 30ch; margin-top: 1.1rem;
  text-shadow: 0 1px 24px rgba(3, 7, 15, 0.55);
}
.hero-lede {
  margin: clamp(1.4rem, 3vw, 2.2rem) 0 clamp(1.8rem, 3vw, 2.4rem);
  font-size: var(--text-lg); color: var(--ivory-soft); max-width: 54ch; line-height: 1.5;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Ticker — borderless, just a hairline top rule */
.ticker {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(3,7,15,0.6));
  overflow: hidden; padding: 0.8rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex; align-items: center; gap: 2rem; white-space: nowrap;
  width: max-content; animation: ticker 42s linear infinite;
  font-family: var(--font-alt); font-size: var(--text-xs); letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--mute-soft);
}
.ticker-track i { color: var(--gold); font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 4.6rem; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 1.5px solid var(--line-strong); border-radius: 999px;
  display: grid; place-items: start center; padding-top: 7px;
}
.scroll-cue span { width: 3px; height: 8px; border-radius: 3px; background: var(--gold); animation: scrolly 1.8s var(--ease-in-out) infinite; }
@keyframes scrolly { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* =========================================================================
   BRIEFING — asymmetric editorial. No card boxes. Type leads; photo bleeds.
   ========================================================================= */
.briefing { padding-block: clamp(6rem, 12vw, 11rem); }
.briefing-grid {
  display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
}
.operator { position: sticky; top: 110px; }
.operator-photo { position: relative; overflow: hidden; }
.operator-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  filter: contrast(1.04) saturate(0.92) brightness(0.92);
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
}
.operator-tag { display: flex; align-items: baseline; gap: 0.8rem; margin-top: 1.2rem; }
.operator-tag span { font-size: var(--text-xs); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.operator-tag strong { font-family: var(--font-alt); font-size: 1.4rem; color: var(--ivory); }

.cred-list { list-style: none; margin-top: 1.8rem; display: grid; gap: 0; }
.cred-list li {
  display: flex; align-items: baseline; gap: 1rem; padding: 0.95rem 0;
  border-top: 1px solid var(--line); font-size: var(--text-sm); color: var(--mute-soft);
}
.cred-list li:last-child { border-bottom: 1px solid var(--line); }
.cred-list li span { font-family: var(--font-alt); font-size: 0.72rem; color: var(--gold); width: 1.4rem; flex: none; }

.briefing-copy { display: flex; flex-direction: column; gap: 1.4rem; }
.briefing-copy h2 { font-size: var(--text-2xl); margin-top: 0.6rem; max-width: 17ch; }
.briefing-copy p { font-size: var(--text-base); color: var(--mute-soft); }

/* Signals as a typographic stack with a leading gold index — not a card grid */
.signal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(2rem, 4vw, 3.5rem); margin-top: 1.6rem; }
.signal { padding: 1.3rem 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.4rem; }
.signal span { font-family: var(--font-alt); font-size: var(--text-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.signal p { font-size: var(--text-sm); color: var(--ivory); font-weight: 500; max-width: none; line-height: 1.45; }

/* =========================================================================
   PRESSURE MAP — full-bleed band; four zones revealed as a vertical sequence
   (no tab widget). Big index numerals create rhythm.
   ========================================================================= */
.pressure { position: relative; padding-block: clamp(6rem, 12vw, 11rem); overflow: hidden; isolation: isolate; }
.pressure-bg { position: absolute; inset: 0; z-index: -2; }
.pressure-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; transform: scale(1.06); }
.pressure::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(110deg, rgba(3,7,15,0.92) 0%, rgba(3,7,15,0.7) 45%, rgba(3,7,15,0.4) 100%),
    linear-gradient(180deg, var(--ink-950), transparent 18%, transparent 82%, var(--ink-950));
}
.pressure-head { max-width: 56ch; margin-bottom: clamp(3rem, 6vw, 5rem); display: flex; flex-direction: column; gap: 1rem; }
.pressure-head h2 { font-size: var(--text-2xl); max-width: 16ch; }
.pressure-head p { color: var(--mute-soft); }

.zones { display: grid; gap: 0; }
.zone {
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.2rem, 4vw, 4rem); align-items: start;
  padding-block: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line);
}
.zones .zone:last-child { border-bottom: 1px solid var(--line); }
.zone-index {
  font-family: var(--font-display); font-weight: 600; line-height: 0.8;
  font-size: clamp(2.4rem, 5vw, 4.4rem); color: transparent;
  -webkit-text-stroke: 1px var(--line-strong); transition: color var(--t-med), -webkit-text-stroke-color var(--t-med);
}
.zone:hover .zone-index, .zone:focus-within .zone-index { color: var(--gold); -webkit-text-stroke-color: var(--gold); }
.zone-title { font-family: var(--font-alt); font-size: var(--text-xl); color: var(--ivory); max-width: 14ch; }
.zone-body { display: flex; flex-direction: column; gap: 1rem; }
.zone-body p { color: var(--mute-soft); font-size: var(--text-base); }
.zone-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.zone-list li { font-size: var(--text-sm); color: var(--ivory-soft); position: relative; padding-left: 1rem; }
.zone-list li::before { content: ""; position: absolute; left: 0; top: 0.66em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* =========================================================================
   FIELD RECORD — full-bleed cinematic image bands with overlaid type.
   No bordered cards; the image IS the surface.
   ========================================================================= */
.field { padding-block: clamp(6rem, 12vw, 11rem) clamp(2rem, 4vw, 3rem); }
.field-head { margin-bottom: clamp(3rem, 6vw, 5rem); display: flex; flex-direction: column; gap: 1rem; }
.field-head h2 { font-size: var(--text-2xl); max-width: 18ch; }
.field-head p { color: var(--mute-soft); }
.chapters { display: flex; flex-direction: column; gap: clamp(1rem, 2vw, 1.6rem); }
.chapter {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(360px, 52vw, 560px); display: flex; align-items: flex-end;
  padding: clamp(1.8rem, 4vw, 3.4rem);
}
.chapter-media { position: absolute; inset: 0; z-index: -2; }
.chapter-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.4s var(--ease-out); }
.chapter:hover .chapter-media img { transform: scale(1.1); }
.chapter::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, rgba(3,7,15,0.88) 0%, rgba(3,7,15,0.55) 42%, transparent 78%),
              linear-gradient(0deg, rgba(3,7,15,0.7), transparent 55%);
}
.chapter.alt { justify-content: flex-end; text-align: right; }
.chapter.alt::after { background: linear-gradient(250deg, rgba(3,7,15,0.88) 0%, rgba(3,7,15,0.55) 42%, transparent 78%), linear-gradient(0deg, rgba(3,7,15,0.7), transparent 55%); }
.chapter-num {
  position: absolute; top: clamp(1rem, 3vw, 2rem); left: clamp(1.4rem, 3vw, 2.6rem);
  font-family: var(--font-display); font-size: clamp(3rem, 8vw, 7rem); font-weight: 600;
  color: transparent; -webkit-text-stroke: 1.4px rgba(244,241,234,0.55); line-height: 0.8;
}
.chapter.alt .chapter-num { left: auto; right: clamp(1.4rem, 3vw, 2.6rem); }
.chapter-copy { position: relative; max-width: 44ch; display: flex; flex-direction: column; gap: 0.6rem; }
.chapter.alt .chapter-copy { margin-left: auto; }
.chapter-type { font-family: var(--font-alt); font-size: var(--text-xs); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.chapter-copy h3 { font-size: var(--text-xl); }
.chapter-copy p { font-size: var(--text-base); color: var(--ivory-soft); max-width: none; }
.chapter.alt .chapter-copy p { margin-left: auto; }

/* =========================================================================
   METHOD — numbered editorial steps, hairline separated. No card grid.
   ========================================================================= */
.method { padding-block: clamp(6rem, 12vw, 11rem); border-top: 1px solid var(--line); }
.method-inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.method-copy { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 1.2rem; }
.method-copy h2 { font-size: var(--text-2xl); max-width: 15ch; }
.method-copy p { color: var(--mute-soft); }
.method-steps { list-style: none; display: grid; gap: 0; }
.method-steps li {
  display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1.6rem; align-items: baseline;
  padding: clamp(1.6rem, 3vw, 2.4rem) 0; border-top: 1px solid var(--line);
  transition: padding-left var(--t-med);
}
.method-steps li:last-child { border-bottom: 1px solid var(--line); }
.method-steps li:hover { padding-left: 0.6rem; }
.method-steps span { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--gold); grid-row: span 2; line-height: 0.9; }
.method-steps h3 { font-size: var(--text-lg); }
.method-steps p { font-size: var(--text-sm); color: var(--mute-soft); grid-column: 2; }

/* =========================================================================
   CONTACT — full-bleed quiet close, no boxed card
   ========================================================================= */
.contact { position: relative; padding-block: clamp(7rem, 14vw, 12rem); padding-inline: var(--gutter); overflow: hidden; isolation: isolate; text-align: center; }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 90% at 50% 30%, rgba(176,138,54,0.12), transparent 60%);
}
.contact-inner { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.contact-inner h2 { font-size: var(--text-2xl); max-width: 20ch; }
.contact-lede { color: var(--mute-soft); max-width: 50ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 0.6rem; }
.contact-meta { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; justify-content: center; margin-top: 1rem; font-size: var(--text-sm); color: var(--mute); }
.contact-meta a { color: var(--mute-soft); border-bottom: 1px solid transparent; transition: color var(--t-fast), border-color var(--t-fast); }
.contact-meta a:hover { color: var(--gold-bright); border-bottom-color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); padding: clamp(2rem, 4vw, 3rem) var(--gutter);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  max-width: var(--content); margin-inline: auto;
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; color: var(--mute-soft); font-size: var(--text-sm); }
.footer-brand .brand-mark { color: var(--gold); }
.footer-note { font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); max-width: none; }

/* =========================================================================
   MOTION — masked type reveals + clip reveals.
   GSAP owns the timing. CSS only sets up masking geometry and the
   FAIL-OPEN baseline: nothing is hidden unless GSAP actually arms (.gsap-armed).
   ========================================================================= */

/* Line-masked hero title: each visual line clips its sliding inner span.
   transform-style preserve-3d + perspective lets the kinetic depth z-layers read. */
.hero-title { transform-style: preserve-3d; perspective: 1400px; }
.hero-title .line { display: block; overflow: hidden; padding-block: 0.04em; transform-style: preserve-3d; }
.hero-title .line-inner { display: block; will-change: transform; transform-origin: 0% 50%; backface-visibility: hidden; }

/* Word-masked section headings: words wrap naturally; each clips its riser */
[data-kinetic] { perspective: 1200px; }
[data-lines] .word { display: inline-block; overflow: hidden; vertical-align: top; padding-block: 0.06em; }
[data-lines] .word-inner { display: inline-block; will-change: transform; transform-origin: 0% 50%; backface-visibility: hidden; }

/* Clip-reveal wrappers keep their geometry; GSAP animates clip-path */
[data-clip] { will-change: clip-path; }
[data-clip] img { will-change: transform; }

/* Only when GSAP is armed do we pre-hide generic reveal blocks (no CLS — opacity/transform only). */
.gsap-armed [data-reveal] { opacity: 0; }

/* prefers-reduced-motion and the fallback path leave everything visible. */

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 960px) {
  .briefing-grid, .method-inner { grid-template-columns: 1fr; }
  .operator, .method-copy { position: static; }
  .operator-photo img { aspect-ratio: 3 / 2; max-height: 60vh; }
  .zone { grid-template-columns: auto 1fr; }
  .zone-body { grid-column: 1 / -1; margin-top: 0.4rem; }
}
@media (max-width: 860px) {
  /* z-index keeps the toggle (which becomes the close "X") above the
     open drawer panel, which sits at z-index 90 within the header. */
  .nav-toggle { display: flex; position: relative; z-index: 100; }
  .primary-nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); z-index: 90;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.6rem;
    padding: 2rem; background: var(--ink-950);
    background: color-mix(in oklab, var(--ink-900) 98%, transparent);
    backdrop-filter: blur(20px); border-left: 1px solid var(--line);
    box-shadow: -30px 0 80px rgba(0,0,0,0.5);
    transform: translateX(100%); transition: transform var(--t-med); visibility: hidden;
  }
  .primary-nav.open { transform: translateX(0); visibility: visible; }
  /* Lock background scroll while the drawer is open. */
  html.nav-open, html.nav-open body { overflow: hidden; }
  .primary-nav a { font-size: var(--text-lg); }
  .nav-toggle.open span:first-child { transform: translateY(3.3px) rotate(45deg); }
  .nav-toggle.open span:last-child { transform: translateY(-3.3px) rotate(-45deg); }
  .signal-row { grid-template-columns: 1fr; }
  .chapter.alt, .chapter { text-align: left; justify-content: flex-start; }
  .chapter.alt::after { background: linear-gradient(110deg, rgba(3,7,15,0.9) 0%, rgba(3,7,15,0.55) 45%, transparent 80%), linear-gradient(0deg, rgba(3,7,15,0.75), transparent 55%); }
  .chapter.alt .chapter-copy, .chapter.alt .chapter-copy p { margin-left: 0; }
  .chapter.alt .chapter-num { left: clamp(1.4rem, 3vw, 2.6rem); right: auto; }
  .scroll-cue { display: none; }
}
@media (max-width: 520px) {
  .hero-title .accent { font-size: 0.5em; }
  .chapter { min-height: 70vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero-title .line-inner, [data-lines] .word-inner { transform: none !important; }
  [data-clip] { clip-path: none !important; }
  [data-clip] img { transform: none !important; }
  #flow-canvas, .scroll-progress { display: none; }
}
