/* NIIII — shared styles for index.html and privacy-policy.html.
   Visual language follows zerus.dev: graphite ground, cool ink, rounded slabs,
   pill buttons, tight headlines. Palette is the mint of the company documents
   (#8bdfc0 fills, #17694f text on white). First visit follows the OS theme and
   falls back to dark; light uses the same tokens. */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-latin.woff2?v=67849bcc11e0") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: "Onest Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans"), local("DejaVu Sans"), local("Roboto");
  size-adjust: 104.2%;
  ascent-override: 93.1%;
  descent-override: 29.8%;
  line-gap-override: 0%;
}

/* ---------- Tokens: dark (default) ---------- */
:root {
  --paper: #101215;
  --ink: #e8edf4;
  --ink-soft: #cfd6e0;
  --muted: #a2adbc;
  --nav: #b6bcc6;
  --surface: #25292f;
  --surface-hover: #343a42;
  --slab: #1b2026;
  --slab-alt: #171b20;
  --panel: #181d23;
  --card: #20252b;
  --card-line: #383f47;
  --line: #34383e;
  --line-2: #3a4048;
  --frame: #343a42;
  --canvas: #14181d;
  --node: #20252c;
  --node-line: #3c434d;
  --skeleton: #323842;
  --accent: #8bdfc0;
  --accent-hover: #a6ebd1;
  --accent-ink: #14171b;
  --accent-soft: rgb(139 223 192 / 0.13);
  --accent-line: #3f7a66;
  --accent-wire: rgb(139 223 192 / 0.5);
  --tint-1: rgb(76 175 145 / 0.16);
  --tint-2: rgb(109 129 145 / 0.12);
  --orbit: rgb(170 178 214 / 0.13);
  --grad-from: #17302a;
  --grad-line: #2f6b58;
  --grad-soft: #c3d8d0;
  --art-bg: #1d2523;
  --art-word: #2b3a35;
  --art-orbit: #3f5a51;
  --closing-word: #5fae92;
  --label-bg: #23282e;
  --label-line: #3b4149;
  --selection: #285446;
  --shadow-lg: 0 32px 65px -25px rgb(0 0 0 / 0.55);
  --shadow-md: 0 12px 35px rgb(0 0 0 / 0.28);
  --radius: 24px;
  color-scheme: dark;
}

/* ---------- Tokens: light (explicit choice, or system preference without a stored choice) ---------- */
:root[data-theme="light"] {
  --paper: #ffffff;
  --ink: #101215;
  --ink-soft: #353c45;
  --muted: #5d6671;
  --nav: #353c45;
  --surface: #edf0f3;
  --surface-hover: #e2e6ea;
  --slab: #f3f5f7;
  --slab-alt: #f4f2e8;
  --panel: #ffffff;
  --card: #ffffff;
  --card-line: #d5dbe1;
  --line: #d5dbe1;
  --line-2: #cfd5dc;
  --frame: #d5dbe1;
  --canvas: #fbfcfc;
  --node: #ffffff;
  --node-line: #cdd5dc;
  --skeleton: #e7ebee;
  --accent: #17694f;
  --accent-hover: #11533e;
  --accent-ink: #ffffff;
  --accent-soft: #e7f6ef;
  --accent-line: #a9dcc8;
  --accent-wire: rgb(23 105 79 / 0.45);
  --tint-1: rgb(139 223 192 / 0.28);
  --tint-2: rgb(234 241 251 / 0.9);
  --orbit: rgb(60 90 80 / 0.14);
  --grad-from: #e7f6ef;
  --grad-line: #b7e3d2;
  --grad-soft: #35403b;
  --art-bg: #eaf1fb;
  --art-word: #d6e4f5;
  --art-orbit: #bfd0e6;
  --closing-word: #8bdfc0;
  --label-bg: #ffffff;
  --label-line: #d5dbe1;
  --selection: #c9efe0;
  --shadow-lg: 0 32px 65px -28px rgb(28 34 64 / 0.3);
  --shadow-md: 0 12px 35px rgb(28 34 64 / 0.12);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --paper: #ffffff;
    --ink: #101215;
    --ink-soft: #353c45;
    --muted: #5d6671;
    --nav: #353c45;
    --surface: #edf0f3;
    --surface-hover: #e2e6ea;
    --slab: #f3f5f7;
    --slab-alt: #f4f2e8;
    --panel: #ffffff;
    --card: #ffffff;
    --card-line: #d5dbe1;
    --line: #d5dbe1;
    --line-2: #cfd5dc;
    --frame: #d5dbe1;
    --canvas: #fbfcfc;
    --node: #ffffff;
    --node-line: #cdd5dc;
    --skeleton: #e7ebee;
    --accent: #17694f;
    --accent-hover: #11533e;
    --accent-ink: #ffffff;
    --accent-soft: #e7f6ef;
    --accent-line: #a9dcc8;
    --accent-wire: rgb(23 105 79 / 0.45);
    --tint-1: rgb(139 223 192 / 0.28);
    --tint-2: rgb(234 241 251 / 0.9);
    --orbit: rgb(60 90 80 / 0.14);
    --grad-from: #e7f6ef;
    --grad-line: #b7e3d2;
    --grad-soft: #35403b;
    --art-bg: #eaf1fb;
    --art-word: #d6e4f5;
    --art-orbit: #bfd0e6;
    --closing-word: #8bdfc0;
    --label-bg: #ffffff;
    --label-line: #d5dbe1;
    --selection: #c9efe0;
    --shadow-lg: 0 32px 65px -28px rgb(28 34 64 / 0.3);
    --shadow-md: 0 12px 35px rgb(28 34 64 / 0.12);
    color-scheme: light;
  }
}

