/* ==========================================================================
   Duromex — styles.css
   Pure CSS. No framework. One flat canvas under every section: separation is
   whitespace alone. Depth is a hairline or one opaque tonal step on a
   component — never a gradient, shadow, glow or blur.
   ========================================================================== */

/* ---------- 1. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--space-6));
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text-secondary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  font-feature-settings: "kern" 1;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -.035em; }
h2 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -.03em; }
h3 { font-size: var(--fs-h3); line-height: 1.2;  letter-spacing: -.018em; font-weight: 650; }
h4 { font-size: var(--fs-h4); line-height: 1.3;  letter-spacing: -.01em; font-weight: 600; }
p  { max-width: 68ch; text-wrap: pretty; }
code, pre, kbd { font-family: var(--font-mono); font-size: .9em; }
ul, ol { padding-left: 1.15em; }
strong { color: var(--text-primary); font-weight: 650; }
a { color: var(--accent-hover); text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--text-primary); }

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection { background: var(--accent-soft); color: var(--text-primary); }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 200;
  background: var(--accent); color: var(--text-on-accent);
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-md);
  font-weight: 600; text-decoration: none;
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: var(--space-4); color: var(--text-on-accent); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 2. Utilities (declared first so components can override) ---------- */
.mt-3  { margin-top: var(--space-3); }
.mt-4  { margin-top: var(--space-4); }
.mt-5  { margin-top: var(--space-5); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-10 { margin-bottom: var(--space-10); }
.ml-3  { margin-left: var(--space-3); }
@media (min-width: 861px) { .order-first { order: -1; } }

.muted { color: var(--text-muted); }
.small { font-size: var(--fs-small); }
.mono  { font-family: var(--font-mono); }
.tnum  { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.center p, p.center { margin-inline: auto; }

.footnote {
  margin: var(--space-10) auto 0; max-width: 72ch;
  font-size: var(--fs-small); color: var(--text-muted); line-height: 1.6;
}
.footnote--left { margin-inline: 0; }

/* Status flag for targets and illustrative quotes — honest, quiet, legible. */
.flag {
  display: inline-block; vertical-align: .1em; margin-left: .15em;
  padding: 1px 6px; border-radius: var(--radius-xs);
  border: 1px solid var(--border-default);
  font-family: var(--font-mono); font-size: .6875rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; line-height: 1.5;
  color: var(--text-muted); white-space: nowrap; font-style: normal;
}

/* ---------- 3. Layout primitives ---------- */
.container {
  width: 100%; max-width: var(--container-xl);
  margin-inline: auto; padding-inline: var(--gutter);
}
.container--wide   { max-width: var(--container-2xl); }
.container--narrow { max-width: var(--container-md); }
.container--prose  { max-width: var(--container-sm); }

/* Every section sits on the same canvas; one gap separates two sections. */
main > section,
.section, .scene {
  position: relative;
  padding-block: 0 var(--section-y);
  background: var(--bg-base);
  border: 0;
}
.section--tight { padding-bottom: clamp(64px, 8vw, 112px); }
.section--opener { padding-block: var(--space-8) var(--section-y-lg); }
.section > .container { position: relative; z-index: 1; }

.stack > * + * { margin-top: var(--stack); }
.stack-sm > * + * { margin-top: var(--space-3); }
.stack-lg > * + * { margin-top: var(--space-8); }

/* Grids resolve orphans: a short last row always spans the full width. */
.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-2 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.grid-3 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-3 > * { grid-column: span 2; }
@media (min-width: 1001px) {
  .grid-3 > :last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .grid-3 > :nth-last-child(2):nth-child(3n+1),
  .grid-3 > :last-child:nth-child(3n+2) { grid-column: span 3; }
}
.grid-4 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid-4 > * { grid-column: span 3; }
@media (min-width: 1101px) {
  .grid-4 > :last-child:nth-child(4n+1) { grid-column: 1 / -1; }
  .grid-4 > :nth-last-child(2):nth-child(4n+1),
  .grid-4 > :last-child:nth-child(4n+2) { grid-column: span 6; }
  .grid-4 > :nth-last-child(3):nth-child(4n+1),
  .grid-4 > :nth-last-child(2):nth-child(4n+2),
  .grid-4 > :last-child:nth-child(4n+3) { grid-column: span 4; }
}

.grid-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.grid-split--wide-left { grid-template-columns: 1.15fr 1fr; }
.grid-sidebar { grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 > *, .grid-4 > *:nth-child(n) { grid-column: auto; }
  .grid-4 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .grid-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 > *, .grid-3 > *:nth-child(n) { grid-column: auto; }
  .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .grid-split, .grid-split--wide-left { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 > *, .grid-3 > *, .grid-4 > *,
  .grid-3 > *:nth-child(n), .grid-4 > *:nth-child(n) { grid-column: auto; }
}

/* Section head: headline left, lead right on wide screens. */
.section-head {
  display: grid; gap: var(--space-5); align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head > * { margin: 0; }
.section-head > h2 { max-width: 22ch; }
.section-head > .lead { max-width: 58ch; }
@media (min-width: 1024px) {
  .section-head:not(.section-head--center):has(> .lead) {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    column-gap: clamp(48px, 6vw, 112px);
  }
  .container--narrow .section-head:has(> .lead),
  .container--prose .section-head:has(> .lead) { grid-template-columns: 1fr; }
}
.section-head--center { justify-items: center; text-align: center; margin-inline: auto; max-width: 820px; }
.section-head--center p { margin-inline: auto; }

/* ---------- 4. Typography helpers ---------- */
.display {
  font-size: var(--fs-display); font-weight: 700;
  line-height: .98; letter-spacing: -.045em; color: var(--text-primary);
}
.display--sub { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -.035em; }
.lead { font-size: var(--fs-lead); color: var(--text-secondary); max-width: 60ch; line-height: 1.55; }
.gradient-text { color: var(--accent-hover); }
.scene-number, .step-num {
  display: block;
  font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 500;
  color: var(--text-muted); letter-spacing: .08em;
}
.step-num { color: var(--accent-hover); }

/* ---------- 5. Buttons, badges, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-5);
  border-radius: var(--radius-md); border: 1px solid transparent;
  font-size: .9375rem; font-weight: 600; line-height: 1;
  letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-ref),
              border-color var(--dur-fast) var(--ease-ref),
              color var(--dur-fast) var(--ease-ref);
}
.btn--primary { background: var(--accent); color: var(--text-on-accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--text-on-accent); }
.btn--primary:active { background: var(--accent-press); }
.btn--secondary {
  background: var(--surface-1); color: var(--text-primary);
  border-color: var(--border-default);
}
.btn--secondary:hover { background: var(--surface-2); border-color: var(--border-strong); color: var(--text-primary); }
.btn--ghost { color: var(--text-secondary); padding-inline: var(--space-3); }
.btn--ghost:hover { color: var(--text-primary); background: var(--surface-2); }
.btn--lg { min-height: 50px; padding-inline: var(--space-6); font-size: 1rem; }
.btn--block { width: 100%; }
.btn__arrow { transition: transform var(--dur-fast) var(--ease-ref); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn-row--center { justify-content: center; }
@media (max-width: 480px) {
  .btn-row > .btn { flex: 1 1 100%; }
}

.badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 3px var(--space-3); border-radius: var(--radius-sm);
  font-size: var(--fs-micro); font-weight: 600; letter-spacing: .02em; line-height: 1.5;
  background: var(--accent-soft); color: var(--accent-hover);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.badge--teal   { background: var(--accent-2-soft); color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 30%, transparent); }
.badge--amber  { background: var(--accent-3-soft); color: var(--accent-3); border-color: color-mix(in srgb, var(--accent-3) 30%, transparent); }
.badge--muted  { background: var(--surface-2); color: var(--text-muted); border-color: var(--border-subtle); }
.badge--success{ background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 30%, transparent); }

.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-md);
  background: var(--surface-1); border: 1px solid var(--border-subtle);
  color: var(--text-secondary); font-size: var(--fs-small); text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease-ref), color var(--dur-fast) var(--ease-ref);
}
a.chip:hover { border-color: var(--border-strong); color: var(--text-primary); }

/* ---------- 6. Cards ---------- */
.card {
  position: relative; background: var(--surface-1);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  padding: clamp(24px, 2.4vw, 32px);
  transition: border-color var(--dur-base) var(--ease-ref),
              background-color var(--dur-base) var(--ease-ref);
  min-width: 0;
}
.card--glass { background: var(--surface-1); }
.card--link { text-decoration: none; display: flex; flex-direction: column; color: inherit; }
.card--link:hover { border-color: var(--border-strong); background: var(--surface-2); color: inherit; }
.card--link > .badge { align-self: flex-start; }
.card--link > .card__meta { margin-top: auto; }
.card--link > :nth-last-child(2) { margin-bottom: var(--space-6); }
.card--link h3 { transition: color var(--dur-fast) var(--ease-ref); }
.card--link:hover h3 { color: var(--accent-hover); }
:where(.card) h3 { font-size: var(--fs-h4); line-height: 1.3; letter-spacing: -.012em; margin-bottom: var(--space-3); }
:where(.card) h4 { margin-bottom: var(--space-3); }
.card h3.mt-5, .card h3.mt-3 { margin-top: var(--space-5); }
:where(.card) p { color: var(--text-secondary); font-size: .9688rem; line-height: 1.6; }
:where(.card) p + p { margin-top: var(--space-3); }
.card > .card__list:first-child { margin-top: 0; }
.card > .badge:first-child, .card > div > .badge:first-child { margin-bottom: 0; }

.card__icon {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  display: grid; place-items: center; margin-bottom: var(--space-6);
  background: var(--surface-2); color: var(--accent-hover);
  border: 1px solid var(--border-default);
}
.card__icon svg { width: 20px; height: 20px; }
.card__icon--teal  { color: var(--accent-2); }
.card__icon--amber { color: var(--accent-3); }
.card__meta {
  font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: .02em;
  color: var(--text-muted); padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}
.card__list { list-style: none; padding: 0; margin-top: var(--space-5); display: grid; gap: var(--space-2); }
.card__list li {
  position: relative; padding-left: var(--space-6);
  font-size: var(--fs-small); color: var(--text-secondary); line-height: 1.55;
}
.card__list li::before {
  content: ""; position: absolute; left: 0; top: .78em; width: 9px; height: 1px;
  background: var(--accent-hover);
}

/* Feature grids with icons read as one ruled sheet of cells, not scattered tiles. */
.grid-3:has(> .card > .card__icon),
.grid-4:has(> .card > .card__icon) {
  gap: 0; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface-1);
}
.grid-3:has(> .card > .card__icon) > .card,
.grid-4:has(> .card > .card__icon) > .card {
  border: 0; border-radius: 0; background: transparent;
  border-right: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle);
  margin: 0 -1px -1px 0;
  padding: clamp(28px, 2.8vw, 40px);
}

/* ---------- 7. Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-4); }
.bento > * { grid-column: span 2; }
.bento .span-2 { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
.bento .span-6 { grid-column: span 6; }
.bento .tall { min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-6); }
.bento .card h3 { font-size: var(--fs-h3); letter-spacing: -.02em; }
.bento .span-4 h3 { max-width: 20ch; }
.bento .span-4 p { max-width: 56ch; }
.bento .card__meta { margin-top: 0; }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > *, .bento .span-2, .bento .span-3 { grid-column: span 1; }
  .bento .span-4, .bento .span-6 { grid-column: 1 / -1; }
  .bento > :last-child:nth-child(even):not(.span-4):not(.span-6) { grid-column: auto; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento > *, .bento .span-2, .bento .span-3, .bento .span-4, .bento .span-6 { grid-column: 1 / -1; }
  .bento .tall { min-height: 0; }
}

/* ---------- 8. Navigation ---------- */
/* The header is the page canvas: solid, unblurred, and it draws no rule. */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: var(--bg-base);
}
.nav {
  display: flex; align-items: center; gap: var(--space-8);
  height: var(--nav-h);
  max-width: var(--container-2xl); margin-inline: auto; padding-inline: var(--gutter);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700; letter-spacing: -.02em; font-size: 1.1875rem;
  color: var(--text-primary); text-decoration: none;
}
.brand:hover { color: var(--text-primary); }
.brand__mark { width: 26px; height: 26px; flex: none; }
.nav__spacer { flex: 1; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 var(--space-3); border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 500; color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-ref), background-color var(--dur-fast) var(--ease-ref);
}
.nav__link:hover, .nav__item.is-open > .nav__link { color: var(--text-primary); background: var(--surface-1); }
.nav__link[aria-current="page"] { color: var(--text-primary); }
.nav__caret { width: 10px; height: 10px; opacity: .7; transition: transform var(--dur-fast) var(--ease-ref); }
.nav__item { position: relative; }
.nav__item--has-menu > .nav__link[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 12px); left: -12px;
  width: 540px; padding: var(--space-2);
  background: var(--bg-elevated); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity var(--dur-fast) var(--ease-ref), transform var(--dur-fast) var(--ease-ref), visibility var(--dur-fast);
}
.mega::before { content: ""; position: absolute; inset: -14px 0 auto 0; height: 14px; }
.nav__item--has-menu.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega__link {
  display: block; padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md); text-decoration: none; color: var(--text-primary);
  transition: background-color var(--dur-fast) var(--ease-ref);
}
.mega__link:hover { background: var(--surface-2); color: var(--text-primary); }
.mega__link strong { display: block; font-size: .875rem; font-weight: 600; }
.mega__link span { display: block; font-size: .8125rem; color: var(--text-muted); margin-top: 2px; line-height: 1.45; }

