/* ROAM Intelligence — landing page v2
   Palette: night ink and paper; amber light only where something is happening. */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var.woff2") format("woff2-variations"),
       url("../assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../assets/fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../assets/fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --night: #070a0f;
  --deep: #0c1119;
  --deep-2: #111823;
  --paper: #ece6da;
  --paper-2: #c9c3b8;
  --dust: #969ca6;
  --line: rgba(236, 230, 218, 0.1);
  --line-2: rgba(236, 230, 218, 0.18);
  --lamp: #f2c46d;
  --lamp-hi: #f8d891;
  --ember: #e08a3c;
  --oxblood: #82152c;
  --oxblood-deep: #3a0b15;
  --verified: #52c48c;
  --developing: #e7b24b;
  --critical: #ef5b5b;

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(20px, 4vw, 44px);
  --wrap: 1240px;
  --section: clamp(96px, 12vw, 184px);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;

  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--font);
  font-size: clamp(16.5px, 0.35vw + 15px, 18px);
  line-height: 1.6;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: rgba(242, 196, 109, 0.32); color: #fff; }

:focus-visible {
  outline: 2px solid var(--lamp);
  outline-offset: 3px;
  border-radius: 4px;
}

.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 {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--lamp); color: #140f05; padding: 10px 16px; border-radius: var(--r-md);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Type ---------------------------------------------------------------- */

.display, .h2, .closing-title, .trio-word, .plan-amount, .figure dd {
  font-stretch: 116%;
  letter-spacing: -0.035em;
}
@media (min-width: 640px) { .nowrap { white-space: nowrap; } }
.display {
  font-size: clamp(44px, 6.3vw, 98px);
  font-weight: 650;
  line-height: 0.94;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(34px, 4.4vw, 62px);
  font-weight: 620;
  line-height: 1.02;
  text-wrap: balance;
}
h3 { font-size: 1.22rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.lede {
  font-size: clamp(18px, 0.6vw + 15.5px, 21px);
  line-height: 1.55;
  color: var(--paper-2);
  max-width: 62ch;
  text-wrap: pretty;
}
.mono-key {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--dust);
  letter-spacing: 0;
}

.section-head { display: grid; gap: 20px; max-width: 820px; margin-bottom: clamp(48px, 6vw, 88px); }

section { position: relative; }

/* Buttons --------------------------------------------------------------- */

.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-size: 16px; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .25s var(--ease), color .2s;
}
.btn .icon { width: 14px; height: 14px; }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 15px; }
.btn-primary {
  background: var(--lamp);
  color: #171005;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 0 0 rgba(242, 196, 109, 0);
}
.btn-primary:hover {
  background: var(--lamp-hi);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 0 6px rgba(242, 196, 109, 0.14), 0 10px 40px -8px rgba(242, 196, 109, 0.45);
}
.btn-ghost { background: rgba(236, 230, 218, 0.03); border-color: var(--line-2); color: var(--paper); }
.btn-ghost:hover { border-color: rgba(236, 230, 218, 0.4); background: rgba(236, 230, 218, 0.07); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Nav ------------------------------------------------------------------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 10, 15, 0.72);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
}
.nav-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.nav-logo img { width: 116px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 12px; border-radius: 8px;
  color: var(--paper-2); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--paper); background: rgba(236, 230, 218, 0.06); }