/* ---------- Base ---------- */
:root {
  font-family: "Onest", "Onest Fallback", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
  color: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:not(:disabled),
summary {
  cursor: pointer;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
svg {
  width: 24px;
  height: 24px;
  flex: none;
}
.icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.glyph {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
[hidden] {
  display: none !important;
}
::selection {
  background: var(--selection);
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.feature-panel:focus-visible {
  outline-offset: 2px;
}
h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
}
h1,
h2,
h3 {
  font-weight: 600;
  text-wrap: balance;
}
h2 {
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
h3 {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
p,
li,
dd,
summary {
  text-wrap: pretty;
}
p {
  line-height: 1.6;
}
.section-wrap {
  max-width: 1248px;
  padding-left: 48px;
  padding-right: 48px;
  margin-inline: auto;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 650;
  line-height: 1.5;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.text-link {
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.text-link:hover {
  color: var(--accent-hover);
}
.prose-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.prose-link:hover {
  color: var(--accent-hover);
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background: var(--accent);
  color: var(--accent-ink);
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  white-space: nowrap;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgb(76 175 145 / 0.2);
}
.button .icon {
  width: 20px;
  height: 20px;
}
.button-small {
  min-height: 42px;
  padding: 10px 20px;
  font-size: 15px;
  gap: 20px;
}
.button-quiet {
  background: var(--surface);
  color: var(--ink);
}
.button-quiet:hover {
  background: var(--surface-hover);
  box-shadow: none;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  transition:
    background 0.2s,
    border-color 0.2s;
}
.icon-button:hover {
  background: var(--surface);
  border-color: var(--surface-hover);
}
.icon-button .icon {
  width: 20px;
  height: 20px;
}
/* The toggle shows the theme it switches to. */
.theme-toggle .icon-moon,
:root[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}
:root[data-theme="light"] .theme-toggle .icon-moon {
  display: inline-block;
}
.no-js .theme-toggle,
.no-js .feature-tabs {
  display: none;
}
.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-open {
  display: none;
}
.menu-toggle[aria-expanded="true"] .icon-close {
  display: inline-block;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 24px;
  z-index: 100;
  background: var(--surface);
  color: var(--ink);
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 600;
}
.skip-link:focus {
  top: 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 50;
  height: 88px;
  padding: 0 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 1600px;
  margin: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  line-height: 1;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
}
.desktop-nav a {
  padding: 12px 0;
  color: var(--nav);
  transition: color 0.2s;
}
.desktop-nav a:hover {
  color: var(--ink);
}
.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.menu-toggle {
  display: none;
}
.mobile-menu {
  position: absolute;
  top: calc(100% - 6px);
  left: 12px;
  right: 12px;
  z-index: 60;
  background: var(--slab);
  border: 1px solid var(--line-2);
  border-radius: 22px;
  padding: 10px 10px 14px;
  box-shadow: var(--shadow-md);
}
.mobile-menu ul {
  list-style: none;
  display: grid;
}
.mobile-menu li + li {
  border-top: 1px solid var(--line);
}
.mobile-menu a:not(.button) {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 14px;
  font-size: 18px;
  font-weight: 550;
  border-radius: 12px;
}
.mobile-menu a:not(.button):hover {
  background: var(--surface);
}
.mobile-menu a .icon {
  color: var(--muted);
  width: 18px;
  height: 18px;
}
.mobile-menu .button {
  width: 100%;
  margin-top: 10px;
  justify-content: space-between;
}

/* ---------- Hero ---------- */
.hero {
  overflow: hidden;
  padding-top: 64px;
}
.hero-copy {
  text-align: center;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.hero-copy .eyebrow {
  color: var(--muted);
  text-wrap: balance;
}
.eyebrow-mark {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 12px;
  vertical-align: 1px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}
.hero h1 {
  font-size: clamp(42px, 6vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin: 26px auto 0;
  font-weight: 600;
  max-width: 15.5em;
}
.hero h1 span {
  display: block;
}
.hero h1 .hero-accent {
  color: var(--accent);
}
.hero-description {
  max-width: 640px;
  margin: 26px auto 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}
.hero-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
  font-size: 14px;
  color: var(--muted);
  margin-top: 22px;
  list-style: none;
}
.hero-note li + li::before {
  content: "/";
  margin: 0 12px;
  opacity: 0.6;
}

/* Hero stage: illustrative system diagram, built in HTML/SVG */
.hero-stage {
  max-width: 1312px;
  padding: 62px 64px 0;
  margin: 46px auto 0;
  position: relative;
  isolation: isolate;
}
.hero-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -20%;
  right: -20%;
  top: 0;
  bottom: -200px;
  background:
    radial-gradient(ellipse 34% 50% at 27% 58%, var(--tint-1), transparent 70%),
    radial-gradient(ellipse 36% 54% at 74% 56%, var(--tint-2), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  pointer-events: none;
}
.orbit {
  position: absolute;
  border: 1px solid var(--orbit);
  border-radius: 50%;
  width: 118%;
  height: 100%;
  left: -9%;
  top: 9%;
  pointer-events: none;
}
.orbit-two {
  width: 90%;
  height: 120%;
  left: 5%;
  top: 3%;
  transform: rotate(-18deg);
}
.stage-window {
  position: relative;
  border: 7px solid var(--frame);
  border-radius: 18px;
  background: var(--canvas);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(-1deg);
  transition: transform 0.45s;
}
.stage-window:hover {
  transform: rotate(0);
}
.stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.stage-tabs {
  display: flex;
  gap: 6px;
  list-style: none;
}
.stage-tabs li {
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
}
.stage-tabs li.is-current {
  background: var(--accent-soft);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}
.stage-caption {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.arch {
  position: relative;
  padding: 18px 22px 26px;
  background-image: radial-gradient(var(--line) 1px, transparent 1.4px);
  background-size: 22px 22px;
  background-position: 11px 11px;
}
.arch-heads {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.arch-canvas {
  position: relative;
  aspect-ratio: 1000 / 600;
  margin-top: 10px;
}
.arch-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.arch-wires path {
  fill: none;
  stroke: var(--accent-wire);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.arch-wires .flow {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 3 14;
  stroke-linecap: round;
  animation: flow var(--dur, 2.8s) linear 1;
}
@keyframes flow {
  to {
    stroke-dashoffset: -34;
  }
}
.arch-cluster {
  position: absolute;
  left: 26.5%;
  right: 1%;
  top: 2%;
  bottom: 2%;
  border: 1.5px dashed var(--accent-line);
  border-radius: 20px;
}
.arch-cluster span {
  position: absolute;
  top: -12px;
  left: 18px;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--canvas);
  color: var(--accent);
  border: 1px solid var(--accent-line);
}
.arch-col {
  display: contents;
  list-style: none;
}
.node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px 10px 12px;
  border-radius: 13px;
  background: var(--node);
  border: 1px solid var(--node-line);
  box-shadow: var(--shadow-md);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.node small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 3px;
}
.node .icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}
.node.is-key {
  border-color: var(--accent-line);
  background:
    linear-gradient(var(--accent-soft), var(--accent-soft)),
    var(--node);
}
.node.is-stack {
  box-shadow:
    6px 6px 0 -1px var(--node),
    6px 6px 0 0 var(--node-line),
    12px 12px 0 -1px var(--node),
    12px 12px 0 0 var(--node-line),
    var(--shadow-md);
}
.node .rep {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.parts,
.gpu {
  display: inline-grid;
  gap: 3px;
}
.parts {
  grid-template-columns: repeat(4, 5px);
  align-items: end;
  height: 18px;
}
.parts i {
  display: block;
  width: 5px;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.8;
  transform-origin: bottom;
  animation: part 2.4s ease-in-out 2;
}
.parts i:nth-child(1) { height: 60%; }
.parts i:nth-child(2) { height: 90%; animation-delay: -0.6s; }
.parts i:nth-child(3) { height: 45%; animation-delay: -1.2s; }
.parts i:nth-child(4) { height: 75%; animation-delay: -1.8s; }
@keyframes part {
  50% { transform: scaleY(0.55); }
}
.gpu {
  grid-template-columns: repeat(3, 7px);
}
.gpu i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  animation: gpu 1.8s ease-in-out 2;
}
.gpu i:nth-child(2n) { animation-delay: -0.5s; }
.gpu i:nth-child(3n) { animation-delay: -1.1s; }
@keyframes gpu {
  50% { opacity: 0.35; }
}
.arch-observe {
  position: absolute;
  left: 28.5%;
  right: 3%;
  top: 86%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px dashed var(--accent-line);
  background: var(--canvas);
  font-size: 14px;
  font-weight: 600;
}
.arch-observe .icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}
.arch-observe ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin-left: auto;
}
.arch-observe li {
  font-size: 12px;
  font-weight: 550;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--ink-soft);
}
.stage-label-top {
  top: 6px;
  right: 72px;
  transform: rotate(4deg);
}
.stage-label {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 550;
  background: var(--label-bg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--label-line);
}
.stage-label .icon {
  color: var(--accent);
  width: 20px;
  height: 20px;
}
.stage-label-left {
  top: 14px;
  left: 30px;
  transform: rotate(-5deg);
}
.stage-label-right {
  bottom: -18px;
  right: 14px;
  transform: rotate(5deg);
}

/* Directions strip under the hero */
.directions {
  padding: 64px 24px 76px;
  text-align: center;
  position: relative;
}
.directions > p {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--muted);
}
.direction-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 48px;
  margin-top: 26px;
  list-style: none;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.direction-list li {
  display: flex;
  align-items: center;
  gap: 11px;
}
.direction-list .icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
  stroke-width: 1.7;
}

/* ---------- Services slab ---------- */
.slab {
  background: var(--slab);
  border-radius: 36px;
  margin: 0 24px;
  overflow: hidden;
}
.services {
  padding: 84px 0 40px;
}
.slab-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
}
.slab-heading .eyebrow,
.section-heading .eyebrow {
  color: var(--accent);
  margin-bottom: 22px;
}
.slab-heading > p {
  max-width: 420px;
  color: var(--muted);
  font-size: 18px;
  padding-bottom: 6px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 52px 36px;
  margin-top: 64px;
  list-style: none;
}
.service {
  border-top: 1px solid var(--line-2);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
}
.service-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.service-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.service h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-top: 20px;
}
.service p {
  font-size: 16px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.6;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin-top: 18px;
  padding-top: 2px;
}
.tags li {
  font-size: 13px;
  font-weight: 550;
  line-height: 1.3;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--ink-soft);
}
.service .text-link {
  margin-top: 18px;
  font-size: 15px;
}
.service-cta {
  border-top-color: var(--accent);
}
.service-cta h3 {
  margin-top: 20px;
}
.service-cta .button {
  margin-top: 22px;
  align-self: flex-start;
}

