/* ============================================================================
   main.css — Clarity. One document, two readers.
   Default cascade = HUMAN view. [data-view="agent"] retunes the whole page.
   All raw values live in tokens.css.
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background var(--dur-3) var(--ease), color var(--dur-3) var(--ease);
}

/* faint paper grain / structural field — the editorial canvas */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, var(--halo), transparent 60%);
  opacity: .8;
  transition: opacity var(--dur-3) var(--ease);
}

/* the seam — the faint vertical line where the human world meets the agent's.
   quiet in human view; it is the read-head in agent view. */
.nav::after { content: none; }

img, svg, canvas { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::selection { background: color-mix(in srgb, var(--blue) 28%, transparent); color: var(--text); }

/* ── type ─────────────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 360;
  line-height: var(--lh-snug);
  letter-spacing: var(--track-tight);
  font-variation-settings: "opsz" 144, "SOFT" var(--fr-soft), "WONK" var(--fr-wonk);
  color: var(--text);
  text-wrap: balance;
}
h1 em, h2 em { font-style: italic; font-weight: 360; }

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0;
}

/* ── utilities ────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 1; }
.nowrap { white-space: nowrap; }
.muted { color: var(--text-faint); }
.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;
}
.skip-link {
  position: fixed; top: -100px; left: var(--gutter); z-index: 100;
  background: var(--text); color: var(--bg); padding: .6rem 1rem;
  border-radius: var(--r-sm); font-size: var(--fs-sm);
  transition: top var(--dur-2) var(--ease);
}
.skip-link:focus { top: .75rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--text-faint);
  display: inline-flex; align-items: center; gap: .65rem;
  margin-bottom: var(--s-4);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--spectrum); flex: none;
}

/* ── reveal on scroll (only hidden when JS can reveal them) ────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(34px) scale(.985);
  filter: blur(7px);
  transition:
    opacity 0.85s var(--ease-out),
    transform 1.05s var(--ease-out),
    filter 0.85s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
  will-change: transform, opacity, filter;
}
.reveal.is-in { opacity: 1; transform: none; filter: none; }
/* directional + character variants */
.js .reveal[data-rv="left"]  { transform: translateX(-30px); filter: blur(5px); }
.js .reveal[data-rv="right"] { transform: translateX(30px);  filter: blur(5px); }
.js .reveal[data-rv="scale"] { transform: scale(.94);        filter: blur(8px); }
.reveal[data-rv].is-in { transform: none; }
/* let staggered groups cascade their direct reveal children */
[data-stagger] > .reveal:nth-child(1) { --d: 0; }
[data-stagger] > .reveal:nth-child(2) { --d: 1; }
[data-stagger] > .reveal:nth-child(3) { --d: 2; }
[data-stagger] > .reveal:nth-child(4) { --d: 3; }
[data-stagger] > .reveal:nth-child(5) { --d: 4; }
[data-stagger] > .reveal:nth-child(6) { --d: 5; }

/* ════════════════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════════════ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center; gap: var(--s-5);
  padding-inline: var(--gutter);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--rule-soft);
  transition: background var(--dur-3) var(--ease), border-color var(--dur-3) var(--ease);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); }
.brand-mark { display: grid; place-items: center; filter: drop-shadow(0 1px 4px rgba(0,0,0,.18)); }
.brand-mark img { width: 26px; height: 26px; }
.brand-word { font-family: var(--font-display); font-size: 1.32rem; font-weight: 420; letter-spacing: -.01em; font-variation-settings: "opsz" 40, "SOFT" 40; }

.nav-links { display: flex; align-items: center; gap: var(--s-5); margin-left: auto; }
.nav-links a {
  color: var(--text-soft); font-size: var(--fs-sm); position: relative;
  transition: color var(--dur-1) var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1.5px;
  background: var(--spectrum); transition: right var(--dur-2) var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { right: 0; }

/* the view switch — the signature control */
.view-switch {
  display: inline-flex; align-items: center; gap: .15rem;
  padding: 4px; border: 1px solid var(--rule); border-radius: var(--r-pill);
  background: var(--surface); position: relative;
}
.view-switch-eye {
  width: 16px; height: 16px; margin: 0 .35rem 0 .45rem; border-radius: 50%;
  background: var(--spectrum-135);
  -webkit-mask: radial-gradient(circle at 62% 50%, transparent 30%, #000 31%);
          mask: radial-gradient(circle at 62% 50%, transparent 30%, #000 31%);
  box-shadow: 0 0 0 1px var(--rule) inset;
}
.vs-btn {
  font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: .06em;
  text-transform: lowercase; color: var(--text-faint);
  background: none; border: 0; cursor: pointer;
  padding: .42rem .72rem; border-radius: var(--r-pill);
  transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.vs-btn.is-on { color: var(--text-onspectrum); background: var(--text); }
:root[data-view="agent"] .vs-btn.is-on { background: var(--spectrum); color: #06121e; }
.vs-btn:not(.is-on):hover { color: var(--text); }

/* one-time nudge so first-time visitors find the core interaction */
.view-switch.is-nudge { animation: vs-nudge 2.2s var(--ease-inout) 3; }
.view-switch.is-nudge .vs-btn:not(.is-on) { color: var(--accent); }
@keyframes vs-nudge {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  50%      { box-shadow: 0 0 0 4px var(--halo); }
}

/* reading progress riding under the nav */
.spine {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: var(--p, 0%);
  background: var(--spectrum); transition: width 120ms linear;
  box-shadow: 0 0 12px var(--halo);
}

.nav-burger { display: none; }

/* ════════════════════════════════════════════════════════════════════
   VIEW TRANSITION VEIL — the aperture blink
   ═══════════════════════════════════════════════════════════════════ */
.veil {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: var(--bg); opacity: 0;
  clip-path: circle(0% at var(--vx, 86%) var(--vy, 12%));
}
.veil.is-wiping { opacity: 1; animation: veil-iris var(--dur-3) var(--ease-inout); }
@keyframes veil-iris {
  0%   { clip-path: circle(0% at var(--vx,86%) var(--vy,12%)); opacity: 1; }
  55%  { clip-path: circle(150% at var(--vx,86%) var(--vy,12%)); opacity: 1; }
  100% { clip-path: circle(150% at var(--vx,86%) var(--vy,12%)); opacity: 0; }
}
.veil-iris {
  position: absolute; left: var(--vx,86%); top: var(--vy,12%); width: 3px; height: 3px;
  transform: translate(-50%,-50%); border-radius: 50%;
  box-shadow: 0 0 0 2px var(--blue), 0 0 40px 12px var(--halo);
}

/* ════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--nav-h) + var(--s-6)); padding-bottom: var(--s-7);
  position: relative; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.06fr 0.94fr; align-items: center; gap: var(--s-6);
}
.hero-copy { max-width: 36rem; }
.eyebrow.ax { margin-bottom: var(--s-5); }

.hero-h1 {
  font-size: var(--fs-display);
  font-weight: 330;
  line-height: var(--lh-tight);
  letter-spacing: -.025em;
  margin-block: var(--s-2) var(--s-5);
}
.hero-h1 .line { display: block; }
.hero-h1 em {
  font-style: italic; position: relative; color: var(--text);
}
.hero-h1 em::after {
  content: ""; position: absolute; left: .02em; right: .14em; bottom: .04em; height: .055em;
  background: var(--spectrum); border-radius: 2px; opacity: .9;
  transform: scaleX(1); transform-origin: left; transition: transform var(--dur-4) var(--ease-out) .3s;
}
.js .hero-h1 em::after { transform: scaleX(0); }
.is-loaded .hero-h1 em::after { transform: scaleX(1); }
.hero-h1 .line:last-child em::after { transition-delay: .5s; }

.hero-lead {
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.15rem);
  color: var(--text-soft); max-width: 32rem;
  line-height: 1.6; margin-bottom: var(--s-6);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 500;
  padding: .8rem 1.25rem; border-radius: var(--r-pill); cursor: pointer;
  border: 1px solid transparent; line-height: 1; white-space: nowrap;
  transition: transform var(--dur-1) var(--ease), background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--rule-strong); }
.btn-ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.flip-cue .flip-arrow { transition: transform var(--dur-2) var(--ease-spring); }
.flip-cue:hover .flip-arrow { transform: translateX(4px); }

.hero-hint {
  margin-top: var(--s-6); font-size: var(--fs-sm); color: var(--text-faint);
  display: inline-flex; align-items: center; gap: .6rem;
}
.hint-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 0 0 var(--halo); animation: pulse 2.6s var(--ease-inout) infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--blue) 55%, transparent); }
  50%     { box-shadow: 0 0 0 7px transparent; }
}

/* ── THE LENS ─────────────────────────────────────────────────────── */
.hero-lens-wrap { display: grid; place-items: center; gap: var(--s-5); }
.lens {
  --lens-size: clamp(15rem, 38vw, 27rem);
  position: relative; width: var(--lens-size); height: var(--lens-size);
  border: 0; background: none; cursor: pointer; padding: 0;
  transform: translate3d(var(--px,0), var(--py,0), 0);
  transition: transform 600ms var(--ease-out);
  animation: lens-breathe 9s var(--ease-inout) infinite;
}
@keyframes lens-breathe { 0%,100% { scale: 1; } 50% { scale: 1.018; } }

.lens-body, .lens-caustic, .lens-readout {
  position: absolute; inset: 0; pointer-events: none;
}
/* the masked glass */
.lens-body {
  -webkit-mask: url(../assets/logo/mark-mask.svg) center / contain no-repeat;
          mask: url(../assets/logo/mark-mask.svg) center / contain no-repeat;
  isolation: isolate; overflow: hidden;
  filter: drop-shadow(0 22px 50px rgba(20,18,14,.28));
}
.lens-img { display: none; }
.lens-body::before {  /* iris — rotating iridescence */
  content: ""; position: absolute; inset: -25%;
  background:
    conic-gradient(from 200deg at 42% 38%,
      var(--cyan) 0deg, var(--blue) 95deg, var(--pink) 175deg,
      var(--blue) 250deg, var(--cyan) 340deg, var(--cyan) 360deg);
  filter: saturate(1.05);
  animation: iris-spin 44s linear infinite;
}
.lens-body::after {  /* body sheen + inner depth */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 34% 26%, rgba(255,255,255,.92), rgba(255,255,255,0) 60%),
    radial-gradient(80% 80% at 70% 84%, rgba(8,10,30,.34), transparent 60%);
  mix-blend-mode: screen;
  box-shadow: inset 0 0 40px rgba(255,255,255,.25), inset 0 -10px 50px rgba(10,12,40,.3);
}
@keyframes iris-spin { to { transform: rotate(360deg); } }

/* cursor-tracked specular hot-spot, clipped to the glass */
.lens-spec {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(../assets/logo/mark-mask.svg) center / contain no-repeat;
          mask: url(../assets/logo/mark-mask.svg) center / contain no-repeat;
  background: radial-gradient(22% 22% at var(--mx,32%) var(--my,24%), rgba(255,255,255,.95), rgba(255,255,255,0) 70%);
  mix-blend-mode: screen; opacity: .9;
}
/* the rim glow */
.lens-rim {
  position: absolute; inset: -2%; pointer-events: none;
  -webkit-mask: url(../assets/logo/mark-mask.svg) center / contain no-repeat;
          mask: url(../assets/logo/mark-mask.svg) center / contain no-repeat;
  background: radial-gradient(closest-side, transparent 86%, color-mix(in srgb, var(--cyan) 65%, var(--pink)) 96%, transparent 100%);
  opacity: .7;
}
/* caustics — light pooling beneath the glass */
.lens-caustic {
  inset: 12% -8% -14% -8%; z-index: -1;
  background:
    radial-gradient(38% 30% at 30% 84%, color-mix(in srgb, var(--cyan) 60%, transparent), transparent 70%),
    radial-gradient(40% 32% at 72% 88%, color-mix(in srgb, var(--pink) 55%, transparent), transparent 70%);
  filter: blur(34px); opacity: .6;
  animation: caustic 11s var(--ease-inout) infinite alternate;
}
@keyframes caustic { from { opacity: .42; transform: translateY(0); } to { opacity: .72; transform: translateY(8px); } }

/* agent-view scanning sweep inside the aperture */
.lens-readout { display: grid; place-items: center; }
.lens-readout-h, .lens-readout-a {
  position: absolute; font-family: var(--font-mono); font-size: var(--fs-micro);
  letter-spacing: .2em; text-transform: uppercase; color: var(--text);
  background: color-mix(in srgb, var(--bg) 70%, transparent); padding: .25rem .5rem; border-radius: var(--r-pill);
  opacity: 0; transition: opacity var(--dur-2) var(--ease);
}
.lens-readout-h { opacity: 0; }   /* labels stay subtle; readout lives in caption */

.lens-cap { color: var(--text-faint); letter-spacing: .04em; }

/* scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: var(--s-5); transform: translateX(-50%);
  display: grid; justify-items: center; gap: .5rem; color: var(--text-faint);
}
.scroll-cue .mono { font-size: var(--fs-micro); letter-spacing: .25em; text-transform: uppercase; }
.scroll-rail { width: 1px; height: 46px; background: var(--rule); position: relative; overflow: hidden; }
.scroll-bead { position: absolute; left: -1.5px; top: 0; width: 4px; height: 10px; border-radius: 2px; background: var(--spectrum); animation: bead 2.4s var(--ease-inout) infinite; }
@keyframes bead { 0% { top: -12px; } 60%,100% { top: 46px; } }

/* ════════════════════════════════════════════════════════════════════
   SECTION SHELL
   ═══════════════════════════════════════════════════════════════════ */
.section { padding-block: var(--s-9); position: relative; border-top: 1px solid var(--rule-soft); }
.section[data-chapter] .section-head { position: relative; }
.section[data-chapter] .section-head::before {
  content: attr(data-chapter); position: absolute; right: 0; top: -.4em;
  font-family: var(--font-display); font-size: clamp(3rem, 9vw, 7rem); font-weight: 300;
  color: var(--text); opacity: .05; letter-spacing: -.04em; pointer-events: none; line-height: 1;
  font-variation-settings: "opsz" 144;
}
.section-head { max-width: 46rem; margin-bottom: var(--s-7); }
.section-head h2 { font-size: var(--fs-h1); margin-bottom: var(--s-4); }
.section-sub { font-size: var(--fs-lead); color: var(--text-soft); line-height: 1.55; max-width: 40rem; }
.section-sub strong { color: var(--text); font-weight: 500; }

/* ════════════════════════════════════════════════════════════════════
   02 · THESIS — TWO READERS (duo)
   ═══════════════════════════════════════════════════════════════════ */
.duo {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 0;
  border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-1);
}
.duo-human, .duo-agent { padding: clamp(1.25rem, 3vw, 2.25rem); display: grid; align-content: center; gap: var(--s-4); }
.duo-agent { background: var(--bg-2); }
.duo-label { color: var(--text-faint); letter-spacing: .12em; text-transform: uppercase; font-size: var(--fs-micro); }

/* the human render: a mini reader */
.reader { background: var(--raised); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 1rem 1.1rem 1.3rem; box-shadow: var(--shadow-1); }
.reader-chrome { display: flex; align-items: center; gap: .55rem; padding-bottom: .85rem; margin-bottom: .9rem; border-bottom: 1px solid var(--rule-soft); }
.reader-lens { width: 15px; height: 15px; border-radius: 50%; background: var(--spectrum-135);
  -webkit-mask: radial-gradient(circle at 62% 50%, transparent 28%, #000 29%); mask: radial-gradient(circle at 62% 50%, transparent 28%, #000 29%); }
.reader-url { font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--text-faint); }
.reader-kicker { font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-ink); margin-bottom: .35rem; }
.reader-title { font-size: 1.28rem; margin-bottom: .9rem; font-weight: 400; }
.reader-lines { display: grid; gap: .5rem; margin-bottom: 1.2rem; }
.reader-lines span { height: 7px; border-radius: 4px; background: var(--sunk); display: block; }
.reader-btn {
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 500;
  background: var(--text); color: var(--bg); border: 0; border-radius: var(--r-pill);
  padding: .6rem 1rem; cursor: default; transition: box-shadow var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.duo.is-hot .reader-btn { box-shadow: 0 0 0 3px var(--halo), var(--shadow-2); transform: translateY(-1px); }

/* the seam between the two readings */
.duo-seam { width: 1px; background: var(--spectrum); position: relative; opacity: .6; }
.duo-knot {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: var(--s-4); height: var(--s-4); border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--blue); box-shadow: 0 0 16px var(--halo);
}
.duo-knot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--spectrum-135); }

/* the agent render: code */
.codeblock { background: var(--bg); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 1.1rem 1.2rem; overflow-x: auto; }
.codeblock pre { font-family: var(--font-mono); font-size: var(--fs-mono); line-height: 1.7; color: var(--text-soft); white-space: pre; }
.duo.is-hot .codeblock { border-color: color-mix(in srgb, var(--blue) 45%, var(--rule)); box-shadow: 0 0 0 3px var(--halo); }
.c-key { color: var(--syn-key); } .c-str { color: var(--syn-string); } .c-role { color: var(--syn-role); }
.c-fn { color: var(--pink-ink); } .c-arg { color: var(--text-faint); } .c-type { color: var(--syn-type); }
.c-ok { color: var(--cyan-ink); }

.duo-payoff { margin-top: var(--s-6); font-family: var(--font-display); font-size: var(--fs-h2); text-align: center; color: var(--text-soft); }
.duo-payoff em { color: var(--text); font-style: italic; }

/* ════════════════════════════════════════════════════════════════════
   03 · AX — DISCIPLINE + SCORECARD
   ═══════════════════════════════════════════════════════════════════ */
.ax-mark {
  font-family: var(--font-mono); font-weight: 700; font-size: .8em; letter-spacing: .02em;
  padding: .04em .34em .08em; border-radius: var(--r-xs);
  background: var(--spectrum); color: var(--text-onspectrum); vertical-align: .08em;
}
.xyz { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s-4); margin-bottom: var(--s-7); }
.xyz-cell {
  border: 1px solid var(--rule); border-radius: var(--r-md); padding: 1.25rem 1.4rem;
  background: var(--surface); display: grid; gap: .5rem; position: relative; overflow: hidden;
  transition: border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.xyz-tag { font-size: 1.6rem; font-weight: 700; color: var(--text-faint); }
.xyz-for { font-size: var(--fs-sm); color: var(--text-soft); }
.xyz-on { border-color: color-mix(in srgb, var(--blue) 50%, var(--rule)); }
.xyz-on .xyz-tag { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.xyz-on::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--spectrum); }

