/* Fedorov Cloud — fedorov.cloud
   One 12-column grid, one grotesk, one mono, black/white/signal red. */

/* ---------- fonts (self-hosted, OFL) ---------- */
@font-face { font-family: "Madefor Display"; font-weight: 400 800; font-display: swap;
  src: url(fonts/wix-madefor-display-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Madefor Display"; font-weight: 400 800; font-display: swap;
  src: url(fonts/wix-madefor-display-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Madefor Text"; font-weight: 400 800; font-display: swap;
  src: url(fonts/wix-madefor-text-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Madefor Text"; font-weight: 400 800; font-display: swap;
  src: url(fonts/wix-madefor-text-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geist Mono"; font-weight: 100 900; font-display: swap;
  src: url(fonts/geist-mono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-weight: 100 900; font-display: swap;
  src: url(fonts/geist-mono-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* ---------- tokens ---------- */
:root {
  --paper: #ffffff;
  --fog: #f2f2f0;
  --ink: #0b0b0b;
  --ink-2: #5d5d5a;
  --ink-3: #a3a39f;
  --ink-4: #d4d4d0;
  --rule: #dcdcd8;
  --red: #e10a0a;
  --c-raw: #d4d4d0;

  /* the inverted band (networks): dark on a light page, light on a dark page */
  --inv-paper: #0b0b0b;
  --inv-fog: #161616;
  --inv-ink: #f2f2f0;
  --inv-ink-2: #8f8f8b;
  --inv-ink-3: #5f5f5c;
  --inv-ink-4: #3a3a39;
  --inv-rule: #2a2a29;

  /* the annotation demo scene and the rack drawing */
  --hw-fill: #f2f2f0; --hw-line: #d4d4d0; --hw-detail: #c4c4c0; --hw-bay: #b9b9b5; --hw-blank: #e2e2de;

  --night: #0b0b0b;
  --night-ink: #f2f2f0;
  --night-ink-2: #8f8f8b;
  --night-rule: #2a2a29;

  --f-display: "Madefor Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-text: "Madefor Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --m: clamp(16px, 2.8vw, 40px);
  --g: clamp(12px, 1.4vw, 20px);
  --hdr: 64px;
  --sec: clamp(96px, 12vw, 192px);
  --ease: cubic-bezier(.2, .7, 0, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: light;
}
:root[data-scheme="dark"] {
  --paper: #0b0b0b;
  --fog: #161616;
  --ink: #f2f2f0;
  --ink-2: #8f8f8b;
  --ink-3: #5f5f5c;
  --ink-4: #333332;
  --rule: #262625;
  --c-raw: #30302f;

  --inv-paper: #f2f2f0;
  --inv-fog: #e6e6e3;
  --inv-ink: #0b0b0b;
  --inv-ink-2: #5d5d5a;
  --inv-ink-3: #8a8a86;
  --inv-ink-4: #c4c4c0;
  --inv-rule: #d4d4d0;

  --hw-fill: #161616; --hw-line: #2f2f2e; --hw-detail: #3a3a39; --hw-bay: #444442; --hw-blank: #1e1e1d;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--hdr); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.5 var(--f-text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg, canvas { display: block; }
::selection { background: var(--red); color: #fff; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: var(--m); top: 8px; z-index: 200; padding: 10px 14px; background: var(--ink); color: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: 1800px; margin-inline: auto; padding-inline: var(--m); }
.mono { font-family: var(--f-mono); font-size: 12px; line-height: 1.35; font-weight: 450; letter-spacing: .02em; text-transform: uppercase; }
.label { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 0;
  font: 500 15px/1 var(--f-text); letter-spacing: -.005em; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--red); color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--ink); color: var(--paper); }
.btn-line { border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-wide { width: 100%; min-height: 56px; font-size: 16px; }

/* ---------- header ---------- */
.hdr {
  --hdr-bg: transparent; --hdr-fg: var(--ink); --hdr-rule: transparent; --hdr-btn: var(--ink); --hdr-btn-fg: var(--paper);
  --mark: var(--red); --mark-ink: #fff;
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr);
  color: var(--hdr-fg); background: var(--hdr-bg);
  box-shadow: inset 0 -1px 0 var(--hdr-rule);
  transition: background-color .35s, color .35s, box-shadow .35s;
}
.hdr.is-solid { --hdr-bg: color-mix(in srgb, var(--paper) 90%, transparent); --hdr-rule: var(--rule); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.hdr[data-on="invert"] { --hdr-bg: color-mix(in srgb, var(--inv-paper) 90%, transparent); --hdr-fg: var(--inv-ink); --hdr-rule: var(--inv-rule); --hdr-btn: var(--inv-ink); --hdr-btn-fg: var(--inv-paper); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hdr[data-on="night"] { --hdr-bg: rgba(11,11,11,.9); --hdr-fg: var(--night-ink); --hdr-rule: var(--night-rule); --hdr-btn: var(--night-ink); --hdr-btn-fg: var(--night); }
.hdr[data-on="contact"] { --hdr-bg: rgba(255,255,255,.92); --hdr-fg: var(--red); --hdr-rule: rgba(225,10,10,.25); --mark: var(--red); --mark-ink: #fff; --hdr-btn: var(--red); --hdr-btn-fg: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hdr-in { height: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: center; }
.brand { grid-column: 1 / span 3; display: inline-flex; align-items: center; gap: 10px; width: max-content; font: 700 17px/1 var(--f-display); letter-spacing: -.025em; }
.mark { width: 20px; height: 20px; color: var(--mark); transition: color .35s; }
.nav { grid-column: 5 / span 5; display: flex; gap: clamp(16px, 2.2vw, 36px); font-size: 15px; }
.nav a { position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a.is-here::after { transform: scaleX(1); transform-origin: left; }
.hdr-end { grid-column: 10 / -1; justify-self: end; display: flex; align-items: center; gap: 14px; }
.lang { display: flex; font: 500 12px/1 var(--f-mono); letter-spacing: .04em; }
.lang button { background: none; border: 0; padding: 8px 6px; opacity: .45; transition: opacity .2s; }
.lang button[aria-pressed="true"] { opacity: 1; }
.lang button:hover { opacity: 1; }
.scheme { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; background: none; border: 0; }
.scheme svg { width: 14px; height: 14px; transition: transform .5s var(--ease); }
.scheme:hover svg { transform: rotate(180deg); }
.hdr .btn-ink { min-height: 38px; padding: 0 14px; font-size: 14px; background: var(--hdr-btn); color: var(--hdr-btn-fg); }
.hdr .btn-ink:hover { background: var(--red); color: #fff; }
.hdr[data-on="contact"] .btn-ink:hover { background: var(--night); color: #fff; }
.burger { display: none; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .35s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 45; background: var(--night); color: var(--night-ink); padding-top: calc(var(--hdr) + 24px); }
.menu-nav { display: flex; flex-direction: column; }
.menu-nav a { font: 700 clamp(32px, 9vw, 56px)/1.1 var(--f-display); letter-spacing: -.04em; padding: 10px 0; border-bottom: 1px solid var(--night-rule); }
.menu-nav a:last-child { color: var(--red); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(100svh, 700px); overflow: hidden; }
.field { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-in {
  position: relative; min-height: inherit;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g);
  grid-template-rows: auto auto 1fr auto auto;
  padding-top: calc(var(--hdr) + clamp(20px, 5vh, 64px)); padding-bottom: 20px;
  pointer-events: none;
}
.hero-in a, .hero-in button { pointer-events: auto; }
.eyebrow { grid-column: 1 / span 5; grid-row: 1; color: var(--ink-2); }
.hero-intro { grid-column: 1 / span 4; grid-row: 2; margin-top: 18px; }
.lede { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.45; max-width: 30em; text-wrap: pretty; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.stage { grid-column: 7 / -1; grid-row: 1 / 5; min-height: 320px; }
.words { grid-column: 1 / span 7; grid-row: 4; align-self: end; margin-top: 40px;
  font: 800 clamp(56px, 9.4vw, 176px)/.86 var(--f-display); letter-spacing: -.055em; }
.word { position: relative; display: block; width: max-content; max-width: 100%; padding: 0 0 .05em; background: none; border: 0; text-align: left;
  font: inherit; letter-spacing: inherit; color: var(--ink-4); transition: color .6s var(--ease); }
.word:hover { color: var(--ink-3); }
.word.is-on { color: var(--ink); }
.word-mask { display: block; overflow: hidden; padding: .02em .06em .02em 0; margin-right: -.06em; }
.word-in { display: block; transform: translateY(108%); }
.is-ready .word-in { transform: none; transition: transform 1.1s var(--ease); }
.is-ready .word:nth-of-type(2) .word-in { transition-delay: .08s; }
.is-ready .word:nth-of-type(3) .word-in { transition-delay: .16s; }
.word-bar { position: absolute; left: 0; right: .12em; bottom: 0; height: max(3px, .028em); background: var(--red); transform: scaleX(0); transform-origin: left; }
.word.is-on .word-bar { animation: bar var(--hold, 6.5s) linear forwards; }
.word.is-held .word-bar { animation: none; transform: scaleX(1); }
.is-paused .word-bar { animation-play-state: paused; }
@keyframes bar { to { transform: scaleX(1); } }
.hero-foot { grid-column: 1 / -1; grid-row: 5; display: flex; justify-content: space-between; gap: 20px;
  margin-top: clamp(20px, 3vh, 36px); padding-top: 12px; border-top: 1px solid var(--rule); color: var(--ink-2); }
.hero-cap b { color: var(--red); font-weight: 500; margin-right: .6em; }
.hero-cap-t { transition: opacity .3s; }
.hero-scroll { white-space: nowrap; }

.reveal { opacity: 0; transform: translateY(14px); }
.is-ready .reveal { opacity: 1; transform: none; transition: opacity .9s .35s, transform 1.1s .35s var(--ease); }

/* ---------- section scaffolding ---------- */
.sec-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); padding-top: 16px; border-top: 1px solid var(--rule); }
.sec-row > .label { grid-column: 1 / span 3; padding-top: .35em; }
.h2 { grid-column: 4 / -1; font: 700 clamp(40px, 5.4vw, 100px)/.95 var(--f-display); letter-spacing: -.045em; max-width: 13.5em; text-wrap: balance; }
.body-l { font-size: clamp(18px, 1.45vw, 22px); line-height: 1.45; text-wrap: pretty; }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); margin-top: clamp(40px, 5vw, 80px); }
.split-copy { grid-column: 4 / span 4; }
.svc { padding-block: var(--sec); }

/* ---------- manifesto + index ---------- */
.about { padding-block: var(--sec) 0; }
.manifesto { font: 600 clamp(28px, 3.5vw, 60px)/1.1 var(--f-display); letter-spacing: -.03em; max-width: 21em; margin-bottom: var(--sec); text-wrap: pretty; }
.manifesto .mw { opacity: .14; transition: opacity .25s linear; }
.manifesto .mw.on { opacity: 1; }
.about .sec-row { border-top: 0; padding-top: 0; }
.svc-index { margin-top: 14px; border-top: 1px solid var(--ink); }
.svc-row { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: baseline;
  padding: clamp(20px, 2.4vw, 36px) 0; border-bottom: 1px solid var(--ink); isolation: isolate; transition: color .35s; }
.svc-row::before { content: ""; position: absolute; inset: -1px calc(var(--m) * -1); z-index: -1; background: var(--red); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); }
.svc-name { grid-column: 1 / span 6; font: 700 clamp(32px, 4.4vw, 80px)/1 var(--f-display); letter-spacing: -.045em; }
.svc-desc { grid-column: 7 / span 5; color: var(--ink-2); font-size: clamp(15px, 1.15vw, 18px); max-width: 26em; transition: color .35s; }
.svc-go { grid-column: 12; justify-self: end; font: 500 clamp(20px, 2vw, 32px)/1 var(--f-display); transition: transform .45s var(--ease); }
@media (hover: hover) {
  .svc-row:hover { color: #fff; }
  .svc-row:hover::before { transform: scaleY(1); transform-origin: top; }
  .svc-row:hover .svc-desc { color: #fff; }
  .svc-row:hover .svc-go { transform: translateY(6px); }
}

/* ---------- annotation demo ---------- */
.demo { grid-column: 4 / -1; margin-top: clamp(40px, 5vw, 72px); }
.tabs { position: relative; display: flex; gap: 22px; border-bottom: 1px solid var(--rule); }
.tabs button { position: relative; background: none; border: 0; padding: 0 0 12px; font: 500 12px/1.2 var(--f-mono); letter-spacing: .03em; text-transform: uppercase; color: var(--ink-3); transition: color .25s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }
.tabs-meter { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; pointer-events: none; }
.tabs-meter i { position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; }
.pane { padding-top: 20px; }
.pane-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; color: var(--ink-2); }
.pane-stat { font-weight: 500; color: var(--red); white-space: nowrap; opacity: 0; transition: opacity .3s; }
.scene { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #80807b; }
.scene-photo, .scene-ann { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-ann text { font-family: var(--f-mono); font-weight: 500; letter-spacing: .02em; }

.ner { aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: center; padding: clamp(20px, 3vw, 48px); background: var(--fog); font: 400 clamp(20px, 2.3vw, 34px)/2.3 var(--f-text); letter-spacing: -.015em; }
.ner p { max-width: 28em; }
.ner .ent { position: relative; padding: 2px 0; transition: background-color .4s, box-shadow .4s; box-shadow: inset 0 -1px 0 transparent; }
.ner .ent::before { content: attr(data-tag); position: absolute; left: 0; top: -.95em; font: 500 12px/1 var(--f-mono); letter-spacing: .04em; color: var(--red); white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s var(--ease); }
.ner .ent.on { background: rgba(225, 10, 10, .09); box-shadow: inset 0 -2px 0 var(--red); }
.ner .ent.on::before { opacity: 1; transform: none; }
.ner-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(16px, 2vw, 32px); line-height: 1; }
.ner-tags span { font: 500 11px/1 var(--f-mono); letter-spacing: .03em; text-transform: uppercase; padding: 7px 9px; border: 1px solid var(--ink); opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease), background-color .3s, color .3s; }
.ner-tags span.on { opacity: 1; transform: none; }
.ner-tags span.ok { background: var(--ink); color: var(--paper); }

.rank { aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: center; padding: clamp(20px, 3vw, 48px); background: var(--fog); }
.rank-q { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 12px 0 18px; border-bottom: 1px solid var(--rule); font-size: 17px; }
.rank-q .mono, .rank-card .mono { color: var(--ink-2); }
.rank-ab { display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); margin-top: 18px; }
.rank-card { position: relative; padding: 14px; border: 1px solid var(--ink-4); background: var(--paper); transition: border-color .4s, background-color .4s; }
.rank-card p { font-size: 15px; line-height: 1.45; margin: 8px 0 14px; min-height: 4.4em; }
.rank-card.win { border-color: var(--ink); }
.rank-badge { position: absolute; top: -1px; right: -1px; padding: 6px 8px; background: var(--red); color: #fff; font: 500 10px/1 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .35s var(--ease); }
.rank-card.win .rank-badge { opacity: 1; transform: none; }
.rubric { display: grid; gap: 7px; }
.rubric div { display: grid; grid-template-columns: 1fr 84px; align-items: center; gap: 8px; font: 450 11px/1 var(--f-mono); letter-spacing: .02em; text-transform: uppercase; color: var(--ink-2); }
.rubric b { position: relative; height: 6px; background: var(--fog); }
.rubric b i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.rank-why { margin-top: 16px; font-size: 15px; color: var(--ink-2); opacity: 0; transition: opacity .4s; }
.rank-why.on { opacity: 1; }
.rank-why b { color: var(--ink); font-weight: 500; }

.specs { margin-top: var(--sec); border-bottom: 1px solid var(--rule); }
.specs > div { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); padding: 18px 0; border-top: 1px solid var(--rule); }
.specs dt { grid-column: 1 / span 3; padding-top: .45em; color: var(--ink-2); }
.specs dd { grid-column: 4 / span 7; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.45; }

/* ---------- networks (dark) ---------- */
.svc-dark {
  --paper: var(--inv-paper); --fog: var(--inv-fog); --ink: var(--inv-ink); --ink-2: var(--inv-ink-2);
  --ink-3: var(--inv-ink-3); --ink-4: var(--inv-ink-4); --rule: var(--inv-rule);
  background: var(--paper); color: var(--ink);
}
.tunnel { margin-top: clamp(48px, 6vw, 96px); }
.tunnel .sr-only + .wire { margin-top: 0; }
/* live traffic: plain on the left, what the wire sees on the right */
.wire { border-top: 2px solid var(--ink); }
.wire-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.wire-live { display: inline-flex; align-items: center; gap: .7em; color: var(--ink); }
.wire-live i { width: 8px; height: 8px; background: var(--red); animation: blink 1.4s steps(1) infinite; }
.wire-dim { color: var(--ink-2); }
.wire-stats { display: inline-flex; flex-wrap: wrap; gap: 6px 22px; }
.wire-stats b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.wire-cols { display: grid; grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); }
.wire-head { padding: 24px 0 16px; }
.wire-head h3 { font: 600 clamp(20px, 1.8vw, 28px)/1.1 var(--f-display); letter-spacing: -.025em; }
.wire-head p { margin-top: 6px; color: var(--ink-2); }
.wire-list { --rh: 38px; height: calc(var(--rh) * 8); overflow: hidden; border-top: 1px solid var(--ink);
  -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.wr { position: relative; display: grid; align-items: center; column-gap: 14px; height: var(--rh); max-height: var(--rh); padding-left: 12px;
  border-bottom: 1px solid var(--rule); font: 450 13px/1 var(--f-mono); white-space: nowrap; overflow: hidden;
  transition: max-height .5s var(--ease), opacity .5s, background-color .25s; }
.wr.enter { max-height: 0; opacity: 0; }
.wr > span { overflow: hidden; text-overflow: ellipsis; }
.wire-plain .wr { grid-template-columns: 8.6em 4.6em minmax(0, 1fr) 5.6em; }
.wire-enc .wr { grid-template-columns: 8.6em minmax(0, 1fr) 5.6em 13em; }
.wr-t, .wr-size, .wire-enc .wr-req { color: var(--ink-2); }
.wr-size { text-align: right; }
.wr-hex { letter-spacing: .05em; }
.wr-sub { display: none; }
.wr::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); transform: scaleY(0); transition: transform .3s var(--ease); }
.wr.new::before { transform: none; }
.wr.new .wr-t, .wire-enc .wr.new .wr-hex { color: var(--red); }
.wr.hl { background: color-mix(in srgb, var(--red) 12%, transparent); }
.wire-mid { position: relative; overflow: hidden; }
.wire-mid::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--red); }
.wire-cipher { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); padding: 6px 10px; background: var(--paper); color: var(--red); white-space: nowrap; }
.wire-pulse { position: absolute; left: 0; top: 0; width: 10px; height: 10px; background: var(--ink); opacity: 0; }
.wire-pulse.go { animation: wire-cross .7s var(--ease-io); }
@keyframes wire-cross {
  0% { opacity: 1; transform: translateX(-10px); background: var(--ink); }
  49% { background: var(--ink); }
  50% { background: var(--red); }
  100% { opacity: 1; transform: translateX(76px); background: var(--red); }
}
.feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g); margin-top: clamp(48px, 6vw, 96px); }
.feats li { padding-top: 16px; border-top: 1px solid var(--ink); }
.feats h3 { font: 600 clamp(20px, 1.6vw, 24px)/1.15 var(--f-display); letter-spacing: -.02em; margin-bottom: 10px; }
.feats p { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g); margin-top: clamp(48px, 5vw, 80px); padding: 18px 0; border-block: 1px solid var(--rule); }
.strip dt { color: var(--ink-2); margin-bottom: 6px; }
.strip dd { font-size: 15px; text-transform: none; color: var(--ink); }

/* ---------- servers configurator ---------- */
.cfg { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 48px; margin-top: clamp(56px, 6vw, 96px); padding-top: 28px; border-top: 1px solid var(--ink); }
.cfg-controls { grid-column: 1 / span 4; display: grid; gap: 28px; align-content: start; }
.seg { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; }
.seg legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; color: var(--ink-2); }
.seg label { position: relative; flex: 1 1 0; min-width: max-content; }
.seg label + label { margin-left: -1px; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--ink); font-size: 15px; transition: background-color .2s, color .2s; }
.seg input:hover + span { background: var(--fog); }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; position: relative; z-index: 1; }
.rng label { display: flex; justify-content: space-between; color: var(--ink-2); margin-bottom: 12px; }
.rng output { color: var(--ink); font-weight: 500; }
.rng input { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; margin: 0; background: transparent; cursor: pointer; --p: 33%; }
.rng input::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(var(--ink), var(--ink)) 0 0 / var(--p) 100% no-repeat, var(--ink-4); }
.rng input::-moz-range-track { height: 2px; background: var(--ink-4); }
.rng input::-moz-range-progress { height: 2px; background: var(--ink); }
.rng input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px; background: var(--ink); border: 0; border-radius: 0; transition: background-color .2s; }
.rng input::-moz-range-thumb { width: 18px; height: 18px; background: var(--ink); border: 0; border-radius: 0; }
.rng input:hover::-webkit-slider-thumb, .rng input:focus-visible::-webkit-slider-thumb { background: var(--red); }
.rng input:hover::-moz-range-thumb, .rng input:focus-visible::-moz-range-thumb { background: var(--red); }
.rng input:focus-visible { outline: none; }
.cfg-rack { grid-column: 6 / span 3; align-self: start; }
.rack { width: 100%; height: auto; overflow: visible; font-size: 10px; }
.rack text { font-family: var(--f-mono); letter-spacing: .03em; }
.rack .hw { fill: var(--hw-fill); stroke: var(--hw-line); }
.rack .hw-vent { fill: var(--hw-detail); }
.rack .hw-bay { fill: none; stroke: var(--hw-bay); }
.rack .hw-blank { fill: none; stroke: var(--hw-blank); }
.rack .hw-ink { fill: var(--ink); }
.rack .hw-vm { fill: none; stroke: var(--hw-detail); }
.rack .frame { stroke: var(--ink); }
.rack .t2 { fill: var(--ink-2); }
.rack .t3 { fill: var(--ink-3); }
.rack .srv { transition: transform .7s var(--ease), opacity .5s; }
.rack .srv.in { transform: translateX(48px); opacity: 0; }
.led { animation: blink 2.4s steps(1) infinite; }
.led-1 { animation-duration: 1.7s; }
.led-2 { animation-duration: 3.1s; animation-delay: -.8s; }
@keyframes blink { 50% { opacity: .15; } }
.cfg-sheet { grid-column: 9 / -1; align-self: start; }
.sku { margin: 10px 0 20px; font: 700 clamp(22px, 1.9vw, 30px)/1.05 var(--f-display); letter-spacing: -.03em; overflow-wrap: anywhere; }
.sheet { border-top: 1px solid var(--rule); }
.sheet div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.sheet dt { color: var(--ink-2); }
.sheet dd { text-transform: none; font-size: 13px; }
.note { margin: 18px 0 20px; color: var(--ink-2); font-size: 15px; }

