/* Nordyr Systems: shared styles for both pages (v3 identity). */

@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-var.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* Dark sections */
  --bg: #05070A;
  --fg: #EEF2F5;
  --fg-2: #C3CBD3;          /* body on dark: never below #B8C0C8 */
  --fg-3: #B8C0C8;
  --line: rgba(238, 242, 245, 0.12);
  --line-2: rgba(238, 242, 245, 0.24);
  --panel: #020304;
  --surface: #0B0F14;
  /* Light sections */
  --paper: #EEEDE8;
  --ink: #0B0D10;
  --ink-2: #4A4F55;
  --rule: rgba(11, 13, 16, 0.14);
  /* Accents */
  --amber: #E8C17F;          /* CHANT marks, primary button, one highlight per page */
  --cool: #8FB4C8;           /* data and UI: gauge track, links on dark */
  --red: #C48A8A;
  --green: #6EC6A3;
  --display: "Space Grotesk", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: 120px;
}
@media (max-width: 720px) { :root { --section: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 18px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@media (max-width: 720px) { body { font-size: 17px; } }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.06; }
h3 { line-height: 1.2; letter-spacing: -0.01em; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
.light :focus-visible { outline-color: var(--ink); }

.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--amber); color: var(--ink); padding: 8px 14px; border-radius: 4px; text-decoration: none; font-weight: 500; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; padding: 14px 0; transition: background-color .25s ease, border-color .25s ease; border-bottom: 1px solid transparent; }
/* Sticky nav: transparent over the hero, dark once scrolled (also over light sections). */
.nav.scrolled, .no-js .nav { background: rgba(5, 7, 10, 0.8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
section[id] { scroll-margin-top: 72px; }
.nav .wrap { display: flex; align-items: center; gap: 28px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 600 17px/1 var(--display); letter-spacing: -0.01em; text-decoration: none; color: var(--fg); margin-right: auto; }
.wordmark svg { width: 18px; height: 18px; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--fg-2); font-size: 15px; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); }
.btn .short { display: none; }
@media (max-width: 640px) {
  .nav .wrap { gap: 14px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 14px; }
  .nav .btn { padding: 8px 12px; font-size: 14px; min-height: 40px; }
}
@media (max-width: 400px) {
  .nav .wrap { gap: 12px; }
  .nav-links { gap: 12px; }
  .wordmark { font-size: 15px; gap: 8px; white-space: nowrap; }
  .nav .wordmark svg { display: none; }
  .nav .btn .long { display: none; }
  .nav .btn .short { display: inline; }
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  padding: 11px 20px; border-radius: 4px; font: 500 15px/1.2 var(--sans);
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #f0cd92; }
.btn-ghost { border-color: var(--line-2); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: rgba(238, 242, 245, .5); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link { color: var(--cool); text-decoration: none; border-bottom: 1px solid rgba(143, 180, 200, .45); padding-bottom: 1px; }
.link:hover { border-color: var(--cool); }
.light .link { color: var(--ink); border-color: var(--rule); }

/* ---------- Type ---------- */
.eyebrow { display: flex; gap: 10px; align-items: baseline; font: 500 13px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 24px; }
.eyebrow .n { font-variant-numeric: tabular-nums; }
.eyebrow .n::after { content: ""; display: inline-block; width: 18px; height: 1px; background: currentColor; opacity: .5; margin-left: 10px; vertical-align: middle; }
.light .eyebrow { color: var(--ink-2); }
.h-xl { font-size: clamp(36px, 3.9vw, 54px); max-width: 17ch; }
.h-lg { font-size: clamp(32px, 3.8vw, 52px); max-width: 20ch; }
.lede { font-size: clamp(18px, 1.5vw, 20px); color: var(--fg-2); max-width: 46ch; }
.body { color: var(--fg-2); max-width: 62ch; }
.body + .body { margin-top: 1em; }
.light .body, .light .lede { color: var(--ink-2); }
.hl { color: var(--amber); }
.light .hl { color: var(--ink); background: linear-gradient(transparent 62%, rgba(232, 193, 127, .55) 62%); }

/* ---------- Sections ---------- */
section { position: relative; }
.sec { padding: var(--section) 0; }
.sec.light { background: var(--paper); color: var(--ink); }
.sec.dark + .sec.dark { border-top: 1px solid var(--line); }
.split { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .split { grid-template-columns: 5fr 7fr; } }

.js .reveal { opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Sensor panels: corner brackets, vignette, readout bar ---------- */
.panel { position: relative; aspect-ratio: 16 / 10; width: 100%; background: var(--panel); isolation: isolate; }
.panel canvas, .panel > img, .panel noscript img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.no-js .panel canvas { display: none; }
.panel::after { /* inner vignette: edges about 25% darker */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 46%, rgba(0,0,0,0) 55%, rgba(0,0,0,.25) 100%);
}
.panel::before, .frame::before { /* 12px L-shaped corner brackets, 1px, 40% white */
  --c: rgba(255, 255, 255, .4);
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) top left / 12px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1px 12px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 12px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1px 12px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 12px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 1px 12px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 12px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1px 12px no-repeat;
}
.readout {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 30px;
  display: flex; align-items: center; gap: 12px; padding: 0 10px 0 14px;
  font: 400 11px/1 var(--mono); letter-spacing: .06em; color: var(--fg-3);
  background: linear-gradient(rgba(2,3,4,.55), rgba(2,3,4,.88)); border-top: 1px solid rgba(255,255,255,.08);
}
.readout .ro-status { color: var(--fg); white-space: nowrap; }
.readout .ro-status[data-tone="bad"] { color: var(--red); }
.readout .ro-status[data-tone="amber"] { color: var(--amber); }
.readout .ro-status[data-tone="green"] { color: var(--green); }
.readout .ro-extra { color: var(--amber); opacity: 0; max-width: 0; overflow: hidden; transition: opacity .25s ease, max-width .25s ease; white-space: nowrap; }
.readout .ro-extra.on { opacity: 1; max-width: 20ch; } /* collapses when hidden so it never pushes the bar wider */
.readout .ro-rate { margin-left: auto; color: var(--fg); white-space: nowrap; font-variant-numeric: tabular-nums; }
.readout .ro-rate:not(:empty) + .ro-sim::before { content: "· "; }
.readout .ro-rate:empty + .ro-sim { margin-left: auto; }
.readout .ro-sim { color: var(--fg-3); white-space: nowrap; }
.replay {
  display: inline-grid; place-items: center; width: 24px; height: 24px; margin-left: 2px; padding: 0;
  background: none; border: 1px solid transparent; border-radius: 3px; color: var(--fg-3); cursor: pointer;
}
.replay:hover { color: var(--fg); border-color: var(--line-2); }
.replay svg { width: 13px; height: 13px; }
.no-js .replay { display: none; }
@media (max-width: 420px) { .readout { gap: 8px; padding-left: 10px; font-size: 10px; } }

figure { margin: 0; }
figcaption, .caption { margin-top: 14px; font-size: 15px; color: var(--fg-2); max-width: 62ch; }

/* ---------- 01 Hero ---------- */
.hero-head { display: grid; gap: 20px 56px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 1000px) { .hero-head { grid-template-columns: 7fr 5fr; } }
.hero .lede { color: var(--fg-2); }
.hero .btn-row { margin-top: 22px; }
.compare { margin-top: 40px; }
/* Panels a little narrower than the content width so the whole comparison fits one 1440x900 screen. */
@media (min-width: 720px) { .compare { max-width: 1080px; margin-left: auto; margin-right: auto; } }
.compare-grid { display: grid; gap: 12px 16px; grid-template-columns: 1fr; grid-template-areas: "l" "rate" "r"; }
@media (min-width: 720px) { .compare-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "rate rate" "l r"; } }
.compare-grid .cl { grid-area: l; } .compare-grid .cr { grid-area: r; } .compare-grid .rate { grid-area: rate; }
.rate { display: flex; align-items: baseline; justify-content: center; gap: 12px; padding: 2px 0; }
.rate .num { font: 500 38px/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--fg); }
.rate .lab { font: 500 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.pair-label { font: 500 15px/1 var(--sans); color: var(--fg-2); margin: 0 0 10px; }
.pair-label.chant { color: var(--amber); }

.gauge { position: relative; margin-top: 34px; height: 30px; }
.gauge .bar { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: rgba(143, 180, 200, .22); border-radius: 2px; }
.gauge .fill { position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--cool); border-radius: 2px; transform-origin: left center; transform: scaleX(1); }
.gauge .tick { position: absolute; left: 25%; top: -10px; height: 24px; border-left: 1px solid var(--fg); }
.gauge .tick::after { content: ""; position: absolute; left: -6px; top: 6px; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--amber); opacity: 0; }
.gauge .tick.pulse::after { animation: pulse .9s ease-out 1; }
@keyframes pulse { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.4); } }
@media (prefers-reduced-motion: reduce) { .gauge .tick.pulse::after { animation: none; } }
.gauge .lbl { position: absolute; top: 14px; font: 400 13px/1 var(--sans); color: var(--fg-3); white-space: nowrap; }
.gauge .l0 { left: 0; } .gauge .l20 { right: 0; }
.gauge .l3 { left: 25%; top: -28px; transform: translateX(-6px); color: var(--fg); }

