:root {
  --ink: #123b45;
  --ink-deep: #092f37;
  --ink-black: #06232a;
  --water: #6cbac2;
  --water-soft: #b8dde0;
  --coral: #d9785b;
  --coral-dark: #a9473f;
  --sand: #ead8b4;
  --grass: #6f9b78;
  --gold: #d7a84a;
  --paper: #f7f2e8;
  --paper-dark: #e9e0d2;
  --white: #fffdf8;
  --muted: #62787d;
  --green: #2acb73;
  --purple: #9a55e6;
  --orange: #ed7f3f;
  --display: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --shell: min(90vw, 1320px);
  --header-h: 80px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink-deep);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.present-mode {
  overflow: hidden;
}

button,
a,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

button {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: var(--ink-deep);
  background: var(--white);
  transform: translateY(-150%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: var(--header-h);
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  color: var(--white);
  transition:
    background 0.35s,
    color 0.35s,
    transform 0.35s;
}

.site-header.scrolled {
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid rgba(18, 59, 69, 0.12);
  backdrop-filter: blur(14px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.16rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.wordmark > span:last-child span,
.footer-wordmark span {
  color: var(--coral);
}

.wordmark-mark {
  position: relative;
  display: inline-block;
  width: 25px;
  height: 25px;
  transform: rotate(-12deg);
}

.wordmark-mark span {
  position: absolute;
  inset: 6px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.wordmark-mark span:nth-child(2) {
  inset: 2px 9px;
  border-radius: 50% 50% 45% 45%;
}

.wordmark-mark span:nth-child(3) {
  inset: 9px 2px;
  border-radius: 50% 45% 50% 45%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.login-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  color: var(--ink-deep);
  background: var(--sand);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    color 0.25s,
    background 0.25s,
    transform 0.25s;
}

.login-button:hover,
.login-button:focus-visible {
  color: var(--ink-deep);
  background: var(--white);
  transform: translateY(-1px);
}

.site-header.scrolled .login-button {
  color: var(--white);
  background: var(--ink);
}

.site-header.scrolled .login-button:hover,
.site-header.scrolled .login-button:focus-visible {
  background: var(--coral-dark);
}

.text-button,
.menu-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.text-button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.present-icon {
  width: 16px;
  height: 11px;
  border: 1px solid currentColor;
}

.present-icon::after {
  display: block;
  width: 6px;
  height: 1px;
  margin: 13px auto 0;
  background: currentColor;
  content: "";
}

.menu-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-content: center;
  gap: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 17px;
  height: 1px;
  background: currentColor;
  transition: transform 0.25s;
}

.menu-open .menu-button span:nth-child(2) {
  transform: translateY(4px) rotate(45deg);
}

.menu-open .menu-button span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

.site-menu {
  position: fixed;
  z-index: 90;
  inset: 0;
  color: var(--white);
  background: var(--ink-deep);
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.4s var(--ease),
    visibility 0.4s;
}

.site-menu::before {
  position: absolute;
  inset: auto -10vw -40vh auto;
  width: 70vw;
  height: 70vw;
  border: 1px solid rgba(184, 221, 224, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 10vw rgba(184, 221, 224, 0.025),
    0 0 0 20vw rgba(184, 221, 224, 0.02);
  content: "";
}

.menu-open .site-menu {
  visibility: visible;
  opacity: 1;
}

.menu-inner {
  position: relative;
  display: flex;
  width: min(88vw, 900px);
  min-height: 100%;
  margin: auto;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0 50px;
}

.menu-inner nav {
  display: grid;
  margin: 30px 0 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.menu-inner nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 4.6rem);
  letter-spacing: -0.045em;
  transition: color 0.2s, padding 0.2s;
}

.menu-inner nav a:hover,
.menu-inner nav a:focus-visible {
  padding-left: 18px;
  color: var(--water);
}

.menu-inner nav span {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
}

.menu-utilities {
  display: flex;
  gap: 30px;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.progress-track {
  position: fixed;
  z-index: 101;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--coral);
}

.chapter {
  position: relative;
  overflow: clip;
}

.chapter-dark {
  color: var(--white);
  background: var(--ink-deep);
}

.chapter-paper {
  background: var(--paper);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--coral-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: var(--sand);
}

.display-title {
  margin: 0;
  max-width: 1000px;
  font-family: var(--display);
  font-size: clamp(3rem, 6.7vw, 6.8rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.display-title em,
.closing h2 em,
.hero-title em {
  color: var(--coral);
  font-weight: 400;
}

.lead {
  max-width: 700px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.36rem);
  line-height: 1.6;
}

.chapter-heading {
  padding: 140px 0 65px;
}

.chapter-heading-light .lead {
  color: var(--water-soft);
}

.hero {
  min-height: 100svh;
  background: #06272e;
}

.hero-video,
.hero-wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
}

.hero-wash {
  background:
    linear-gradient(90deg, rgba(4, 28, 34, 0.9) 0%, rgba(4, 28, 34, 0.5) 52%, rgba(4, 28, 34, 0.2) 100%),
    linear-gradient(0deg, rgba(4, 28, 34, 0.65) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 140px;
}

.hero .reveal {
  opacity: 1;
  transform: none;
}

.hero-title {
  max-width: 950px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 8.7vw, 9.2rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.hero-copy {
  max-width: 650px;
  margin: 36px 0 0;
  color: #d7e5e4;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.58;
}

.hero-actions,
.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    color 0.25s,
    background 0.25s,
    transform 0.25s;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--ink-deep);
  background: var(--sand);
}

.button-primary:hover {
  background: var(--white);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.button-ghost:hover {
  color: var(--ink-deep);
  background: var(--white);
}

.hero-sequence {
  position: absolute;
  z-index: 2;
  right: 5vw;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-sequence i,
.closing-sequence i {
  width: 18px;
  height: 1px;
  background: currentColor;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 35px;
  left: 5vw;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-cue i {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

.scroll-cue i::before {
  position: absolute;
  top: 12px;
  left: 19px;
  width: 1px;
  height: 13px;
  background: white;
  content: "";
}

.scroll-cue i::after {
  position: absolute;
  top: 20px;
  left: 16px;
  width: 6px;
  height: 6px;
  border-right: 1px solid white;
  border-bottom: 1px solid white;
  content: "";
  transform: rotate(45deg);
}

.biology {
  padding: 145px 0 130px;
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(18, 59, 69, 0.1) 50%, transparent 50.1%),
    var(--paper);
}

.biology-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(440px, 1.2fr);
  align-items: center;
  gap: clamp(50px, 9vw, 150px);
}

.portrait-wrap {
  position: relative;
}

.portrait-wrap::before {
  position: absolute;
  z-index: 1;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--coral);
  content: "";
}

.portrait-wrap img {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 0.875;
  object-fit: cover;
}

.image-index {
  position: absolute;
  z-index: 3;
  right: -22px;
  bottom: -54px;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.fact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 58px;
  border-top: 1px solid rgba(18, 59, 69, 0.2);
}

.fact-row div {
  padding: 20px 20px 0 0;
}

.fact-row strong {
  display: block;
  color: var(--coral-dark);
  font-family: var(--display);
  font-size: 1.38rem;
  font-weight: 400;
}

.fact-row span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.continuum {
  margin-top: 180px;
}

.section-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-intro p:last-child {
  color: var(--muted);
  font-size: 0.8rem;
}

.continuum-stage {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.continuum-stage img {
  width: 100%;
}

.continuum-focus {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(6, 35, 42, 0.4) 0%,
    transparent calc(var(--continuum, 50%) - 18%),
    transparent calc(var(--continuum, 50%) + 18%),
    rgba(6, 35, 42, 0.4) 100%
  );
}

.continuum-focus::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--continuum, 50%);
  width: 1px;
  background: rgba(255, 255, 255, 0.7);
  content: "";
}

.continuum-labels {
  position: absolute;
  right: 3%;
  bottom: 6%;
  left: 3%;
  display: flex;
  justify-content: space-between;
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
}

.continuum-stage input {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: ew-resize;
  opacity: 0;
}

.methods {
  padding-bottom: 150px;
}

.methods-visual {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.methods-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 25, 31, 0.88), transparent 48%);
  content: "";
}