/* ---------- process + terms ---------- */
.process { padding-block: 0 var(--sec); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g); margin-top: clamp(48px, 6vw, 96px); counter-reset: none; }
.steps li { position: relative; padding-top: 20px; }
.steps li::before, .steps li::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.steps li::before { background: var(--ink-4); }
.steps li::after { background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.steps.on li::after { transform: scaleX(1); }
.steps.on li:nth-child(2)::after { transition-delay: .25s; }
.steps.on li:nth-child(3)::after { transition-delay: .5s; }
.steps.on li:nth-child(4)::after { transition-delay: .75s; }
.step-n { display: block; font: 700 clamp(44px, 4.6vw, 80px)/1 var(--f-display); letter-spacing: -.05em; margin-bottom: clamp(28px, 4vw, 64px); }
.steps h3 { font: 600 clamp(20px, 1.6vw, 24px)/1.15 var(--f-display); letter-spacing: -.02em; margin-bottom: 10px; }
.steps p { color: var(--ink-2); font-size: 16px; max-width: 22em; }
.terms-head { margin-top: var(--sec); padding-top: 0; }
.terms-head > .label { padding-top: calc(clamp(14px, 1.6vw, 22px) + .5em); }
.terms { grid-column: 4 / -1; }
.terms > div { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); column-gap: var(--g); align-items: baseline; padding: clamp(14px, 1.6vw, 22px) 0; border-bottom: 1px solid var(--rule); }
.terms dt { grid-column: 1 / span 3; color: var(--ink-2); font-size: clamp(16px, 1.25vw, 19px); }
.terms dd { grid-column: 4 / -1; font: 600 clamp(20px, 2vw, 32px)/1.15 var(--f-display); letter-spacing: -.025em; }

