/* ═══════════════════════════════════════════════════════════
   Loupe — landing page

   Scroll model: sticky stacking.
   · panel--cover  sticks at top 0 and is covered by the next panel
   · panel--pin    holds the viewport while its contents advance

   NOTHING in the ancestor chain of a sticky element may have
   overflow hidden or auto — including overflow-x on body, which
   computes overflow-y to auto and silently kills sticky.
   Decor is clipped inside each panel instead.
   ═══════════════════════════════════════════════════════════ */

:root {
  --teal:        #0F9E96;
  --teal-bright: #2DD4BF;
  --teal-deep:   #0D9488;
  --amber:       #F4A93B;   /* dark surfaces only */
  --amber-light: #FBBF24;
  --amber-data:  #C97A09;   /* validated for light surfaces */
  --ground:      #EFF6F5;
  --muted:       #64748B;
  --ink:         #0F2E2C;
  --ink-2:       #2D4A48;
  --white:       #FFFFFF;
  --night:       #082220;

  --display: "Outfit", system-ui, -apple-system, sans-serif;
  --body:    "Inter", system-ui, -apple-system, sans-serif;

  --wrap: 1120px;
  --pad:  clamp(20px, 5vw, 40px);
  --ease: cubic-bezier(.22,.8,.3,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* deliberately no overflow property here */
}

img { max-width: 100%; display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.tac { text-align: center; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); position: relative; z-index: 1; }
.wrap--narrow { max-width: 780px; }

/* ───────────── SCROLL PROGRESS ───────────── */

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal-bright), var(--amber)); }

/* ═══════════ PANEL SYSTEM ═══════════ */

.stack { position: relative; }
.panel { position: relative; isolation: isolate; }

.panel--white  { background: var(--white); }
.panel--ground { background: var(--ground); }
.panel--night, .panel--night .cover { background: radial-gradient(120% 90% at 50% 0%, #15423F 0%, #0B2C2A 55%, var(--night) 100%); }
.panel--teal   { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%); }

/* ── COVER: sticks, then the next panel slides up over it ── */

/* The section supplies the scroll distance; .cover is what sticks.
   --cover-span must stay above the SPAN used in main.js (1.6), or the
   incoming panel starts its approach already overlapping the viewport. */
.panel--cover { height: calc(var(--cover-span, 1.85) * 100svh); }

.cover {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  align-items: center;
  overflow: clip;
  background: inherit;
  padding-block: clamp(70px, 11vh, 130px);
  will-change: transform;
}
.panel__inner { width: 100%; will-change: transform, opacity; }

/* ── PIN: the viewport is held while contents advance ── */

.panel--pin { height: calc(var(--steps, 3) * 100svh); }

.pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(26px, 5vh, 56px);
  overflow: clip;
  padding-block: clamp(70px, 11vh, 120px);
}
.pin__head { flex: none; }
.pin__stage { position: relative; flex: 0 1 auto; min-height: min(46vh, 380px); }

.pstep {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  transform: translateY(42px);
  transition: opacity .62s var(--ease), transform .62s var(--ease);
  pointer-events: none;
}
.pstep.is-on { opacity: 1; transform: none; pointer-events: auto; }
.pstep.is-past { opacity: 0; transform: translateY(-42px); }

.pin__dots { display: flex; gap: 9px; margin-top: 22px; }
.pin__dots span { width: 28px; height: 3px; border-radius: 2px; background: rgba(15,46,44,.16); transition: background .4s var(--ease), width .4s var(--ease); }
.pin__dots span.is-on { background: var(--amber-data); width: 46px; }
.pin__dots--invert span { background: rgba(255,255,255,.2); }
.pin__dots--invert span.is-on { background: var(--amber); }

/* ───────────── DECOR ───────────── */

.decor { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: clip; }
.decor > span { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); display: block; will-change: transform; }

