/* OpenOHL showcase site.
   No build step. Light and dark via prefers-color-scheme; motion only when
   the visitor allows it, and only on transform and opacity.

   Shape rule: interactive controls are pills (999px), containers 18px,
   inner panels 12px, inline code 6px.
   Layers: hero art 1, hero copy 2, docs drawer 20, sticky nav 50, skip link 100. */

:root {
  --bg: #fbfbfd;
  --bg-alt: #f2f3f6;
  --bg-dark: #0d1117;
  --surface: #ffffff;
  --text: #16181d;
  --text-2: #5a606b;
  --text-3: #5f6571;
  --line: #dfe2e8;
  --accent: #0a6cdc;
  --accent-hover: #0858b4;
  --accent-ink: #ffffff;
  --accent-soft: #e5effc;
  --ok: #1a7f45;
  --warn: #9a5b00;

  /* illustrations */
  --sky0: #dfe9f6;
  --sky1: #f6f8fb;
  --gr0: #d5dccb;
  --gr1: #eef1ea;
  --pylon: #49505c;
  --pt-ground: #8d7a5c;
  --pt-veg: #3f8f4e;
  --ph1: #d9412f;
  --ph2: #d98a00;
  --ph3: #1f6fd1;
  --ew: #6b7280;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 12px 40px rgba(16, 24, 40, .10);
  --nav-h: 52px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
  /* system faces only: nothing is downloaded */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  /* motion: strong ease-out for entering, ease-in-out for moving on screen */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0b0e;
    --bg-alt: #111318;
    --surface: #171a21;
    --text: #f2f4f8;
    --text-2: #a9b0bd;
    --text-3: #9098a6;
    --line: #262b35;
    --accent: #4b9bff;
    --accent-hover: #74b2ff;
    --accent-ink: #00122b;
    --accent-soft: #0f2340;
    --ok: #4cc07a;
    --warn: #f0b04a;

    --sky0: #04070d;
    --sky1: #0c1424;
    --gr0: #151a14;
    --gr1: #070907;
    --pylon: #9aa3b2;
    --pt-ground: #a58d63;
    --pt-veg: #5cbf6b;
    --ph1: #ff6a55;
    --ph2: #ffb22e;
    --ph3: #4ea1ff;
    --ew: #8b93a1;

    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 40px rgba(0, 0, 0, .55);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--accent-soft);
  padding: .1em .35em;
  border-radius: 6px;
}