.nav__actions { display: flex; align-items: center; gap: var(--space-2); }
.nav__actions .btn { min-height: 36px; padding-inline: 14px; font-size: .875rem; border-radius: var(--radius-sm); }
.nav__actions .btn--secondary { background: transparent; border-color: transparent; color: var(--text-secondary); }
.nav__actions .btn--secondary:hover { color: var(--text-primary); background: var(--surface-1); }
.nav__toggle { display: none; width: 44px; height: 44px; place-items: center; border-radius: var(--radius-md); color: var(--text-primary); }
.nav__toggle:hover { background: var(--surface-2); }

.scroll-progress { display: none; }

/* Mobile overlay nav */
.mobile-nav {
  position: fixed; inset: 0; z-index: 110;
  background: var(--bg-base);
  padding: calc(var(--nav-h) + var(--space-4)) var(--gutter) var(--space-10);
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--dur-base) var(--ease-ref), transform var(--dur-base) var(--ease-ref), visibility var(--dur-base);
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav__close { position: absolute; top: 12px; right: var(--gutter); width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-md); color: var(--text-primary); }
.mobile-nav__close:hover { background: var(--surface-2); }
.mobile-nav__group { border-bottom: 1px solid var(--border-subtle); }
.mobile-nav__group > summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-5) 0; font-family: var(--font-display); font-size: 1.375rem; font-weight: 650;
  letter-spacing: -.02em; color: var(--text-primary); cursor: pointer; list-style: none; min-height: 44px;
}
.mobile-nav__group > summary::-webkit-details-marker { display: none; }
.mobile-nav__group > summary .nav__caret { width: 14px; height: 14px; }
.mobile-nav__group[open] > summary .nav__caret { transform: rotate(180deg); }
.mobile-nav__links { display: grid; gap: 2px; padding-bottom: var(--space-4); }
.mobile-nav__links a {
  padding: var(--space-3) var(--space-4); margin-inline: calc(var(--space-4) * -1); border-radius: var(--radius-md);
  color: var(--text-secondary); text-decoration: none; min-height: 44px; display: flex; align-items: center;
}
.mobile-nav__links a:hover { background: var(--surface-1); color: var(--text-primary); }
.mobile-nav > a.btn, .mobile-nav .btn { margin-top: var(--space-6); }