.orb { border-radius: 50%; filter: blur(48px); opacity: .30; background: radial-gradient(circle at 34% 30%, var(--teal-bright), transparent 68%); }
.orb--amber  { background: radial-gradient(circle at 34% 30%, var(--amber-light), transparent 68%); opacity: .20; }
.orb--bright { background: radial-gradient(circle at 34% 30%, var(--teal-bright), transparent 66%); opacity: .22; }
.panel--night .orb { opacity: .26; filter: blur(66px); }

.ring { border-radius: 50%; border: 1.5px solid var(--teal); opacity: .14; }
.ring::after { content: ""; position: absolute; inset: 17%; border-radius: 50%; border: 1.5px solid var(--amber-data); opacity: .55; }
.panel--night .ring { border-color: var(--teal-bright); opacity: .18; }

/* ───────────── HERO ───────────── */

#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; z-index: 0; }
#hero-canvas.is-ready { opacity: 1; }
.hero__fallback { position: absolute; inset: 0; display: grid; place-items: center; opacity: .14; transition: opacity .8s ease; pointer-events: none; z-index: 0; }
.hero__fallback img { width: min(54vmin, 440px); }
.hero__fallback.is-hidden { opacity: 0; }

.wordmark { font-family: var(--display); font-weight: 700; font-size: clamp(56px, 13vw, 132px); line-height: 1; color: var(--white); margin: 0 0 18px; display: flex; align-items: center; justify-content: center; gap: .02em; }
.wordmark__o { width: .92em; height: .92em; flex: none; transform: translateY(.035em); filter: drop-shadow(0 6px 22px rgba(45,212,191,.35)); }

.hero__tagline { font-family: var(--display); font-weight: 300; font-size: clamp(19px, 3.4vw, 28px); color: var(--teal-bright); margin: 0 0 26px; }
.hero__lede { font-size: clamp(16px, 2.2vw, 19px); line-height: 1.7; color: rgba(255,255,255,.80); max-width: 54ch; margin: 0 auto 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 30px; }
.hero__note { font-size: 14px; color: rgba(255,255,255,.45); margin: 0; }

.btn { font-family: var(--display); font-weight: 600; font-size: 16px; text-decoration: none; padding: 14px 28px; border-radius: 999px; transition: transform .18s ease, background .18s ease; display: inline-block; }
.btn--primary { background: var(--amber); color: #35230A; box-shadow: 0 8px 26px rgba(244,169,59,.32); }
.btn--ghost { color: var(--white); border: 1.5px solid rgba(255,255,255,.28); }
.btn:hover { transform: translateY(-2px); }
.btn--ghost:hover { background: rgba(255,255,255,.08); }

.hero__scroll { position: absolute; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); width: 22px; height: 36px; border: 1.5px solid rgba(255,255,255,.22); border-radius: 12px; z-index: 2; }
.hero__scroll span { position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; background: var(--teal-bright); border-radius: 2px; animation: scrollDot 1.9s ease-in-out infinite; }
@keyframes scrollDot { 0%,100% { opacity: 0; transform: translateY(0); } 35% { opacity: 1; } 70% { opacity: 0; transform: translateY(12px); } }

/* ───────────── TYPE ───────────── */

.eyebrow { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin: 0 0 14px; }
.eyebrow--invert, .panel--teal .eyebrow { color: var(--teal-bright); }

.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(27px, 4.4vw, 44px); line-height: 1.18; letter-spacing: -.015em; margin: 0 0 20px; max-width: 22ch; }
.h2--invert { color: var(--white); }
.h2--big { font-size: clamp(32px, 6vw, 62px); max-width: none; }
.tac .h2 { margin-inline: auto; }

.body { font-size: 17px; line-height: 1.75; color: var(--ink-2); max-width: 62ch; margin: 0 0 18px; }
.body--invert { color: rgba(255,255,255,.82); }
.tac .body { margin-inline: auto; }
.body--small { font-size: 16px; color: var(--muted); }
.body--lead { font-family: var(--display); font-size: clamp(19px, 2.6vw, 25px); font-weight: 400; color: var(--ink); line-height: 1.45; }

