/* Revallis
   Two families: DM Serif Display for the headline voice, DM Sans for everything
   that has to be read. Bone light chapters, deep-teal and charcoal dark
   chapters, and a single mint accent — carried by italic emphasis in the
   headlines, the eyebrow labels, and the primary button.
   Legacy token names are kept so the choreography in main.js stays untouched.
   ------------------------------------------------------------------------- */

:root {
  /* Grounds */
  --bone: #F4F1EA;
  --sand: #D8D4CC;
  --teal-deep: #203B43;
  --teal-mid: #365D61;
  --charcoal: #20292E;

  --porcelain: #F4F1EA;   /* bone */
  --white: #FFFFFF;
  --steel: #2E6E64;       /* mint, darkened for type on bone */
  --steel-deep: #24564F;
  --harbor: #20292E;      /* charcoal: headings on bone */
  --ink: #20292E;
  --muted: #5C6366;       /* charcoal ~58% on bone, solid for AA */
  --chrome: #D8D4CC;      /* sand hairline */
  --mist: #E6E2D9;

  /* Dark chapters */
  --abyss: #20292E;       /* charcoal ground */
  --abyss-2: #203B43;     /* deep teal */
  --slab: #365D61;        /* mid teal panel */
  --on-abyss: #DCE9E5;
  --on-abyss-dim: #9DA9A7;

  /* The accent */
  --cobalt: #75C8BC;      /* mint */
  --cobalt-soft: #9FDCD2;
  --mint: #75C8BC;
  --mint-wash: rgba(117, 200, 188, .09);
  --no: #E0A18A;

  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --display: "DM Serif Display", "Iowan Old Style", Georgia, serif;

  --gutter: clamp(20px, 5vw, 76px);
  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, .84, .44, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  /* The sticky nav sits in flow above the hero, so the page ground is the
     hero's charcoal; the light chapters carry their own bone. */
  background: var(--charcoal);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--display); font-weight: 400; letter-spacing: -0.005em;
  margin: 0; color: var(--harbor);
}
h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; font-weight: 400; }
h3 { font-size: 22px; line-height: 1.25; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--mint); }
p { margin: 0; }
a { color: var(--steel); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }

:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--harbor); color: var(--white); border-radius: var(--radius);
}
.skip:focus { top: 12px; }

/* Shared: eyebrow rule + tracking label */
.kicker {
  font-family: var(--sans);
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--steel);
}

/* Eyebrow pill (hero) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(117, 200, 188, .38);
  background: rgba(117, 200, 188, .07);
  color: var(--mint);
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  line-height: 1;
  margin-bottom: clamp(20px, 2.4vw, 32px);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 0 4px rgba(117, 200, 188, .16);
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 15px 30px; border-radius: 4px;
  font-family: var(--sans);
  font-weight: 600; font-size: 13px; letter-spacing: 0.14em; line-height: 1;
  text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .4s var(--ease), background-color .3s var(--ease), box-shadow .4s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--mint); color: var(--charcoal);
  box-shadow: 0 12px 32px -16px rgba(32, 41, 46, .6);
}
.btn-primary:hover { background: var(--cobalt-soft); box-shadow: 0 18px 40px -16px rgba(32, 41, 46, .55); }
.btn-nav, .nav-menu .btn-nav {
  min-height: 44px; padding: 12px 22px; font-size: 11px; letter-spacing: 0.18em;
  border-radius: 999px;
  background: transparent; color: var(--harbor);
  border: 1px solid rgba(32, 41, 46, .3);
}
.btn-nav:hover { background: var(--charcoal); color: var(--bone); border-color: var(--charcoal); }
.link-quiet {
  color: var(--harbor); font-weight: 500; font-size: 13px; letter-spacing: 0.03em;
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px;
  padding: 0 24px; border-radius: 4px;
  border: 1px solid rgba(32, 41, 46, .26);
}
.link-quiet::after {
  content: "\2192"; transition: transform .35s var(--ease);
}
.link-quiet:hover { text-decoration: none; }
.link-quiet:hover::after { transform: translateX(4px); }

/* Nav -------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .45s var(--ease), border-color .45s var(--ease), backdrop-filter .45s var(--ease);
}
/* Default state sits over the charcoal hero: light type, no bar. */
.nav .nav-menu a { color: var(--on-abyss); }
.nav .brand img { filter: brightness(0) invert(1); }
.nav .nav-toggle-bar,
.nav .nav-toggle-bar::before,
.nav .nav-toggle-bar::after { background: var(--on-abyss); }
.nav .btn-nav {
  background: transparent; color: var(--on-abyss);
  border-color: rgba(220, 233, 229, .35);
}
.nav .btn-nav:hover { background: var(--mint); color: var(--charcoal); border-color: var(--mint); }