.status-strip { display: flex; flex-wrap: wrap; gap: 10px 0; list-style: none; margin: 28px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--fg-2); }
.status-strip li { display: flex; align-items: center; gap: 9px; padding: 0 20px; border-left: 1px solid var(--line-2); }
.status-strip li:first-child { padding-left: 0; border-left: 0; }
.status-strip .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.status-strip .done { background: var(--amber); }
.status-strip .next { border: 1px solid var(--fg-2); }
@media (max-width: 560px) { .status-strip { flex-direction: column; gap: 10px; } .status-strip li { padding: 0; border-left: 0; } .status-strip li:last-child { padding-left: 17px; } }

/* ---------- 02 Problem (light) ---------- */
.chain { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; }
.chain li { position: relative; padding: 24px 0 24px 56px; border-top: 1px solid var(--rule); }
.chain li:last-child { border-bottom: 1px solid var(--rule); }
.chain .num { position: absolute; left: 0; top: 27px; font: 500 14px/1 var(--display); color: var(--ink-2); }
.chain p { font: 400 clamp(19px, 1.8vw, 23px)/1.35 var(--display); letter-spacing: -0.01em; max-width: 30ch; color: var(--ink); }
@media (min-width: 960px) {
  .chain { grid-template-columns: repeat(2, 1fr); }
  .chain li, .chain li:last-child { padding: 32px 32px 0 0; border: 0; border-top: 1px solid var(--ink); }
  .chain .num { position: static; display: block; margin-bottom: 16px; }
  .chain li:not(:last-child)::after { content: ""; position: absolute; top: -4px; right: 24px; width: 7px; height: 7px; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); transform: rotate(45deg); }
}
.conclusion { margin-top: 48px; font: 500 clamp(24px, 2.6vw, 34px)/1.2 var(--display); letter-spacing: -0.015em; max-width: 28ch; }
.bridge { margin-top: 16px; font-size: 19px; color: var(--ink-2); max-width: 52ch; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 40px 0 0; list-style: none; padding: 0; }
@media (min-width: 720px) { .cards.c2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .cards.c3 { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--line); background: var(--surface); padding: 26px; border-radius: 4px; }
.card .num { font: 500 14px/1 var(--display); color: var(--fg-3); display: block; margin-bottom: 18px; }
.card h3 { font-size: 22px; }
.card p { color: var(--fg-2); margin-top: 10px; }
.cards.compact .card { padding: 20px 22px; }
.cards.compact .card h3 { font-size: 19px; }
.light .card { background: #F7F6F2; border-color: var(--rule); }
.light .card h3 { color: var(--ink); }
.light .card p { color: var(--ink-2); }
.light .card .benefit { color: var(--ink); font-weight: 500; }
.light .card .scenario { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 16px; }
.card .diagram-icon { width: 64px; height: 40px; margin-bottom: 26px; color: var(--ink); }

/* ---------- 05 Teaser ---------- */
.teaser { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; text-decoration: none; color: inherit; background: var(--surface); transition: border-color .15s; }
.teaser:hover { border-color: var(--line-2); }
@media (min-width: 860px) { .teaser { grid-template-columns: 5fr 6fr; } }
.teaser .panel { aspect-ratio: 16 / 10; }
.teaser .txt { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.teaser .txt p { color: var(--fg-2); max-width: 44ch; }
.teaser .go { color: var(--cool); font-weight: 500; }

/* ---------- 06 CTA ---------- */
.cta { position: relative; overflow: hidden; padding: calc(var(--section) + 24px) 0 var(--section); }
.cta-sky { position: absolute; inset: 0; }
.cta-sky canvas, .cta-sky img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-sky::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,7,10,.94) 0%, rgba(5,7,10,.84) 45%, rgba(5,7,10,.55) 75%, rgba(5,7,10,.4) 100%);
}
@media (max-width: 860px) { .cta-sky::after { background: linear-gradient(0deg, rgba(5,7,10,.96) 0%, rgba(5,7,10,.9) 60%, rgba(5,7,10,.55) 100%); } }
.cta .wrap { position: relative; z-index: 1; }
.cta-grid { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .cta-grid { grid-template-columns: 6fr 5fr; gap: 72px; } }
.cta .body { margin-top: 20px; color: var(--fg-2); }
.cta .btn-row { margin-top: 32px; }

