/* ==========================================================================
   Nueform — the running instance · V2 (visual overhaul per SITE-SPEC-V2)
   Load order: pack style-tokens (bladestack, default) → components.css → THIS FILE.
   This file owns: tokens, material (grain/glows/guides), macro-layout with
   varied section skeletons, adapters that stage the ported components, and
   scene choreography hooks (JS-gated; no-JS renders everything static).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0a0a;
  --bg-2: #0e0e10;
  --panel: #131315;
  --panel-2: #18181b;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f4f1;
  --dim: rgba(245, 244, 241, 0.62);
  --faint: rgba(245, 244, 241, 0.38);

  --paper: #f4f4f2;
  --paper-2: #ebebe8;
  --ink: #131312;
  --ink-dim: rgba(19, 19, 18, 0.64);
  --ink-faint: rgba(19, 19, 18, 0.42);
  --line-ink: rgba(19, 19, 18, 0.12);

  --accent: #ff3d00;
  --accent-up: #ff5820;
  --accent-ink: #d23000;
  --accent-soft: rgba(255, 61, 0, 0.13);
  --ok: #35c26e;
  --warn: #e2b93b;

  --font-display: "Inter Tight", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --font-serif: "Instrument Serif", Georgia, serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --speed: 300ms;
  --wrap: 1240px;
  --narrow: 780px;
  --rad: 12px;
  --rad-lg: 18px;

  --shadow-1: 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 18px 50px -12px rgba(0, 0, 0, 0.55);
  --shadow-3: 0 40px 110px -24px rgba(0, 0, 0, 0.72);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; margin: 0; }
p { margin: 0; }
button { font: inherit; }
::selection { background: var(--accent); color: #0a0a0a; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--accent); color: #0a0a0a; padding: 10px 16px;
  font-family: var(--font-mono); font-size: 13px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: var(--narrow); margin: 0 auto; }

/* Grid blowout guard (see V1 mobile bug) */
.hero-grid > *, .how-grid > *, .op-grid > *, .book-grid > *,
.fit-grid > *, .feed > *, .entry-inner > *, .hero-stage > *, .hero-window > *,
.onbrand-grid > *, .samples > *, .layer-grid > *, .ships-grid > *,
.alt-grid > *, .steps > *, .sub-apps > *, .hero-split > * { min-width: 0; }

/* ---------- Material ---------- */
/* film grain over dark shell — tiled texture on the body itself (a fixed
   blend-mode overlay breaks compositing in some capture pipelines) */
body {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%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)' opacity='0.045'/%3E%3C/svg%3E");
}
/* faint blueprint column guides on dark sections */
.sec:not(.sec--paper)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
.glow {
  position: absolute; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 61, 0, 0.16), transparent 70%);
  filter: blur(2px);
}

/* ---------- Type ---------- */
.h1 {
  font-size: clamp(2.9rem, 8vw, 6.2rem);
  font-weight: 700;
  letter-spacing: -0.042em;
  line-height: 0.98;
}
.h1 .serif, .type-wall .serif {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  color: var(--accent); letter-spacing: -0.01em;
}
.h2 { font-size: clamp(1.9rem, 4.4vw, 3.3rem); font-weight: 700; letter-spacing: -0.032em; }
.h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 600; letter-spacing: -0.02em; }
.lead { font-size: 1.125rem; color: var(--dim); max-width: 68ch; text-wrap: balance; }
.sec--paper .lead { color: var(--ink-dim); }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim);
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); flex: none; }
.sec--paper .eyebrow { color: var(--ink-dim); }
.mono { font-family: var(--font-mono); }

/* split-line reveal hooks — lines are wrapped by markup; JS animates.
   Without JS (or with reduced motion) nothing is ever hidden. */
