/* ==========================================================================
   Direction D — Bright Cinematic (the picked hybrid)
   Hero: full-bleed cinematic video (3-photo crossfade as Seedance stand-in)
   Type: massive Title-case + ONE mixed-typeface italic accent word
   Below the fold: bright editorial register (Canvas + Warm Sand + Deep Teal accents)
   Signature move: typeface-mix in the headline, magazine masthead bridge between
   cinema and editorial.
   ========================================================================== */

:root {
  --deep-teal: #0A3D47;
  --deep-teal-deep: #062831;
  --warm-amber: #D4881E;
  --warm-amber-glow: #E5A754;
  --soft-teal: #1A6B7A;
  --warm-sand: #F0E6D3;
  --warm-sand-deep: #E5D5B5;
  --canvas: #FAFAF7;
  --canvas-warm: #F5F1E8;
  --stone: #6B7280;
  --graphite: #1F2937;
  --cloud: #E8E4DE;
  --cloud-dark: #D4CFC5;

  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Menlo', monospace;

  --container: 1440px;
  --gutter: 48px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--deep-teal);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }

/* ==========================================================================
   Header — floating over cinematic hero, transitions to opaque below
   ========================================================================== */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 24px var(--gutter);
  background: linear-gradient(180deg, rgba(4, 27, 34, 0.5) 0%, rgba(4, 27, 34, 0) 100%);
  transition: background 0.3s, border-color 0.3s;
}
.header.scrolled {
  background: var(--canvas);
  border-bottom: 1px solid var(--cloud);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand-mark img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s;
}
.header.scrolled .brand-mark img { filter: none; }
.nav {
  display: flex;
  gap: 32px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: auto;
  margin-right: 24px;
}
.nav a {
  color: rgba(250, 250, 247, 0.85);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}
.header.scrolled .nav a { color: var(--deep-teal); }
.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--warm-amber);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-deploy {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--warm-amber-glow);
  color: var(--warm-amber-glow);
  display: inline-flex;
  gap: 6px;
  align-items: center;
  transition: all 0.2s;
}
.header.scrolled .nav-deploy { border-color: var(--warm-amber); color: var(--warm-amber); }
.nav-deploy:hover { background: var(--warm-amber); color: var(--deep-teal-deep); border-color: var(--warm-amber); }
.nav-cta {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 11px 20px;
  background: var(--canvas);
  color: var(--deep-teal-deep);
  transition: background 0.2s;
}
.header.scrolled .nav-cta { background: var(--deep-teal); color: var(--canvas); }
.nav-cta:hover { background: var(--warm-amber); color: var(--canvas); }

/* ==========================================================================
   Hero — Full-bleed cinematic (3-photo crossfade as Seedance stand-in)
   ========================================================================== */

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  color: var(--canvas);
  display: flex;
  align-items: flex-end;
  padding: 0 var(--gutter) 88px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--deep-teal-deep);
  overflow: hidden;
}
/* Cinematic hero video — file has baked-in camera motion, no Ken Burns needed on the <video> itself */
.hero-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Slight grade to keep editorial register and protect headline contrast over the sunset shot */
  filter: brightness(0.82) contrast(1.04) saturate(0.96);
}
/* Poster image (rendered by the browser before bytes load, and as the reduced-motion fallback)
   gets a very subtle Ken Burns so static state still reads as "footage" not "screensaver" */
.hero-video video[poster] {
  background-size: cover;
  background-position: center;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video video {
    /* Hide the moving video; the poster JPG remains visible as the <video>'s default poster surface */
    visibility: hidden;
  }
  .hero-video::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../../assets/hero/hero-elevate-poster.jpg') center/cover no-repeat;
    filter: brightness(0.82) contrast(1.04) saturate(0.96);
  }
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Calmer scrim — lets the video breathe more */
  background:
    linear-gradient(
      180deg,
      rgba(6, 40, 49, 0.42) 0%,
      rgba(6, 40, 49, 0.08) 35%,
      rgba(6, 40, 49, 0.55) 75%,
      rgba(6, 40, 49, 0.78) 100%
    );
  z-index: 2;
  pointer-events: none;
}

