/* ============================================================
   KINETIQ — Design System
   "Precision instrumentation" — phosphor amber on graphite.
   Sharp corners, hairline rules, engineering-figure labels.
   ============================================================ */

:root {
  --bg:        #0A0B0D;
  --bg-2:      #0D0F12;
  --panel:     #111318;
  --panel-2:   #14171D;
  --ink:       #EAE7DF;
  --ink-dim:   #A09D94;
  --ink-faint: #6B6963;
  --line:      rgba(234, 231, 223, 0.12);
  --line-2:    rgba(234, 231, 223, 0.24);
  --amber:     #FFAE00;
  --amber-dim: rgba(255, 174, 0, 0.14);
  --hot:       #FF4D00;
  --ok:        #7FC98F;

  --font-d: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-m: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --pad: clamp(18px, 3.5vw, 48px);
  --maxw: 1480px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-d);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
::selection { background: var(--amber); color: #0A0B0D; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2A2D33; border: 3px solid var(--bg); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--amber); }

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

/* ---------- Grain + vignette atmosphere ---------- */
.grain {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 2000;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* static — animated grain was a continuous composite tax */
}

/* ---------- Type utilities ---------- */
.mono {
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.mono--amber { color: var(--amber); }
.mono--dim { color: var(--ink-faint); }

.kicker {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-m);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}
.kicker::after {
  content: "";
  flex: 0 0 64px; height: 1px;
  background: var(--amber);
  opacity: 0.6;
}
.kicker .idx { color: var(--ink-faint); }

.h-display {
  font-weight: 800;
  font-stretch: 118%;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 0.96;
}
.outline-amber {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--amber);
}
.outline-ink {
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
}

.lede {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 56ch;
}
.lede strong { color: var(--ink); font-weight: 600; }

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.section {
  position: relative;
  padding: clamp(64px, 8vw, 112px) 0;
  border-top: 1px solid var(--line);
}
.section--flush { padding-top: 0; border-top: 0; }
.section-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section-head .kicker { grid-column: 1 / -1; }
.section-head h2 {
  grid-column: 1 / 8;
  font-size: clamp(34px, 4.6vw, 64px);
}
.section-head .lede { grid-column: 8 / 13; align-self: end; padding-bottom: 6px; }