.split .l { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 10px; border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 15.5px;
  letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  transition: transform var(--speed) var(--ease), background var(--speed) var(--ease),
    border-color var(--speed) var(--ease), color var(--speed) var(--ease);
}
.btn-primary { background: var(--accent); color: #0c0400; }
.btn-primary:hover { background: var(--accent-up); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.sec--paper .btn-ghost { border-color: var(--line-ink); color: var(--ink); }
.sec--paper .btn-ghost:hover { border-color: var(--ink); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, label:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(10, 10, 10, 0.82); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.nav-brand img { height: 22px; width: auto; }
.nav-brand span { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14.5px; font-weight: 600; color: var(--dim); text-decoration: none; transition: color var(--speed) var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { padding: 10px 18px; font-size: 14px; }

/* ---------- Sections ---------- */
.sec { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.sec--paper { background: var(--paper); color: var(--ink); z-index: 1; }
.sec--paper2 { background: var(--paper-2); }
.sec--tight { padding: clamp(48px, 7vw, 84px) 0; }
.sec-head { max-width: 860px; margin-bottom: clamp(28px, 4vw, 50px); display: grid; gap: 18px; position: relative; z-index: 2; }
.sec > .wrap { position: relative; z-index: 2; }

/* ==========================================================================
   ADAPTERS — staging the ported components on the V2 shell
   ========================================================================== */

/* Light-chrome windows on the dark stage: deepen shadow, add ember light */
.stage-dark .hero-window,
.stage-dark .studio-window {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08),
    var(--shadow-3),
    0 0 160px rgba(255, 61, 0, 0.07);
}

/* Template-pack render scaling: natural 1080-size card scaled by --rs */
.render-scale {
  --rs: 0.3;
  --rw: 1080;
  --rh: 1350;
  position: relative;
  width: calc(var(--rw) * var(--rs) * 1px);
  height: calc(var(--rh) * var(--rs) * 1px);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-2);
  flex: none;
}
.render-scale > [class^="tp-"], .render-scale > [class*=" tp-"] {
  position: absolute; top: 0; left: 0;
  transform: scale(var(--rs));
  transform-origin: top left;
}
.render-scale .cx-card, .render-scale .cx-slide { margin-bottom: 0 !important; }

/* Carousel fan — two slides, offset + rotated */
.render-fan { position: relative; }
.render-fan .render-scale:nth-child(2) {
  position: absolute; top: 4%; left: 12%;
  transform: rotate(3.5deg);
  z-index: -1; opacity: 0.85;
}

/* Dark restage of the ported light alt cards (problem section) */
.verdict .alt { background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad); box-shadow: var(--shadow-1); }
.verdict .alt-head .label { color: var(--text); }
.verdict .alt-icon { color: var(--accent); border-color: var(--line-strong); background: var(--panel-2); }
.verdict .alt-list li { color: var(--dim); }
.verdict .alt-list li::before { background: var(--faint); }

/* Logo ticker on paper (as originally designed) — just spacing */
.logo-ticker { margin: 26px 0 8px; }

/* Matrix restage (ported rm- table) on dark */
.responsibility-matrix { border: 1px solid var(--line); border-radius: var(--rad-lg); background: var(--panel); padding: 8px 22px 18px; box-shadow: var(--shadow-1); }
.rm-intro { color: var(--dim); max-width: 62ch; margin-bottom: 26px; }

/* ==========================================================================
   HOME — section skeletons
   ========================================================================== */

/* ---------- 1 · Hero (split copy + staged machine) ---------- */
.hero { padding: 158px 0 clamp(72px, 9vw, 120px); position: relative; overflow: clip; }
.hero-copy { display: grid; gap: 24px; max-width: 900px; position: relative; z-index: 2; }
.hero-sub { display: grid; gap: 10px; }
.hero-sub .strap { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 2.4vw, 1.5rem); letter-spacing: -0.022em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.status-row {
  display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--faint); text-transform: uppercase;
}
.status-row .live { color: var(--ok); display: inline-flex; align-items: center; gap: 8px; }
.status-row .live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(53, 194, 110, 0.5); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(53, 194, 110, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(53, 194, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 194, 110, 0); }
}
@media (prefers-reduced-motion: reduce) { .status-row .live::before { animation: none; } }

/* the machine: ported hero-stage gets perspective staging (JS scrubs to flat) */
.hero .hero-stage { perspective: 1400px; z-index: 1; }
.hero .hero-window { will-change: transform; }
/* floats sit above the window — positions come from the ported CSS; make sure
   they're layered and shadowed for the dark stage */
.hero .hero-float { z-index: 3; box-shadow: var(--shadow-2); }

/* ---------- 2 · Render marquee ---------- */
.mq { padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); overflow: clip; position: relative; }
.mq-label {
  position: absolute; top: 50%; left: 0; transform: translateY(-50%); z-index: 3;
  background: var(--bg-2); border-right: 1px solid var(--line);
  padding: 18px 22px 18px 28px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--accent); text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.mq-track { display: flex; gap: 34px; align-items: center; width: max-content; animation: mq-scroll 48s linear infinite; }
.mq:hover .mq-track { animation-play-state: paused; }
@keyframes mq-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } }
.mq-item { display: flex; align-items: center; gap: 16px; }
.mq-item .render-scale { --rs: 0.11; box-shadow: var(--shadow-1); border-radius: 6px; }
.mq-cap { font-family: var(--font-mono); font-size: 11px; color: var(--faint); letter-spacing: 0.08em; white-space: nowrap; text-transform: uppercase; }
.mq-cap b { color: var(--dim); font-weight: 500; display: block; }