/* ---------- Why OPTKOD: bento with the documents' pastel tones ---------- */
.why {
  padding-top: 112px;
}
.muted-clause {
  color: var(--muted);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.why-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 34px 30px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-line);
}
.why-card.tone-mint {
  background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--card);
}
.why-wide {
  grid-column: 1 / -1;
}
.why-card .eyebrow {
  color: var(--accent);
  margin: 0;
}
.why-card h3 {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.why-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 820px;
  text-wrap: pretty;
}
.why-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 56px;
  list-style: none;
  margin: 4px 0;
}
.why-stats b {
  display: block;
  font-size: 44px;
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.why-stats span {
  font-size: 14px;
  color: var(--muted);
}
.why-meta {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}
.why-meta .tag {
  font-size: 12.5px;
  font-weight: 550;
  line-height: 1;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--ink-soft);
}
.why-meta li:first-child {
  margin-right: 4px;
}
.why-product {
  display: flex;
  align-items: center;
  gap: 14px;
}
.product-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: #171b21;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
}
.product-mark svg {
  width: 30px;
  height: 30px;
}
.product-zerus svg {
  fill: #8bdfc0;
}
.product-birdman svg {
  fill: none;
  stroke: #d9541a;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.product-birdman .p-birdman-low {
  stroke: #f0713a;
}
.why-projects {
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.why-card .why-projects-title {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.why-projects ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 24px;
  margin-top: 14px;
  list-style: none;
}
.why-projects li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-content: start;
  align-items: start;
  column-gap: 14px;
  row-gap: 4px;
}
.why-projects .proj-icon {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.why-projects .proj-icon-esp {
  background: #171b21;
}
.why-projects li > a {
  justify-self: start;
}
.why-projects li > b,
.why-projects li > a {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.why-projects li > b {
  color: var(--ink);
}
.why-projects li > span {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}
.why-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.why-notes > div {
  border-top: 2px solid var(--accent);
  padding-top: 22px;
}
.why-notes h3 {
  font-size: 20px;
  letter-spacing: -0.01em;
}
.why-notes p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
.tone-sky { --tone: #eaf1fb; }
.tone-mint { --tone: #e7f6ef; }
.tone-cream { --tone: #f4f2e8; }
.tone-soft { --tone: #f3f5f7; }
:root[data-theme="light"] .why-card {
  background: var(--tone);
  border-color: transparent;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .why-card {
    background: var(--tone);
    border-color: transparent;
  }
}

/* ---------- Process: numbered tabs ---------- */
.process {
  padding-top: 112px;
  padding-bottom: 96px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  align-items: flex-end;
  margin-bottom: 44px;
}
.section-heading > p {
  font-size: 18px;
  max-width: 400px;
  color: var(--muted);
  padding-bottom: 6px;
}
.feature-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.feature-tabs button {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 14px;
  min-height: 76px;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 22px;
  font-size: 18px;
  font-weight: 650;
  text-align: left;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.stage-heading {
  display: grid;
}
.feature-tabs button:is([aria-selected="true"], [aria-expanded="true"]) {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.feature-tabs button:hover:not([aria-selected="true"], [aria-expanded="true"]) {
  background: var(--surface);
}
.tab-label {
  flex: 1;
  line-height: 1.3;
}
.tab-number {
  font-size: 13px;
  font-weight: 550;
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
}
.feature-tabs button > .icon {
  margin-left: auto;
  width: 20px;
  height: 20px;
  transition: transform 0.2s;
}
.feature-tabs button:is([aria-selected="true"], [aria-expanded="true"]) > .icon {
  transform: rotate(90deg);
}
.feature-panels {
  display: grid;
  gap: 16px;
}
.feature-panel {
  min-height: 470px;
  display: grid;
  grid-template-columns: 0.8fr 1.45fr;
  align-items: center;
  gap: 40px;
  padding: 46px 0 46px 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.feature-copy .feature-kicker {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.feature-copy h3 {
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-top: 14px;
}
.feature-copy p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 18px;
}
.feature-copy .feature-tag {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 26px;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.4;
  color: var(--ink-soft);
}
.feature-tag .icon {
  color: var(--accent);
  width: 18px;
  height: 18px;
}
.feature-visual {
  position: relative;
  width: calc(100% + 36px);
  aspect-ratio: 16 / 10.5;
  border: 5px solid var(--frame);
  border-radius: 14px;
  background: var(--canvas);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transform: rotate(-2deg);
  transition: transform 0.3s;
}
.feature-panel:hover .feature-visual {
  transform: rotate(0);
}
.feature-visual .ill {
  right: 36px;
}
.js .feature-tabs-wrap:not(.is-ready) .feature-panel + .feature-panel {
  display: none;
}

/* Illustration vocabulary (process panels) */
.ill {
  position: absolute;
  inset: 0;
  padding: 34px 40px 34px 34px;
  background-image: radial-gradient(var(--line) 1px, transparent 1.4px);
  background-size: 22px 22px;
}
.sheet {
  position: absolute;
  background: var(--node);
  border: 1px solid var(--node-line);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: var(--shadow-md);
}
.sheet-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.sheet-title .icon {
  color: var(--accent);
  width: 19px;
  height: 19px;
}
.sheet-note {
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}
.sheet-deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--node-line);
  background: var(--canvas);
  color: var(--ink-soft);
  white-space: nowrap;
}
.chip .icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
  stroke-width: 2.4;
}
.chip.is-on {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--ink);
}
.sheet-row {
  display: grid;
  grid-template-columns: 124px 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}
.sheet-row .chip {
  justify-self: start;
}
/* 01 analysis */
.ill-brief .sheet-main {
  left: 5%;
  top: 11%;
  width: 55%;
}
.ill-brief .sheet-side {
  right: 4%;
  bottom: 10%;
  width: 33%;
  transform: rotate(3deg);
}
.estimate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.estimate-row .icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
}
/* 02 architecture plan */
.ill-plan .sheet-stack {
  left: 7%;
  top: 10%;
  width: 54%;
}
.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}
.ill-plan .sheet-track {
  right: 6%;
  bottom: 9%;
  width: 66%;
}
.track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
  padding-top: 26px;
}
.track::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 7px;
  height: 2px;
  background: var(--skeleton);
}
.track li {
  position: relative;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.track li::before {
  content: "";
  position: absolute;
  top: -25px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  transform: rotate(45deg);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.track small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}
/* 03 development */
.ill-sprints .sheet-sprints {
  left: 7%;
  right: 7%;
  top: 10%;
}
.sprints {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
  list-style: none;
}
.sprints li {
  position: relative;
  border-radius: 10px;
  background: var(--canvas);
  border: 1px solid var(--node-line);
  padding: 12px 14px 12px;
  font-size: 14px;
  font-weight: 600;
}
.sprints li small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.sprints .demo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 650;
  color: var(--accent);
}
.sprints .demo::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--accent);
}
.ill-sprints .sheet-checks {
  left: 16%;
  bottom: 9%;
  width: 58%;
  transform: rotate(-2deg);
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
/* 04 support */
.ill-support .pipeline {
  position: absolute;
  left: 7%;
  right: 7%;
  top: 14%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pipeline::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  height: 2px;
  background: var(--accent-wire);
}
.pipeline .node {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
}
.ill-support .sheet-loop {
  left: 14%;
  right: 14%;
  top: 50%;
  text-align: center;
}
.ill-support .sheet-loop .sheet-title {
  justify-content: center;
}
.ill-support .sheet-loop .sheet-note {
  margin-top: 14px;
  text-align: center;
}
.ill-support .wire-down {
  position: absolute;
  left: 50%;
  top: calc(14% + 46px);
  height: calc(36% - 46px);
  border-left: 2px dashed var(--accent-wire);
}
.loop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}
.loop .icon {
  color: var(--accent);
  width: 22px;
  height: 22px;
}