.form { background: rgba(11, 15, 20, .86); border: 1px solid var(--line-2); border-radius: 6px; padding: clamp(20px, 3vw, 32px); backdrop-filter: blur(4px); }
.form h3 { font-size: 22px; }
.form .sub { color: var(--fg-2); margin-top: 6px; font-size: 16px; }
.form .fields { display: grid; gap: 14px; margin-top: 20px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form .fields { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.form label { display: block; font-size: 14px; color: var(--fg-2); margin-bottom: 6px; }
.form label .opt { color: var(--fg-3); font-size: 13px; }
.form input, .form textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--fg); background: #05070A;
  border: 1px solid rgba(238, 242, 245, .28); border-radius: 4px; padding: 11px 12px;
}
.form textarea { min-height: 88px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: transparent; }
.form .actions { display: flex; align-items: center; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.form .btn-send { background: var(--fg); color: var(--ink); }
.form .btn-send:hover { background: #fff; }
.form .msg { font-size: 15px; color: var(--fg-2); }
.form .msg.ok { color: var(--green); }
.form .msg.err { color: var(--red); }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form.sent .fields, .form.sent .actions .btn-send { display: none; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 15px; color: var(--fg-2); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 36px; align-items: center; }
.footer .wordmark { margin-right: auto; }
.footer a { color: var(--fg-2); text-decoration: none; }
.footer a:hover { color: var(--fg); }
.footer .note { flex-basis: 100%; color: var(--fg-3); font-size: 14px; }

/* ======================================================
   Technical page
   ====================================================== */
.page-head { padding: 148px 0 var(--section); }
.badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font: 500 14px/1 var(--sans); color: var(--fg); border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 14px; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.toc { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 4px 32px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.toc a { display: flex; gap: 12px; text-decoration: none; color: var(--fg-2); font-size: 15px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.toc a:hover { color: var(--fg); }
.toc .n { color: var(--fg-3); font-variant-numeric: tabular-nums; }
.tech .h-lg { max-width: 22ch; }

.facts { list-style: none; margin: 36px 0 0; padding: 0; }
.facts li { padding: 20px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.facts h3 { font-size: 19px; }
.facts p { color: var(--fg-2); }

.stepper { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.stepper button {
  flex: 1 1 140px; display: flex; gap: 10px; align-items: baseline; text-align: left; min-height: 46px;
  font: 500 14px/1.3 var(--sans); color: var(--fg-2); background: var(--surface);
  border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; cursor: pointer;
}
.stepper button .n { color: var(--fg-3); font-variant-numeric: tabular-nums; }
.stepper button[aria-selected="true"] { color: var(--fg); border-color: var(--cool); box-shadow: inset 0 -2px 0 var(--cool); }
.step-cap { margin-top: 16px; min-height: 3.1em; color: var(--fg); max-width: 64ch; }
.step-note { margin-top: 4px; font-size: 14px; color: var(--fg-3); }
.panel-tools { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; margin-top: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--fg-2); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 10px; border: 1.5px solid; display: inline-block; }
.legend .g i { color: var(--green); } .legend .r i { color: var(--red); } .legend .a i { color: var(--amber); }
.btn-small { min-height: 38px; padding: 7px 14px; font-size: 14px; }

/* Results table (light section): reads like a document. Mono allowed here. */
.table-wrap { overflow-x: auto; margin-top: 36px; border-top: 2px solid var(--ink); }
table { border-collapse: collapse; width: 100%; min-width: 680px; font-size: 16px; }
th, td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font: 500 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
td { color: var(--ink-2); }
td:first-child { color: var(--ink); font-weight: 500; }
td.num { font-family: var(--mono); font-size: 14px; color: var(--ink); white-space: nowrap; }
.pill { display: inline-block; font: 400 12px/1 var(--mono); letter-spacing: .04em; padding: 5px 8px; border-radius: 3px; border: 1px solid var(--ink); color: var(--ink); white-space: nowrap; }
.pill.tbc { border-style: dashed; color: var(--ink-2); border-color: var(--ink-2); }
.table-note { margin-top: 16px; font-size: 15px; color: var(--ink-2); max-width: 70ch; }

.planned, .status-tag { display: inline-block; margin-left: 12px; vertical-align: middle; font: 500 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--cool); border: 1px dashed var(--cool); padding: 6px 9px; border-radius: 3px; }

.tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-top: 36px; }
.tabs button { font: 500 15px/1.2 var(--sans); color: var(--fg-2); background: none; border: 0; border-bottom: 2px solid transparent; padding: 14px 16px; min-height: 46px; cursor: pointer; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--cool); }
.evidence { display: grid; gap: 32px; grid-template-columns: 1fr; margin-top: 28px; align-items: start; }
@media (min-width: 960px) { .evidence { grid-template-columns: minmax(0, 512px) 1fr; } }
.frame { position: relative; background: #000; padding: 0 0 30px; }
.ev-stack { position: relative; aspect-ratio: 512 / 620; }
.ev-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .2s ease; }
.ev-stack img.on { opacity: 1; }
.no-js .ev-stack { aspect-ratio: auto; }
.no-js .ev-stack img { position: static; opacity: 1; margin-bottom: 12px; }
@media (prefers-reduced-motion: reduce) { .ev-stack img { transition: none; } }

.status-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 40px; }
@media (min-width: 960px) { .status-grid { grid-template-columns: repeat(3, 1fr); } }
.status-grid .card ul { margin: 14px 0 0; padding-left: 18px; color: var(--fg-2); }
.status-grid .card li + li { margin-top: 8px; }
.status-grid .tag { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 16px; }

/* Without JS: hide controls that need it (fallback stills and full lists are shown instead). */
.no-js .stepper, .no-js [data-step-caption], .no-js [data-pause], .no-js .tabs, .no-js [data-ev-caption] { display: none; }

/* Hero solution line (v3.1) */
.solution { margin: 18px auto 0; max-width: 1080px; font: 500 clamp(18px, 1.6vw, 21px)/1.4 var(--display); letter-spacing: -0.01em; color: var(--fg); }
.solution, .compare figcaption { text-wrap: pretty; }
@media (min-width: 720px) { .hero .status-strip { max-width: 1080px; margin-left: auto; margin-right: auto; } }

/* Section 03: Today vs CHANT */
.today { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.today .col { padding: 28px 0; }
.today .col + .col { border-top: 1px solid var(--line); }
.today .lab { font: 500 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 14px; }
.today p:not(.lab) { color: var(--fg-3); font-size: 18px; max-width: 52ch; }
.today .chant .lab { color: var(--amber); }
.today .chant p:not(.lab) { color: var(--fg); font: 500 clamp(20px, 2vw, 26px)/1.35 var(--display); letter-spacing: -0.01em; max-width: 30ch; }
@media (min-width: 860px) {
  .today { grid-template-columns: 1fr 1fr; }
  .today .col { padding: 32px 40px 32px 0; }
  .today .col + .col { border-top: 0; border-left: 1px solid var(--line); padding-left: 40px; }
}

/* "In development" tag on a card (same style as .planned) */
.card .status-tag { margin: 12px 0 0; vertical-align: baseline; }
@media (max-width: 560px) { h2 .planned { display: table; margin: 14px 0 0; } }

/* ---------- v3.3: full-screen hero ---------- */
.hero-full { position: relative; min-height: max(600px, 100svh); display: flex; align-items: center; overflow: hidden; }
.hero-sky { position: absolute; inset: 0; }
.hero-sky canvas, .hero-sky img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-sky::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(5,7,10,.94) 0%, rgba(5,7,10,.82) 38%, rgba(5,7,10,.35) 70%, rgba(5,7,10,.15) 100%),
              linear-gradient(0deg, rgba(5,7,10,.85) 0%, rgba(5,7,10,0) 30%);
}
.hero-content { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 120px; }
/* Hero eyebrow carries the full product name (v3.5.0): keep "01 ——" together and give wrapped lines room on phones. */
.hero-content .eyebrow .n { flex: none; }
.hero-content .eyebrow span:last-child { line-height: 1.4; }
.h-hero { font-size: clamp(40px, 5vw, 72px); max-width: 15ch; }
.hero-full .lede { margin-top: 24px; color: var(--fg-2); max-width: 44ch; }
.hero-full .btn-row { margin-top: 32px; }
@media (max-width: 720px) {
  .hero-full { align-items: flex-end; }
  .hero-sky::after { background: linear-gradient(0deg, rgba(5,7,10,.96) 0%, rgba(5,7,10,.88) 50%, rgba(5,7,10,.35) 85%, rgba(5,7,10,.2) 100%); }
  .hero-content { padding-bottom: 112px; }
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 24px; z-index: 1; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 10px;
  font: 500 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); text-decoration: none;
}
.scroll-cue:hover { color: var(--fg); }
.scroll-cue i {
  display: block; width: 1px; height: 24px;
  background: linear-gradient(to bottom, rgba(238,242,245,0) 0%, rgba(238,242,245,.9) 45%, rgba(238,242,245,0) 55%, rgba(238,242,245,0) 100%);
  background-size: 1px 200%; animation: cue 2s linear infinite;
}
@keyframes cue { from { background-position: 0 100%; } to { background-position: 0 -100%; } }
@media (prefers-reduced-motion: reduce) {
  .scroll-cue i { animation: none; background: rgba(238,242,245,.6); }
}