/* ---------- 3 · Problem (verdict cards + type wall) ---------- */
.verdict .alt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.verdict .alt { padding: 26px; display: grid; gap: 16px; align-content: start; position: relative; }
.stamp {
  justify-self: start; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em;
  color: var(--accent); border: 1.5px solid var(--accent); border-radius: 6px;
  padding: 4px 10px; transform: rotate(-2deg); text-transform: uppercase;
}
.type-wall {
  margin-top: clamp(56px, 8vw, 100px);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 4.2vw, 3.1rem); letter-spacing: -0.03em; line-height: 1.12;
  max-width: 1000px;
}
.type-wall em { font-style: normal; color: var(--accent); }
.type-wall .eyebrow { margin-bottom: 22px; }

/* caption style — reused by the anatomy section */
.demo-note { font-family: var(--font-mono); font-size: 12px; color: var(--faint); line-height: 1.7; position: relative; z-index: 2; max-width: 88ch; }
.demo-note b { color: var(--dim); font-weight: 500; }

.render-scale { transition: filter 240ms var(--ease); }

/* ---------- 5 · Layers (ported layer-grid, dark) ---------- */
.layers .closing-block { margin-top: clamp(48px, 7vw, 84px); }

/* ---------- 6 · Ships (paper: showcase + sub-apps, ported) ---------- */
/* ported styles handle the internals; keep page rhythm */
.ships .showcase { margin-bottom: 22px; }

/* ---------- 7 · Fit (paper2) ---------- */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fit-col { border: 1px solid var(--line-ink); border-radius: var(--rad-lg); padding: clamp(24px, 3vw, 36px); background: #fff; display: grid; gap: 16px; align-content: start; }
.fit-col.no { background: transparent; }
.fit-col h3 { font-size: 1.2rem; display: flex; align-items: center; gap: 11px; }
.fit-col h3 .mark {
  flex: none; width: 21px; height: 21px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 45 40'%3E%3Cpath d='M2 20 C6 24 11 29 15 31 C19 26 27 14 43 2 C41 6 31 18 17 35 C15.5 36.2 14 35.6 13 34 C9 29 4 24 2 22 Z' fill='%23ff5820'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fit-col.no h3 .mark {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='5 5 30 30'%3E%3Cpath d='M7 7 Q17.2 22.8 33 33 Q22.8 17.2 7 7 Z' fill='%231a1a1a' fill-opacity='0.42'/%3E%3Cpath d='M33 7 Q22.8 22.8 7 33 Q17.2 17.2 33 7 Z' fill='%231a1a1a' fill-opacity='0.42'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fit-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.fit-col li { display: flex; align-items: flex-start; gap: 11px; font-size: 15.5px; color: var(--ink-dim); line-height: 1.5; }
.fit-col li::before {
  content: ""; flex: none; width: 21px; height: 21px; margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 45 40'%3E%3Cpath d='M2 20 C6 24 11 29 15 31 C19 26 27 14 43 2 C41 6 31 18 17 35 C15.5 36.2 14 35.6 13 34 C9 29 4 24 2 22 Z' fill='%23ff5820'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fit-col.no li::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='5 5 30 30'%3E%3Cpath d='M7 7 Q17.2 22.8 33 33 Q22.8 17.2 7 7 Z' fill='%231a1a1a' fill-opacity='0.42'/%3E%3Cpath d='M33 7 Q22.8 22.8 7 33 Q17.2 17.2 33 7 Z' fill='%231a1a1a' fill-opacity='0.42'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fit-close { margin-top: clamp(32px, 5vw, 52px); font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.35rem); letter-spacing: -0.02em; max-width: 720px; color: var(--ink); }

/* ---------- 8 · How we work ---------- */
.how-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.engage {
  border: 1px solid var(--line-strong); border-radius: var(--rad-lg);
  background: linear-gradient(170deg, var(--panel-2), var(--panel)); padding: clamp(24px, 3vw, 36px);
  display: grid; gap: 20px; position: sticky; top: 92px; box-shadow: var(--shadow-2);
}
.engage-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.engage h3 { font-size: 1.5rem; letter-spacing: -0.025em; }
.engage p { color: var(--dim); font-size: 15px; }
.engage ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.engage li { display: flex; gap: 11px; font-size: 15px; color: var(--dim); }
.engage li::before { content: "✓"; color: var(--ok); font-weight: 700; flex: none; }
.engage .btn { justify-self: start; }
.engage-note { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); line-height: 1.7; }

/* ---------- 9 · Operator (paper, editorial) ---------- */
.op-grid { display: grid; grid-template-columns: 0.82fr 1.05fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.op-photo { border-radius: var(--rad-lg); overflow: clip; position: relative; margin: 0; box-shadow: 0 30px 80px -20px rgba(19, 19, 18, 0.35); }
.op-photo img { width: 100%; height: auto; filter: grayscale(0.25) contrast(1.05); }
.op-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(19, 19, 18, 0.28)); mix-blend-mode: multiply; }
.op-photo figcaption {
  position: absolute; left: 14px; bottom: 14px; z-index: 2; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: #fff;
  background: rgba(10, 10, 10, 0.72); backdrop-filter: blur(8px);
  padding: 6px 11px; border-radius: 7px;
}
.op-copy { display: grid; gap: 22px; }
.op-copy blockquote { margin: 0; padding-left: 20px; border-left: 2px solid var(--accent-ink); color: var(--ink-dim); font-size: 16.5px; line-height: 1.65; }
.op-sig { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-faint); letter-spacing: 0.06em; line-height: 2; }