.nav-signin { margin-left: 8px; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-in { gap: 12px; height: 64px; }
  .nav-cta { margin-left: auto; }
  .nav-toggle { order: 2; }
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 1px solid var(--line-2); border-radius: var(--r-md); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 1.5px; background: var(--paper); border-radius: 2px;
    transition: transform .25s var(--ease), opacity .2s;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .nav-links {
    position: fixed; inset: 64px 0 auto 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 24px;
    background: var(--night);
    border-bottom: 1px solid var(--line);
    max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .nav.is-open .nav-links { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav.is-open { background: var(--night); border-bottom-color: var(--line); }
  .nav-links a { padding: 14px 4px; font-size: 18px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-signin { margin: 0; }
}
@media (max-width: 380px) {
  .nav-logo img { width: 96px; }
  .nav-cta { padding: 0 12px; }
}

/* Hero ------------------------------------------------------------------ */

.hero {
  min-height: max(760px, 100svh);
  display: grid;
  grid-template-rows: 1fr auto auto;
  padding-top: 72px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* the night sky the globe hangs in */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 70% at 72% 42%, rgba(36, 52, 78, 0.38), transparent 70%),
    radial-gradient(40% 40% at 20% 100%, rgba(130, 21, 44, 0.12), transparent 70%);
}
.hero-in { display: flex; align-items: center; padding-block: clamp(40px, 6vh, 72px) 32px; pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
@media (min-width: 901px) and (max-width: 1340px) {
  /* where the globe reaches under the copy, a soft shadow keeps the text crisp */
  .hero-copy::before {
    content: ""; position: absolute; inset: -60px -80px -40px -120px; z-index: -1; pointer-events: none;
    background: radial-gradient(closest-side, rgba(7, 10, 15, 0.82), rgba(7, 10, 15, 0.55) 60%, rgba(7, 10, 15, 0));
  }
}
.hero-copy { max-width: 640px; display: grid; gap: 28px; position: relative; z-index: 2; }
.hero-copy h1 { width: max-content; max-width: min(860px, calc(100vw - 2 * var(--gutter))); }
.hero-lede { font-size: clamp(18px, 0.55vw + 15.6px, 21px); line-height: 1.55; color: var(--paper-2); max-width: 54ch; }
.hero .cta-row { margin-top: 4px; }

.powered { display: flex; align-items: center; gap: 14px; margin-top: 10px; color: var(--dust); font-size: 14px; }
.powered img { width: 128px; height: auto; opacity: 0.92; }

.globe {
  position: absolute; z-index: -1;
  width: min(980px, 76vw); aspect-ratio: 1;
  right: max(-180px, -12vw); top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
}
.globe.is-lost .globe-canvas { visibility: hidden; }
.globe.is-dragging { cursor: grabbing; }
.globe-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.globe-halo {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  /* atmosphere: a lit rim just outside the globe's edge (radius = 41% of the box) */
  background:
    radial-gradient(circle closest-side at 50% 50%, transparent 81%, rgba(242, 196, 109, 0.16) 82.2%, rgba(120, 150, 200, 0.07) 86%, transparent 100%),
    radial-gradient(circle closest-side at 44% 40%, rgba(70, 96, 140, 0.22), rgba(12, 17, 25, 0) 84%);
  opacity: 0; transition: opacity 1.6s var(--ease);
}
.globe.is-ready .globe-halo { opacity: 1; }
.globe-labels { position: absolute; inset: 0; pointer-events: none; }

.glabel {
  position: absolute; left: 0; top: 0;
  display: grid; gap: 2px;
  padding: 7px 10px 7px 12px;
  background: rgba(10, 14, 21, 0.78);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 13px; line-height: 1.3; white-space: nowrap;
  opacity: 0; transition: opacity .45s var(--ease);
  will-change: transform, opacity;
}
.glabel::before {
  /* the tick that ties the label to its country */
  content: ""; position: absolute; left: -14px; top: 50%; width: 14px; height: 1px; background: rgba(242, 196, 109, 0.6);
}
.glabel.is-on { opacity: 1; }
.glabel-raw { color: var(--paper-2); font-size: 15px; }
.glabel-rec { display: none; align-items: center; gap: 8px; }
.glabel.is-resolved .glabel-raw { display: none; }
.glabel.is-resolved .glabel-rec { display: flex; }
.glabel-kind { color: var(--dust); font-size: 11.5px; }
.glabel-rec b { font-weight: 600; color: var(--paper); }

.hero-meta { position: relative; z-index: 2; display: flex; justify-content: flex-end; padding-bottom: 14px; }
.globe-control {
  display: flex; align-items: center; gap: 14px;
  padding: 6px 14px 6px 6px; border-radius: 12px;
  background: rgba(7, 10, 15, 0.86); border: 1px solid var(--line);
}
.globe-pause {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px;
  border-radius: 8px; border: 1px solid var(--line-2); background: rgba(236, 230, 218, 0.04);
  font-size: 13.5px; font-weight: 500; color: var(--paper-2); cursor: pointer;
}
.globe-pause:hover { color: var(--paper); border-color: rgba(236, 230, 218, 0.4); }
.globe-pause[hidden] { display: none; }
.globe-pause .icon { width: 12px; height: 12px; }
.globe-pause .icon-play, .globe-pause.is-paused .icon-pause { display: none; }
.globe-pause.is-paused .icon-play { display: block; }
.globe-note { font-size: 12.5px; line-height: 1.4; color: var(--dust); max-width: 300px; }
.globe-control:has(> .globe-pause[hidden]) { padding-left: 14px; }

/* key figures */
.figures {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  position: relative; z-index: 2;
}
.figure { padding: 24px 24px 6px 0; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
.figure + .figure { padding-left: 24px; border-left: 1px solid var(--line); }
.figure dt { font-size: 14px; color: var(--dust); line-height: 1.35; }
.figure dd { font-size: clamp(30px, 3vw, 44px); font-weight: 600; line-height: 1; color: var(--paper); font-variant-numeric: tabular-nums; }
.figures-note { font-size: 12.5px; color: rgba(150, 156, 166, 0.8); padding: 14px 0 28px; }

@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: 64px; }
  .globe {
    width: 132vw; right: auto; left: 50%; top: 40px;
    transform: translateX(-50%);
    opacity: 0.9;
  }
  .hero-in { padding-top: min(78vw, 420px); align-items: flex-end; }
  .hero-copy { gap: 22px; }
  .hero::after {
    /* fade the globe out behind the copy so pulses never run through the headline */
    content: ""; position: absolute; inset: auto 0 0 0; height: 72%; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg, rgba(7, 10, 15, 0), rgba(7, 10, 15, 0.86) 26%, var(--night) 60%);
  }
  .hero-meta { justify-content: flex-start; padding-top: 18px; }
  .globe-control { flex-wrap: wrap; }
  .figures { grid-template-columns: 1fr 1fr; margin-top: 28px; }
  .figure { padding: 20px 16px 4px 0; }
  .figure + .figure { padding-left: 0; border-left: 0; }
  .figure:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .figure:nth-child(n+3) { border-top: 1px solid var(--line); }
  .glabel { font-size: 12px; padding: 5px 8px 5px 10px; }
  .glabel-raw { font-size: 13px; }
}

@media (max-width: 360px) {
  .figure dd { font-size: 26px; }
  .figure dt { font-size: 13px; }
}

/* Film ------------------------------------------------------------------ */

.film { padding-top: var(--section); }
.film .section-head { margin-bottom: clamp(36px, 4vw, 56px); }
.film-stage { width: min(1440px, 100% - 2 * var(--gutter)); margin-inline: auto; perspective: 1600px; }
.film-frame {
  --scale: 1;
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: calc(var(--r-lg) + 6px);
  background: var(--deep) url("../assets/shots/map-1600.webp") center / cover no-repeat;
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.4);
  transform: scale(var(--scale));
  transform-origin: 50% 0;
  will-change: transform;
}
.film-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 10, 15, 0) 45%, rgba(7, 10, 15, 0.7));
  transition: opacity .3s;
}
.film-frame.is-playing::after { opacity: 0; }
.film-frame video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.film-play {
  position: absolute; left: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 40px); z-index: 2;
  display: flex; align-items: center; gap: 16px;
  padding: 0; background: none; border: 0; cursor: pointer; text-align: left;
}
.film-play-disc {
  display: grid; place-items: center;
  width: clamp(64px, 6vw, 88px); aspect-ratio: 1; border-radius: 50%;
  background: var(--lamp); color: #171005;
  box-shadow: 0 0 0 10px rgba(242, 196, 109, 0.16), 0 18px 50px -10px rgba(242, 196, 109, 0.5);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.film-play-disc svg { width: 34%; height: 34%; margin-left: 6%; }
.film-play:hover .film-play-disc { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(242, 196, 109, 0.14), 0 18px 60px -10px rgba(242, 196, 109, 0.6); }
.film-play-text { font-size: clamp(18px, 1.4vw, 22px); font-weight: 600; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6); }
.film-dur { display: block; font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--paper-2); }