/* Top editorial meta row */
.hero-top {
  position: absolute;
  top: 100px;
  left: var(--gutter);
  right: var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 64px;
  flex-wrap: wrap;
}
.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--warm-amber-glow);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  animation: fadeIn 1.6s 0.2s both ease-out;
}
.hero-eyebrow::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--warm-amber-glow);
}
.hero-issue {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 15px;
  color: rgba(250, 250, 247, 0.82);
  line-height: 1.55;
  text-align: right;
  animation: fadeIn 1.6s 0.5s both ease-out;
}
.hero-issue strong {
  font-family: var(--font-head);
  font-style: normal;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-amber-glow);
  display: block;
  margin-bottom: 6px;
}

/* Headline — signature mixed-typeface move */
.hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(44px, 5.8vw, 96px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin-bottom: 40px;
  color: var(--canvas);
  max-width: 22ch; /* widened so "for Thought Leaders" fits on one line */
}
/* Line 3 (supporting clause) — visually subordinate so it doesn't dominate the video */
.hero h1 .line-sub {
  font-size: clamp(18px, 2.1vw, 36px);
  letter-spacing: -0.005em;
  line-height: 1.25;
  margin-top: 18px;
  max-width: 44ch;
  font-weight: 400;
  color: rgba(250, 250, 247, 0.88);
}
/* Rotating subject — signature mixed-typeface treatment, vertical roll-in/roll-out.
   Two-level structure so the clipped track doesn't break baseline alignment
   with the surrounding "for" text. The outer wrapper stays inline + baseline-aligned;
   the inner track gets overflow:hidden for the rolling clip. */
.hero h1 .rotating-subject {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
}
/* Invisible sizer — sets the wrapper's width AND height to the widest variant's metrics,
   so layout doesn't jump and the wrapper's baseline matches the actual word's baseline. */