/* ───────────── FIGURES ─────────────
   Proportional figures. tabular-nums widens every digit and makes a
   standalone display number look loose; tabular is for columns only. */

.bigstat { margin: 0; line-height: 1; }
.bigstat__num { font-family: var(--display); font-weight: 700; font-size: clamp(76px, 15vw, 170px); color: var(--amber-data); letter-spacing: -.04em; display: block; }
.bigstat__caption { font-family: var(--display); font-weight: 400; font-size: clamp(20px, 3vw, 32px); line-height: 1.32; max-width: 20ch; margin: 6px 0 28px; letter-spacing: -.01em; }
.bigstat__caption em { font-style: normal; color: var(--teal); font-weight: 600; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 30px; margin: 40px 0 30px; }
.fact p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.fact__n { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 5.4vw, 54px); color: var(--amber-data); line-height: 1; margin-bottom: 10px !important; letter-spacing: -.03em; }
.src { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }

/* ───────────── PINNED STEPS ───────────── */

.ic { width: 76px; height: 76px; display: block; margin-bottom: 18px; overflow: visible; }
.ic--xl { width: clamp(96px, 14vw, 150px); height: clamp(96px, 14vw, 150px); margin: 0; flex: none; }

.ic-lift { transform-origin: 60px 60px; transition: transform .5s var(--ease); }
.card:hover .ic-lift { transform: translateY(-5px) scale(1.04); }
.ic-check { stroke-dasharray: 46; stroke-dashoffset: 46; transition: stroke-dashoffset .7s var(--ease) .3s; }
.is-on .ic-check, .is-in .ic-check { stroke-dashoffset: 0; }

.bigstep { display: flex; gap: clamp(24px, 5vw, 56px); align-items: center; flex-wrap: wrap; }
.bigstep__n { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-data); margin: 0 0 8px; }
.bigstep h3 { font-family: var(--display); font-size: clamp(26px, 4vw, 40px); font-weight: 600; margin: 0 0 12px; letter-spacing: -.015em; }
.bigstep p { margin: 0; font-size: clamp(16px, 2vw, 18.5px); line-height: 1.7; color: var(--ink-2); max-width: 54ch; }
.bigstep > div { flex: 1 1 320px; }

.agent { max-width: 62ch; }
.agent__n { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .18em; color: var(--amber); display: block; margin-bottom: 16px; }
.agent h3 { font-family: var(--display); font-size: clamp(28px, 4.4vw, 46px); font-weight: 600; color: var(--white); margin: 0 0 14px; letter-spacing: -.015em; }
.agent p { margin: 0; font-size: clamp(16px, 2vw, 18.5px); line-height: 1.72; color: rgba(255,255,255,.72); }

/* ───────────── CHART ───────────── */

.chart { margin: 0; padding: 0; }
.chart__title { font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--ink); margin-bottom: 4px; }
.chart__sub { font-size: 14.5px; color: var(--muted); margin: 0 0 20px; }
.chart__svg { width: 100%; height: auto; max-height: 44vh; overflow: visible; }

.bar__cat { font-family: var(--body); font-size: 14px; fill: var(--ink-2); text-anchor: end; dominant-baseline: middle; }
.bar__track { fill: rgba(15,158,150,.07); rx: 4; }
.bar__fill { fill: var(--teal); width: 0; transition: width 1.05s var(--ease); }
.bar--accent .bar__fill { fill: var(--amber-data); }
.is-on .bar__fill { width: var(--w); }

.bar__val { font-family: var(--body); font-size: 13px; font-weight: 600; fill: var(--white); dominant-baseline: middle; opacity: 0; transition: opacity .4s ease .75s; }
.bar__val--out { fill: var(--ink-2); }
.is-on .bar__val { opacity: 1; }