.transcript { margin-top: 28px; max-width: 760px; }
.transcript summary {
  cursor: pointer; color: var(--paper-2); font-size: 15px; font-weight: 500;
  list-style: none; display: inline-flex; align-items: center; gap: 10px;
}
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary::before { content: "+"; font-family: var(--mono); color: var(--lamp); width: 12px; }
.transcript[open] summary::before { content: "–"; }
.transcript-body { display: grid; gap: 14px; padding-top: 18px; color: var(--paper-2); font-size: 16px; }
.transcript-note { font-size: 14px; color: var(--dust); }

/* The gap --------------------------------------------------------------- */

.gap { padding-block: var(--section); }
.gap-in { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 112px); align-items: start; }
.gap-title { position: sticky; top: 120px; }
.gap-body { display: grid; gap: 48px; }
.gap-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.gap-list li { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.gap-list h3 { font-size: 1.35rem; font-stretch: 112%; }
.gap-list p { color: var(--paper-2); }
.gap-close { font-size: clamp(24px, 2.2vw, 32px); font-weight: 600; font-stretch: 112%; letter-spacing: -0.02em; color: var(--lamp); }

@media (max-width: 900px) {
  .gap-in { grid-template-columns: 1fr; }
  .gap-title { position: static; }
  .gap-list li { grid-template-columns: 1fr; gap: 6px; }
}

/* Process --------------------------------------------------------------- */

.process { padding-block: var(--section); background: linear-gradient(180deg, var(--night), var(--deep) 18%, var(--deep) 82%, var(--night)); }
.process-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.record-stage { position: sticky; top: max(92px, calc(50vh - 330px)); }

.record {
  display: grid; gap: 0;
  background: rgba(17, 24, 35, 0.92);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}
.record-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.record-tag { font-size: 13px; color: var(--dust); }
.record-part {
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  transition: opacity .5s var(--ease), filter .5s var(--ease), background-color .6s var(--ease);
  opacity: 0.16; filter: blur(1.5px) saturate(0.4);
}
.record-part:last-child { border-bottom: 0; }
.record-part.is-on { opacity: 1; filter: none; }
.record-part.is-current { background: rgba(242, 196, 109, 0.05); }
.record-part > .mono-key { margin-bottom: 8px; }
.raw-text { font-size: 17px; font-style: italic; color: var(--paper); }
.raw-meta { font-size: 13px; color: var(--dust); margin-top: 4px; }
.record-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.record-fields dd { font-size: 15.5px; margin-top: 2px; }
.record-sources ol { display: grid; gap: 6px; counter-reset: src; }
.record-sources li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; counter-increment: src; }
.record-sources li > span:first-child::before { content: counter(src) ". "; color: var(--dust); font-family: var(--mono); font-size: 13px; }
.src-note { color: var(--dust); font-size: 13px; }
.src-merged { margin-top: 10px; font-size: 13px; color: var(--dust); }
.record-verdict p:last-child { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.record-score { display: grid; gap: 10px; }
.meter { display: grid; grid-template-columns: 92px 1fr 52px; align-items: center; gap: 12px; }
.meter-bar { height: 6px; border-radius: 3px; background: rgba(236, 230, 218, 0.08); overflow: hidden; }
.meter-bar i { display: block; height: 100%; width: calc(var(--v) * 100%); background: linear-gradient(90deg, var(--ember), var(--lamp)); border-radius: inherit; transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease) .1s; }
.record-score.is-on .meter-bar i { transform: scaleX(1); }
.meter-val { font-size: 14px; text-align: right; }
.record-deliver ul { display: flex; flex-wrap: wrap; gap: 8px; }
.record-deliver li { font-size: 13.5px; padding: 5px 10px; border-radius: var(--r-sm); border: 1px solid var(--line-2); color: var(--paper-2); }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px; border-radius: var(--r-sm);
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  color: var(--dust); background: rgba(236, 230, 218, 0.06); border: 1px solid var(--line);
  white-space: nowrap;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-verified { color: var(--verified); background: rgba(82, 196, 140, 0.1); border-color: rgba(82, 196, 140, 0.3); }
