/* ==========================================================
   SoldierSim — "engineering dossier", multi-page edition
   Tokens per client brief; interactivity layer added on top.
   ========================================================== */
:root {
  --ink-900: #14171C;
  --ink-800: #1C2027;
  --ink-700: #262B34;
  --bone-100: #E8E6E1;
  --bone-400: #9BA0A8;
  --coyote-500: #B08D57;
  --signal-500: #E8963C;
  --signal-600: #D58A37;
  --trace-500: #5F8C6E;
  --hairline: rgba(38, 43, 52, 1);
  --hairline-soft: rgba(38, 43, 52, .55);
  --font-display: "Archivo", -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--ink-900);
  color: var(--bone-100);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--bone-100); text-decoration: none; }
p a, .modal-fallback a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--coyote-500); }
ul, ol { list-style: none; }

:focus-visible { outline: 2px solid var(--signal-500); outline-offset: 2px; }

.wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.mono { font-family: var(--font-mono); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink-800); color: var(--bone-100);
  border: 1px solid var(--coyote-500); border-radius: 8px;
  padding: 10px 18px; z-index: 200; font-weight: 500;
}
.skip-link:focus { left: 12px; top: 12px; }

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

/* ---------- cross-page view transitions ---------- */
@view-transition { navigation: auto; }
.site-nav { view-transition-name: site-nav; }
.site-footer { view-transition-name: site-footer; }
.page-head { view-transition-name: page-head; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: 200ms ease-in both vt-out; }
  ::view-transition-new(root) { animation: 320ms cubic-bezier(.2, .7, .3, 1) both vt-in; }
  @keyframes vt-out { to { opacity: 0; transform: translateY(-14px); } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }
}

/* ---------- type ---------- */
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--bone-400);
  margin-bottom: 20px;
}
.eyebrow .sec-no { color: var(--coyote-500); margin-right: 14px; }
.lede { color: var(--bone-400); max-width: 60ch; margin-top: 20px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-signal { background: var(--signal-500); color: var(--ink-900); }
.btn-signal:hover { background: var(--signal-600); }
.btn-ghost { border: 1px solid var(--ink-700); color: var(--bone-100); }
.btn-ghost:hover { border-color: var(--coyote-500); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 15px; }
.btn .arr { display: inline-block; transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- nav ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background .2s ease, border-color .2s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(20, 23, 28, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.15;
  display: flex;
  flex-direction: column;
}
.brand-sub { font-size: 12px; font-weight: 400; color: var(--bone-400); letter-spacing: .02em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a:not(.btn) {
  position: relative;
  font-size: 15px;
  color: var(--bone-400);
  padding: 4px 0;
}
.nav-links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 2px;
  background: var(--signal-500);
  transition: right .2s ease;
}
.nav-links > a:not(.btn):hover { color: var(--bone-100); }
.nav-links > a[aria-current="page"] { color: var(--bone-100); }
.nav-links > a[aria-current="page"]::after { right: 0; }
.nav-burger { display: none; }

/* no-JS: header cannot toggle states, so keep it static and opaque at every width */
html:not(.js) .site-nav { position: static; background: var(--ink-900); }

.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  pointer-events: none;
}
.scroll-progress i {
  display: block;
  height: 100%;
  background: var(--coyote-500);
  transform: scaleX(0);
  transform-origin: 0 0;
}

/* ---------- section scaffold ---------- */
.section { padding: 70px 0; }
section[id] { scroll-margin-top: 84px; }

.section-rule { display: flex; align-items: center; gap: 10px; padding-top: 70px; }
.section-rule::before { content: ""; flex: 1; height: 1px; background: var(--hairline-soft); }
.section-rule::after { content: ""; width: 1px; height: 8px; background: var(--coyote-500); order: 2; }
.section-rule span { order: 3; font-size: 12px; color: var(--coyote-500); letter-spacing: .1em; }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 64px;
  align-items: start;
}

