/* ==========================================================================
   Qynetic Labs: site styles
   Monochrome, pixel-cornered, with one copper accent (the colour of a trace).
   ========================================================================== */

:root {
  --bg: #070707;
  --bg-2: #0B0B0B;
  --panel: #0F0F0F;
  --panel-2: #151515;
  --ink: #EDEBE6;
  --ink-2: #A9A69E;
  --ink-3: #807D76;
  --ink-4: #45433F;
  --line: rgba(237, 235, 230, .09);
  --line-2: rgba(237, 235, 230, .17);
  --cu: #D8A54A;
  --cu-2: #F0C877;
  --cu-soft: rgba(216, 165, 74, .14);
  --paper: #ECEAE4;
  --paper-ink: #0A0A0A;

  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --px: "Silkscreen", var(--mono);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --n: 4px; /* pixel notch */
  color-scheme: dark;
}

.paper {
  --bg: var(--paper);
  --bg-2: #E4E1DA;
  --panel: #E2DFD8;
  --panel-2: #D9D6CE;
  --ink: #0A0A0A;
  --ink-2: #47453F;
  --ink-3: #6B6860;
  --ink-4: #B9B5AB;
  --line: rgba(10, 10, 10, .11);
  --line-2: rgba(10, 10, 10, .22);
  --cu: #8F6114;
  --cu-2: #8F6114;
  --cu-soft: rgba(143, 97, 20, .12);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
/* content protection: nothing on the page can be selected (form fields excepted) */
html { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable="true"] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
img { -webkit-user-drag: none; }
body {
  margin: 0; background: #070707; color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
em { font-style: italic; }
::selection { background: var(--cu); color: #0A0A0A; }
:focus-visible { outline: 2px solid var(--cu); outline-offset: 3px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #070707; padding: 10px 14px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); }
.narrow { display: none; }
.px { font-family: var(--px); font-weight: 400; letter-spacing: 0; }

/* ---------- type ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 28px;
}
.eyebrow .px { color: var(--cu); font-size: 12px; letter-spacing: 0; }
.eyebrow .px::after { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--line-2); vertical-align: middle; margin-left: 12px; }

.h1, .h2 { font-family: var(--sans); font-weight: 500; color: var(--ink); position: relative; }
.h1 em, .h2 em { font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; }
.h1 { font-size: clamp(54px, 9.4vw, 164px); line-height: .9; letter-spacing: -.05em; }
.h1 em { font-size: 1.07em; color: var(--cu-2); }
.h2 { font-size: clamp(40px, 5.6vw, 92px); line-height: .95; letter-spacing: -.042em; max-width: 14ch; text-wrap: balance; }
.h2 em { color: var(--ink-2); font-size: 1.06em; }
.h2-xl { font-size: clamp(52px, 9vw, 156px); max-width: 12ch; }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.fine { font-family: var(--mono); font-size: 11.5px; line-height: 1.6; color: var(--ink-3); margin-top: 22px; max-width: 90ch; }

/* pixel-resolve headings: text is painted by a canvas until it has resolved */
.js [data-resolve].resolving:not(.resolved) { -webkit-text-fill-color: transparent; }
.rs-canvas { position: absolute; pointer-events: none; z-index: 1; }

/* ---------- buttons ---------- */
.notch, .btn {
  clip-path: polygon(var(--n) 0, calc(100% - var(--n)) 0, calc(100% - var(--n)) var(--n), 100% var(--n), 100% calc(100% - var(--n)), calc(100% - var(--n)) calc(100% - var(--n)), calc(100% - var(--n)) 100%, var(--n) 100%, var(--n) calc(100% - var(--n)), 0 calc(100% - var(--n)), 0 var(--n), var(--n) var(--n));
}
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  background: var(--ink); color: var(--bg);
  font-size: 15.5px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap;
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--cu-2); color: #0A0A0A; }
.btn:active { transform: translateY(1px); }
.btn span[aria-hidden] { transition: transform .25s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(3px); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; --n: 3px; }
.btn-ghost { background: var(--line-2); color: var(--ink); }
.btn-ghost::before {
  content: ""; position: absolute; inset: 1px; z-index: -1; background: #0A0A0A;
  clip-path: polygon(calc(var(--n) - 1px) 0, calc(100% - var(--n) + 1px) 0, calc(100% - var(--n) + 1px) calc(var(--n) - 1px), 100% calc(var(--n) - 1px), 100% calc(100% - var(--n) + 1px), calc(100% - var(--n) + 1px) calc(100% - var(--n) + 1px), calc(100% - var(--n) + 1px) 100%, calc(var(--n) - 1px) 100%, calc(var(--n) - 1px) calc(100% - var(--n) + 1px), 0 calc(100% - var(--n) + 1px), 0 calc(var(--n) - 1px), calc(var(--n) - 1px) calc(var(--n) - 1px));
  transition: background-color .2s;
}
.btn-ghost:hover { background: var(--ink); color: var(--ink); }
.btn-ghost:hover::before { background: #151515; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; font-size: 22px; line-height: 1; color: var(--ink-2); border: 1px solid var(--line-2); transition: color .2s, border-color .2s; }
.icon-btn:hover { color: var(--ink); border-color: var(--ink-3); }

/* crop marks around a panel: four corners, one pseudo-element */
.marks { position: relative; --mc: var(--ink-3); }
.marks::before {
  content: ""; position: absolute; inset: -9px; pointer-events: none;
  background:
    linear-gradient(var(--mc), var(--mc)) top left / 12px 1px no-repeat,
    linear-gradient(var(--mc), var(--mc)) top left / 1px 12px no-repeat,
    linear-gradient(var(--mc), var(--mc)) top right / 12px 1px no-repeat,
    linear-gradient(var(--mc), var(--mc)) top right / 1px 12px no-repeat,
    linear-gradient(var(--mc), var(--mc)) bottom left / 12px 1px no-repeat,
    linear-gradient(var(--mc), var(--mc)) bottom left / 1px 12px no-repeat,
    linear-gradient(var(--mc), var(--mc)) bottom right / 12px 1px no-repeat,
    linear-gradient(var(--mc), var(--mc)) bottom right / 1px 12px no-repeat;
}

.chip { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; padding: 3px 8px; border: 1px solid var(--line-2); color: var(--ink-3); white-space: nowrap; }
.chip-live { color: var(--cu); border-color: color-mix(in srgb, var(--cu) 50%, transparent); }
.chip-live::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--cu); margin-right: 7px; vertical-align: 1px; animation: blink 1.6s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(7, 7, 7, .72); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.nav.on-paper.scrolled { background: rgba(236, 234, 228, .84); border-bottom-color: rgba(10, 10, 10, .1); }
.nav.on-paper .brand, .nav.on-paper .nav-links a:hover, .nav.on-paper .nav-links a.on { color: #0A0A0A; }
.nav.on-paper .nav-links a, .nav.on-paper .kbd-btn { color: #47453F; }
.nav.on-paper .kbd-btn, .nav.on-paper .brand-labs, .nav.on-paper .kbd-btn kbd, .nav.on-paper .menu-btn { border-color: rgba(10, 10, 10, .22); }
.nav.on-paper .brand-labs, .nav.on-paper .kbd-btn kbd { color: #6B6860; }
.nav.on-paper .nav-links a.on::before { background: #8F6114; }
.nav.on-paper .btn { background: #0A0A0A; color: #ECEAE4; }
.nav.on-paper .btn:hover { background: #8F6114; color: #fff; }
.nav.on-paper .menu-btn i { background: #0A0A0A; }
.nav-in { height: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.brand-word { height: 16px; width: auto; }
.brand-labs { font-size: 10px; letter-spacing: .08em; color: var(--ink-3); padding: 3px 5px; border: 1px solid var(--line-2); line-height: 1; }
.nav-links { display: flex; gap: 4px; margin-inline: auto; }
.nav-links a { position: relative; padding: 8px 14px; font-size: 14.5px; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover, .nav-links a.on { color: var(--ink); }
.nav-links a.on::before { content: ""; position: absolute; left: 3px; top: 50%; width: 4px; height: 4px; margin-top: -2px; background: var(--cu); }
.nav-act { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-links + .nav-act { margin-left: 0; }
.kbd-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 12px; border: 1px solid var(--line-2); color: var(--ink-2); font-size: 12px; transition: color .2s, border-color .2s; }
.kbd-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.kbd-btn kbd { font-family: var(--mono); font-size: 11px; padding: 1px 6px; border: 1px solid var(--line-2); color: var(--ink-3); }
.menu-btn { display: none; width: 40px; height: 38px; position: relative; border: 1px solid var(--line-2); }
.menu-btn i { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn i:first-child { top: 14px; }
.menu-btn i:last-child { top: 21px; }
.menu-btn[aria-expanded="true"] i:first-child { top: 17.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { top: 17.5px; transform: rotate(-45deg); }

.nav-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.nav-progress i {
  display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0));
  background: repeating-linear-gradient(90deg, var(--cu) 0 6px, transparent 6px 8px);
}

.menu {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 49; background: #070707;
  padding: 32px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: clamp(30px, 8vw, 44px); letter-spacing: -.035em; font-weight: 500; }
.menu nav a .px { font-size: 12px; color: var(--cu); letter-spacing: 0; }
.menu-foot { font-size: 12px; color: var(--ink-3); line-height: 1.8; margin-top: 32px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: grid; grid-template-rows: 1fr auto; background: #070707;
  padding-top: var(--nav-h);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; touch-action: pan-y; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,7,7,.95) 0%, rgba(7,7,7,.82) 30%, rgba(7,7,7,.25) 56%, rgba(7,7,7,0) 70%),
    linear-gradient(0deg, rgba(7,7,7,.96) 0%, rgba(7,7,7,0) 34%);
}
.hero-in { align-self: end; padding-top: 48px; padding-bottom: clamp(36px, 6vh, 64px); pointer-events: none; }
.hero-in > * { pointer-events: auto; }
.hero-eyebrow { margin-bottom: 26px; letter-spacing: .14em; }
.hero-eyebrow .dot { width: 7px; height: 7px; background: var(--cu); animation: blink 1.6s steps(2, jump-none) infinite; }
.hero-eyebrow .sep { color: var(--ink-4); }
.hero-eyebrow { flex-wrap: wrap; row-gap: 6px; }
.hero .h1 { max-width: 9.5ch; }
.hero-lead { margin-top: 30px; max-width: 40ch; color: #BEBBB3; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-hint {
  position: absolute; right: var(--gutter); bottom: 132px; z-index: 1; max-width: 300px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right;
  font-size: 11px; line-height: 1.6; color: var(--ink-3); pointer-events: none;
}
.hero-hint b { font-weight: 500; color: var(--cu); font-size: 12px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.hero-strip { position: relative; z-index: 1; }
.hero-strip dl { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); }
.hero-strip dl > div { padding: 20px 20px 26px 0; }
.hero-strip dl > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.hero-strip dt { font-size: clamp(16px, 1.6vw, 22px); color: var(--ink); line-height: 1.2; }
.hero-strip dd { margin-top: 6px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); letter-spacing: .02em; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.sec { position: relative; padding-block: clamp(96px, 13vw, 184px); background: var(--bg); color: var(--ink); }
.sec.dark + .sec.dark { border-top: 1px solid var(--line); }
.sec-head { margin-bottom: clamp(48px, 6vw, 88px); }
.sec-head .lead { margin-top: 28px; }
.sec-head-split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: end; }
.sec-head-split .lead { margin-top: 0; justify-self: end; }

/* ---------- 00 manifesto ---------- */
.manifesto {
  font-size: clamp(30px, 4.3vw, 66px); line-height: 1.1; letter-spacing: -.03em; font-weight: 500;
  max-width: 21ch; color: var(--ink); text-wrap: pretty;
}
.manifesto em { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; font-size: 1.06em; }
.mw { position: relative; }
.mw::before {
  content: ""; position: absolute; left: -.03em; right: -.03em; top: .2em; bottom: .06em; background: var(--ink);
  transform-origin: right center; transition: transform .42s steps(6, jump-none);
}
.mw.on::before { transform: scaleX(0); }
.js .manifesto .mw { -webkit-text-fill-color: transparent; transition: -webkit-text-fill-color 0s .14s; }
.js .manifesto .mw.on { -webkit-text-fill-color: currentColor; }
.manifesto .mw.sp::before { display: none; }

.problems { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(72px, 9vw, 128px); border-top: 1px solid var(--line-2); }
.problem { padding: 28px 32px 8px 0; }
.problem + .problem { padding-left: 32px; border-left: 1px solid var(--line); }
.problem .num { color: var(--cu); font-size: 13px; }
.problem h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.025em; font-weight: 500; margin: 18px 0 12px; }
.problem p { color: var(--ink-2); font-size: 16px; }

.bigstat { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 64px); align-items: end; margin-top: clamp(72px, 9vw, 120px); padding-top: 40px; border-top: 1px solid var(--line-2); }
.bigstat-n { font-size: clamp(64px, 12vw, 196px); line-height: .78; color: var(--ink); letter-spacing: -.02em; }
.bigstat-t { font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-2); max-width: 32ch; padding-bottom: 6px; }

/* ---------- 01 platform stack ---------- */
.stack-scroll { position: relative; height: calc(100vh + 5 * 60vh); }
.stack-pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding-top: var(--nav-h); }
.stack { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 96px); align-items: center; }
.stack-visual { height: min(68vh, 620px); display: grid; place-items: center; perspective: 2400px; }
.iso {
  --plate: clamp(200px, 23vw, 330px); --explode: 0; --gap: calc(22px + var(--explode) * 58px);
  position: relative; width: var(--plate); height: var(--plate);
  transform: translateY(calc(var(--gap) * 1.6)) rotateX(57deg) rotateZ(-45deg); transform-style: preserve-3d;
}
.plate {
  position: absolute; inset: 0; transform: translateZ(calc(var(--i) * var(--gap)));
  background-color: rgba(12, 12, 12, .965);
  background-image: radial-gradient(circle, rgba(237,235,230,.13) 1px, transparent 1.4px);
  background-size: calc(var(--plate) / 14) calc(var(--plate) / 14); background-position: center;
  border: 1px solid var(--line-2);
  transition: transform .7s var(--ease-out), border-color .35s, background-color .35s, opacity .35s;
}
.plate span {
  position: absolute; left: 10px; bottom: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
  transition: color .35s;
}
.plate .plate-ic { position: absolute; left: 50%; top: 50%; width: 42%; height: 42%; transform: translate(-50%, -50%); color: var(--ink-4); transition: color .35s; }
.plate .plate-ic svg { width: 100%; height: 100%; }
.plate.on { transform: translateZ(calc(var(--i) * var(--gap) + 28px)); border-color: var(--cu); background-color: rgba(30, 23, 11, .92); }
.plate.on span { color: var(--cu); }
.plate.on .plate-ic { color: var(--cu-2); }
.plate.dim { opacity: .55; }

.layers { border-top: 1px solid var(--line-2); }
.layer { border-bottom: 1px solid var(--line); }
.layer-btn { width: 100%; display: grid; grid-template-columns: 44px 1fr; grid-template-areas: "n k" "n name"; align-items: baseline; column-gap: 8px; padding: 20px 0; text-align: left; }
.layer-btn .px { grid-area: n; font-size: 12px; color: var(--ink-3); transition: color .3s; }
.layer-kind { grid-area: k; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.layer-name { grid-area: name; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.035em; font-weight: 500; color: #66645E; transition: color .3s; line-height: 1.1; margin-top: 4px; }
.layer-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-out); }
.lb-in { overflow: hidden; min-height: 0; }
.layer-body p:first-child { color: var(--ink-2); padding-left: 52px; max-width: 54ch; }
.layer.on .layer-body { grid-template-rows: 1fr; }
.layer.on .layer-btn .px { color: var(--cu); }
.layer.on .layer-name { color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0 24px 52px; }
.tags span { font-family: var(--mono); font-size: 11px; padding: 4px 9px; border: 1px solid var(--line-2); color: var(--ink-2); }

/* ---------- 02 vayu ---------- */
.scale { margin-bottom: 40px; }
.scale-track { position: relative; height: 158px; touch-action: none; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.scale-axis { position: absolute; left: 0; right: 0; top: 82px; height: 1px; background: var(--line-2); }
.scale-axis i { font-style: normal; }
.scale-axis .tick { position: absolute; top: 0; width: 1px; height: 6px; background: var(--ink-4); }
.scale-axis .tick.major { height: 12px; background: var(--ink-3); }
.scale-axis .tick b { position: absolute; top: 18px; left: 0; transform: translateX(-50%); font-family: var(--mono); font-size: 10.5px; font-weight: 400; color: var(--ink-3); white-space: nowrap; }
.scale-axis .range { position: absolute; top: -2px; height: 5px; background: var(--ink-4); transition: background-color .3s; }
.scale-axis .range.on { background: var(--cu); }
.scale-probe { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; transform: translateX(-.5px); background: linear-gradient(var(--cu), var(--cu)) center 50px / 1px 30px no-repeat; transition: left .6s var(--ease-out); pointer-events: none; }
.scale-probe i { position: absolute; top: 76px; left: -6px; width: 13px; height: 13px; background: var(--cu); box-shadow: 0 0 0 4px rgba(216,165,74,.18); }
.scale-marks { position: absolute; inset: 0; }
.mark {
  position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 4px 8px; color: var(--ink-3); transition: color .25s;
}
.mark b { font-weight: 500; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }
.mark small { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.mark::after { content: ""; position: absolute; top: 78px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; background: #070707; border: 1px solid var(--ink-3); transition: border-color .25s, background-color .25s; }
.mark:hover, .mark[aria-selected="true"] { color: var(--ink); }
.mark[aria-selected="true"]::after { border-color: var(--cu); background: var(--cu); }
.mark[aria-selected="true"] small { color: var(--cu); }
.mark.alt { top: 112px; }
.mark.alt::after { top: -34px; }
.scale-unit { font-size: 10.5px; color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; text-align: right; margin-top: 6px; }

.board-panel {
  display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); grid-template-rows: 1fr auto;
  grid-template-areas: "vis info" "vis mx";
  border: 1px solid var(--line-2); background: linear-gradient(180deg, #0C0C0C, #090909);
  min-height: 560px;
}
.bp-visual { grid-area: vis; position: relative; display: flex; align-items: center; justify-content: center; padding: 32px; border-right: 1px solid var(--line); overflow: hidden; }
.bp-visual::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(237,235,230,.07) 1px, transparent 1.3px); background-size: 22px 22px; pointer-events: none; }
.bp-visual > * { position: relative; }
.bp-info { grid-area: info; padding: 36px 36px 24px; }
.bp-matrix { grid-area: mx; padding: 0 36px 32px; }
.bp-tier { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.bp-name { font-size: clamp(40px, 4.6vw, 68px); font-weight: 500; letter-spacing: -.045em; line-height: 1; margin-top: 12px; }
.bp-tops { margin-top: 16px; font-family: var(--mono); font-size: 13px; color: var(--ink-3); letter-spacing: .06em; }
.bp-tops .px { font-size: clamp(30px, 3vw, 44px); color: var(--cu); letter-spacing: 0; margin-right: 6px; }
.bp-desc { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.8vw, 26px); color: var(--ink-2); margin-top: 10px; line-height: 1.2; }
.bp-specs { margin-top: 26px; border-top: 1px solid var(--line); }
.bp-specs > div { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.bp-specs dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.bp-specs dd { color: var(--ink); }
.bp-specs dd .chip { margin-left: 0; white-space: normal; }
.bp-info.swap > * { animation: rise .5s var(--ease-out) both; }
.bp-info.swap > *:nth-child(2) { animation-delay: .03s; }
.bp-info.swap > *:nth-child(3) { animation-delay: .06s; }
.bp-info.swap > *:nth-child(4) { animation-delay: .09s; }
.bp-info.swap > *:nth-child(5) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.matrix { display: grid; grid-template-columns: repeat(48, 1fr); gap: 2px; }
.matrix i { aspect-ratio: 1; background: #1A1A1A; transition: background-color .15s; }
.matrix i.on { background: var(--cu); }
.matrix i.ext { background: rgba(216,165,74,.38); }
.matrix-cap { margin-top: 12px; font-size: 11.5px; color: var(--ink-3); }
.matrix-cap b { color: var(--ink); font-weight: 500; }

.v1, .bp { width: 100%; }
.v1 { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.v1-stage { position: relative; width: 108%; max-width: 760px; margin-inline: -4%; }
.v1-stage img { width: 100%; height: auto; filter: drop-shadow(0 30px 34px rgba(0,0,0,.6)); }
.v1 figcaption { font-size: 11px; color: var(--ink-3); letter-spacing: .04em; text-align: center; }
.hs { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; display: grid; place-items: center; z-index: 2; }
.hs::before { content: ""; width: 9px; height: 9px; background: var(--cu); box-shadow: 0 0 0 3px rgba(7,7,7,.65); transition: transform .2s; }
.hs::after { content: ""; position: absolute; inset: 2px; border: 1px solid var(--cu); opacity: .8; animation: ping 2.4s var(--ease-out) infinite; animation-delay: var(--d, 0s); }
@keyframes ping { 0% { transform: scale(.5); opacity: .9; } 70%, 100% { transform: scale(1.7); opacity: 0; } }
.hs:hover::before, .hs:focus-visible::before, .hs[aria-expanded="true"]::before { transform: scale(1.35); background: var(--ink); }
.hs-tip {
  position: absolute; z-index: 3; left: 0; top: 0; transform: translate(-50%, calc(-100% - 16px));
  background: #0A0A0A; border: 1px solid var(--line-2); padding: 9px 12px; min-width: 170px; max-width: 240px; pointer-events: none;
  opacity: 0; transition: opacity .18s;
}
.hs-tip.show { opacity: 1; }
.hs-tip b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.hs-tip span { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.v1-actions { display: flex; gap: 10px; align-items: center; }

.bp { width: 100%; max-width: 640px; }
.bp svg { width: 100%; height: auto; overflow: visible; }
.bp-cap { margin-top: 14px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-align: center; letter-spacing: .04em; }
.bp svg .board { fill: rgba(237,235,230,.025); stroke: var(--ink-2); stroke-width: .35; }
.bp svg .ref { fill: none; stroke: var(--ink-3); stroke-width: .3; stroke-dasharray: 1.4 1.2; }
.bp svg .ref-t { fill: var(--ink-3); font-family: var(--mono); font-size: 2.4px; letter-spacing: .1px; }
.bp svg .part { fill: #121212; stroke: var(--ink-3); stroke-width: .28; }
.bp svg .part.soc { fill: #1A1A1A; stroke: var(--ink); }
.bp svg .part.acc { fill: rgba(216,165,74,.16); stroke: var(--cu); }
.bp svg .part.m2 { fill: none; stroke: var(--ink-3); stroke-dasharray: .9 .7; }
.bp svg .part.m2.acc { fill: rgba(216,165,74,.1); stroke: var(--cu); }
.bp svg .part.port { fill: #191919; }
.bp svg .t { fill: var(--ink-2); font-family: var(--mono); font-size: 2.3px; }
.bp svg .t.acc { fill: var(--cu-2); }
.bp svg .hole { fill: #070707; stroke: var(--ink-3); stroke-width: .3; }
.bp svg .dim { fill: var(--ink-3); font-family: var(--mono); font-size: 2.6px; }
.bp svg .dim-l { stroke: var(--ink-4); stroke-width: .25; }
.bp svg .fan { fill: none; stroke: var(--ink-3); stroke-width: .3; }
.bp svg .din { fill: #141414; stroke: var(--ink-3); stroke-width: .3; }
.bp svg .draw { stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); animation: draw 1.1s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.bp svg .pop { opacity: 0; animation: pop .45s steps(4, jump-none) forwards; animation-delay: var(--d, 0s); }
@keyframes pop { to { opacity: 1; } }

.table-wrap { margin-top: 56px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lineup-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 720px; }
.lineup-table caption { text-align: left; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 16px; }
.lineup-table th, .lineup-table td { text-align: left; padding: 15px 16px 15px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lineup-table thead th { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); border-bottom-color: var(--line-2); }
.lineup-table tbody th { font-weight: 500; color: var(--ink); }
.lineup-table td { color: var(--ink-2); }

/* 3D dialog */
.dlg3d, .term-dlg {
  padding: 0; border: 1px solid var(--line-2); background: #0A0A0A; color: var(--ink);
  max-width: none; max-height: none;
}
.dlg3d { width: min(1000px, 94vw); height: min(740px, 86vh); }
.dlg3d[open] { display: grid; grid-template-rows: auto 1fr auto; }
.dlg3d::backdrop, .term-dlg::backdrop { background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dlg3d-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.dlg3d-head p { font-size: 12px; color: var(--ink-2); letter-spacing: .04em; }
.dlg3d-body { position: relative; min-height: 0; background: radial-gradient(ellipse at 50% 60%, #161616, #0A0A0A 70%); }
.dlg3d-body model-viewer { width: 100%; height: 100%; --progress-bar-color: var(--cu); background: transparent; }
.mv-status { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; font-size: 12px; color: var(--ink-3); text-align: center; padding: 24px; }
.mv-status img { max-width: min(560px, 80%); }
.dlg3d-foot { padding: 10px 20px; font-size: 11px; color: var(--ink-3); border-top: 1px solid var(--line); }

/* ---------- 03 runtime ---------- */
.rt { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 104px); align-items: start; }
.rt-copy .lead { margin-top: 28px; }
.formats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.formats li b { display: inline-block; font-family: var(--mono); font-weight: 500; font-size: 13px; padding: 8px 14px; border: 1px solid var(--line-2); letter-spacing: .02em; }
.zoo { margin-top: 44px; border-top: 1px solid var(--line-2); }
.zoo > p { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: 18px 0 6px; }
.zoo li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16px; display: flex; justify-content: space-between; gap: 16px; }
.zoo li span { color: var(--ink-3); font-family: var(--mono); font-size: 12px; text-align: right; }

.term { background: #0B0B0B; color: #EDEBE6; --mc: #6B6860; border: 1px solid #000; box-shadow: 0 40px 80px -30px rgba(0,0,0,.45); }
.term-bar { display: flex; align-items: center; gap: 16px; padding: 0 12px 0 16px; border-bottom: 1px solid rgba(237,235,230,.08); height: 48px; }
.term-dots { display: flex; gap: 6px; }
.term-dots i { width: 9px; height: 9px; background: #2A2A2A; }
.term-tabs { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.term-tabs::-webkit-scrollbar { display: none; }
.term-tabs button { font-family: var(--mono); font-size: 12px; padding: 7px 11px; color: #807D76; border: 1px solid transparent; transition: color .2s, border-color .2s; white-space: nowrap; }
.term-tabs button:hover { color: #EDEBE6; }
.term-tabs button[aria-selected="true"] { color: #F0C877; border-color: rgba(216,165,74,.45); background: rgba(216,165,74,.08); }
.term-code { padding: 18px 22px 20px; border-bottom: 1px solid rgba(237,235,230,.08); }
.term-file { font-size: 10.5px; color: #807D76; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.term pre { margin: 0; font-family: var(--mono); font-size: clamp(12.5px, 1.05vw, 14.5px); line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.term .k { color: #F0C877; }
.term .s { color: #CFC8B6; }
.term .c { color: #6B6860; }
.term-out { padding: 18px 22px; min-height: 252px; }
.term-out pre { color: #A9A69E; }
.term-out .ok { color: #8FD6A0; }
.term-out .hl { color: #F0C877; }
.term-out .dim { color: #5F5D58; }
.term-out .caret { display: inline-block; width: .6em; height: 1.1em; background: #F0C877; vertical-align: -2px; animation: blink 1s steps(2, jump-none) infinite; }
.term-note { padding: 12px 22px; border-top: 1px solid rgba(237,235,230,.08); font-size: 11px; color: #6B6860; }

/* ---------- 04 india grid ---------- */
.grid6 { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line); }
.cell6 { padding: 32px 32px 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .3s; }
.cell6:hover { background: var(--panel); }
.cell6 .cell6-k { font-size: clamp(22px, 2.2vw, 30px); color: var(--cu); line-height: 1; }
.cell6 h3 { margin: 40px 0 10px; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.cell6 p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- 05 qchip ---------- */
.qc-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-2); border-bottom: 0; }
.qc-tabs button { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 20px 24px; color: var(--ink-3); border-right: 1px solid var(--line); transition: color .2s, background-color .2s; text-align: left; }
.qc-tabs button:last-child { border-right: 0; }
.qc-tabs button .px { font-size: clamp(22px, 2.4vw, 32px); }
.qc-tabs button span:last-child { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.qc-tabs button:hover { color: var(--ink); }
.qc-tabs button[aria-selected="true"] { color: var(--ink); background: #0F0F0F; box-shadow: inset 0 2px 0 var(--cu); }
.qc-tabs button[aria-selected="true"] .px { color: var(--cu); }
.qc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); border: 1px solid var(--line-2); background: #0B0B0B; }
.qc-die { position: relative; padding: clamp(20px, 3vw, 44px); border-right: 1px solid var(--line); display: grid; place-items: center; }
.qc-die canvas { width: 100%; max-width: 560px; height: auto; aspect-ratio: 1; image-rendering: pixelated; cursor: crosshair; }
.qc-tip { position: absolute; left: 0; top: 0; pointer-events: none; font-size: 11.5px; background: #0A0A0A; border: 1px solid var(--line-2); padding: 6px 10px; white-space: nowrap; opacity: 0; transition: opacity .15s; transform: translate(14px, 14px); }
.qc-tip.show { opacity: 1; }
.qc-info { padding: clamp(28px, 3vw, 44px); }
.qc-stage { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.qc-info h3 { font-size: clamp(40px, 4.4vw, 64px); font-weight: 500; letter-spacing: -.045em; line-height: 1; margin-top: 14px; }
.qc-tops { margin-top: 16px; font-family: var(--mono); font-size: 13px; color: var(--ink-3); letter-spacing: .04em; }
.qc-tops .px { font-size: clamp(28px, 2.8vw, 40px); color: var(--cu); margin-right: 6px; letter-spacing: 0; }
.qc-desc { margin-top: 12px; color: var(--ink-2); max-width: 40ch; }
.qc-legend { margin-top: 28px; border-top: 1px solid var(--line); }
.qc-legend li { display: grid; grid-template-columns: 14px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; cursor: default; transition: background-color .2s; }
.qc-legend li i { width: 12px; height: 12px; }
.qc-legend li span { font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-align: right; }
.qc-legend li.hl { background: rgba(237,235,230,.04); }
.qc-info.swap > * { animation: rise .5s var(--ease-out) both; }

/* ---------- 06 uses ---------- */
.uses { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line); }
.use { position: relative; padding: 28px 26px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .3s, color .3s; min-height: 250px; }
.use-ic { display: block; width: 48px; height: 48px; color: var(--ink); }
.use-ic svg { width: 100%; height: 100%; }
.use-ic rect { transition: fill .01s; transition-delay: var(--d, 0s); fill: currentColor; }
.use h3 { margin: 52px 0 8px; font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.use p { font-size: 15px; color: var(--ink-2); max-width: 26ch; transition: color .3s; }
.use:hover { background: #0A0A0A; color: #EDEBE6; }
.use:hover p { color: #A9A69E; }
.use:hover .use-ic rect { fill: #D8A54A; }

/* ---------- 07 timeline ---------- */
.tl { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 28px; }
.tl-item { position: relative; padding: 26px 0 44px; border-top: 2px solid var(--ink); }
.tl-item.now { border-top-color: var(--cu); }
.tl-item.next { border-top: 2px dashed var(--ink-4); }
.tl-item::before { content: ""; position: absolute; left: 0; top: -6px; width: 10px; height: 10px; background: var(--ink); }
.tl-item.now::before { background: var(--cu); box-shadow: 0 0 0 5px rgba(216,165,74,.18); }
.tl-item.next::before { background: #070707; border: 2px solid var(--ink-4); }
.tl-item .tl-when { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.tl-item.now .tl-when { color: var(--cu); }
.tl-item h3 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin: 12px 0 8px; }
.tl-item p { font-size: 15px; color: var(--ink-2); }
.tl-item.next h3 { color: var(--ink-2); }
.cursor { display: inline-block; width: 8px; height: 13px; background: var(--cu); animation: blink 1s steps(2, jump-none) infinite; }

/* ---------- 08 team ---------- */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line-2); }
.person { display: grid; grid-template-columns: 132px 1fr; gap: 28px; align-items: start; padding: 36px 32px 40px 0; border-bottom: 1px solid var(--line); }
.person-lead { grid-column: 1 / -1; grid-template-columns: clamp(200px, 22vw, 300px) 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; padding-right: 0; }
.person-hire { border-left: 1px solid var(--line); padding-left: 32px; }
.person .person-role { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--cu); }
.person h3 { font-size: clamp(28px, 3vw, 44px); font-weight: 500; letter-spacing: -.04em; margin: 10px 0 12px; line-height: 1.05; }
.person-lead h3 { font-size: clamp(40px, 5vw, 72px); }
.person p { color: var(--ink-2); max-width: 58ch; }
.links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
.links a { font-family: var(--mono); font-size: 12.5px; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .2s, color .2s; }
.links a:hover { color: var(--cu-2); border-color: var(--cu); }
.portrait { position: relative; display: block; aspect-ratio: 1; background: #0C0C0C; border: 1px solid var(--line-2); overflow: hidden; }
.portrait img { position: absolute; inset: 8%; width: 84%; height: 84%; }
.portrait-px { image-rendering: pixelated; transition: opacity .5s steps(5, jump-none); }
.portrait-photo { filter: grayscale(1) contrast(1.06); opacity: 0; border-radius: 50%; transition: opacity .5s steps(5, jump-none); }
.portrait:hover .portrait-px, .portrait:focus-visible .portrait-px { opacity: 0; }
.portrait:hover .portrait-photo, .portrait:focus-visible .portrait-photo { opacity: 1; }
.portrait-mono { display: grid; place-items: center; }
.portrait-mono .px { font-size: clamp(30px, 3.4vw, 44px); color: var(--ink-3); }

/* ---------- 09 contact ---------- */
.sec-contact { padding-bottom: clamp(96px, 10vw, 140px); }
.contact { margin-top: clamp(56px, 7vw, 96px); }
.doors { border: 0; margin: 0; padding: 0; min-width: 0; }
.doors-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line); }
.doors legend { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: 0 0 16px; }
.door { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; transition: background-color .25s; }
.door input { position: absolute; opacity: 0; pointer-events: none; }
.door-k { font-size: 12px; color: var(--ink-3); margin-bottom: 18px; transition: color .2s; }
.door b { font-weight: 500; font-size: 19px; letter-spacing: -.015em; }
.door span:last-child { font-size: 14px; color: var(--ink-3); }
.door:hover { background: var(--panel); }
.door:has(input:checked) { background: rgba(216,165,74,.07); box-shadow: inset 0 2px 0 var(--cu); }
.door:has(input:checked) .door-k { color: var(--cu); }
.door:has(input:focus-visible) { outline: 2px solid var(--cu); outline-offset: -2px; }
.fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; margin-top: 40px; }
.field { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; }
.field > span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.field i { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--ink-4); }
.field input, .field textarea { background: transparent; border: 0; border-bottom: 1px solid var(--line-2); padding: 8px 0 12px; font-size: 18px; color: var(--ink); border-radius: 0; resize: vertical; transition: border-color .2s; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--cu); }
.field textarea::placeholder { color: var(--ink-4); }
.field-wide { grid-column: 1 / -1; }
.contact-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }
.contact-foot p { font-size: 11.5px; color: var(--ink-3); max-width: 52ch; }

/* ==========================================================================
   PRODUCT PAGE (Vayu One): sticky product bar + scroll-driven 3D tour
   ========================================================================== */
body.pp { --sub-h: 58px; }
html:has(body.pp) { scroll-padding-top: 70px; }
body.pp .nav { position: absolute; }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::before { content: ""; position: absolute; left: 3px; top: 50%; width: 4px; height: 4px; margin-top: -2px; background: var(--cu); }

.subnav { position: sticky; top: 0; z-index: 48; margin-top: var(--nav-h); background: rgba(9, 9, 9, .86); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-block: 1px solid var(--line); }
.subnav-in { display: flex; align-items: center; gap: 20px; height: var(--sub-h); }
.subnav-name { display: inline-flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.subnav-links { display: flex; height: 100%; overflow-x: auto; scrollbar-width: none; margin-left: 8px; }
.subnav-links::-webkit-scrollbar { display: none; }
.subnav-links a { position: relative; display: flex; align-items: center; padding: 0 13px; font-size: 14px; color: var(--ink-3); white-space: nowrap; transition: color .2s; }
.subnav-links a:hover, .subnav-links a.on { color: var(--ink); }
.subnav-links a.on::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: -1px; height: 2px; background: repeating-linear-gradient(90deg, var(--cu) 0 4px, transparent 4px 6px); }
.subnav-cta { display: flex; gap: 8px; margin-left: auto; flex-shrink: 0; }

/* hero */
.pp-hero { position: relative; overflow: hidden; background: #070707; border-bottom: 1px solid var(--line); }
.pp-glow { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 46% at 50% 68%, rgba(216, 165, 74, .13), transparent 70%),
    radial-gradient(circle, rgba(237, 235, 230, .07) 1px, transparent 1.4px) 0 0 / 22px 22px; }
.pp-hero-in { position: relative; text-align: center; padding-top: clamp(48px, 7vw, 96px); }
.pp-hero-in .eyebrow { justify-content: center; }
.pp-title { max-width: none; margin-inline: auto; font-size: clamp(64px, 12vw, 190px); }
.pp-sub { margin: 26px auto 0; text-align: center; }
.pp-fig { position: relative; max-width: 1120px; margin: clamp(-24px, -2vw, 0px) auto 0; padding-inline: var(--gutter); }
.pp-fig img { width: 100%; height: auto; filter: drop-shadow(0 50px 50px rgba(0, 0, 0, .7)); transform: translateY(calc(var(--py, 0) * 1px)) scale(var(--ps, 1)); transform-origin: center top; will-change: transform; }
.js .pp-fig img { animation: ppIn 1.3s var(--ease-out) both; }
@keyframes ppIn { from { opacity: 0; transform: translateY(46px) scale(.96); } }
.pp-buy { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px 44px; margin: clamp(12px, 2vw, 28px) 0 clamp(40px, 5vw, 64px); padding: 24px 28px; border: 1px solid var(--line-2); background: rgba(12, 12, 12, .7); }
.pp-from { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.pp-amt { font-size: clamp(32px, 3.2vw, 46px); font-weight: 500; letter-spacing: -.035em; color: var(--ink); line-height: 1.1; }
.pp-amt sup { font-size: .42em; color: var(--cu); margin-left: 2px; }
.pp-note { font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.pp-quick { display: grid; grid-template-columns: repeat(4, auto); justify-content: center; }
.pp-quick > div { padding: 0 22px; border-left: 1px solid var(--line); }
.pp-quick > div:first-child { border-left: 0; }
.pp-quick dt { font-size: clamp(15px, 1.4vw, 20px); color: var(--cu-2); white-space: nowrap; }
.pp-quick dd { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 6px; white-space: nowrap; }
.pp-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* the pinned tour */
.tour { position: relative; background: #070707; }
.tour-head { padding-top: clamp(88px, 10vw, 150px); padding-bottom: 28px; text-align: center; }
.tour-head .eyebrow { justify-content: center; }
.tour-head .h2 { margin-inline: auto; }
.tour-head .lead { margin: 22px auto 0; text-align: center; }
.tour-track { position: relative; height: calc(var(--steps, 10) * 82vh + 100vh); }
.tour-pin { position: sticky; top: var(--sub-h, 0px); height: calc(100vh - var(--sub-h, 0px)); height: calc(100svh - var(--sub-h, 0px)); overflow: hidden;
  background:
    radial-gradient(ellipse 55% 50% at 50% 52%, #1d1c1a 0%, #0d0d0d 55%, #070707 100%); }
.tour-pin::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, rgba(237, 235, 230, .06) 1px, transparent 1.4px) 0 0 / 22px 22px; }
.tour-stage { position: absolute; top: 0; bottom: 0; left: -16%; right: -16%; transition: transform 1s var(--ease-out); }
.tour-stage[data-side="l"] { transform: translateX(8.5%); }
.tour-stage[data-side="r"] { transform: translateX(-8.5%); }
.tour-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12vh 27vw; filter: drop-shadow(0 30px 34px rgba(0, 0, 0, .7)); transition: opacity .8s; }
.tour-mv { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .9s; --poster-color: transparent; background: transparent; }
.tour-stage.ready .tour-mv { opacity: 1; }
.tour-stage.ready .tour-poster { opacity: 0; }
.tour-fig { position: absolute; left: var(--gutter); top: 18px; z-index: 2; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.tour-fig b { color: var(--cu); font-weight: 500; margin-right: 8px; }
.tour-cards { position: absolute; inset: 0; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); pointer-events: none; }
.tcard {
  position: absolute; width: min(420px, calc(100% - 2 * var(--gutter))); padding: 24px 26px 26px; --mc: var(--ink-3);
  background: rgba(14, 14, 14, .62); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(237, 235, 230, .13); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8);
  opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
}
.tcard[data-side="l"] { left: var(--gutter); bottom: 16%; }
.tcard[data-side="r"] { right: var(--gutter); top: 16%; }
.tcard.on { opacity: 1; transform: none; }
.tcard-n { font-size: 12px; color: var(--cu); }
.tcard h3 { font-size: clamp(23px, 2.1vw, 30px); font-weight: 500; letter-spacing: -.03em; margin: 10px 0 10px; color: var(--ink); }
.tcard p:not(.tcard-n) { font-size: 15.5px; color: var(--ink-2); line-height: 1.55; }
.tour-hud { position: absolute; left: 0; right: 0; bottom: 20px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.tour-bar { display: flex; gap: 4px; }
.tour-bar li { width: 22px; height: 6px; background: #1E1E1E; transition: background-color .3s; }
.tour-bar li.done { background: rgba(216, 165, 74, .35); }
.tour-bar li.on { background: var(--cu); }
.tour-hint { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); transition: opacity .4s; }
.tour.started .tour-hint { opacity: 0; }
.tour-load { position: absolute; z-index: 4; left: 50%; bottom: 96px; transform: translateX(-50%); }
.tour-static .tour-track { height: auto; }
.tour-static .tour-pin { position: relative; top: 0; height: auto; overflow: visible; }
.tour-static .tour-stage { position: relative; left: 0; right: 0; height: 56vh; transform: none; }
.tour-static .tour-cards { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding-bottom: 72px; pointer-events: auto; }
.tour-static .tcard { position: relative; inset: auto; width: auto; opacity: 1; transform: none; }
.tour-static .tour-hud, .tour-static .tour-fig { display: none; }

/* design (paper) */
.pp-statement { text-align: center; max-width: 1000px; margin: 0 auto clamp(44px, 5vw, 72px); }
.pp-statement .eyebrow { justify-content: center; }
.pp-statement .lead { margin: 24px auto 0; text-align: center; }
.pp-statement-2 { margin-top: clamp(96px, 10vw, 150px); }
.pp-big { max-width: 17ch; margin-inline: auto; }
.pp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.pp-split-r { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.pp-split-copy h3 { font-size: clamp(24px, 2.3vw, 32px); font-weight: 500; letter-spacing: -.03em; margin-bottom: 14px; }
.pp-split-copy p { color: var(--ink-2); }
.pp-ticks { margin-top: 22px; display: grid; gap: 10px; }
.pp-ticks li { display: flex; gap: 12px; align-items: baseline; color: var(--ink-2); }
.pp-ticks li::before { content: ""; width: 7px; height: 7px; flex-shrink: 0; background: var(--cu); transform: translateY(-1px); }
.pp-link { display: inline-flex; gap: 8px; margin-top: 22px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.pp-link:hover { border-color: var(--cu); }
.pp-split-fig { --mc: var(--ink-3); }
.pp-split-img { padding: clamp(16px, 2.6vw, 36px); background: #0B0B0B; background-image: radial-gradient(circle, rgba(237, 235, 230, .07) 1px, transparent 1.3px); background-size: 18px 18px; }
.pp-split-img img { width: 100%; height: auto; filter: drop-shadow(0 22px 24px rgba(0, 0, 0, .65)); }
.pp-split-fig figcaption { margin-top: 12px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pp-code pre { font-size: clamp(13px, 1.1vw, 15px); }
.pp-path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-2); border-left: 1px solid var(--line); }
.pp-path li > a, .pp-path li.here { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px 22px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .25s; }
.pp-path li > a:hover { background: var(--panel); }
.pp-path li.here { background: #0A0A0A; color: #EDEBE6; }
.pp-path-n { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.pp-path li.here .pp-path-n { color: #D8A54A; }
.pp-path b { font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin-top: 10px; }
.pp-path span { font-size: 12px; color: var(--ink-3); }
.pp-path li.here span { color: #A9A69E; }

/* specifications */
.spec-all { display: inline-flex; gap: 8px; align-items: center; justify-self: end; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 3px; }
.spec-all:hover { border-color: var(--cu); }
.spec-all span { color: var(--cu); }
.spec-acc { border-top: 1px solid var(--line-2); }
.spec-acc details { border-bottom: 1px solid var(--line); }
.spec-acc summary { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; font-size: clamp(20px, 1.9vw, 26px); font-weight: 500; letter-spacing: -.025em; color: var(--ink); cursor: pointer; list-style: none; transition: color .2s; }
.spec-acc summary::-webkit-details-marker { display: none; }
.spec-acc summary::after { content: "+"; font-family: var(--px); font-size: 18px; color: var(--cu); transition: transform .25s var(--ease); }
.spec-acc details[open] summary::after { transform: rotate(45deg); }
.spec-acc summary:hover { color: var(--cu-2); }
.pp-specs { margin: 0 0 26px; border-top: 1px solid var(--line); }
.pp-specs > div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.pp-specs dt { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.pp-specs dd { color: var(--ink); }

/* gallery */
#gallery { padding-top: clamp(64px, 8vw, 120px); }
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gal button { display: flex; flex-direction: column; gap: 12px; width: 100%; text-align: left; }
.gal button > span { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #0B0B0B; background-image: radial-gradient(circle, rgba(237, 235, 230, .07) 1px, transparent 1.3px); background-size: 16px 16px; transition: border-color .2s; }
.gal img { width: 100%; height: auto; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .7)); transition: transform .5s var(--ease-out); }
.gal svg { width: 62%; height: auto; }
.gal svg path { fill: none; stroke: var(--ink-2); stroke-width: 1.5; }
.gal svg path.cu { stroke: var(--cu); }
.gal b { font-weight: 500; color: var(--ink); font-size: 15px; }
.gal button:hover > span { border-color: var(--ink-3); }
.gal button:hover img { transform: scale(1.04); }
.gal-3d b { color: var(--cu-2); }
.lightbox { width: min(1200px, 94vw); height: min(820px, 88vh); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr; }
.lb-body { display: grid; place-items: center; padding: clamp(16px, 3vw, 40px); background: radial-gradient(ellipse at 50% 55%, #1a1a1a, #0A0A0A 70%); }
.lb-body img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 26px 28px rgba(0, 0, 0, .7)); }

/* faq + cta */
.pp-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 19px; font-weight: 500; letter-spacing: -.015em; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--px); color: var(--cu); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 24px 0; color: var(--ink-2); }
.faq details a { color: var(--ink); border-bottom: 1px solid var(--cu); }
.pp-cta .lead { margin-top: 26px; }
.pp-cta .pp-actions { margin-top: 36px; }

@media (max-width: 1020px) {
  .subnav-compare { display: none; }
  .pp-buy { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .pp-quick { grid-template-columns: repeat(2, auto); row-gap: 16px; }
  .pp-quick > div:nth-child(3) { border-left: 0; }
  .pp-split, .pp-split-r, .pp-faq { grid-template-columns: minmax(0, 1fr); }
  .pp-path, .gal { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body.pp { --sub-h: 52px; }
  .subnav-in { gap: 8px; }
  .subnav-name { font-size: 15px; }
  .subnav-name .chip { display: none; }
  .subnav-links { margin-left: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 82%, transparent); }
  .subnav-links a { padding: 0 10px; font-size: 13px; }
  .subnav-cta .btn { padding: 0 12px; font-size: 13px; }
  .pp-buy { padding: 20px 16px; }
  .pp-actions { width: 100%; }
  .pp-actions .btn { flex: 1; }
  .pp-quick > div { padding: 0 12px; }
  .tour-stage { left: 0; right: 0; top: -14%; bottom: 14%; }
  .tour-stage[data-side="l"], .tour-stage[data-side="r"] { transform: none; }
  .tour-poster { padding: 20vh 6vw 12vh; }
  .tcard, .tcard[data-side="l"], .tcard[data-side="r"] { left: 12px; right: 12px; top: auto; bottom: 70px; width: auto; padding: 18px 18px 20px; }
  .tcard h3 { font-size: 21px; margin: 8px 0; }
  .tcard p:not(.tcard-n) { font-size: 14.5px; }
  .tour-bar li { width: 14px; height: 5px; }
  .tour-hud { bottom: 30px; }
  .tour-fig { font-size: 10px; top: 12px; }
  .tour-static .tour-cards { grid-template-columns: 1fr; }
  .pp-specs > div { grid-template-columns: 104px 1fr; font-size: 14.5px; }
  .pp-path, .gal { grid-template-columns: 1fr 1fr; }
  .pp-path li > a, .pp-path li.here { padding: 16px 14px 18px; }
  .pp-path b { font-size: 18px; }
}

/* ==========================================================================
   HOME (Apple-style landing): hero tile, closer look, highlights, specs, tiles
   ========================================================================== */
.js .rv.reveal-ready { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js .rv.in { opacity: 1; transform: none; }

/* thin, always-on translucent nav */
.home { --nav-h: 54px; }
.home .nav { background: rgba(8, 8, 8, .74); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); border-bottom-color: var(--line); }
.home .nav-links a { font-size: 13.5px; padding: 8px 12px; }
.home .brand-word { height: 14px; }

/* centred, Apple-like chapter headings */
.ah-h2 { font-size: clamp(40px, 5.6vw, 80px); line-height: 1.02; font-weight: 600; letter-spacing: -.045em; color: var(--ink); text-wrap: balance; }
.ah-sub { margin-top: 16px; font-size: clamp(19px, 1.7vw, 25px); line-height: 1.35; color: var(--ink-2); letter-spacing: -.01em; }
.ah-head { text-align: center; max-width: 900px; margin: 0 auto clamp(40px, 5vw, 64px); }
.home .sec-head, .home .sec-head-split { display: block; text-align: center; max-width: 980px; margin-inline: auto; }
.home .sec-head .eyebrow { justify-content: center; }
.home .sec-head .h2 { margin-inline: auto; max-width: 16ch; }
.home .sec-head .lead, .home .sec-head-split .lead { margin: 24px auto 0; justify-self: auto; text-align: center; }
.home .h2 { font-weight: 600; letter-spacing: -.045em; }

/* hero tile */
.ah-hero { position: relative; overflow: hidden; background: #000; padding-top: var(--nav-h); text-align: center; border-bottom: 1px solid var(--line); }
.ah-glow { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 58% 42% at 50% 74%, rgba(216, 165, 74, .16), transparent 70%),
    radial-gradient(circle, rgba(237, 235, 230, .06) 1px, transparent 1.4px) 0 0 / 22px 22px; }
.ah-hero-in { position: relative; padding: clamp(40px, 7vh, 84px) var(--gutter) 0; }
.ah-new { font-size: 13px; color: var(--cu); letter-spacing: .02em; }
.ah-title { margin-top: 10px; font-size: clamp(64px, 11vw, 176px); line-height: .9; font-weight: 600; letter-spacing: -.055em; color: var(--ink); }
.ah-tag { margin-top: 18px; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.2; font-weight: 500; letter-spacing: -.025em; color: var(--ink); }
.ah-tag span { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--cu-2); }
.ah-ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ah-fig { position: relative; max-width: 1180px; margin: clamp(0px, 1vw, 16px) auto 0; padding-inline: var(--gutter); }
.ah-fig img { width: 100%; height: auto; filter: drop-shadow(0 54px 50px rgba(0, 0, 0, .8)); transform: translateY(calc(var(--py, 0) * 1px)) scale(var(--ps, 1)); transform-origin: center top; will-change: transform; }
.js .ah-fig img { animation: ppIn 1.4s var(--ease-out) .1s both; }
.js .ah-hero-in > * { animation: ahUp 1s var(--ease-out) both; }
.js .ah-hero-in > :nth-child(2) { animation-delay: .06s; }
.js .ah-hero-in > :nth-child(3) { animation-delay: .14s; }
.js .ah-hero-in > :nth-child(4) { animation-delay: .22s; }
@keyframes ahUp { from { opacity: 0; transform: translateY(22px); } }
.ah-price { position: relative; padding: 4px var(--gutter) clamp(36px, 5vh, 56px); font-size: 12px; letter-spacing: .06em; color: var(--ink-3); }
.ah-price sup { color: var(--cu); }

/* the tour on the home page sits under the fixed nav */
.home .tour { --sub-h: var(--nav-h); }
.home .tour-head { padding-top: clamp(96px, 11vw, 160px); }

/* manifesto: words light up as you scroll (dark) */
.home #why .manifesto { max-width: 24ch; font-size: clamp(32px, 4.6vw, 70px); font-weight: 600; letter-spacing: -.04em; }
.home .mw::before { display: none; }
.js .home .manifesto .mw { -webkit-text-fill-color: #34322F; transition: -webkit-text-fill-color .6s var(--ease-out); }
.js .home .manifesto .mw.on { -webkit-text-fill-color: var(--ink); }
.js .home .manifesto em .mw.on { -webkit-text-fill-color: var(--cu-2); }

/* highlights */
.hl { background: #000; padding: clamp(88px, 10vw, 150px) 0 clamp(64px, 7vw, 110px); border-top: 1px solid var(--line); }
.hl-head { max-width: min(1080px, 86vw); padding: 0; margin: 0 auto clamp(28px, 4vw, 48px); }
.hl-track { --cw: min(1080px, 86vw); display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 calc((100vw - var(--cw)) / 2); scroll-padding-inline: calc((100vw - var(--cw)) / 2); outline: none; }
.hl-track::-webkit-scrollbar { display: none; }
.hl-card { position: relative; flex: 0 0 var(--cw); aspect-ratio: 16 / 9.4; scroll-snap-align: center; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(ellipse 70% 60% at 55% 70%, #1E1D1B, #0B0B0B 70%); opacity: .45; transition: opacity .5s var(--ease-out); }
.hl-card.on { opacity: 1; }
.hl-media { position: absolute; inset: 0; }
.hl-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(1.04); transition: transform 6s linear;
  -webkit-mask-image: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, .25) 38%, #000 64%); mask-image: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, .25) 38%, #000 64%); }
.hl-card.on .hl-media img { transform: scale(1.1); }
.hl-cap { position: absolute; z-index: 2; left: clamp(22px, 3.5vw, 48px); top: clamp(20px, 3.2vw, 42px); max-width: 36ch; font-size: clamp(17px, 1.75vw, 26px); line-height: 1.28; font-weight: 600; letter-spacing: -.02em; color: #8E8B83; }
.hl-cap b { color: var(--ink); font-weight: 600; }
.hl-code .hl-media { display: grid; place-items: center; padding-top: 8%; }
.hl-code pre { margin: 0; font-family: var(--mono); font-size: clamp(14px, 1.7vw, 24px); line-height: 1.7; color: #EDEBE6; padding: 28px 34px; border: 1px solid var(--line-2); background: rgba(10, 10, 10, .8); }
.hl-code .k { color: #F0C877; } .hl-code .s { color: #CFC8B6; } .hl-code .c { color: #6B6860; }
.hl-ctrl { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 28px; }
.hl-dots { display: flex; gap: 6px; padding: 12px 16px; background: #141414; border: 1px solid var(--line); }
.hl-dots button { width: 10px; height: 10px; background: #3A3936; transition: background-color .25s, width .35s var(--ease-out); }
.hl-dots button.on { width: 28px; background: var(--cu); }
.hl-play { position: relative; width: 44px; height: 44px; background: #141414; border: 1px solid var(--line); }
.hl-play i { position: absolute; top: 15px; width: 4px; height: 14px; background: var(--ink); }
.hl-play i:first-child { left: 16px; } .hl-play i:last-child { left: 24px; }
.hl-play.paused i:first-child { left: 18px; width: 0; height: 0; background: none; border-left: 11px solid var(--ink); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.hl-play.paused i:last-child { display: none; }

/* tech specs */
.ah-specs .spec-acc { max-width: 980px; margin: 0 auto; }
.ah-specs .fine { max-width: 980px; margin: 22px auto 0; }
.ah-head .spec-all { margin-top: 24px; }

/* Apple-style product tiles */
.tiles { display: grid; gap: 12px; padding: 12px; background: #000; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; min-height: clamp(520px, 52vw, 640px); padding: clamp(40px, 5vw, 60px) 24px 0; background: #0E0E0E; color: var(--ink); }
.tile.paper { background: var(--paper); }
.tile-txt { position: relative; z-index: 1; }
.tile-title { font-size: clamp(36px, 4.2vw, 60px); line-height: 1; font-weight: 600; letter-spacing: -.045em; color: var(--ink); }
.tile-tag { margin-top: 10px; font-size: clamp(19px, 1.8vw, 26px); letter-spacing: -.015em; color: var(--ink-2); }
.tile .ah-new { margin-bottom: 8px; }
.tile-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.paper .btn-ghost { background: var(--line-2); color: var(--ink); }
.paper .btn-ghost::before { background: var(--paper); }
.paper .btn-ghost:hover::before { background: #E2DFD7; }
.tile-vis { flex: 1; width: 100%; display: grid; place-items: center; padding: 28px 0 44px; }
.tile-foot { position: absolute; left: 0; right: 0; bottom: 18px; font-size: 12px; color: var(--cu); }
.tile-wide { min-height: clamp(560px, 56vw, 700px); }
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile-bp { max-width: 780px; }
.tile-bp .bp { width: 100%; }
.tile-bp .bp-cap { margin-top: 8px; }
.tile-family svg { width: min(560px, 92%); height: auto; overflow: visible; }
.tile-family rect { fill: rgba(237, 235, 230, .035); stroke: var(--ink-3); stroke-width: 1.4; transform-box: fill-box; transform-origin: center bottom; }
.tile-family rect.on { stroke: var(--cu); fill: rgba(216, 165, 74, .12); }
.tile-family text { font-family: var(--mono); font-size: 12px; fill: var(--ink-3); }
.js .tile.rv .fam-b rect { transform: scaleY(0); transition: transform .9s var(--ease-out); transition-delay: var(--d); }
.js .tile.rv.in .fam-b rect { transform: none; }
.tile-code pre { margin: 0; text-align: left; font-family: var(--mono); font-size: clamp(15px, 1.6vw, 21px); line-height: 1.7; color: #EDEBE6; background: #0B0B0B; padding: 26px 32px; box-shadow: 0 40px 60px -34px rgba(0, 0, 0, .55); }
.tile-code .k { color: #F0C877; } .tile-code .s { color: #CFC8B6; }
.tile-code p { margin-top: 16px; font-size: 13px; color: var(--ink-3); letter-spacing: .04em; }
.tile-die { flex: none; display: grid; grid-template-columns: repeat(16, 1fr); place-items: stretch; gap: 3px; width: min(300px, 70%); aspect-ratio: 1; align-self: center; padding: 0; margin: auto 0 64px; }
.tile-die i { display: block; aspect-ratio: 1; background: #CFCBC2; }
.tile-die i.ring { background: #BDB9AF; }
.tile-die i.pad { background: #8F8B83; }
.tile-die i.npu { background: #8F6114; animation: npuWave 2.4s ease-in-out infinite; animation-delay: var(--d); }
.tile-die i.sram { background: #6B6860; }
.tile-die i.cpu { background: #0A0A0A; }
.tile-die i.phy { background: #47453F; }
@keyframes npuWave { 0%, 100% { background: #8F6114; } 50% { background: #E2B04E; } }
.tile-q { color: var(--ink); }
.tile-q svg { width: min(170px, 40%); height: auto; }
.tile-q .cursor { width: 14px; height: 24px; margin-top: -6px; }

/* 40-pin header explorer */
.pin-sec { background: #000; border-top: 1px solid var(--line); }
.pk { display: inline-block; width: 10px; height: 10px; background: var(--c); flex-shrink: 0; }
.pk.pwr, .k-pwr { --c: #E07A5F; }
.pk.gnd, .k-gnd { --c: #5E5B55; }
.pk.i2c, .k-i2c { --c: #6FA8DC; }
.pk.uart, .k-uart { --c: #A78BFA; }
.pk.spi, .k-spi { --c: #E9C46A; }
.pk.pwm, .k-pwm { --c: #5FD3A8; }
.pk.gpio, .k-gpio { --c: #CFCBC2; }
.pin-ui { max-width: 1080px; margin: 0 auto; }
.pin-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.pin-filters button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; font-size: 14px; color: var(--ink-2); background: #0E0E0E; border: 1px solid var(--line-2); transition: color .2s, background-color .2s, border-color .2s; }
.pin-filters button:hover { color: var(--ink); border-color: var(--ink-3); }
.pin-filters button.on { color: #0A0A0A; background: var(--ink); border-color: var(--ink); }
.pin-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.pin-board { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 0; padding: 20px 16px; background: #0B0B0B; border: 1px solid var(--line); }
.pin-board::before { content: ""; position: absolute; top: 14px; bottom: 14px; left: calc(50% - 32px); width: 64px; background: #161616; border: 1px solid #222; pointer-events: none; }
.pin { position: relative; display: flex; align-items: center; gap: 12px; height: 30px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; color: var(--ink-2); transition: opacity .3s var(--ease-out), color .2s; }
.pin.odd { justify-content: flex-end; padding-right: 6px; text-align: right; }
.pin.even { flex-direction: row-reverse; justify-content: flex-end; padding-left: 6px; text-align: left; }
.pin-dot { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #0A0A0A; font-size: 9px; font-weight: 600; transition: box-shadow .2s, transform .2s var(--ease); }
.pin.first .pin-dot { border-radius: 2px; }
.k-gnd .pin-dot { color: #EDEBE6; }
.pin:hover, .pin.sel { color: var(--ink); }
.pin:hover .pin-dot { transform: scale(1.12); }
.pin.sel .pin-dot { box-shadow: 0 0 0 3px #0B0B0B, 0 0 0 5px var(--c); }
.pin:focus-visible { outline: none; }
.pin:focus-visible .pin-dot { box-shadow: 0 0 0 3px #0B0B0B, 0 0 0 5px var(--cu); }
.pin-board.filtered .pin:not(.hit) { opacity: .2; }
.pin-board.filtered .pin.hit { color: var(--ink); }
.pin-info { position: sticky; top: calc(var(--nav-h) + 24px); min-height: 290px; padding: 30px 28px; background: #0E0E0E; border: 1px solid var(--line); }
.pin-n { font-size: 12px; letter-spacing: .08em; color: var(--cu); }
.pin-info h3 { margin: 10px 0 12px; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.05; font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.pin-kind { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.pin-desc { margin-top: 14px; font-size: 15.5px; color: var(--ink-2); }
.pin-dl { margin: 20px 0 0; }
.pin-dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 12px; }
.pin-dl dt { color: var(--ink-3); }
.pin-dl dd { margin: 0; color: var(--ink); text-align: right; }
.pin-hint { margin-top: 22px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.pin-sec .fine { max-width: 1080px; margin: 22px auto 0; }

/* "Which Vayu fits?" */
.finder { display: grid; grid-template-columns: 1.25fr 1fr; margin: clamp(48px, 6vw, 72px) 0 12px; background: #0D0D0D; }
.finder-q { padding: clamp(24px, 3.4vw, 40px); border-right: 1px solid var(--line); }
.finder-title { font-size: clamp(28px, 2.8vw, 38px); font-weight: 600; letter-spacing: -.035em; }
.finder-sub { margin-top: 6px; color: var(--ink-2); }
.finder fieldset { margin: 24px 0 0; padding: 0; border: 0; }
.finder legend { padding: 0; margin-bottom: 10px; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: inline-block; padding: 9px 14px; font-size: 14px; color: var(--ink-2); border: 1px solid var(--line-2); transition: color .2s, background-color .2s, border-color .2s; }
.seg label:hover span { color: var(--ink); border-color: var(--ink-3); }
.seg input:checked + span { color: #0A0A0A; background: var(--ink); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--cu); outline-offset: 2px; }
.finder-a { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 3.4vw, 40px); background: radial-gradient(ellipse 80% 70% at 70% 30%, rgba(216, 165, 74, .11), transparent 70%); }
.finder-k { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--cu); }
.finder-name { margin: 10px 0 0; font-size: clamp(40px, 4.4vw, 60px); line-height: 1; font-weight: 600; letter-spacing: -.045em; }
.finder-tops { margin-top: 12px; font-size: 16px; color: var(--cu-2); }
.finder-why { margin-top: 14px; max-width: 36ch; color: var(--ink-2); }
.finder-act { margin-top: 22px; }
.finder-alt { margin-top: 16px; font-size: 12px; color: var(--ink-3); }
.finder-link { font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.finder-link:hover { color: var(--cu-2); }
.js .finder-a.flip > * { animation: ahUp .55s var(--ease-out) both; }
.js .finder-a.flip > :nth-child(2) { animation-delay: .04s; }
.js .finder-a.flip > :nth-child(3) { animation-delay: .08s; }
.js .finder-a.flip > :nth-child(4) { animation-delay: .12s; }

@media (max-width: 900px) {
  .pin-body { grid-template-columns: 1fr; }
  .pin-info { order: -1; top: calc(var(--nav-h) + 8px); z-index: 2; min-height: 0; padding: 18px 20px; box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .9); }
  .pin-info h3 { font-size: 24px; margin: 6px 0 8px; }
  .pin-desc { font-size: 14px; margin-top: 8px; }
  .pin-dl { margin-top: 10px; }
  .pin-hint { margin-top: 10px; }
  .finder { grid-template-columns: 1fr; }
  .finder-q { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .pin { font-size: 10.5px; gap: 8px; height: 28px; }
  .pin-board { padding: 14px 6px; }
  .pin-board::before { left: calc(50% - 28px); width: 56px; }
  .pin-dot { width: 20px; height: 20px; font-size: 8.5px; }
  .pin-filters { gap: 6px; }
  .pin-filters button { padding: 8px 11px; font-size: 13px; }
}

@media (max-width: 1020px) {
  .tile-grid { grid-template-columns: 1fr; }
  .tile { min-height: 520px; }
}
@media (max-width: 720px) {
  .home { --nav-h: 52px; }
  .ah-hero-in { padding-top: 40px; }
  .ah-ctas .btn { min-height: 46px; padding: 0 20px; }
  .ah-price { font-size: 11px; }
  .hl-track { --cw: 88vw; gap: 12px; }
  .hl-card { aspect-ratio: 4 / 5; }
  .hl-media img { object-position: 50% 70%; }
  .hl-media img { -webkit-mask-image: linear-gradient(180deg, transparent 22%, rgba(0, 0, 0, .35) 42%, #000 66%); mask-image: linear-gradient(180deg, transparent 22%, rgba(0, 0, 0, .35) 42%, #000 66%); }
  .hl-code pre { font-size: 12px; padding: 18px; }
  .tiles { padding: 8px; gap: 8px; }
  .tile-grid { gap: 8px; }
  .tile { min-height: 470px; padding-top: 40px; }
  .tile-links .btn { min-height: 40px; }
  .home #why .manifesto { font-size: clamp(28px, 8vw, 40px); }
  .tile-family text { font-size: 20px; }
  .tile-family svg { width: 100%; }
}

/* home: company credentials */
.creds-sec { background: #000; }
.creds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cred { display: flex; flex-direction: column; gap: 8px; padding: 26px 24px; background: #0D0D0D; border: 1px solid var(--line); }
.cred-k { font-size: 12px; color: var(--cu); margin-bottom: 10px; }
.cred h3 { font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.cred-v { font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.03em; color: var(--ink); line-height: 1.15; }
.cred-id { font-size: 12px; letter-spacing: .03em; color: var(--cu-2); word-break: break-all; }
.cred p:not([class]) { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }
.cred-go { margin-top: auto; padding-top: 16px; font-size: 12px; color: var(--ink); width: fit-content; border-bottom: 1px solid var(--line-2); }
.cred-go:hover { color: var(--cu-2); border-color: var(--cu); }
@media (max-width: 1020px) { .creds { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .creds { grid-template-columns: 1fr; } }

/* responsive safety: grid and flex children may shrink below their content
   (long select options, code lines, nowrap chips) instead of widening the page */
:where(.rt, .board-panel, .split, .contact-grid, .pin-body, .finder, .corp, .doc, .sec-head-split, .tl, .team, .person, .foot-grid, .fields, .creds, .cards3, .roles, .steps, .legal-grid, .kit, .kit-more, .tile-grid, .scale, .plat, .qc, .why-grid) > * { min-width: 0; }
.field input, .field textarea, .field select { width: 100%; min-width: 0; max-width: 100%; }
.field select { text-overflow: ellipsis; }
pre, code { max-width: 100%; }
dd .chip { white-space: normal; max-width: 100%; }
.pp-specs dd a { color: var(--cu-2); border-bottom: 1px solid rgba(216, 165, 74, .4); }
.pp-specs dd a:hover { border-color: var(--cu); }

/* ==========================================================================
   FORMS (shared): consent, honeypot, status, selects
   ========================================================================== */
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 26px; max-width: 78ch; font-size: 14px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.consent input { flex-shrink: 0; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--cu); }
.consent a, .form-status a { color: var(--ink); border-bottom: 1px solid var(--line-2); }
.consent a:hover, .form-status a:hover { border-color: var(--cu); }
.field select { appearance: none; -webkit-appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A9A69E' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 4px center; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; padding: 8px 24px 12px 0; font: inherit; font-size: 18px; color: var(--ink); cursor: pointer; }
.field select:focus { outline: none; border-bottom-color: var(--cu); }
.field select option { background: #111; color: var(--ink); }
.form-status { margin-top: 20px; font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 70ch; }
.form-status:empty { display: none; }
.form-status.ok { padding: 16px 18px; border-left: 2px solid var(--cu); background: rgba(216, 165, 74, .07); color: var(--ink); }
.form-status.err { padding: 16px 18px; border-left: 2px solid #E07A5F; background: rgba(224, 122, 95, .07); color: var(--ink); }
.form-status .mono { color: var(--cu-2); }
form.sending { pointer-events: none; }
form.sending button[type="submit"] { background: var(--cu); color: #0A0A0A; animation: sendPulse 1s ease-in-out infinite; }
@keyframes sendPulse { 50% { background: var(--cu-2); } }
.fields-2 { grid-template-columns: 1fr 1fr; }
.field-2 { grid-column: span 2; }

/* ==========================================================================
   INNER PAGES: company, careers, contact, legal
   ========================================================================== */
.page-hero { position: relative; padding: calc(var(--nav-h) + clamp(56px, 9vw, 120px)) 0 clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); background:
  radial-gradient(ellipse 55% 60% at 85% 0%, rgba(216, 165, 74, .09), transparent 70%),
  radial-gradient(circle, rgba(237, 235, 230, .05) 1px, transparent 1.4px) 0 0 / 22px 22px, #070707; }
.page-hero-doc { padding-bottom: clamp(40px, 5vw, 64px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 28px; }
.crumbs a { color: var(--ink-2); transition: color .2s; }
.crumbs a:hover { color: var(--cu-2); }
.crumbs [aria-current] { color: var(--cu); }
.page-title { font-size: clamp(44px, 7vw, 108px); line-height: .96; font-weight: 600; letter-spacing: -.05em; max-width: 16ch; text-wrap: balance; }
.page-title em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--cu-2); }
.page-hero-doc .page-title { font-size: clamp(40px, 6vw, 84px); }
.page-lead { margin-top: 28px; max-width: 60ch; font-size: clamp(18px, 1.6vw, 23px); line-height: 1.45; color: var(--ink-2); }
.page-meta { margin-top: 22px; font-size: 11.5px; letter-spacing: .08em; color: var(--ink-3); }
.page-meta a { color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.page-cta { margin-top: 32px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line-2); }
.facts > div { padding: 22px 20px 0 0; border-right: 1px solid var(--line); }
.facts > div + div { padding-left: 20px; }
.facts > div:last-child { border-right: 0; }
.facts dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { margin-top: 10px; font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: -.02em; }
body.sub .sec { padding-block: clamp(80px, 10vw, 140px); }
body.sub .sec-head .h2, body.sub .split .h2 { font-size: clamp(36px, 4.8vw, 72px); }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.prose p, .prose h3 { max-width: 62ch; }
.prose p { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--ink-2); }
.prose p + p { margin-top: 18px; }
.prose b { color: var(--ink); font-weight: 500; }
.prose h3 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin: 34px 0 10px; }
.prose h3:first-child { margin-top: 0; }
.prose a { color: var(--ink); border-bottom: 1px solid var(--line-2); }
.prose a:hover { border-color: var(--cu); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 280px; padding: 28px; background: #0D0D0D; border: 1px solid var(--line); transition: border-color .3s, background-color .3s, transform .4s var(--ease-out); }
.card:hover { border-color: var(--line-2); background: #121212; transform: translateY(-3px); }
.card-k { font-size: 12px; color: var(--cu); }
.card h3 { font-size: 26px; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.card p:not(.card-k) { color: var(--ink-2); font-size: 15.5px; }
.card-go { margin-top: auto; padding-top: 12px; font-size: 12px; letter-spacing: .06em; color: var(--ink); }
.card:hover .card-go { color: var(--cu-2); }
.principles { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); counter-reset: pr; }
.principles li { padding: 28px 24px 8px 0; counter-increment: pr; }
.principles li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.principles li::before { content: "0" counter(pr); display: block; font-family: var(--px); font-size: 12px; color: var(--cu); margin-bottom: 18px; }
.principles h3 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 10px; }
.principles p { color: var(--ink-2); font-size: 15.5px; }
.corp { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0; background: #0D0D0D; border: 1px solid var(--line); }
.corp > :only-child { grid-column: 1 / -1; padding: clamp(24px, 3vw, 36px); }
.corp-dl { padding: clamp(12px, 2vw, 20px) clamp(20px, 3vw, 36px); }
.corp > div .corp-dl { padding: 0; margin-top: 18px; }
.corp-dl > div { display: grid; grid-template-columns: 240px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.corp-dl > div:last-child { border-bottom: 0; }
.corp-dl dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.corp-dl dd { margin: 0; font-size: 16px; color: var(--ink); }
.corp-dl dd.mono, .corp-dl dd .mono { font-size: 14.5px; letter-spacing: .02em; color: var(--cu-2); }
.corp-dl a { border-bottom: 1px solid var(--line-2); }
.corp-dl a:hover { border-color: var(--cu); }
.corp-verify { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(20px, 3vw, 36px); border-left: 1px solid var(--line); background: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(216, 165, 74, .07), transparent 70%); }
.corp-verify > .mono { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.corp-note { margin-top: 8px; font-size: 13.5px; color: var(--ink-3); }
.h3-lg { font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; letter-spacing: -.03em; }
.kit { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.kit-item { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 18px; background: #0D0D0D; border: 1px solid var(--line); transition: border-color .3s, background-color .3s; }
.kit-item:hover { border-color: var(--cu); background: #111; }
.kit-vis { display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 8px; background: #070707; border: 1px solid var(--line); color: var(--ink); overflow: hidden; }
.kit-vis img { max-width: 70%; height: auto; filter: invert(1); }
.kit-q img { width: 64px; }
.kit-img img { max-width: 100%; width: 100%; height: 100%; object-fit: contain; filter: none; }
.kit-item b { font-weight: 500; font-size: 16px; }
.kit-item .mono { font-size: 11px; color: var(--ink-3); letter-spacing: .06em; }
.kit-more { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; margin-top: 12px; }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; background: #0D0D0D; border: 1px solid var(--line); }
.swatches > span { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.swatches i { display: block; aspect-ratio: 1.4; background: var(--s); border: 1px solid var(--line-2); margin-bottom: 6px; }
.swatches .mono { font-size: 11px; color: var(--ink-3); }
.boiler { padding: 22px 24px; background: #0D0D0D; border: 1px solid var(--line); }
.boiler .mono { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.boiler p:not(.mono) { color: var(--ink-2); line-height: 1.6; }
.cta-band { text-align: center; }
.cta-in .h2 { margin-inline: auto; }
.cta-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.role { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: #0D0D0D; border: 1px solid var(--line); }
.role-k { font-size: 12px; color: var(--cu); margin-bottom: 8px; }
.role h3 { font-size: 24px; font-weight: 500; letter-spacing: -.025em; }
.role p:not(.role-k):not(.role-tags) { color: var(--ink-2); font-size: 15.5px; }
.role-tags { margin-top: auto; padding-top: 14px; font-size: 11.5px; color: var(--ink-3); letter-spacing: .04em; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.steps li { position: relative; padding: 26px 24px 28px; background: #0D0D0D; border: 1px solid var(--line); }
.steps li .px { font-size: 12px; color: var(--cu); }
.steps h3 { margin: 18px 0 8px; font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.steps p { color: var(--ink-2); font-size: 15px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.contact-card { margin-top: 0; padding: clamp(22px, 3vw, 40px); background: #0D0D0D; border: 1px solid var(--line); }
.contact-card .fields { margin-top: 0; }
.contact-aside { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line-2); }
.ca-block { padding: 20px 0; border-bottom: 1px solid var(--line); }
.ca-block > .mono { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.ca-block p:not(.mono), .ca-block address { font-style: normal; font-size: 17px; line-height: 1.55; color: var(--ink); }
.ca-block a { border-bottom: 1px solid var(--line-2); }
.ca-block a:hover { border-color: var(--cu); }
.ca-block p + p { margin-top: 10px; }
.ca-routes { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.contact-card > .h3-lg { margin-bottom: 18px; }
.sec-steps { list-style: none; display: flex; flex-direction: column; gap: 12px; counter-reset: st; }
.sec-steps li { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); counter-increment: st; }
.sec-steps li::before { content: "0" counter(st); position: absolute; left: 0; top: 2px; font-family: var(--px); font-size: 11px; color: var(--cu); }
.sec-steps b { color: var(--ink); font-weight: 500; }
.ca-note { margin-top: 18px; font-size: 11.5px; color: var(--ink-3); letter-spacing: .06em; }
.legal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.legal-grid .card { min-height: 230px; }

/* long-form documents (terms, privacy …) */
.doc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding-block: clamp(48px, 6vw, 88px) clamp(80px, 10vw, 140px); align-items: start; }
.doc-toc { position: sticky; top: calc(var(--nav-h) + 28px); max-height: calc(100vh - var(--nav-h) - 56px); overflow: auto; }
.doc-toc > .mono { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.doc-toc ol { list-style: none; counter-reset: toc; border-left: 1px solid var(--line); }
.doc-toc li { counter-increment: toc; }
.doc-toc a { display: flex; gap: 10px; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1px solid transparent; font-size: 14px; line-height: 1.35; color: var(--ink-3); transition: color .2s, border-color .2s; }
.doc-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 11px; padding-top: 2px; color: var(--ink-4); }
.doc-toc a:hover { color: var(--ink); }
.doc-toc a.on { color: var(--ink); border-left-color: var(--cu); }
.doc-toc a.on::before { color: var(--cu); }
.doc-body { max-width: 74ch; counter-reset: sec; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.doc-body h2 { counter-increment: sec; display: flex; gap: 16px; align-items: baseline; margin: 64px 0 18px; padding-top: 28px; border-top: 1px solid var(--line); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; font-weight: 600; letter-spacing: -.025em; color: var(--ink); scroll-margin-top: calc(var(--nav-h) + 20px); }
.doc-body h2::before { content: counter(sec, decimal-leading-zero); font-family: var(--px); font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--cu); }
.doc-body > h2:first-child, .doc-summary + h2 { margin-top: 0; }
.doc-body h3 { margin: 30px 0 10px; font-size: 19px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.doc-body p + p, .doc-body ul + p, .doc-body p + ul { margin-top: 14px; }
.doc-body ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.doc-body ul li { position: relative; padding-left: 24px; }
.doc-body ul li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; background: var(--cu); }
.doc-body b { color: var(--ink); font-weight: 600; }
.doc-body a { color: var(--ink); border-bottom: 1px solid var(--line-2); transition: border-color .2s; }
.doc-body a:hover { border-color: var(--cu); }
.doc-summary { margin-bottom: 64px; padding: 24px 28px; background: #0D0D0D; border: 1px solid var(--line); border-left: 2px solid var(--cu); }
.doc-summary > .mono { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--cu); margin-bottom: 12px; }
.doc-card { display: block; margin: 16px 0; padding: 20px 22px; font-style: normal; background: #0D0D0D; border: 1px solid var(--line); color: var(--ink-2); }

@media (max-width: 1020px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(3) { padding-left: 0; }
  .facts > div:nth-child(2) { border-right: 0; }
  .split, .contact-grid, .corp, .kit-more { grid-template-columns: 1fr; }
  .corp-verify { border-left: 0; border-top: 1px solid var(--line); }
  .cards3, .roles { grid-template-columns: 1fr 1fr; }
  .principles, .steps, .legal-grid { grid-template-columns: 1fr 1fr; }
  .principles li:nth-child(3) { border-left: 0; padding-left: 0; }
  .kit { grid-template-columns: repeat(3, 1fr); }
  .doc { grid-template-columns: 1fr; }
  .doc-toc { position: static; max-height: none; padding: 18px 20px; background: #0D0D0D; border: 1px solid var(--line); }
  .doc-toc ol { columns: 2; column-gap: 24px; border-left: 0; }
  .doc-toc a { padding-left: 0; border-left: 0; break-inside: avoid; }
}
@media (max-width: 640px) {
  .page-title { font-size: clamp(40px, 11vw, 56px); }
  .cards3, .roles, .principles, .steps, .legal-grid, .kit { grid-template-columns: 1fr; }
  .principles li, .principles li + li { padding-left: 0; border-left: 0; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
  .corp-dl > div { grid-template-columns: 1fr; gap: 6px; }
  .fields-2 { grid-template-columns: 1fr; }
  .field-2 { grid-column: auto; }
  .doc-toc ol { columns: 1; }
  .doc-body { font-size: 16px; }
  .doc-body h2 { margin-top: 48px; }
  .card { min-height: 0; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot { overflow: hidden; overflow: clip; background: #070707; border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 96px) 0 28px; }
/* The wordmark finale: a classic cinema title card. A beam of light opens,
   each letter slams in from the camera with a gold flash and a shockwave,
   the frame shudders, LABS pops in, a golden gleam sweeps across, the Q
   spins like a flipped coin and a star "ting"s on the dot of the i.
   Click the wordmark to play it again. */
.foot-mark { position: relative; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.foot-mark svg { position: relative; width: 100%; height: auto; overflow: visible; }
.foot-mark::before { content: ""; position: absolute; inset: -30% -6%; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(216, 165, 74, .2), transparent 70%); }
.foot-mark path { fill: currentColor; }
.foot-mark .fm-l, .foot-mark .fm-in, .foot-mark .fm-s, .foot-mark .fm-ring, .foot-mark .fm-streak, .foot-mark .fm-star { transform-box: fill-box; transform-origin: center; }
.foot-mark .fm-s { transform-origin: center bottom; }
.foot-mark .fm-streak { fill: #FFE7B0; opacity: 0; }
.foot-mark .fm-ring { fill: none; stroke: var(--cu-2); stroke-width: .2; opacity: 0; }
.foot-mark .fm-star { fill: #FFF8E6; opacity: 0; }
.js .foot-mark:not(.in) .fm-l, .js .foot-mark:not(.in) .fm-s { opacity: 0; }

.foot-mark.in::before { animation: fmGlow 2.6s ease-out 1.3s both; }
.foot-mark.in svg { animation: fmShake .42s linear 1.62s; }
.foot-mark.in .fm-streak { animation: fmStreak 1.1s cubic-bezier(.2, .7, .2, 1) .05s both; }
.foot-mark.in .fm-l { animation: fmSlam .52s cubic-bezier(.2, .9, .25, 1) calc(.38s + var(--i) * .16s) both; }
.foot-mark.in .fm-l path { animation: fmFlash .9s ease-out calc(.5s + var(--i) * .16s) both; }
.foot-mark.in .fm-ring { animation: fmRing .75s cubic-bezier(.15, .8, .25, 1) calc(.56s + var(--i) * .16s) forwards; }
.foot-mark.in .fm-s { animation: fmPop .5s cubic-bezier(.2, 1.7, .4, 1) calc(1.78s + var(--i) * .09s) both; }
.foot-mark.in .fm-s path { animation: fmFlash .8s ease-out calc(1.82s + var(--i) * .09s) both; }
.foot-mark.in .fm-sheen { animation: fmSheen 1.15s cubic-bezier(.45, 0, .25, 1) 2.2s both; }
.foot-mark.in .fm-q { animation: fmFlip .95s cubic-bezier(.45, 0, .3, 1) 2.75s both; }
.foot-mark.in .fm-star { animation: fmStar 1s ease-out 3.3s forwards; }

@keyframes fmStreak { 0% { opacity: 0; transform: scaleX(0); } 25% { opacity: 1; } 65% { opacity: .85; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1) scaleY(.2); } }
@keyframes fmSlam { 0% { opacity: 0; transform: scale(3.4) translateY(-1.4px); } 40% { opacity: 1; } 62% { transform: scale(.88); } 80% { transform: scale(1.05); } 100% { opacity: 1; transform: none; } }
@keyframes fmFlash { 0%, 25% { fill: #FFE7B0; } 100% { fill: currentColor; } }
@keyframes fmRing { 0% { opacity: .95; transform: scale(.15); stroke-width: .5; } 100% { opacity: 0; transform: scale(1.7); stroke-width: .04; } }
@keyframes fmShake { 0%, 100% { transform: none; } 15% { transform: translate(-7px, 3px); } 35% { transform: translate(6px, -2px); } 55% { transform: translate(-4px, 1px); } 75% { transform: translate(2px, -1px); } }
@keyframes fmPop { 0% { opacity: 0; transform: translateY(1.6px) scale(.5); } 100% { opacity: 1; transform: none; } }
@keyframes fmSheen { from { transform: translateX(0); } to { transform: translateX(72px); } }
@keyframes fmFlip { 0% { transform: none; } 25% { transform: scaleX(-1); } 50% { transform: scaleX(1); } 75% { transform: scaleX(-1); } 100% { transform: none; } }
@keyframes fmStar { 0% { opacity: 0; transform: scale(0) rotate(0deg); } 35% { opacity: 1; transform: scale(1.5) rotate(45deg); } 100% { opacity: 0; transform: scale(0) rotate(135deg); } }
@keyframes fmGlow { 0% { opacity: 0; } 40% { opacity: 1; } 100% { opacity: .35; } }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.7fr; gap: 32px; margin-top: clamp(48px, 6vw, 80px); padding-top: 32px; border-top: 1px solid var(--line); }
.foot-grid nav { display: flex; flex-direction: column; gap: 9px; }
.foot-grid .mono { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.foot-grid nav a { font-size: 15px; color: var(--ink-2); transition: color .2s; width: fit-content; }
.foot-grid nav a:hover { color: var(--ink); }
.legal { font-style: normal; font-size: 14.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 10px; }
.legal b { color: var(--ink); font-weight: 500; }
.legal a { color: var(--ink); border-bottom: 1px solid var(--line-2); }
.legal a:hover { border-color: var(--cu); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 11px; color: var(--ink-3); letter-spacing: .03em; }
.foot-base span { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.foot-tm { margin-top: 18px; font-size: 12px; line-height: 1.6; color: var(--ink-4); max-width: 110ch; }
.foot-tm a { color: var(--ink-3); border-bottom: 1px solid var(--line); }

/* ==========================================================================
   TERMINAL DIALOG
   ========================================================================== */
.term-dlg { width: min(760px, 94vw); height: min(480px, 76vh); }
.term-dlg[open] { display: grid; grid-template-rows: auto 1fr auto; }
.term-dlg-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--ink-3); }
.term-dlg-out { overflow-y: auto; padding: 16px 18px 6px; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.term-dlg-out .p { color: var(--cu); }
.term-dlg-out .w { color: var(--ink); }
.term-dlg-out .e { color: #E07A6A; }
.term-dlg-out .d { color: var(--ink-3); }
.term-dlg-out a { color: var(--cu-2); border-bottom: 1px solid rgba(216,165,74,.4); }
.term-dlg-in { display: flex; align-items: center; gap: 10px; padding: 12px 18px 16px; font-size: 13.5px; }
.term-dlg-in label { color: var(--cu); white-space: nowrap; }
.term-dlg-in input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--ink); caret-color: var(--cu); font-family: var(--mono); font-size: 13.5px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-links a { padding: 8px 10px; }
  .grid6 { grid-template-columns: repeat(2, 1fr); }
  .uses { grid-template-columns: repeat(2, 1fr); }
  .tl { grid-template-columns: repeat(2, 1fr); }
  .board-panel { grid-template-columns: minmax(0, 1fr); grid-template-areas: "vis" "info" "mx"; }
  .bp-visual { border-right: 0; border-bottom: 1px solid var(--line); min-height: 380px; }
  .qc-body { grid-template-columns: 1fr; }
  .qc-die { border-right: 0; border-bottom: 1px solid var(--line); }
  .rt { grid-template-columns: 1fr; }
  .doors-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --nav-h: 58px; }
  .nav-links, .kbd-btn { display: none; }
  .menu-btn { display: block; }
  .nav-act, .nav-links + .nav-act { margin-left: auto; }
  .nav-act .btn-sm { display: none; }
  .hero { grid-template-rows: 1fr auto; }
  .hero-shade { background: linear-gradient(0deg, rgba(7,7,7,.97) 0%, rgba(7,7,7,.86) 42%, rgba(7,7,7,.2) 66%, rgba(7,7,7,0) 80%); }
  .hero-hint { display: none; }
  .hero-strip { padding-inline: 0; }
  .hero-strip dl { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); border-top: 0; }
  .hero-strip dl::-webkit-scrollbar { display: none; }
  .hero-strip dl > div { flex: 0 0 auto; min-width: 46%; scroll-snap-align: start; border-top: 1px solid var(--line-2); }
  .sec-head-split { grid-template-columns: 1fr; gap: 24px; }
  .sec-head-split .lead { justify-self: start; }
  .problems { grid-template-columns: 1fr; }
  .problem, .problem + .problem { padding: 24px 0 16px; border-left: 0; }
  .problem + .problem { border-top: 1px solid var(--line); }
  .bigstat { grid-template-columns: 1fr; }

  /* stack: no pinning; the five layers become a swipeable rail */
  .stack-scroll { height: auto; }
  .stack-pin { position: relative; height: auto; padding-top: 0; display: block; }
  .stack { grid-template-columns: 1fr; gap: 8px; padding-inline: 0; }
  .stack-visual { height: 340px; }
  .iso { --plate: 180px; }
  .layers { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; border-top: 0; padding: 4px var(--gutter) 12px; scrollbar-width: none; scroll-padding-inline: var(--gutter); }
  .layers::-webkit-scrollbar { display: none; }
  .layer { flex: 0 0 84%; scroll-snap-align: start; border: 1px solid var(--line-2); padding: 0 18px; background: #0B0B0B; }
  .layer-btn { pointer-events: none; padding-bottom: 8px; }
  .layer .layer-body { grid-template-rows: 1fr; }
  .layer-body p:first-child { padding-left: 0; font-size: 15.5px; }
  .tags { padding-left: 0; }
  .layer-btn { grid-template-columns: 36px 1fr; }
  .layer-name { color: var(--ink); }

  .team { grid-template-columns: 1fr; }
  .person, .person-hire { grid-template-columns: 96px 1fr; gap: 20px; padding: 28px 0; border-left: 0; }
  .person-lead { grid-template-columns: 1fr; }
  .person-lead .portrait { max-width: 280px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid .legal { grid-column: 1 / -1; }
  .legal { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-labs { display: none; }
  .hero-strip dt { font-size: 15px; }
  .hero-strip dl > div { padding: 16px 12px 18px 0; }
  .hero-strip dl > div:nth-child(even) { padding-left: 14px; }
  .hero-cta { gap: 8px; margin-top: 28px; }
  .hero-cta .btn { flex: 1 1 0; padding: 0 12px; font-size: 14.5px; }
  .wide { display: none; }
  .narrow { display: inline; }
  .hero-lead { margin-top: 20px; }
  .hero-eyebrow { margin-bottom: 18px; font-size: 10.5px; }
  .grid6, .uses { grid-template-columns: 1fr; }
  .uses { grid-template-columns: repeat(2, 1fr); }
  .use { min-height: 0; padding: 22px 16px 24px; }
  .use h3 { margin-top: 22px; font-size: 17px; }
  .use p { display: none; }
  .use-ic { width: 36px; height: 36px; }
  .cell6 { padding: 26px 20px 30px; }
  .cell6 h3 { margin-top: 24px; }
  .tl { grid-template-columns: 1fr; }
  .tl-item { padding-bottom: 32px; }
  .bp-info { padding: 26px 20px 18px; }
  .bp-matrix { padding: 0 20px 24px; }
  .bp-visual { padding: 20px 12px; min-height: 300px; }
  .hs { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
  .hs::before { width: 7px; height: 7px; }
  .scale-axis .tick b { font-size: 10px; }
  .scale-axis .tick b span { display: none; }
  .bp-specs > div { grid-template-columns: 92px 1fr; font-size: 14px; }
  .matrix { grid-template-columns: repeat(32, 1fr); }
  .scale-track { height: 146px; }
  .mark b { font-size: 12.5px; }
  .mark small { display: none; }
  .vn { display: none; }
  .mark.alt { top: 114px; }
  .mark.alt::after { top: -36px; }
  .bp svg .t, .bp svg .ref-t { display: none; }
  .mark { padding: 4px 2px; }
  .qc-tabs button { padding: 14px 12px; flex-direction: column; gap: 2px; }
  .doors-grid { grid-template-columns: 1fr 1fr; }
  .door { padding: 16px 14px 18px; }
  .door b { font-size: 16px; }
  .door span:last-child { font-size: 12.5px; }
  .door-k { margin-bottom: 10px; }
  .fields { grid-template-columns: 1fr; }
  .contact-foot .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid .legal { grid-column: 1 / -1; }
  .term-out { min-height: 230px; padding: 14px 16px; }
  .term-out pre { font-size: 11px; }
  .term-tabs button { padding: 7px 8px; }
  .term-code { padding: 16px; }
}

/* ==========================================================================
   MOBILE DELIGHT: spec ticker, board tilt, swipe rails, dock, menu
   ========================================================================== */
/* spec ticker under the hero */
.ticker { position: relative; overflow: hidden; padding: 16px 0; border-top: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-in { display: flex; align-items: center; gap: 22px; width: max-content; animation: tick 46s linear infinite; }
.ticker-in span { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.ticker-in i { width: 6px; height: 6px; background: var(--cu); flex-shrink: 0; }
.ticker:hover .ticker-in { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* hero board: tilt with the pointer, drag on touch */
.ah-fig.tilt { touch-action: pan-y; transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; cursor: grab; }
.ah-fig.tilt:active { cursor: grabbing; }
.tilt-hint { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; padding: 7px 12px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: rgba(14, 14, 14, .78); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: none; transition: opacity .5s var(--ease-out); animation: hintNudge 2.4s var(--ease-out) 1.6s infinite; }
.tilt-hint span { color: var(--cu); }
.ah-fig.touched .tilt-hint { opacity: 0; animation: none; }
@keyframes hintNudge { 0%, 60%, 100% { transform: translateX(-50%); } 20% { transform: translateX(calc(-50% - 6px)); } 40% { transform: translateX(calc(-50% + 6px)); } }

/* swipe rails: dots only appear on phones */
.rail-dots { display: none; }

/* dock: hidden on larger screens */
.dock { display: none; }

/* menu items cascade in */
.js .menu:not([hidden]) nav a { animation: ahUp .55s var(--ease-out) both; }
.js .menu:not([hidden]) nav a:nth-child(2) { animation-delay: .03s; }
.js .menu:not([hidden]) nav a:nth-child(3) { animation-delay: .06s; }
.js .menu:not([hidden]) nav a:nth-child(4) { animation-delay: .09s; }
.js .menu:not([hidden]) nav a:nth-child(5) { animation-delay: .12s; }
.js .menu:not([hidden]) nav a:nth-child(6) { animation-delay: .15s; }
.js .menu:not([hidden]) nav a:nth-child(7) { animation-delay: .18s; }
.js .menu:not([hidden]) nav a:nth-child(8) { animation-delay: .21s; }

@media (max-width: 720px) {
  .ticker { padding: 13px 0; }
  .ticker-in { gap: 16px; animation-duration: 34s; }
  .ticker-in span { font-size: 11px; }

  .dock { position: fixed; z-index: 45; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 2px; width: min(430px, calc(100vw - 20px)); padding: 6px; --n: 6px;
    background: rgba(18, 18, 18, .84); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
    box-shadow: inset 0 0 0 1px var(--line-2); transform: translate(-50%, calc(100% + 24px)); transition: transform .5s var(--ease-out); }
  .dock.show { transform: translate(-50%, 0); }
  .menu-open .dock { transform: translate(-50%, calc(100% + 24px)); }
  .dock a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 9px 2px 7px; font-size: 10.5px; letter-spacing: .01em; color: var(--ink-3); transition: color .2s, transform .15s var(--ease); -webkit-tap-highlight-color: transparent; }
  .dock-ic { display: block; width: 18px; height: 18px; }
  .dock-ic svg { width: 100%; height: 100%; }
  .dock a.on { color: var(--ink); }
  .dock a.on::before { content: ""; position: absolute; top: 0; left: 50%; width: 16px; height: 2px; margin-left: -8px; background: var(--cu); }
  .dock a.dock-cta { color: #0A0A0A; background: var(--cu); }
  .dock a.dock-cta.on::before { background: #0A0A0A; }
  .dock a:active { transform: scale(.92); }
  .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

@media (max-width: 640px) {
  .m-rail { display: flex !important; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--rail-g, var(--gutter)) * -1); padding: 2px var(--rail-g, var(--gutter)) 4px; scroll-padding-inline: var(--rail-g, var(--gutter)); }
  .m-rail::-webkit-scrollbar { display: none; }
  .m-rail > * { flex: 0 0 84%; scroll-snap-align: start; }
  .tile-grid.m-rail { --rail-g: 8px; }
  .tile-grid.m-rail > * { flex-basis: 88%; }
  .m-rail.principles { border-top: 0; }
  .m-rail.principles > li, .m-rail.principles > li + li { padding: 24px 22px; border: 1px solid var(--line); background: #0D0D0D; }
  .m-rail.kit > * { flex-basis: 62%; }
  .rail-dots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
  .rail-dots:empty { display: none; }
  .rail-dots i { width: 7px; height: 7px; background: #3A3936; transition: width .35s var(--ease-out), background-color .3s; }
  .rail-dots i.on { width: 22px; background: var(--cu); }
  .tiles .rail-dots { margin: 14px 0 6px; }
}

/* ==========================================================================
   RESPONSIVE: the smallest phones and the largest screens
   ========================================================================== */
@media (max-width: 380px) {
  .ah-ctas { gap: 8px; }
  .ah-ctas .btn { min-height: 44px; padding: 0 16px; font-size: 14.5px; }
  .ah-title { font-size: 58px; }
  .ah-tag { font-size: 20px; }
  .pin-filters button { padding: 7px 9px; font-size: 12.5px; gap: 6px; }
  .seg span { padding: 8px 11px; font-size: 13px; }
  .tile-title { font-size: 34px; }
}
@media (min-width: 1800px) {
  :root { --max: 1640px; --nav-h: 64px; }
  .home { --nav-h: 60px; }
  body { font-size: 18.5px; }
  .home .nav-links a { font-size: 15px; padding: 8px 14px; }
  .home .brand-word { height: 16px; }
  .ah-title { font-size: clamp(64px, 8.4vw, 230px); }
  .ah-tag { font-size: clamp(22px, 1.9vw, 44px); }
  .ah-fig { max-width: 1520px; }
  .ah-h2 { font-size: clamp(40px, 4.4vw, 112px); }
  .ah-sub { font-size: clamp(19px, 1.25vw, 30px); }
  .ah-head { max-width: 1180px; }
  .hl-track { --cw: min(1440px, 76vw); }
  .hl-cap { font-size: clamp(17px, 1.5vw, 32px); }
  .pin-ui, .pin-sec .fine, .ah-specs .spec-acc, .ah-specs .fine { max-width: 1320px; }
  .pin-body { grid-template-columns: minmax(0, 1fr) 440px; }
  .pin { height: 36px; font-size: 14.5px; }
  .pin-dot { width: 27px; height: 27px; font-size: 10.5px; }
  .tile { min-height: clamp(640px, 40vw, 900px); }
  .tile-title { font-size: clamp(36px, 3.2vw, 76px); }
  .tile-tag { font-size: clamp(19px, 1.4vw, 32px); }
  .lead { font-size: clamp(19px, 1.1vw, 26px); }
  .page-lead { font-size: clamp(20px, 1.25vw, 28px); }
  .doc-body { font-size: 19px; }
}
@media (min-width: 2400px) {
  :root { --max: 1900px; }
  body { font-size: 20px; }
  .hl-track { --cw: min(1700px, 72vw); }
  .pin-ui, .pin-sec .fine, .ah-specs .spec-acc, .ah-specs .fine { max-width: 1500px; }
}

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

@media print {
  .nav, .hero-canvas, .hero-hint, .menu, dialog { display: none !important; }
  .js [data-resolve].resolving:not(.resolved), .js .manifesto .mw { -webkit-text-fill-color: currentColor !important; }
  .mw::before { display: none; }
}