@media (max-width: 1080px) {
  .nav__list, .nav__actions .btn--secondary { display: none; }
  .nav__toggle { display: grid; }
}
@media (max-width: 400px) {
  .nav { gap: var(--space-3); }
  .nav__actions .btn--primary { padding-inline: 12px; }
}

/* ---------- 9. Breadcrumbs ---------- */
.breadcrumbs { padding-top: calc(var(--nav-h) + var(--space-8)); }
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
  list-style: none; padding: 0; margin: 0; font-size: var(--fs-small); color: var(--text-muted);
}
.breadcrumbs li + li::before { content: "/"; margin-right: var(--space-2); color: var(--text-faint); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text-primary); }
.breadcrumbs [aria-current="page"] { color: var(--text-secondary); }

/* ---------- 10. Hero ---------- */
.hero {
  position: relative;
  padding-block: calc(var(--nav-h) + clamp(48px, 8vw, 112px)) var(--section-y);
  overflow: clip;
}
.breadcrumbs + .hero { padding-top: clamp(40px, 5vw, 72px); }
.hero > .container { position: relative; z-index: 1; }
.hero__aurora, .hero__grid, .scroll-cue, .dot-grid { display: none; }

.hero .badge {
  background: var(--surface-1); color: var(--text-secondary);
  border-color: var(--border-default); padding: 5px 12px 5px 10px; font-weight: 500;
  font-size: .8125rem; letter-spacing: 0;
}
.hero .badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2);
}
.hero .lead { max-width: 56ch; }