/* blueprint texture + cursor spotlight (JS sets --mx/--my) */
.blueprint {
  position: relative;
  background-image:
    radial-gradient(560px circle at var(--mx, 60%) var(--my, 30%), rgba(176, 141, 87, .07), transparent 65%),
    linear-gradient(rgba(155, 160, 168, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 160, 168, .045) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}

/* page hero (interior pages) */
.page-hero {
  padding: 150px 0 56px;
  border-bottom: 1px solid var(--hairline-soft);
  position: relative;
  overflow: hidden;
}
.page-hero .ghost-no {
  position: absolute;
  right: -10px; bottom: -54px;
  font-family: var(--font-mono);
  font-size: clamp(140px, 22vw, 260px);
  font-weight: 500;
  line-height: 1;
  color: rgba(155, 160, 168, .06);
  pointer-events: none;
  user-select: none;
}

/* ---------- home hero ---------- */
.hero { padding: 168px 0 24px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  gap: 56px;
  align-items: center;
}
.hero-copy h1 { margin-bottom: 8px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.cta-row.center { justify-content: center; }
.hero-contact { margin-top: 28px; font-size: 13px; color: var(--bone-400); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-contact a { color: var(--bone-400); }
.hero-contact a:hover { color: var(--bone-100); }
.tick { display: inline-block; width: 1px; height: 12px; background: var(--coyote-500); }

/* instrument frame — the one screenshot component */
.instrument-frame {
  border: 1px solid var(--ink-700);
  border-radius: 8px;
  overflow: hidden;
  background: var(--ink-800);
}
.frame-titlebar {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--bone-400);
  border-bottom: 1px solid var(--ink-700);
  text-transform: uppercase;
}
.frame-titlebar .rec {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--trace-500);
  flex: none;
}
.frame-media { position: relative; display: block; }
.frame-media video { display: block; width: 100%; height: auto; max-width: 100%; background: var(--ink-900); }
.fig-caption { margin-top: 10px; font-size: 12px; color: var(--bone-400); letter-spacing: .04em; }

/* pointer tilt (JS-driven transform) */
[data-tilt] { transition: transform .25s ease; will-change: transform; }

/* crosshair coordinate readout */
.xhair { position: absolute; inset: 0; opacity: 0; transition: opacity .15s ease; pointer-events: none; }
.frame-media[data-xhair]:hover .xhair { opacity: 1; }
.xhair i { position: absolute; background: rgba(176, 141, 87, .55); }
.xhair .xh-v { top: 0; bottom: 0; left: var(--x, 50%); width: 1px; }
.xhair .xh-h { left: 0; right: 0; top: var(--y, 50%); height: 1px; }
.xhair .xh-label {
  position: absolute;
  left: var(--x, 50%); top: var(--y, 50%);
  translate: 12px 12px;
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--signal-500);
  background: rgba(20, 23, 28, .85);
  border: 1px solid var(--ink-700);
  border-radius: 4px;
  padding: 2px 7px;
  white-space: nowrap;
}

/* annotations — the signature device */
.annotations { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.annotations .lead { fill: none; stroke: var(--coyote-500); stroke-width: 1; }
.annotations .dot { fill: var(--coyote-500); }
.annotations text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  paint-order: stroke;
  stroke: rgba(20, 23, 28, .85);
  stroke-width: 3px;
}
.annotations .lbl { fill: var(--bone-100); }
.annotations .val { fill: var(--signal-500); font-weight: 500; }

@media (prefers-reduced-motion: no-preference) {
  .js .hero-fig .lead { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .3s ease-out; }
  .js .hero-fig .dot, .js .hero-fig .annotations text { opacity: 0; transition: opacity .25s ease-out .2s; }
  .js .hero-fig .anno:nth-child(2) .lead { transition-delay: .12s; }
  .js .hero-fig .anno:nth-child(3) .lead { transition-delay: .24s; }
  .js .hero-fig .anno:nth-child(4) .lead { transition-delay: .36s; }
  .js .hero-fig .anno:nth-child(2) .dot, .js .hero-fig .anno:nth-child(2) text { transition-delay: .32s; }
  .js .hero-fig .anno:nth-child(3) .dot, .js .hero-fig .anno:nth-child(3) text { transition-delay: .44s; }
  .js .hero-fig .anno:nth-child(4) .dot, .js .hero-fig .anno:nth-child(4) text { transition-delay: .56s; }
  .js .hero-fig.in .lead { stroke-dashoffset: 0; }
  .js .hero-fig.in .dot, .js .hero-fig.in .annotations text { opacity: 1; }
}