/* ---------- Principles panel ---------- */
.principles {
  padding-top: 24px;
  padding-bottom: 24px;
}
.principles-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.6fr;
  gap: 48px 64px;
  padding: 56px;
  background: linear-gradient(130deg, var(--grad-from), var(--panel) 62%);
  border: 1px solid var(--grad-line);
  border-radius: var(--radius);
}
.principles-copy .eyebrow {
  color: var(--accent);
  margin-bottom: 22px;
}
.principles-copy h2 {
  font-size: clamp(36px, 4.1vw, 56px);
}
.principles-lead {
  margin-top: 24px;
  color: var(--grad-soft);
  font-size: 18px;
}
.principles-copy .button {
  margin-top: 30px;
}
.principle-list {
  display: grid;
  list-style: none;
  align-content: center;
}
.principle-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 0.85fr) minmax(0, 1.25fr);
  gap: 6px 20px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--line-2);
}
.principle-list li:first-child {
  border-top: 0;
  padding-top: 0;
}
.principle-list li:last-child {
  padding-bottom: 0;
}
.principle-list li > div {
  display: contents;
}
.principle-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  height: 36px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  color: var(--accent);
}
.principle-mark .icon {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}
.principle-list h3 {
  font-size: 19px;
  letter-spacing: -0.015em;
  margin-top: 6px;
}
.principle-list p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- Bots ---------- */
.bots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: center;
  padding-top: 112px;
  padding-bottom: 112px;
}
.bots-art {
  background: var(--art-bg);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 35px 72px;
}
.bots-word {
  position: absolute;
  font-size: 230px;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--art-word);
  left: 18px;
  top: -4px;
  line-height: 1;
  user-select: none;
}
.bots-orbit {
  position: absolute;
  border: 1px solid var(--art-orbit);
  width: 680px;
  height: 360px;
  border-radius: 50%;
  transform: rotate(-52deg);
}
.phone {
  position: relative;
  width: 280px;
  border: 7px solid #0b0d10;
  border-radius: 36px;
  overflow: hidden;
  background: var(--paper);
  box-shadow:
    22px 22px 0 var(--accent-soft),
    0 24px 40px rgb(0 0 0 / 0.35);
  transform: rotate(-7deg);
  transition: transform 0.4s;
}
.bots-art:hover .phone {
  transform: rotate(-3deg);
}
.phone-bar {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 22px 16px 14px;
  border-bottom: 1px solid var(--line);
}
.phone-bar .brand-mark {
  width: 34px;
  height: 34px;
}
.phone-bar b {
  display: block;
  font-size: 15px;
  font-weight: 650;
}
.phone-bar small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.phone-list {
  list-style: none;
  display: grid;
  gap: 8px;
  padding: 14px 12px 26px;
}
.phone-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
}
.phone-list .mod-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}
.phone-list .mod-icon .icon {
  width: 20px;
  height: 20px;
}
.phone-list b {
  display: block;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
}
.phone-list small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}
.bots-art-label {
  position: absolute;
  bottom: 26px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.bots-copy .eyebrow {
  color: var(--accent);
}
.bots-copy h2 {
  margin-top: 22px;
  font-size: clamp(40px, 4.6vw, 64px);
}
.section-lead {
  font-size: 18px;
  color: var(--muted);
  margin-top: 24px;
  line-height: 1.55;
}
.product-list {
  list-style: none;
  margin: 28px 0 32px;
  border-top: 1px solid var(--line);
}
.product-list li {
  border-bottom: 1px solid var(--line);
}
.product-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 20px;
  padding: 16px 4px;
  transition: color 0.2s;
}
.product-list b {
  font-size: 18px;
  font-weight: 650;
}
.product-list span {
  grid-column: 1;
  font-size: 15px;
  color: var(--muted);
}
.product-list .icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--muted);
  width: 20px;
  height: 20px;
  transition:
    transform 0.2s,
    color 0.2s;
}
.product-list a:hover b {
  color: var(--accent);
}
.product-list a:hover .icon {
  color: var(--accent);
  transform: translateX(4px);
}