/* Frosted bone once stuck over a light chapter */
.nav.is-stuck:not(.is-dark) {
  background: rgba(244, 241, 234, .82);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  backdrop-filter: saturate(150%) blur(18px);
  border-bottom-color: rgba(216, 212, 204, .9);
}
.nav.is-stuck:not(.is-dark) .nav-menu a { color: var(--harbor); }
.nav.is-stuck:not(.is-dark) .brand img { filter: none; }
.nav.is-stuck:not(.is-dark) .nav-toggle-bar,
.nav.is-stuck:not(.is-dark) .nav-toggle-bar::before,
.nav.is-stuck:not(.is-dark) .nav-toggle-bar::after { background: var(--harbor); }
.nav.is-stuck:not(.is-dark) .btn-nav { color: var(--harbor); border-color: rgba(32, 41, 46, .3); }
.nav.is-stuck:not(.is-dark) .btn-nav:hover { background: var(--charcoal); color: var(--bone); border-color: var(--charcoal); }

/* Over the deep chapters the bar stays dark and translucent */
.nav.is-dark.is-stuck {
  background: rgba(32, 41, 46, .72);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  backdrop-filter: saturate(140%) blur(18px);
  border-bottom-color: rgba(220, 233, 229, .12);
}
.nav.is-dark .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  max-width: 1560px; margin: 0 auto;
}
.brand { display: block; }
.brand img { width: 150px; height: auto; }
.nav-menu { display: flex; align-items: center; gap: 34px; }
.nav-menu a {
  color: var(--harbor); font-weight: 500; font-size: 14px;
  letter-spacing: 0.01em;
}
.nav-toggle {
  display: none; position: relative; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; position: absolute; left: 10px; width: 24px; height: 1.5px; background: var(--harbor);
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -7px; }
.nav-toggle-bar::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(118deg, #20292E 0%, #2B3940 46%, #46565D 100%);
  color: var(--on-abyss);
  min-height: 100svh;
  display: flex; align-items: center;
  padding: clamp(96px, 12vh, 150px) 0 clamp(56px, 8vh, 96px);
  overflow: hidden;
  isolation: isolate;
}
.hero-visual { position: absolute; inset: -5% -3% -5% 33%; z-index: 0; }
.hero-visual picture, .hero-visual img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 36% 36%;
}
/* The render has a white ground: feather it into the dark chapter with a
   large ellipse centred on the face, so only the halo of the visor survives. */