/* trust bar */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 8px;
  margin-top: 72px;
  padding: 18px 0;
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bone-400);
  font-family: var(--font-mono);
}
.trust-bar li { display: flex; align-items: center; }
.trust-bar li + li::before {
  content: "";
  display: inline-block;
  width: 1px; height: 12px;
  background: var(--coyote-500);
  margin: 0 20px;
}

/* ---------- home: contents / explore cards ---------- */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.explore-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: 8px;
  padding: 28px 30px 26px;
  transition: border-color .18s ease, transform .18s ease;
}
.explore-card:hover { border-color: var(--coyote-500); transform: translateY(-3px); }
.explore-card .card-no { font-size: 12px; letter-spacing: .12em; color: var(--coyote-500); }
.explore-card h3 { max-width: 22ch; }
.explore-card p { color: var(--bone-400); font-size: 15px; }
.explore-card .card-go {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bone-400);
  display: flex;
  align-items: center;
  gap: 8px;
}
.explore-card .card-go .arr { transition: transform .18s ease; color: var(--coyote-500); }
.explore-card:hover .card-go { color: var(--bone-100); }
.explore-card:hover .card-go .arr { transform: translateX(5px); }

/* ---------- resource / document downloads ---------- */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.doc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: 8px;
  padding: 22px 24px 20px;
  transition: border-color .18s ease, transform .18s ease;
}
.doc-card:hover { border-color: var(--coyote-500); transform: translateY(-3px); }
.doc-card .doc-tag {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--coyote-500);
}
.doc-card h4 { font-size: 16.5px; line-height: 1.3; max-width: 26ch; }
.doc-card p { color: var(--bone-400); font-size: 13.5px; }
.doc-card .doc-go {
  margin-top: auto; padding-top: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--bone-400);
  display: flex; align-items: center; gap: 8px;
}
.doc-card .doc-go .arr { transition: transform .18s ease; color: var(--coyote-500); }
.doc-card:hover .doc-go { color: var(--bone-100); }
.doc-card:hover .doc-go .arr { transform: translateX(5px); }

.doc-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.doc-links a {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 16px; border: 1px solid var(--ink-700); border-radius: 6px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .03em;
  color: var(--bone-100); text-decoration: none;
  transition: border-color .18s ease, color .18s ease;
}
.doc-links a:hover { border-color: var(--coyote-500); color: var(--signal-500); }
.doc-links a .doc-ic { color: var(--coyote-500); font-size: 11px; letter-spacing: .08em; }

/* ---------- step rail ---------- */
.step-rail { border-left: 1px solid var(--ink-700); display: flex; flex-direction: column; gap: 34px; }
.step-rail li { display: flex; gap: 20px; position: relative; padding-left: 28px; transition: opacity .3s ease; }
.step-rail li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 12px; height: 1px;
  background: var(--coyote-500);
  transition: width .25s ease, background .25s ease;
}
.step-no { color: var(--coyote-500); font-size: 13px; padding-top: 3px; transition: color .25s ease; }
.step-rail strong { font-weight: 500; font-size: 17px; }
.step-rail p { color: var(--bone-400); font-size: 14px; margin-top: 2px; }
.js .step-rail[data-cycle] li.active::before { width: 20px; background: var(--signal-500); }
.js .step-rail[data-cycle] li.active .step-no { color: var(--signal-500); }
.step-rail li:hover::before { width: 20px; }

