/* =========================================================
   success.css — page-local styles for success.html ONLY.
   Implements D1 "The Signal Path" from success-designs.html.
   Tokens, fonts, nav, footer, buttons and the ambient background
   all come from styles.css. Nothing here edits a shared file.
   ========================================================= */

/* styles.css hides the body cursor for app.js's custom-cursor (not loaded here) */
body { cursor: auto !important; }

/* ---------- Page shell ---------- */
.sc-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Editorial intro band ---------- */
.sc-intro { padding: 56px 0 30px; text-align: center; }
.sc-intro h1 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(32px, 5.4vw, 62px); line-height: 1.05; letter-spacing: -.02em;
  margin: 8px auto 18px; max-width: 17ch;
}
.sc-intro h1 i { font-style: italic; color: var(--accent-rust); }
.sc-intro p { max-width: 640px; margin: 0 auto; color: var(--text-muted); font-size: 17px; line-height: 1.65; font-weight: 300; }
/* =========================================================
   THE GUIDE (C2) — the live index. Mike's pick.
   Ported from case-cards-designs.css and adapted to the live success.html
   (single monitor, 8 real cases, success.js behaviour). Self-contained: every
   keyframe it needs is defined here, nothing edits styles.css.
   ========================================================= */
/* keep .sc-wrap's horizontal 24px padding (shorthand would zero it); only set
   the vertical padding. Zeroing left/right let the mobile .c2__preview full-bleed
   bar (margin: 0 -10px) spill 10px past each edge. */
.sc-guidewrap { padding-top: 22px; padding-bottom: 10px; }
.c2 { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(22px, 3vw, 40px); align-items: start; }
@media (max-width: 900px) { .c2 { grid-template-columns: minmax(0, 1fr); } }

/* preview monitor: sticky beside the listing. top clears the sticky .nav header. */
.c2__preview { position: sticky; top: 96px; }
/* On one column the grid area collapses to the monitor's own height, so sticky
   would have zero travel. Go to block flow: the containing block becomes the
   whole section and the monitor genuinely rides above the listing. */
@media (max-width: 900px) {
  .c2 { display: block; }
  .c2__preview {
    position: sticky; top: 60px; z-index: 5;
    margin: 0 -10px; padding: 8px 10px 12px;
    background: rgba(250,248,245,.90);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .c2__guide { margin-top: 22px; }
}
.c2__set {
  border-radius: 20px; padding: 12px 12px 10px;
  background: linear-gradient(168deg, #262a3f, var(--ink-navy));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 22px 50px -20px rgba(26,30,46,.55);
}
.c2__screen {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; isolation: isolate;
  border-radius: 16px / 22px;
  background: radial-gradient(115% 125% at 50% 30%, #23191a, #0b0909 68%);
  box-shadow: inset 0 0 0 3px #07060a, inset 0 0 46px rgba(0,0,0,.85);
}
@media (max-width: 900px) { .c2__screen { aspect-ratio: 16 / 9; } }
.c2__snow { position: absolute; inset: -2%; width: 104%; height: 104%; mix-blend-mode: screen; z-index: 1; pointer-events: none; }
.c2__grille { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: .5; background: repeating-linear-gradient(0deg, rgba(0,0,0,.30) 0 1px, transparent 1px 3px); }
.c2__glass { position: absolute; inset: 0; z-index: 5; pointer-events: none; box-shadow: inset 0 0 62px 16px rgba(0,0,0,.6); background: radial-gradient(58% 46% at 50% 46%, rgba(196,87,42,.15), transparent 72%), linear-gradient(155deg, rgba(255,255,255,.09), rgba(255,255,255,0) 36%); }
.c2__sweep { position: absolute; left: -6%; right: -6%; height: 3px; top: -10px; z-index: 6; opacity: 0; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255,241,228,.95), transparent); box-shadow: 0 0 18px 6px rgba(255,196,150,.6); }
.c2.is-zapping .c2__sweep { animation: c2Sweep .40s cubic-bezier(.35,0,.2,1); }
@keyframes c2Sweep { 0% { top: -10px; opacity: 1; } 100% { top: 100%; opacity: 1; } }

.c2__body { position: absolute; inset: 0; z-index: 4; padding: clamp(16px, 2.2vw, 24px); display: flex; flex-direction: column; justify-content: flex-end; }
.c2.is-rolling .c2__body { animation: c2Roll .5s cubic-bezier(.2,.85,.25,1); }
@keyframes c2Roll {
  0%   { transform: scaleY(.06) translateY(-10%); filter: brightness(3); opacity: .8; }
  32%  { transform: scaleY(1.09) translateY(-2%); filter: brightness(1.6); }
  64%  { transform: scaleY(.97); }
  100% { transform: none; filter: none; }
}
.c2__ch { position: absolute; top: clamp(12px, 2vw, 18px); left: clamp(16px, 2.2vw, 24px); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,206,174,.92); text-shadow: 0 0 10px rgba(196,87,42,.75); }
.c2__now { position: absolute; top: clamp(12px, 2vw, 18px); right: clamp(16px, 2.2vw, 24px); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; color: rgba(255,236,224,.5); }
/* flex-shrink:0 on the four flow children is the overlap fix: with
   justify-content:flex-end a long title (ch 04/05 wrap to 3 lines) was
   compressed below its own text height and bled over .c2__nums. None of these
   boxes may shrink below content now, so title.offsetHeight >= scrollHeight.
   min-height reserves ~2 lines so an empty title mid-typewriter has a stable
   floor without a dead gap under the many 1-line titles. */