h1, h2, h3 { margin: 0; letter-spacing: -0.022em; font-family: var(--display); text-wrap: balance; }
p, li, dd, figcaption { text-wrap: pretty; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow { max-width: 900px; }
.center { text-align: center; }
.center .section-lede { margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 44px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
  cursor: pointer; text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-link { background: none; color: var(--accent); padding: 0 6px; }
.btn-link:hover { text-decoration: underline; }
.btn-sm { min-height: 32px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ------------------------------------------------------------ sub-nav */
.subnav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
}
.subnav.is-stuck { border-bottom-color: var(--line); }
.subnav-inner {
  max-width: var(--max); height: 100%; margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.subnav nav { margin-left: auto; }
.subnav-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 2px;
}
.subnav-links a {
  display: block; padding: 6px 9px; border-radius: 8px;
  color: var(--text-2); font-size: 13px; white-space: nowrap;
}
.subnav-links a:hover { color: var(--text); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .subnav-links a:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
}
.subnav-links a[aria-current="true"] { color: var(--text); font-weight: 600; }
.subnav-toggle {
  display: none;
  margin-left: auto;
  background: none; border: 0; color: var(--text-2); cursor: pointer;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 10px;
}
.subnav-toggle svg { transition: transform 200ms var(--ease-out); }
.subnav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* the sub-nav folds into a menu before its links would run under the button */
@media (max-width: 1140px) {
  .subnav-toggle { display: inline-flex; }
  .subnav nav { margin-left: 0; }
  .subnav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: var(--nav-h);
    flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .subnav-links.open { display: flex; transform-origin: top center; }
  .subnav-links a { padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .subnav-links li:last-child a { border-bottom: 0; }
}

/* ------------------------------------------------------------ hero */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  min-height: min(92dvh, 900px);
  display: flex; flex-direction: column; justify-content: flex-start;
  overflow: hidden;
  background: var(--sky1);
}
.hero-copy {
  position: relative; z-index: 2;
  max-width: 880px; margin: 0 auto;
  padding: clamp(40px, 8vh, 88px) var(--gutter) 0;
  text-align: center;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 15px; font-weight: 600; letter-spacing: 0;
}
.hero h1 {
  font-size: clamp(56px, 10vw, 112px);
  font-weight: 700; line-height: 1; letter-spacing: -0.045em;
}
/* the full name, set as the hero's one small line */
.hero-name { font-size: clamp(14px, 1.6vw, 16px); color: var(--text-2); font-weight: 500; }
.hero-name b { color: var(--text); font-weight: 650; }
.hero-lede {
  margin: 16px 0 0;
  font-family: var(--display);
  font-size: clamp(24px, 3.4vw, 36px); font-weight: 600;
  line-height: 1.15; letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero-sub {
  margin: 16px auto 0; max-width: 34em;
  color: var(--text-2); font-size: clamp(16px, 1.7vw, 19px);
}
.hero-cta {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 12px 18px; justify-content: center; align-items: center;
}
.hero-visual {
  position: relative; z-index: 1;
  margin-top: auto;
  height: clamp(280px, 48vh, 520px);
}
/* Wide screens: tall enough for the whole pylon heads and earth wire
   (the drawing is cut from the top; phones keep their own height). */
@media (min-width: 601px) {
  .hero-visual { height: max(clamp(280px, 48vh, 520px), 36vw); }
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art .sky0 { stop-color: var(--sky0); }
.hero-art .sky1 { stop-color: var(--sky1); }
.hero-art .gr0 { stop-color: var(--gr0); }
.hero-art .gr1 { stop-color: var(--gr1); }
.hero-art > rect:first-of-type { fill: var(--sky1); }
.hero-art .pts-ground { fill: var(--pt-ground); opacity: .55; }
.hero-art .pts-veg { fill: var(--pt-veg); opacity: .8; }
.pyl, .lv-mem, .lv-mem3 { fill: none; stroke: var(--pylon); stroke-width: 1.1; stroke-linecap: round; }
.ins, .lv-str { stroke: var(--text-3); stroke-width: 2; }
.wire { fill: none; stroke-width: 1.6; }
.wire.ph1 { stroke: var(--ph1); }
.wire.ph2 { stroke: var(--ph2); }
.wire.ph3 { stroke: var(--ph3); }
.wire.ew { stroke: var(--ew); stroke-width: 1.2; }
/* the hero fades to the page below */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; z-index: 1;
  background: linear-gradient(to bottom, transparent, var(--bg-alt));
  pointer-events: none;
}

/* ------------------------------------------------------------ bands */
/* One theme per page: sections alternate between two tones of it.
   Bottom padding is a little larger than the top, to sit optically even. */
.band { --band-bg: var(--bg); padding: clamp(80px, 11vw, 144px) 0 clamp(88px, 12vw, 160px); background: var(--band-bg); }
.band-alt { --band-bg: var(--bg-alt); }
.section-title {
  font-size: clamp(36px, 5.6vw, 64px);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.04em;
}
.section-lede {
  margin: 20px 0 0; max-width: 36em;
  font-size: clamp(18px, 2vw, 21px); line-height: 1.5;
  color: var(--text-2); font-weight: 400;
}
.muted { color: var(--text-3); }
.fine { margin: 40px 0 0; font-size: 14px; color: var(--text-3); max-width: 62ch; }

/* ------------------------------------------------------------ screenshots */
.screen { margin: 56px 0 0; }
.screen img {
  width: 100%;
  aspect-ratio: auto 1400 / 900;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #111;
}
.screen figcaption, .art-figure figcaption {
  margin-top: 14px; font-size: 14px; color: var(--text-3); text-align: center;
}
.showcase { padding-top: 40px; }
.showcase .section-title, .showcase .section-lede { text-align: center; margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------ workflow */
.steps {
  list-style: none; padding: 0; margin: 64px 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
}
.step-n {
  display: block; font-family: var(--mono); font-size: 13px; color: var(--accent);
  font-variant-numeric: tabular-nums; margin-bottom: 18px;
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
/* seven steps: the first one leads, so the grid closes without a gap */
@media (min-width: 1001px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step:first-child { grid-row: span 2; display: flex; flex-direction: column; background: var(--accent-soft); border-color: transparent; }
  .step:first-child h3 { font-size: 26px; margin-top: auto; }
  .step:first-child .step-n { color: var(--accent-hover); }
}
.step p { margin: 0; color: var(--text-2); font-size: 15.5px; }

/* ------------------------------------------------------------ gallery */
.gallery { margin-top: 56px; }
.gallery-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  padding: 4px; margin: 0 auto; width: fit-content; max-width: 100%;
  border: 1px solid var(--line); border-radius: 999px;
}
.gallery-tabs button {
  font: inherit; font-size: 14px; font-weight: 500;
  color: var(--text-2); background: none; border: 0;
  padding: 8px 16px; min-height: 40px; border-radius: 999px; cursor: pointer;
  transition: transform 160ms var(--ease-out);
}
.gallery-tabs button:active, .levels-switch button:active { transform: scale(0.97); }
.gallery-tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); }
@media (hover: hover) and (pointer: fine) {
  .gallery-tabs button[aria-selected="false"]:hover,
  .levels-switch button[aria-checked="false"]:hover { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
}
.gallery-panels .screen { margin-top: 28px; }

.features3 {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 40px;
}
.features3 > div { border-top: 1px solid var(--line); padding-top: 20px; }
.features3 h3 { font-size: 20px; margin-bottom: 8px; }
.features3 p { margin: 0; color: var(--text-2); }

/* ------------------------------------------------------------ levels */
.levels { margin-top: 56px; }
.levels-switch {
  display: flex; gap: 6px; padding: 4px; width: fit-content; max-width: 100%;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.levels-switch button {
  font: inherit; font-size: 15px; font-weight: 600;
  min-height: 40px; padding: 0 20px; border-radius: 999px;
  border: 0; background: none; color: var(--text-2); cursor: pointer;
  transition: transform 160ms var(--ease-out);
}
.levels-switch button[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); }
.levels-stage {
  margin-top: 24px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 4vw, 48px);
}
.levels-art { max-width: 360px; width: 100%; margin: 0 auto; }
.lvl-art { width: 100%; height: auto; display: block; }
.lvl-art .lv-ground { stroke: var(--line); stroke-width: 2; }
.lvl-art .lv-stick { stroke: var(--pylon); stroke-width: 3; stroke-linecap: round; }
.lvl-art .lv-mem { stroke-width: 1.1; }
.lvl-art .lv-mem3 { stroke-width: 2.1; stroke: var(--accent); }
.lvl-art .lv-pt { fill: var(--ph2); }
.lvl-art .lv-wp { fill: var(--ph3); }
.lvl-art .lv-joint { fill: var(--pylon); }
.lvl-art .lv-sup { fill: var(--ok); }
.lvl-art .lv-lbl { fill: var(--text-2); font: 500 13px var(--mono); }
.levels-text h3 { font-size: clamp(26px, 3.2vw, 34px); margin-bottom: 12px; }
.levels-text p { margin: 0 0 12px; font-size: 17px; }
/* a level swap is a quick cross-fade: it is often repeated, so it stays short */
.lvl:not([hidden]), .lvl-copy:not([hidden]) { animation: fadein 200ms var(--ease-out) both; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ split */
.split {
  margin-top: 72px;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: center;
}
.split .screen { margin: 0; }
.split-copy h3 { font-size: 24px; margin-bottom: 12px; }
.split-copy p { color: var(--text-2); }
.split-rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 0; }
#together .split { align-items: start; grid-template-columns: 1fr 1fr; }

.ticks { list-style: none; padding: 0; margin: 24px 0 0; }
.ticks li {
  position: relative; padding-left: 30px; margin: 0 0 14px; color: var(--text-2);
}
.ticks li strong { color: var(--text); font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 16px; height: 9px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg) translate(2px, -2px);
}

/* ------------------------------------------------------------ art figures */
.art-figure { margin: 56px 0 0; }
.art-figure svg { width: 100%; height: auto; display: block; }
.art-figure.small { margin: 0 0 8px; }
.clr-art {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.clr-art .c-gnd { fill: var(--gr0); opacity: .8; }
.clr-art .c-pts { fill: var(--pt-ground); opacity: .6; }
.clr-art .c-veg { fill: var(--pt-veg); }
.clr-art .c-str { stroke: var(--pylon); stroke-width: 3; stroke-linecap: round; }
.clr-art .c-wire { fill: none; stroke: var(--ph1); stroke-width: 2.4; }
.clr-art .c-dim { stroke: var(--accent); stroke-width: 1.8; stroke-dasharray: 5 4; }
.clr-art .c-arrow { fill: none; stroke: var(--accent); stroke-width: 1.8; }
.clr-art .c-lbl { fill: var(--accent); font: 600 14px var(--font); }
.clr-art .c-cap { fill: var(--text-3); font: 600 13px var(--font); text-transform: uppercase; letter-spacing: .06em; }
.clr-art .c-gl { stroke: var(--line); stroke-width: 2; }
.clr-art .c-near { fill: none; stroke: var(--accent); stroke-width: 2; }
.clr-art .c-windarrow { fill: none; stroke: var(--text-3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.clr-art line.c-step { stroke: var(--ph1); stroke-width: 1.6; opacity: .35; }
.clr-art circle.c-step { fill: var(--ph1); opacity: .35; }
.clr-art .c-step.last { opacity: 1; }

.br-art .br-main { fill: none; stroke: var(--text-3); stroke-width: 3; }
.br-art .br-alt { fill: none; stroke: var(--accent); stroke-width: 3; }
.br-art .br-rev { fill: var(--band-bg, var(--bg)); stroke: var(--text-3); stroke-width: 3; }
.br-art .br-rev.alt { stroke: var(--accent); }
.br-art .br-lbl { fill: var(--text-2); font: 500 14px var(--font); }
.br-art .br-tag { fill: var(--accent-soft); stroke: var(--accent); }
.br-art .br-tagt { fill: var(--accent-hover); font: 600 12px var(--font); text-anchor: middle; }

/* ------------------------------------------------------------ numbers */
.numbers { padding: clamp(64px, 9vw, 112px) 0 clamp(72px, 10vw, 128px); }
.stats {
  margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px;
}
.stat { margin: 0; display: flex; flex-direction: column-reverse; gap: 10px; border-top: 1px solid var(--line); padding-top: 20px; }
.stat dt { color: var(--text-2); font-size: 15px; font-weight: 500; max-width: 22ch; }
.stat dd { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.stat .big {
  font-family: var(--display);
  font-size: clamp(52px, 7vw, 80px); font-weight: 700; letter-spacing: -0.045em; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--text);
}
.stat .unit { font-size: 20px; font-weight: 600; color: var(--accent); }

/* ------------------------------------------------------------ cards */
.cards {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px;
}
/* Engineering: a bento with one wide cell per row-pair, not six equal boxes */
@media (min-width: 901px) {
  .cards-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards-bento .card-wide { grid-column: span 2; }
  .cards-bento .card-full { grid-column: 1 / -1; }
}
.card-tint { background: var(--accent-soft) !important; border-color: transparent !important; }
.card-full .chips { margin-top: 12px; }
/* Open source: three plain columns under a hairline, no boxes */
.cols-3 { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 40px; }
.cols-3 > div { border-top: 2px solid var(--accent); padding-top: 20px; }
.cols-3 h3 { font-size: 20px; margin-bottom: 8px; }
.cols-3 p { margin: 0; color: var(--text-2); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.band-alt .card { background: var(--surface); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  font-size: 13px; font-weight: 500; color: var(--text-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
}

/* ------------------------------------------------------------ code card */
.code-card {
  margin: 0;
  background: #0b0d12; color: #e6e9ef;
  border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid #262b35;
  overflow: hidden;
}
.code-card figcaption {
  display: flex; align-items: center;
  padding: 12px 22px; border-bottom: 1px solid #262b35;
}
.code-card .code-name { font: 500 13px var(--mono); color: #a9b0bd; }
.code-card pre {
  margin: 0; padding: 20px 22px; overflow-x: auto;
  font: 14px/1.7 var(--mono);
}
.code-card code { background: none; padding: 0; font-size: inherit; }
.tk-s { color: #8ec5ff; }
.tk-q { color: #7fd99a; }
.tk-k { color: #ffb22e; }
.tk-c { color: #7d8594; }

/* ------------------------------------------------------------ roadmap */
/* Roadmap: a two-column list under hairlines, not a wall of cards */
.roadmap {
  list-style: none; padding: 0; margin: 48px 0 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px;
}
.roadmap li { border-top: 1px solid var(--line); padding: 20px 0 24px; }
.roadmap h3 { font-size: 19px; margin: 0 0 6px; }
.roadmap p { margin: 0; color: var(--text-2); font-size: 15.5px; max-width: 46ch; }
/* Status: what was added beside what is coming, both top-aligned */
.status-split { align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 56px; }
.status-split .ticks { margin-top: 8px; }
.further { margin-top: 48px; }
.further .fine { margin: 4px 0 12px; }
.roadmap-1 { grid-template-columns: 1fr; margin-top: 8px; }
.roadmap h4 { font-size: 18px; margin: 0 0 6px; font-weight: 650; }
.badge {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .02em;
  color: var(--warn); border: 1px solid currentColor; border-radius: 999px; padding: 2px 10px;
}

/* ------------------------------------------------------------ configurator */
.get .section-title, .get .section-lede { text-align: center; margin-left: auto; margin-right: auto; }
.config {
  margin-top: 64px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 40px; align-items: start;
}
.config-group { border: 0; padding: 0; margin: 0 0 40px; min-width: 0; }
.config-group legend {
  font-family: var(--display);
  font-size: 22px; font-weight: 650; letter-spacing: -0.02em; padding: 0; margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.cg-n {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-hover); font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.options { display: grid; gap: 12px; }
.options-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.options-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.options-1 { grid-template-columns: 1fr; }
.option { position: relative; display: block; cursor: pointer; }
.option input {
  position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
.option-body {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 20px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--surface);
  transition: transform 160ms var(--ease-out);
}
.option:active .option-body { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) {
  .option:hover .option-body { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
}
.option input:checked + .option-body {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.option input:focus-visible + .option-body { outline: 3px solid var(--accent); outline-offset: 3px; }
.option-icon {
  width: 32px; height: 32px; margin-bottom: 8px;
  fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.option-title { font-weight: 600; font-size: 17px; }
.option-sub { color: var(--text-2); font-size: 14px; }
.option-flag {
  align-self: flex-start; margin-top: 8px;
  font-size: 12px; font-weight: 600; color: var(--warn);
  border: 1px solid currentColor; border-radius: 999px; padding: 1px 9px;
}
.option-flag.ok { color: var(--ok); }
.option-check .option-body { padding: 16px 20px 16px 56px; }
.option-check .option-body::before {
  content: ""; position: absolute; left: 20px; top: 18px;
  width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--text-3);
}
.option-check input:checked + .option-body::before {
  background: var(--accent); border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.summary { min-width: 0; position: sticky; top: calc(var(--nav-h) + 20px); }
.summary-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.summary-kicker { margin: 0; color: var(--text-3); font-size: 14px; font-weight: 500; }
.summary-title { font-size: 22px; margin: 4px 0 18px; }
.summary-body p { margin: 0 0 8px; color: var(--text-2); font-size: 15px; }
.cmd-steps { margin: 0; padding-left: 22px; }
.cmd-steps li { margin-bottom: 14px; color: var(--text-2); }
.cmd-steps li::marker { color: var(--accent); font-weight: 700; }
.cmd {
  margin: 6px 0 0; padding: 14px 16px; border-radius: 12px;
  background: #0b0d12; color: #e6e9ef; border: 1px solid #262b35;
  font: 12.5px/1.65 var(--mono);
  overflow-x: auto; white-space: pre;
  scrollbar-width: thin; scrollbar-color: #3a404c transparent;
}
.cmd-steps .aside { margin: 10px 0 0; font-size: 14px; }
.cmd code { background: none; padding: 0; font-size: inherit; color: inherit; }
.summary-actions { display: grid; gap: 10px; margin-top: 18px; }
.summary-note { margin: 16px 0 0; font-size: 13px; color: var(--text-3); }
.notice {
  border-radius: 12px; padding: 14px 16px; margin-bottom: 12px;
  background: color-mix(in srgb, var(--warn) 12%, transparent);
  color: var(--text); font-size: 15px;
}

.docs-links { margin-top: 64px; }
.docs-links > h3 { font-size: 28px; margin-bottom: 20px; }
.link-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px;
}
.link-grid a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 18px 20px; border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line);
  transition: transform 160ms var(--ease-out);
}
.link-grid a:active { transform: scale(0.98); }
.link-grid a:hover { text-decoration: none; border-color: var(--accent); }
.lg-t { font-weight: 600; }
.lg-t::after { content: " ›"; color: var(--accent); display: inline-block; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-grid a:hover .lg-t::after { transform: translateX(3px); }
}
.lg-s { color: var(--text-2); font-size: 14px; }

/* ------------------------------------------------------------ footer */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14px; color: var(--text-2); }
.footer-name { font-weight: 500; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.footer-top p { margin: 0; }
.footer-cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.footer h2 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 10px; letter-spacing: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--text); }
.footer p a { color: var(--accent); }
.footer-fine { margin: 20px 0 0; font-size: 12.5px; color: var(--text-3); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 900px) {
  .levels-stage { grid-template-columns: 1fr; }
  .split, .split-rev, #together .split { grid-template-columns: 1fr; gap: 32px; }
  .config { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .options-3 { grid-template-columns: 1fr; }
  .options-2 { grid-template-columns: 1fr; }
  .option-icon { display: none; }
  .levels-switch button { padding: 0 14px; font-size: 14px; }
  .subnav .btn-sm { padding: 0 12px; }
  .gallery-tabs { border-radius: 16px; }
  .hero { min-height: 0; }
  .hero-visual { height: 240px; margin-top: 24px; }
  .roadmap { grid-template-columns: 1fr; }
  .stats { gap: 28px; }
}
@media (max-width: 380px) {
  .brand span { font-size: 16px; }
  .subnav-inner { gap: 6px; }
}

/* ------------------------------------------------------------ motion */
@media (prefers-reduced-motion: no-preference) {
  /* Scroll reveals: a short rise, once. Marketing motion may be longer than
     UI motion, but it never blocks reading. */
  .js .reveal {
    opacity: 0; transform: translateY(16px);
    transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
    transition-delay: var(--rd, 0s);
  }
  .js .reveal-zoom { transform: translateY(24px) scale(.98); }
  .js .reveal.in { opacity: 1; transform: none; }

  /* Hero: the pylons rise, then the wires are strung phase by phase
     (opacity only; nothing animates layout or paint-heavy properties). */
  .js .pylons { animation: rise 900ms var(--ease-out) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  .js .wire { animation: string 700ms var(--ease-out) both; animation-delay: calc(.45s + var(--d, 0s)); }
  @keyframes string { from { opacity: 0; } to { opacity: 1; } }
  .js .hero-copy > * { animation: rise 700ms var(--ease-out) both; }
  .js .hero-copy > :nth-child(2) { animation-delay: 60ms; }
  .js .hero-copy > :nth-child(3) { animation-delay: 120ms; }
  .js .hero-copy > :nth-child(4) { animation-delay: 180ms; }
  .js .hero-copy > :nth-child(5) { animation-delay: 240ms; }

  /* the section menu on narrow screens drops in from its trigger */
  .subnav-links.open { animation: menu-in 180ms var(--ease-out); }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

  .clr-art .c-step { transition: opacity 400ms ease; }
  .clr-art.play .c-step { animation: step 4.2s infinite; animation-delay: calc(var(--i) * .45s); }
  @keyframes step { 0%, 8% { opacity: 1; } 25%, 100% { opacity: .35; } }
  .clr-art.play .c-step.last { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lvl:not([hidden]), .lvl-copy:not([hidden]) { animation: none; }
}

/* Links inside running text are underlined (not told apart by colour only). */
p a, li p a, .ticks a, .footer p a, .footer-fine a, .doc p a, .doc li a, .doc td a, .legal li a { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
/* Scrollable code can be reached with the keyboard. */
pre[tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.legal { max-width: 720px; margin: 0 auto; padding: clamp(48px, 8vw, 88px) var(--gutter) 88px; }
.legal h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; letter-spacing: -0.035em; margin-bottom: 10px; }
.legal-name { margin: 0 0 6px; color: var(--text-2); font-weight: 500; }
.legal section { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 8px; }
.legal h2 { font-size: 24px; letter-spacing: -0.02em; margin: 28px 0 12px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.legal h3 { font-size: 16px; margin: 26px 0 6px; color: var(--text); }
.legal p, .legal li { color: var(--text-2); line-height: 1.65; }
.legal ul { padding-left: 22px; }
.legal li { margin: 4px 0; }
.legal .updated { color: var(--text-3); font-size: 14px; }
.legal .fill { background: #fff3c4; color: #5a4300; padding: 0 4px; border-radius: 4px; font-weight: 600; }
/* the legal page has no menu script: its two links stay in the bar */
@media (max-width: 1140px) {
  .subnav .subnav-links.legal-links {
    display: flex; position: static; flex-direction: row; gap: 2px;
    padding: 0; background: none; border: 0; box-shadow: none;
  }
  .subnav nav:has(.legal-links) { margin-left: auto; }
  .legal-links a { border: 0; padding: 6px 8px; font-size: 14px; }
}
@media (max-width: 480px) {
  .subnav:has(.legal-links) .btn-sm { display: none; }
}
.legal address { font-style: normal; color: var(--text); line-height: 1.6; }

/* Status: everything in active development */
.hero-status { margin: 10px 0 0; font-size: 14.5px; color: var(--text-2); max-width: 60ch; }
.badge-dev { display: inline-block; margin: 0 0 10px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--text-2); }
