/* Ground Labs — site styles.
 * Palette: switchgear-grey paper and ink, the product's citation indigo, and two signal colours
 * that only ever mean one thing: yellow is an energized conductor, red is a redline. */
:root {
  --paper: #EEF0EE;
  --sheet: #F8F9F8;
  --ink: #15181C;
  --ink-2: #4A5158;
  --rule: #C9CECC;
  --ansi61: #8E9593;
  --graphite: #1D2024;
  --graphite-2: #2A2E33;
  --on-dark: #E6E9E8;
  --on-dark-2: #A3AAA9;
  --cite: #4F55D9;
  --cite-soft: #E3E4FA;
  --energized: #F2B705;
  --redline: #D6342C;
  --ok: #2F7A4D;
  --ok-soft: #DCEFE3;
  --warn: #9A5B07;
  --warn-soft: #F6E8CF;
  --on-cite: #FFFFFF;
  --std-fill: #D4D8D6;
  --hard-shadow: #15181C;
  --halo: .42;
  --soft-shadow: rgba(21, 24, 28, .35);

  --sans: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

/* Dark: "night shift". The same drawing, read on a lit screen in a dark control room. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121518; --sheet: #191D21; --ink: #E4E8E7; --ink-2: #9AA3A2; --rule: #2C3237; --ansi61: #6E7775;
    --graphite: #0C0E10; --graphite-2: #23282D; --on-dark: #E4E8E7; --on-dark-2: #9AA3A2;
    --cite: #8F94F5; --cite-soft: #252848; --redline: #FF6B5E;
    --ok: #74D39A; --ok-soft: #16301F; --warn: #EBB062; --warn-soft: #36280F;
    --on-cite: #0E1030; --std-fill: #2E353A; --hard-shadow: #000000; --halo: .3; --soft-shadow: rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121518; --sheet: #191D21; --ink: #E4E8E7; --ink-2: #9AA3A2; --rule: #2C3237; --ansi61: #6E7775;
  --graphite: #0C0E10; --graphite-2: #23282D; --on-dark: #E4E8E7; --on-dark-2: #9AA3A2;
  --cite: #8F94F5; --cite-soft: #252848; --redline: #FF6B5E;
  --ok: #74D39A; --ok-soft: #16301F; --warn: #EBB062; --warn-soft: #36280F;
  --on-cite: #0E1030; --std-fill: #2E353A; --hard-shadow: #000000; --halo: .3; --soft-shadow: rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--cite); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: -.01em; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; line-height: 1.5; }

.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 6px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.display {
  font-weight: 640;
  font-stretch: 118%;
  font-size: clamp(2.5rem, 5.2vw, 4.6rem);
  line-height: .96;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.display--md { font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1; }
.h2 {
  font-weight: 620;
  font-stretch: 112%;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -.028em;
  text-wrap: balance;
}
.h3 { font-weight: 620; font-stretch: 110%; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; letter-spacing: -.02em; }
.h4 { font-weight: 620; font-stretch: 106%; font-size: 1.1875rem; line-height: 1.25; letter-spacing: -.01em; }
.lede { font-size: clamp(1.125rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.body-lg { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.6; max-width: 38em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1 var(--sans); font-stretch: 108%; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .9375rem; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--cite); color: var(--on-cite); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-stuck { border-bottom-color: var(--rule); }
.nav__inner { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); height: var(--nav-h); display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 680; font-stretch: 110%; font-size: 1.125rem; letter-spacing: -.02em; }
.brand__mark { width: 26px; height: 26px; color: var(--ink); flex: none; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 999px; border: 1px solid var(--rule); background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.icon-btn:hover { border-color: var(--ink-2); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.menu-toggle { display: none; }
.menu-toggle path { transition: transform .25s var(--ease); transform-origin: 12px 12px; }
.nav.is-open .menu-toggle .m1 { transform: translateY(4px) rotate(45deg); }
.nav.is-open .menu-toggle .m2 { transform: translateY(-4px) rotate(-45deg); }
.nav__links a { text-decoration: none; font-size: .9375rem; color: var(--ink-2); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
@media (max-width: 760px) {
  .nav__inner { gap: 12px; }
  .nav__tools { margin-left: auto; }
  .menu-toggle { display: inline-grid; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: var(--nav-h);
    flex-direction: column; gap: 0; margin: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    box-shadow: 0 18px 30px -24px var(--soft-shadow);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
  }
  .nav.is-open .nav__links { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__links a { font-size: 1.125rem; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .nav__links a:last-child { border-bottom: 0; }
}
.brand { white-space: nowrap; }
.nav__links .nav__menu-cta { display: none; }
@media (max-width: 760px) {
  .nav__links .nav__menu-cta { display: flex; justify-content: center; margin-top: 14px; padding: 14px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; }
}
@media (max-width: 420px) {
  .nav__cta { display: none; }
}

/* ---------- hero: a drawing sheet ---------- */
.hero { padding: 12px var(--gutter) clamp(48px, 7vw, 96px); }
.sheet-frame {
  position: relative;
  max-width: 1400px; margin-inline: auto;
  border: 1.5px solid var(--ink);
  padding: clamp(44px, 4.5vw, 72px) clamp(28px, 4.5vw, 64px) clamp(36px, 4vw, 56px);
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    var(--ink);
}
.sheet-frame::before { /* inner border, as on a real sheet */
  content: ""; position: absolute; inset: 22px; border: 1px solid var(--rule); pointer-events: none;
}
.zones { position: absolute; display: flex; font: 500 .6875rem/1 var(--mono); color: var(--ansi61); pointer-events: none; }
.zones span { flex: 1; display: grid; place-items: center; }
.zones--top { left: 22px; right: 22px; top: 0; height: 22px; }
.zones--top span + span { border-left: 1px solid var(--rule); }
.zones--left { flex-direction: column; top: 22px; bottom: 22px; left: 0; width: 22px; }
.zones--left span + span { border-top: 1px solid var(--rule); }

.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__kicker { color: var(--ink-2); font-size: 1rem; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.hero__kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--energized); box-shadow: 0 0 0 4px color-mix(in srgb, var(--energized) 25%, transparent); flex: none; }
.hero__copy .display { margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__visual { position: relative; }
.hero__caption { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: .875rem; color: var(--ink-2); justify-content: center; }
.hint-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cite); animation: hint 2.4s var(--ease) infinite; }
@keyframes hint { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cite) 45%, transparent); } 60% { box-shadow: 0 0 0 8px transparent; } }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; margin-inline: auto; width: 100%; }
}
@media (max-width: 560px) {
  .hero { padding-inline: 10px; }
  .sheet-frame { padding: 48px 22px 32px 30px; }
  .sheet-frame::before { inset: 22px 0 0 22px; border-right: 0; border-bottom: 0; }
  .zones--top span:nth-child(n+5) { display: none; }
}