.chart__base { stroke: rgba(15,46,44,.18); stroke-width: 1; }
.chart__tick { font-family: var(--body); font-size: 12px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart__tick--s { text-anchor: start; }
.chart__tick--m { text-anchor: middle; }
.chart__tick--e { text-anchor: end; }
.chart__note { font-size: 15px; color: var(--ink-2); margin: 18px 0 0; max-width: 60ch; }
.bar:hover .bar__fill { filter: brightness(1.1); }

.tip { position: fixed; z-index: 90; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease; background: var(--night); color: var(--white); font-size: 13.5px; line-height: 1.45; padding: 9px 13px; border-radius: 10px; box-shadow: 0 10px 30px rgba(8,34,32,.3); max-width: 230px; }
.tip.is-on { opacity: 1; transform: translateY(0); }

/* ───────────── TILES / CARDS ───────────── */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; margin: 0 0 28px; }
.stat__num { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 6.4vw, 62px); color: var(--amber-data); line-height: 1; display: block; margin-bottom: 10px; letter-spacing: -.03em; }
.stat p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.stat strong { color: var(--teal); font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(262px, 1fr)); gap: 26px; margin: 38px 0 32px; }
.card { background: var(--white); border-radius: 22px; padding: 30px 26px; box-shadow: 0 10px 34px rgba(15,158,150,.09); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 54px rgba(15,158,150,.16); }
.card h3 { font-family: var(--display); font-size: 21px; font-weight: 600; margin: 0 0 10px; color: var(--teal); }
.card p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.closing { font-family: var(--display); font-weight: 300; font-size: clamp(19px, 2.8vw, 27px); line-height: 1.4; color: var(--teal-deep); max-width: 26ch; margin: 0; }

/* ───────────── FLOW SECTIONS ───────────── */

.flow { position: relative; z-index: 2; background: var(--white); }
.section { padding-block: clamp(76px, 11vw, 136px); position: relative; }
.section--ground { background: var(--ground); }

.safety { list-style: none; padding: 0; margin: 46px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 34px 40px; }
.safety h3 { font-family: var(--display); font-size: 18px; font-weight: 600; margin: 0 0 8px; color: var(--ink); padding-left: 18px; position: relative; }
.safety h3::before { content: ""; position: absolute; left: 0; top: .52em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.safety p { margin: 0 0 0 18px; font-size: 15.5px; line-height: 1.68; color: var(--ink-2); }

.targets { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; margin: 46px 0 34px; }
.target__n { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 5.6vw, 56px); color: var(--teal-deep); line-height: 1; display: block; margin-bottom: 8px; letter-spacing: -.03em; }
.target p { margin: 0; font-size: 15.5px; color: var(--muted); }

.team { list-style: none; padding: 0; margin: 46px 0 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(182px, 1fr)); gap: 32px 24px; }
.member h3 { font-family: var(--display); font-size: 17.5px; font-weight: 600; margin: 0 0 4px; }
.member__photo { width: 100%; aspect-ratio: 1; border-radius: 20px; background: linear-gradient(135deg, var(--teal-bright) 0%, var(--teal-deep) 100%); margin-bottom: 14px; display: grid; place-items: center; background-size: cover; background-position: center; transition: transform .45s var(--ease); }
.member:hover .member__photo { transform: translateY(-5px); }
.member__photo::after { content: attr(data-initials); font-family: var(--display); font-weight: 700; font-size: 30px; color: rgba(255,255,255,.55); }
.member__role { margin: 0; font-size: 14.5px; color: var(--teal); font-weight: 500; }
.member__school { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }

.reviewers { background: var(--ground); border-radius: 22px; padding: 32px; }
.reviewers ul { list-style: none; padding: 0; margin: 0; }
.reviewers li { font-size: 16px; line-height: 1.85; color: var(--ink-2); }
.reviewers strong { color: var(--ink); }