.c2__title { flex-shrink: 0; font-family: var(--font-serif); font-weight: 400; font-size: clamp(21px, 2.5vw, 30px); line-height: 1.08; margin: 0 0 10px; padding-block: 5px; color: #fff7f0; text-shadow: 0 2px 16px rgba(0,0,0,.7); min-height: calc(2 * 1.08em); }
.c2__title.is-typing::after { content: ""; display: inline-block; width: .06em; height: .8em; margin-left: .05em; background: var(--accent-rust); box-shadow: 0 0 8px rgba(196,87,42,.9); animation: ccCaret .78s steps(1) infinite; }
@keyframes ccCaret { 50% { opacity: 0; } }
.c2__nums { flex-shrink: 0; display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 10px; }
.c2__nval { display: block; font-family: var(--font-serif); font-size: clamp(26px, 3.2vw, 38px); line-height: 1; color: var(--accent-rust); text-shadow: 0 0 26px rgba(196,87,42,.5); }
.c2__nlab { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,236,224,.55); margin-top: 5px; }
.c2__teaser { flex-shrink: 0; margin: 0 0 14px; font-size: 13.5px; line-height: 1.5; color: rgba(255,236,224,.72); max-width: 42ch; }
.c2__cta {
  flex-shrink: 0; align-self: flex-start; text-decoration: none;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: var(--accent-rust); border-radius: var(--radius-pill); padding: 9px 16px;
  display: inline-flex; align-items: center; gap: 7px; transition: background .2s, transform .2s;
}
.c2__cta:hover { background: var(--accent-rust-d); transform: translateY(-1px); }
.c2__base { display: flex; align-items: center; gap: 12px; padding: 9px 6px 0; }
.c2__brand { font-family: var(--font-serif); font-size: 14px; color: rgba(255,255,255,.9); }
.c2__live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; color: rgba(255,255,255,.55); }
.c2__dot { width: 6px; height: 6px; border-radius: 50%; background: #57d08a; box-shadow: 0 0 8px rgba(87,208,138,.9); animation: c2Pulse 2.4s ease-in-out infinite; }
@keyframes c2Pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.c2__knob { margin-left: auto; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #6b6f86, #2a2e42); box-shadow: 0 0 0 2px rgba(255,255,255,.07); }

/* listing */
.c2__guidehead { display: flex; align-items: baseline; gap: 14px; padding: 0 0 10px; border-bottom: 1px solid var(--surface-line); margin-bottom: 4px; }
.c2__guidehead span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); }
.c2__guidehead span:last-child { margin-left: auto; }
.c2__list { list-style: none; margin: 0; padding: 0; }
.c2-row { position: relative; display: block; }
.c2-row__a {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 15px 16px 15px 14px; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--surface-line);
  transition: background .28s ease, padding-left .28s cubic-bezier(.2,.8,.25,1);
}
.c2-row__a::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--accent-rust); transform: scaleY(0); transform-origin: 50% 50%;
  transition: transform .34s cubic-bezier(.2,.8,.25,1);
}
.c2-row.is-active .c2-row__a { background: linear-gradient(90deg, rgba(196,87,42,.09), rgba(196,87,42,0) 70%); padding-left: 22px; }
.c2-row.is-active .c2-row__a::before { transform: scaleY(1); }
.c2-row__num { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--text-faint); width: 42px; transition: color .25s; }
.c2-row.is-active .c2-row__num { color: var(--accent-rust); }
.c2-row__mid { min-width: 0; }
.c2-row__t { display: block; font-family: var(--font-serif); font-weight: 400; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.2; margin: 0 0 4px; letter-spacing: -.01em; color: var(--ink-navy); }
.c2-row__meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.c2-row__cat { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); border: 1px solid var(--surface-line); border-radius: var(--radius-pill); padding: 3px 8px; }
.c2-row__m { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--accent-rust); font-weight: 500; }
.c2-row__m em { font-style: normal; color: var(--text-faint); font-weight: 400; letter-spacing: .08em; }
.c2-row__go { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; color: var(--text-faint); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: color .25s, transform .3s cubic-bezier(.2,.8,.25,1); }
.c2-row.is-active .c2-row__go, .c2-row__a:hover .c2-row__go { color: var(--accent-rust); transform: translateX(3px); }
@media (max-width: 560px) { .c2-row__go span { display: none; } .c2-row__num { width: 34px; } }

