/* NORDIC site layout and typography. Tokens live in tokens.css.
   Wide, uppercase Archivo for names and headings; Atkinson Hyperlegible for reading;
   Atkinson Mono for every label, unit and readout. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: var(--leading);
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  counter-reset: band;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--tactile); outline-offset: 3px; border-radius: 1px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.05; }
::selection { background: var(--tactile); color: var(--tactile-ink); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--tactile); color: var(--tactile-ink);
  padding: 10px 14px; font-family: var(--mono); font-size: var(--step--1); text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- braille ---------- */
.braille { display: inline-flex; gap: 0.5em; flex-wrap: wrap; margin: 0; line-height: 0; }
.braille__cell {
  display: inline-grid;
  grid-template-columns: repeat(2, var(--dot, 5px));
  grid-auto-rows: var(--dot, 5px);
  gap: calc(var(--dot, 5px) * 0.55);
}
.braille__cell--space { width: calc(var(--dot, 5px) * 1.6); }
.braille__cell--space .braille__dot { visibility: hidden; }
.braille__dot { width: var(--dot, 5px); height: var(--dot, 5px); border-radius: 50%; background: currentColor; opacity: 0.16; }
.braille__dot.is-raised { opacity: 1; }

/* ---------- navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  height: 56px;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  transition: background-color .25s, border-color .25s;
}
.nav.is-scrolled { background: color-mix(in srgb, var(--paper) 92%, transparent); border-bottom-color: var(--rule); }
.nav__mark { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.nav__word { font-family: var(--display); font-stretch: 125%; font-weight: 750; letter-spacing: 0.06em; font-size: 1rem; }
.nav__braille { --dot: 3px; gap: 4px; color: var(--tactile); }
.nav__links { display: flex; gap: clamp(16px, 2.6vw, 36px); font-family: var(--mono); font-size: var(--step--2); letter-spacing: var(--track-label); text-transform: uppercase; }
.nav__links a { text-decoration: none; padding: 6px 0; color: var(--ink-2); position: relative; }
.nav__links a:hover, .nav__links a[aria-current="true"] { color: var(--ink); }
.nav__links a[aria-current="true"]::before {
  content: ""; position: absolute; left: -10px; top: 50%; width: 4px; height: 4px; margin-top: -2px; background: var(--tactile);
}
.nav__toggle { display: none; }
@media (max-width: 760px) {
  .nav__toggle {
    display: inline-flex; font: inherit; font-family: var(--mono); font-size: var(--step--2); letter-spacing: var(--track-label);
    text-transform: uppercase; color: inherit; background: none;
    border: 1px solid var(--rule-2); border-radius: var(--radius-s); padding: 8px 12px; cursor: pointer;
  }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 4px var(--gutter) 14px;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 13px 0; font-size: var(--step--1); border-bottom: 1px solid var(--rule); }
  .nav__links a[aria-current="true"]::before { display: none; }
}

/* ---------- stage (hero + viewer) ---------- */
.stage {
  position: relative;
  min-height: max(640px, 100svh);
  background: var(--asphalt);
  color: var(--on-asphalt);
  overflow: hidden;
  isolation: isolate;
}
.stage::before { /* faint drafting grid over the dark floor */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(228, 232, 229, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(228, 232, 229, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 55%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 55%, #000 40%, transparent 100%);
}
.stage__intro {
  position: absolute; z-index: 3;
  left: var(--gutter); top: clamp(100px, 15vh, 160px);
  max-width: min(40rem, 48vw);
  pointer-events: none;
}
.stage__tag {
  margin: 0 0 22px; font-family: var(--mono); font-size: var(--step--2); letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--on-asphalt-2); display: flex; align-items: center; gap: 10px;
}
.stage__tag::before { content: ""; width: 7px; height: 7px; background: var(--tactile); flex: none; }
.stage__title {
  font-family: var(--display); font-stretch: 125%; font-weight: 800;
  font-size: var(--step-5); letter-spacing: 0.01em; line-height: 0.86;
  margin-left: -0.05em; text-transform: uppercase;
}
.stage__braille { --dot: clamp(5px, 0.7vw, 9px); gap: clamp(8px, 1vw, 14px); margin: clamp(18px, 2.2vw, 28px) 0; color: var(--tactile); }
.stage__lede { font-size: var(--step-1); line-height: 1.4; color: var(--on-asphalt); max-width: 28ch; margin-bottom: 26px; }
.stage__readout {
  margin: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 12px 32px;
  border-top: 1px solid var(--rule-2); padding-top: 14px; width: fit-content;
}
.stage__readout div { display: grid; gap: 2px; }
.stage__readout dt { font-family: var(--mono); font-size: var(--step--2); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--on-asphalt-2); }
.stage__readout dd { margin: 0; font-family: var(--mono); font-size: var(--step--1); color: var(--on-asphalt); font-variant-numeric: tabular-nums; }
.stage__noscript { position: absolute; bottom: 24px; left: var(--gutter); color: var(--on-asphalt-2); }
.viewer { position: absolute; inset: 0; z-index: 1; }
@media (max-width: 760px) {
  .stage { min-height: 100svh; display: flex; flex-direction: column; }
  .stage__intro { position: relative; top: auto; left: auto; max-width: none; padding: 84px var(--gutter) 0; flex: 0 0 auto; }
  .stage__title { font-size: clamp(3rem, 16vw, 5rem); }
  .stage__braille { margin: 14px 0; }
  .stage__lede { max-width: 32ch; font-size: var(--step-0); margin-bottom: 0; }
  .stage__readout { display: none; }
  .viewer { position: relative; inset: auto; flex: 1 1 auto; height: auto; min-height: 440px; }
}