/* ---------- contact (white, set in red) ---------- */
.contact { --rule: rgba(225,10,10,.3); --ink-2: rgba(225,10,10,.78); background: #fff; color: var(--red); color-scheme: light; padding-block: clamp(24px, 3vw, 40px) var(--sec); }
.contact .sec-row { border-top-color: transparent; padding-top: 0; }
.contact .label { color: var(--red); }
.contact-h { font: 800 clamp(64px, 14.5vw, 280px)/.84 var(--f-display); letter-spacing: -.058em; margin: clamp(56px, 8vw, 120px) 0 clamp(48px, 6vw, 96px); margin-left: -.05em; }
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 40px; padding-top: 24px; border-top: 1px solid var(--red); }
.contact-sub { grid-column: 1 / span 4; max-width: 16em; }
.form { grid-column: 6 / -1; display: grid; gap: 28px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); }
.fld { display: grid; gap: 6px; }
.fld > .mono { color: var(--ink-2); }
.fld input, .fld textarea {
  width: 100%; padding: 8px 0 10px; border: 0; border-bottom: 1px solid rgba(225,10,10,.5); border-radius: 0; background: transparent; color: var(--red);
  font: 400 clamp(18px, 1.5vw, 22px)/1.35 var(--f-text); outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.fld textarea { min-height: 3.2em; }
.fld input::placeholder, .fld textarea::placeholder { color: rgba(225,10,10,.45); }
.fld input:focus, .fld textarea:focus { border-bottom-color: var(--red); box-shadow: 0 1px 0 var(--red); }
.fld input:-webkit-autofill { -webkit-text-fill-color: var(--red); transition: background-color 9999s 0s; caret-color: var(--red); }
.fld .err { width: max-content; max-width: 100%; margin-top: 4px; padding: 4px 7px; background: var(--red); color: #fff; font: 450 12px/1.3 var(--f-mono); letter-spacing: .02em; }
.chips { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; color: var(--ink-2); }
.chips label { position: relative; }
.chips input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--red); font-size: 15px; transition: background-color .2s, color .2s; }
.chips input:hover + span { background: rgba(225,10,10,.08); }
.chips input:checked + span { background: var(--red); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-end { display: grid; gap: 12px; }
.contact .btn-ink { background: var(--red); color: #fff; }
.contact .btn-ink:hover { background: var(--night); color: #fff; }
.contact .btn-ink[disabled] { opacity: .6; cursor: progress; }
.form-msg { min-height: 1.35em; font: 450 13px/1.35 var(--f-mono); letter-spacing: .02em; }
.form-msg.ok { font: 600 clamp(20px, 1.8vw, 26px)/1.2 var(--f-display); letter-spacing: -.02em; }
.fine { font-size: 13px; color: var(--ink-2); }

/* ---------- footer ---------- */
.foot { background: var(--night); color: var(--night-ink); padding-top: clamp(56px, 7vw, 112px); overflow: hidden; }
.foot-cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 32px; }
.foot-about { grid-column: 1 / span 4; font: 600 clamp(20px, 1.8vw, 28px)/1.2 var(--f-display); letter-spacing: -.02em; max-width: 14em; }
.foot-links { grid-column: span 2; display: grid; gap: 8px; align-content: start; font-size: 15px; }
.foot-links:first-of-type { grid-column: 6 / span 2; }
.foot-links a { color: var(--night-ink-2); transition: color .2s; }
.foot-links a:hover { color: var(--night-ink); }
.foot-meta { grid-column: 10 / -1; justify-self: end; text-align: right; display: grid; gap: 8px; color: var(--night-ink-2); align-content: start; }
.foot-meta time { color: var(--night-ink); font-variant-numeric: tabular-nums; }
.wordmark { width: max-content; margin: clamp(64px, 9vw, 160px) 0 0 -.04em; font: 800 17vw/.76 var(--f-display); letter-spacing: -.06em; white-space: nowrap; color: var(--night-ink); }
.wordmark::first-letter { color: inherit; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0 calc(20px + env(safe-area-inset-bottom)); margin-top: clamp(16px, 2vw, 28px); border-top: 1px solid var(--night-rule); color: var(--night-ink-2); }
.foot-base a:hover { color: var(--night-ink); }
@media (hover: none) { .grid-hint { display: none; } }

/* ---------- grid overlay (press G) ---------- */
.grid-overlay { position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0; transition: opacity .3s; }
.grid-overlay .wrap { height: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
.grid-overlay i { background: rgba(225, 10, 10, .06); box-shadow: inset 1px 0 rgba(225, 10, 10, .28), inset -1px 0 rgba(225, 10, 10, .28); }
.show-grid .grid-overlay { opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1239px) {
  .nav { display: none; }
  .burger { display: block; }
  .hdr-end { grid-column: 6 / -1; }
}

@media (max-width: 1099px) {
  .hero-intro { grid-column: 1 / span 6; }
  .eyebrow { grid-column: 1 / span 6; }
  .stage { grid-column: 7 / -1; }
  .split-copy { grid-column: 4 / -1; max-width: 36em; }
  .demo { grid-column: 1 / -1; }
  .specs dd { grid-column: 4 / -1; }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .wire-enc .wr { grid-template-columns: 8.6em 5.6em minmax(0, 1fr); }
  .wire-enc .wr-hex { text-align: right; }
  .wire-enc .wr-req { display: none; }
  .wire-plain .wr { grid-template-columns: 4.6em minmax(0, 1fr) 5.6em; }
  .wire-plain .wr-t { display: none; }
  .cfg-controls { grid-column: 1 / span 6; }
  .cfg-rack { grid-column: 8 / -1; grid-row: 1; }
  .cfg-sheet { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .terms { grid-column: 1 / -1; }
  .terms-head > .label { grid-column: 1 / -1; padding-top: 0; margin-bottom: 8px; }
  .contact-sub { grid-column: 1 / -1; }
  .form { grid-column: 1 / -1; }
  .foot-about { grid-column: 1 / -1; }
  .foot-links:first-of-type { grid-column: 1 / span 4; }
  .foot-links { grid-column: span 4; }
  .foot-meta { grid-column: span 4; }
}

@media (max-width: 759px) {
  :root { --hdr: 56px; }
  body { font-size: 16px; }
  .hdr-cta { display: none; }
  .brand { grid-column: 1 / span 7; }
  .hdr-end { grid-column: 8 / -1; gap: 2px; }
  .hero { min-height: auto; }
  .hero-in { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; padding-top: calc(var(--hdr) + 28px); }
  .eyebrow, .hero-intro, .stage, .words, .hero-foot { grid-column: 1; grid-row: auto; }
  .words { order: 1; margin-top: 18px; font-size: clamp(48px, 16vw, 96px); }
  .stage { order: 2; height: 58vw; min-height: 240px; max-height: 420px; margin-top: 12px; }
  .hero-intro { order: 3; margin-top: 8px; }
  .hero-foot { order: 4; margin-top: 40px; }
  .hero-scroll { display: none; }

  .sec-row > .label { grid-column: 1 / -1; margin-bottom: 18px; }
  .h2 { grid-column: 1 / -1; }
  .split-copy { grid-column: 1 / -1; }
  .manifesto { font-size: clamp(26px, 7.4vw, 36px); }
  .svc-name { grid-column: 1 / span 11; }
  .svc-desc { grid-column: 1 / span 11; margin-top: 10px; }
  .svc-go { grid-column: 12; grid-row: 1; }
  .tabs { gap: 16px; overflow-x: auto; scrollbar-width: none; }
  .tabs button { flex: none; }
  .ner, .rank { aspect-ratio: auto; min-height: 340px; }
  .scene .tg-minor:not(.tg-fresh) { display: none; }
  .rank-ab { grid-template-columns: 1fr; }
  .rank-card p { min-height: 0; }
  .rank-q { grid-template-columns: 1fr; gap: 4px; }
  .specs dt, .specs dd { grid-column: 1 / -1; }
  .specs dd { margin-top: 6px; }
  .feats { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .wire-cols { grid-template-columns: minmax(0, 1fr); }
  .wire-mid, .wire-enc { display: none; }
  .wire-list { --rh: 56px; height: calc(var(--rh) * 6); }
  .wire-plain .wr { grid-template-columns: 4.4em minmax(0, 1fr) auto; grid-template-rows: auto auto; row-gap: 7px; align-content: center; }
  .wr-sub { display: block; grid-column: 1 / -1; font-size: 11px; color: var(--ink-2); }
  .wr.new .wr-sub { color: var(--red); }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .cfg-controls, .cfg-rack, .cfg-sheet { grid-column: 1 / -1; grid-row: auto; }
  .cfg-rack { max-width: 280px; }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
  .step-n { margin-bottom: 16px; }
  .terms > div { grid-template-columns: minmax(0, 1fr); }
  .terms dt, .terms dd { grid-column: 1; }
  .terms dd { margin-top: 4px; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .foot-links, .foot-links:first-of-type, .foot-meta { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .foot-base { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .manifesto .mw { opacity: 1; }
}

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: flex; flex-direction: column; padding-top: 24px; padding-bottom: 40px; }
.nf .brand { margin-bottom: auto; }
.nf-code { font: 800 clamp(140px, 34vw, 520px)/.8 var(--f-display); letter-spacing: -.06em; margin: 48px 0 32px -.05em; color: var(--red); }
.nf-text { grid-column: 4 / -1; display: grid; gap: 16px; justify-items: start; max-width: 40em; }
.nf-ru { color: var(--ink-2); }
@media (max-width: 759px) { .nf-text { grid-column: 1 / -1; } }