.scorecard { border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--surface); padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow-1); }
.scorecard-head { color: var(--text-faint); letter-spacing: .14em; text-transform: uppercase; font-size: var(--fs-micro); margin-bottom: var(--s-5); }
.score-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5) var(--s-7); }
.score { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: .2rem .9rem; position: relative; padding-bottom: 1rem; }
.score b { font-family: var(--font-display); font-size: 1.32rem; font-weight: 420; grid-row: 1; }
.score span { grid-column: 1 / -1; color: var(--text-soft); font-size: var(--fs-sm); }
.score-bar { grid-column: 1 / -1; height: 2px; background: var(--sunk); border-radius: 2px; position: relative; margin-top: .5rem; overflow: hidden; }
.score-bar::after {
  content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--fill));
  background: var(--spectrum); transition: transform var(--dur-4) var(--ease-out);
}
.js .score-bar::after { transform: scaleX(0); }
.score.is-in .score-bar::after { transform: scaleX(var(--fill)); }
.scorecard-foot { margin-top: var(--s-5); color: var(--text-faint); font-size: var(--fs-sm); }
.scorecard-foot a { color: var(--accent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }

/* ════════════════════════════════════════════════════════════════════
   04 · LOCAL & PRIVATE — BOUNDARY
   ═══════════════════════════════════════════════════════════════════ */
.private-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: center; }
.claims { list-style: none; padding: 0; margin-top: var(--s-6); display: grid; gap: .55rem; }
.claims li { display: flex; align-items: center; gap: .7rem; font-size: var(--fs-body); color: var(--text); }
.claims li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--spectrum-135); flex: none; }
.claims-ax { font-size: var(--fs-micro); letter-spacing: .1em; color: var(--cyan-ink); border: 1px solid color-mix(in srgb, var(--cyan-ink) 40%, transparent); padding: .05em .4em; border-radius: var(--r-xs); }