.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  border: 1px solid var(--line-2);
  font-family: var(--font-m);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--amber);
  transform: translateY(102%);
  transition: transform 0.38s var(--ease);
}
.btn span, .btn svg { position: relative; z-index: 1; transition: color 0.3s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn:hover span, .btn:hover svg { color: #0A0B0D; }
.btn:hover { border-color: var(--amber); }
.btn .arr { transition: transform 0.3s var(--ease), color 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn--solid { background: var(--amber); border-color: var(--amber); color: #0A0B0D; }
.btn--solid::before { background: var(--ink); }
.btn--solid:hover span, .btn--solid:hover svg { color: #0A0B0D; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 11, 13, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--line);
}
.header-in {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { width: 30px; height: 30px; }
.brand .mark .pulse-tail { transition: transform 0.3s var(--ease); transform-box: fill-box; transform-origin: 0% 0%; }
.brand:hover .mark .pulse-tail { transform: scale(1.18); }
.wordmark {
  font-weight: 800; font-stretch: 120%;
  font-size: 17px; letter-spacing: 0.05em;
  text-transform: uppercase;
}
.wordmark sup {
  font-family: var(--font-m); font-weight: 600;
  font-size: 9px; letter-spacing: 0.14em;
  color: var(--amber); margin-left: 5px;
}
.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
  position: relative;
  font-family: var(--font-m); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-dim);
  padding: 6px 0;
  transition: color 0.25s;
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--amber);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.main-nav a[aria-current="page"] { color: var(--amber); }
.header-cta { display: flex; align-items: center; gap: 20px; }
.header-cta .btn { padding: 12px 20px; }

.menu-toggle {
  display: none;
  flex-direction: column; gap: 6px;
  padding: 10px;
}
.menu-toggle i {
  display: block; width: 26px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.25s;
}
body.menu-open .menu-toggle i:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.menu-open .menu-toggle i:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle i:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 990;
  background: rgba(10, 11, 13, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 800; font-stretch: 118%;
  font-size: clamp(34px, 9vw, 56px);
  text-transform: uppercase; letter-spacing: -0.01em; line-height: 1;
  color: var(--ink);
  transform: translateY(24px); opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease), color 0.25s;
}
.mobile-menu a small {
  font-family: var(--font-m); font-weight: 500; font-stretch: 100%;
  font-size: 11px; letter-spacing: 0.16em; color: var(--amber);
}
.mobile-menu a:hover { color: var(--amber); }
body.menu-open .mobile-menu a { transform: translateY(0); opacity: 1; }
body.menu-open .mobile-menu a:nth-child(1) { transition-delay: 0.08s; }
body.menu-open .mobile-menu a:nth-child(2) { transition-delay: 0.14s; }
body.menu-open .mobile-menu a:nth-child(3) { transition-delay: 0.2s; }
body.menu-open .mobile-menu a:nth-child(4) { transition-delay: 0.26s; }
body.menu-open .mobile-menu a:nth-child(5) { transition-delay: 0.32s; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-canvas { position: absolute; inset: 0; z-index: 0; cursor: crosshair; contain: strict; }
.hero-canvas canvas { width: 100%; height: 100%; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(234,231,223,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234,231,223,0.045) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, black 30%, transparent 75%);
}
.hero-content {
  position: relative; z-index: 2;
  padding-top: 120px;
  pointer-events: none;
}
/* keep the trace ambient, never on top of copy */
.hero-content::before {
  content: "";
  position: absolute; inset: 0 -20px -1px -20px;
  background: linear-gradient(180deg, transparent 0%, rgba(10,11,13,0.72) 42%, rgba(10,11,13,0.9) 78%, var(--bg) 100%);
  z-index: -1;
  pointer-events: none;
}
.hero-content a, .hero-content button { pointer-events: auto; }
.hero-eyebrow {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: clamp(18px, 2.8vw, 32px);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; background: var(--amber);
  animation: blink-dot 2.2s var(--ease-io) infinite;
}
@keyframes blink-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.hero h1 {
  font-size: clamp(46px, 8.6vw, 124px);
  max-width: 12ch;
}
.hero h1 .row { display: block; overflow: hidden; }
.hero h1 .row > span {
  display: block;
  transform: translateY(110%);
  animation: rise 1s var(--ease) forwards;
}
.hero h1 .row:nth-child(1) > span { animation-delay: 0.1s; }
.hero h1 .row:nth-child(2) > span { animation-delay: 0.22s; }
.hero h1 .row:nth-child(3) > span { animation-delay: 0.34s; }
@keyframes rise { to { transform: translateY(0); } }
.hero-sub {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 28px;
  margin-top: clamp(24px, 3vw, 40px);
  margin-bottom: clamp(28px, 4vw, 52px);
}
.hero-sub .lede { max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-side {
  position: absolute; right: var(--pad); top: 50%;
  z-index: 2;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--font-m); font-size: 10px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-faint);
  pointer-events: none;
}

.readout-bar {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  background: rgba(10, 11, 13, 0.88);
}
.readout {
  padding: 14px 18px 16px;
  border-right: 1px solid var(--line);
}
.readout:last-child { border-right: 0; }
.readout .r-label {
  font-family: var(--font-m); font-size: 9.5px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-faint);
  display: flex; align-items: center; gap: 8px;
}
.readout .r-label i {
  width: 5px; height: 5px; background: var(--amber);
  display: inline-block;
}
.readout .r-value {
  font-family: var(--font-m); font-weight: 600;
  font-size: clamp(18px, 1.9vw, 26px);
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
  color: var(--ink);
}
.readout .r-value small { font-size: 0.5em; color: var(--ink-faint); letter-spacing: 0.08em; margin-left: 4px; }
.readout .r-value.is-hot { color: var(--hot); }