@media (prefers-reduced-motion: reduce) {
  .c2.is-zapping .c2__sweep, .c2.is-rolling .c2__body { animation: none; }
  .c2__title.is-typing::after { animation: none; }
  .c2__dot { animation: none; opacity: 1; }
  .c2-row__a, .c2-row__a::before, .c2-row__go { transition: none; }
}

/* ---------- SHARED: the card-zoom "recalibrate" entrance (lifted from D1) ---------- */
.zoom {
  opacity: 0; transform: translateY(30px) scale(.9); filter: blur(6px);
  transition: opacity .55s ease, transform .9s cubic-bezier(.16,1.1,.3,1), filter .55s ease;
  will-change: transform, opacity;
}
.zoom.is-in { opacity: 1; transform: none; filter: none; will-change: auto; }
.zoom::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0) 42%, rgba(255,255,255,.85) 50%, rgba(196,87,42,.35) 52%, rgba(255,255,255,0) 60%);
  opacity: 0;
}
.zoom.is-in::after { animation: scRecal .85s ease-out .12s 1; }
@keyframes scRecal {
  0%   { opacity: 0; transform: translateY(-60%); }
  22%  { opacity: .9; }
  100% { opacity: 0; transform: translateY(60%); }
}

/* ---------- SHARED: metric numerals ---------- */
.m-val {
  display: block;
  font-family: var(--font-serif); font-weight: 400; line-height: 1.02;
  color: var(--accent-rust); letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.m-lab {
  display: block; margin-top: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted); line-height: 1.5;
}

/* ---------- SHARED: stack chips ---------- */
.sc-stack { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-stack span {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--surface-line); background: var(--surface-2); color: var(--text-muted);
  transition: border-color .2s, color .2s, transform .2s;
}
.sc-stack span:hover { border-color: var(--accent-rust); color: var(--accent-rust); transform: translateY(-1px); }

/* =========================================================
   D1 — THE SIGNAL PATH
   ========================================================= */
/* one case = one page. .d1 IS the page container. */
.d1 { position: relative; max-width: 988px; margin: 0 auto; padding: 40px 24px 30px; }