.boundary { display: grid; gap: var(--s-3); }
.boundary-cloud { color: var(--text-faint); letter-spacing: .08em; font-size: var(--fs-micro); text-align: center; }
.boundary-box {
  position: relative; aspect-ratio: 16 / 11; border-radius: var(--r-lg);
  border: 1.5px solid var(--rule-strong); background:
    repeating-linear-gradient(0deg, transparent 0 22px, color-mix(in srgb, var(--rule-soft) 50%, transparent) 22px 23px),
    var(--surface);
  overflow: hidden; box-shadow: var(--shadow-1);
}
.boundary-box::before { /* the wall flare line */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--cyan) 30%, transparent);
}
.boundary-name { position: absolute; top: .7rem; left: .9rem; color: var(--text-faint); font-size: var(--fs-micro); letter-spacing: .1em; z-index: 2; }
.boundary-policy { position: absolute; bottom: .7rem; left: .9rem; color: var(--text-faint); font-size: var(--fs-micro); z-index: 2; display: none; }
.boundary-policy em { color: var(--cyan-ink); font-style: normal; }
.boundary-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.boundary-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.boundary-fallback .mote circle { fill: var(--blue); }
.boundary-count { color: var(--text-faint); font-size: var(--fs-micro); text-align: center; letter-spacing: .04em; }
.boundary-count b { color: var(--cyan-ink); }