.scroll-cue {
  position: absolute; left: var(--pad); bottom: 96px; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-m); font-size: 10px; letter-spacing: 0.28em;
  color: var(--ink-faint); text-transform: uppercase;
}
.scroll-cue::after {
  content: ""; width: 1px; height: 44px;
  background: linear-gradient(var(--amber), transparent);
  animation: cue-drop 1.8s var(--ease-io) infinite;
}
@keyframes cue-drop { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  position: relative;
  padding: 140px 0 clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero .crumbs {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-m); font-size: 10.5px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: clamp(20px, 3vw, 32px);
}
.page-hero .crumbs a:hover { color: var(--amber); }
.page-hero .crumbs .sep { color: var(--amber); }
.page-hero h1 { font-size: clamp(42px, 7.4vw, 108px); max-width: 14ch; }
.page-hero .lede { margin-top: clamp(18px, 2.4vw, 28px); }
.page-hero .hero-fig {
  position: absolute; right: -40px; bottom: -20px;
  width: clamp(280px, 34vw, 560px);
  opacity: 0.5; pointer-events: none;
}
.page-hero-meta {
  display: flex; flex-wrap: wrap; gap: 28px 40px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.page-hero-meta .m-item { display: flex; flex-direction: column; gap: 6px; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  position: relative;
  contain: paint;
}
.marquee-track {
  display: flex; gap: 56px;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  animation: marquee 72s linear infinite;
  animation-play-state: paused; /* runs only when in view */
}
.marquee.is-running .marquee-track { animation-play-state: running; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-weight: 800; font-stretch: 118%;
  font-size: clamp(22px, 2.6vw, 36px);
  text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--ink-faint);
  opacity: 0.55;
  white-space: nowrap;
  display: flex; align-items: center; gap: 56px;
}
.marquee-track span em {
  font-style: normal;
  color: var(--amber);
  opacity: 1;
  font-family: var(--font-m); font-weight: 500; font-size: 0.55em;
  letter-spacing: 0.2em;
}
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Editorial / problem ---------- */
.editorial-statement {
  font-weight: 700; font-stretch: 112%;
  font-size: clamp(30px, 4.4vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 20ch;
}
.editorial-statement .dim { color: var(--ink-faint); }
.editorial-statement .amber { color: var(--amber); }

.patch-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(32px, 4vw, 52px);
}
.patch-card {
  background: var(--bg);
  padding: 24px 22px 28px;
  position: relative;
  transition: background 0.35s var(--ease);
}
.patch-card:hover { background: var(--panel); }
.patch-card .p-idx {
  font-family: var(--font-m); font-size: 10px;
  letter-spacing: 0.2em; color: var(--ink-faint);
}
.patch-card h3 {
  font-weight: 700; font-stretch: 112%;
  font-size: 19px; text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 14px 0 8px;
}
.patch-card p { font-size: 14.5px; color: var(--ink-dim); line-height: 1.55; }
.patch-card .p-tag {
  position: absolute; top: 24px; right: 22px;
  font-family: var(--font-m); font-size: 9.5px; letter-spacing: 0.16em;
  color: var(--hot); text-transform: uppercase;
  border: 1px solid rgba(255, 77, 0, 0.4);
  padding: 4px 8px;
}
.patch-arrow {
  display: flex; align-items: center; gap: 18px;
  margin-top: 28px;
  font-family: var(--font-m); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--amber);
}
.patch-arrow::before { content: ""; width: 72px; height: 1px; background: var(--amber); }

/* ---------- OS stack ---------- */
.stack-wrap { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.stack-visual { grid-column: 1 / 6; position: sticky; top: 110px; }
.stack-slab {
  border: 1px solid var(--line-2);
  background: var(--panel);
  padding: 16px 20px;
  margin-bottom: 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transform: translate3d(-16px, 0, 0); opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease), border-color 0.3s, background 0.3s;
}
.stack-slab.in { transform: translateX(0); opacity: 1; }
.stack-slab:hover, .stack-slab.active {
  border-color: var(--amber);
  background: linear-gradient(90deg, var(--amber-dim), var(--panel) 55%);
}
.stack-slab .s-name {
  font-weight: 800; font-stretch: 116%;
  font-size: clamp(18px, 1.8vw, 24px);
  text-transform: uppercase; letter-spacing: 0.02em;
}
.stack-slab .s-tag { font-family: var(--font-m); font-size: 9.5px; letter-spacing: 0.18em; color: var(--ink-faint); text-transform: uppercase; }
.stack-hw {
  border: 1px dashed var(--line-2);
  padding: 12px 20px;
  font-family: var(--font-m); font-size: 10px; letter-spacing: 0.18em;
  color: var(--ink-faint); text-transform: uppercase;
  display: flex; justify-content: space-between;
}
.stack-copy { grid-column: 7 / 13; }
.stack-item {
  border-top: 1px solid var(--line);
  padding: 28px 0 30px;
  display: grid; grid-template-columns: 64px 1fr; gap: 18px;
}
.stack-item:last-child { border-bottom: 1px solid var(--line); }
.stack-item .num {
  font-family: var(--font-m); font-weight: 600;
  font-size: 14px; color: var(--amber);
  padding-top: 4px;
}
.stack-item h3 {
  font-weight: 800; font-stretch: 116%;
  font-size: clamp(22px, 2.4vw, 32px);
  text-transform: uppercase;
  margin-bottom: 10px;
  transition: color 0.25s;
}
.stack-item:hover h3 { color: var(--amber); }
.stack-item p { color: var(--ink-dim); font-size: 15px; max-width: 52ch; line-height: 1.55; }
.stack-item .s-meta {
  margin-top: 14px;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-family: var(--font-m); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint);
}
.stack-item .s-meta b { color: var(--amber); font-weight: 500; }