.hero h1 .rotating-subject .rotating-ghost {
  visibility: hidden;
  display: inline-block;
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
/* Track is positioned over the ghost — this is where overflow:hidden lives, not on the wrapper */
.hero h1 .rotating-subject .rotating-subject-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.hero h1 .rotating-subject .rotating-word {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  color: var(--warm-amber-glow);
  letter-spacing: -0.025em;
  white-space: nowrap;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.5s ease;
}
.hero h1 .rotating-subject .rotating-word.is-entering {
  transform: translateY(100%);
  opacity: 0;
}
.hero h1 .rotating-subject .rotating-word.is-exiting {
  transform: translateY(-100%);
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 .rotating-subject .rotating-word {
    transition: opacity 0.4s ease;
    transform: none !important;
  }
}
/* Line-by-line reveal looped on the 17.5s video cycle.
   Per line: idle → fade-in → hold visible until ~16s → fade out before video re-loops.
   animation-delay can't be used here because it only applies to the first iteration. */
.hero h1 .line {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  will-change: opacity, transform;
  animation-duration: 17.5s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-iteration-count: infinite;
}
.hero h1 .line-main { animation-name: heroLineMain; }
.hero h1 .line-sub  { animation-name: heroLineSub; }

/* Lines 1 + 2 ("AI Implementation / for Professionals") enter together at t=0.5s, in by t=2.3s */
@keyframes heroLineMain {
  0%, 2.86%   { opacity: 0; transform: translateY(28px); }
  13.14%      { opacity: 1; transform: translateY(0); }
  91.43%      { opacity: 1; transform: translateY(0); }
  97.14%      { opacity: 0; transform: translateY(0); }
  100%        { opacity: 0; transform: translateY(28px); }
}
/* Line 3 ("Who Don't Have Time...") enters at t=2.5s, in by t=4.3s — after main lines are settled */
@keyframes heroLineSub {
  0%, 14.29%  { opacity: 0; transform: translateY(20px); }
  24.57%      { opacity: 1; transform: translateY(0); }
  91.43%      { opacity: 1; transform: translateY(0); }
  97.14%      { opacity: 0; transform: translateY(0); }
  100%        { opacity: 0; transform: translateY(20px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 .line {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
/* SIGNATURE MOVE: mixed typeface — one word in Source Serif italic */
.hero h1 .serif {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  color: var(--warm-amber-glow);
  letter-spacing: -0.025em;
}
.hero h1 .amber-dot { color: var(--warm-amber); }

@keyframes lineReveal {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 64px;
  flex-wrap: wrap;
  animation: fadeIn 1.8s 1.9s both ease-out;
}
.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 18px 32px;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-primary {
  background: var(--warm-amber);
  color: var(--deep-teal-deep);
}
.btn-primary:hover { background: var(--canvas); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--canvas);
  border: 1px solid rgba(250, 250, 247, 0.45);
}
.btn-ghost:hover { border-color: var(--warm-amber-glow); color: var(--warm-amber-glow); }

.hero-signature {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(212, 136, 30, 0.65);
  border-left: 1px solid rgba(212, 136, 30, 0.45);
  padding-left: 16px;
  max-width: 320px;
  line-height: 1.7;
}

/* ==========================================================================
   Moments — full-width letterbox crossfade strip
   Lives mid-page (between Gap and Pillars). Cycles through real event footage.
   The crossfade idea, repurposed from the original hero plan.
   ========================================================================== */

.moments {
  background: var(--deep-teal-deep);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.moments-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  background: var(--deep-teal-deep);
}
.moment-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: momentsCycle 40s infinite ease-in-out;
}
.moment-layer img {
  width: 100%; height: 100%; object-fit: cover;
  animation: kenBurnsSubtle 16s ease-in-out infinite alternate;
  filter: brightness(0.86) contrast(1.04) saturate(0.95);
}
/* 8 layers × 5s each = 40s cycle. Each layer holds 5s with ~0.6s fade in/out. */
.moment-layer:nth-child(1) { animation-delay: 0s; }
.moment-layer:nth-child(2) { animation-delay: 5s; }
.moment-layer:nth-child(3) { animation-delay: 10s; }
.moment-layer:nth-child(4) { animation-delay: 15s; }
.moment-layer:nth-child(5) { animation-delay: 20s; }
.moment-layer:nth-child(6) { animation-delay: 25s; }
.moment-layer:nth-child(7) { animation-delay: 30s; }
.moment-layer:nth-child(8) { animation-delay: 35s; }

@keyframes momentsCycle {
  0%, 12.5%, 100% { opacity: 0; }
  1.5%, 11% { opacity: 1; }
}

.moments-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 40, 49, 0.2) 0%, rgba(6, 40, 49, 0.05) 50%, rgba(6, 40, 49, 0.7) 100%);
  pointer-events: none;
  z-index: 2;
}

.moments-caption {
  position: absolute;
  bottom: 32px;
  left: var(--gutter);
  right: var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  color: var(--canvas);
}
.moments-caption .label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--warm-amber-glow);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.moments-caption .label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--warm-amber-glow);
}
.moments-caption h3 {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.018em;
  max-width: 18ch;
}
.moments-caption h3 .serif {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  color: var(--warm-amber-glow);
}
.moments-caption .right-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(212, 136, 30, 0.7);
  text-align: right;
  line-height: 1.7;
}

/* ==========================================================================
   Below-fold — The Gap (bright editorial)
   ========================================================================== */