/* ---------- capabilities: module viewer ---------- */
.viewer {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 48px;
  margin-top: 56px;
  align-items: start;
}
.viewer-tabs { display: flex; flex-direction: column; border-left: 1px solid var(--ink-700); }
.viewer-tab {
  display: flex;
  align-items: baseline;
  gap: 16px;
  text-align: left;
  background: none;
  border: 0;
  border-left: 2px solid transparent;
  margin-left: -1px;
  padding: 18px 16px 18px 24px;
  color: var(--bone-400);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.viewer-tab .mono { font-size: 13px; color: var(--coyote-500); }
.viewer-tab:hover { color: var(--bone-100); }
.viewer-tab[aria-selected="true"] {
  color: var(--bone-100);
  border-left-color: var(--signal-500);
  background: linear-gradient(90deg, rgba(38, 43, 52, .5), transparent 70%);
}
.viewer-desc { color: var(--bone-400); font-size: 15px; margin-top: 18px; max-width: 60ch; min-height: 3.2em; }

.viewer-stage .frame-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  background-image:
    linear-gradient(rgba(155, 160, 168, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 160, 168, .05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.viewer-stage img {
  width: min(340px, 80%);
  view-transition-name: viewer-shot;
  outline: 1px solid var(--hairline-soft);
  outline-offset: 6px;
}
.viewer-stage .corner {
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--coyote-500);
  opacity: .7;
}
.viewer-stage .corner.tl { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.viewer-stage .corner.tr { top: 10px; right: 10px; border-width: 1px 1px 0 0; }
.viewer-stage .corner.bl { bottom: 10px; left: 10px; border-width: 0 0 1px 1px; }
.viewer-stage .corner.br { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }

/* no-JS fallback: static module list */
.viewer-fallback { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.js .viewer-fallback { display: none; }
.no-js-hide { display: none; }
.js .no-js-hide { display: grid; }
.module-card { display: flex; gap: 24px; align-items: flex-start; }
.module-fig { flex: 0 0 min(340px, 46%); }
.module-copy h3 { margin-bottom: 10px; font-size: 22px; }
.module-copy p { color: var(--bone-400); font-size: 15px; }

/* ---------- data sheet ---------- */
.data-sheet {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 64px;
}
.ds-row {
  border-top: 1px solid var(--hairline-soft);
  padding: 16px 12px;
  position: relative;
  transition: background .18s ease;
}
.ds-row::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 0; height: 1px;
  background: var(--signal-500);
  transition: width .2s ease;
}
.ds-row:hover { background: var(--ink-800); }
.ds-row:hover::before { width: 8px; }
.ds-row dt { font-weight: 500; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.unit { font-size: 13px; color: var(--bone-400); white-space: nowrap; transition: color .18s ease; }
.ds-row:hover .unit { color: var(--signal-500); }
.ds-row dd { color: var(--bone-400); font-size: 14px; margin-top: 4px; }

.callout-card {
  margin-top: 56px;
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: 8px;
  padding: 36px 40px;
}
.callout-card h3 { margin-bottom: 10px; }
.callout-card p { color: var(--bone-400); max-width: 60ch; }

/* ---------- applications ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 56px; }
.apps-grid article {
  border-top: 1px solid var(--hairline-soft);
  padding-top: 24px;
  transition: border-color .2s ease;
}
.apps-grid article:hover { border-top-color: var(--coyote-500); }
.app-tag { font-size: 12px; letter-spacing: .14em; color: var(--coyote-500); margin-bottom: 14px; }
.apps-grid h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 12px; }
.apps-grid article > p:last-child { color: var(--bone-400); font-size: 15px; }

/* ---------- validation ---------- */
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.stat-tile {
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: 8px;
  padding: 26px 28px;
}
.stat-num {
  display: block;
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 500;
  color: var(--signal-500);
  line-height: 1.1;
}
.stat-tile span:last-child { color: var(--bone-400); font-size: 14px; }

.spec-block {
  border: 1px solid var(--ink-700);
  border-radius: 8px;
  background: var(--ink-800);
  padding: 12px 28px;
  font-size: 14px;
}
.spec-block > div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 14px 0; }
.spec-block > div + div { border-top: 1px solid var(--hairline-soft); }
.spec-block dt { color: var(--bone-400); letter-spacing: .08em; font-size: 12px; padding-top: 2px; }
.spec-block dd { color: var(--bone-100); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: 110px 0 140px; }
.cta-band .cta-row { margin-top: 40px; }

/* ---------- pager (prev / next page) ---------- */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 40px 0;
  border-top: 1px solid var(--hairline-soft);
  margin-top: 40px;
}
.pager-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--bone-400);
  transition: color .15s ease;
}
.pager-link:hover { color: var(--bone-100); }
.pager-link .mono { font-size: 12px; letter-spacing: .1em; color: var(--coyote-500); }
.pager-link strong { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.pager-link.next { text-align: right; margin-left: auto; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); padding: 48px 0 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; align-items: start; }
.footer-co .nav-brand { margin-bottom: 18px; }
.footer-lines { font-size: 13px; line-height: 2; }
.footer-lines a { color: var(--bone-400); }
.footer-lines a:hover { color: var(--bone-100); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--bone-400); font-size: 15px; }
.footer-links a:hover { color: var(--bone-100); }
.footer-legal { color: var(--bone-400); font-size: 12px; line-height: 1.8; text-align: right; }