/* Inner-page hero: headline on the left, argument and actions on the right. */
.hero:not(.hero--home) .display { font-size: clamp(2.5rem, 1.35rem + 4vw, 4.75rem); }
@media (min-width: 1100px) {
  .hero:not(.hero--home) > .container {
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    column-gap: clamp(48px, 6vw, 112px); align-items: end;
  }
  .hero:not(.hero--home) > .container > * { grid-column: 1 / -1; }
  .hero:not(.hero--home) > .container > .display { grid-column: 1; grid-row: 2 / span 2; align-self: end; }
  .hero:not(.hero--home) > .container > .lead { grid-column: 2; grid-row: 2; margin-top: 0; }
  .hero:not(.hero--home) > .container > .lead + div { grid-column: 2; grid-row: 3; margin-top: var(--space-8); }
  .hero:not(.hero--home) > .container > .hero__meta { grid-row: 4; }
}

.hero__meta {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6);
  margin-top: clamp(56px, 7vw, 96px);
}
.hero__meta-item { padding-top: var(--space-5); border-top: 1px solid var(--border-default); min-width: 0; }
.hero__meta-value {
  font-family: var(--font-display); font-size: clamp(1.75rem, 1.4rem + 1.3vw, 2.5rem);
  font-weight: 700; letter-spacing: -.035em; line-height: 1; color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.hero__meta-label { margin-top: var(--space-3); font-size: var(--fs-small); color: var(--text-muted); line-height: 1.45; }
@media (max-width: 760px) { .hero__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-8); } }

/* Home hero: copy + a live line console. */
.hero--home { padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 88px)); }
.hero--home .hero__layout {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(40px, 5vw, 88px); align-items: center;
}
.hero--home .display { margin-top: var(--space-6); }
@media (max-width: 1100px) {
  .hero--home .hero__layout { grid-template-columns: 1fr; }
}

.console {
  background: var(--surface-1); border: 1px solid var(--border-default);
  border-radius: var(--radius-xl); overflow: hidden; font-size: var(--fs-small);
}
.console__bar {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 14px var(--space-5); border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--text-muted); letter-spacing: .02em;
}
.console__bar strong { color: var(--text-primary); font-weight: 500; white-space: nowrap; }
.console__bar > span:not(.console__live) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console__live { flex: none; }
.console__live { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--accent-2); }
.console__live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2.4s var(--ease-in-out) infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.console__draw { padding: var(--space-5) var(--space-5) 0; }
.console__draw svg { width: 100%; }
.console__rows { list-style: none; padding: var(--space-2) 0; margin: 0; }
.console__row {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) 84px 76px; gap: var(--space-3);
  align-items: center; padding: 10px var(--space-5);
}
.console__row + .console__row { border-top: 1px solid var(--border-subtle); }
.console__n { font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--text-muted); }
.console__stage { color: var(--text-primary); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console__meter { display: block; width: 100%; height: 4px; }
.console__meter .cm-bg { fill: var(--surface-3); }
.console__meter .cm-fg { fill: var(--accent); }
.console__row.is-watch .console__meter .cm-fg { fill: var(--accent-3); }
.console__row.is-adjust .console__meter .cm-fg { fill: var(--accent-hover); }
.console__row.is-ok .console__meter .cm-fg { fill: var(--accent-2); }
.console__trace { width: 100%; height: auto; }
.ct-track { stroke: var(--border-default); stroke-width: 2; fill: none; }
.ct-progress { stroke: var(--accent); stroke-width: 2; fill: none; }
.ct-loop { stroke: var(--accent-2); stroke-width: 1.4; stroke-dasharray: 4 4; fill: none; }
.ct-arrow { stroke: var(--accent-2); stroke-width: 1.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ct-loop-label { fill: var(--text-muted); font-family: var(--font-mono); font-size: 11px; text-anchor: middle; letter-spacing: .04em; }
.ct-done { fill: var(--accent); }
.ct-now { fill: var(--success); }
.ct-ring { fill: var(--bg-base); stroke: var(--success); stroke-width: 1.4; }
.ct-todo { fill: var(--surface-1); stroke: var(--border-strong); stroke-width: 1.4; }
.ct-label { fill: var(--text-muted); font-family: var(--font-mono); font-size: 10.5px; text-anchor: middle; letter-spacing: .06em; }
.console { margin: 0; }
.console__state {
  justify-self: end; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--success);
}
.console__row.is-watch .console__state { color: var(--accent-3); }
.console__row.is-adjust .console__state { color: var(--accent-hover); }
.console__foot {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border-subtle);
}
.console__foot > div { padding: 14px var(--space-5); min-width: 0; }
.console__foot > div + div { border-left: 1px solid var(--border-subtle); }
.console__k { display: block; font-size: .6875rem; color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase; }
.console__v { display: block; margin-top: 4px; font-family: var(--font-display); font-weight: 650; font-size: 1.0625rem; color: var(--text-primary); letter-spacing: -.01em; }
@media (max-width: 520px) {
  .console__row { grid-template-columns: 24px minmax(0, 1fr) 64px; }
  .console__meter, .console__draw { display: none; }
  .console__foot { grid-template-columns: 1fr; }
  .console__foot > div + div { border-left: 0; border-top: 1px solid var(--border-subtle); }
}