/* ---------- Signal lab (instrument) ---------- */
.lab {
  border: 1px solid var(--line-2);
  background: var(--panel);
}
.lab-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-m); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-dim);
}
.lab-head .live { display: flex; align-items: center; gap: 8px; color: var(--ok); }
.lab-head .live i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ok);
  animation: blink-dot 1.6s var(--ease-io) infinite;
}
.lab-modes { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.lab-modes button {
  flex: 1 1 auto;
  padding: 12px 16px;
  font-family: var(--font-m); font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-dim);
  border-right: 1px solid var(--line);
  transition: background 0.25s, color 0.25s;
  position: relative;
}
.lab-modes button:last-child { border-right: 0; }
.lab-modes button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--amber);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.lab-modes button:hover { color: var(--ink); background: var(--panel-2); }
.lab-modes button.on { color: var(--amber); background: var(--panel-2); }
.lab-modes button.on::after { transform: scaleX(1); }
.lab-scope { position: relative; border-bottom: 1px solid var(--line); contain: paint; }
.lab-scope canvas, .lab-spec canvas { width: 100%; cursor: crosshair; }
.lab-scope .scope-tag, .lab-spec .scope-tag {
  position: absolute; top: 12px; left: 16px;
  font-family: var(--font-m); font-size: 9.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-faint);
  pointer-events: none;
}
.lab-spec { position: relative; }
.lab-reads {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
}
.lab-reads .readout { border-right: 1px solid var(--line); }
.lab-reads .readout:last-child { border-right: 0; }
.lab-note {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-m); font-size: 10.5px;
  letter-spacing: 0.08em; color: var(--ink-faint);
}
.lab-note b { color: var(--amber); font-weight: 500; }

.state-flag {
  font-family: var(--font-m); font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--line-2);
  color: var(--ink-dim);
  transition: all 0.3s;
}
.state-flag.nominal { color: var(--ok); border-color: rgba(127, 201, 143, 0.45); }
.state-flag.anomaly { color: var(--hot); border-color: rgba(255, 77, 0, 0.55); animation: flag-blink 0.9s steps(2) infinite; }
@keyframes flag-blink { 50% { background: rgba(255, 77, 0, 0.14); } }