/* ---------- v3.3: spec cards over the comparison panels ---------- */
.spec {
  position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: column; gap: 3px;
  padding: 9px 12px; background: rgba(5, 7, 10, 0.72); font: 400 13px/1.3 var(--sans); color: var(--fg-3); pointer-events: none;
}
.spec b { font-weight: 600; font-size: 14px; color: var(--fg); }
.spec.chant b { color: var(--amber); }
.spec::before { /* small corner-bracket frame */
  --c: rgba(255, 255, 255, .45);
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) top left / 7px 1px no-repeat, linear-gradient(var(--c), var(--c)) top left / 1px 7px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 7px 1px no-repeat, linear-gradient(var(--c), var(--c)) top right / 1px 7px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 7px 1px no-repeat, linear-gradient(var(--c), var(--c)) bottom left / 1px 7px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 7px 1px no-repeat, linear-gradient(var(--c), var(--c)) bottom right / 1px 7px no-repeat;
}
@media (max-width: 720px) { .spec { padding: 7px 9px; font-size: 11px; gap: 2px; } .spec b { font-size: 12px; } }

/* ---------- v3.3: closing statement ---------- */
.closing { padding: 120px 0; text-align: center; border-top: 1px solid var(--line); }
.closing-line { font: 500 clamp(34px, 4vw, 56px)/1.1 var(--display); letter-spacing: -0.02em; max-width: none; }
.closing-sub { margin: 18px auto 0; color: var(--fg-2); font-size: 19px; }
@media (max-width: 720px) { .closing { padding: 80px 0; } }