/* ---------- 10 · FAQ (paper2) ---------- */
.faq { display: grid; border-top: 1px solid var(--line-ink); }
.faq details { border-bottom: 1px solid var(--line-ink); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 4px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 1.8vw, 1.3rem); letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 20px; color: var(--accent-ink); transition: transform var(--speed) var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 4px 26px; color: var(--ink-dim); max-width: 68ch; font-size: 16px; }

/* ---------- 11 · Book ---------- */
.book-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.book-copy { display: grid; gap: 18px; }
.book-copy .h2 { max-width: 14ch; }
.cal-panel {
  border: 1px solid var(--line); border-radius: var(--rad-lg); background: var(--panel);
  min-height: 320px; display: grid; place-items: center; padding: 34px; text-align: center; gap: 8px;
  box-shadow: var(--shadow-1);
}
.cal-panel .mono { font-size: 12px; color: var(--faint); letter-spacing: 0.1em; text-transform: uppercase; }
.cal-panel a.mail { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 2.6vw, 1.7rem); letter-spacing: -0.02em; color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 6px; }

/* ---------- Footer (monumental) ---------- */
footer { border-top: 1px solid var(--line); background: var(--bg-2); overflow: clip; position: relative; }
.foot-inner { padding-top: 56px; }
.foot-close { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 4vw, 2.6rem); letter-spacing: -0.03em; margin-bottom: 36px; }
.foot-close em { font-style: normal; color: var(--accent); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; padding-bottom: 40px; }
.foot-brand { font-family: var(--font-mono); font-size: 12px; color: var(--faint); letter-spacing: 0.08em; }
.foot-links { display: flex; gap: 24px; font-size: 14px; }
.foot-links a { color: var(--dim); text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.foot-note { font-family: var(--font-mono); font-size: 11px; color: var(--faint); letter-spacing: 0.05em; line-height: 1.8; padding-bottom: 34px; }
.foot-mark {
  display: block; text-align: center;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(4.6rem, 17.5vw, 15.5rem);
  letter-spacing: -0.045em; line-height: 0.78;
  margin: 0 -20px -0.115em;
  background: linear-gradient(180deg, rgba(245, 244, 241, 0.16), rgba(245, 244, 241, 0.03));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none; pointer-events: none;
  will-change: transform;
}

/* ==========================================================================
   /content page
   ========================================================================== */
.page-hero-v2 { padding: 158px 0 72px; position: relative; overflow: clip; }
.page-hero-v2 .glow { top: -300px; right: -200px; width: 900px; height: 620px; }
.page-hero-v2 .h1 { font-size: clamp(2.5rem, 6.5vw, 4.8rem); margin: 18px 0 22px; }
.page-tag-v2 {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ok); border: 1px solid rgba(53, 194, 110, 0.4); border-radius: 6px; padding: 5px 12px;
}
.page-tag-v2::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.hero-split-v2 { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
/* the ported wi/wr/wq workflow cards ride in the page hero */
.hero-split-v2 .hero-cards { position: relative; }

/* guardrail toggle (restaged from V1, sample is a real pack render now) */
.guard { border: 1px solid var(--line); border-radius: var(--rad-lg); background: linear-gradient(175deg, var(--panel-2), var(--panel)); padding: clamp(22px, 3.4vw, 40px); display: grid; gap: 24px; box-shadow: var(--shadow-2); }
.guard-head { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.guard-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.guard input { position: absolute; opacity: 0; pointer-events: none; }
.guard-toggle {
  cursor: pointer; display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; color: var(--dim); text-transform: uppercase;
}
.guard-toggle .track {
  width: 52px; height: 28px; border-radius: 20px; border: 1px solid var(--line-strong);
  background: var(--panel-2); position: relative; transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease); flex: none;
}
.guard-toggle .track::after {
  content: ""; position: absolute; top: 3px; left: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--faint); transition: transform var(--speed) var(--ease), background var(--speed) var(--ease);
}
.guard:has(#guardrails:checked) .guard-toggle .track { background: rgba(53, 194, 110, 0.18); border-color: var(--ok); }
.guard:has(#guardrails:checked) .guard-toggle .track::after { transform: translateX(23px); background: var(--ok); }
.guard-state-on, .guard-state-off { display: none; }
.guard:has(#guardrails:checked) .guard-state-on { display: inline; color: var(--ok); }
.guard:has(#guardrails:not(:checked)) .guard-state-off { display: inline; color: var(--accent); }
.guard-body { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 40px); align-items: center; }
.guard-body > * { min-width: 0; }
.guard-sample-stage { display: grid; gap: 12px; justify-items: center; }
.guard-sample-stage .render-scale { --rs: 0.34; }
.g-on, .g-off { display: none; }
.guard:has(#guardrails:checked) .g-on { display: block; }
.guard:has(#guardrails:not(:checked)) .g-off { display: block; }
.verdict-chip { justify-self: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; border-radius: 6px; padding: 5px 11px; text-transform: uppercase; }
.verdict-chip.pass { color: var(--ok); border: 1px solid rgba(53, 194, 110, 0.4); }
.verdict-chip.fail { color: var(--accent); border: 1px solid var(--accent); }
.guard-rules { display: grid; gap: 14px; align-content: center; }
.guard-rules .rule { display: flex; gap: 12px; align-items: baseline; font-size: 14.5px; color: var(--dim); }
.guard-rules .rule b { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--accent); text-transform: uppercase; flex: none; }
.guard-close { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 2vw, 1.3rem); letter-spacing: -0.02em; }
.ban { text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; }

/* ==========================================================================
   /shipped page
   ========================================================================== */
.feed-note { font-family: var(--font-mono); font-size: 12px; color: var(--faint); line-height: 1.8; max-width: 70ch; }
.feed-telemetry { display: flex; flex-wrap: wrap; gap: 12px 34px; margin-top: 26px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.feed-telemetry b { color: var(--accent); font-weight: 600; }
.feed { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: clamp(36px, 5vw, 56px); }
.entry { border: 1px solid var(--line); border-radius: var(--rad-lg); background: var(--panel); padding: 26px; display: grid; gap: 16px; align-content: start; box-shadow: var(--shadow-1); }
.entry-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.entry-meta .b { color: var(--text); }
.entry-meta .sep { color: var(--line-strong); }
.entry .post { font-size: 16.5px; line-height: 1.65; }
.entry .post .hook { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: 18.5px; display: block; margin-bottom: 8px; }
.entry-status { justify-self: start; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 5px; padding: 2.5px 7px; border: 1px solid rgba(53, 194, 110, 0.4); color: var(--ok); }
.entry.wide { grid-column: span 2; }
.entry-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.entry-inner > div:first-child { display: grid; gap: 16px; align-content: start; }
.entry-inner .render-scale { --rs: 0.26; }
.entry-inner .render-fan { margin-right: 30px; }

/* ==========================================================================
   Components test page
   ========================================================================== */
.ct-section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.ct-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase; margin-bottom: 24px; display: block; }
.ct-row { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.ct-paper { background: var(--paper); color: var(--ink); border-radius: var(--rad-lg); padding: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .guard-body { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .verdict .alt-grid { grid-template-columns: 1fr; }
  .how-grid, .op-grid, .book-grid, .fit-grid, .hero-split-v2 { grid-template-columns: 1fr; }
  .engage { position: static; }
  .feed { grid-template-columns: 1fr; }
  .entry.wide { grid-column: auto; }
  .entry-inner { grid-template-columns: 1fr; }
  .entry-inner .render-scale { justify-self: start; }
  .foot-mark { font-size: clamp(3.4rem, 16vw, 8rem); }
}
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding-top: 128px; }
  .wrap { padding: 0 20px; }
  .guard-sample-stage .render-scale { --rs: 0.27; }
  .mq-item .render-scale { --rs: 0.09; }
}

/* screen-reader-only utility (used by the responsibility matrix) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