.footer { position: relative; z-index: 2; background: var(--night); color: rgba(255,255,255,.62); padding-block: 64px calc(64px + env(safe-area-inset-bottom, 0px)); text-align: center; }
.footer__mark { width: 58px; margin: 0 auto 18px; }
.footer__tag { font-family: var(--display); font-size: 19px; font-weight: 300; color: var(--teal-bright); margin: 0 0 10px; }
.footer__meta { font-size: 13.5px; margin: 0; }

/* ───────────── REVEAL (flow sections only) ───────────── */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ───────────── NARROW ───────────── */

@media (max-width: 760px) {
  .panel--pin { height: calc(var(--steps, 3) * 92svh); }
  .pin { height: 92svh; }
  .bigstep { gap: 20px; }
  .ic--xl { width: 86px; height: 86px; }
  .orb { opacity: .18; }
  .ring { opacity: .09; }
  .chart__svg { max-height: none; }
}

/* ───────────── REDUCED MOTION ─────────────
   The sticky choreography degrades to plain stacked sections. */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel--cover { height: auto; }
  .cover { position: static; height: auto; padding-block: 72px; transform: none !important; }
  .panel--pin { height: auto; }
  .pin { position: static; height: auto; padding-block: 72px; }
  .pin__stage { min-height: 0; }
  .pstep { position: static; opacity: 1; transform: none; transition: none; margin-bottom: 48px; pointer-events: auto; }
  .pstep.is-past { opacity: 1; transform: none; }
  .pin__dots { display: none; }
  .decor { display: none; }
  [data-px] { transform: none !important; }
  .panel__inner { transform: none !important; opacity: 1 !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll span { animation: none; }
  #hero-canvas, .bar__fill, .bar__val, .ic-lift, .ic-check { transition: none; }
  .bar__fill { width: var(--w); }
  .bar__val { opacity: 1; }
  .ic-check { stroke-dashoffset: 0; }
}
/* ───────────── PANEL BACKGROUNDS ─────────────
   The image runs at near-full strength where nothing sits on it. Where text
   sits, a frosted pane blurs it instead of hiding it: the photograph stays
   perceptible as soft colour and shape, and the words stay readable.

   The tint is WHITE on every light panel, never the panel colour. #C97A09
   measures only 3.34:1 on pure white, so a tint of --ground (already darker)
   leaves no headroom and no combination of values passes.

   Fallback where backdrop-filter is unsupported: the image is masked out of
   the text zone instead of frosted. */

.panel[data-bg] .cover::before,
.panel[data-bg] .pin::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: var(--bg-pos, center);
  opacity: var(--bg-opacity, .85);
  filter: var(--bg-filter, none);
  -webkit-mask-image: var(--bg-mask, none);
          mask-image: var(--bg-mask, none);
  pointer-events: none;
}

@supports ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .panel[data-bg] .cover::before,
  .panel[data-bg] .pin::before {
    -webkit-mask-image: none;
            mask-image: none;
  }
  .panel[data-bg] .cover::after,
  .panel[data-bg] .pin::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    -webkit-backdrop-filter: blur(22px) saturate(.88);
            backdrop-filter: blur(22px) saturate(.88);
    background: var(--frost, rgba(255,255,255,.88));
    -webkit-mask-image: var(--frost-mask, none);
            mask-image: var(--frost-mask, none);
    pointer-events: none;
  }
}

/* Content always wins, whatever stacking context it lands in. */
.panel__inner,
.pin__head,
.pin__stage { position: relative; z-index: 2; }
.decor { z-index: 1; }

/* ── per panel ──
   --bg-mask   fallback: where the image survives
   --frost-mask opaque where the frosted pane sits, i.e. under the text */

/* Measured: the text zone of this photograph sits at 0.028 luminance, its
   brightest decile at 0.054. White clears 10:1 there and the brand amber
   #F4A93B clears 5:1 — so this one panel carries the image at full strength
   with no frost at all, and the real brand amber comes back. */