/* ---------- Deployment models ---------- */
.models { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.model {
  background: var(--bg); padding: clamp(24px, 3vw, 40px);
  position: relative; overflow: hidden;
  transition: background 0.35s var(--ease);
}
.model:hover { background: var(--panel); }
.model .m-letter {
  position: absolute; top: -28px; right: 8px;
  font-weight: 800; font-stretch: 120%;
  font-size: clamp(100px, 12vw, 180px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
  pointer-events: none;
  transition: -webkit-text-stroke 0.35s;
}
.model:hover .m-letter { -webkit-text-stroke: 1px var(--amber); }
.model .m-kicker { font-family: var(--font-m); font-size: 10px; letter-spacing: 0.2em; color: var(--amber); text-transform: uppercase; }
.model h3 { font-weight: 800; font-stretch: 116%; font-size: clamp(22px, 2.2vw, 30px); text-transform: uppercase; margin: 12px 0 6px; }
.model .m-for { font-family: var(--font-m); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-faint); text-transform: uppercase; margin-bottom: 16px; }
.model p { color: var(--ink-dim); font-size: 14.5px; max-width: 44ch; position: relative; line-height: 1.55; }
.model ul { margin-top: 18px; position: relative; }
.model li {
  display: flex; gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-dim);
}
.model li::before { content: "→"; color: var(--amber); font-family: var(--font-m); flex: 0 0 auto; }
.model li b { color: var(--ink); font-weight: 600; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.stat {
  padding: clamp(22px, 2.6vw, 36px);
  border-right: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.stat:last-child { border-right: 0; }
.stat::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--amber);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.stat:hover::after { transform: scaleX(1); }
.stat .st-value {
  font-weight: 800; font-stretch: 120%;
  font-size: clamp(38px, 4.6vw, 68px);
  line-height: 1; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.stat .st-value small { font-size: 0.42em; color: var(--amber); font-stretch: 100%; letter-spacing: 0.04em; }
.stat .st-label { margin-top: 10px; font-family: var(--font-m); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- Hardware teaser / figure ---------- */
.fig-frame {
  border: 1px solid var(--line-2);
  background: var(--panel);
  position: relative;
  padding: clamp(18px, 2.4vw, 32px);
}
.fig-frame .fig-tag {
  position: absolute; top: -1px; left: -1px;
  background: var(--bg); border: 1px solid var(--line-2);
  padding: 6px 10px;
  font-family: var(--font-m); font-size: 9.5px;
  letter-spacing: 0.2em; color: var(--amber); text-transform: uppercase;
}
.fig-caption {
  margin-top: 14px;
  font-family: var(--font-m); font-size: 10px;
  letter-spacing: 0.14em; color: var(--ink-faint); text-transform: uppercase;
  display: flex; gap: 12px; align-items: center;
}
.fig-caption::before { content: ""; width: 32px; height: 1px; background: var(--line-2); }

.spec-list { border-top: 1px solid var(--line); }
.spec-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 16px; align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s var(--ease);
}
.spec-row:hover { padding-left: 10px; }
.spec-row .k { font-family: var(--font-m); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.spec-row .v { font-family: var(--font-m); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.spec-row .v em { font-style: normal; color: var(--amber); }

/* ---------- Industry index list (home teaser) ---------- */
.idx-list { border-top: 1px solid var(--line-2); }
.idx-row {
  display: grid;
  grid-template-columns: 80px 1fr auto 40px;
  align-items: center; gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-left 0.35s var(--ease);
}
.idx-row::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, var(--amber-dim), transparent 60%);
  opacity: 0; transition: opacity 0.35s;
  pointer-events: none;
}
.idx-row:hover { padding-left: 18px; }
.idx-row:hover::before { opacity: 1; }
.idx-row .n { font-family: var(--font-m); font-size: 12px; color: var(--ink-faint); }
.idx-row .t {
  font-weight: 800; font-stretch: 116%;
  font-size: clamp(22px, 3vw, 40px);
  text-transform: uppercase; line-height: 1;
  transition: color 0.3s;
}
.idx-row:hover .t { color: var(--amber); }
.idx-row .m { font-family: var(--font-m); font-size: 10px; letter-spacing: 0.16em; color: var(--ink-faint); text-transform: uppercase; text-align: right; }
.idx-row .a { font-family: var(--font-m); color: var(--amber); font-size: 18px; transform: translateX(-6px); opacity: 0; transition: all 0.3s var(--ease); }
.idx-row:hover .a { transform: translateX(0); opacity: 1; }

/* ---------- Accordion (industries page) ---------- */
.acc { border-top: 1px solid var(--line-2); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
  width: 100%;
  display: grid;
  grid-template-columns: 90px 1fr auto 56px;
  align-items: center; gap: 20px;
  padding: 20px 0;
  text-align: left;
  transition: padding-left 0.3s var(--ease);
}
.acc-head:hover { padding-left: 14px; }
.acc-head .n { font-family: var(--font-m); font-size: 12px; color: var(--ink-faint); }
.acc-head .t {
  font-weight: 800; font-stretch: 116%;
  font-size: clamp(24px, 3.4vw, 46px);
  text-transform: uppercase; line-height: 1;
  transition: color 0.3s;
}
.acc-head:hover .t, .acc-item.open .acc-head .t { color: var(--amber); }
.acc-head .fit {
  font-family: var(--font-m); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid var(--line-2); color: var(--ink-dim);
  padding: 6px 10px; white-space: nowrap;
}
.acc-head .fit b { color: var(--amber); font-weight: 600; }
.acc-head .ico {
  width: 40px; height: 40px;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  transition: transform 0.4s var(--ease), border-color 0.3s, background 0.3s;
}
.acc-head .ico svg { transition: transform 0.4s var(--ease); }
.acc-item.open .acc-head .ico { background: var(--amber); border-color: var(--amber); }
.acc-item.open .acc-head .ico svg { transform: rotate(45deg); }
.acc-item.open .acc-head .ico svg path { stroke: #0A0B0D; }
.acc-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.6s var(--ease);
}
.acc-body-in {
  padding: 4px 0 32px;
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px;
}
.acc-fig { grid-column: 1 / 4; }
.acc-fig .fig-frame { height: 100%; display: grid; place-items: center; min-height: 180px; }
.acc-cols { grid-column: 4 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.acc-col h4 {
  font-family: var(--font-m); font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--amber);
  padding-bottom: 10px; margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.acc-col li {
  padding: 7px 0;
  font-size: 14px; color: var(--ink-dim);
  border-bottom: 1px solid rgba(234, 231, 223, 0.06);
  display: flex; gap: 10px;
}
.acc-col li::before { content: "·"; color: var(--amber); }
.acc-note {
  grid-column: 1 / 13;
  margin-top: 16px;
  padding: 12px 16px;
  border-left: 2px solid var(--amber);
  background: var(--panel);
  font-size: 13.5px; color: var(--ink-dim);
  font-family: var(--font-m); letter-spacing: 0.02em;
}
.acc-note b { color: var(--ink); }

/* ---------- Tables ---------- */
.sheet {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line-2);
}
.sheet caption {
  text-align: left;
  font-family: var(--font-m); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-faint);
  padding-bottom: 12px;
}
.sheet th, .sheet td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}
.sheet th {
  font-family: var(--font-m); font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--amber);
  background: var(--panel);
  border-bottom: 1px solid var(--line-2);
}
.sheet td { color: var(--ink-dim); }
.sheet td:first-child { color: var(--ink); font-weight: 600; }
.sheet tbody tr { transition: background 0.25s; }
.sheet tbody tr:hover { background: var(--panel); }
.sheet .mono-v { font-family: var(--font-m); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }

/* ---------- Pipeline diagram ---------- */
.pipe-wrap {
  border: 1px solid var(--line-2);
  background: var(--panel);
  padding: clamp(18px, 2.6vw, 32px);
  overflow-x: auto;
}
.pipe-svg { min-width: 900px; width: 100%; height: auto; }
.pipe-flow {
  stroke-dasharray: 6 10;
  animation: pipe-dash 2.4s linear infinite;
}
@keyframes pipe-dash { to { stroke-dashoffset: -16; } }
.pipe-node-box { transition: border-color 0.3s, background 0.3s; }
.pipe-packet { animation: packet-glow 3.2s ease-in-out infinite; }
@keyframes packet-glow { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ---------- ODR dial / interactive datasheet ---------- */
.odr-panel { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: stretch; }
.odr-list { grid-column: 1 / 5; border: 1px solid var(--line-2); background: var(--panel); }
.odr-list .odr-head {
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--font-m); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-faint);
  display: flex; justify-content: space-between;
}
.odr-btns { display: grid; grid-template-columns: repeat(3, 1fr); }
.odr-btns button {
  padding: 12px 8px;
  font-family: var(--font-m); font-size: 12px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-dim);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: all 0.2s;
}
.odr-btns button:nth-child(3n) { border-right: 0; }
.odr-btns button:hover { background: var(--panel-2); color: var(--ink); }
.odr-btns button.on { background: var(--amber); color: #0A0B0D; }
.odr-scope {
  grid-column: 5 / 13;
  border: 1px solid var(--line-2); background: var(--panel);
  display: flex; flex-direction: column;
}
.odr-scope .lab-head { border-bottom: 1px solid var(--line); }
.odr-scope canvas { width: 100%; flex: 1; cursor: crosshair; }

/* ---------- FIR demo ---------- */
.fir-panel { border: 1px solid var(--line-2); background: var(--panel); }
.fir-toggle {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-m); font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-dim);
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  transition: all 0.3s;
}
.fir-toggle .sw {
  width: 34px; height: 18px;
  border: 1px solid var(--line-2);
  position: relative;
  transition: border-color 0.3s;
}
.fir-toggle .sw::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 12px; height: 12px; background: var(--ink-faint);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.fir-toggle.on { color: var(--amber); border-color: var(--amber); }
.fir-toggle.on .sw { border-color: var(--amber); }
.fir-toggle.on .sw::after { transform: translateX(16px); background: var(--amber); }

/* ---------- Protocol convergence ---------- */
.proto-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.proto-chip {
  font-family: var(--font-m); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--line-2);
  padding: 10px 16px;
  transition: all 0.3s var(--ease);
  cursor: default;
}
.proto-chip:hover { color: var(--amber); border-color: var(--amber); transform: translateY(-3px); background: var(--amber-dim); }

/* ---------- CTA ---------- */
.cta-section {
  position: relative;
  border-top: 1px solid var(--line);
  padding: clamp(72px, 9vw, 120px) 0;
  overflow: hidden;
}
.cta-section .cta-bg-word {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-weight: 800; font-stretch: 122%;
  font-size: clamp(120px, 22vw, 340px);
  text-transform: uppercase; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(234, 231, 223, 0.07);
  white-space: nowrap;
  pointer-events: none;
}
.cta-in { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.cta-in .cta-copy { grid-column: 1 / 8; }
.cta-in h2 { font-size: clamp(36px, 5.4vw, 76px); }
.cta-in .lede { margin-top: 18px; }
.cta-form { grid-column: 8 / 13; align-self: end; }
.cta-form form { display: flex; flex-direction: column; gap: 12px; }
.field { position: relative; }
.field input, .field select {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line-2);
  padding: 14px 16px;
  font-family: var(--font-m); font-size: 13px;
  color: var(--ink);
  transition: border-color 0.3s;
  appearance: none;
  border-radius: 0;
}
.field select { cursor: pointer; }
.field input::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus { outline: none; border-color: var(--amber); }
.field label {
  position: absolute; top: -7px; left: 12px;
  background: var(--bg); padding: 0 8px;
  font-family: var(--font-m); font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--amber);
}
.form-ok {
  display: none;
  border: 1px solid var(--ok);
  color: var(--ok);
  padding: 18px;
  font-family: var(--font-m); font-size: 12px; letter-spacing: 0.06em;
}
.form-ok.show { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
}
.footer-top {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
  padding: clamp(40px, 5vw, 72px) 0 clamp(28px, 3.5vw, 48px);
}
.footer-brand { grid-column: 1 / 6; }
.footer-links {
  grid-column: 7 / 13;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 24px;
  align-content: start;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--ink-dim); max-width: 34ch; }