/* ════════════════════════════════════════════════════════════════════
   05 · WORK — PRODUCTS / TOOL SERVERS
   ═══════════════════════════════════════════════════════════════════ */
.work-flip-hint { color: var(--text-faint); }

/* a full-bleed horizontal scroller — one product per slide */
.prods-carousel { margin-top: var(--s-6); }
.prods-viewport {
  list-style: none; margin: 0;
  display: flex; gap: clamp(1rem, 3vw, 2rem);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scroll-padding-inline: max(var(--gutter), calc((100vw - 940px) / 2));
  padding-inline: max(var(--gutter), calc((100vw - 940px) / 2));
  padding-block: var(--s-2) var(--s-5);
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.prods-viewport::-webkit-scrollbar { display: none; }
.prods-viewport:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; border-radius: var(--r-lg); }

.prod { flex: 0 0 min(940px, 88vw); scroll-snap-align: center; scroll-snap-stop: always; }
.prod-card {
  height: 100%;
  display: grid; grid-template-columns: 1.16fr .84fr; align-items: stretch;
  /* border: 1px solid var(--rule); border-radius: var(--r-lg); */
  background: var(--surface); overflow: hidden; position: relative; box-shadow: var(--shadow-1);
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.prod-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--hue); }
.prod:hover .prod-card, .prod:focus-within .prod-card {
  border-color: color-mix(in srgb, var(--hue) 45%, var(--rule)); box-shadow: var(--shadow-2);
}
.prod-copy { padding: clamp(1.5rem, 3.5vw, 2.9rem); display: flex; flex-direction: column; gap: var(--s-4); }
.prod-eyebrow { display: flex; align-items: center; gap: var(--s-4); }
.prod-num { font-size: var(--fs-mono); color: var(--text-faint); letter-spacing: .12em; }
.prod-name { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); font-weight: 350; line-height: 1.02; letter-spacing: -.025em; }
.prod-line { color: var(--text-soft); font-size: var(--fs-lead); line-height: 1.55; max-width: 34rem; }
.status {
  font-size: var(--fs-micro); letter-spacing: .08em; text-transform: lowercase; color: var(--hue);
  border: 1px solid color-mix(in srgb, var(--hue) 38%, transparent); border-radius: var(--r-pill);
  padding: .2rem .6rem; white-space: nowrap;
}
.prod-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: auto; padding-top: var(--s-2); }
.btn-dl { gap: .55rem; }
.btn-dl svg { width: 16px; height: 16px; }