/* ---------- bands (page sections) ---------- */
.band { position: relative; padding: clamp(80px, 10vw, 148px) var(--gutter); counter-increment: band; border-top: 1px solid var(--rule); }
.band--tight { padding-bottom: clamp(64px, 8vw, 110px); }
.band--paper { background: var(--paper); color: var(--ink); }
.band--kerb { background: var(--paper-2); color: var(--ink); }
.band--asphalt { background: var(--asphalt); color: var(--on-asphalt); }
.band > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.band__head {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 22px clamp(24px, 5vw, 80px); align-items: start;
  margin-bottom: clamp(44px, 5.5vw, 80px);
}
.band__head .h2 { grid-column: 1 / -1; grid-row: 1; text-wrap: balance; }
.band__head .h2::before {
  content: counter(band, decimal-leading-zero) " /"; display: block;
  font-family: var(--mono); font-size: var(--step--2); font-weight: 400; letter-spacing: var(--track-label);
  color: var(--tactile); margin-bottom: 18px; font-stretch: 100%;
}
.band__braille { grid-column: 1; grid-row: 2; --dot: 4px; gap: 7px; margin: 8px 0 0; color: var(--ink-3); justify-self: start; }
.band__intro { grid-column: 2; grid-row: 2; font-size: var(--step-1); line-height: 1.45; margin: 0; max-width: 38ch; color: var(--ink-2); }
.h2 {
  font-family: var(--display); font-stretch: 118%; font-weight: 750;
  font-size: var(--step-4); letter-spacing: 0.005em; line-height: 0.94; text-transform: uppercase;
}
.h3 { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.01em; line-height: 1.12; margin-bottom: 0.55em; }
@media (max-width: 900px) {
  .h2 { font-size: clamp(1.8rem, 8.2vw, 3rem); font-stretch: 100%; }
  .band__head { grid-template-columns: 1fr; }
  .band__head .h2, .band__braille, .band__intro { grid-column: 1; grid-row: auto; }
}

/* ---------- features ---------- */
.features {
  list-style: none; padding: 0; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
}
.feature {
  position: relative;
  padding: 28px clamp(18px, 2.2vw, 30px) 30px;
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  transition: background-color .2s;
}
.feature:hover { background: var(--paper-2); }
.feature__title { font-size: var(--step-1); font-weight: 700; margin: 22px 0 8px; letter-spacing: -0.005em; }
.feature p { color: var(--ink-2); max-width: 34ch; margin-bottom: 14px; }
.feature__figure { font-family: var(--mono); font-size: var(--step--1); color: var(--ink) !important; margin: 0 !important; font-variant-numeric: tabular-nums; }
.feature__figure span { color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--step--2); }
.feature__glyph { display: grid; grid-template-columns: repeat(4, 6px); grid-auto-rows: 6px; gap: 4px; }
.feature__glyph i { width: 6px; height: 6px; background: var(--ink); opacity: 0.12; }
.feature__glyph i.on { opacity: 0.85; background: var(--ink); }
.feature__glyph i.hot { opacity: 1; background: var(--glyph-colour, var(--tactile)); }
.feature__glyph--drop { --glyph-colour: var(--drop); }
.feature__glyph--rise { --glyph-colour: var(--obstacle); }
.feature__glyph--overhead { --glyph-colour: var(--overhead); }
.feature__glyph--hand { --glyph-colour: var(--tactile); }
.feature__glyph--grip { --glyph-colour: var(--ok); }
.feature__glyph--power { --glyph-colour: var(--tactile); }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* ---------- how it sees ---------- */
.demo { margin: 0 auto clamp(52px, 6.5vw, 88px); }
.viz--demo { border: 1px solid var(--asphalt-line); background: var(--asphalt); }
.demo__caption { margin-top: 12px; font-family: var(--mono); font-size: var(--step--2); letter-spacing: 0.04em; color: var(--on-asphalt-2); max-width: 80ch; }