.gap {
  background: var(--canvas);
  padding: 200px var(--gutter);
}
.gap-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 120px;
  align-items: start;
}
.gap-stat {
  font-family: var(--font-head);
  font-size: clamp(180px, 24vw, 320px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.06em;
  color: var(--warm-amber);
  margin-bottom: 32px;
}
.gap-stat-label {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 16px;
  color: var(--stone);
  max-width: 280px;
  line-height: 1.5;
  padding-top: 16px;
  border-top: 1px solid var(--cloud-dark);
}
.gap-eyebrow {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--warm-amber);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}
.gap-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--warm-amber);
}
.gap-body h2 {
  font-family: var(--font-head);
  font-size: clamp(40px, 5vw, 76px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.026em;
  color: var(--deep-teal);
  margin-bottom: 48px;
  max-width: 18ch;
}
.gap-body h2 .serif {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  color: var(--soft-teal);
}
.gap-body h2 .amber-dot { color: var(--warm-amber); }
.gap-body p {
  margin-bottom: 22px;
  max-width: 580px;
  font-size: 19px;
  line-height: 1.6;
}
.gap-body p.lead {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 20px;
  color: var(--deep-teal);
  margin-bottom: 32px;
}
.gap-body p.serif-italic-large {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--soft-teal);
  font-size: 21px;
  border-left: 2px solid var(--warm-amber);
  padding-left: 24px;
  margin-top: 36px;
}

/* ==========================================================================
   Three pillars overview — editorial alternating rows, bright
   ========================================================================== */

.pillars {
  background: var(--canvas-warm);
  padding: 200px var(--gutter);
  border-top: 1px solid var(--cloud-dark);
  border-bottom: 1px solid var(--cloud-dark);
}
.pillars-inner { max-width: var(--container); margin: 0 auto; }
.pillars-head {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 96px;
  align-items: end;
  margin-bottom: 96px;
}
.pillars-eyebrow {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--warm-amber);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.pillars-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--warm-amber);
}
.pillars h2 {
  font-family: var(--font-head);
  /* Sized so "Elevate Your Performance." (25 chars, longest line) fits on one line in the 0.9fr column */
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--deep-teal);
}
.pillars h2 > span {
  display: block;
}
.pillars h2 .serif {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  color: var(--soft-teal);
}
.pillars h2 .amber-dot { color: var(--warm-amber); }
.pillars-aside {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 19px;
  color: var(--stone);
  line-height: 1.6;
  max-width: 480px;
}

.pillar-rows { display: grid; gap: 0; }
.pillar-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 96px;
  align-items: center;
  padding: 96px 0;
  border-top: 1px solid var(--cloud-dark);
}
.pillar-row:last-child { border-bottom: 1px solid var(--cloud-dark); }
.pillar-row.reverse { grid-template-columns: 0.95fr 1.05fr; }
.pillar-row.reverse .pillar-media { order: 2; }
.pillar-row.reverse .pillar-text { order: 1; }

.pillar-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.pillar-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pillar-row:hover .pillar-media img { transform: scale(1.04); }

/* Pillar 03 illustration is now native 4:5 portrait — same treatment as photo pillars.
   Hover scale lifted slightly because the illustration is a flatter composition. */
.pillar-row:hover .pillar-media-illustration img { transform: scale(1.02); }

.pillar-text .num {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--warm-amber);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  text-transform: uppercase;
}
.pillar-text .num::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--warm-amber);
}
.pillar-text h3 {
  font-family: var(--font-head);
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.022em;
  color: var(--deep-teal);
  margin-bottom: 32px;
  max-width: 14ch;
}
.pillar-text h3 .serif {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  color: var(--soft-teal);
}
.pillar-text h3 .amber-dot { color: var(--warm-amber); }
.pillar-text p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--stone);
  max-width: 480px;
  margin-bottom: 32px;
}
.pillar-link {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--deep-teal);
  border-bottom: 1px solid var(--warm-amber);
  padding-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: gap 0.25s ease;
}
.pillar-link:hover { gap: 16px; }

/* ==========================================================================
   Tier 4 · Polish baseline
   ========================================================================== */

::selection { background: var(--warm-amber); color: var(--deep-teal-deep); }
::-moz-selection { background: var(--warm-amber); color: var(--deep-teal-deep); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--warm-amber);
  outline-offset: 4px;
  border-radius: 1px;
}

/* ==========================================================================
   2F · Reading progress bar (top of viewport, amber)
   ========================================================================== */

.reading-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 100;
  pointer-events: none;
  background: transparent;
}
.reading-progress-fill {
  height: 100%;
  background: var(--warm-amber);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.08s linear;
  box-shadow: 0 0 12px rgba(212, 136, 30, 0.45);
}