/* the per-product visual */
.prod-visual {
  position: relative; display: grid; place-items: center; padding: var(--s-6);
  border-left: 1px solid var(--rule);
  background:
    radial-gradient(130% 100% at 72% 18%, color-mix(in srgb, var(--hue) 15%, transparent), transparent 58%),
    var(--bg-2);
}
.prod-visual::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%;
  background: radial-gradient(60% 100% at 50% 130%, color-mix(in srgb, var(--hue) 24%, transparent), transparent 70%); opacity: .7; }
.motif { width: min(80%, 280px); height: auto; color: var(--hue); position: relative; z-index: 1;
  filter: drop-shadow(0 10px 26px color-mix(in srgb, var(--hue) 32%, transparent)); }

/* carousel controls */
.prods-controls { display: flex; align-items: center; justify-content: space-between; margin-top: var(--s-4); gap: var(--s-4); }
.prods-dots { display: flex; align-items: center; gap: .55rem; }
.pdot { width: 8px; height: 8px; border-radius: var(--r-pill); border: 0; background: var(--rule-strong); cursor: pointer; padding: 0;
  transition: transform var(--dur-2) var(--ease), background var(--dur-2) var(--ease), width var(--dur-2) var(--ease); }
.pdot.is-on { background: var(--spectrum); width: 24px; }
.prods-arrows { display: flex; gap: .5rem; }
.parrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule-strong); background: var(--surface);
  color: var(--text); cursor: pointer; display: grid; place-items: center;
  transition: border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease); }