.footer-status {
  margin-top: 20px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-m); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-faint);
}
.footer-status i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  animation: blink-dot 2s var(--ease-io) infinite;
}
.footer-status .clock { color: var(--amber); font-variant-numeric: tabular-nums; }
.footer-col { min-width: 0; }
.footer-col h5 {
  font-family: var(--font-m); font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 14px; color: var(--ink-dim);
  transition: color 0.25s, padding-left 0.25s;
}
.footer-col a:hover { color: var(--amber); padding-left: 6px; }
.footer-word {
  padding: 0 var(--pad);
  line-height: 0.82;
  user-select: none;
}
.footer-word span {
  display: block;
  font-weight: 800; font-stretch: 122%;
  font-size: clamp(64px, 14.4vw, 224px);
  text-transform: uppercase; letter-spacing: 0.01em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(234, 231, 223, 0.16);
  transition: -webkit-text-stroke 0.5s;
}
.footer-word:hover span { -webkit-text-stroke: 1px var(--amber); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
  margin-top: -1px;
  font-family: var(--font-m); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint);
}
.footer-bottom .fb-r { display: flex; gap: 28px; }
.footer-bottom a:hover { color: var(--amber); }

/* ---------- Reveal on scroll ---------- */
.js .rv { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.rv-in { opacity: 1; transform: translate3d(0, 0, 0); }
.js .rv-l { opacity: 0; transform: translate3d(-18px, 0, 0); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); transition-delay: var(--d, 0s); }
.js .rv-l.rv-in { opacity: 1; transform: translate3d(0, 0, 0); }
.js .rv-r { opacity: 0; transform: translate3d(18px, 0, 0); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); transition-delay: var(--d, 0s); }
.js .rv-r.rv-in { opacity: 1; transform: translate3d(0, 0, 0); }

/* ---------- Layer detail rows (platform) ---------- */
.layer-row {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
  padding: clamp(36px, 4.5vw, 56px) 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.layer-row:last-of-type { border-bottom: 1px solid var(--line); }
.layer-row .l-glyph { grid-column: 1 / 4; }
.layer-row .l-glyph .fig-frame { aspect-ratio: 1.35; display: grid; place-items: center; }
.layer-row .l-copy { grid-column: 5 / 13; }
.layer-row .l-copy .num { font-family: var(--font-m); font-size: 12px; color: var(--amber); letter-spacing: 0.2em; }
.layer-row .l-copy h3 { font-weight: 800; font-stretch: 116%; font-size: clamp(24px, 2.8vw, 36px); text-transform: uppercase; margin: 8px 0 12px; }
.layer-row .l-copy p { color: var(--ink-dim); font-size: 15px; max-width: 58ch; line-height: 1.55; }
.layer-row .l-copy .s-meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--font-m); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.layer-row .l-copy .s-meta b { color: var(--amber); font-weight: 500; }

/* ---------- Hierarchy tree ---------- */
.tree {
  border: 1px solid var(--line-2); background: var(--panel);
  padding: clamp(20px, 3vw, 40px);
  font-family: var(--font-m);
}
.tree-level { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.tree-node {
  border: 1px solid var(--line-2);
  background: var(--bg);
  padding: 12px 18px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-dim);
  text-align: center;
  transition: all 0.3s;
  position: relative;
}
.tree-node b { display: block; color: var(--ink); font-weight: 600; }
.tree-node:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-3px); }
.tree-node.risk-ok b { color: var(--ok); }
.tree-node.risk-warn b { color: var(--amber); }
.tree-node.risk-hot b { color: var(--hot); }
.tree-link { display: flex; justify-content: center; padding: 6px 0; color: var(--line-2); }
.tree-label {
  text-align: center; font-size: 9px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ink-faint);
  padding: 10px 0 2px;
}

/* ---------- Sensor drawing (hardware) ---------- */
.sensor-fig { width: 100%; height: auto; }
.dim-line { stroke: var(--ink-faint); stroke-width: 0.75; stroke-dasharray: 3 3; }
.dim-text { font-family: var(--font-m); font-size: 8.5px; fill: var(--ink-faint); letter-spacing: 0.1em; }
.callout-line { stroke: var(--amber); stroke-width: 0.75; }
.callout-text { font-family: var(--font-m); font-size: 9px; fill: var(--amber); letter-spacing: 0.12em; }
.sensor-body { stroke: var(--ink); stroke-width: 1.5; fill: var(--panel-2); }
.sensor-detail { stroke: var(--ink-dim); stroke-width: 1; fill: none; }