.pipeline {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
  counter-reset: step;
  margin-bottom: clamp(52px, 6.5vw, 88px) !important;
  border-top: 1px solid var(--asphalt-line);
}
.pipeline__step { position: relative; padding: 22px 22px 0 0; counter-increment: step; }
.pipeline__step::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 14px;
  font-family: var(--mono); font-size: var(--step--2); letter-spacing: var(--track-label); color: var(--tactile);
}
.pipeline__step::after { content: ""; position: absolute; top: -1px; left: 0; width: 28px; height: 1px; background: var(--tactile); }
.pipeline__step h3 { font-size: var(--step-0); font-weight: 700; margin-bottom: 6px; }
.pipeline__step p { color: var(--on-asphalt-2); font-size: var(--step--1); line-height: 1.5; max-width: 24ch; margin: 0; }
@media (max-width: 980px) {
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .pipeline__step p { max-width: 40ch; }
}
@media (max-width: 560px) { .pipeline { grid-template-columns: 1fr; } }

.margin-note {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px);
  align-items: center;
  padding: clamp(28px, 3.5vw, 48px) 0;
  border-top: 1px solid var(--asphalt-line);
  border-bottom: 1px solid var(--asphalt-line);
  margin-bottom: clamp(36px, 4.5vw, 56px) !important;
}
.margin-note__big { margin: 0; }
.margin-note__num { font-family: var(--display); font-stretch: 110%; font-size: var(--step-4); font-weight: 750; color: var(--tactile); white-space: nowrap; }
.margin-note__text { margin: 0; font-size: var(--step-1); line-height: 1.45; max-width: 40ch; color: var(--on-asphalt); }
.limits { max-width: 1240px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px clamp(24px, 5vw, 80px); }
.limits__title { font-family: var(--mono); font-size: var(--step--2); font-weight: 400; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--obstacle); margin: 4px 0 0; }
.limits p { color: var(--on-asphalt-2); max-width: 62ch; margin: 0; }
@media (max-width: 900px) { .margin-note, .limits { grid-template-columns: 1fr; } }

/* ---------- inside: systems ---------- */
.systems__tabs {
  display: flex; flex-wrap: wrap; gap: 0;
  margin-bottom: 36px;
  border: 1px solid var(--rule); width: fit-content; max-width: 100%;
}
.systems__tab {
  font: inherit; font-family: var(--mono); font-size: var(--step--2); letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--ink-2); background: transparent;
  border: 0; border-right: 1px solid var(--rule); border-radius: 0;
  padding: 12px 18px; cursor: pointer;
  transition: background .15s, color .15s;
}
.systems__tab:last-child { border-right: 0; }
.systems__tab:hover { color: var(--ink); background: var(--paper-2); }
.systems__tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.systems__tab:focus-visible { outline-offset: -2px; }
.systems__panel {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(28px, 4vw, 64px); align-items: start;
}
.systems__panel[hidden] { display: none; }
.systems__text p { color: var(--ink-2); max-width: 42ch; }
.systems__panel > .viz { min-height: 360px; }
@media (max-width: 980px) { .systems__panel { grid-template-columns: 1fr; } }
.systems__note { margin: 18px 0 0; max-width: 72ch; font-family: var(--mono); font-size: var(--step--2); letter-spacing: 0.04em; color: var(--ink-3); }
@media (min-width: 981px) { .systems__note { --g: clamp(28px, 4vw, 64px); margin-left: calc((100% - var(--g)) / 3 + var(--g)); } }