.hero-visual img {
  -webkit-mask-image: radial-gradient(58% 72% at 56% 46%, #000 26%, rgba(0,0,0,.8) 48%, rgba(0,0,0,.3) 68%, transparent 86%);
  mask-image: radial-gradient(58% 72% at 56% 46%, #000 26%, rgba(0,0,0,.8) 48%, rgba(0,0,0,.3) 68%, transparent 86%);
  will-change: transform;
}
/* Vignette that folds whatever survives the mask back into the dark ground. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, #20292E 0, rgba(32,41,46,.92) 22%, rgba(32,41,46,.38) 44%, transparent 60%),
    radial-gradient(76% 88% at 60% 46%, transparent 24%, rgba(32,41,46,.28) 56%, rgba(32,41,46,.72) 80%, rgba(32,41,46,.94) 100%),
    linear-gradient(180deg, rgba(32,41,46,.55) 0, transparent 20%, transparent 62%, rgba(32,41,46,.8) 100%);
}
.hero-copy {
  position: relative; z-index: 2;
  padding: 0 var(--gutter);
  width: 100%; max-width: 1560px; margin: 0 auto;
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(42px, 5.6vw, 84px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.012em;
  color: var(--on-abyss);
  max-width: 15ch;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line > span { display: block; }
.hero-title em { font-style: italic; color: var(--mint); }
.hero-lede {
  margin-top: clamp(24px, 3vw, 40px); max-width: 44ch;
  font-size: clamp(15px, 1.15vw, 18px); line-height: 1.7;
  color: rgba(220, 233, 229, .74); font-weight: 400;
}
.hero-actions { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); margin-top: clamp(28px, 3.4vw, 48px); flex-wrap: wrap; }

.hero .link-quiet { color: var(--on-abyss); border-color: rgba(220, 233, 229, .35); }
.hero .link-quiet:hover { background: rgba(220, 233, 229, .08); }

/* Mint rings over the visor */
.rings { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.rings ellipse { fill: none; stroke: var(--mint); stroke-width: 1; opacity: 0; transform-origin: 300px 330px; }

/* Load sequence */
.hero-title .line > span { transform: translateY(102%); animation: riseIn 1.15s var(--ease-out) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .1s; }
.hero-title .line:nth-child(3) > span { animation-delay: .2s; }
.eyebrow { opacity: 0; animation: rise .9s var(--ease) .15s forwards; }
.hero-lede, .hero-actions { opacity: 0; animation: rise .9s var(--ease) .5s forwards; }
.hero-visual { opacity: 0; animation: heroIn 1.6s var(--ease-out) .1s forwards; }
.rings ellipse { animation: ripple 5.6s cubic-bezier(.16, .6, .4, 1) infinite; }
.rings ellipse:nth-child(2) { animation-delay: 1.4s; }
.rings ellipse:nth-child(3) { animation-delay: 2.8s; }
.rings ellipse:nth-child(4) { animation-delay: 4.2s; }

@keyframes riseIn { from { transform: translateY(102%); } to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes heroIn { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes ripple {
  0%   { transform: scale(.66); opacity: 0; }
  14%  { opacity: .5; }
  100% { transform: scale(2); opacity: 0; }
}

/* Scroll reveal primitive (scrubbed by main.js via --r 0..1) ------------- */
.rv {
  --r: 0;
  opacity: calc(.06 + var(--r) * .94);
  transform: translate3d(0, calc((1 - var(--r)) * 34px), 0);
  will-change: transform, opacity;
}

/* Intent — deep teal band ------------------------------------------------ */
.intent {
  background: var(--teal-deep);
  padding: clamp(80px, 11vw, 160px) var(--gutter) clamp(80px, 11vw, 160px);
  max-width: none; margin: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 3vw, 44px);
  justify-items: center; text-align: center;
}
.intent-text {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(22px, 2.2vw, 34px); line-height: 1.34; max-width: 22em;
  color: rgba(220, 233, 229, .82); letter-spacing: -0.005em;
}
.intent-mark {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(26px, 2.6vw, 40px); line-height: 1.3; color: var(--on-abyss);
  letter-spacing: -0.005em; max-width: 22em;
}
.intent-mark em { font-style: italic; color: var(--mint); }

/* Deep chapter: How it works + pinned depth scene ------------------------ */
.how {
  position: relative;
  background: var(--abyss);
  color: var(--on-abyss);
  padding: 0 0 clamp(80px, 10vw, 150px);
  isolation: isolate;
}
.how::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22vh; z-index: 0;
  background: linear-gradient(180deg, var(--teal-deep) 0, rgba(32,41,46,.8) 56%, var(--abyss) 100%);
}
.how-aura {
  position: absolute; left: 0; right: 0; top: 30%; height: 120vh;
  transform: translateY(-40%);
  background: radial-gradient(closest-side, rgba(117,200,188,.16), rgba(117,200,188,.05) 46%, transparent 72%);
  pointer-events: none; z-index: 0;
}
.how-text {
  position: relative; z-index: 2;
  max-width: 1560px; margin: 0 auto;
  padding: clamp(110px, 18vh, 230px) var(--gutter) clamp(50px, 7vw, 100px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr) minmax(0, .52fr);
  gap: clamp(28px, 4.5vw, 72px);
  align-items: start;
}
.how-text h2 {
  color: var(--on-abyss); font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -0.008em; line-height: 1.1;
}
.how-negation {
  margin-top: clamp(26px, 3vw, 44px);
  font-family: var(--display);
  font-size: clamp(19px, 1.8vw, 26px); line-height: 1.24; font-weight: 400; font-style: italic;
  color: var(--mint); letter-spacing: -0.005em;
}
.how-figure { position: relative; }
.how-figure img {
  width: 100%; border-radius: 4px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 52%, transparent 96%);
  mask-image: radial-gradient(120% 90% at 50% 40%, #000 52%, transparent 96%);
  will-change: transform;
}
.how-label {
  font-family: var(--sans); font-size: 11px; font-weight: 600; color: var(--mint);
  letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 18px;
}
.how-body p { color: var(--on-abyss-dim); font-weight: 400; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.75; }
.how-body p + p { margin-top: 20px; }
.how-result {
  font-family: var(--display);
  color: var(--on-abyss) !important; font-weight: 400;
  margin-top: 28px !important; padding-top: 24px;
  border-top: 1px solid rgba(117, 200, 188, .28);
  font-size: clamp(17px, 1.4vw, 21px) !important; line-height: 1.38;
}

/* The scene: tall track, sticky stage */
.scene { position: relative; z-index: 2; height: 360vh; }
.scene-stage {
  position: sticky; top: 0; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px var(--gutter) 56px;
}
.depth {
  --p: 0;
  margin: 0 auto; width: 100%; max-width: 1180px;
}
.depth-labels {
  list-style: none; margin: 0 0 14px; padding: 0 0 0 22%;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
}
.depth-labels li {
  font-size: clamp(9.5px, 1vw, 11.5px); color: var(--on-abyss-dim); text-align: center; line-height: 1.25;
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  opacity: calc(.25 + var(--p) * 2.4);
  transition: color .4s var(--ease);
}
.depth-labels .is-revallis {
  color: var(--mint); font-weight: 600;
  text-shadow: 0 0 calc(var(--p) * 22px) rgba(117,200,188,.75);
}
.depth-bands {
  position: relative; height: min(56svh, 520px);
  display: grid; grid-template-rows: 7fr 18fr 30fr 45fr;
  border: 1px solid rgba(220,233,229,.16);
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, #203B43 0, #2A4C52 46%, #365D61 100%);
}
.band { position: relative; border-top: 1px dashed rgba(220,233,229,.2); }
.band-1 { border-top: 0; background: rgba(220,233,229,.05); }
.band-2 { background: rgba(220,233,229,.03); }
.band-3 { background: rgba(220,233,229,.015); }
.band-4 { background: rgba(32,41,46,.16); }
.band-name {
  position: absolute; left: 14px; top: 8px; max-width: 20%;
  font-size: clamp(9.5px, .95vw, 11px); color: rgba(220,233,229,.7);
  letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.3; font-weight: 500;
}
.band-1 .band-name { top: 3px; }

.depth-bars {
  list-style: none; margin: 0; padding: 0 0 0 22%;
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.depth-bars li { --g: 0; position: relative; display: flex; justify-content: center; }
.bar {
  position: absolute; top: 0; width: 2px;
  height: calc(var(--reach) * var(--g) * 100%);
  background: linear-gradient(180deg, rgba(220,233,229,.18), rgba(220,233,229,.85));
}
.bar::after {
  content: ""; position: absolute; left: 50%; bottom: -3px; width: 7px; height: 7px;
  transform: translateX(-50%); border-radius: 50%;
  background: rgba(230,240,237,.92);
  opacity: calc(var(--g) * 1.6);
}
/* The Revallis column: the one that glows */
.depth-bars .is-revallis .bar {
  width: 3px;
  background: linear-gradient(180deg, rgba(117,200,188,.05), rgba(117,200,188,.55) 30%, var(--cobalt-soft));
  box-shadow: 0 0 18px rgba(117,200,188,.55), 0 0 44px rgba(117,200,188,.22);
}
.depth-bars .is-revallis .bar::after {
  width: 15px; height: 15px; bottom: -7px; background: #D9F2ED;
  box-shadow:
    0 0 0 5px rgba(117,200,188,.34),
    0 0 18px 6px rgba(117,200,188,.55),
    0 0 60px 18px rgba(117,200,188,.28);
  opacity: calc(var(--g) * 2);
}
/* travelling pulse riding ahead of the head */
.pulse-head {
  position: absolute; left: 50%; top: calc(var(--g) * 100%);
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(117,200,188,.42), transparent 70%);
  opacity: calc(var(--g) * 1.4);
}
.depth figcaption {
  margin-top: 16px; font-size: clamp(11px, 1vw, 13px); color: rgba(220,233,229,.62);
  letter-spacing: 0.04em;
}

/* Difference ------------------------------------------------------------- */
.difference {
  background: var(--bone);
  padding: clamp(80px, 12vw, 170px) max(var(--gutter), calc((100% - 1560px) / 2));
  max-width: none; margin: 0;
}
.difference-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 90px); align-items: end; }
.difference-head p { font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); max-width: 26em; font-weight: 400; line-height: 1.65; }
.difference-list { margin: clamp(40px, 6vw, 80px) 0 0; }
.difference-list > div {
  padding: clamp(20px, 2.4vw, 34px) 0; border-top: 1px solid var(--chrome);
  display: grid; grid-template-columns: 4ch minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(16px, 3vw, 48px); align-items: baseline;
  transition: background-color .4s var(--ease);
}
.difference-list > div::before {
  content: counter(diff, decimal-leading-zero); counter-increment: diff;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; color: var(--steel); opacity: .8;
}
.difference-list { counter-reset: diff; }
.difference-list > div:last-child { border-bottom: 1px solid var(--chrome); }
.difference-list dt {
  font-family: var(--display); font-size: clamp(19px, 1.7vw, 25px);
  color: var(--harbor); font-weight: 400; letter-spacing: -0.005em; line-height: 1.2;
}
.difference-list dd { margin: 0; color: var(--muted); font-weight: 400; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.7; }