.chip-developing { color: var(--developing); background: rgba(231, 178, 75, 0.1); border-color: rgba(231, 178, 75, 0.3); }
.chip-reassessed { color: #8fb4ff; background: rgba(143, 180, 255, 0.1); border-color: rgba(143, 180, 255, 0.28); }
.chip-new { color: var(--lamp); background: rgba(242, 196, 109, 0.1); border-color: rgba(242, 196, 109, 0.3); }

.steps { display: grid; padding-bottom: 18vh; }
.step {
  min-height: 62vh; padding: 8px 0 48px;
  display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto 1fr; column-gap: 20px; row-gap: 12px; align-content: center;
  opacity: 0.62; transition: opacity .5s var(--ease);
}
.step:first-child { min-height: 46vh; align-content: start; padding-top: 0; }
.step:last-child { min-height: 56vh; }
.step.is-active { opacity: 1; }
.step-n {
  grid-row: 1 / span 2;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); font-family: var(--mono); font-size: 14px; color: var(--paper-2);
  transition: background-color .4s, color .4s, border-color .4s, box-shadow .4s;
}
.step.is-active .step-n { background: var(--lamp); color: #171005; border-color: var(--lamp); box-shadow: 0 0 0 8px rgba(242, 196, 109, 0.12); }
.step h3 { font-size: clamp(26px, 2.4vw, 34px); font-stretch: 114%; letter-spacing: -0.025em; font-weight: 600; line-height: 1.05; }
.step p { color: var(--paper-2); max-width: 46ch; }

/* small screens and reduced motion: no scroll choreography, every step readable */
.process.is-still .steps { padding-bottom: 0; }
.process.is-still .step { opacity: 1; }
.process.is-still .step .step-n { background: transparent; color: var(--lamp); border-color: rgba(242, 196, 109, 0.5); box-shadow: none; }

@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr; }
  .record-stage { position: static; order: 2; }
  .step { min-height: 0; opacity: 1; padding: 0 0 36px; align-content: start; }
  .step:first-child, .step:last-child { min-height: 0; }
  .record-fields { grid-template-columns: 1fr; }
}