/* ==========================================================================
   1B · Chapter index (right-edge nav) + sticky chapter pins per section
   ========================================================================== */

.chapter-index {
  position: fixed;
  top: 50%;
  right: 28px;
  transform: translateY(-50%);
  z-index: 40;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.chapter-index.visible {
  opacity: 1;
  pointer-events: auto;
}
.chapter-index ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chapter-index a {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}
.chapter-index a .num {
  font-feature-settings: "tnum";
  color: var(--cloud-dark);
  transition: color 0.25s ease;
}
.chapter-index a .label {
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}
.chapter-index a::before {
  content: '';
  display: block;
  order: -1;
  width: 18px;
  height: 1px;
  background: var(--cloud-dark);
  transition: background 0.25s ease, width 0.25s ease;
}
.chapter-index a:hover .label,
.chapter-index a.active .label {
  opacity: 1;
  transform: translateX(0);
}
.chapter-index a.active {
  color: var(--deep-teal);
}
.chapter-index a.active .num { color: var(--warm-amber); }
.chapter-index a.active::before { background: var(--warm-amber); width: 32px; }

/* Sticky chapter pin — one per major section, replaces the old in-grid eyebrows.
   Sits in normal flow (not negative-margin overlay) so it doesn't fight content. */
.chapter-pin {
  position: sticky;
  top: 96px;
  z-index: 6;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--warm-amber);
  padding: 0 var(--gutter);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: none;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.chapter-pin span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--stone);
  padding-right: 14px;
  border-right: 1px solid var(--cloud-dark);
  margin-right: 4px;
}
.chapter-pin-dark { color: var(--warm-amber-glow); }
.chapter-pin-dark span { color: rgba(250, 250, 247, 0.55); border-right-color: rgba(250, 250, 247, 0.18); }

/* Suppress the old per-section eyebrows since chapter-pin replaces them */
.gap-eyebrow, .pillars-eyebrow { display: none; }

/* Push section padding-top to make room under sticky chapter pin */
.gap, .pillars { padding-top: 160px; }
.operators { padding-top: 160px; }

/* ==========================================================================
   2B · (removed) — Moments caption sync. The right-meta event labels were
   dropped when Rafi reframed Moments as an unlabeled gallery (2026-05-12).
   ========================================================================== */

/* ==========================================================================
   2C · Pillar row entry choreography — fade up + image scale on viewport entry
   ========================================================================== */

.pillar-row, .gap-body, .gap-stat-wrap {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.pillar-row.in-view, .gap-body.in-view, .gap-stat-wrap.in-view {
  opacity: 1;
  transform: translateY(0);
}

.pillar-row .pillar-media img {
  transform: scale(1.06);
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.pillar-row.in-view .pillar-media img {
  transform: scale(1);
}
.pillar-row:hover .pillar-media img { transform: scale(1.04); }

.pillar-text > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.pillar-row.in-view .pillar-text > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.pillar-row.in-view .pillar-text > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.30s; }
.pillar-row.in-view .pillar-text > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }
.pillar-row.in-view .pillar-text > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.60s; }

@media (prefers-reduced-motion: reduce) {
  .pillar-row, .gap-body, .gap-stat-wrap,
  .pillar-row .pillar-media img,
  .pillar-text > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   1C · Signal from the Room — signature lateral-scroll quote (Meka)
   Section is 250vh tall; sticky inner is 100vh; track translates X via JS.
   ========================================================================== */

.signal {
  position: relative;
  height: 200vh;
  background: var(--deep-teal-deep);
  color: var(--canvas);
  /* DO NOT set overflow:hidden here — it breaks position:sticky on .signal-sticky.
     The inner .signal-sticky has its own overflow:hidden to clip the lateral track. */
}
.signal-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.signal-top-row {
  padding: 96px var(--gutter) 0;
}
.signal .chapter-pin {
  /* chapter-pin is now a grid-row child, not sticky inside the section */
  position: static;
  padding: 0;
  margin: 0;
}
.signal-quote-row {
  overflow: hidden;
  display: flex;
  align-items: center;
}
.signal-track {
  white-space: nowrap;
  will-change: transform;
  display: inline-flex;
  align-items: center;
}
.signal-quote {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(80px, 14vw, 220px);
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--canvas);
  white-space: nowrap;
  margin: 0;
}
.signal-quote .amber-dot { color: var(--warm-amber); font-style: normal; }