/* Portrait band ---------------------------------------------------------- */
.portrait { position: relative; overflow: hidden; background: var(--teal-deep); isolation: isolate; }
/* Tone the steel-blue render into the palette: hue from the deep teal, then a
   scrim so the statement clears AA over it. */
.portrait::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--teal-deep);
  mix-blend-mode: color;
}
.portrait-media { position: absolute; inset: -14% 0; }
.portrait-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%;
  will-change: transform;
}
.portrait { height: clamp(520px, 86svh, 860px); }
.portrait::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(32,41,46,.38) 0, rgba(32,41,46,.08) 34%, rgba(32,41,46,.55) 72%, rgba(32,41,46,.86) 100%);
}
.portrait p {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(40px, 7vw, 90px); z-index: 3;
  font-family: var(--display); color: var(--on-abyss); font-weight: 400;
  font-size: clamp(28px, 3.8vw, 56px); line-height: 1.12; letter-spacing: -0.008em;
  max-width: 17em;
  text-shadow: 0 2px 40px rgba(32, 41, 46, .6);
}

/* Science — deep teal chapter -------------------------------------------- */
.science {
  background: var(--teal-deep); color: var(--on-abyss);
  padding: clamp(80px, 12vw, 170px) max(var(--gutter), calc((100% - 1560px) / 2));
  max-width: none; margin: 0;
}
.science-intro { max-width: 20em; }
.science-intro h2 { font-size: clamp(28px, 3.2vw, 44px); color: var(--on-abyss); line-height: 1.12; }
.science-intro p {
  margin-top: 28px; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.75;
  color: var(--on-abyss-dim); max-width: 44em; font-weight: 400;
}
.science-grid {
  margin-top: clamp(48px, 6vw, 84px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 2.4vw, 32px);
}
.science-col {
  background: var(--teal-mid);
  border: 1px solid rgba(220, 233, 229, .1);
  border-radius: 6px;
  padding: clamp(24px, 3vw, 40px);
  max-width: none;
}
.science-col h3 { font-size: clamp(20px, 1.9vw, 26px); font-weight: 400; color: var(--on-abyss); }
.science-col p {
  margin-top: 14px; color: rgba(220, 233, 229, .86); font-weight: 400;
  font-size: clamp(14px, 1.05vw, 16px); line-height: 1.75;
}

