/* Layout: one long climb. Hero summit card, a sub-brand filter rail, then a numbered grid of app "plates". SLOPES tokens: Tarmac (dark) first, Chalk (light). */
:root {
  --surface: #0f1112; --surface-raised: #181a1c; --panel: #1f2225; --asphalt: #15181c;
  --ink: #f2f2ee; --ink-muted: #9da2a6; --ink-on-panel: #f2f2ee; --ink-on-panel-muted: #a3a8ac;
  --hivis: #c6ff00; --on-hivis: #15181c; --hivis-text: #d4ff1e;
  --signal: #ff5a1f; --signal-text: #ff6a33;
  --line: #f2f2ee; --line-soft: #2c2f33; --focus: #d4ff1e;
  --logo-ink: none; --logo-rev: block;
  --grid: rgba(212,255,30,0.16); --grid-soft: rgba(244,242,236,0.08);
  --live: #ff3b30;
  --sub-tech: #2ee6d6; --sub-radio: #ff5a1f; --sub-outdoors: #5bd66b; --sub-kayak: #3aa8ff; --sub-ai: #ff7ac3; --sub-bikes: #c6ff00; --on-sub: #15181c;
  --f-display: Archivo, "Helvetica Neue", Arial, sans-serif;
  --f-body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) {
  --surface: #f5f5f2; --surface-raised: #ffffff; --panel: #15181c;
  --ink: #15181c; --ink-muted: #5b5f63; --hivis-text: #4a6600; --signal-text: #c2410c;
  --line: #15181c; --line-soft: #d9d9d3; --focus: #4a6600; --grid-soft: rgba(18,19,17,0.10);
  --logo-ink: block; --logo-rev: none;
  color-scheme: light;
} }
:root[data-theme="light"] {
  --surface: #f5f5f2; --surface-raised: #ffffff; --panel: #15181c;
  --ink: #15181c; --ink-muted: #5b5f63; --hivis-text: #4a6600; --signal-text: #c2410c;
  --line: #15181c; --line-soft: #d9d9d3; --focus: #4a6600; --grid-soft: rgba(18,19,17,0.10);
  --logo-ink: block; --logo-rev: none;
  color-scheme: light;
}

* { box-sizing: border-box; }
body { background: var(--surface); color: var(--ink); font: 400 16px/24px var(--f-body);
  background-image: radial-gradient(var(--grid-soft) 1px, transparent 1.4px); background-size: 16px 16px; }