.signal-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 var(--gutter) 72px;
}
.signal-attribution {
  opacity: 0;
  transform: translateY(16px);
  max-width: 360px;
}
.signal-attribution-rule {
  width: 48px;
  height: 1px;
  background: var(--warm-amber);
  margin-bottom: 18px;
}
.signal-attribution-name {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--canvas);
  margin-bottom: 4px;
}
.signal-attribution-role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 250, 247, 0.6);
}
.signal-scroll-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(212, 136, 30, 0.55);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.signal-scroll-hint::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: rgba(212, 136, 30, 0.45);
}
@media (prefers-reduced-motion: reduce) {
  .signal { height: auto; padding-bottom: 120px; }
  .signal-sticky { position: static; height: auto; grid-template-rows: auto auto; margin-top: 0; padding-top: 40px; }
  .signal-quote-row { padding: 0 var(--gutter); }
  .signal-quote { font-size: clamp(40px, 6vw, 88px); white-space: normal; max-width: 22ch; }
  .signal-track { transform: none !important; }
  .signal-attribution { opacity: 1 !important; transform: none !important; }
  .signal-scroll-hint { display: none; }
}

/* ==========================================================================
   3D · Operator credential word strip
   ========================================================================== */

.operators {
  position: relative;
  background: var(--canvas);
  padding: 200px var(--gutter) 160px;
  border-top: 1px solid var(--cloud);
}
.operators-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  text-align: center;
}
.operators-line {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.4vw, 52px);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -0.018em;
  color: var(--deep-teal);
  max-width: 28ch;
  margin: 0 auto;
}
.operators-line em {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  color: var(--soft-teal);
}
.operators-line .amber-dot { color: var(--warm-amber); }
.operators-foot {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 16px;
  color: var(--stone);
  max-width: 56ch;
  margin: 0 auto;
}

/* ==========================================================================
   4E · Editorial colophon footer
   ========================================================================== */

.colophon {
  background: var(--deep-teal-deep);
  color: var(--canvas);
  padding: 64px var(--gutter);
  border-top: 1px solid rgba(250, 250, 247, 0.08);
}
.colophon-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.colophon-mark img {
  height: 24px;
  width: auto;
  opacity: 0.92;
}
.colophon-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 250, 247, 0.62);
}
.colophon-meta em {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--warm-amber-glow);
}
.colophon-credit { color: rgba(250, 250, 247, 0.42); }
.colophon-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-amber-glow);
  transition: color 0.22s ease, transform 0.22s ease;
  padding: 6px;
}
.colophon-social:hover {
  color: var(--warm-amber);
  transform: translateY(-1px);
}
.colophon-social svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 980px) {
  .nav, .nav-deploy { display: none; }
  .hero { padding: 0 var(--gutter) 56px; min-height: 90vh; }
  .hero-bottom { flex-direction: column; gap: 32px; align-items: start; }
  .gap, .pillars { padding: 160px 24px 96px; }
  .gap-grid, .pillars-head, .pillar-row, .pillar-row.reverse {
    grid-template-columns: 1fr !important; gap: 32px;
  }
  .pillar-row.reverse .pillar-media, .pillar-row.reverse .pillar-text { order: 0; }
  .chapter-index { display: none; } /* not enough horizontal room */
  .chapter-pin { padding: 0 24px; top: 80px; font-size: 10px; letter-spacing: 0.22em; }
  .signal { height: 200vh; }
  .signal-attribution { bottom: 56px; left: 24px; }
  .signal-scroll-hint { display: none; }
  .operators { padding: 96px 24px; }
  .colophon-inner { flex-direction: column; align-items: flex-start; }
  .colophon-meta { align-items: flex-start; }
}