/* ---------- 11. Former scroll scenes, now composed as static sections ---------- */
.scene { height: auto; }
.scene__stage { position: static; height: auto; display: block; overflow: visible; padding: 0; }
.scene__inner { width: 100%; }

/* Reveal / kinetic type */
[data-reveal] {
  opacity: 0; transform: translateY(14px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal="left"]  { transform: translateX(-16px); }
[data-reveal="right"] { transform: translateX(16px); }
[data-reveal="scale"] { transform: scale(.98); }

.kinetic .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.kinetic .line > span {
  display: block; transform: translateY(105%);
  transition: transform var(--dur-slower) var(--ease-emph);
}
.kinetic.in .line > span { transform: none; }
.kinetic.in .line:nth-child(2) > span { transition-delay: 80ms; }
.kinetic.in .line:nth-child(3) > span { transition-delay: 160ms; }
.kinetic.in .line:nth-child(4) > span { transition-delay: 240ms; }

/* Narrative: headline, then the steps as one ruled sheet. */
.narrative__layout { display: block; }
.narrative__layout > div:first-child > h2 { max-width: 22ch; }
.narrative__visual, .narrative__rail { display: none; }
.narrative__steps {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 64px);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface-1);
}
.narrative__step {
  grid-column: span 2; min-width: 0;
  padding: clamp(28px, 2.8vw, 40px);
  border-right: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle);
  margin: 0 -1px -1px 0;
}
.narrative__step h3 { font-size: var(--fs-h4); margin-top: var(--space-5) !important; }
.narrative__step h3 + p { margin-top: var(--space-3) !important; font-size: .9688rem; }
.narrative__step > p { font-size: .9688rem; }
.narrative__step > .step-num { padding-bottom: var(--space-4); border-bottom: 1px solid var(--border-subtle); }
@media (min-width: 1101px) {
  .narrative__steps > :last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .narrative__steps > :nth-last-child(2):nth-child(3n+1),
  .narrative__steps > :last-child:nth-child(3n+2) { grid-column: span 3; }
  .narrative__steps:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .narrative__steps:has(> :nth-child(4):last-child) > * { grid-column: span 1; }
}
@media (max-width: 1100px) {
  .narrative__steps, .narrative__steps:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .narrative__steps > *, .narrative__steps > *:nth-child(n) { grid-column: auto; }
  .narrative__steps > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .narrative__steps, .narrative__steps:has(> :nth-child(4):last-child) { grid-template-columns: 1fr; }
}

/* Assembly drawing: a framed spec sheet with numbered callouts. */
.assembly-wrap {
  display: grid; place-items: center;
  background: var(--surface-1); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); padding: clamp(20px, 3vw, 40px);
}
.assembly { width: 100%; max-width: 460px; }
.assembly__part { transform-box: fill-box; transform-origin: center; }
.asm-shell { fill: var(--surface-2); stroke: var(--accent); stroke-width: 2; }
.asm-foot { fill: var(--surface-3); stroke: var(--border-strong); }
.asm-foam { stroke: var(--accent-2); stroke-opacity: .5; stroke-width: 1; }
.asm-foam-line { stroke: var(--accent-2); stroke-opacity: .45; stroke-width: 1.3; }
.asm-liner { fill: var(--surface-3); stroke: var(--text-muted); stroke-opacity: .6; stroke-width: 1.2; }
.asm-shelf { fill: none; stroke: var(--border-strong); stroke-width: 1.4; stroke-linecap: round; }
.asm-seam { fill: none; stroke: var(--ring); stroke-width: 2; stroke-dasharray: 6 5; }
.asm-weld { fill: var(--accent-3); }
.asm-pcb { fill: var(--surface-2); stroke: var(--accent-3); stroke-width: 1.4; }
.asm-comp { fill: var(--surface-2); stroke: var(--accent-3); stroke-width: 1.4; }
.asm-wire { fill: none; stroke: var(--accent-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.asm-probe { fill: var(--bg-base); stroke: var(--success); stroke-width: 2; }
.asm-check { fill: none; stroke: var(--success); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.asm-label { fill: var(--surface-2); stroke: var(--accent); stroke-width: 1.2; }
.asm-label-text { fill: var(--text-primary); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.asm-leader { fill: none; stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 2 3; }
.asm-num circle { fill: var(--bg-base); stroke: var(--border-strong); stroke-width: 1.2; }
.asm-num text { fill: var(--text-primary); font-family: var(--font-mono); font-size: 12px; font-weight: 600; text-anchor: middle; }

/* The stage list that pairs with the drawing: numbered, ruled, two columns. */
.scrub-legend {
  counter-reset: stage; list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-6);
  margin-top: var(--space-10);
}
.scrub-legend__item {
  counter-increment: stage;
  display: flex; align-items: baseline; gap: var(--space-3);
  padding: var(--space-3) 0; border-top: 1px solid var(--border-subtle);
  font-size: var(--fs-small); color: var(--text-secondary);
}
.scrub-legend__item::before {
  content: counter(stage, decimal-leading-zero);
  font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--accent-hover);
}
@media (max-width: 420px) { .scrub-legend { grid-template-columns: 1fr; } }

/* ---------- 12. Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); }
.stat { padding-top: var(--space-6); border-top: 1px solid var(--border-default); min-width: 0; }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.7rem + 2.8vw, 4rem); font-weight: 700;
  color: var(--text-primary); line-height: 1; letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.stat__value--sm { font-size: clamp(1.75rem, 1.4rem + 1.3vw, 2.5rem); letter-spacing: -.035em; }
.stat__label { margin-top: var(--space-4); font-size: var(--fs-small); color: var(--text-muted); max-width: 30ch; line-height: 1.5; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-10); } }

.metric-ribbon {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  background: var(--surface-1); overflow: hidden;
}
.metric-ribbon > * {
  padding: clamp(24px, 2.6vw, 36px);
  border-right: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle);
  margin: 0 -1px -1px 0; min-width: 0;
}
.metric-ribbon .stat__label { margin-top: var(--space-3); }

/* ---------- 13. Logo wall ---------- */
.logo-wall__title {
  text-align: center; margin: 0 auto var(--space-8); max-width: none;
  font-size: var(--fs-small); color: var(--text-muted);
}
.logo-wall {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden;
}
.logo-wall__item {
  display: grid; place-items: center; min-height: 88px; padding: var(--space-4) var(--space-5);
  border-right: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle);
  margin: 0 -1px -1px 0;
  font-family: var(--font-display); font-weight: 600; font-size: .9375rem; letter-spacing: -.005em;
  color: var(--text-muted); text-align: center; line-height: 1.35;
  transition: color var(--dur-base) var(--ease-ref);
}
.logo-wall__item:hover { color: var(--text-primary); }
.logo-wall + p { margin: var(--space-6) auto 0; text-align: center; max-width: 64ch; }
@media (max-width: 1100px) { .logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } .logo-wall__item { font-size: .875rem; min-height: 76px; } }