.methods-visual img {
  width: 100%;
}

.method-glow {
  position: absolute;
  z-index: 1;
  width: 26%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(108, 186, 194, 0.5);
  opacity: 0.65;
}

.method-glow-one {
  top: 8%;
  left: 5%;
}

.method-glow-two {
  top: 7%;
  left: 37%;
}

.method-glow-three {
  top: 8%;
  right: 5%;
}

.method-label {
  position: absolute;
  z-index: 3;
  bottom: 5%;
  width: 27%;
  padding-left: 38px;
}

.method-label::before {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 17px;
  width: 1px;
  background: rgba(255, 255, 255, 0.45);
  content: "";
}

.method-label-one {
  left: 4%;
}

.method-label-two {
  left: 36.5%;
}

.method-label-three {
  right: 3%;
}

.method-label span {
  display: block;
  margin-bottom: 5px;
  color: var(--sand);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.method-label strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.1rem, 2vw, 2rem);
  font-weight: 400;
}

.method-label small {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.67rem;
}

.method-note {
  display: flex;
  justify-content: flex-end;
  padding: 30px 0;
  border-bottom: 1px solid rgba(18, 59, 69, 0.18);
}

.method-note p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

.method-note strong {
  color: var(--coral-dark);
  font-weight: 400;
}