#problem {
  --bg: url("../assets/bg/bg-problem.jpg"); --bg-opacity: 1; --bg-pos: right center;
}
#why {
  --bg: url("../assets/bg/bg-why.jpg"); --bg-opacity: 1; --bg-pos: right center;
}
#how {
  --bg: url("../assets/bg/bg-how.jpg"); --bg-opacity: 1; --bg-pos: left center;
}
#data {
  --bg: url("../assets/bg/bg-data.jpg"); --bg-opacity: 1;
}
#learn {
  --bg: url("../assets/bg/bg-learn.jpg"); --bg-opacity: 1;
}
#pipeline {
  --bg: url("../assets/bg/bg-pipeline.jpg"); --bg-opacity: .95; --bg-pos: center bottom;
  --frost: rgba(8,34,32,.52);
  --frost-mask: linear-gradient(0deg, transparent 0%, rgba(0,0,0,.45) 26%, #000 56%);
}
#boundary {
  --bg: url("../assets/bg/bg-boundary.jpg"); --bg-opacity: .28;
  --frost: rgba(15,158,150,.42);
}

/* ───────────── PHOTOGRAPHIC PANEL ───────────── */

.panel--photo, .panel--photo .cover { background: #0A1A19; }
.panel--photo .cover::after { display: none; }

.panel--photo .eyebrow            { color: var(--teal-bright); }
.panel--photo .bigstat__num       { color: var(--amber); }
.panel--photo .bigstat__caption   { color: var(--white); }
.panel--photo .bigstat__caption em{ color: var(--teal-bright); }
.panel--photo .body               { color: rgba(255,255,255,.80); }
.panel--photo .body--lead         { color: var(--white); }

/* ───────────── FULL-STRENGTH PHOTOGRAPHIC PANELS ─────────────
   Measured worst case inside each text zone, image at 100%:
     problem  white 10.05:1   amber #F4A93B 5.07:1   passes
     why      ink    7.81:1   amber #6B3D03 4.93:1   passes
     data     white  3.11:1                          passes
     how      white  1.96:1                          FAILS
     learn    white  1.64:1                          FAILS
   The last two span 0.012 to 0.485 luminance inside a single paragraph, so
   no ink colour can clear 3:1 across it. They carry a text shadow, which
   lifts the bright patches but is a patch, not a fix. */

.panel--photo, .panel--photo .cover, .panel--photo .pin { background: #0A1A19; }
.panel--photolight, .panel--photolight .cover { background: var(--ground); }
.panel--photo .cover::after, .panel--photo .pin::after,
.panel--photolight .cover::after { display: none; }

/* dark image, light ink */
.panel--photo .eyebrow, .panel--photo .eyebrow--invert { color: var(--teal-bright); }
.panel--photo .h2, .panel--photo .bigstat__caption,
.panel--photo .body--lead, .panel--photo .closing { color: var(--white); }
.panel--photo .bigstat__caption em { color: var(--teal-bright); }
.panel--photo .bigstat__num, .panel--photo .stat__num,
.panel--photo .bigstep__n { color: var(--amber); }
.panel--photo .body, .panel--photo .bigstep p, .panel--photo .stat p,
.panel--photo .chart__sub, .panel--photo .chart__note { color: rgba(255,255,255,.82); }
.panel--photo .bigstep h3, .panel--photo .chart__title { color: var(--white); }
.panel--photo .stat strong { color: var(--teal-bright); }
.panel--photo .pin__dots span { background: rgba(255,255,255,.22); }
.panel--photo .pin__dots span.is-on { background: var(--amber); }

/* the chart has to invert with its panel */
.panel--photo .bar__cat { fill: rgba(255,255,255,.82); }
.panel--photo .bar__track { fill: rgba(255,255,255,.10); }
.panel--photo .bar__val--out { fill: rgba(255,255,255,.82); }
.panel--photo .bar--accent .bar__fill { fill: var(--amber); }
.panel--photo .chart__base { stroke: rgba(255,255,255,.26); }
.panel--photo .chart__tick { fill: rgba(255,255,255,.55); }

/* light image, dark ink */
.panel--photolight .eyebrow { color: var(--teal-deep); }
.panel--photolight .h2 { color: var(--ink); }
.panel--photolight .fact__n { color: #6B3D03; }
.panel--photolight .fact p, .panel--photolight .body { color: var(--ink); }
.panel--photolight .src { color: #3C4E4C; }

/* where no ink clears 3:1 across the zone */
#how .pin__head, #how .pin__stage,
#learn .panel__inner { text-shadow: 0 1px 14px rgba(8,22,21,.72), 0 1px 3px rgba(8,22,21,.5); }

/* ───────────── PHOTOGRAPHIC FLOW SECTIONS ─────────────
   Measured brightest point in each text zone, image at 100%:
     impact 0.015 · learn 0.058 · team 0.102 · safety 0.262
   safety is the outlier: the lamp-lit stack of paper is intrinsically
   bright, and no opacity fixes it because lowering opacity over a dark base
   barely moves a bright pixel. brightness(.72) does, and lifts white from
   3.36:1 to 5.7:1 and teal from 1.81:1 to 3.1:1. */

.section--photo { position: relative; overflow: clip; background: #0A1A19; }
.section--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: var(--bg-pos, center);
  opacity: var(--bg-opacity, 1);
  filter: var(--bg-filter, none);
  pointer-events: none;
}
.section--photo > .wrap { position: relative; z-index: 2; }

.section--photo .eyebrow { color: var(--white); }
.section--photo .h2, .section--photo .safety h3, .section--photo .member h3,
.section--photo .reviewers strong { color: var(--white); }
.section--photo .body, .section--photo .safety p, .section--photo .target p,
.section--photo .reviewers li { color: rgba(255,255,255,.80); }
.section--photo .target__n { color: var(--amber); }
.section--photo .member__role { color: var(--teal-bright); }
.section--photo .member__school { color: rgba(255,255,255,.55); }
.section--photo .reviewers { background: rgba(255,255,255,.06); border: 1px solid rgba(45,212,191,.16); }
.section--photo .reviewers .eyebrow { color: var(--teal-bright); }
.section--photo .safety h3::before { background: var(--teal-bright); }

#safety { --bg: url("../assets/bg/bg-safety.jpg"); --bg-filter: brightness(.72); }
#impact { --bg: url("../assets/bg/bg-impact.jpg"); }
#team   { --bg: url("../assets/bg/bg-team.jpg");   --bg-pos: center top; }

.reviewers__note { margin: 16px 0 0; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.section--photo .reviewers__note { color: rgba(255,255,255,.72); }

/* Four cards will not fit one row at minmax(262px): 4x262 + 3x26 = 1126px
   against 1040px of usable width, so auto-fit drops to three columns and the
   fourth wraps below a panel that is clipped at 100svh. */
#learn .cards { grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 20px; }
#learn .card { padding: 24px 20px; }
#learn .card h3 { font-size: 19px; }
#learn .card p { font-size: 15px; line-height: 1.6; }

/* A cover panel is a fixed viewport box that clips. Where the viewport is too
   small to hold its content, drop the choreography rather than cut words. */
@media (max-width: 760px), (max-height: 700px) {
  .panel--cover { height: auto; }
  .cover { position: static; height: auto; min-height: 100svh; overflow: visible; }
}

.bigstep__alt { display: block; margin-top: 8px; font-size: 14.5px; color: rgba(255,255,255,.58); }
.bigstep__alt a { color: var(--teal-bright); text-decoration: none; border-bottom: 1px solid rgba(45,212,191,.35); }
.footer__try { margin: 0 0 12px; font-size: 14.5px; }
.footer__try a { color: var(--teal-bright); text-decoration: none; }
.footer__try a:hover { text-decoration: underline; }