/* ---------- 14. Testimonials ---------- */
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-8); }
.quote__text {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem); line-height: 1.45; color: var(--text-primary);
  font-weight: 500; letter-spacing: -.012em; max-width: 42ch;
}
.quote__author {
  display: flex; align-items: center; gap: var(--space-3);
  padding-top: var(--space-5); border-top: 1px solid var(--border-subtle); line-height: 1.35;
}
.quote__avatar {
  width: 36px; height: 36px; border-radius: var(--radius-sm); flex: none;
  display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600; font-size: .6875rem;
  background: var(--surface-2); color: var(--text-secondary); border: 1px solid var(--border-default);
}
.quote__name { color: var(--text-primary); font-weight: 600; font-size: var(--fs-small); }
.quote__role { color: var(--text-muted); font-size: var(--fs-micro); }
.quote__role .flag { margin-left: 4px; }
.quote > .quote__author:first-child { padding-top: 0; border-top: 0; }
.quote:has(> .quote__author:first-child) { justify-content: flex-start; gap: var(--space-6); }

/* ---------- 15. Tabs ---------- */
.tabs__list {
  display: inline-flex; gap: 2px; margin-bottom: var(--space-10); padding: 4px; max-width: 100%;
  background: var(--surface-1); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  overflow-x: auto; scrollbar-width: none;
}
.tabs__list::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: 0 var(--space-4); border-radius: var(--radius-sm); min-height: 38px;
  font-size: var(--fs-small); font-weight: 600; color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease-ref), background-color var(--dur-fast) var(--ease-ref);
}
.tab:hover { color: var(--text-primary); }
.tab[aria-selected="true"] { background: var(--surface-3); color: var(--text-primary); }
.tabs__panel[hidden] { display: none; }
.tabs__panel > .grid-split { align-items: start; }
.tabs__panel h3 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem); letter-spacing: -.03em; }
.tabs__panel .grid-split > div:first-child p { font-size: var(--fs-lead); line-height: 1.55; margin-top: var(--space-5) !important; }

/* ---------- 16. Accordion / FAQ ---------- */
.accordion { display: grid; border-top: 1px solid var(--border-default); }
.accordion__item { border-bottom: 1px solid var(--border-default); }
.accordion__summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-6);
  padding: var(--space-6) 0; cursor: pointer; list-style: none;
  font-family: var(--font-display);
  color: var(--text-primary); font-weight: 600; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  letter-spacing: -.012em; line-height: 1.35; min-height: 56px;
  transition: color var(--dur-fast) var(--ease-ref);
}
.accordion__summary:hover { color: var(--accent-hover); }
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__icon {
  flex: none; width: 28px; height: 28px; padding: 7px; color: var(--text-secondary);
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  transition: transform var(--dur-base) var(--ease-ref);
}
.accordion__item[open] .accordion__icon { transform: rotate(45deg); }
.accordion__body { padding: 0 var(--space-12) var(--space-8) 0; }
.accordion__body p { color: var(--text-secondary); }
.accordion__body p + p { margin-top: var(--space-3); }
@media (max-width: 560px) { .accordion__body { padding-right: 0; } }

/* Question sections: the heading holds the left column, answers run on the right. */
@media (min-width: 1024px) {
  .container--narrow:has(> .accordion) {
    max-width: var(--container-2xl);
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(48px, 6vw, 112px); align-items: start;
  }
  .container--narrow:has(> .accordion) > .section-head { position: sticky; top: calc(var(--nav-h) + var(--space-8)); margin-bottom: 0; }
  .container--narrow:has(> .accordion) > .section-head > h2 { max-width: 14ch; }
  .container--narrow:has(> .accordion) > .accordion { grid-column: 2; }
}