.d1__top { text-align: center; margin-bottom: 10px; }
.d1__back {
  display: inline-block; margin-bottom: 26px; text-decoration: none;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted); transition: color .2s;
}
.d1__back:hover { color: var(--accent-rust); }
.d1__ch {
  display: block;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-rust);
}
.d1__title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(29px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -.02em;
  margin: 14px auto 0; max-width: 16ch;
}
.d1__title span { display: inline-block; opacity: 0; transform: translateY(24px) scale(.96); }
.d1__title.is-in span { animation: scWordIn .8s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes scWordIn { to { opacity: 1; transform: none; } }
.d1__teaser {
  margin: 16px auto 0; max-width: 56ch;
  font-size: 16px; line-height: 1.6; font-weight: 300; color: var(--text-muted);
}

/* body = spine + stations. Spine is measured against THIS box, so it never
   depends on how many lines the title happens to wrap to. */
.d1__body { position: relative; padding-top: 46px; }
.d1__spine {
  position: absolute; left: 50%; transform: translateX(-50%);
  top: 0; bottom: 30px; width: 2px; background: rgba(196,87,42,.18); border-radius: 2px; z-index: 1;
}
.d1__fill {
  position: absolute; top: 0; left: 0; width: 100%; height: 0;
  background: linear-gradient(to bottom, var(--accent-rust), var(--accent-rust-d));
  box-shadow: 0 0 12px rgba(196,87,42,.55); border-radius: 2px; will-change: height;
}

.d1__stations { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 34px; position: relative; z-index: 2; }
.d1__st { position: relative; }
.d1__st--left  { width: 52%; margin-right: auto; padding-right: 46px; }
.d1__st--right { width: 52%; margin-left: auto;  padding-left: 46px; }
.d1__st--wide  { width: 100%; }
.d1__node {
  position: absolute; top: 34px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent-rust);
  box-shadow: 0 0 0 4px rgba(196,87,42,.12); z-index: 3;
  transition: background .45s ease, box-shadow .45s ease;
}
.d1__st--left  .d1__node { right: -8px; }
.d1__st--right .d1__node { left: -8px; }
.d1__st--wide  .d1__node { left: 50%; margin-left: -8px; top: -26px; }
.d1__st.is-in .d1__node { background: var(--accent-rust); box-shadow: 0 0 0 5px rgba(196,87,42,.18), 0 0 16px rgba(196,87,42,.65); }

/* NOTE: D1's proposal card used `backdrop-filter: blur(7px)`. With 32 of these
   cards over a FIXED background that repaints (the TV noise canvas), the browser
   re-filters every card's backdrop on every scroll frame. Measured: median frame
   33.3ms / 53% dropped frames with it, 16.7ms / 3% without it. The backdrop here
   is a near flat cream gradient plus faint noise, so blurring it buys nothing
   visible. Dropped deliberately; the alpha below is nudged up to compensate. */
.d1-card {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 26px 28px;
  background: linear-gradient(160deg, rgba(255,252,250,.86), rgba(255,240,232,.66));
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 -14px 28px rgba(196,87,42,.06), 0 14px 40px rgba(39,42,63,.09);
}
.d1-card > * { position: relative; z-index: 1; }
.d1-card__eyebrow {
  display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-rust); margin-bottom: 12px;
}
.d1-card h3 { font-family: var(--font-serif); font-weight: 400; font-size: 24px; margin: 0 0 12px; }
.d1-card p { margin: 0; font-size: 15.5px; color: var(--text-muted); line-height: 1.66; }

/* metrics station */
.d1-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; text-align: center; padding: 34px 20px; }
.d1-metrics[data-n="2"] { grid-template-columns: repeat(2, 1fr); }
.d1-metrics[data-n="4"] { grid-template-columns: repeat(4, 1fr); }
.d1-metrics > div { padding: 6px 14px; position: relative; display: flex; flex-direction: column; justify-content: flex-start; }
.d1-metrics > div + div { border-left: 1px solid var(--surface-line); }
.d1-metrics .m-val { font-size: calc(clamp(34px, 5.2vw, 62px) * var(--ms, 1)); min-height: 1em; }
.d1-metrics[data-n="4"] .m-val { font-size: calc(clamp(28px, 3.8vw, 50px) * var(--ms, 1)); }

/* build station: the self-assembling schematic */
.d1-build { padding-bottom: 22px; }
.d1-build__note { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; color: var(--text-faint); margin: 0 0 16px; }
.d1-build__diagram { margin: 20px 0 22px; }
.d1-build .sc-stack { margin-top: 4px; }

/* ---------- SVG schematic (data driven off stack[]) ---------- */
.schem { width: 100%; height: auto; display: block; overflow: visible; }
/* the vertical layout is authored on a 300-unit viewBox; without a cap it would
   scale up to the full card width and render 24px node text */