/* ---------- modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(10, 12, 15, .8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal-box {
  position: relative;
  width: min(960px, 100%);
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: 8px;
  padding: 16px;
}
.modal-box video { width: 100%; height: auto; border-radius: 4px; display: block; }
.modal-fallback { padding: 32px 8px 16px; color: var(--bone-400); }
.modal-close {
  position: absolute;
  top: -14px; right: -14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--ink-700);
  background: var(--ink-900);
  color: var(--bone-100);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { border-color: var(--coyote-500); }

/* ---------- scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .45s ease-out, transform .45s ease-out; }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ==========================================================
   Responsive — 1200 / 900 / 600
   ========================================================== */
@media (max-width: 1200px) {
  .hero, .page-hero { padding-top: 140px; }
}

@media (max-width: 900px) {
  /* the horizontal nav row stops fitting below ~900px — switch to the burger sheet here */
  .js .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px; height: 44px;
    padding: 10px;
    background: none;
    border: 1px solid var(--ink-700);
    border-radius: 8px;
    cursor: pointer;
  }
  .js .nav-burger span { height: 2px; background: var(--bone-100); border-radius: 1px; transition: transform .15s ease; }
  .js .nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .js .nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .js .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(20, 23, 28, .98);
    border-bottom: 1px solid var(--hairline);
    padding: 12px 24px 20px;
  }
  .js .nav-links.open { display: flex; }
  .js .nav-links > a:not(.btn) { padding: 12px 4px; font-size: 16px; }
  .js .nav-links > a:not(.btn)::after { display: none; }
  .js .nav-links > a[aria-current="page"] { color: var(--signal-500); }
  .js .nav-links .btn { margin-top: 10px; }

  html:not(.js) .nav-links { flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
  html:not(.js) .nav-inner { height: auto; padding: 12px 0; flex-wrap: wrap; }

  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 48px; }
  .viewer { grid-template-columns: 1fr; gap: 32px; }
  .viewer-fallback { grid-template-columns: 1fr; gap: 40px; }
  .data-sheet { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: 1fr; gap: 36px; }
  .explore-grid { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
  .stat-tiles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-legal { grid-column: 1 / -1; text-align: left; }
  .anno-extra { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }
  .section { padding: 36px 0; }
  .section-rule { padding-top: 36px; }
  .hero, .page-hero { padding: 120px 0 8px; }
  .page-hero { padding-bottom: 40px; }
  .trust-bar { margin-top: 48px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .trust-bar li + li::before { display: none; }
  .module-card { flex-direction: column; }
  .module-fig { flex-basis: auto; width: 100%; max-width: 340px; }
  .cta-band { padding: 72px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .pager-link strong { font-size: 16px; }
}