/* ---------- Stack slab ---------- */
.stack {
  background: var(--slab-alt);
  padding: 76px 0 64px;
}
.stack-heading {
  text-align: center;
}
.stack-heading .eyebrow {
  color: var(--accent);
  margin-bottom: 20px;
}
.stack-heading h2 {
  font-size: clamp(36px, 4.3vw, 60px);
}
.stack-heading > p:last-child {
  margin: 20px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
}
/* Periodic table of the stack: rows are areas, tiles carry a symbol and a name. */
.ptable {
  display: grid;
  gap: 10px;
  margin-top: 44px;
}
.ptable-group {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 10px;
}
.t-backend { --tone: #9cc3f0; --tone-rgb: 156 195 240; --tone-ink: #1d5fa8; }
.t-frontend { --tone: #c3b5f0; --tone-rgb: 195 181 240; --tone-ink: #5b47b0; }
.t-infra { --tone: #8bdfc0; --tone-rgb: 139 223 192; --tone-ink: #17694f; }
.t-ai { --tone: #e6d3a3; --tone-rgb: 230 211 163; --tone-ink: #7a5c0a; }
.t-game { --tone: #f0a58a; --tone-rgb: 240 165 138; --tone-ink: #a8432a; }
.ptable-head {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--card-line);
  font-size: 18px;
  letter-spacing: -0.01em;
}
.ptable-head .glyph {
  width: 26px;
  height: 26px;
  stroke: var(--tone);
}
.ptable-cells {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}
.cell {
  display: flex;
  flex-direction: column;
  min-height: 112px;
  padding: 10px 12px 12px;
  border-radius: 14px;
  background: linear-gradient(rgb(var(--tone-rgb) / 0.07), rgb(var(--tone-rgb) / 0.07)), var(--card);
  border: 1px solid rgb(var(--tone-rgb) / 0.22);
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.cell:hover {
  transform: translateY(-3px);
  border-color: rgb(var(--tone-rgb) / 0.6);
}
.cell-n {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.cell-sym {
  margin-top: auto;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--tone);
}
.cell-name {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.25;
  color: var(--ink-soft);
}
:root[data-theme="light"] :is(.cell, .ptable-head) {
  background: var(--card);
  border-color: var(--card-line);
}
:root[data-theme="light"] .cell-sym {
  color: var(--tone-ink);
}
:root[data-theme="light"] .ptable-head .glyph {
  stroke: var(--tone-ink);
}
:root[data-theme="light"] .cell:hover {
  border-color: var(--tone-ink);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) :is(.cell, .ptable-head) {
    background: var(--card);
    border-color: var(--card-line);
  }
  :root:not([data-theme="dark"]) .cell-sym {
    color: var(--tone-ink);
  }
  :root:not([data-theme="dark"]) .ptable-head .glyph {
    stroke: var(--tone-ink);
  }
  :root:not([data-theme="dark"]) .cell:hover {
    border-color: var(--tone-ink);
  }
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 72px;
  padding-top: 108px;
  padding-bottom: 112px;
}
.faq .eyebrow {
  color: var(--accent);
  margin-bottom: 24px;
}
.faq h2 {
  font-size: clamp(36px, 4vw, 52px);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list details:first-child {
  border-top: 1px solid var(--line);
}
.faq-list summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 600;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
}
.faq-list details[open] summary::after {
  content: "\2212";
}
.faq-list summary:hover {
  color: var(--accent);
}
.faq-list details p {
  font-size: 17px;
  color: var(--muted);
  padding: 0 40px 26px 0;
  line-height: 1.65;
}

/* ---------- Closing / contacts ---------- */
.closing {
  text-align: center;
  border-radius: 36px 36px 0 0;
  padding-top: 64px;
}
.closing-mark {
  width: 76px;
  height: 76px;
  margin: 0 auto 26px;
  display: block;
}
.closing .eyebrow {
  color: var(--accent);
  margin-bottom: 18px;
}
.closing h2 {
  font-size: clamp(46px, 6vw, 84px);
  letter-spacing: -0.045em;
}
.closing-lead {
  margin: 20px auto 0;
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
}
.contact-actions {
  margin-top: 30px;
}
.contact-note {
  margin-top: 20px;
  font-size: 15px;
  color: var(--muted);
}
.closing-word {
  font-size: clamp(48px, 19vw, 280px);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 0.84;
  margin-top: 64px;
  margin-bottom: -0.12em;
  color: var(--closing-word);
  user-select: none;
  text-align: center;
  white-space: nowrap;
}

/* ---------- Footer ---------- */
.site-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "brand nav"
    "legal legal";
  align-items: center;
  gap: 22px 28px;
  padding: 32px 4% 36px;
  max-width: 1600px;
  margin: auto;
  font-size: 14px;
}
.site-footer .brand {
  grid-area: brand;
}
.site-footer .brand {
  font-size: 19px;
}
.site-footer .brand-mark {
  width: 28px;
  height: 28px;
}
.footer-legal {
  grid-area: legal;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.site-footer nav {
  grid-area: nav;
  justify-self: end;
}
.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  font-size: 14px;
}
.site-footer nav a {
  color: var(--nav);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.site-footer nav a:hover {
  color: var(--ink);
}
.site-footer nav .icon {
  width: 16px;
  height: 16px;
}

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 14px 14px 22px;
  background: var(--label-bg);
  border: 1px solid var(--label-line);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}
.cookie p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.cookie a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie .button {
  flex: none;
}

/* ---------- Privacy policy page ---------- */
.doc {
  padding-top: 40px;
  padding-bottom: 104px;
}
.doc-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}
.doc-toc {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 22px 18px 18px;
  background: var(--slab);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.doc-toc .toc-title {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 8px 12px;
}
.doc-toc .toc-toggle {
  display: none;
}
.doc-toc .toc-toggle:focus-visible {
  outline-offset: -5px;
  border-radius: 18px;
}
.doc-toc ol {
  list-style: none;
  display: grid;
  gap: 2px;
}
.doc-toc a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink-soft);
  transition:
    background 0.2s,
    color 0.2s;
}
.doc-toc .toc-num {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.doc-toc a:hover {
  background: var(--surface);
  color: var(--ink);
}
.doc-toc a[aria-current="true"] {
  background: var(--accent-soft);
  color: var(--ink);
}
.doc-toc a[aria-current="true"] .toc-num {
  color: var(--accent);
}
.doc-main {
  max-width: 760px;
}
.doc-main > .eyebrow {
  color: var(--accent);
  margin-bottom: 22px;
}
.legal {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}
.legal .document-title {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.legal .document-subtitle {
  font-size: 16px;
  color: var(--muted);
  margin-top: 22px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line-2);
}
.legal .section-title {
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-top: 2.4em;
  margin-bottom: 0.7em;
  scroll-margin-top: 24px;
}
.legal .subsection-title {
  font-size: 18px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 1.9em;
  margin-bottom: 0.4em;
}
.legal .num {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.legal p {
  margin-top: 1.05em;
}
.legal strong {
  color: var(--ink);
  font-weight: 650;
}
.legal ul {
  margin: 1em 0 0;
  list-style: none;
}
.legal li {
  position: relative;
  padding-left: 1.6em;
  margin-top: 0.55em;
}
.legal li::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--accent);
}
.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}
.legal a:hover {
  color: var(--accent-hover);
}
.legal .edition-date {
  margin-top: 3.2em;
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
  font-size: 15px;
  color: var(--muted);
}
.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 550;
  color: var(--nav);
  padding: 10px 4px;
}
.doc-back:hover {
  color: var(--ink);
}