.schem--v { display: none; max-width: 340px; margin: 0 auto; }
.schem-node { opacity: 0; transform: translateY(8px) scale(.94); transform-origin: center; transform-box: fill-box; }
.schem.is-on .schem-node { animation: schemNodeIn .6s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes schemNodeIn { to { opacity: 1; transform: none; } }
.schem-node rect {
  fill: var(--surface-2); stroke: var(--surface-line); stroke-width: 1;
  transition: stroke .25s, filter .25s;
}
.schem-node text {
  font-family: var(--font-mono); font-size: 9.8px; letter-spacing: .06em;
  fill: var(--ink-navy); text-transform: uppercase;
}
.schem--v .schem-node text { font-size: 11px; }
.schem-node .idx { fill: var(--accent-rust); letter-spacing: .1em; }
.schem-node:hover rect { stroke: var(--accent-rust); filter: drop-shadow(0 0 10px rgba(196,87,42,.45)); }
.schem-wire { fill: none; stroke: rgba(196,87,42,.28); stroke-width: 1.4; stroke-dasharray: 100; stroke-dashoffset: 100; }
.schem.is-on .schem-wire { animation: schemDraw .9s ease forwards; }
@keyframes schemDraw { to { stroke-dashoffset: 0; } }
.schem-pulse {
  fill: none; stroke: var(--accent-rust); stroke-width: 2.2; stroke-linecap: round;
  stroke-dasharray: 7 100; stroke-dashoffset: 107; opacity: 0;
  filter: drop-shadow(0 0 4px rgba(196,87,42,.8));
}
/* the pulse only runs while the schematic is actually on screen (is-live) */
.schem.is-on.is-live .schem-pulse { opacity: 1; animation: schemPulse 2.6s linear infinite; }
@keyframes schemPulse { from { stroke-dashoffset: 107; } to { stroke-dashoffset: 0; } }

/* ---------- Prev / next case ---------- */
.sc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.sc-pager__a {
  display: flex; flex-direction: column; gap: 7px; padding: 18px 20px;
  border-radius: var(--radius); border: 1px solid var(--surface-line);
  background: rgba(255,255,255,.5); text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.sc-pager__a:hover { border-color: var(--accent-rust); transform: translateY(-2px); }
.sc-pager__a span {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-rust);
}
.sc-pager__a b { font-family: var(--font-serif); font-weight: 400; font-size: 18px; line-height: 1.25; color: var(--ink-navy); }
.sc-pager__a--next { text-align: right; align-items: flex-end; }

/* ---------- Closing CTA ---------- */
.sc-close { padding: 30px 0 90px; }
.sc-close .cta-row { margin-top: 0; }
.cta-row__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.d1 .cta-row { margin-top: 40px; margin-bottom: 70px; }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {
  /* Below ~900px the 760-unit horizontal schematic scales down far enough that its
     node labels render under 9px. Swap to the vertical layout here, which is a
     wider breakpoint than the rest of the D1 layout change (760px) on purpose. */
  .schem--h { display: none; }
  .schem--v { display: block; }
}

@media (max-width: 760px) {
  .d1 { padding: 26px 20px 24px; }
  .sc-pager { grid-template-columns: 1fr; }
  .sc-pager__a--next { text-align: left; align-items: flex-start; }
  .d1__spine { display: none; }
  .d1__body { padding-top: 30px; }
  .d1__st--left, .d1__st--right, .d1__st--wide { width: 100%; margin: 0; padding: 0; }
  .d1__node { display: none; }
  .d1-card { padding: 22px 20px; }
  .d1-metrics, .d1-metrics[data-n="4"], .d1-metrics[data-n="2"] { grid-template-columns: 1fr 1fr; gap: 0; padding: 26px 12px; }
  .d1-metrics > div { padding: 16px 10px; }
  .d1-metrics > div + div { border-left: 0; }
  .d1-metrics > div:nth-child(2n) { border-left: 1px solid var(--surface-line); }
  .d1-metrics > div:nth-child(n+3) { border-top: 1px solid var(--surface-line); }
  .d1-metrics .m-val,
  .d1-metrics[data-n="4"] .m-val { font-size: calc(clamp(30px, 8.4vw, 44px) * var(--ms, 1)); }
  .sc-intro { padding: 36px 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .zoom, .reveal { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .zoom.is-in::after { animation: none; }
  .d1__title span { opacity: 1 !important; transform: none !important; animation: none !important; }
  .schem-node { opacity: 1; transform: none; animation: none !important; }
  .schem-wire { stroke-dashoffset: 0; animation: none !important; }
  .schem.is-on.is-live .schem-pulse { animation: none; opacity: 0; }
  .bg-glow { animation: none; }
  .sc-rail { transition: none; }
}