/* ---------- 17. Steps / timeline / key-value rows ---------- */
.timeline { display: grid; border-top: 1px solid var(--border-subtle); }
.timeline__item {
  display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--space-8); align-items: start;
  padding-block: var(--space-8); border-bottom: 1px solid var(--border-subtle);
}
.timeline__item h3 { font-size: var(--fs-h4); }
.timeline__item p { margin-top: var(--space-2); }
.timeline__when {
  font-family: var(--font-mono); font-size: var(--fs-small); color: var(--accent-hover);
  letter-spacing: .02em; padding-top: 3px;
}
@media (max-width: 700px) { .timeline__item { grid-template-columns: 1fr; gap: var(--space-3); } }

.steps { counter-reset: step; display: grid; border-top: 1px solid var(--border-subtle); }
.step {
  position: relative; display: block;
  padding: var(--space-8) 0 var(--space-8) clamp(64px, 12vw, 180px);
  border-bottom: 1px solid var(--border-subtle);
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: var(--space-8);
  font-family: var(--font-mono); font-size: var(--fs-small); font-weight: 500;
  color: var(--accent-hover); line-height: 1.9;
}
.step h3, .step h4 { font-size: var(--fs-h4); }
.step p { margin-top: var(--space-2); }
.step > *:first-child { margin-top: 0 !important; }

.kv { display: grid; border-top: 1px solid var(--border-subtle); }
.kv__row {
  display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); gap: var(--space-8);
  padding-block: var(--space-5); border-bottom: 1px solid var(--border-subtle);
}
.kv__key { color: var(--text-primary); font-weight: 600; font-size: var(--fs-small); }
.kv__row > :last-child { font-size: .9688rem; }
@media (max-width: 640px) { .kv__row { grid-template-columns: 1fr; gap: var(--space-1); } }

/* ---------- 18. Tables ---------- */
.table-wrap {
  overflow-x: auto; border-radius: var(--radius-lg); background: var(--surface-1);
  border: 1px solid var(--border-subtle); -webkit-overflow-scrolling: touch;
}
table.data { width: 100%; border-collapse: collapse; font-size: var(--fs-small); min-width: 680px; }
table.data th, table.data td { padding: var(--space-4) var(--space-5); text-align: left; vertical-align: top; line-height: 1.5; }
table.data thead th {
  color: var(--text-muted); font-weight: 600; font-size: var(--fs-micro); letter-spacing: .06em; text-transform: uppercase;
  background: var(--surface-1); border-bottom: 1px solid var(--border-default); white-space: nowrap;
}
table.data tbody tr + tr td { border-top: 1px solid var(--border-subtle); }
table.data tbody tr:hover td { background: var(--surface-2); }
table.data td:first-child { color: var(--text-primary); font-weight: 600; }