/* Spec sheet */
.compare-wrap {
  margin-top: clamp(56px, 7vw, 110px);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: 6px;
}
.compare {
  width: 100%; min-width: 880px; border-collapse: separate; border-spacing: 0;
  font-size: 14px; background: #1B333A;
  border: 1px solid rgba(220,233,229,.12); border-radius: 6px;
  box-shadow: 0 30px 70px -50px rgba(0, 0, 0, .7);
}
.compare caption {
  text-align: left; caption-side: top; padding: 0 0 20px;
  font-family: var(--display);
  color: var(--on-abyss); font-size: clamp(20px, 2vw, 28px); font-weight: 400; letter-spacing: -0.005em;
}
.compare th, .compare td { padding: 15px 16px; text-align: left; vertical-align: middle; border-top: 1px solid rgba(220,233,229,.09); }
.compare thead th {
  border-top: 0; font-weight: 600; color: rgba(220,233,229,.66); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase; vertical-align: bottom; padding-bottom: 14px;
}
.compare tbody th {
  font-weight: 500; color: var(--on-abyss); white-space: nowrap; font-size: 14.5px;
  background: rgba(220,233,229,.035);
}
.compare td { color: rgba(220,233,229,.72); }
.compare tbody tr:hover td { background: rgba(220,233,229,.035); }
.compare tbody tr:hover .is-revallis { background: rgba(117,200,188,.2); }
.compare .is-revallis {
  background: rgba(117,200,188,.12); color: var(--mint); font-weight: 600;
  box-shadow: inset 1px 0 0 rgba(117,200,188,.3), inset -1px 0 0 rgba(117,200,188,.3);
  transition: background-color .3s var(--ease);
}
.compare thead .is-revallis {
  background: var(--mint); color: var(--charcoal); font-size: 11px; letter-spacing: 0.2em;
  border-radius: 6px 6px 0 0; box-shadow: none;
  padding-top: 18px;
}
.compare tbody tr:last-child .is-revallis { border-radius: 0 0 6px 6px; box-shadow: inset 1px 0 0 rgba(117,200,188,.3), inset -1px 0 0 rgba(117,200,188,.3), inset 0 -1px 0 rgba(117,200,188,.3); }
.compare .is-no { color: var(--no); }