/* ---------- Responsive ---------- */
@media (min-width: 1600px) {
  .hero {
    padding-top: 80px;
  }
}
@media (max-width: 1180px) {
  .hero-stage {
    padding-inline: 40px;
  }
  .stage-label-top {
    right: 24px;
  }
  .stage-label-left {
    left: 16px;
  }
  .stage-label-right {
    right: 8px;
  }
  .node {
    font-size: 14px;
    padding: 9px 12px 9px 10px;
    gap: 8px;
  }
  .node small {
    display: none;
  }
  .section-wrap {
    padding-inline: 32px;
  }
  .why-projects ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 40px;
  }
  .feature-tabs button {
    padding: 14px 18px;
    gap: 12px;
    font-size: 17px;
  }
  .feature-panel {
    gap: 28px;
    padding-left: 30px;
    min-height: 420px;
  }
  .feature-copy h3 {
    font-size: 28px;
  }
  .ill {
    padding: 24px;
  }
  .sheet {
    padding: 16px 18px;
  }
  .sheet-row {
    grid-template-columns: 110px 1fr;
  }
  .principles-panel {
    grid-template-columns: 1fr;
    padding: 48px;
  }
  .principles-copy {
    max-width: 640px;
  }
  .bots {
    gap: 56px;
  }
  .ptable-group {
    grid-template-columns: 1fr;
  }
  .ptable-head {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 12px 16px;
  }
  .faq {
    gap: 48px;
  }
  .doc-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 48px;
  }
}
@media (max-width: 1024px) {
  .desktop-nav,
  .header-actions .header-cta {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .no-js .menu-toggle {
    display: none;
  }
  .no-js .header-actions .header-cta {
    display: inline-flex;
  }
  .stage-tabs li:not(.is-current) {
    display: none;
  }
  .section-heading,
  .slab-heading {
    gap: 32px;
  }
  .section-heading > p,
  .slab-heading > p {
    max-width: 340px;
    font-size: 17px;
  }
  .doc-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .doc-toc {
    position: static;
    max-height: none;
    padding: 0;
  }
  .doc-toc.is-collapsible .toc-title {
    display: none;
  }
  .doc-toc .toc-title {
    padding: 18px 20px 12px;
  }
  .doc-toc .toc-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px 20px;
    border: 0;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
  }
  .doc-toc .toc-toggle::after {
    content: "+" / "";
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1;
  }
  .doc-toc .toc-toggle[aria-expanded="true"]::after {
    content: "\2212" / "";
  }
  .doc-toc ol {
    padding: 0 10px 14px;
  }
}
@media (max-width: 960px) {
  .feature-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Process stages: one column and stacked illustrations until the layered layout has room */
@media (max-width: 1000px) {
  .feature-panel {
    grid-template-columns: 1fr;
    padding: 36px 0 40px;
    gap: 36px;
    min-height: 0;
  }
  .feature-copy {
    padding: 0 36px;
    max-width: 640px;
  }
  .feature-visual {
    width: calc(100% - 48px);
    margin-left: 36px;
    aspect-ratio: auto;
    transform: none;
  }
  .feature-panel:hover .feature-visual {
    transform: none;
  }
  /* Illustrations become a simple stack instead of a layered composition */
  .ill,
  .feature-visual .ill {
    position: relative;
    inset: auto;
    display: grid;
    gap: 14px;
    padding: 22px;
  }
  .ill .sheet,
  .ill-support .pipeline {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: auto;
    transform: none;
  }
  .ill-support .pipeline {
    gap: 12px;
  }
  .ill-support .wire-down {
    display: none;
  }
}
@media (max-width: 860px) {
  .bots {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 88px;
    padding-bottom: 88px;
  }
  .bots-copy {
    max-width: 640px;
  }
  .bots-art {
    max-width: 560px;
    width: 100%;
    min-height: 580px;
    margin: 0 auto;
    grid-row: 2;
  }
  .slab-heading,
  .section-heading {
    display: block;
  }
  .slab-heading > p,
  .section-heading > p {
    max-width: 560px;
    margin-top: 20px;
  }
  .stage-label {
    font-size: 13px;
    padding: 11px 15px;
  }
  .faq {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Simplified, reflowing diagram for phones and portrait tablets */
@media (max-width: 860px) {
  .stage-window {
    border-width: 4px;
    border-radius: 14px;
    transform: none;
  }
  .stage-bar {
    padding: 10px 12px;
  }
  .stage-label {
    display: none;
  }
  .arch {
    padding: 14px 14px 18px;
  }
  .arch-heads,
  .arch-wires,
  .arch-cluster {
    display: none;
  }
  .arch-canvas {
    aspect-ratio: auto;
    margin-top: 0;
    display: grid;
    gap: 44px;
  }
  .arch-col {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    padding-top: 26px;
  }
  .arch-col::before {
    content: attr(data-label);
    position: absolute;
    top: 0;
    left: 2px;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .arch-col + .arch-col::after {
    content: "";
    position: absolute;
    top: -32px;
    left: 50%;
    width: 12px;
    height: 20px;
    transform: translateX(-50%);
    background: var(--accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 18'%3E%3Cpath d='M6 1v15M1.5 11.5 6 16l4.5-4.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 18'%3E%3Cpath d='M6 1v15M1.5 11.5 6 16l4.5-4.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .node {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    box-shadow: none;
  }
  .node.is-stack {
    box-shadow: none;
  }
  .arch-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .arch-col .node {
    white-space: normal;
    min-width: 0;
  }
  .arch-col .node:only-child {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .arch-observe {
    position: static;
    flex-wrap: wrap;
  }
  .arch-observe ul {
    margin-left: 0;
  }
}
@media (max-width: 760px) {
  :root {
    scroll-padding-top: 16px;
  }
  .site-header {
    height: 74px;
    padding: 0 20px;
    gap: 12px;
  }
  .header-actions {
    gap: 8px;
  }
  .brand {
    font-size: 20px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
  }
  .hero {
    padding-top: 44px;
  }
  .hero h1 {
    letter-spacing: -0.04em;
    line-height: 1.07;
    margin-top: 20px;
  }
  .hero-description {
    font-size: 17px;
    margin-top: 20px;
  }
  .actions {
    margin-top: 26px;
  }
  .hero-note {
    font-size: 13px;
  }
  .hero-stage {
    padding: 34px 16px 0;
    margin-top: 34px;
  }
  .why {
    padding-top: 72px;
  }
  .why-grid,
  .why-notes,
  .why-projects ul {
    grid-template-columns: 1fr;
  }
  .why-card {
    padding: 24px 22px;
  }
  .why-stats {
    gap: 12px 32px;
  }
  .why-stats b {
    font-size: 36px;
  }
  .directions {
    padding: 44px 20px 48px;
  }
  .direction-list {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    gap: 16px 28px;
    font-size: 17px;
  }
  .direction-list li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
  }
  .section-wrap {
    padding-inline: 24px;
  }
  h2 {
    font-size: 40px;
    letter-spacing: -0.035em;
  }
  .slab {
    margin-inline: 12px;
    border-radius: 24px;
  }
  .slab .section-wrap {
    padding-inline: 22px;
  }
  .services {
    padding-top: 48px;
    padding-bottom: 28px;
  }
  .service-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 40px;
  }
  .service {
    padding-top: 24px;
  }
  .process {
    padding-top: 72px;
    padding-bottom: 64px;
  }
  .feature-tabs {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .feature-tabs button {
    min-height: 60px;
    padding: 14px 18px;
  }
  .feature-panel {
    padding: 28px 0 26px;
    gap: 28px;
  }
  .feature-copy {
    padding: 0 24px;
  }
  .feature-copy h3 {
    font-size: 26px;
  }
  .feature-copy p {
    font-size: 16px;
  }
  .feature-visual {
    width: calc(100% - 32px);
    margin-left: 16px;
    border-width: 3px;
  }
  .ill,
  .feature-visual .ill {
    padding: 16px;
  }
  .ill-support .pipeline {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .pipeline::before {
    left: 24px;
    right: auto;
    top: 10%;
    bottom: 10%;
    width: 2px;
    height: auto;
  }
  .sprints {
    grid-template-columns: 1fr;
  }
  .sprints li {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 12px;
  }
  .sprints li small {
    grid-column: 1;
  }
  .sprints .demo {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
  }
  .sheet-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .principles {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .principles-panel {
    padding: 30px 22px;
    gap: 34px;
  }
  .principles-copy h2 {
    font-size: 38px;
  }
  .principle-list li {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 18px 0;
  }
  .principle-list p {
    grid-column: 1 / -1;
    margin-top: 8px;
  }
  .bots {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .bots-art {
    min-height: 520px;
    padding: 40px 20px 64px;
  }
  .bots-word {
    font-size: 150px;
  }
  .bots-copy h2 {
    font-size: 40px;
  }
  .phone {
    width: 252px;
  }
  .stack {
    padding: 48px 0 28px;
  }
  .ptable {
    margin-top: 32px;
    gap: 14px;
  }
  /* Phones: the area label is the first tile, then seven horizontal tiles, two per row. */
  .ptable-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .ptable-cells {
    display: contents;
  }
  .ptable-head {
    padding: 8px 12px;
    font-size: 15px;
    gap: 10px;
    border-radius: 12px;
  }
  .ptable-head .glyph {
    width: 22px;
    height: 22px;
  }
  .cell {
    position: relative;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 8px 12px;
    border-radius: 12px;
  }
  .cell-n {
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 9.5px;
  }
  .cell-sym {
    margin-top: 0;
    min-width: 2ch;
    font-size: 20px;
  }
  .cell-name {
    margin-top: 0;
    font-size: 12.5px;
  }
  .faq {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .faq-list summary {
    font-size: 17px;
    min-height: 70px;
    gap: 16px;
  }
  .faq-list details p {
    font-size: 16px;
    padding-right: 8px;
  }
  .closing {
    padding-top: 44px;
    border-radius: 24px 24px 0 0;
  }
  .closing-mark {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
  }
  .closing h2 {
    font-size: 46px;
  }
  .closing-lead {
    font-size: 17px;
  }
  .closing-word {
    margin-top: 44px;
  }
  .site-footer {
    padding: 28px 20px 40px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "brand"
      "nav"
      "legal";
  }
  .site-footer nav {
    justify-self: start;
  }
  .site-footer nav ul {
    flex-direction: column;
    gap: 12px;
  }
  .cookie {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    bottom: 12px;
  }
  .doc {
    padding-top: 20px;
  }
  .legal {
    font-size: 16.5px;
  }
}
@media (max-width: 420px) {
  .site-header {
    padding-inline: 16px;
  }
  .section-wrap {
    padding-inline: 18px;
  }
  .hero-copy {
    padding-inline: 18px;
  }
  .hero h1 {
    font-size: 38px;
  }
  .actions .button {
    width: 100%;
    justify-content: space-between;
  }
  .hero-stage {
    padding-inline: 10px;
  }
  .stage-caption {
    display: none;
  }
  h2 {
    font-size: 34px;
  }
  .principles-copy h2,
  .bots-copy h2 {
    font-size: 34px;
  }
  .closing h2 {
    font-size: 38px;
  }
  .slab .section-wrap {
    padding-inline: 18px;
  }
  .bots-art {
    min-height: 480px;
  }
  .phone {
    width: 236px;
  }
  .contact-actions .button {
    width: 100%;
    justify-content: space-between;
  }
}
@media (max-width: 379px) {
  .direction-list {
    grid-template-columns: auto;
  }
  .direction-list li:last-child:nth-child(odd) {
    grid-column: auto;
    justify-self: start;
  }
}
@media (max-width: 340px) {
  .brand {
    font-size: 18px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .principles-copy h2,
  .bots-copy h2,
  h2 {
    font-size: 31px;
  }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .stage-window,
  .feature-visual,
  .phone,
  .button:hover {
    transform: none !important;
  }
}

/* ---------- Print ---------- */
@media print {
  @page {
    size: A4;
    margin: 18mm 16mm;
  }
  :root,
  html,
  body {
    background: #fff !important;
    color: #000 !important;
    color-scheme: light !important;
  }
  body {
    font-size: 10.5pt;
    line-height: 1.5;
  }
  .site-header,
  .site-footer,
  .skip-link,
  .doc-toc,
  .doc-main > .eyebrow,
  .cookie {
    display: none !important;
  }
  .section-wrap,
  .doc {
    max-width: none;
    padding: 0 !important;
  }
  .doc-layout {
    display: block;
  }
  .doc-main {
    max-width: none;
  }
  .legal,
  .legal .document-title,
  .legal .section-title,
  .legal .subsection-title,
  .legal strong,
  .legal .num {
    color: #000 !important;
  }
  .legal {
    font-size: 10.5pt;
    line-height: 1.5;
  }
  .legal .document-title {
    font-size: 20pt;
    letter-spacing: -0.02em;
  }
  .legal .section-title {
    font-size: 13pt;
  }
  .legal .subsection-title {
    font-size: 11pt;
  }
  .legal .document-subtitle {
    color: #444 !important;
    border-bottom: 1.5pt solid #000;
  }
  .legal li::before {
    background: #000 !important;
  }
  .legal a {
    color: #000 !important;
    text-decoration: underline;
  }
  .legal .section-title,
  .legal .subsection-title {
    break-after: avoid;
    page-break-after: avoid;
  }
  .legal p,
  .legal li {
    orphans: 3;
    widows: 3;
  }
  .legal .edition-date {
    color: #444 !important;
    border-top: 0.5pt solid #999;
  }
}

.nowrap {
  white-space: nowrap;
}

/* ---------- NIIII: games, brand and consent ---------- */
.brand-mark { color: var(--accent); }
.brand-story { margin-top: 24px; max-width: 760px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.game-section { padding-block: 112px; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.game-card { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 30px; border: 1px solid var(--card-line); border-radius: var(--radius); background: var(--card); }
.game-number { font-size: 12px; font-weight: 650; letter-spacing: .1em; color: var(--accent); }
.game-card > .icon { width: 32px; height: 32px; margin-top: 8px; color: var(--accent); }
.game-card h3 { font-size: 25px; line-height: 1.2; letter-spacing: -.025em; }
.game-card p { color: var(--muted); font-size: 16px; line-height: 1.65; }
.game-card > .prose-link, .game-card .tags { margin-top: auto; }
.game-cta { margin-top: 28px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.game-cta a { display: inline; }
.footer-link, .inline-button { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.inline-button { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
.footer-link:hover { color: var(--accent); }
.cookie { max-width: 1060px; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions .button { white-space: nowrap; }
.cookie .button-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.cookie .button-ghost:hover { border-color: var(--accent); }
@media (max-width: 1000px) {
  .game-grid { grid-template-columns: 1fr; }
  .game-card { padding: 26px; }
  .game-card > .prose-link, .game-card .tags { margin-top: 0; }
  .cookie { flex-direction: column; align-items: stretch; gap: 16px; }
  .cookie-actions { justify-content: flex-end; }
}
@media (max-width: 760px) {
  .game-section { padding-block: 72px; }
  .game-card h3 { font-size: 24px; }
  .cookie-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cookie-actions .button { padding-inline: 10px; font-size: 13px; }
  .footer-legal { max-width: 100%; }
}

/* Approved B — Institute, original outlined lettering. */
.brand-lockup { width: 166.4px; height: 32px; flex: none; }
.logo-symbol { fill: var(--accent); }
.logo-wordmark { fill: var(--ink); }
.site-footer .brand-lockup { width: 145.6px; height: 28px; }
.closing-mark { color: var(--accent); }
@media (max-width: 420px) { .site-header .brand-lockup { width: 156px; height: 30px; } }