/* ---------- 19. Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: clamp(28px, 2.8vw, 40px); }
.plan h3 { font-size: var(--fs-h4); margin-bottom: 0; }
.plan--featured { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: var(--surface-2); }
.plan--featured > p:first-child { position: absolute; top: clamp(26px, 2.6vw, 38px); right: clamp(28px, 2.8vw, 40px); margin: 0; }
.plan__price {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 1.8vw, 3.5rem); font-weight: 700; color: var(--text-primary);
  line-height: 1; letter-spacing: -.045em; margin-block: var(--space-6) var(--space-2);
  font-variant-numeric: tabular-nums;
}
.plan__unit { font-size: var(--fs-small); color: var(--text-muted); }
.plan > p.mt-4 { padding-top: var(--space-5); margin-top: var(--space-6); border-top: 1px solid var(--border-subtle); }
.plan__features { list-style: none; padding: 0; margin: var(--space-6) 0 var(--space-8); display: grid; gap: var(--space-3); flex: 1; align-content: start; }
.plan__features li { position: relative; padding-left: 26px; font-size: var(--fs-small); color: var(--text-secondary); line-height: 1.5; }
.plan__features li::before {
  content: ""; position: absolute; left: 2px; top: .38em; width: 10px; height: 5px;
  border-left: 1.75px solid var(--accent-hover); border-bottom: 1.75px solid var(--accent-hover);
  transform: rotate(-45deg);
}
@media (max-width: 960px) { .pricing-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ---------- 20. Code / terminal ---------- */
.terminal {
  background: #05070c; border: 1px solid var(--border-default); border-radius: var(--radius-lg);
  overflow: hidden; min-width: 0;
}
.terminal__bar {
  display: flex; align-items: center; gap: var(--space-2);
  padding: 10px var(--space-4); background: var(--surface-1); border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--text-muted);
}
.terminal__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--border-default); }
.terminal__copy { margin-left: auto; min-height: 28px; font-size: var(--fs-micro); padding-inline: var(--space-3); border: 1px solid var(--border-default); border-radius: var(--radius-sm); }
.terminal__body { padding: var(--space-5) var(--space-6); overflow-x: auto; }
.terminal pre { font-size: .8125rem; line-height: 1.75; color: var(--text-secondary); }
.tok-key { color: #8db6ff; }
.tok-str { color: var(--accent-2); }
.tok-num { color: var(--accent-3); }
.tok-com { color: #7a8298; }
.tok-fn  { color: #c4b5fd; }

/* ---------- 21. Former horizontal scene: a composed grid of panels ---------- */
.hscene__viewport { width: 100%; }
.hscene__track {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-4);
  max-width: var(--container-2xl); margin-inline: auto; padding-inline: var(--gutter);
}
.hscene__panel { grid-column: span 3; width: auto; }
@media (min-width: 1101px) {
  .hscene__track > :nth-last-child(3):nth-child(4n+1),
  .hscene__track > :nth-last-child(2):nth-child(4n+2),
  .hscene__track > :last-child:nth-child(4n+3) { grid-column: span 4; }
  .hscene__track > :nth-last-child(2):nth-child(4n+1),
  .hscene__track > :last-child:nth-child(4n+2) { grid-column: span 6; }
  .hscene__track > :last-child:nth-child(4n+1) { grid-column: 1 / -1; }
}
.hscene__panel .badge { font-family: var(--font-mono); font-weight: 500; }
.hscene__panel h3 { margin-top: var(--space-5) !important; }
@media (max-width: 1100px) {
  .hscene__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hscene__track > *, .hscene__track > *:nth-child(n) { grid-column: auto; }
  .hscene__track > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .hscene__track { grid-template-columns: 1fr; }
}

/* ---------- 22. Forms ---------- */
.field { display: grid; gap: var(--space-2); }
.field label { font-size: var(--fs-small); font-weight: 600; color: var(--text-primary); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: var(--space-3) var(--space-4);
  background: var(--bg-base); color: var(--text-primary);
  border: 1px solid var(--border-default); border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease-ref), background-color var(--dur-fast) var(--ease-ref);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' stroke='%239aa2b7' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field textarea { min-height: 132px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #737b92; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--border-strong); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid color-mix(in srgb, var(--ring) 60%, transparent); outline-offset: 1px; }
.field__hint { font-size: var(--fs-micro); color: var(--text-muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.form-grid .field--full { grid-column: 1 / -1; }
[data-form-status][role="status"] { color: var(--success); }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- 23. CTA finale ---------- */
.finale { position: relative; text-align: center; }
.finale > .container { position: relative; z-index: 1; padding-top: clamp(24px, 4vw, 64px); }
.finale .display { max-width: 18ch; margin-inline: auto; }
.finale .lead { margin-inline: auto; }
.finale .small.muted { max-width: 62ch; margin-inline: auto; }

/* ---------- 24. Footer ---------- */
.site-footer { background: var(--bg-base); padding-block: var(--space-4) var(--space-10); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: var(--space-10); }
.footer__col h4 {
  font-family: var(--font-sans);
  font-size: var(--fs-small); color: var(--text-primary); font-weight: 600; letter-spacing: 0; margin-bottom: var(--space-4);
}
.footer__col ul { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.footer__col a { color: var(--text-muted); text-decoration: none; font-size: var(--fs-small); }
.footer__col a:hover { color: var(--text-primary); }
.footer__col .brand { color: var(--text-primary); font-size: 1.1875rem; }
.footer__note { max-width: 40ch; font-size: var(--fs-small); color: var(--text-muted); margin-top: var(--space-5) !important; }
.footer__bottom {
  margin-top: var(--space-16); padding-top: var(--space-6);
  display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; align-items: center;
  font-size: var(--fs-small); color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);   /* footer meta rule — not a section divider */
}
.footer__links { display: flex; gap: var(--space-5); align-items: center; flex-wrap: wrap; }
.footer__bottom a { color: var(--text-muted); text-decoration: none; }
.footer__bottom a:hover { color: var(--text-primary); }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { gap: var(--space-8) var(--space-6); } }

.motion-toggle {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--fs-small); color: var(--text-muted); min-height: 36px;
  padding-inline: var(--space-3); border-radius: var(--radius-sm); border: 1px solid var(--border-subtle);
}
.motion-toggle:hover { color: var(--text-primary); border-color: var(--border-default); }
.motion-toggle__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); }
[data-motion="off"] .motion-toggle__dot { background: var(--text-faint); }

/* ---------- 25. Misc content blocks ---------- */
.callout {
  padding: clamp(24px, 2.6vw, 36px); border-radius: var(--radius-lg);
  background: var(--surface-1); border: 1px solid var(--border-subtle);
}
.callout h3 { font-size: var(--fs-h4); }
.callout > * + * { margin-top: var(--space-3); }

.prose h2 { margin-top: var(--space-12); }
.prose h3 { margin-top: var(--space-8); }
.prose p, .prose ul, .prose ol { margin-top: var(--space-4); }
.prose li { margin-top: var(--space-2); }

/* Split sections: the text column breathes, the card column is a quiet panel. */
.grid-split > div > h2 { max-width: 24ch; }
.grid-split > div > .lead { max-width: 54ch; }
.grid-split > .card { padding: clamp(28px, 3vw, 44px); }
.grid-split > .card > h3 { font-size: var(--fs-h4); }
.grid-split:has(> form) { align-items: start; }
@media (min-width: 861px) {
  .grid-split:has(> form) > div:first-child { position: sticky; top: calc(var(--nav-h) + var(--space-10)); }
}

/* ---------- 26. Reduced motion (CRITICAL) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .kinetic .line > span { transform: none !important; }
  .assembly__part { opacity: 1 !important; transform: none !important; }
}

/* Manual "reduce motion" toggle — mirrors the media query */
[data-motion="off"] [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
[data-motion="off"] .kinetic .line > span { transform: none !important; }
[data-motion="off"] .assembly__part { opacity: 1 !important; transform: none !important; }
[data-motion="off"] .console__live::before { animation: none; }
[data-motion="off"] { scroll-behavior: auto; }

/* ---------- 27. Print ---------- */
@media print {
  .site-header, .mobile-nav { display: none !important; }
  body { background: #fff; color: #000; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- 28. Not found ---------- */
.hero--404 { padding-bottom: var(--section-y); }
.notfound { max-width: 760px; }
.notfound__code {
  font-family: var(--font-mono); font-size: var(--fs-small); color: var(--accent-3);
  margin-bottom: var(--space-6); letter-spacing: .02em;
}
.notfound__links { margin-top: clamp(64px, 8vw, 112px); }
.notfound__links .card h3 { margin-bottom: var(--space-2); }