/* Today / With CHANT on the light problem section (v3.3.1).
   Label colour #84652D: 4.6:1 on #EEEDE8 (amber #E8C17F is only 1.45:1 there). */
.light .today { margin-top: 48px; border-top-color: var(--rule); border-bottom-color: var(--rule); }
.light .today .col + .col { border-color: var(--rule); }
.light .today .lab { color: var(--ink-2); }
.light .today p:not(.lab) { color: var(--ink-2); }
.light .today .chant .lab { color: #84652D; }
.light .today .chant p:not(.lab) { color: var(--ink); }

/* Results table on small screens: one stacked card per row (v3.3.2). */
@media (max-width: 699px) {
  .table-wrap { overflow: visible; border-top: 0; }
  .table-wrap table { min-width: 0; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; }
  .table-wrap tr { border-top: 2px solid var(--ink); padding: 16px 0 6px; }
  .table-wrap tr + tr { margin-top: 18px; }
  .table-wrap td { border: 0; padding: 0 0 10px 84px; position: relative; }
  .table-wrap td::before { content: attr(data-label); position: absolute; left: 0; top: .2em; width: 72px; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
  .table-wrap td:first-child { padding-left: 0; font: 500 19px/1.3 var(--display); color: var(--ink); padding-bottom: 12px; }
  .table-wrap td:first-child::before { content: none; }
  .table-wrap td.num { white-space: normal; }
}

/* Secondary button on light sections (datasheet request, v3.3.3) */
.light .btn-ghost { color: var(--ink); border-color: rgba(11, 13, 16, .4); }
.light .btn-ghost:hover { border-color: var(--ink); }

/* ---------- Hero intro video (first visit per session, and on refresh) ---------- */
.hero-intro { display: none; }
html.intro .hero-intro { display: block; position: absolute; inset: 0; z-index: 0; background: #000; pointer-events: none;
  opacity: 1; transition: opacity var(--intro-fade, 1000ms) ease; }
html.intro .hero-intro video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* Star field hidden while the video plays, then fades in as the video fades out. */
.hero-sky { transition: opacity var(--intro-fade, 1000ms) ease; }
html.intro .hero-sky { opacity: 0; }
html.intro.intro-out .hero-sky { opacity: 1; }
html.intro.intro-out .hero-intro { opacity: 0; }
/* Dark gradient behind the text while the video plays (removed with the video). */
.hero-intro-shade { position: absolute; inset: 0;
  /* Measured over every half second of the video: keeps the subheadline at 4.5:1 or better behind the text. */
  background: linear-gradient(90deg, rgba(5,7,10,.85) 0%, rgba(5,7,10,.78) 40%, rgba(5,7,10,.55) 55%, rgba(5,7,10,.15) 75%, rgba(5,7,10,0) 90%); }
@media (max-width: 720px) {
  .hero-intro-shade { background: linear-gradient(0deg, rgba(5,7,10,.88) 0%, rgba(5,7,10,.76) 50%, rgba(5,7,10,.52) 78%, rgba(5,7,10,.28) 100%); }
}
.hero-content, .scroll-cue { z-index: 1; }
@media (prefers-reduced-motion: reduce) { html.intro .hero-intro { display: none; } html.intro .hero-sky { opacity: 1; } }

/* Intro pause/play (WCAG 2.2.2): small, quiet icon in the hero's bottom-right corner,
   visible only while the video plays, fading out with it at the handoff. */
.intro-toggle { display: none; }
html.intro.intro-playing .intro-toggle {
  display: inline-grid; place-items: center; position: absolute; z-index: 2; right: var(--gutter); bottom: 22px;
  width: 34px; height: 34px; padding: 0; border-radius: 50%; cursor: pointer;
  /* Measured over the whole video: the icon keeps 4:1 or better (WCAG 1.4.11 asks 3:1). */
  color: rgba(238, 242, 245, .75); background: rgba(5, 7, 10, .5); border: 1px solid rgba(238, 242, 245, .25);
  transition: opacity var(--intro-fade, 1000ms) ease, color .15s, border-color .15s;
}
.intro-toggle:hover { color: var(--fg); border-color: rgba(238, 242, 245, .45); }
.intro-toggle:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.intro-toggle svg { width: 12px; height: 12px; fill: currentColor; }
.intro-toggle .i-play, .intro-toggle.is-paused .i-pause { display: none; }
.intro-toggle.is-paused .i-play { display: block; }
html.intro.intro-out .intro-toggle { opacity: 0; pointer-events: none; }