.scope { position: relative; padding: 18px; align-self: center; justify-self: end; width: min(100%, 460px); }
.scope::before, .scope::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1.5px solid var(--hivis); }
.scope::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.scope::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.scope canvas { width: 100%; aspect-ratio: 1; display: block; cursor: crosshair; max-width: 100%; }
.scope .hint { position: absolute; left: 18px; top: 18px; font: 500 11px/16px var(--f-mono); color: var(--ink-on-panel-muted); text-transform: uppercase; }
.scope .hint b { color: var(--hivis); font-weight: 500; }
.tele { display: flex; flex-wrap: wrap; gap: 4px 20px; font: 500 12px/18px var(--f-mono); text-transform: uppercase; color: var(--ink-muted); padding-block: 4px 0; }
.tele b { color: var(--hivis-text); font-weight: 500; }
.card .hud::before, .card .hud::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1.5px solid var(--line-soft); transition: border-color .18s ease; pointer-events: none; }
.card .hud::before { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.card .hud::after { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.card:hover .hud::before, .card:hover .hud::after, .card.ping .hud::before, .card.ping .hud::after { border-color: var(--hivis-text); }
.card.ping { border-color: var(--hivis-text); }
.card .screen { background: var(--asphalt); height: 120px; overflow: hidden; border-bottom: 1px solid var(--line-soft);
  background-image: radial-gradient(var(--grid) 1px, transparent 1.4px); background-size: 16px 16px; }
.card .screen svg { width: 100%; height: 100%; display: block; }
.card.feature .screen { height: 160px; }
.card .spec { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin: 0; font: 500 12px/18px var(--f-mono); text-transform: uppercase; }
.card .spec dt { color: var(--ink-muted); }
.card .spec dd { margin: 0; color: var(--ink); }
.card .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.card .chips span { font: 500 11px/16px var(--f-mono); border: 1px solid var(--line-soft); padding: 2px 7px; color: var(--ink-muted); }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
a { color: var(--hivis-text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.label { font: 600 11px/16px var(--f-body); letter-spacing: .14em; text-transform: uppercase; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* top bar */
.top { border-bottom: 1px solid var(--line-soft); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.lockup { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.lockup img { height: 22px; width: auto; display: block; }
.lockup .ink { display: var(--logo-ink); }
.lockup .rev { display: var(--logo-rev); }
.lockup.on-dark .ink { display: none; }
.lockup.on-dark .rev { display: block; }
.lockup .slash { color: var(--hivis-text); font: 600 18px/1 var(--f-display); }
.lockup.on-dark .slash { color: var(--hivis); }
.wm { font: 700 22px/1 var(--f-display, system-ui), system-ui, sans-serif; letter-spacing: -.01em; text-transform: none; white-space: nowrap; color: var(--ink); }
.on-dark .wm { color: var(--ink-on-panel, #fff); }
.wm .fc { display: inline; color: #c6ff00; text-shadow: 0 0 6px rgba(198,255,0,.9), 0 0 16px rgba(198,255,0,.55); }
@media (prefers-reduced-motion: no-preference) { .wm .fc { animation: fcPulse 3.2s ease-in-out infinite; } }
@media (max-width: 520px) { .wm { font-size: 15px; } .sitenav { gap: 10px; } }
@keyframes fcPulse { 50% { text-shadow: 0 0 4px rgba(198,255,0,.7), 0 0 26px rgba(198,255,0,.8); } }
.lockup .sub { font: 600 15px/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; }
.lockup.on-dark .sub { color: var(--ink-on-panel); }
.top .issue { color: var(--ink-muted); font: 500 13px/20px var(--f-mono); }

/* hero: a dark panel in both themes, hi-vis rides on dark */
.hero { background: var(--asphalt); color: var(--ink-on-panel); position: relative; overflow: hidden;
  background-image: radial-gradient(var(--grid) 1px, transparent 1.4px); background-size: 16px 16px; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; padding-block: 56px 48px; }
.hero h1 { font: 800 clamp(52px, 9vw, 112px)/.9 var(--f-display); letter-spacing: -.03em; text-transform: uppercase; margin: 14px 0 20px; text-wrap: balance; }
.hero h1 .u { box-shadow: inset 0 -.16em 0 var(--hivis); }
.hero .eyebrow { color: var(--hivis); }
.hero p.lede { font-size: 18px; line-height: 28px; color: var(--ink-on-panel-muted); max-width: 52ch; margin: 0 0 28px; }
.hero .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #2c2f33; margin-top: 8px; }
.hero .stat { padding: 16px 16px 20px 0; }
.hero .stat + .stat { padding-left: 16px; border-left: 1px solid #2c2f33; }
.hero .stat b { display: block; font: 800 clamp(34px, 5vw, 56px)/.95 var(--f-display); letter-spacing: -.02em; color: var(--ink-on-panel); }
.hero .stat span { color: var(--ink-on-panel-muted); }
@media (max-width: 420px) { .hero .stat .label { font-size: 10px; letter-spacing: .02em; } }
.hero .mark { align-self: end; justify-self: end; width: min(100%, 360px); position: relative; padding: 24px; }
.hero .mark::before, .hero .mark::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1.5px solid var(--hivis); }
.hero .mark::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hero .mark::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hero .mark svg { width: 100%; height: auto; display: block; }
.hero .readout { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; font: 500 12px/18px var(--f-mono); text-transform: uppercase; margin-top: 16px; color: var(--ink-on-panel-muted); }
.hero .readout dd { margin: 0; color: var(--hivis); }

/* filter rail */
.rail { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line-soft); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
.rail .wrap { display: flex; gap: 8px; align-items: center; padding-block: 12px; overflow-x: auto; scrollbar-width: none; }
.chip { --c: var(--hivis); flex: none; min-height: 32px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-soft); background: var(--surface-raised); color: var(--ink);
  padding: 7px 14px; font: 600 11px/16px var(--f-body); letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.chip i { width: 10px; height: 10px; background: var(--c); display: inline-block; }
.chip .n { font-family: var(--f-mono); letter-spacing: 0; color: var(--ink-muted); }
.chip[aria-pressed="true"] { background: var(--c); color: var(--on-sub); border-color: var(--c); }
.chip[aria-pressed="true"] i { background: var(--on-sub); }
.chip[aria-pressed="true"] .n { color: var(--on-sub); }
.rail .search { margin-left: auto; flex: none; }
.rail input { font: 500 13px/20px var(--f-mono); background: var(--surface-raised); color: var(--ink); border: 1px solid var(--line-soft); border-radius: 2px; padding: 6px 10px; width: 200px; }

/* grid of plates */
main { padding-block: 32px 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { font: 700 32px/1.05 var(--f-display); letter-spacing: -.01em; margin: 0; }
.section-head p { margin: 0; color: var(--ink-muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.card { --c: var(--hivis); position: relative; background: var(--surface-raised); border: 1px solid var(--line-soft); display: flex; flex-direction: column; min-width: 0;
  transition: transform .18s ease, border-color .18s ease; }
.card::before { content: ""; height: 4px; background: var(--hivis); display: block; }
.card:hover { transform: translateY(-3px); border-color: var(--ink-muted); }
.card .body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; min-width: 0; }
.card .meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tag { display: inline-flex; align-items: center; background: var(--c); color: var(--on-sub); padding: 3px 13px; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.card .no { font: 500 13px/20px var(--f-mono); color: var(--ink-muted); }
.card h3 { font: 800 22px/1.1 var(--f-display); letter-spacing: -.005em; text-transform: uppercase; margin: 4px 0 0; text-wrap: balance; }
.card .tagline { color: var(--hivis-text); font-weight: 600; margin: 0; }
.card p.desc { margin: 0; color: var(--ink-muted); }
.card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.card li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; font-size: 15px; line-height: 22px; }
.card li::before { content: ""; width: 8px; height: 8px; margin-top: 7px; border-top: 2px solid var(--c); border-left: 2px solid var(--c); transform: rotate(45deg); }
.card .foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 6px 14px; font: 500 12px/18px var(--f-mono); color: var(--ink-muted); text-transform: uppercase; }
.card .foot .k { color: var(--ink); }
.card.feature { grid-column: span 2; }
.empty { padding: 48px 0; color: var(--ink-muted); text-align: center; }

/* about */
.about { border-top: 1px solid var(--line-soft); }
.about .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding-block: 48px; }
.about h2 { font: 800 clamp(32px, 5vw, 56px)/.95 var(--f-display); text-transform: uppercase; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.about p { margin: 0 0 12px; max-width: 60ch; }
.privacy { background: var(--surface-raised); border: 1px solid var(--line-soft); padding: 20px 24px; }
.privacy .label { color: var(--hivis-text); display: block; margin-bottom: 8px; }
footer { background: var(--asphalt); color: var(--ink-on-panel-muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px; font: 500 12px/18px var(--f-mono); text-transform: uppercase; }
footer b { color: var(--hivis); font-weight: 500; }
footer a { color: var(--hivis); }


/* rebuild: skip link, nav, buttons */
.skip { position: absolute; left: 16px; top: -60px; z-index: 30; background: var(--hivis); color: var(--on-hivis); padding: 10px 14px; font-weight: 600; }
.skip:focus { top: 8px; }
.sitenav { display: flex; gap: 4px; margin-left: auto; }
.sitenav a { color: var(--ink); text-decoration: none; padding: 8px 10px; font: 600 11px/16px var(--f-body); letter-spacing: .14em; text-transform: uppercase; }
.sitenav a:hover { color: var(--hivis-text); }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 700 14px/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 13px 18px; border: 2px solid var(--line); border-radius: 2px; background: transparent; color: var(--ink); cursor: pointer; transition: background .12s ease, color .12s ease; }
.btn:hover { background: var(--ink); color: var(--surface); }
.btn.go { background: var(--hivis); border-color: var(--hivis); color: var(--on-hivis); }
.btn.go:hover { background: var(--asphalt); border-color: var(--hivis); color: var(--hivis); }
.btn.on-dark { border-color: var(--ink-on-panel); color: var(--ink-on-panel); }
.btn.on-dark:hover { background: var(--ink-on-panel); color: var(--asphalt); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

/* card opens its detail view; the whole card is the target */
.card h3 button { all: unset; cursor: pointer; }
.card h3 button::after { content: ""; position: absolute; inset: 0; }
.card .live-link { position: relative; z-index: 1; justify-self: start; }
.card h3 button:focus-visible { outline: none; }
.card:has(h3 button:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.card .more { color: var(--hivis-text); font: 500 12px/18px var(--f-mono); text-transform: uppercase; }
.note-line { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 20px; }

/* AI section */
.ai { border-bottom: 1px solid var(--line-soft); }
.ai > .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding-block: 56px; }
.ai-head h2 { overflow-wrap: break-word; }
.ai-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.ai-head h2 { font: 800 clamp(36px, 6vw, 72px)/.95 var(--f-display); letter-spacing: -.02em; text-transform: uppercase; margin: 12px 0 0; text-wrap: balance; }
.ai-head h2 .u { box-shadow: inset 0 -.14em 0 var(--hivis); }
.ai-head p { margin: 0; font-size: 18px; line-height: 28px; max-width: 60ch; }
.tag.ai-tag { --c: var(--sub-ai); }
.figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface-raised); border: 1px solid var(--line-soft); border-top: 4px solid var(--hivis); }
.figs div { padding: 20px 24px; min-width: 0; }
.figs div + div { border-left: 1px solid var(--line-soft); }
.figs b { display: block; font: 800 clamp(34px, 5vw, 56px)/.95 var(--f-display); letter-spacing: -.02em; }
.figs span { display: block; margin-top: 8px; color: var(--ink-muted); font-size: 14px; line-height: 20px; }
.ai h3 { font: 700 32px/1.05 var(--f-display); letter-spacing: -.01em; margin: 0 0 16px; }
.loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); counter-reset: step; }
.loop li { counter-increment: step; background: var(--surface-raised); padding: 16px 18px 20px; min-width: 0; }
.loop li::before { content: counter(step); display: block; font: 800 34px/1 var(--f-display); color: var(--hivis-text); margin-bottom: 10px; }
.loop b { display: block; font: 700 15px/20px var(--f-display); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 4px; }
.loop span { color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.round { margin: 12px 0 0; font: 500 13px/20px var(--f-mono); text-transform: uppercase; color: var(--ink-muted); }
.round b { color: var(--hivis-text); font-weight: 500; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line-soft); background: var(--surface-raised); }
.skills { border-collapse: collapse; width: 100%; min-width: 720px; }
.skills th, .skills td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.skills tr:last-child td { border-bottom: 0; }
.skills thead th { font: 600 11px/16px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.skills tbody th { font: 700 16px/22px var(--f-display); width: 24%; }
.skills .nid { display: block; font: 500 11px/16px var(--f-mono); color: var(--ink-muted); margin-bottom: 2px; }
.skills td { color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.skills .proof { width: 22%; }
.linkbtn { background: none; border: 0; padding: 0; min-height: 24px; color: var(--hivis-text); font: 500 13px/20px var(--f-mono); text-align: left; text-decoration: underline; cursor: pointer; }
.linkbtn:hover { text-decoration-thickness: 2px; }
.stage { display: inline-block; font: 500 11px/16px var(--f-mono); color: var(--ink-muted); text-transform: uppercase; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; align-items: start; }
.lessons { margin: 0; padding: 0; list-style: none; display: grid; }
.lessons li { padding: 12px 0; border-top: 1px solid var(--line-soft); }
.lessons b { font-weight: 600; }
.nid-inline { font: 500 11px/16px var(--f-mono); color: var(--ink-muted); }

/* climb: milestones in order, nodes sit on the column centres */
.climb svg { display: block; width: 100%; height: 72px; }
.climb ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.climb li { min-width: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.climb time { display: block; font: 500 12px/18px var(--f-mono); text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }


/* detail dialog */
dialog.detail { width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; background: var(--surface-raised); color: var(--ink); border: 1px solid var(--line-soft); border-top: 4px solid var(--hivis); }
dialog.detail { overscroll-behavior: contain; }
h2, h3 { text-wrap: balance; }
html { -webkit-tap-highlight-color: rgba(212,255,30,0.2); }
@media (pointer: fine) { html { overscroll-behavior: none; } }
html { scroll-padding-top: 72px; }
button, a, input { touch-action: manipulation; }
dialog.detail::backdrop { background: rgba(15, 17, 18, .72); }
.d-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; background: var(--surface-raised); z-index: 1; }
.d-bar .no { font: 500 13px/20px var(--f-mono); color: var(--ink-muted); }
.d-nav { display: flex; gap: 6px; }
.d-nav button { min-width: 44px; min-height: 44px; background: none; border: 1px solid var(--line-soft); color: var(--ink); font: 500 12px/1 var(--f-mono); text-transform: uppercase; padding: 0 10px; cursor: pointer; }
.d-nav button:hover { border-color: var(--hivis-text); color: var(--hivis-text); }
.d-screen { background: var(--asphalt); height: 180px; background-image: radial-gradient(var(--grid) 1px, transparent 1.4px); background-size: 16px 16px; }
.d-screen svg { width: 100%; height: 100%; display: block; }
.d-screen.has-clip { height: auto; background: #000; }
.d-screen video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.screen, .d-screen { position: relative; }
.screen video.clip { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.clip-tag { position: absolute; left: 8px; bottom: 8px; font: 600 11px/1 ui-monospace, monospace; letter-spacing: .06em; padding: 4px 7px; border-radius: 4px; background: rgba(0,0,0,.65); color: #d7ff3a; }
.d-body { padding: 24px; display: grid; gap: 16px; }
.d-body h2 { font: 800 clamp(28px, 5vw, 40px)/1 var(--f-display); letter-spacing: -.01em; text-transform: uppercase; margin: 0; text-wrap: balance; }
.d-body .tagline { margin: 0; color: var(--hivis-text); font-weight: 600; font-size: 18px; line-height: 26px; }
.d-body .desc { margin: 0; max-width: 62ch; }
.d-body ul.f { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.d-body ul.f li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; }
.d-body ul.f li::before { content: ""; width: 8px; height: 8px; margin-top: 8px; border-top: 2px solid var(--hivis-text); border-left: 2px solid var(--hivis-text); transform: rotate(45deg); }
.d-body .spec { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin: 0; font: 500 12px/18px var(--f-mono); text-transform: uppercase; }
.d-body .spec dt { color: var(--ink-muted); }
.d-body .spec dd { margin: 0; }
.d-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.d-tech button { min-height: 32px; font: 500 12px/16px var(--f-mono); border: 1px solid var(--line-soft); background: none; color: var(--ink-muted); padding: 4px 8px; cursor: pointer; }
.d-tech button:hover { color: var(--hivis-text); border-color: var(--hivis-text); }
.d-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.d-acts input { flex: 1 1 100%; min-height: 40px; font: 500 12px/18px var(--f-mono); background: var(--surface); color: var(--ink); border: 1px solid var(--line-soft); padding: 6px 8px; }

/* footer close */
.close-band { background: var(--asphalt); color: var(--ink-on-panel); background-image: radial-gradient(var(--grid) 1px, transparent 1.4px); background-size: 16px 16px; }
.close-band .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: 48px; }
.close-band h2 { font: 800 clamp(32px, 5vw, 56px)/.95 var(--f-display); letter-spacing: -.02em; text-transform: uppercase; margin: 0; text-wrap: balance; }
.close-band p { margin: 0; color: var(--ink-on-panel-muted); }
.close-band b { color: var(--hivis); font: 500 16px/24px var(--f-mono); }
footer { border-top: 1px solid #2c2f33; }
footer .wrap { align-items: center; }

@media (max-width: 860px) {
  .ai-head, .two, .close-band .wrap { grid-template-columns: minmax(0, 1fr); }
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figs div:nth-child(3) { border-left: 0; }
  .figs div:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .loop, .climb ol { grid-template-columns: minmax(0, 1fr); }
  .climb svg { display: none; }
  .sitenav a { padding: 8px 6px; }
  .top .issue { display: none; }
}

@media (max-width: 860px) {
  .hero .wrap, .about .wrap { grid-template-columns: minmax(0, 1fr); }
  .scope { justify-self: center; width: min(100%, 420px); }
  .card.feature { grid-column: auto; }
  .rail { position: static; }
  .rail .wrap { flex-wrap: wrap; overflow: visible; }
  .rail .search { order: -1; width: 100%; margin: 0; }
  .rail input { width: 100%; }
}
@media (max-width: 520px) { .sitenav { gap: 0; } .sitenav a { white-space: nowrap; } .lockup .slash { display: none; } .sitenav a { padding: 8px 4px; letter-spacing: .06em; } .lockup .sub { display: none; } }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }
/* hi-tech layer: system bar, scanlines, glow, tilt. All motion sits under html.fx, which is off for reduced motion or when the visitor turns it off. */
.sysbar { background: #0a0c0d; color: #a3a8ac; border-bottom: 1px solid #2c2f33; font: 500 11px/16px var(--f-mono); text-transform: uppercase; font-variant-numeric: tabular-nums; }
.sysbar .wrap { display: flex; align-items: center; gap: 6px 18px; padding-block: 6px; flex-wrap: wrap; }
.sysbar b { color: #d4ff1e; font-weight: 500; }
.sysbar .ok::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #5bd66b; margin-right: 6px; box-shadow: 0 0 6px #5bd66b; }
.sysbar canvas { width: 120px; height: 16px; display: block; }
.sysbar .fxbtn { margin-left: auto; font: inherit; color: #d4ff1e; background: none; border: 1px solid #2c2f33; padding: 2px 8px; cursor: pointer; min-height: 24px; }
.sysbar .fxbtn:hover { border-color: #d4ff1e; }
@media (max-width: 640px) { .sysbar .wide { display: none; } }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 1px, transparent 1px 3px); }
.hero .beam { position: absolute; left: 0; right: 0; top: 0; height: 120px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(198,255,0,.07), transparent); }
.fx .hero .beam { opacity: 1; animation: beam 7s linear infinite; }
@keyframes beam { from { transform: translateY(-120px); } to { transform: translateY(900px); } }
.hero h1 .u, .hero .eyebrow, .scope .hint b, .hero .readout dd, .sysbar b { text-shadow: 0 0 12px rgba(198,255,0,.45); }
.hero .stat b { text-shadow: 0 0 18px rgba(242,242,238,.18); }
.scope, .hero .mark { filter: drop-shadow(0 0 18px rgba(198,255,0,.10)); }
.section-head h2::after { content: "_"; color: var(--hivis-text); margin-left: 4px; }
.fx .section-head h2::after { animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.card .glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .2s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c) 16%, transparent), transparent 70%); }
.card:hover .glow { opacity: 1; }
.card:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent), 0 10px 40px -12px color-mix(in srgb, var(--c) 45%, transparent); }
.card .screen { position: relative; }
.card .screen::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px); }
.card .screen::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--c) 22%, transparent), transparent); }
.fx .card:hover .screen::before { opacity: 1; animation: scan 1.4s linear infinite; }
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(250%); } }
.fx .card.tilt { transition: transform .08s linear, border-color .18s ease, box-shadow .18s ease; }
.fx .card.reveal { opacity: 0; transform: translateY(14px); }
.fx .card.reveal.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
/* systems engineering section: V-model, traceability matrix, case study */
.se { border-bottom: 1px solid var(--line-soft); }
.se > .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding-block: 56px; }
.se h3 { font: 700 32px/1.05 var(--f-display); letter-spacing: -.01em; margin: 0 0 8px; }
.se .sub { color: var(--ink-muted); margin: 0 0 20px; max-width: 70ch; }
.se .kicker { font: 500 12px/18px var(--f-mono); text-transform: uppercase; color: var(--hivis-text); }
.vgrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.vmodel { background: var(--asphalt); padding: 12px; background-image: radial-gradient(var(--grid) 1px, transparent 1.4px); background-size: 16px 16px; }
.vmodel svg { width: 100%; height: auto; display: block; }
.vmodel .node rect { fill: #1f2225; stroke: #3a3f44; stroke-width: 1.5; transition: fill .15s ease, stroke .15s ease; }
.vmodel .node text { fill: #f2f2ee; font: 600 13px var(--f-body); pointer-events: none; }
.vmodel .node .iso { fill: #a3a8ac; font: 500 10px var(--f-mono); }
.vmodel .node { cursor: pointer; outline: none; }
.vmodel .node:hover rect, .vmodel .node:focus-visible rect { stroke: #d4ff1e; }
.vmodel .node[aria-pressed="true"] rect { fill: #c6ff00; stroke: #c6ff00; }
.vmodel .node[aria-pressed="true"] text { fill: #15181c; }
.vmodel .node:focus-visible rect { stroke-width: 3; }
.vmodel .pair { stroke: #c6ff00; stroke-dasharray: 4 5; opacity: .45; }
.vmodel .arm { stroke: #3a3f44; stroke-width: 2; fill: none; }
.vmodel .lbl { fill: #a3a8ac; font: 500 10px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; }
.vpanel { border: 1px solid var(--line-soft); background: var(--surface-raised); padding: 20px 22px; min-height: 100%; }
.vpanel h4 { font: 800 22px/1.1 var(--f-display); text-transform: uppercase; margin: 6px 0 4px; }
.vpanel .iso { font: 500 12px/18px var(--f-mono); color: var(--ink-muted); margin: 0 0 12px; }
.vpanel p { margin: 0 0 12px; }
.vpanel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.vpanel li { border-left: 3px solid var(--hivis); padding-left: 10px; }
.evi { font: inherit; color: var(--hivis-text); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 700; }
.evi:hover { color: var(--ink); }
.trace { width: 100%; border-collapse: collapse; font-size: 15px; }
.trace th, .trace td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.trace thead th { font: 600 11px/16px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); border-bottom: 2px solid var(--line); }
.trace td.m { white-space: nowrap; font: 500 12px/18px var(--f-mono); }
.trace .m span { display: inline-block; min-width: 22px; text-align: center; border: 1px solid var(--line-soft); margin-right: 3px; color: var(--ink-muted); }
.trace .m span.on { background: var(--hivis); border-color: var(--hivis); color: var(--on-hivis); }
.trace .p { font-weight: 700; }
.trace .iso { font: 500 12px/18px var(--f-mono); color: var(--ink-muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 500 12px/18px var(--f-mono); color: var(--ink-muted); margin-top: 12px; }
.legend b { color: var(--ink); }
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.case ol { margin: 0; padding: 0; list-style: none; counter-reset: c; display: grid; gap: 14px; }
.case ol li { counter-increment: c; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
.case ol li::before { content: counter(c, decimal-leading-zero); font: 500 13px/22px var(--f-mono); color: var(--hivis-text); }
.case ol b { display: block; }
.bdd { background: var(--asphalt); padding: 12px; }
.bdd svg { width: 100%; height: auto; display: block; }
.bdd figcaption { color: #a3a8ac; font: 500 12px/18px var(--f-mono); margin-top: 8px; }
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line-soft); margin-top: 16px; }
.numbers div { padding: 14px; border-right: 1px solid var(--line-soft); }
.numbers div:last-child { border-right: 0; }
.numbers b { display: block; font: 800 clamp(24px, 3.4vw, 36px)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.numbers span { font: 500 11px/16px var(--f-mono); text-transform: uppercase; color: var(--ink-muted); }
.limits { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.limits ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.refs { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; }
.refs li { padding-left: 2em; text-indent: -2em; overflow-wrap: anywhere; }
@media (max-width: 860px) { .vgrid, .case, .limits { grid-template-columns: minmax(0, 1fr); } .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); } .numbers div:nth-child(2) { border-right: 0; } .numbers div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); } }

/* 3D airspace behind the hero (simulated traffic, from the Sloper ATC Toolkit site) */
.hero #sky3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; opacity: 1; pointer-events: none; }
.airspace { min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end; cursor: grab; touch-action: pan-y; user-select: none; }
.airspace.drag { cursor: grabbing; }
.airspace .readout { background: rgba(21,24,28,.72); padding: 10px 12px; margin: 0; }
@media (max-width: 900px) { .airspace { min-height: 260px; } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(21,24,28,.9) 0%, rgba(21,24,28,.45) 40%, rgba(21,24,28,0) 65%), linear-gradient(0deg, rgba(21,24,28,.85) 0%, transparent 40%); }
.hero .wrap { z-index: 1; }
.hero .sim3d { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font: 500 11px/16px var(--f-mono); text-transform: uppercase; color: var(--ink-on-panel-muted); }
.hero .sim3d::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); }

/* animation layer: scroll progress, count-up figures and heading wipes */
.prog { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 9999; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #c6ff00, #4fd1c5); box-shadow: 0 0 10px rgba(198,255,0,.7); pointer-events: none; }
html.fx h2.wipe { clip-path: inset(0 100% 0 0); }
html.fx h2.wipe.go { animation: h2wipe .9s cubic-bezier(.2,.7,.2,1) forwards; position: relative; }
html.fx h2.wipe.go::after { content: ""; position: absolute; top: 0; bottom: 0; width: 3px; background: #c6ff00; box-shadow: 0 0 12px #c6ff00; animation: h2scan .9s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes h2wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes h2scan { from { left: 0; opacity: 1; } 90% { opacity: 1; } to { left: 100%; opacity: 0; } }

/* v7: routes, featured three, my role */
.routes { border-bottom: 1px solid var(--line-soft); }
.routes .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-block: 28px; }
.route { display: grid; gap: 6px; text-decoration: none; color: var(--ink); background: var(--surface-raised); border: 1px solid var(--line-soft); border-left: 4px solid var(--c); padding: 18px 20px; transition: border-color .15s ease, transform .15s ease; }
.route:hover, .route:focus-visible { border-color: var(--c); transform: translateY(-2px); }
.route b { font: 800 clamp(22px, 3vw, 30px)/1 var(--f-display); text-transform: uppercase; letter-spacing: -.01em; }
.route .r-k { font: 500 12px/18px var(--f-mono); text-transform: uppercase; color: var(--ink-muted); }
.route .r-go { font: 600 12px/18px var(--f-mono); text-transform: uppercase; color: var(--hivis-text); }
.featured, .role { border-bottom: 1px solid var(--line-soft); }
.featured > .wrap, .role > .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 56px; }
.fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fcard { display: grid; grid-template-rows: auto 1fr; background: var(--surface-raised); border: 1px solid var(--line-soft); border-top: 4px solid var(--hivis); min-width: 0; }
.fcard .screen { position: relative; height: 180px; background: var(--asphalt); overflow: hidden; background-image: radial-gradient(var(--grid) 1px, transparent 1.4px); background-size: 16px 16px; }
.fcard .screen svg { width: 100%; height: 100%; display: block; }
.fcard .src { position: absolute; right: 8px; top: 8px; font: 600 10px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 7px; background: rgba(0,0,0,.65); color: #f2f2ee; }
.fcard .fbody { padding: 18px; display: grid; gap: 12px; align-content: start; }
.fcard h3 { font: 700 24px/1.1 var(--f-display); margin: 0; }
.fcard dl { margin: 0; display: grid; gap: 10px; }
.fcard dt { font: 500 11px/16px var(--f-mono); text-transform: uppercase; color: var(--hivis-text); }
.fcard dd { margin: 0; }
.fcard .ev { display: flex; flex-wrap: wrap; gap: 6px; }
.fcard .ev span { font: 500 12px/18px var(--f-mono); border: 1px solid var(--line-soft); padding: 2px 8px; }
.fcard .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.fcard .btn { min-height: 40px; padding: 10px 14px; font-size: 12px; }
.rolegrid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; }
.mine { margin: 0; padding: 0; list-style: none; counter-reset: m; display: grid; gap: 12px; }
.mine li { counter-increment: m; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
.mine li::before { content: counter(m, decimal-leading-zero); font: 500 13px/24px var(--f-mono); color: var(--hivis-text); }
.mine b { display: block; }
.aibox { border: 1px solid var(--line-soft); padding: 18px; background: var(--surface-raised); display: grid; gap: 10px; align-content: start; }
.aibox h3, .role h3 { font: 700 24px/1.1 var(--f-display); margin: 0 0 8px; }
.aibox ul { margin: 0; padding-left: 18px; }
.aibox .never { border-top: 1px solid var(--line-soft); padding-top: 10px; }
.aibox .never b { color: var(--signal-text); }
.caselink { margin-top: 12px; }
@media (max-width: 900px) { .fgrid, .rolegrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .sitenav a.nx, .sitenav a[href="#featured"], .sitenav a[href="#demos"] { display: none; } }
@media (max-width: 350px) { .sitenav a[href="#apps"] { display: none; } }
@media (max-width: 420px) { .sitenav a[href="#about"] { display: none; } }
@media (max-width: 640px) { .routes .wrap { grid-template-columns: minmax(0, 1fr); } }

/* v11: routes, demos, custom tools, screenshots */
.routes .route { cursor: default; }
.routes .route:hover { transform: none; }
.rl { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.rl a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-soft); }
.rl a::before { content: "→ "; color: var(--hivis-text); }
.rl a:hover { border-color: var(--hivis-text); }
.demos, .custom { border-bottom: 1px solid var(--line-soft); }
.demos > .wrap, .custom > .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 56px; }
.dgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.demo { display: grid; gap: 6px; align-content: start; text-decoration: none; color: var(--ink); background: var(--surface-raised); border: 1px solid var(--line-soft); padding: 0 0 16px; transition: border-color .15s ease, transform .15s ease; }
.demo:hover, .demo:focus-visible { border-color: var(--hivis-text); transform: translateY(-2px); }
.demo img, .demo .noimg { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: top left; display: block; background: var(--asphalt); border-bottom: 1px solid var(--line-soft); margin-bottom: 8px; }
.demo .noimg { display: grid; place-items: center; font: 800 44px/1 var(--f-display); color: var(--hivis); background-image: radial-gradient(var(--grid) 1px, transparent 1.4px); background-size: 16px 16px; }
.demo .dk, .demo b, .demo > span:last-child { padding-inline: 16px; }
.demo .dk { font: 500 11px/16px var(--f-mono); text-transform: uppercase; color: var(--hivis-text); }
.demo b { font: 700 20px/1.15 var(--f-display); }
.demo > span:last-child { color: var(--ink-muted); }
.offer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.offer div { border: 1px solid var(--line-soft); border-top: 3px solid var(--hivis); padding: 14px; background: var(--surface-raised); display: grid; gap: 6px; }
.offer b { font: 700 18px/1.2 var(--f-display); }
.offer span { color: var(--ink-muted); }
.steps4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.enq { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.enq p { margin: 0; color: var(--ink-muted); }
.screen img.shot, .d-screen img.shot { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.d-screen img.shot { height: auto; }
@media (max-width: 900px) { .dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .offer, .steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dgrid, .offer, .steps4 { grid-template-columns: minmax(0, 1fr); } }

/* v15: ASTERIX explainer */
.ax { border-bottom: 1px solid var(--line-soft); }
.ax > .wrap { display: grid; gap: 28px; padding-block: 56px; }
.ax-block { position: relative; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px; background: #0d1014; border: 1px solid #2c2f33; overflow: hidden; }
.ax-rec { display: flex; flex-wrap: wrap; gap: 6px; flex: 3 1 340px; position: relative; padding: 6px; border: 1px dashed #4a5058; }
.ax-rec em { position: absolute; top: -9px; left: 10px; background: #0d1014; padding: 0 6px; font: 500 10px/16px var(--f-mono); color: #9aa3ad; font-style: normal; text-transform: uppercase; letter-spacing: .08em; }
.ax-seg { flex: 1 1 120px; padding: 10px 12px; color: #e9edf1; border-top: 4px solid var(--c); background: #171b21; min-width: 0; }
.ax-seg b { display: block; font: 700 18px/1.1 var(--f-display); color: var(--c); letter-spacing: .02em; }
.ax-seg i { display: block; font: 500 11px/16px var(--f-mono); color: #9aa3ad; font-style: normal; margin: 2px 0 4px; }
.ax-seg span { font-size: 14px; line-height: 19px; }
.ax-seg.cat { --c: var(--sub-tech); } .ax-seg.len { --c: var(--sub-kayak); } .ax-seg.fs { --c: var(--hivis); } .ax-seg.items { --c: var(--sub-outdoors); flex-grow: 2; } .ax-seg.more { --c: #9aa3ad; flex: 1 1 110px; }
.ax-scan { position: absolute; inset: 0 auto 0 0; width: 60px; background: linear-gradient(90deg, transparent, rgba(212,255,30,.18), transparent); pointer-events: none; opacity: 0; }
html.fx .ax-scan { opacity: 1; animation: axScan 4s linear infinite; }
@keyframes axScan { from { transform: translateX(-60px); } to { transform: translateX(calc(100vw)); } }
.ax-lab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.ax-lab h3 { font: 700 20px/1.2 var(--f-display); text-transform: uppercase; margin: 0 0 8px; }
.ax-lab p { margin: 0 0 12px; }
.ax-bits { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; max-width: 460px; }
.ax-bits button { font: 700 18px/1 var(--f-mono); min-height: 52px; border: 1px solid var(--line-soft); background: var(--surface); color: var(--ink-muted); cursor: pointer; padding: 4px 0; }
.ax-bits button small { display: block; font: 500 9px/12px var(--f-mono); margin-top: 4px; text-transform: uppercase; }
.ax-bits button[aria-pressed="true"] { background: var(--hivis); color: #15181c; border-color: #15181c; }
.ax-bits button.fx { border-style: dashed; }
.ax-bits button:focus-visible { outline: 3px solid var(--sub-kayak); outline-offset: 2px; }
.ax-hex { font-family: var(--f-mono); font-size: 14px; }
.ax-items { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; min-height: 40px; }
.ax-items li { padding: 8px 10px; border-left: 4px solid var(--sub-outdoors); background: var(--surface); border-top: 1px solid var(--line-soft); font-size: 14px; }
html.fx .ax-items li { animation: axIn .35s ease-out both; }
@keyframes axIn { from { opacity: 0; transform: translateY(6px); } }
.ax-items li.none { border-left-color: var(--line-soft); color: var(--ink-muted); }
.ax-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ax-cats div { border: 1px solid var(--line-soft); border-top: 3px solid var(--sub-tech); padding: 10px 12px; background: var(--surface); }
.ax-cats b { display: block; font: 700 22px/1.1 var(--f-mono); }
.ax-cats span { font-size: 14px; color: var(--ink-muted); }
@media (max-width: 760px) { .ax-lab { grid-template-columns: minmax(0, 1fr); } .ax-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* v15: how-it-works animated diagrams */
.flow { margin: 10px 0 12px; }
.flow figcaption { font: 500 10px/14px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); margin-bottom: 4px; }
.fsvg { display: block; width: 100%; height: auto; overflow: visible; }
.fsvg .fline { stroke: var(--line-soft); stroke-width: 3; }
.fsvg .fdash { stroke: var(--c, var(--hivis)); stroke-width: 2; stroke-dasharray: 2 8; fill: none; }
.fsvg .fn > circle { fill: var(--surface); stroke: var(--c, var(--hivis)); stroke-width: 2; }
.fsvg .fn .spin { fill: none; stroke: var(--c, var(--hivis)); stroke-width: 1.5; stroke-dasharray: 6 6; opacity: .7; transform-origin: 0 0; }
.fsvg .ic { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fsvg text { font: 600 13px/1 var(--f-body); fill: var(--ink); text-anchor: middle; }
.fsvg .raw { fill: var(--ink-muted); }
.fsvg .dok { fill: var(--c, var(--hivis)); stroke: var(--ink); stroke-width: 1; }
html.fx .fsvg .pk { animation: fpk 3.6s linear infinite; }
html.fx .fsvg .raw { animation: fraw 3.6s linear infinite; }
html.fx .fsvg .dok { animation: fdok 3.6s linear infinite; }
html.fx .fsvg .fdash { animation: fdash 1s linear infinite; }
html.fx .fsvg .spin { animation: fspin 4s linear infinite; }
@keyframes fpk { from { transform: translateX(0); } to { transform: translateX(300px); } }
@keyframes fraw { 0%, 64% { opacity: 1; } 67%, 100% { opacity: 0; } }
@keyframes fdok { 0%, 64% { opacity: 0; } 67%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fdash { to { stroke-dashoffset: -10; } }
@keyframes fspin { to { transform: rotate(360deg); } }
.flow.big .fsvg { max-width: 620px; margin: 4px auto 10px; }
.flow.big ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: fs; }
.flow.big li { counter-increment: fs; border-top: 2px solid var(--c, var(--hivis)); padding-top: 6px; min-width: 0; }
.flow.big li b { display: block; font: 600 14px/18px var(--f-body); }
.flow.big li b::before { content: counter(fs) " "; font: 500 11px/14px var(--f-mono); color: var(--ink-muted); }
.flow.big li span { display: block; font-size: 13px; line-height: 18px; color: var(--ink-muted); margin-top: 3px; }
@media (max-width: 560px) { .flow.big ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* v19-nav: navigation and layout fixes */
/* filter rail sits under the shared menu, and wraps so the search box is never clipped */
.rail { top: 56px; }
.rail .wrap { flex-wrap: wrap; overflow: visible; }
/* heading wipe ends fully open, so the last letter and caret are not clipped */
@keyframes h2wipe { to { clip-path: inset(-8px -40px -8px -8px); } }
/* hero: a dark fade behind the text so aircraft labels never sit under the words */
.hero .wrap > div:first-child { position: relative; z-index: 1; }
.hero .wrap::before { content: ""; position: absolute; top: 0; bottom: 0; left: -100vw; right: 40%; pointer-events: none;
  background: linear-gradient(90deg, rgba(15,17,18,.9) 0, rgba(15,17,18,.9) calc(100% - 180px), rgba(15,17,18,0) 100%); }
@media (max-width: 900px) { .hero .wrap::before { right: -16px; background: rgba(15,17,18,.72); } }
/* compact app cards: picture, name, one line; the full story lives in the pop-up */
.grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.card .screen { height: 110px; }
.card .body { padding: 14px 16px 16px; gap: 8px; }
.card h3 { font-size: 18px; }
.card .tagline { font-size: 15px; line-height: 21px; }
.card .foot { padding-top: 10px; align-items: center; justify-content: space-between; }
.card .foot .btn { padding: 8px 12px; font-size: 12px; }
@media (max-width: 600px) {
  .grid { gap: 10px; }
  .card { display: grid; grid-template-columns: 104px minmax(0, 1fr); border-left: 4px solid var(--c); }
  .card::before { display: none; }
  .card .screen { grid-column: 1; grid-row: 1; }
  .card .body { grid-column: 2; grid-row: 1; }
  .card .screen { height: auto; min-height: 100%; border-bottom: 0; border-right: 1px solid var(--line-soft); }
  .card .screen .clip-tag, .card .screen .src { display: none; }
  .card .body { padding: 12px 14px; gap: 4px; }
  .card h3 { font-size: 16px; margin: 0; }
  .card .tagline { font-size: 14px; line-height: 19px; }
  .card .meta .tag { display: none; }
  .card .foot { border-top: 0; padding-top: 4px; }
}
/* teaser for the Engineering page */
.how-teaser { border-top: 1px solid var(--line-soft); }
.how-teaser .wrap { display: grid; gap: 24px; padding-block: 56px; }
.how-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; }
.how-acts { margin: 0; }
@media (max-width: 640px) { .how-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* anchors land below the sticky menu (and below the filter rail for the catalogue) */
[id] { scroll-margin-top: 72px; }
#apps { scroll-margin-top: 170px; }
@media (max-width: 760px) { #apps { scroll-margin-top: 64px; } }
.rail .search { flex: 0 1 220px; }
/* merch strip */
.kit { border-top: 1px solid var(--line-soft); }
.kit .wrap { padding-block: 48px; display: grid; gap: 20px; }
.kit-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.kit-head h2 { font: 800 clamp(28px, 4vw, 44px)/1 var(--f-display); letter-spacing: -.02em; text-transform: uppercase; margin: 0; }
.kit-head p { margin: 0; color: var(--ink-muted); max-width: 60ch; }
.kit-head a { color: var(--hivis-text); font-weight: 600; }
.kit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kit-item { display: grid; gap: 8px; text-decoration: none; color: var(--ink); border: 1px solid var(--line-soft); background: #e8e6e1; transition: border-color .18s ease, transform .18s ease; }
.kit-item img { width: 100%; height: auto; display: block; }
.kit-item span { padding: 0 12px 12px; font: 500 12px/16px var(--f-mono); text-transform: uppercase; }
.kit-item:hover { border-color: var(--hivis-text); transform: translateY(-3px); }
@media (max-width: 640px) { .kit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .kit-item:hover { transform: none; } }