/* short laptop screens: the sticky record must fit under the nav */
@media (min-width: 901px) and (max-height: 880px) {
  .record-stage { top: 84px; }
  .record-head { padding: 11px 18px; }
  .record-part { padding: 10px 18px; }
  .record-part > .mono-key { margin-bottom: 5px; }
  .raw-text { font-size: 15.5px; }
  .raw-meta, .src-merged { font-size: 12.5px; margin-top: 2px; }
  .record-fields { gap: 8px 18px; }
  .record-fields dd { font-size: 14.5px; }
  .record-sources ol { gap: 3px; }
  .record-sources li { font-size: 14px; }
  .record-score { gap: 6px; }
  .record-deliver li { font-size: 12.5px; padding: 4px 8px; }
}

/* Standard -------------------------------------------------------------- */

.standard { padding-block: var(--section); }
.status-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.status { padding: 32px 32px 36px 0; display: grid; gap: 18px; align-content: start; }
.status + .status { padding-left: 32px; border-left: 1px solid var(--line); }
.status .chip { justify-self: start; font-size: 14px; padding: 6px 12px; }
.status-title { font-size: 17px; line-height: 30px; font-weight: 600; color: var(--paper); }
.status p { color: var(--paper-2); font-size: 17px; }
.standard-line {
  margin-top: clamp(40px, 5vw, 72px); max-width: 30ch;
  font-size: clamp(26px, 2.6vw, 38px); line-height: 1.2; font-weight: 560; font-stretch: 108%; letter-spacing: -0.02em;
  text-wrap: balance;
}
@media (max-width: 900px) {
  .status-row { grid-template-columns: 1fr; }
  .status, .status + .status { padding: 28px 0; border-left: 0; }
  .status + .status { border-top: 1px solid var(--line); }
}

/* Tour ------------------------------------------------------------------ */