/* single-line diagram */
.sld { width: 100%; height: auto; overflow: visible; }
.sld .draw line, .sld .draw rect, .sld .draw circle, .sld .draw path {
  fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.sld .draw .bus { stroke-width: 4.5; }
.sld text { font-family: var(--mono); fill: var(--ink); }
.sld .t-tag { font-size: 13px; font-weight: 500; }
.sld .t-note { font-size: 11px; fill: var(--ink-2); font-family: var(--sans); font-stretch: 100%; }
.sld .hit { fill: transparent; stroke: none; }
.sld .equip { cursor: pointer; outline: none; }
.sld .equip .draw rect, .sld .equip .draw circle { transition: fill .2s, stroke .2s; }
.sld .equip:hover .draw rect, .sld .equip:hover .draw circle,
.sld .equip:focus-visible .draw rect, .sld .equip:focus-visible .draw circle,
.sld .equip.is-on .draw rect, .sld .equip.is-on .draw circle { stroke: var(--cite); fill: var(--cite-soft); }
.sld .equip:hover text, .sld .equip:focus-visible text, .sld .equip.is-on text { fill: var(--cite); }
.sld .equip:focus-visible .hit { stroke: var(--cite); stroke-width: 1.5; stroke-dasharray: 3 3; }

.sld .live path, .sld .live circle { fill: none; stroke: var(--energized); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; opacity: var(--halo); }

/* the one orchestrated moment: draw the sheet, then energize it */
.js .sld .draw line, .js .sld .draw rect, .js .sld .draw circle, .js .sld .draw path {
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.js .sld .draw text { opacity: 0; }
.js .sld .live path, .js .sld .live circle { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .sld.is-drawn .draw line, .js .sld.is-drawn .draw rect, .js .sld.is-drawn .draw circle, .js .sld.is-drawn .draw path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .7s var(--ease) calc(var(--d, 0) * 110ms + 150ms);
}
.js .sld.is-drawn .draw text { opacity: 1; transition: opacity .6s ease 1.1s; }
.js .sld.is-drawn .live path, .js .sld.is-drawn .live circle { stroke-dashoffset: 0; transition: stroke-dashoffset .5s cubic-bezier(.5, 0, .4, 1) calc(var(--e, 0) * 260ms + 1.6s); }

/* equipment tooltip */
.tip {
  position: absolute; z-index: 5; width: min(260px, 100%);
  background: var(--sheet); border: 1px solid var(--ink); border-radius: 10px;
  padding: 14px 16px 16px; box-shadow: 6px 6px 0 var(--hard-shadow);
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
  animation: tip-in .18s var(--ease);
}
.tip[hidden] { display: none; }
.tip.is-below { transform: translate(-50%, 14px); }
@keyframes tip-in { from { opacity: 0; } }
.tip__tag { font-weight: 500; color: var(--cite); font-size: .875rem; }
.tip__name { font-weight: 600; font-stretch: 104%; line-height: 1.3; margin: 2px 0 10px; }
.tip__std { font-size: .875rem; color: var(--ink-2); margin-bottom: 10px; }
.tip__std .mono { color: var(--ink); }
.tip__note { margin-top: 10px; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 999px; line-height: 1.4; width: fit-content; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--ok { color: var(--ok); background: var(--ok-soft); }
.pill--warn { color: var(--warn); background: var(--warn-soft); }

/* ---------- problem ---------- */
.problem { padding-block: clamp(72px, 10vw, 140px); }
.problem__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.problem .h2 { margin-bottom: 28px; }
.problem .body-lg + .body-lg { margin-top: 18px; }
.package { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: clamp(18px, 3vw, 32px); }
.package__grid { width: 100%; height: auto; }
.package__grid rect { rx: 1.5; }
.package__grid .eng { fill: none; stroke: var(--cite); stroke-width: 1.4; }
.package__grid .std { fill: var(--std-fill); }
.package figcaption { margin-top: 20px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 12px; font-size: .9375rem; }
.legend li { display: flex; align-items: center; gap: 8px; }
.sw { width: 14px; height: 18px; border-radius: 2px; flex: none; }
.sw--eng { border: 1.5px solid var(--cite); }
.sw--std { background: var(--std-fill); }
@media (max-width: 900px) { .problem__grid { grid-template-columns: 1fr; } }

/* ---------- platform: sticky sheet ---------- */
.platform { padding-bottom: clamp(48px, 8vw, 120px); border-top: 1px solid var(--rule); padding-top: clamp(72px, 9vw, 128px); }
.platform__title { max-width: 18em; margin-bottom: clamp(24px, 4vw, 48px); }
.platform__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); }
.stage { position: relative; }
.stage__inner {
  position: sticky; top: calc(var(--nav-h) + 24px);
  height: calc(100vh - var(--nav-h) - 48px); max-height: 760px;
  display: flex; flex-direction: column; gap: 14px; justify-content: center;
}
.stage__tabs { display: inline-flex; align-self: flex-start; padding: 4px; gap: 2px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 999px; }
.stage__tabs button {
  font: 600 .9375rem/1 var(--sans); font-stretch: 106%; color: var(--ink-2);
  background: none; border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.stage__tabs button:hover { color: var(--ink); }
.stage__tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }

.schem { width: 100%; height: auto; max-height: calc(100% - 60px); background: var(--sheet); border-radius: 6px; box-shadow: 0 1px 0 var(--rule), 0 24px 60px -30px var(--soft-shadow); }
.schem text { font-family: var(--sans); fill: var(--ink); }
.schem .frame { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.schem .frame--in { stroke-width: 1; stroke: var(--ansi61); }
.schem .w { stroke: var(--ink); stroke-width: 1.6; }
.schem .s-title { font-size: 26px; font-weight: 600; font-stretch: 108%; letter-spacing: -.01em; }
.schem .s-sub, .schem .s-lbl { font-size: 13px; }
.schem .s-note { font-size: 10.5px; fill: var(--ink-2); }
.schem .tb rect, .schem .tb line { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.schem .tb-owner { font-size: 15px; font-weight: 600; }
.schem .tb-t { font-size: 12px; }
.schem .tb-n { font-size: 15px; font-family: var(--mono); }
.schem .tb-s { font-size: 11px; fill: var(--ink-2); }
.schem .term { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.6; }
.schem .aux { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.6; }
.schem .wl { font-family: var(--mono); font-size: 12.5px; }
.schem .c { stroke: var(--ink); stroke-width: 1.8; }
.schem .s-ct { font-size: 11px; text-anchor: middle; fill: var(--ink-2); }
.schem .s-in { font-size: 12px; text-anchor: middle; }
.schem .relay { fill: none; stroke: var(--ansi61); stroke-width: 1.2; stroke-dasharray: 6 4; }
.schem .s-relay { text-anchor: middle; }
.schem .ph { fill: var(--cite); font-family: var(--mono); font-weight: 500; }
.schem .tbn-new { fill: var(--cite); font-weight: 600; }

/* template ↔ value swap; values stagger in as if typed */
.schem .tpl, .schem .val { transition: opacity .35s var(--ease) calc(var(--i, 0) * 70ms); }
.schem .val { opacity: 0; }
.schem:not([data-state="ask"]) .tpl { opacity: 0; transition-delay: 0s; }
.schem:not([data-state="ask"]) .val { opacity: 1; }

.schem .ov { opacity: 0; transition: opacity .4s var(--ease); }
.schem[data-state="ask"] .ov-ask, .schem[data-state="review"] .ov-review { opacity: 1; }
.schem .hl { stroke: var(--cite); stroke-width: 5; stroke-linecap: round; opacity: .55; }
.schem .leader { stroke: var(--cite); stroke-width: 1.5; }
.schem .balloon { fill: var(--cite); }
.schem .balloon-n { fill: var(--on-cite); font-size: 15px; font-weight: 700; text-anchor: middle; }
.schem .cloud { fill: none; stroke: var(--redline); stroke-width: 2; stroke-linejoin: round; }
.schem .redline { fill: var(--redline); font-size: 15px; font-style: italic; font-weight: 500; font-stretch: 90%; }
.schem .redline-l { stroke: var(--redline); stroke-width: 1.5; }
.schem .tbn-old { transition: opacity .3s; }
.schem .strike { stroke: var(--cite); stroke-width: 1.6; opacity: 0; transition: opacity .3s .3s; }
.schem .tbn-new { opacity: 0; transition: opacity .3s .45s; }
.schem[data-state="review"] .strike, .schem[data-state="review"] .tbn-new { opacity: 1; }
.schem[data-state="review"] .tbn-old { fill: var(--ink-2); }
.js .schem[data-state="review"] .cloud { animation: cloud-in .9s var(--ease) both; }
@keyframes cloud-in { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }

.steps { display: flex; flex-direction: column; }
.step { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding-block: 48px; transition: opacity .5s var(--ease); }
.js .step { opacity: .35; }
.js .step.is-active { opacity: 1; }
.step > p { max-width: 32em; }

.mock { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 20px 22px; max-width: 30rem; }
.mock__q { font-weight: 600; font-stretch: 104%; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--rule); }
.mock__a { line-height: 1.55; }
.cite-n { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--cite); color: var(--on-cite); font-size: 11px; font-weight: 700; vertical-align: super; line-height: 1; margin-left: 2px; }
.cite-n--lg { width: 22px; height: 22px; font-size: 12px; vertical-align: middle; margin: 0; }
.mock__src { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; padding: 10px 12px; border-radius: 10px; background: var(--cite-soft); font-size: .875rem; }
.mock__src .mono { color: var(--cite); font-weight: 500; }
.mock__src .pill { margin-left: auto; }
.mock__head { font-weight: 600; font-stretch: 104%; margin-bottom: 14px; }
.binds { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-bottom: 18px; }
.binds dt { font-size: .8125rem; color: var(--ink-2); }
.binds dd { color: var(--cite); font-weight: 500; }
.meter { height: 6px; border-radius: 3px; background: var(--rule); overflow: hidden; margin-bottom: 8px; }
.meter span { display: block; height: 100%; width: var(--p); background: var(--cite); border-radius: 3px; }
.diff { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .9375rem; margin-bottom: 18px; }
.diff__old { text-decoration: line-through; color: var(--ink-2); }
.diff__new { color: var(--cite); font-weight: 500; background: var(--cite-soft); padding: 1px 8px; border-radius: 6px; }
.diff svg { width: 22px; fill: none; stroke: var(--ink-2); stroke-width: 1.6; }
.mock__actions { display: flex; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--rule); font-size: .875rem; font-weight: 600; }
.chip--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }

@media (max-width: 900px) {
  .platform__grid { grid-template-columns: 1fr; gap: 0; }
  .stage { position: sticky; top: var(--nav-h); z-index: 3; background: var(--paper); padding-block: 8px 12px; box-shadow: 0 10px 18px -14px var(--soft-shadow); }
  .stage__inner { position: static; height: auto; max-height: none; gap: 10px; }
  .schem { max-height: 38vh; width: auto; max-width: 100%; align-self: center; }
  .stage__tabs { align-self: center; }
  .step, .js .step { min-height: 0; padding-block: 56px; opacity: 1; }
}

/* ---------- principles (dark) ---------- */
.principles { background: var(--graphite); color: var(--on-dark); padding-block: clamp(80px, 10vw, 144px); }
.principles__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(40px, 6vw, 96px); }
.principles__head .h2 { margin-bottom: 24px; }
.principles__head .body-lg { color: var(--on-dark-2); }
.principles__head { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
.tenets { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--graphite-2); border: 1px solid var(--graphite-2); border-radius: 16px; overflow: hidden; }
.tenets li { background: var(--graphite); padding: clamp(24px, 3vw, 36px); }
.tenets h3 { font-weight: 620; font-stretch: 108%; font-size: 1.25rem; letter-spacing: -.015em; line-height: 1.2; margin: 22px 0 10px; color: #fff; }
.tenets p { color: var(--on-dark-2); }
.glyph { width: 40px; height: 40px; fill: none; stroke: var(--on-dark); stroke-width: 1.6; stroke-linecap: round; }
.glyph text { stroke: none; fill: var(--on-dark); font: 700 14px var(--sans); text-anchor: middle; }
.tenets li:first-child .glyph circle { fill: #8F94F5; stroke: #8F94F5; }
.tenets li:first-child .glyph text { fill: #0E1030; }
@media (max-width: 960px) {
  .principles__grid { grid-template-columns: 1fr; }
  .principles__head { position: static; }
}
@media (max-width: 640px) { .tenets { grid-template-columns: 1fr; } }

/* ---------- who ---------- */
.who { padding-block: clamp(80px, 10vw, 140px); }
.who__title { max-width: 14em; margin-bottom: clamp(36px, 5vw, 64px); }
.who__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.who__grid > div { border-top: 2px solid var(--ink); padding-top: 22px; }
.who__grid h3 { margin-bottom: 12px; }
.who__grid p { color: var(--ink-2); }
@media (max-width: 820px) { .who__grid { grid-template-columns: 1fr; } }

/* ---------- pilot ---------- */
.pilot { padding-block: clamp(80px, 10vw, 140px); background: var(--sheet); border-block: 1px solid var(--rule); }
.pilot__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; counter-reset: none; }
.timeline::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 14px); }
.timeline li { position: relative; }
.timeline__n { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--sheet); border: 2px solid var(--ink); font-weight: 700; font-stretch: 110%; margin-bottom: 22px; }
.timeline li:last-child .timeline__n { background: var(--ink); color: var(--paper); }
.timeline h3 { margin-bottom: 10px; }
.timeline p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 900px) {
  .pilot__head { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 32px; }
  .timeline::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--ink) 0 8px, transparent 8px 14px); }
  .timeline li { padding-left: 72px; }
  .timeline__n { position: absolute; left: 0; top: -8px; }
}