.facts { margin: 26px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--ink-3); font-family: var(--mono); font-size: var(--step--2); letter-spacing: 0.1em; text-transform: uppercase; padding-top: 3px; }
.facts dd { margin: 0; font-size: var(--step--1); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- specs ---------- */
.specs { overflow-x: auto; border-top: 1px solid var(--rule-2); }
.specs__table { width: 100%; border-collapse: collapse; font-size: var(--step--1); min-width: 640px; }
.specs__table th, .specs__table td { text-align: left; vertical-align: top; padding: 13px 18px 13px 0; border-bottom: 1px solid var(--rule); }
.specs__table thead th { font-weight: 400; font-family: var(--mono); font-size: var(--step--2); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-3); padding-top: 14px; padding-bottom: 12px; }
.specs__table tbody th { font-weight: 650; width: 24%; }
.specs__table td { color: var(--ink-2); }
.specs__table td:nth-child(2) { width: 26%; font-variant-numeric: tabular-nums; color: var(--ink); }
.specs__table tbody tr { transition: background-color .15s; }
.specs__table tbody tr:hover { background: var(--paper-2); }
.status {
  display: inline-block; margin-right: 10px; padding: 1px 7px; border-radius: var(--radius-s);
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.7;
  border: 1px solid var(--rule-2); color: var(--ink-2); white-space: nowrap; vertical-align: 1px;
}
.status--sim { border-color: color-mix(in srgb, var(--drop) 70%, transparent); color: var(--drop); }
.status--design { border-color: var(--rule-2); color: var(--ink-2); }
.status--est { border-color: var(--ink-3); color: var(--ink-2); border-style: dotted; }
.status--test { border-style: dashed; border-color: var(--ink-3); color: var(--ink-2); }
.status--open { border-color: color-mix(in srgb, var(--obstacle) 75%, transparent); color: var(--obstacle); }
.status--measured { border-color: var(--ok); color: var(--ok); }

/* ---------- footer ---------- */
.footer { background: var(--asphalt); color: var(--on-asphalt); padding: clamp(64px, 8vw, 110px) var(--gutter) clamp(48px, 6vw, 80px); border-top: 1px solid var(--rule); }
.footer__grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(24px, 5vw, 80px); }
.footer__word { font-family: var(--display); font-stretch: 125%; font-size: var(--step-3); font-weight: 800; letter-spacing: 0.04em; margin: 0 0 16px; }
.footer__braille { --dot: 4px; gap: 7px; color: var(--tactile); }
.footer__text p { color: var(--on-asphalt-2); max-width: 56ch; }
.footer__text p:first-child { color: var(--on-asphalt); font-size: var(--step-1); line-height: 1.45; }
.footer__small { font-family: var(--mono); font-size: var(--step--2); letter-spacing: 0.03em; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

/* specs as stacked rows on phones: no sideways scrolling */
@media (max-width: 640px) {
  .specs { overflow: visible; }
  .specs__table { min-width: 0; }
  .specs__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .specs__table, .specs__table tbody, .specs__table tr, .specs__table th, .specs__table td { display: block; width: auto !important; }
  .specs__table tr { padding: 16px 0 14px; border-bottom: 1px solid var(--rule); }
  .specs__table th, .specs__table td { padding: 0; border: 0; }
  .specs__table tbody th { font-size: var(--step-0); margin-bottom: 6px; }
  .specs__table td { position: relative; padding: 3px 0 3px 6.5rem; }
  .specs__table td::before { content: attr(data-label); position: absolute; left: 0; top: 5px; width: 6rem; color: var(--ink-3); font-family: var(--mono); font-size: var(--step--2); letter-spacing: 0.1em; text-transform: uppercase; }
  .specs__table td .status { margin: 0 8px 4px 0; }
}

/* ---------- without JavaScript ---------- */
html:not(.js) .nav { background: var(--paper); }
html:not(.js) .systems__tabs, html:not(.js) .viz, html:not(.js) .systems__note, html:not(.js) .demo { display: none; }
html:not(.js) .systems__panel[hidden] { display: grid; }
html:not(.js) .systems__panel + .systems__panel { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--rule); }
html:not(.js) .systems__panel { grid-template-columns: minmax(0, 1fr); }
html:not(.js) .stage { min-height: 0; padding-bottom: 48px; }
html:not(.js) .stage__intro { position: relative; top: auto; left: auto; max-width: none; padding: 120px var(--gutter) 0; }
html:not(.js) .viewer { position: relative; inset: auto; height: auto; min-height: 0; }
.stage__poster { display: block; width: min(920px, 100%); height: auto; margin: 24px auto 0; }
html:not(.js) .stage__noscript { position: static; padding: 0 var(--gutter); }