.parrow svg { width: 16px; height: 16px; }
.parrow:hover { border-color: var(--text); transform: translateY(-2px); }
.parrow:disabled { opacity: .3; cursor: default; transform: none; }

/* ── product stub pages (products/*.html) ─────────────────────────── */
.product-page { min-height: 100svh; display: flex; align-items: center; padding-top: var(--nav-h); position: relative; }
.pp-wrap { max-width: 780px; padding-block: var(--s-8); display: grid; gap: var(--s-4); justify-items: start; }
.pp-back { font-size: var(--fs-sm); color: var(--text-soft); margin-bottom: var(--s-2); }
.pp-back:hover { color: var(--text); }
.pp-name { font-size: var(--fs-display); font-weight: 340; line-height: 1.02; letter-spacing: -.025em; }
.pp-line { font-size: var(--fs-lead); color: var(--text-soft); max-width: 40rem; line-height: 1.6; }
.pp-soon { color: var(--text-faint); font-size: var(--fs-micro); letter-spacing: .04em; margin-top: var(--s-3); display: inline-flex; align-items: center; gap: .55rem; }
.pp-soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--hue, var(--blue)); box-shadow: 0 0 8px var(--hue, var(--blue)); }
.pp-wrap .prod-server { width: 100%; max-width: 32rem; margin-top: var(--s-2); }
.pp-wrap .prod-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4); }

/* the agent reading — a tool server (revealed in agent view) */
.prod-server { display: none; margin-top: var(--s-4); border-top: 1px dashed var(--rule); padding-top: var(--s-4); }
.server-head { color: var(--text-soft); letter-spacing: .04em; display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.server-head b { color: var(--hue, var(--text)); font-weight: 700; }
.server-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hue, var(--cyan)); box-shadow: 0 0 8px var(--hue, var(--cyan)); }
.tools { list-style: none; padding: 0; display: grid; gap: .35rem; }
.tools li { font-size: var(--fs-mono); color: var(--text-soft); }
.t-fn { color: var(--pink-ink); } .t-arg { color: var(--text-faint); } .t-ret { color: var(--cyan-ink); }

/* ════════════════════════════════════════════════════════════════════
   06 · FIELD NOTES
   ═══════════════════════════════════════════════════════════════════ */
.note-list { list-style: none; padding: 0; display: grid; }
.note { border-top: 1px solid var(--rule); }
.note:last-child { border-bottom: 1px solid var(--rule); }
.note-link {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: var(--s-5);
  padding: var(--s-5) 0; color: var(--text); transition: padding var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
a.note-link:hover { padding-left: var(--s-4); }
.note-no { color: var(--text-faint); font-size: var(--fs-mono); }
.note-title { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 380; }
a.note-link:hover .note-title { color: var(--accent); }
.note-meta { color: var(--text-faint); font-size: var(--fs-micro); letter-spacing: .08em; text-transform: lowercase; }
.note-empty .note-link { cursor: default; }

/* ════════════════════════════════════════════════════════════════════
   07 · ABOUT / CONTACT
   ═══════════════════════════════════════════════════════════════════ */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-8); align-items: start; }
.about-note { max-width: 40rem; display: grid; gap: var(--s-4); }
.about-lead { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 360; line-height: 1.3; color: var(--text); }
.about-note p:not(.about-lead):not(.eyebrow) { color: var(--text-soft); }

.contact { border: 1px solid var(--rule); border-radius: var(--r-lg); padding: clamp(1.5rem,3vw,2.2rem); background: var(--surface); box-shadow: var(--shadow-1); position: sticky; top: calc(var(--nav-h) + var(--s-4)); }
.contact-mail { display: block; font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 380; color: var(--text); margin-bottom: var(--s-4); word-break: break-word; }
.contact-mail:hover { color: var(--accent); }

