:root {
  --bg: #030303;
  --panel: #090909;
  --panel-glass: rgba(255, 255, 255, .024);
  --fx-strength: 1; /* looks like --panel over --bg, but lets the cursor effect show through */
  --surface: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f2f2f2;
  --muted: #8c8c8c;
  --accent: #ffffff;
  --accent-2: #7a7a7a;
  --ink-rgb: 255, 255, 255;   /* overlays drawn in the text color */
  --shade-rgb: 6, 6, 6;       /* fades drawn in the background color */
  --nav-bg: rgba(9, 9, 9, .72);
  --hud-bg: rgba(14, 14, 14, .55);
  --h1-grad: linear-gradient(100deg, #fff 40%, #c4c4c4 75%, #8a8a8a);
  --lede: #bdbdbd;
  --clip-bg: #0a0a0a;
  --logo-filter: none;
  --hand-a: #e2e2e2; --hand-b: #8d8d8d; /* 3D hands in See the data */
  --inset-bg: rgba(6, 6, 6, .72);
  --series-1: #ffffff; --series-2: #9a9a9a; --series-3: #5c5c5c;
  /* read by hero.js: hand dots stay mid-tone so the keypoint skeleton reads on top */
  --pt-near: #b4b4b4; --pt-far: #6a6a6a; --obj-near: #c2c2c2; --obj-far: #8a8a8a; --floor: #8c8c8c; --skel: #ffffff;
  --gap: 12px;
  --radius: 16px;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

/* Day mode: chosen with the nav toggle, or by the system when no choice is saved */
:root[data-theme="light"] {
  --bg: #e6e6e3;
  --panel: #f4f4f2;
  --panel-glass: rgba(255, 255, 255, .56);
  --fx-strength: 1.8; /* the lighter panel veil hides more of the cursor effect */
  --surface: rgba(0, 0, 0, 0.025);
  --border: rgba(0, 0, 0, 0.1);
  --text: #111111;
  --muted: #6b6b6b;
  --accent: #111111;
  --accent-2: #8a8a8a;
  --ink-rgb: 0, 0, 0;
  --shade-rgb: 244, 244, 242;
  --nav-bg: rgba(250, 250, 248, .75);
  --hud-bg: rgba(255, 255, 255, .6);
  --h1-grad: linear-gradient(100deg, #111 40%, #3a3a3a 75%, #7a7a7a);
  --lede: #444444;
  --clip-bg: #ebebe8;
  --logo-filter: invert(1);
  --hand-a: #4a4a4a; --hand-b: #a3a3a0;
  --inset-bg: rgba(244, 244, 242, .82);
  --series-1: #111111; --series-2: #777777; --series-3: #b0b0b0;
  --pt-near: #bcbcbc; --pt-far: #d6d6d4; --obj-near: #9d9d9a; --obj-far: #b4b4b1; --floor: #d6d6d3; --skel: #111111;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #e6e6e3;
    --panel: #f4f4f2;
    --panel-glass: rgba(255, 255, 255, .56);
  --fx-strength: 1.8; /* the lighter panel veil hides more of the cursor effect */
    --surface: rgba(0, 0, 0, 0.025);
    --border: rgba(0, 0, 0, 0.1);
    --text: #111111;
    --muted: #6b6b6b;
    --accent: #111111;
    --accent-2: #8a8a8a;
    --ink-rgb: 0, 0, 0;
    --shade-rgb: 244, 244, 242;
    --nav-bg: rgba(250, 250, 248, .75);
    --hud-bg: rgba(255, 255, 255, .6);
    --h1-grad: linear-gradient(100deg, #111 40%, #3a3a3a 75%, #7a7a7a);
    --lede: #444444;
    --clip-bg: #ebebe8;
    --logo-filter: invert(1);
    --hand-a: #4a4a4a; --hand-b: #a3a3a0;
    --inset-bg: rgba(244, 244, 242, .82);
    --series-1: #111111; --series-2: #777777; --series-3: #b0b0b0;
    --pt-near: #bcbcbc; --pt-far: #d6d6d4; --obj-near: #9d9d9a; --obj-far: #b4b4b1; --floor: #d6d6d3; --skel: #111111;
}
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body {
  background: var(--bg);
  transition: background-color .3s, color .3s;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding: var(--gap);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 48px); }
.mono { font-family: var(--mono); }

/* NAV: a floating console bar — logo + three anchors, no button */
.nav {
  position: fixed; top: var(--gap); left: var(--gap); right: var(--gap); z-index: 50;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--nav-bg); backdrop-filter: blur(14px);
}
.nav .container { width: calc(100% - 40px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand-logo { height: 22px; width: auto; filter: var(--logo-filter); }
.nav-links { display: flex; gap: 32px; font-size: 15px; color: var(--muted); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 24px; }

/* Day / night switch */
.theme-toggle {
  position: relative; width: 52px; height: 28px; flex: none;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text); cursor: pointer;
}
.theme-toggle .knob {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--text); color: var(--panel);
  display: grid; place-items: center;
  transition: transform .3s;
}
.theme-toggle svg { width: 12px; height: 12px; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .knob { transform: translateX(24px); }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
.theme-toggle:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* THE one button style */
.btn {
  display: inline-flex; align-items: center;
  padding: 16px 30px; border-radius: 999px;
  background: var(--text); color: var(--bg);
  font-weight: 600; font-size: 16px;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 40px -10px var(--accent); }

.text-link {
  color: var(--accent);
  border-bottom: 1px solid rgba(var(--ink-rgb), .35);
  padding-bottom: 2px;
  transition: border-color .2s;
}
.text-link:hover { border-color: var(--accent); }
.text-link::after { content: " →"; }

/* Each section is a framed console panel that fills one screen on desktop */
main { display: grid; gap: var(--gap); position: relative; z-index: 1; }
.screen {
  min-height: calc(100vh - 2 * var(--gap)); min-height: calc(100svh - 2 * var(--gap));
  display: flex; align-items: center;
  padding: 120px 0 96px;
  position: relative;
  background: var(--panel-glass);
  border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden;
}
.screen-alt { background: var(--panel-glass); }
/* Window title bar: section name on the left, a hairline under it */
.screen[data-panel]::before {
  content: "▪  " attr(data-panel);
  position: absolute; top: 0; left: 0; right: 0; height: 44px;
  display: flex; align-items: center; padding: 0 22px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); background: rgba(var(--ink-rgb), .015);
}
/* Corner ticks for an instrument-panel feel */
.screen::after {
  content: ""; position: absolute; inset: 10px; pointer-events: none; border-radius: 10px;
  background:
    linear-gradient(var(--muted), var(--muted)) left bottom / 10px 1px,
    linear-gradient(var(--muted), var(--muted)) left bottom / 1px 10px,
    linear-gradient(var(--muted), var(--muted)) right bottom / 10px 1px,
    linear-gradient(var(--muted), var(--muted)) right bottom / 1px 10px;
  background-repeat: no-repeat; opacity: .5;
}

/* Section titles stay modest: the headline is the only large type */
h2 {
  font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2;
  letter-spacing: -0.02em; font-weight: 600;
  margin-bottom: 40px;
}
h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 12px; line-height: 1.3; }

/* HERO */
.hero { align-items: flex-end; padding-bottom: 14vh; overflow: hidden; isolation: isolate; }
#lab, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; display: block; }
.hero-video { display: none; object-fit: cover; filter: saturate(.55) brightness(.6); opacity: 0; transition: opacity 1s; }
.hero-video.ready { opacity: 1; }
.hero.no-webgl .hero-video { display: block; }
.hero.no-webgl #lab, .hero.no-webgl .hud { display: none; }

/* Hero HUD around the point cloud */
.hud {
  position: absolute; z-index: 2;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  background: var(--hud-bg); border: 1px solid var(--border);
  border-radius: 10px; backdrop-filter: blur(8px);
}
.hud-caption { top: 96px; right: 24px; padding: 12px 16px; min-width: 250px; }
.hud-caption .label { color: var(--text); font-size: 13px; min-height: 1.4em; }
.hud-caption .label::after { content: "▍"; color: var(--accent); animation: blink 1s steps(1) infinite; margin-left: 2px; }
.hud-caption .frame { font-size: 11px; margin-top: 4px; letter-spacing: .06em; }
@keyframes blink { 50% { opacity: 0; } }
.hud-chart { right: 24px; bottom: 14vh; width: 260px; padding: 10px 12px 8px; }
.hud-chart canvas { width: 100%; height: 80px; display: block; }
.legend { display: flex; gap: 12px; font-size: 10px; margin-top: 6px; letter-spacing: .04em; }
.legend i { display: inline-block; width: 8px; height: 2px; vertical-align: middle; margin-right: 5px; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(var(--shade-rgb), .9) 0%, rgba(var(--shade-rgb), .5) 35%, rgba(var(--shade-rgb), 0) 60%),
    linear-gradient(to top, rgba(var(--shade-rgb), .55) 0%, rgba(var(--shade-rgb), 0) 25%);
}
.hero.no-webgl .hero-shade {
  background:
    linear-gradient(to top, rgba(var(--shade-rgb), .95) 0%, rgba(var(--shade-rgb), .55) 40%, rgba(var(--shade-rgb), .1) 75%),
    radial-gradient(50% 50% at 80% 30%, rgba(var(--ink-rgb), .05), transparent 70%);
}
h1 {
  font-size: clamp(44px, 7vw, 104px);
  line-height: 1.0; letter-spacing: -0.04em; font-weight: 600;
  max-width: 13ch;
  /* room for descenders (the g in "intelligence"): the gradient text fill is clipped to this box */
  padding-bottom: 0.14em;
  margin-bottom: calc(28px - 0.14em);
  background: var(--h1-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { max-width: 600px; font-size: clamp(17px, 1.5vw, 20px); color: var(--lede); margin-bottom: 40px; }

/* WHAT WE DELIVER: five equal cards */
.cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.card {
  position: relative; padding: 22px 24px 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .3s, transform .3s;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.card h3 { padding-right: 26px; min-height: 2.6em; }
.card:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .5;
}
.card:hover, .card.open { border-color: rgba(var(--ink-rgb), .3); transform: translateY(-4px); }
.card p { color: var(--muted); font-size: 15px; }
/* Line-art strip under the title, drawn in a faint tint of the text color */
.card-art {
  display: block; width: calc(100% + 48px); height: 124px;
  margin: 6px -24px 22px; padding: 12px 8px;
  color: rgba(var(--ink-rgb), .32);
  background: rgba(var(--ink-rgb), .015);
  border-block: 1px solid var(--border);
  transition: color .3s;
}
.card:hover .card-art { color: rgba(var(--ink-rgb), .62); }

/* Keyword list: slides over the drawing and tagline on hover (mouse), focus (keyboard) or tap (touch) */
.card-body { position: relative; flex: 1; min-height: 330px; }
.card-keys {
  position: absolute; inset: 6px -24px -26px; overflow: auto;
  list-style: none; padding: 10px 22px 16px;
  background: var(--panel); border-top: 1px solid var(--border);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.card-keys li {
  font-size: 13.5px; line-height: 1.38; color: var(--text);
  padding: 6px 0 6px 14px; position: relative;
  border-bottom: 1px dashed var(--border);
}
.card-keys li:last-child { border-bottom: 0; }
.card-keys li::before {
  content: ""; position: absolute; left: 0; top: 12.5px; width: 5px; height: 5px;
  background: var(--muted);
}
@media (hover: hover) { .card:hover .card-keys { opacity: 1; transform: none; pointer-events: auto; } }
.card:focus-visible .card-keys, .card.open .card-keys { opacity: 1; transform: none; pointer-events: auto; }
/* "+" in the corner hints that there is more; it turns into "×" while the list shows */
.card-toggle {
  position: absolute; top: 26px; right: 20px; width: 14px; height: 14px; color: var(--muted);
  transition: transform .25s, color .25s;
}
.card-toggle::before, .card-toggle::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor;
}
.card-toggle::after { transform: rotate(90deg); }
@media (hover: hover) { .card:hover .card-toggle { transform: rotate(45deg); color: var(--text); } }
.card:focus-visible .card-toggle, .card.open .card-toggle { transform: rotate(45deg); color: var(--text); }

.delivery { margin-top: 32px; color: var(--text); font-size: 16px; max-width: 860px; }
.footnote { margin-top: 12px; color: var(--muted); font-size: 15px; }

/* SAMPLE */
.intro { max-width: 640px; color: var(--muted); margin: -16px 0 40px; }
/* One large stage; tabs switch between the three samples */
.stage { display: grid; gap: 14px; }
.stage-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.stage-tabs { gap: 8px; }
.stage-tabs [role="tab"] {
  font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  padding: 11px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(var(--ink-rgb), .28); background: var(--surface); color: var(--text);
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.stage-tabs [role="tab"]:hover { border-color: rgba(var(--ink-rgb), .7); transform: translateY(-1px); }
/* the selected sample is filled, so the row reads as a set of choices */
.stage-tabs [role="tab"][aria-selected="true"] { color: var(--bg); border-color: var(--text); background: var(--text); transform: none; }
.stage-tabs [role="tab"]:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.pair { margin: 0; display: grid; gap: 12px; }
.pair[hidden] { display: none; }
.pair-bar {
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.pair-title { color: var(--text); }
.pair-action { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity .3s; }
.pair-action::before { content: "▪ "; }
.pair-action:empty::before { content: ""; }
/* Play / pause for each sample: two bars, or a triangle when paused */
.pair-toggle {
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; position: relative; flex: none;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.pair-toggle::before, .pair-toggle::after {
  content: ""; position: absolute; top: 10px; width: 3px; height: 9px; background: currentColor;
}
.pair-toggle::before { left: 10px; }
.pair-toggle::after { left: 15px; }
.pair.paused .pair-toggle::after { display: none; }
.pair.paused .pair-toggle::before {
  left: 12px; top: 9px; width: 0; height: 0; background: none;
  border-left: 8px solid currentColor; border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent;
}
.pair-toggle:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* Comparison stage: raw underneath; keypoints from the first divider; mesh from the second */
.compare {
  position: relative; aspect-ratio: 16 / 9; max-height: 72vh; width: 100%;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); background: var(--clip-bg);
  cursor: ew-resize; touch-action: pan-y; user-select: none;
}
/* The three layers come from one stacked video drawn into this canvas, so they can't drift apart */
.compare .stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.compare .stage-src { position: absolute; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
.compare-handle {
  position: absolute; top: 0; bottom: 0; width: 1px; margin-left: -0.5px;
  background: rgba(255, 255, 255, .4); transition: background .2s;
}
.compare-handle[data-handle="0"] { left: var(--s1); }
.compare-handle[data-handle="1"] { left: var(--s2); }
.compare-handle::after { /* small, quiet grip; firms up when the stage is hovered or a handle is focused */
  content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .55); background: rgba(6, 6, 6, .25);
  transition: border-color .2s, background .2s, transform .2s;
}
.compare:hover .compare-handle, .compare-handle:focus-visible { background: rgba(255, 255, 255, .75); }
.compare:hover .compare-handle::after, .compare-handle:focus-visible::after {
  border-color: rgba(255, 255, 255, .9); background: rgba(6, 6, 6, .45); transform: scale(1.15);
}
.compare-handle:focus-visible { outline: none; }
.compare-label {
  position: absolute; top: 12px; z-index: 2; pointer-events: none; white-space: nowrap;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: #e9e9e9; background: rgba(6, 6, 6, .55); padding: 4px 8px; border-radius: 6px;
  transition: opacity .2s;
}
.compare-label[data-region="0"] { left: 12px; }
.compare-label[data-region="1"] { left: calc(var(--s1) + 12px); }
.compare-label[data-region="2"] { left: calc(var(--s2) + 12px); }
.compare-label.squeezed { opacity: 0; } /* region too narrow to fit its label */

/* Bottom-left corner panel: reconstructed 3D hands, following the video (drawn by hands3d.js) */
.hands-inset {
  position: absolute; left: 12px; bottom: 12px; z-index: 3;
  width: min(22%, 260px); aspect-ratio: 4 / 3;
  border-radius: 10px; overflow: hidden; cursor: grab; touch-action: none;
  border: 1px solid rgba(255, 255, 255, .16); background: var(--inset-bg);
  backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s;
}
.hands-inset.ready { opacity: 1; transform: none; }
.hands-inset:active { cursor: grabbing; }
.hands-inset canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }


.links { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 36px; font-size: 16px; }

/* HOW WE WORK + CONTACT */
.steps {
  font-family: var(--mono); font-size: clamp(14px, 1.4vw, 17px);
  color: var(--text); letter-spacing: .01em;
  padding: 22px 0; border-block: 1px solid var(--border);
  margin-bottom: 32px;
}
.steps .arrow { color: var(--accent); margin: 0 .6em; }
.steps .detail { color: var(--muted); }
.about { color: var(--muted); font-size: 18px; max-width: 680px; }
.closing { margin-top: 72px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.closing-line { font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; letter-spacing: -0.01em; }
.email { color: var(--muted); font-size: 14px; margin-top: -8px; }

/* LEGAL PAGES (terms.html, privacy.html) */
.legal { align-items: flex-start; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; margin-bottom: 10px; }
.legal-updated { color: var(--muted); font-size: 13px; margin-bottom: 40px; }
.legal h2 { font-size: 19px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: 16px; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 10px; margin: 6px 0 12px; }
.legal strong { color: var(--text); font-weight: 500; }
.text-link.plain::after { content: none; }
.footer-links a[aria-current="page"] { color: var(--text); }

/* FOOTER */
.footer { margin-top: var(--gap); border: 1px solid var(--border); border-radius: 14px; background: var(--panel-glass); padding: 22px 0; position: relative; z-index: 1; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--text); }

/* Cursor trace: a fading keypoint line behind the page that follows the mouse (drawn by main.js, mouse only) */
.cursor-fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; } /* behind the panels */

/* REVEAL */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .hud-chart { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  :root { --gap: 8px; }
  .screen { border-radius: 14px; }
  .nav .container { width: calc(100% - 28px); }
  .hud-caption { display: none; }
  .hero .hero-shade { background: linear-gradient(to top, rgba(var(--shade-rgb), .95) 0%, rgba(var(--shade-rgb), .6) 45%, rgba(var(--shade-rgb), 0) 70%); }
  .container, .narrow { width: calc(100% - 32px); }
  .nav-links { gap: 20px; font-size: 14px; }
  .brand-logo { height: 18px; }
  .screen { min-height: 0; padding: 96px 0 72px; }
  .hero { min-height: 100svh; padding-bottom: 72px; }
  .cards { grid-template-columns: 1fr; }
  .compare { aspect-ratio: 4 / 5; max-height: none; }
  .stage-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .stage-tabs [role="tab"] { flex: none; }
  .pair-bar { flex-wrap: wrap; gap: 10px 14px; }
  .pair-action { order: 3; flex-basis: 100%; }
  .compare-label { font-size: 9.5px; padding: 3px 6px; }
  .hands-inset { width: 36%; left: 8px; bottom: 8px; }
  .links { flex-direction: column; gap: 18px; }
  .closing { margin-top: 48px; }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 400px) {
  .nav-links { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