.workflow {
  padding-bottom: 140px;
}

.workflow::before {
  position: absolute;
  top: -30vw;
  right: -20vw;
  width: 65vw;
  height: 65vw;
  border: 1px solid rgba(108, 186, 194, 0.15);
  border-radius: 50%;
  content: "";
}

.pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 50px;
}

.pipeline-line {
  position: absolute;
  top: 78px;
  right: 12.5%;
  left: 12.5%;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.pipeline-line span {
  display: block;
  width: 0;
  height: 1px;
  background: var(--water);
  transition: width 1.8s var(--ease);
}

.pipeline.in-view .pipeline-line span {
  width: 100%;
}

.pipeline-step {
  position: relative;
  padding: 0 clamp(14px, 2vw, 30px);
  text-align: center;
}

.step-number {
  display: block;
  margin-bottom: 28px;
  color: var(--sand);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.step-glyph {
  position: relative;
  z-index: 2;
  width: 76px;
  height: 76px;
  margin: 0 auto 28px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: var(--ink-deep);
}

.step-glyph::before,
.step-glyph::after {
  position: absolute;
  content: "";
}

.glyph-frame::before {
  inset: 23px;
  border: 1px solid var(--water);
}

.glyph-frame::after {
  top: 18px;
  left: 18px;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--water);
  border-left: 1px solid var(--water);
  box-shadow:
    32px 0 0 -1px var(--ink-deep),
    32px 0 0 0 var(--water),
    0 32px 0 -1px var(--ink-deep),
    0 32px 0 0 var(--water);
}

.glyph-detect::before {
  inset: 23px;
  border: 1px dashed var(--coral);
}

.glyph-detect::after {
  top: 34px;
  left: 34px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.glyph-review::before {
  top: 24px;
  left: 20px;
  width: 34px;
  height: 23px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.glyph-review::after {
  top: 29px;
  left: 32px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.glyph-map::before {
  inset: 20px;
  border: 1px solid var(--green);
  border-radius: 46% 54% 42% 58%;
}

.glyph-map::after {
  top: 31px;
  left: 39px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--green);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.pipeline-step h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 400;
}

.pipeline-step p {
  min-height: 72px;
  margin: 0 auto 20px;
  color: var(--water-soft);
  font-size: 0.8rem;
  line-height: 1.55;
}

.pipeline-step small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.trust-loop {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 60px;
  margin-top: 100px;
  padding: 38px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-loop-label span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.trust-loop-label strong {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 2.5rem);
  font-weight: 400;
}

.track-frames {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.track-frames div {
  position: relative;
  min-height: 110px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 60% 45%, #3d7773, transparent 7%),
    linear-gradient(145deg, #2a6467, #0a383f 55%, #1c4e51);
}

.track-frames i {
  position: absolute;
  top: 28px;
  left: 54%;
  width: 30px;
  height: 24px;
  border: 1px dashed var(--coral);
}

.track-frames span {
  position: absolute;
  bottom: 12px;
  left: 15px;
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.track-frames .active {
  border-color: var(--green);
}

.track-frames .active i {
  border-color: var(--green);
}

.proof {
  padding-bottom: 150px;
  background: #f2eee5;
}

.proof-heading {
  display: grid;
  grid-template-columns: 1fr;
}

.map-explorer {
  overflow: hidden;
  color: var(--white);
  background: var(--ink-black);
  box-shadow: 0 30px 70px rgba(6, 35, 42, 0.15);
}

.map-toolbar {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.map-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.map-tabs button {
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.58);
  border: 0;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.map-tabs button[aria-selected="true"] {
  color: var(--ink-deep);
  background: var(--sand);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.6rem;
}

.map-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.map-legend i {
  display: inline-block;
  flex: 0 0 auto;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border: 1px solid #062a2e;
  border-radius: 50%;
  background: var(--green);
}

.legend-line {
  width: 17px;
  height: 2px;
  background: #b8fbff;
}

.legend-heat {
  width: 17px;
  height: 10px;
  border-radius: 50%;
}

.manta-heat {
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple);
}

.cull-heat {
  border: 1px solid var(--orange);
  background: rgba(237, 127, 63, 0.55);
  box-shadow: 0 0 8px var(--orange);
}

.map-viewport {
  position: relative;
  height: min(72vh, 820px);
  min-height: 540px;
  overflow: hidden;
}

.map-panel {
  position: absolute;
  inset: 0;
  margin: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.map-panel.active {
  visibility: visible;
  opacity: 1;
}

.map-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.map-panel-all img {
  object-fit: contain;
  background: #071d24;
}

.map-panel-detail img {
  object-position: center 48%;
}

.map-panel figcaption {
  position: absolute;
  right: 20px;
  bottom: 18px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(4, 27, 33, 0.75);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  backdrop-filter: blur(7px);
}

.legend-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: min(390px, 29%);
  height: 165px;
  background:
    radial-gradient(circle at 30% 90%, rgba(18, 66, 72, 0.65), transparent 60%),
    #0d2835;
}

.map-caveat {
  margin: 0;
  padding: 18px 22px;
  color: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
}

.map-caveat strong {
  color: var(--sand);
}

.evidence-gap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(50px, 9vw, 130px);
  padding: 130px 0 100px;
}

.gap-copy h3 {
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: clamp(2.3rem, 4vw, 4.3rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}

.gap-copy > p:last-child {
  color: var(--muted);
  line-height: 1.7;
}

.ratio-proof {
  align-self: center;
  padding: 34px;
  color: var(--white);
  background: var(--ink);
}

.ratio-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.ratio-heading span {
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ratio-heading strong {
  color: var(--sand);
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 400;
}

.ratio-row {
  margin-top: 30px;
}

.ratio-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.75rem;
}

.ratio-label strong {
  font-weight: 650;
}

.ratio-track {
  height: 15px;
  background: rgba(255, 255, 255, 0.1);
}

.ratio-track i {
  display: block;
  width: var(--bar);
  height: 100%;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.3s var(--ease);
}

.ratio-proof.in-view .ratio-track i {
  transform: scaleX(1);
}

.ratio-track.image i {
  min-width: 12px;
  background: var(--green);
}

.ratio-proof > p {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.65rem;
  text-align: right;
}

.method-table-wrap {
  overflow-x: auto;
  border-top: 2px solid var(--ink);
}

.method-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  text-align: left;
}

.method-table caption {
  padding: 12px 0 30px;
  color: var(--muted);
  font-size: 0.68rem;
  text-align: left;
}

.method-table th,
.method-table td {
  padding: 18px 14px;
  border-bottom: 1px solid rgba(18, 59, 69, 0.15);
}

.method-table thead th {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.method-table tbody th {
  color: var(--coral-dark);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
}

.method-table td {
  font-size: 0.83rem;
}

.method-table .image-row {
  background: rgba(42, 203, 115, 0.08);
}

.proof-conclusion {
  display: grid;
  grid-template-columns: 0.3fr 1.7fr;
  gap: 50px;
  margin-top: 100px;
  padding: 42px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.proof-conclusion span {
  color: var(--coral-dark);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.proof-conclusion p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.2vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.partnership {
  padding-bottom: 140px;
}

.partner-river {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.partner-river article {
  min-height: 290px;
  padding: 28px 22px;
  border-right: 1px solid rgba(18, 59, 69, 0.2);
}

.partner-river article:last-child {
  border: 0;
}

.partner-river span {
  display: block;
  color: var(--coral-dark);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.partner-river h3 {
  margin: 95px 0 15px;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.3vw, 2.45rem);
  font-weight: 400;
  line-height: 1;
}

.partner-river p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.sea-country {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(50px, 10vw, 150px);
  margin-top: 130px;
  padding: 62px;
  background: var(--paper-dark);
}

.sea-country h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 3.7vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.sea-country > div:last-child {
  align-self: end;
}

.sea-country > div:last-child p {
  color: var(--muted);
  line-height: 1.7;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  color: var(--coral-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.closing {
  min-height: 88svh;
}

.closing-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 88svh;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 120px 0;
}

.closing h2 {
  max-width: 950px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.2rem, 10vw, 10rem);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.07em;
}

.closing-content > p:not(.eyebrow) {
  max-width: 620px;
  margin: 38px 0 0;
  color: var(--water-soft);
  font-size: 1.12rem;
}

.closing-orbit {
  position: absolute;
  top: 50%;
  right: -5vw;
  width: min(55vw, 800px);
  aspect-ratio: 1;
  border: 1px solid rgba(108, 186, 194, 0.19);
  border-radius: 50%;
  transform: translateY(-50%);
}

.closing-orbit::before,
.closing-orbit::after {
  position: absolute;
  border: 1px solid rgba(108, 186, 194, 0.12);
  border-radius: 50%;
  content: "";
}

.closing-orbit::before {
  inset: 14%;
}

.closing-orbit::after {
  inset: 31%;
  background: rgba(108, 186, 194, 0.04);
}

.closing-sequence {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 100px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

footer {
  color: var(--ink);
  background: var(--paper);
}

.footer-inner {
  display: grid;
  grid-template-columns: 0.6fr 1.3fr 0.8fr;
  align-items: center;
  gap: 60px;
  min-height: 180px;
}

.footer-inner p {
  max-width: 560px;
  color: var(--muted);
  font-size: 0.75rem;
}

.footer-inner > div {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.present-hud {
  display: none;
}

body.present-mode main {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink-deep);
}

body.present-mode .site-header,
body.present-mode .progress-track,
body.present-mode footer {
  display: none;
}

body.present-mode .chapter {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: auto;
}

body.present-mode .chapter.present-active {
  display: block;
}

body.present-mode .chapter .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

body.present-mode .present-hud {
  position: fixed;
  z-index: 300;
  right: 22px;
  bottom: 18px;
  left: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.65);
  pointer-events: none;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.present-hud kbd {
  padding: 2px 5px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  background: transparent;
  font: inherit;
}

body.present-mode .hero {
  height: 100%;
}

body.present-mode .hero-content {
  min-height: 100%;
}

@media (max-width: 1000px) {
  :root {
    --shell: min(91vw, 900px);
  }

  .biology-grid,
  .evidence-gap,
  .sea-country {
    grid-template-columns: 1fr;
  }

  .portrait-wrap {
    width: min(70vw, 500px);
  }

  .pipeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 0;
  }

  .pipeline-line {
    display: none;
  }

  .partner-river {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner-river article {
    min-height: 230px;
    border-bottom: 1px solid rgba(18, 59, 69, 0.2);
  }

  .partner-river h3 {
    margin-top: 60px;
  }

  .map-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-legend {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  :root {
    --header-h: 66px;
    --shell: 88vw;
  }

  .site-header {
    padding: 0 6vw;
  }

  .present-button {
    display: none;
  }

  .header-actions {
    gap: 10px;
  }

  .login-button {
    min-height: 36px;
    padding: 0 12px;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 130px;
  }

  .hero-title {
    font-size: clamp(3.5rem, 17vw, 6rem);
  }

  .hero-copy {
    font-size: 0.96rem;
  }

  .hero-sequence {
    display: none;
  }

  .scroll-cue {
    left: 6vw;
  }

  .biology {
    padding: 100px 0;
  }

  .biology-grid {
    gap: 90px;
  }

  .portrait-wrap {
    width: 90%;
  }

  .display-title {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .fact-row {
    grid-template-columns: 1fr;
  }

  .continuum {
    margin-top: 120px;
  }

  .continuum-stage {
    height: 430px;
  }

  .continuum-stage img {
    width: auto;
    max-width: none;
    height: 100%;
    transform: translateX(-34%);
  }

  .continuum-labels {
    flex-direction: column;
    align-items: flex-start;
    gap: 120px;
  }

  .section-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .chapter-heading {
    padding-top: 105px;
  }

  .methods-visual {
    height: 520px;
  }

  .methods-visual img {
    width: auto;
    max-width: none;
    height: 100%;
    object-fit: cover;
    transform: translateX(-28%);
  }

  .method-glow {
    display: none;
  }

  .method-label {
    right: auto;
    left: 6%;
    width: 88%;
    padding: 11px 12px 11px 38px;
    background: rgba(5, 37, 43, 0.7);
    backdrop-filter: blur(5px);
  }

  .method-label-one {
    top: 6%;
    bottom: auto;
  }

  .method-label-two {
    top: 38%;
    bottom: auto;
  }

  .method-label-three {
    bottom: 6%;
  }

  .pipeline {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .pipeline-step p {
    min-height: 0;
  }

  .trust-loop {
    grid-template-columns: 1fr;
  }

  .track-frames {
    overflow-x: auto;
  }

  .track-frames div {
    min-width: 160px;
  }

  .map-tabs {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .map-tabs button {
    text-align: left;
  }

  .map-viewport {
    height: 530px;
    min-height: 0;
  }

  .map-panel img {
    object-position: center;
  }

  .legend-mask {
    width: 43%;
    height: 125px;
  }

  .evidence-gap {
    padding-top: 90px;
  }

  .ratio-proof {
    padding: 24px 18px;
  }

  .proof-conclusion {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .partner-river {
    grid-template-columns: 1fr;
  }

  .partner-river article {
    min-height: 190px;
  }

  .partner-river h3 {
    margin-top: 45px;
  }

  .sea-country {
    margin-top: 90px;
    padding: 36px 25px;
  }

  .closing h2 {
    font-size: clamp(4.2rem, 20vw, 7rem);
  }

  .closing-sequence {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 55px 0;
  }

  .footer-inner > div {
    justify-content: flex-start;
  }

  .menu-inner nav a {
    font-size: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-menu,
  .progress-track,
  .scroll-cue,
  .present-hud {
    display: none !important;
  }

  .chapter {
    break-inside: avoid;
  }
}