/* featured portfolio link */
.contact-portfolio {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  margin-bottom: var(--s-5); padding: .85rem 1.05rem; border-radius: var(--r-md);
  border: 1px solid var(--rule); background: var(--raised); color: var(--text);
  transition: border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.contact-portfolio:hover { border-color: color-mix(in srgb, var(--blue) 50%, var(--rule)); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.cp-label { color: var(--text-faint); letter-spacing: .14em; text-transform: uppercase; font-size: var(--fs-micro); }
.cp-url { font-weight: 500; font-size: var(--fs-body); }
.contact-portfolio:hover .cp-url { color: var(--accent); }

.contact-links { display: flex; gap: var(--s-4); }
.contact-links a { font-size: var(--fs-sm); color: var(--text-soft); border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.contact-links a:hover { color: var(--text); border-color: var(--text); }

.contact-tool { display: none; margin-top: var(--s-5); border-top: 1px dashed var(--rule); padding-top: var(--s-4); }
.contact-tool pre { font-family: var(--font-mono); font-size: var(--fs-mono); line-height: 1.65; color: var(--text-soft); white-space: pre-wrap; }

/* ════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.footer { border-top: 1px solid var(--rule); padding-block: var(--s-7) var(--s-6); }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-4) var(--s-6); }
.footer-brand .brand-word { font-size: 1.1rem; }
.footer-ax { color: var(--text-faint); letter-spacing: .06em; text-align: center; }
.footer-ax b { color: var(--cyan-ink); font-weight: 700; }
.footer-note { color: var(--text-faint); font-size: var(--fs-micro); text-align: right; }
.footer-state { text-align: center; color: var(--text-faint); font-size: var(--fs-micro); margin-top: var(--s-5); opacity: .7; }
.footer-state span { color: var(--cyan-ink); }

/* ════════════════════════════════════════════════════════════════════
   NAV DROPDOWN — "Products by us" (expands a detail on hover)
   ═══════════════════════════════════════════════════════════════════ */
.nav-dd { position: relative; display: inline-flex; }
.nav-dd-btn {
  font-family: var(--font-body); font-size: var(--fs-sm); color: var(--text-soft);
  background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; padding: 0;
  transition: color var(--dur-1) var(--ease);
}
.nav-dd-btn:hover, .nav-dd:focus-within .nav-dd-btn, .nav-dd[data-open] .nav-dd-btn { color: var(--text); }
.dd-caret { font-size: .62em; transition: transform var(--dur-2) var(--ease); }
.nav-dd:hover .dd-caret, .nav-dd:focus-within .dd-caret, .nav-dd[data-open] .dd-caret { transform: rotate(180deg); }

.nav-dd-panel {
  position: absolute; top: calc(100% + 16px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  display: flex; padding: var(--s-3);
  background: var(--raised); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; pointer-events: none; z-index: 70;
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), visibility 0s linear var(--dur-2);
}
.nav-dd-panel::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; } /* hover bridge */
.nav-dd:hover .nav-dd-panel, .nav-dd:focus-within .nav-dd-panel, .nav-dd[data-open] .nav-dd-panel {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.dd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; width: 234px; }
.dd-item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .65rem;
  padding: .72rem .8rem; border-radius: var(--r-md); color: var(--text);
  transition: background var(--dur-1) var(--ease);
}
.dd-item:hover, .dd-item:focus-visible { background: var(--surface); outline: none; }
.dd-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--hue); box-shadow: 0 0 8px color-mix(in srgb, var(--hue) 60%, transparent); }
.dd-name { font-weight: 500; font-size: var(--fs-sm); }
.dd-status { font-size: var(--fs-micro); color: var(--text-faint); letter-spacing: .03em; }

.dd-detail { max-width: 0; overflow: hidden; opacity: 0; align-self: stretch;
  transition: max-width var(--dur-3) var(--ease), opacity var(--dur-2) var(--ease), padding var(--dur-3) var(--ease); }
.nav-dd-panel.is-expanded .dd-detail {
  max-width: 290px; opacity: 1; margin-left: var(--s-3); padding-left: var(--s-4); border-left: 1px solid var(--rule);
}
.dd-card { width: 268px; display: none; }
.dd-card.is-active { display: block; animation: chip-in var(--dur-2) var(--ease-out); }
.dd-card-kicker { color: var(--hue); letter-spacing: .12em; text-transform: uppercase; font-size: var(--fs-micro); margin-bottom: .35rem; }
.dd-card-name { font-family: var(--font-display); font-size: 1.32rem; font-weight: 400; margin-bottom: .55rem; }
.dd-card-text { font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.5; margin-bottom: .8rem; }
.dd-card-go { color: var(--accent); font-size: var(--fs-micro); letter-spacing: .04em; }

/* the local-&-private note */
.private-note { position: relative; margin-top: var(--s-5); padding-left: 1rem; max-width: 34rem; font-size: var(--fs-sm); color: var(--text-faint); line-height: 1.55; }
.private-note::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 2px; border-radius: 2px; background: var(--spectrum); }

/* ════════════════════════════════════════════════════════════════════
   ░░░  AGENT VIEW  ░░░  — the same document, read by a machine
   ═══════════════════════════════════════════════════════════════════ */
:root[data-view="agent"] body::before {
  background:
    linear-gradient(transparent 0 95%, color-mix(in srgb, var(--cyan) 5%, transparent) 100%),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(120,160,255,.018) 3px 4px),
    radial-gradient(120% 80% at 50% -10%, var(--halo), transparent 55%);
  opacity: 1;
}
:root[data-view="agent"] .eyebrow,
:root[data-view="agent"] .duo-label,
:root[data-view="agent"] .scorecard-head { color: var(--cyan); }