/* Product reveal — the render is light, so it gets a bone card */
.box-band {
  margin-top: clamp(64px, 9vw, 130px);
  border-radius: 8px; overflow: hidden;
  background: var(--bone);
  border: 1px solid var(--sand);
  padding: clamp(16px, 2.4vw, 36px);
  --r: 0;
}
.box-band img {
  width: 100%;
  transform: scale(calc(1.14 - var(--r) * .14));
  -webkit-clip-path: inset(calc((1 - var(--r)) * 16%) round 6px);
  clip-path: inset(calc((1 - var(--r)) * 16%) round 6px);
  will-change: transform, clip-path;
}

/* Team — editorial rows -------------------------------------------------- */
.team {
  background: var(--bone); border-top: 1px solid var(--sand);
  padding: clamp(80px, 12vw, 170px) var(--gutter);
}
.team-head { max-width: 1560px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 90px); align-items: end; }
.team-head p { font-size: clamp(15px, 1.2vw, 17px); color: var(--muted); max-width: 32em; font-weight: 400; line-height: 1.7; }
.people {
  list-style: none; margin: clamp(48px, 6vw, 96px) auto 0; padding: 0;
  max-width: 1560px;
  counter-reset: person;
}
.people > li {
  display: grid;
  grid-template-columns: 5ch minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: start;
  padding: clamp(32px, 4vw, 56px) 0;
  border-top: 1px solid var(--mist);
}
.people > li::before {
  content: counter(person, decimal-leading-zero); counter-increment: person;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; color: var(--steel); opacity: .75; padding-top: 8px;
}
.people img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 4px; background: var(--mist);
  transition: transform .6s var(--ease);
}
.people .person-media { grid-column: 2; }
.people .person-body { grid-column: 3; }
.people h3 {
  margin: 0; font-size: clamp(21px, 1.9vw, 28px); font-weight: 400; letter-spacing: -0.005em;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.people .li {
  color: var(--muted); display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin: -6px 0; border-radius: 50%;
  border: 1px solid var(--chrome);
  transition: color .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.people .li:hover { color: var(--white); background: var(--steel); border-color: var(--steel); }
.people .role {
  color: var(--steel); font-size: 11px; margin-top: 10px;
  letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
}
.people p:not(.role) { margin-top: 16px; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.72; color: var(--muted); font-weight: 400; max-width: 46em; }

/* Contact — deep close --------------------------------------------------- */
.contact {
  position: relative;
  background: var(--abyss); color: var(--on-abyss);
  padding: clamp(80px, 12vw, 170px) var(--gutter);
  overflow: hidden;
}
.contact::before {
  content: ""; position: absolute; left: 12%; top: -30%; width: 70vw; height: 90vh;
  background: radial-gradient(closest-side, rgba(117,200,188,.14), transparent 70%);
  pointer-events: none;
}
.contact-inner {
  position: relative; z-index: 2;
  max-width: 1560px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(40px, 7vw, 120px);
  align-items: start;
}
.contact h2 { color: var(--on-abyss); font-size: clamp(36px, 4.4vw, 64px); font-weight: 400; letter-spacing: -0.01em; line-height: 1.08; }
.contact h2 em { font-style: italic; color: var(--mint); }
.contact-copy p { margin-top: 22px; color: var(--on-abyss-dim); font-size: clamp(14px, 1.05vw, 16px); line-height: 1.75; max-width: 34em; font-weight: 400; }
.contact-copy h2 + p { margin-top: clamp(24px, 3vw, 40px); }
.contact-direct {
  color: var(--on-abyss) !important; margin-top: 32px !important;
  padding-top: 24px; border-top: 1px solid rgba(117,200,188,.28);
  font-size: 15px !important;
}
.contact-direct strong { font-weight: 500; }
.contact a { color: var(--cobalt-soft); }

.contact-form {
  display: grid; gap: 22px; align-content: start;
  background: rgba(117,200,188,.07);
  border: 1px solid rgba(220,233,229,.16);
  border-radius: 8px;
  padding: clamp(24px, 3vw, 40px);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend {
  font-size: 10.5px; color: var(--on-abyss-dim); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
}
.field .optional { color: rgba(220,233,229,.55); letter-spacing: 0.1em; }
.field input[type="text"], .field input[type="email"], .field textarea {
  font: inherit; font-size: 16px; color: var(--on-abyss);
  padding: 13px 15px; border: 1px solid rgba(220,233,229,.22); border-radius: 4px;
  background: rgba(32,41,46,.55);
  width: 100%;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(220,233,229,.5); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(117,200,188,.24);
}
.field textarea { resize: vertical; min-height: 92px; }
.field-choice { gap: 10px; }
.field-choice legend { padding: 0; margin-bottom: 6px; }
.field-choice label {
  display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--on-abyss);
  letter-spacing: 0; text-transform: none; font-weight: 400; min-height: 32px;
}
.field-choice input { accent-color: var(--mint); width: 18px; height: 18px; margin: 0; }
.form-error { color: #F0A896; font-size: 14px; }
.form-note { font-size: 12.5px; color: rgba(220,233,229,.6); }
.form-success { font-size: 17px; color: #75C8BC; font-weight: 500; }
.contact-form.is-sent .field, .contact-form.is-sent .btn, .contact-form.is-sent .form-note, .contact-form.is-sent .form-error { display: none; }
.contact-form.is-sent .form-success { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form .btn { justify-self: start; }
.contact-form .btn-primary { background: var(--mint); color: var(--charcoal); box-shadow: 0 14px 40px -16px rgba(117,200,188,.6); }
.contact-form .btn-primary:hover { background: var(--cobalt-soft); box-shadow: 0 20px 50px -16px rgba(117,200,188,.75); }

/* Footer ----------------------------------------------------------------- */
.footer { background: var(--teal-deep); border-top: 1px solid rgba(220,233,229,.1); color: var(--on-abyss-dim); }
.footer-inner { max-width: 1560px; margin: 0 auto; padding: clamp(40px, 5vw, 64px) var(--gutter) clamp(44px, 5vw, 70px); }
.footer img { width: 138px; filter: brightness(0) invert(1); opacity: .92; }
.footer .disclaimer { margin-top: 24px; font-size: 13.5px; color: var(--on-abyss); max-width: 60em; letter-spacing: 0.02em; }
.footer .fine { margin-top: 10px; font-size: 13px; color: rgba(220,233,229,.62); }
.footer a { color: var(--cobalt-soft); }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1180px) {
  .people > li { grid-template-columns: 4ch minmax(0, 220px) minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .how-text { display: flex; flex-direction: column; gap: 32px; }
  .how-head { order: 1; }
  .how-figure { order: 2; max-width: 460px; }
  .how-body { order: 3; }
  .science-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--charcoal); border-bottom: 1px solid rgba(220,233,229,.14);
  }
  .nav.is-stuck:not(.is-dark) .nav-menu { background: var(--bone); border-bottom-color: var(--sand); }
  .nav-menu.is-open { display: flex; }
  .nav .nav-menu a { padding: 18px var(--gutter); border-top: 1px solid rgba(220,233,229,.12); font-size: 15px; }
  .nav.is-stuck:not(.is-dark) .nav-menu a { border-top-color: var(--mist); }
  .nav .nav-menu .btn-nav { margin: 14px var(--gutter) 20px; border-radius: 999px; }
  .brand img { width: 124px; }

  .hero { min-height: 0; padding: 0 0 clamp(40px, 9vw, 72px); align-items: stretch; flex-direction: column; }
  .hero-visual { position: relative; inset: auto; order: 2; width: 100%; aspect-ratio: 1 / .86; margin-top: 0; }
  .hero-visual picture, .hero-visual img { object-position: 52% 28%; }
  .hero-visual img {
    -webkit-mask-image: radial-gradient(82% 74% at 52% 42%, #000 36%, rgba(0,0,0,.7) 62%, rgba(0,0,0,.12) 84%, transparent 98%);
    mask-image: radial-gradient(82% 74% at 52% 42%, #000 36%, rgba(0,0,0,.7) 62%, rgba(0,0,0,.12) 84%, transparent 98%);
  }
  .hero-copy { order: 1; padding-top: clamp(20px, 5vw, 40px); }
  .hero::after {
    inset: auto 0 0 0; height: 62%;
    background: linear-gradient(180deg, transparent 0, rgba(32,41,46,.72) 46%, #20292E 88%);
  }
  .hero-title { font-size: clamp(34px, 8.8vw, 52px); max-width: none; }
  .eyebrow { font-size: 10px; letter-spacing: 0.16em; padding: 7px 13px; }

  .intent { grid-template-columns: 1fr; gap: 36px; }

  .scene { height: 300vh; }
  .scene-stage { padding: 76px var(--gutter) 32px; }
  .depth-bands { height: min(48svh, 400px); }
  .depth-bars, .depth-labels { padding-left: 15%; }
  .band-name { max-width: 14%; left: 8px; letter-spacing: 0.08em; }

  .difference-head { grid-template-columns: 1fr; gap: 20px; }
  .difference-list > div { grid-template-columns: 3ch minmax(0, 1fr); gap: 10px 16px; }
  .difference-list dd { grid-column: 2; }

  .team-head { grid-template-columns: 1fr; gap: 20px; }
  .people > li { grid-template-columns: 3ch minmax(0, 1fr); gap: 14px 16px; }
  .people .person-media { grid-column: 2; max-width: 190px; }
  .people .person-body { grid-column: 2; }
}
@media (max-width: 480px) {
  .hero-actions { gap: 14px; }
  .hero-actions .btn { width: 100%; }
  .depth-labels li { font-size: 9px; letter-spacing: 0.04em; }
  .depth-bars, .depth-labels { padding-left: 13%; }
}

/* Reduced motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-title .line > span, .eyebrow, .hero-lede, .hero-actions, .hero-visual {
    animation: none; opacity: 1; transform: none;
  }
  .rings ellipse { animation: none; opacity: .28; transform: scale(1.3); }
  .rv { --r: 1 !important; opacity: 1; transform: none; }
  .box-band { --r: 1 !important; }
  .depth { --p: 1 !important; }
  .depth-bars li { --g: 1 !important; }
  .pulse-head { display: none; }
  .scene { height: auto; }
  .scene-stage { position: static; height: auto; padding: 40px var(--gutter); }
  .portrait-media { inset: 0; }
  .portrait-media img { transform: none !important; }
  .hero-visual img { transform: none !important; }
  * { transition-duration: .01ms !important; }
}

/* No-JS: show every scroll-revealed block in its final state ------------- */
.no-js .rv, .no-js .box-band { --r: 1; }

/* Science additions: depth statement + progress ------------------------- */
.science .kicker { color: var(--mint); }
.deeper {
  margin-top: clamp(56px, 7vw, 100px); max-width: none;
  border-top: 1px solid rgba(117, 200, 188, .28); padding-top: clamp(28px, 3vw, 44px);
}
.deeper h3 { margin-top: 14px; font-size: clamp(26px, 2.8vw, 40px); font-weight: 400; letter-spacing: -0.008em; line-height: 1.14; color: var(--on-abyss); max-width: 18em; }
.deeper p:not(.kicker) { margin-top: 20px; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.75; color: var(--on-abyss-dim); font-weight: 400; max-width: 44em; }
.progress { margin-top: clamp(56px, 7vw, 100px); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.progress-head h3 { margin-top: 14px; font-size: clamp(26px, 2.8vw, 40px); font-weight: 400; letter-spacing: -0.008em; line-height: 1.14; color: var(--on-abyss); }
.progress-head p:not(.kicker) { margin-top: 18px; color: var(--on-abyss-dim); font-weight: 400; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.7; }
.progress-list { margin: 0; }
.progress-list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 20px; padding: 22px 0; border-top: 1px solid rgba(220, 233, 229, .16); }
.progress-list > div:last-child { border-bottom: 1px solid rgba(220, 233, 229, .16); }
.progress-list dt { font-family: var(--display); font-size: clamp(18px, 1.5vw, 22px); font-weight: 400; color: var(--on-abyss); letter-spacing: -0.005em; line-height: 1.25; }
.progress-list dd { margin: 0; color: var(--on-abyss-dim); font-weight: 400; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.7; }
@media (max-width: 860px) {
  .progress { grid-template-columns: 1fr; }
  .progress-list > div { grid-template-columns: 1fr; gap: 6px; }
}