/* ---------- company ---------- */
.company { background: var(--graphite); color: var(--on-dark); padding-block: clamp(80px, 11vw, 160px); }
.company__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.company .display { color: #fff; }
.company__body .body-lg { color: var(--on-dark-2); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 48px; background: var(--graphite-2); border: 1px solid var(--graphite-2); border-radius: 16px; overflow: hidden; }
.contact__item { background: var(--graphite); padding: 26px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.contact__item h3 { color: #fff; }
.contact__item p { color: var(--on-dark-2); margin-bottom: 14px; }
.company .btn--ink { background: var(--on-dark); color: #15181C; }
.company .btn--ink:hover { background: #8F94F5; color: #0E1030; }
.btn--on-dark { border-color: var(--on-dark-2); color: var(--on-dark); }
.btn--on-dark:hover { background: var(--on-dark); color: #15181C; border-color: var(--on-dark); }
@media (max-width: 960px) { .company__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .contact { grid-template-columns: 1fr; } }

/* ---------- footer: the title block ---------- */
.footer { padding-block: 40px 48px; }
.titleblock { display: grid; grid-template-columns: 1.4fr 2fr 1.4fr 1fr 1fr 1fr; border: 1.5px solid var(--ink); }
.tb-cell { padding: 14px 16px; border-left: 1px solid var(--ink); display: flex; flex-direction: column; gap: 4px; font-size: .9375rem; min-width: 0; }
.tb-cell:first-child { border-left: 0; }
.tb-cell a { text-decoration: none; }
.tb-cell a:hover { color: var(--cite); }
.tb-label { font-size: .75rem; color: var(--ink-2); }
.tb-cell--brand { flex-direction: row; align-items: center; gap: 10px; font-weight: 680; font-stretch: 110%; font-size: 1.0625rem; letter-spacing: -.02em; }
@media (max-width: 900px) {
  .titleblock { grid-template-columns: 1fr 1fr; }
  .tb-cell { border-left: 0; border-top: 1px solid var(--ink); }
  .tb-cell:nth-child(even) { border-left: 1px solid var(--ink); }
  .tb-cell:nth-child(-n+2) { border-top: 0; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .sld .draw line, .js .sld .draw rect, .js .sld .draw circle, .js .sld .draw path,
  .js .sld .live path, .js .sld .live circle { stroke-dashoffset: 0; }
  .js .sld .draw text { opacity: 1; }
}
.schem[data-state="assemble"] .val { fill: var(--cite); }
.principles, .company { border-block: 1px solid var(--graphite-2); }
@media (max-width: 560px) {
  .hero__visual { margin-inline: -12px; width: auto; }
  .sld .t-tag { font-size: 18px; }
  .sld .t-note { font-size: 15px; }
  .hero__caption { margin-top: 18px; }
}