/* reveal the inline role chips on every annotated element */
:root[data-view="agent"] .ax { position: relative; }
:root[data-view="agent"] .ax::after {
  content: attr(data-ax);
  display: block; margin-top: .6em;
  font-family: var(--font-mono); font-size: var(--fs-micro); line-height: 1.5;
  letter-spacing: 0; color: var(--syn-role); white-space: pre-wrap;
  border-left: 2px solid color-mix(in srgb, var(--blue) 45%, transparent);
  padding: .3em .6em; background: color-mix(in srgb, var(--blue) 7%, transparent);
  border-radius: 0 var(--r-xs) var(--r-xs) 0; max-width: max-content;
  animation: chip-in var(--dur-3) var(--ease-out) both;
}
@keyframes chip-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
:root[data-view="agent"] .hero-h1.ax::after,
:root[data-view="agent"] .section-head h2.ax::after { font-size: var(--fs-micro); }

/* node-selection outline feel on hover in agent view */
:root[data-view="agent"] .section-head h2.ax:hover,
:root[data-view="agent"] .hero-h1.ax:hover { outline: 1px dashed color-mix(in srgb, var(--cyan) 40%, transparent); outline-offset: 8px; }

/* reveal the machine readings */
:root[data-view="agent"] .prod-server { display: block; animation: chip-in var(--dur-3) var(--ease-out) both; }
:root[data-view="agent"] .contact-tool { display: block; animation: chip-in var(--dur-3) var(--ease-out) both; }
:root[data-view="agent"] .boundary-policy { display: block; }
:root[data-view="agent"] .boundary-name { color: var(--cyan); }

/* calm the lush human render in agent view; light up structure */
:root[data-view="agent"] .reader { opacity: .5; filter: saturate(.4); }
:root[data-view="agent"] .duo-agent { background: color-mix(in srgb, var(--cyan) 4%, var(--bg-2)); }
:root[data-view="agent"] .prod:hover .prod-card { box-shadow: 0 0 0 1px color-mix(in srgb, var(--hue) 40%, transparent), var(--shadow-2); }
:root[data-view="agent"] .nav-dd-panel, :root[data-view="agent"] .dd-item:hover, :root[data-view="agent"] .dd-item:focus-visible { } /* tokens recolor automatically */

/* the lens: the aperture "opens" — add a scanning sweep */
:root[data-view="agent"] .lens-body::after { box-shadow: inset 0 0 50px color-mix(in srgb, var(--cyan) 25%, transparent), inset 0 -10px 50px rgba(0,0,0,.4); }
:root[data-view="agent"] .lens-rim { opacity: 1; }
:root[data-view="agent"] .lens-cap::after { content: " · aperture open"; color: var(--cyan); }

/* nav frosted darker */
:root[data-view="agent"] .nav { background: color-mix(in srgb, var(--bg) 72%, transparent); }

/* show subtle node-numbering watermark stronger */
:root[data-view="agent"] .section[data-chapter] .section-head::before { opacity: .08; color: var(--cyan); }

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .hero-lens-wrap { order: -1; }
  .lens { --lens-size: clamp(13rem, 54vw, 20rem); }
  .private-grid, .about-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .contact { position: static; }
  .score-list { grid-template-columns: 1fr; gap: var(--s-5); }
  .footer-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-note { text-align: center; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: flex-start;
    gap: 0; padding: var(--s-4) var(--gutter); background: var(--bg); border-bottom: 1px solid var(--rule);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
  }
  .nav-links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: .8rem 0; width: 100%; border-bottom: 1px solid var(--rule-soft); font-size: 1.05rem; }
  .nav-burger {
    display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: .4rem; margin-left: auto;
  }
  .nav-burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease); }
  .nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .view-switch { order: 3; }
  .duo { grid-template-columns: 1fr; }
  .duo-seam { width: auto; height: 1px; }
  .xyz { grid-template-columns: 1fr; }
  .section[data-chapter] .section-head::before { display: none; }
  .note-link { grid-template-columns: 1fr; gap: .25rem; }
  .note-meta { grid-row: 1; }

  /* products carousel — stack each slide's card */
  .prod-card { grid-template-columns: 1fr; }
  .prod-visual { border-left: 0; border-top: 1px solid var(--rule); min-height: 148px; padding: var(--s-5); }
  .prod-copy { gap: var(--s-3); }

  /* nav dropdown becomes an inline list inside the mobile menu */
  .nav-dd { width: 100%; flex-direction: column; }
  .nav-dd-btn { width: 100%; justify-content: space-between; padding: .8rem 0; border-bottom: 1px solid var(--rule-soft); font-size: 1.05rem; color: var(--text); }
  .nav-dd-panel { position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    flex-direction: column; background: transparent; border: 0; box-shadow: none; padding: .35rem 0 .7rem; }
  .nav-dd-panel::before { display: none; }
  .dd-list { width: 100%; }
  .dd-detail { display: none; }
  .dd-item { padding: .62rem .25rem; }

  .scroll-cue { display: none; }            /* avoid overlap with the hero hint */
  .hero { min-height: auto; padding-bottom: var(--s-8); }
  .prods-controls { justify-content: center; gap: var(--s-6); }
}

/* ════════════════════════════════════════════════════════════════════
   REDUCED MOTION — everything stills
   ═══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .lens { animation: none; }
  .hero-h1 em::after { transform: scaleX(1); }
  .veil { display: none; }
  .prods-viewport { scroll-behavior: auto; }
}