.tour { padding-block: var(--section); }
.tour-grid { display: grid; grid-template-columns: minmax(280px, 4fr) 8fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.tour-tabs { display: grid; border-top: 1px solid var(--line); }
.tour-tab {
  position: relative; display: grid; gap: 8px; text-align: left;
  padding: 18px 0 18px 22px; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer;
}
.tour-tab::before {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; border-radius: 2px;
  background: var(--line-2); transition: background-color .3s;
}
.tour-tab[aria-selected="true"]::before { background: var(--lamp); }
.tour-tab-title { font-size: 18px; font-weight: 600; color: var(--paper-2); transition: color .2s; }
.tour-tab:hover .tour-tab-title, .tour-tab[aria-selected="true"] .tour-tab-title { color: var(--paper); }
.tour-tab-desc { display: none; color: var(--paper-2); font-size: 15.5px; line-height: 1.55; }
.tour-tab[aria-selected="true"] .tour-tab-desc { display: block; }

.tour-frame {
  --rx: 0deg; --ry: 0deg;
  position: sticky; top: 104px;
  border-radius: var(--r-lg);
  background: #0b0f15;
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 120px -50px rgba(0, 0, 0, 0.95), 0 0 80px -30px rgba(242, 196, 109, 0.12);
  overflow: hidden;
  transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease);
}
.frame-bar { display: flex; align-items: center; gap: 16px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #0e131b; }
.frame-dots { display: flex; gap: 6px; }
.frame-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(236, 230, 218, 0.14); }
.frame-url { font-family: var(--mono); font-size: 12px; color: var(--dust); padding: 3px 12px; border-radius: 6px; background: rgba(236, 230, 218, 0.05); margin-inline: auto; transform: translateX(-24px); max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame-screen { position: relative; aspect-ratio: 16 / 10; background: #0b0f15; }
.tour-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; opacity: 0; transition: opacity .45s var(--ease), transform .7s var(--ease); transform: scale(1.015); }
.tour-shot.is-on { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .tour-grid { grid-template-columns: 1fr; }
  .tour-frame { position: relative; top: 0; z-index: 3; order: -1; transform: none; }
  .frame-url { transform: none; }
}

/* Outcomes -------------------------------------------------------------- */

.outcomes { padding-block: var(--section); }
.roles { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.role { padding: 36px 40px 40px 0; display: grid; gap: 14px; align-content: start; border-bottom: 1px solid var(--line); }
.role:nth-child(even) { padding-left: 40px; padding-right: 0; border-left: 1px solid var(--line); }
.role h3 { font-size: 15px; font-weight: 500; color: var(--dust); }
.role-q { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.25; font-weight: 560; letter-spacing: -0.015em; text-wrap: balance; }
.role-a { color: var(--paper-2); max-width: 48ch; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: clamp(72px, 9vw, 128px); }
.trio-item { display: grid; gap: 14px; align-content: start; }
.trio-word { font-size: clamp(34px, 3.6vw, 54px); font-weight: 650; line-height: 1; color: var(--paper); }
.trio-item p:last-child { color: var(--paper-2); max-width: 36ch; }
.trio-item:nth-child(3) .trio-word { color: var(--lamp); }

@media (max-width: 900px) {
  .roles { grid-template-columns: 1fr; }
  .role, .role:nth-child(even) { padding: 28px 0; border-left: 0; }
  .trio { grid-template-columns: 1fr; }
}

/* Mission --------------------------------------------------------------- */

.mission {
  padding-block: var(--section);
  background:
    radial-gradient(80% 90% at 85% 10%, rgba(242, 196, 109, 0.08), transparent 60%),
    linear-gradient(180deg, var(--oxblood-deep), #2b0810 60%, #1d070c);
  border-top: 1px solid rgba(242, 196, 109, 0.12);
  border-bottom: 1px solid rgba(242, 196, 109, 0.12);
  overflow: hidden;
}
.mission::after {
  /* the ROAM mark, large and faint, as a watermark */
  content: ""; position: absolute; right: -8vw; bottom: -14vw; width: min(64vw, 760px); aspect-ratio: 1;
  background: url("../assets/brand/roam-mark.svg") center / contain no-repeat;
  opacity: 0.045; pointer-events: none;
}
.mission-in { display: grid; grid-template-columns: 8fr 4fr; gap: clamp(40px, 6vw, 96px); align-items: end; position: relative; z-index: 1; }
.mission-copy { display: grid; gap: 28px; }
.mission .h2 { max-width: 18ch; }
.mission .lede { color: #e6d6cf; }
.mission-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 24px; padding-top: 32px; border-top: 1px solid rgba(236, 230, 218, 0.16); }
.mission-points h3 { font-size: 17px; margin-bottom: 8px; color: var(--lamp-hi); }
.mission-points p { color: #d8c8c2; font-size: 16px; }
.mission-partner { display: grid; gap: 16px; padding: 28px; border: 1px solid rgba(236, 230, 218, 0.16); border-radius: var(--r-lg); background: rgba(7, 10, 15, 0.25); }
.partner-label { font-size: 14px; color: #d8c8c2; }
.mission-partner img { width: 100%; max-width: 260px; }
.partner-note { font-size: 14px; color: #c9b6af; }

@media (max-width: 400px) {
  .mission .h2 { font-size: 28px; font-stretch: 104%; }
}
@media (max-width: 900px) {
  .mission-in { grid-template-columns: 1fr; }
  .mission-points { grid-template-columns: 1fr; gap: 20px; }
}

/* Pricing --------------------------------------------------------------- */

.pricing { padding-block: var(--section); }
.pricing-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.pricing-top .section-head { margin-bottom: 0; }
.pricing-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-bottom: 28px; }
.pricing-bar-note { color: var(--dust); font-size: 14.5px; }

.billing { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--deep-2); border: 1px solid var(--line); }
.billing button {
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 9px; background: none; cursor: pointer;
  color: var(--paper-2); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 10px;
  transition: background-color .2s, color .2s;
}
.billing button[aria-checked="true"] { background: var(--paper); color: #10141b; }
.billing-save { font-family: var(--mono); font-size: 11.5px; font-weight: 500; padding: 2px 7px; border-radius: 5px; background: rgba(82, 196, 140, 0.16); color: var(--verified); }
.billing button[aria-checked="true"] .billing-save { background: rgba(26, 120, 74, 0.14); color: #0f5a35; }
.billing button, .billing-save { white-space: nowrap; }

.fit { display: grid; gap: 10px; padding: 18px 20px; border-radius: 14px; background: var(--deep); border: 1px solid var(--line); }
.fit-label { font-size: 15px; font-weight: 600; }
.fit-row { display: flex; align-items: center; gap: 16px; }
.fit-count { min-width: 3ch; font-family: var(--mono); font-size: 16px; text-align: right; color: var(--lamp); }
.fit-range { flex: 1; accent-color: var(--lamp); height: 28px; }
.fit-check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--paper-2); cursor: pointer; }
.fit-check input { width: 18px; height: 18px; accent-color: var(--lamp); }
.fit-result { font-size: 14.5px; color: var(--paper-2); }
.fit-result strong { color: var(--paper); }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 28px 24px 24px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--deep-2), var(--deep));
  border: 1px solid var(--line);
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.plan.is-fit {
  border-color: rgba(242, 196, 109, 0.55);
  box-shadow: 0 0 0 1px rgba(242, 196, 109, 0.25), 0 30px 80px -30px rgba(242, 196, 109, 0.28);
  transform: translateY(-4px);
}
.plan.is-fit::before {
  content: "Fits your team"; position: absolute; top: -12px; left: 24px;
  padding: 3px 10px; border-radius: 6px; background: var(--lamp); color: #171005;
  font-size: 12.5px; font-weight: 600;
}
.plan-name { font-size: 22px; font-stretch: 112%; letter-spacing: -0.02em; }
.plan-for { color: var(--paper-2); font-size: 15px; line-height: 1.5; min-height: 4.5em; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-top: 4px; }
.plan-amount { font-size: clamp(34px, 2.8vw, 42px); font-weight: 650; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-per { color: var(--dust); font-size: 15px; }
.plan-bill { font-size: 13.5px; color: var(--dust); min-height: 2.8em; }
.plan-seats { font-weight: 600; font-size: 15px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan-plus { font-size: 14px; color: var(--dust); }
.plan-list { display: grid; gap: 10px; margin-bottom: 8px; }
.plan-list li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.45; }
.plan-list li::before {
  content: ""; position: absolute; left: 2px; top: 0.3em; width: 14px; height: 14px;
  background: var(--lamp);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn-plan { margin-top: auto; width: 100%; background: rgba(236, 230, 218, 0.06); border-color: var(--line-2); color: var(--paper); }
.btn-plan:hover { background: rgba(236, 230, 218, 0.12); border-color: rgba(236, 230, 218, 0.4); }
.plan.is-fit .btn-plan { background: var(--lamp); border-color: var(--lamp); color: #171005; }
.plan.is-fit .btn-plan:hover { background: var(--lamp-hi); }
.plan-partner { background: linear-gradient(180deg, #1a1118, var(--deep)); }
.plan-foot { min-height: 2.9em; font-size: 13.5px; line-height: 1.45; color: var(--dust); text-align: center; }
.plan-talk { color: var(--paper-2); text-underline-offset: 3px; }
.plan-talk:hover { color: var(--paper); }
.checkout-error {
  margin: 0 0 20px; padding: 14px 18px; border-radius: var(--r-md);
  border: 1px solid rgba(224, 138, 60, 0.6); background: rgba(224, 138, 60, 0.08); color: var(--paper);
}

.assure { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 32px; color: var(--dust); font-size: 14px; }
.assure li { display: inline-flex; align-items: center; gap: 8px; }
.assure .icon { width: 14px; height: 14px; color: var(--paper-2); }

.compare { margin-top: 40px; border-top: 1px solid var(--line); }
.compare summary {
  cursor: pointer; padding: 22px 0; list-style: none; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; color: var(--paper-2);
}
.compare summary::-webkit-details-marker { display: none; }
.compare summary::after { content: "+"; font-family: var(--mono); color: var(--lamp); }
.compare[open] summary::after { content: "–"; }
.compare-scroll { overflow: visible; }
.compare table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.compare th, .compare td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: center; font-weight: 400; }
.compare thead th { font-weight: 600; font-size: 16px; position: sticky; top: 72px; z-index: 1; background: var(--night); }
.compare tbody th[scope="row"] { text-align: left; color: var(--paper-2); padding-left: 0; }
.compare-group th { text-align: left; padding: 28px 0 10px; font-size: 13px; color: var(--dust); font-weight: 500; border-bottom-color: var(--line-2); }
.compare .yes, .compare .no { display: inline-block; width: 16px; height: 16px; overflow: hidden; text-indent: 100%; white-space: nowrap; vertical-align: middle; }
.compare .yes { background: var(--lamp); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.compare .no { width: 12px; height: 2px; background: rgba(236, 230, 218, 0.48); border-radius: 1px; }

@media (max-width: 1100px) {
  .plans { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
}
@media (max-width: 900px) {
  .pricing-top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .plans { grid-template-columns: 1fr; }
  .plan-for, .plan-bill { min-height: 0; }
  .pricing-bar { flex-direction: column; align-items: flex-start; }
}

/* FAQ ------------------------------------------------------------------- */

.faq { padding-block: var(--section); }
.faq-in { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-in .h2 { position: sticky; top: 120px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-size: 19px; font-weight: 560;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 1.5px solid var(--lamp); border-bottom: 1.5px solid var(--lamp);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq-list details p { padding: 0 0 24px; color: var(--paper-2); max-width: 64ch; }
@media (max-width: 900px) {
  .faq-in { grid-template-columns: 1fr; }
  .faq-in .h2 { position: static; }
}

/* Closing --------------------------------------------------------------- */

.closing {
  padding-block: var(--section);
  overflow: hidden;
  background: radial-gradient(60% 80% at 50% 120%, rgba(242, 196, 109, 0.12), transparent 70%);
  border-top: 1px solid var(--line);
}
.closing-in { display: grid; gap: 32px; justify-items: start; }
.closing-title { display: grid; font-size: clamp(48px, 8.4vw, 132px); font-weight: 650; line-height: 0.95; }
.closing-title span { color: rgba(236, 230, 218, 0.22); transition: color .9s var(--ease); }
.closing-title.is-lit span { color: var(--paper); }
.closing-title.is-lit span:nth-child(2) { transition-delay: .35s; }
.closing-title.is-lit span:nth-child(3) { transition-delay: .7s; color: var(--lamp); }

/* Footer ---------------------------------------------------------------- */

.foot { border-top: 1px solid var(--line); padding-top: 64px; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot-brand { display: grid; gap: 14px; justify-items: start; align-content: start; color: var(--dust); }
.foot-brand > img { width: 116px; }
.foot-powered { display: flex; align-items: center; gap: 12px; font-size: 13px; margin-top: 8px; }
.foot-powered img { width: 104px; opacity: 0.85; }
.foot-nav { display: grid; gap: 10px; align-content: start; }
.foot-nav a { color: var(--paper-2); text-decoration: none; font-size: 15px; width: fit-content; max-width: 100%; overflow-wrap: anywhere; }
.foot-nav a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.foot-legal { padding: 48px 0 40px; color: var(--dust); font-size: 13px; }
@media (max-width: 900px) {
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

/* Motion preferences ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .film-frame { transform: none !important; }
  .tour-frame { transform: none !important; }
}

/* Compare table on phones: fit all four plans without sideways scrolling */
@media (max-width: 760px) {
  .compare table { min-width: 0; font-size: 12.5px; table-layout: fixed; }

  .compare th, .compare td { padding: 10px 3px; }
  .compare thead th { font-size: 12px; }
  .compare thead th:first-child, .compare tbody th[scope="row"] { width: 34%; }
  .compare tbody th[scope="row"] { font-size: 13px; line-height: 1.35; }
  .compare td { overflow-wrap: normal; }
}

@media (max-width: 360px) {
  .compare thead th { font-size: 11px; }
  .compare thead th:first-child, .compare tbody th[scope="row"] { width: 30%; }
  .billing button { padding: 0 12px; }
}

/* Windows High Contrast / forced colors: show the words behind the marks */
@media (forced-colors: active) {
  .compare .yes, .compare .no {
    width: auto; height: auto; overflow: visible; text-indent: 0; font-size: 0;
    background: none; -webkit-mask: none; mask: none;
  }
  .compare .yes::before { content: "Yes" / ""; font-size: 12.5px; }
  .compare .no::before { content: "No" / ""; font-size: 12.5px; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { forced-color-adjust: none; background: ButtonText; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .billing button[aria-checked="true"] { outline: 2px solid Highlight; outline-offset: -2px; }
  .plan.is-fit { outline: 2px solid Highlight; }
  .chip::before { forced-color-adjust: none; background: CanvasText; }
}

/* the tour frame sticks on tall portrait phones, where the tabs still have room beneath it */
@media (max-width: 900px) and (orientation: portrait) and (min-height: 640px) {
  .tour-frame { position: sticky; top: 72px; }
}

/* later rules that must win over the section defaults above ------------- */
@media (max-width: 900px) {
  .compare thead th { top: 64px; }
}
@media (min-width: 761px) {
  .compare thead th:not(:first-child) { width: 15%; }
}
@media (max-width: 560px) {
  .foot-in { grid-template-columns: 1fr; gap: 28px; }
}
/* very short laptop screens: shrink the sticky record so its last row stays visible */
@media (min-width: 901px) and (max-height: 700px) {
  .record { zoom: 0.84; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-links { transition: none !important; }
}
@media (forced-colors: active) and (prefers-color-scheme: light) {
  .nav-logo img, .powered img, .mission-partner img, .foot-brand > img, .foot-powered img { filter: invert(1); }
}