/* ---------- Misc ---------- */
.two-col { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.two-col .col-a { grid-column: 1 / 7; }
.two-col .col-b { grid-column: 7 / 13; }
.mt-40 { margin-top: 28px; }
.mt-64 { margin-top: clamp(32px, 4vw, 52px); }

.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.big-quote {
  font-weight: 700; font-stretch: 112%;
  font-size: clamp(24px, 3.2vw, 44px);
  line-height: 1.2; letter-spacing: -0.005em;
  max-width: 26ch;
}
.big-quote .amber { color: var(--amber); }

.divider-label {
  display: flex; align-items: center; gap: 20px;
  font-family: var(--font-m); font-size: 10px;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-faint);
  margin: clamp(28px, 4vw, 44px) 0 20px;
}
.divider-label::before, .divider-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .section-head h2 { grid-column: 1 / -1; }
  .section-head .lede { grid-column: 1 / 10; margin-top: 8px; }
  .stack-visual { position: static; grid-column: 1 / -1; margin-bottom: 40px; }
  .stack-copy { grid-column: 1 / -1; }
  .patch-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .two-col .col-a, .two-col .col-b { grid-column: 1 / -1; }
  .two-col .col-b { margin-top: 32px; }
  .layer-row .l-glyph { grid-column: 1 / 5; }
  .layer-row .l-copy { grid-column: 5 / 13; }
  .acc-fig { grid-column: 1 / 13; }
  .acc-fig .fig-frame { min-height: 160px; }
  .acc-cols { grid-column: 1 / 13; margin-top: 32px; }
  .odr-list { grid-column: 1 / -1; }
  .odr-scope { grid-column: 1 / -1; min-height: 260px; }
  .cta-in .cta-copy { grid-column: 1 / -1; }
  .cta-form { grid-column: 1 / -1; margin-top: 40px; }
  .readout-bar { grid-template-columns: repeat(3, 1fr); }
  .readout:nth-child(3n) { border-right: 0; }
  .readout:nth-child(n+4) { border-top: 1px solid var(--line); }
  .lab-reads { grid-template-columns: repeat(3, 1fr); }
  .lab-reads .readout:nth-child(3n) { border-right: 0; }
  .lab-reads .readout:nth-child(n+4) { border-top: 1px solid var(--line); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-links { grid-column: 1 / -1; margin-top: 8px; }
}

@media (max-width: 860px) {
  .main-nav, .header-cta .btn { display: none; }
  .menu-toggle { display: flex; }
  .models { grid-template-columns: 1fr; }
  .hero-side { display: none; }
  .hero-canvas { opacity: 0.42; }
  .hero-content::before {
    background: linear-gradient(180deg, rgba(10,11,13,0.35) 0%, rgba(10,11,13,0.88) 46%, var(--bg) 88%);
  }
  .acc-cols { grid-template-columns: 1fr; gap: 8px; }
  .acc-head { grid-template-columns: 56px 1fr 48px; }
  .acc-head .fit { display: none; }
  .idx-row { grid-template-columns: 56px 1fr 32px; }
  .idx-row .m { display: none; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .page-hero .hero-fig { opacity: 0.25; }
  .scroll-cue { display: none; }
}

@media (max-width: 640px) {
  .readout-bar { grid-template-columns: repeat(2, 1fr); }
  .readout:nth-child(3n) { border-right: 1px solid var(--line); }
  .readout:nth-child(2n) { border-right: 0; }
  .readout:nth-child(n+3) { border-top: 1px solid var(--line); }
  .lab-reads { grid-template-columns: repeat(2, 1fr); }
  .lab-reads .readout:nth-child(3n) { border-right: 1px solid var(--line); }
  .lab-reads .readout:nth-child(2n) { border-right: 0; }
  .lab-reads .readout:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .stack-item { grid-template-columns: 1fr; gap: 8px; }
  .layer-row .l-glyph { grid-column: 1 / -1; }
  .layer-row .l-copy { grid-column: 1 / -1; margin-top: 24px; }
  .odr-btns { grid-template-columns: repeat(3, 1fr); }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Touch devices (no hover) ---------- */
@media (hover: none) {
  .idx-row .a { opacity: 1; transform: none; }
  .acc-head .ico svg { transform: none; }
  .main-nav a::after { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
  .js .rv, .js .rv-l, .js .rv-r { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
