/* Portfolio v2 labs — builds on tokens from styles.css */

/* ---------- shared ---------- */
.demo-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .32rem .6rem; border: 1px dashed var(--amber); border-radius: 999px;
  color: var(--amber); font: 500 .6rem var(--mono); letter-spacing: .06em; text-transform: uppercase;
  background: rgba(240,139,69,.05);
}
.demo-tag::before { content: ""; width: 6px; aspect-ratio: 1; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber-glow); }
.case-labels .demo-tag { border-style: dashed; }
.lab-shell {
  position: relative; border: 1px solid var(--frost-line-strong); background: var(--frost-silver);
  border-radius: 18px 18px 28px 18px; box-shadow: var(--frost-shadow); backdrop-filter: blur(18px) saturate(.58);
  contain: layout paint;
}

/* ---------- manifesto (scroll-scrubbed) ---------- */
.manifesto-section { position: relative; padding: clamp(5rem, 12vw, 11rem) var(--gutter) clamp(3rem, 7vw, 6rem); overflow: hidden; }
.manifesto-line { max-width: 22ch; margin: 1.5rem 0 0; font: 400 clamp(2.4rem, 5.8vw, 6.4rem)/1.02 var(--serif); letter-spacing: -.03em; }
body[data-language="zh"] .manifesto-line { font: 800 clamp(2rem, 4.8vw, 5.2rem)/1.18 var(--sans); letter-spacing: -.02em; max-width: 18em; }
.manifesto-line .w { color: var(--ink); opacity: .14; transition: opacity .25s linear; }
.manifesto-line .w.on { opacity: 1; }
.manifesto-wire { position: absolute; inset: auto 0 6% 0; width: 100%; height: auto; pointer-events: none; opacity: .5; }
.manifesto-wire path { fill: none; stroke: var(--silver-low); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--scrub, 0)); }
.manifesto-wire path + path { stroke: var(--amber); opacity: .6; }
.demo-note { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; max-width: 70ch; margin: 3rem 0 0; color: var(--muted); font-size: .9rem; }

/* ---------- impact console ---------- */
.impact-console { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; border: 1px solid var(--frost-line-strong); background: var(--frost-silver-strong); border-radius: 18px 18px 28px 18px; box-shadow: var(--frost-shadow); overflow: hidden; contain: layout paint; }
.impact-readouts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-right: 1px solid var(--frost-line-strong); }
.impact-readout { display: flex; flex-direction: column; gap: .35rem; padding: clamp(1.4rem, 3vw, 2.6rem); border-bottom: 1px solid var(--frost-line-strong); }
.impact-readout:nth-child(odd) { border-right: 1px solid var(--frost-line-strong); }
.impact-readout small { font: 500 .62rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.impact-readout strong { font: 400 clamp(3.4rem, 6vw, 6rem)/.9 var(--serif); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.impact-readout span { color: var(--muted); font-size: .8rem; }
.ticket-ring { position: relative; display: grid; place-items: center; margin: 0; padding: 2rem; grid-row: span 2; }
.ticket-ring svg { width: min(100%, 300px); transform: rotate(-90deg); overflow: visible; }
.ring-track { fill: none; stroke: var(--line); stroke-width: 18; }
.ring-seg { fill: none; stroke-width: 18; cursor: pointer; transition: stroke-width .2s ease, opacity .2s ease; outline: none; }
.ring-seg:hover, .ring-seg:focus-visible, .ring-seg.is-hot { stroke-width: 26; }
.seg-done { stroke: var(--gunmetal); }
.seg-active { stroke: var(--amber); }
.seg-hold { stroke: var(--silver-mid); }
.seg-rejected { stroke: var(--amber-deep); }
.ring-ticks path { stroke: var(--silver-low); stroke-width: 1.2; }
.ring-center { position: absolute; top: calc(2rem + min(100%, 300px) / 2); left: 50%; translate: -50% -50%; display: grid; text-align: center; pointer-events: none; }
.ticket-ring .ring-center { top: 50%; margin-top: -3.4rem; }
.ring-center b { font: 400 3.6rem/.9 var(--serif); }
.ring-center small { font: 500 .62rem var(--mono); text-transform: uppercase; color: var(--muted); }
.ticket-ring figcaption { width: 100%; max-width: 300px; margin-top: 1.4rem; font: 500 .62rem var(--mono); text-transform: uppercase; color: var(--muted); }
.ring-legend { margin: .8rem 0 0; padding: 0; list-style: none; display: grid; gap: .35rem; }
.ring-legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: .6rem; align-items: center; padding: .35rem .5rem; border-radius: 8px; color: var(--ink); cursor: default; }
.ring-legend li.is-hot { background: rgba(240,139,69,.07); }
.ring-legend i { width: 10px; height: 10px; border-radius: 3px; }
.key-done { background: var(--gunmetal); } .key-active { background: var(--amber); } .key-hold { background: var(--silver-mid); } .key-rejected { background: var(--amber-deep); }
.agent-registry { grid-column: 1; padding: clamp(1.4rem, 3vw, 2.6rem); }
.registry-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: .9rem 0 1.2rem; }
.registry-chips button, .seg button, .tp-modes button, .boundary-toggle button, .warroom-replay {
  appearance: none; border: 1px solid var(--frost-line-strong); background: var(--frost-silver-static, rgba(255,255,255,.4)); color: var(--ink);
  padding: .5rem .8rem; border-radius: 999px; font: 500 .7rem var(--mono); cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.registry-chips button[aria-selected="true"], .seg button[aria-checked="true"], .tp-modes button[aria-checked="true"], .boundary-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.registry-chips button:focus-visible, .seg button:focus-visible, .tp-modes button:focus-visible, .boundary-toggle button:focus-visible, .gate-actions button:focus-visible, .platform-steps button:focus-visible, .warroom-replay:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.registry-panel { min-height: 64px; padding: .9rem 1rem; border-left: 3px solid var(--amber); border-radius: 10px; background: rgba(255,255,255,.3); }
.registry-dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.registry-dots i { aspect-ratio: 1; border-radius: 50%; background: var(--line); transition: background .3s ease, transform .3s ease; }
.registry-dots i.on { background: var(--amber); transform: scale(1.15); box-shadow: 0 0 6px var(--amber-glow); }
.registry-panel p { margin: 0; color: var(--muted); }

/* ---------- governance chapter (always dark, in both modes) ---------- */
.governance-section { background: radial-gradient(circle at 85% 10%, rgba(240,138,60,.08), transparent 30rem), #0d0f11; color: #f2f3f0; }
.governance-section .section-index { color: var(--amber-bright); }
.governance-section .section-heading h2, .governance-section .section-heading h2 .section-lead { color: #f2f3f0; }
.governance-section .capability-title { color: #aeb4b9; }
.governance-section .demo-tag { color: var(--amber-bright); border-color: var(--amber-bright); }

/* ---------- governance: gate lab ---------- */
.gate-lab { display: grid; grid-template-columns: minmax(240px, .8fr) 1.2fr; gap: clamp(1.5rem, 4vw, 4rem); margin-bottom: 2.5rem; color: #eef0ef; }
.gate-actions { display: grid; gap: .6rem; align-content: start; }
.gate-actions .capability-title { margin: 0 0 .4rem; }
.gate-actions button { display: grid; gap: .2rem; text-align: left; padding: 1rem 1.1rem; border: 1px solid rgba(229,234,238,.18); border-radius: 14px; background: rgba(255,255,255,.03); color: inherit; cursor: pointer; transition: border-color .2s ease, background .2s ease, translate .2s ease; }
.gate-actions button b { font-weight: 600; font-size: .95rem; }
.gate-actions button small { font: 500 .62rem var(--mono); color: #aeb4b9; text-transform: uppercase; }
.gate-actions button:hover { translate: 3px 0; }
.gate-actions button[aria-checked="true"] { border-color: var(--amber-bright); background: rgba(240,138,60,.09); }
.gate-track { display: grid; gap: 1rem; }
.gate-lanes { position: relative; margin: 0; padding: 0; list-style: none; display: grid; gap: .7rem; }
.gate-lanes::before { content: ""; position: absolute; left: 26px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(180deg, rgba(229,234,238,.4), rgba(229,234,238,.05)); }
.gate-lanes li { position: relative; display: grid; grid-template-columns: 54px 1fr 18px; grid-template-rows: auto auto; column-gap: .9rem; align-items: center; padding: .9rem 1rem .9rem 0; border-bottom: 1px solid rgba(229,234,238,.12); opacity: .35; transition: opacity .35s ease; }
.gate-lanes li span { grid-row: span 2; display: grid; place-items: center; width: 52px; height: 34px; border: 1px solid rgba(229,234,238,.3); border-radius: 9px; background: #1b1f23; font: 500 .7rem var(--mono); color: #cfd4d8; z-index: 1; }
.gate-lanes li b { font-size: .98rem; }
.gate-lanes li small { grid-column: 2; color: #aeb4b9; font-size: .78rem; }
.gate-lanes li i { grid-row: 1 / 3; grid-column: 3; width: 12px; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(229,234,238,.4); }
.gate-lanes li.on { opacity: 1; }
.gate-lanes li.on span { border-color: var(--amber-bright); color: var(--amber-bright); box-shadow: 0 0 14px rgba(240,138,60,.2); }
.gate-lanes li.on i { background: #7fd39b; border-color: #7fd39b; box-shadow: 0 0 10px rgba(127,211,155,.5); }
.gate-lanes li.hold i { background: var(--amber-bright); border-color: var(--amber-bright); animation: gate-blink 1.2s steps(2) infinite; }
.gate-lanes li.blocked { opacity: 1; }
.gate-lanes li.blocked i { background: #e0624a; border-color: #e0624a; }
@keyframes gate-blink { 50% { opacity: .25; } }
.gate-verdict { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: baseline; padding: 1rem 1.1rem; border: 1px solid rgba(229,234,238,.2); border-radius: 12px; background: rgba(255,255,255,.04); }
.gate-verdict span { font: 500 .62rem var(--mono); text-transform: uppercase; color: #aeb4b9; }
.gate-verdict b { font-size: 1.02rem; color: #fff; }

/* ---------- war room ---------- */
.warroom { position: relative; padding: clamp(1.2rem, 2.6vw, 2.2rem); border: 1px solid rgba(229,234,238,.2); border-radius: 18px 18px 28px 18px; background: linear-gradient(180deg, #15181c, #0e1013); color: #e6e9eb; box-shadow: 0 30px 60px rgba(0,0,0,.35); overflow: hidden; contain: layout paint; }
.warroom::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px); }
.warroom-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; font: 500 .66rem var(--mono); text-transform: uppercase; color: #aeb4b9; }
.warroom-head .status-live { color: #7fd39b; margin-right: auto; }
.warroom-head .status-live::before { content: "● "; }
.warroom-replay { background: transparent; color: #e6e9eb; border-color: rgba(229,234,238,.3); }
.warroom-scenario { display: grid; gap: .3rem; margin: 1rem 0 1.2rem; padding: .9rem 1rem; border-left: 2px solid var(--amber-bright); background: rgba(240,138,60,.06); font-size: .86rem; color: #c9ced2; }
.warroom-scenario b { color: #fff; font-size: .92rem; }
.warroom-grid { display: grid; gap: .5rem; }
.wr-row { display: grid; grid-template-columns: minmax(150px, 1.3fr) 88px minmax(120px, 1.6fr) 64px 70px; gap: .8rem; align-items: center; padding: .6rem .7rem; border: 1px solid rgba(229,234,238,.08); border-radius: 10px; background: rgba(255,255,255,.025); font-size: .8rem; }
.wr-row.done { border-color: rgba(127,211,155,.3); }
.wr-row.wait { border-color: rgba(240,138,60,.35); }
.wr-name b { display: block; font-weight: 600; }
.wr-name small { color: #8f979e; font: 400 .66rem var(--mono); }
.wr-model { justify-self: start; padding: .2rem .45rem; border-radius: 6px; font: 500 .62rem var(--mono); background: #23282e; color: #d8dcdf; border: 1px solid rgba(229,234,238,.14); }
.wr-model[data-tier="opus"] { color: var(--amber-bright); border-color: rgba(240,138,60,.4); }
.wr-model[data-tier="haiku"] { color: #9fc3ff; border-color: rgba(159,195,255,.3); }
.wr-model[data-tier="codex"] { color: #7fd39b; border-color: rgba(127,211,155,.3); }
.wr-bar { height: 6px; border-radius: 99px; background: #23282e; overflow: hidden; }
.wr-bar i { display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, #6d757c, #e6e9eb); transition: width .5s ease; }
.wr-row.done .wr-bar i { background: #7fd39b; }
.wr-row.wait .wr-bar i { background: var(--amber-bright); }
.wr-pct, .wr-eta { font: 500 .7rem var(--mono); color: #cfd4d8; text-align: right; font-variant-numeric: tabular-nums; }
.warroom-log { height: 132px; margin-top: 1rem; padding: .7rem .9rem; border-radius: 10px; background: #0a0c0e; border: 1px solid rgba(229,234,238,.08); overflow: hidden; font: 400 .7rem/1.65 var(--mono); color: #9aa2a8; display: flex; flex-direction: column; justify-content: flex-end; }
.warroom-log p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.warroom-log p b { color: #e6e9eb; font-weight: 500; }
.warroom-log p.gate b { color: var(--amber-bright); }
.warroom-log p.ok b { color: #7fd39b; }
.warroom-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.2rem 0 0; }
.warroom-facts dt { font: 500 .6rem var(--mono); text-transform: uppercase; color: #8f979e; }
.warroom-facts dd { margin: .2rem 0 0; font-size: .82rem; }

/* ---------- embedded: platform ---------- */
.platform-lab, .boundary-lab, .exploded-lab, .frames-lab, .throughput-lab, .banner-studio {
  position: relative; margin-bottom: 2rem; border: 1px solid var(--frost-line-strong); background: var(--frost-silver-strong);
  border-radius: 18px 18px 28px 18px; box-shadow: var(--frost-shadow); overflow: hidden; contain: layout paint;
}
.platform-lab, .boundary-lab, .exploded-lab, .frames-lab { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr); }
.platform-copy, .boundary-copy, .exploded-copy, .frames-copy { display: flex; flex-direction: column; gap: 1.2rem; padding: clamp(1.8rem, 4vw, 3.6rem); border-right: 1px solid var(--frost-line-strong); }
.platform-copy h3, .boundary-copy h3, .exploded-copy h3, .frames-copy h3 { margin: 0; font: 400 clamp(2.6rem, 4.4vw, 4.8rem)/.9 var(--serif); letter-spacing: -.035em; }
.platform-copy > p, .boundary-copy > p, .exploded-copy > p, .frames-copy > p { margin: 0; max-width: 50ch; color: var(--muted); }
.platform-copy .case-facts, .boundary-copy .case-facts, .frames-copy .case-facts { margin-top: auto; }
.case-labels { margin-bottom: .6rem; }
.platform-detail { display: grid; gap: .3rem; padding: 1rem 1.1rem; border: 1px solid var(--frost-line-strong); border-left: 3px solid var(--amber); border-radius: 12px; background: rgba(255,255,255,.35); min-height: 118px; }
.platform-detail span { font: 500 .62rem var(--mono); color: var(--amber); }
.platform-detail b { font-size: 1.05rem; }
.platform-detail p { margin: 0; color: var(--muted); font-size: .88rem; }
.platform-flow { position: relative; padding: clamp(1.5rem, 3vw, 3rem); min-height: 520px; background: repeating-linear-gradient(90deg, transparent 0 39px, rgba(58,64,69,.05) 39px 40px), repeating-linear-gradient(0deg, transparent 0 39px, rgba(58,64,69,.05) 39px 40px); }
.platform-wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.platform-wires path { fill: none; stroke: var(--silver-low); stroke-width: 1.2; stroke-dasharray: 4 6; }
.platform-wires .kb-wire { stroke: var(--amber); opacity: .55; }
.platform-steps { position: relative; z-index: 1; margin: 0; padding: 0; list-style: none; display: grid; gap: .7rem; width: min(100%, 300px); }
.platform-steps button { width: 100%; display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: .7rem; padding: .8rem 1rem; border: 1px solid var(--frost-line-strong); border-radius: 14px; background: var(--chrome-soft); color: var(--ink); cursor: pointer; text-align: left; box-shadow: 0 6px 18px var(--metal-shadow); transition: translate .2s ease, border-color .2s ease, box-shadow .2s ease; }
.platform-steps button span { font: 500 .66rem var(--mono); color: var(--muted); }
.platform-steps button b { font-weight: 600; font-size: .92rem; }
.platform-steps button[aria-pressed="true"] { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(184,79,28,.12), 0 10px 26px var(--metal-shadow); translate: 6px 0; }
.platform-steps button[aria-pressed="true"] span { color: var(--amber); }
.kb-node { position: absolute; z-index: 1; right: clamp(1rem, 12%, 9rem); top: 50%; translate: 0 -50%; display: grid; gap: .15rem; padding: .9rem 1rem; border: 1px dashed var(--amber); border-radius: 50%; width: 132px; aspect-ratio: 1; place-content: center; text-align: center; background: rgba(255,250,245,.6); }
.kb-node span { font: 500 .62rem var(--mono); color: var(--amber); }
.kb-node b { font-size: .8rem; line-height: 1.25; }
.kb-node small { font-size: .66rem; color: var(--muted); }
.platform-lab[data-step="1"] .kb-node, .platform-lab[data-step="2"] .kb-node { box-shadow: 0 0 0 6px rgba(184,79,28,.08), 0 0 30px var(--amber-glow); }

/* ---------- embedded: boundary ---------- */
.boundary-toggle { display: flex; gap: .45rem; }
.boundary-map { position: relative; display: grid; gap: 1rem; padding: clamp(1.5rem, 3vw, 3rem); }
.boundary-zone { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; padding: 2.4rem 1.2rem 1.2rem; border: 1.5px solid var(--gunmetal); border-radius: 22px; background: rgba(255,255,255,.28); }
.zone-label { position: absolute; top: .8rem; left: 1.2rem; font: 500 .62rem var(--mono); text-transform: uppercase; color: var(--muted); }
.b-node { display: grid; gap: .15rem; padding: .8rem .9rem; border: 1px solid var(--frost-line-strong); border-radius: 12px; background: var(--chrome-soft); box-shadow: 0 4px 12px var(--metal-shadow); }
.b-node b { font-size: .88rem; } .b-node small { font: 400 .64rem var(--mono); color: var(--muted); }
.n-llm { border-color: var(--amber); }
.boundary-out { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; padding: 0 1.2rem; opacity: .45; transition: opacity .3s ease; }
.boundary-map.cross .boundary-out { opacity: 1; }
.contract-card { padding: 1rem 1.1rem; border: 1px solid var(--frost-line-strong); border-radius: 14px; background: #fbfaf6; color: #15181a; box-shadow: 0 10px 24px var(--metal-shadow); transition: opacity .3s ease; }
.contract-card small { font: 500 .6rem var(--mono); text-transform: uppercase; color: var(--amber); }
.contract-card > b { display: block; margin: .2rem 0 .6rem; font-size: .98rem; }
.contract-card dl { margin: 0; display: grid; gap: .3rem; }
.contract-card dl div { display: grid; grid-template-columns: 64px 1fr; gap: .6rem; font-size: .78rem; border-top: 1px solid rgba(10,11,12,.1); padding-top: .3rem; }
.contract-card dt { font: 500 .6rem var(--mono); text-transform: uppercase; color: #65696d; }
.contract-card dd { margin: 0; }
.boundary-rules { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s ease, opacity .3s ease; }
.boundary-map.cross .boundary-rules { max-height: 200px; opacity: 1; }
.boundary-map.cross .contract-card { opacity: .5; }
.boundary-rules li { padding: .5rem .7rem; border-radius: 9px; font-size: .8rem; }
.rule-ok { background: rgba(80,160,110,.12); color: #2f6b45; }
.rule-ok::before { content: "✓ "; }
.rule-block { background: rgba(200,70,50,.1); color: #8a2e1e; }
.rule-block::before { content: "✕ "; }

/* ---------- automation: exploded stack ---------- */
.exploded-stack { position: relative; display: grid; place-items: center; min-height: 560px; padding: 2rem; perspective: 1200px; }
.plate {
  position: absolute; left: 50%; top: 50%; width: min(78%, 420px); padding: 1rem 1.2rem;
  display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: .8rem;
  border: 1px solid var(--frost-line-strong); border-radius: 14px; background: var(--chrome-soft);
  box-shadow: 0 14px 30px var(--metal-shadow), inset 0 1px 0 var(--metal-highlight);
  transform: translate(-50%, -50%) rotateX(52deg) rotateZ(-28deg) translateZ(calc((var(--i) - 2.5) * (14px + 46px * var(--explode, 0))));
  transition: transform .15s linear;
}
.plate span { grid-row: span 2; align-self: center; font: 500 .7rem var(--mono); color: var(--amber); }
.plate b { font-size: .95rem; }
.plate small { color: var(--muted); font-size: .74rem; opacity: var(--explode, 0); }
.exploded-lab[data-flat] .plate { position: relative; left: auto; top: auto; transform: none; margin-bottom: .6rem; width: 100%; }
.exploded-lab[data-flat] .plate small { opacity: 1; }
.exploded-lab[data-flat] .exploded-stack { display: block; min-height: 0; }

/* ---------- automation: banner studio ---------- */
.banner-studio { padding: clamp(1.4rem, 3vw, 2.8rem); }
.banner-studio-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem 2rem; align-items: end; margin-bottom: 1.6rem; }
.banner-studio-head h3 { margin: .8rem 0 .4rem; font: 400 clamp(2rem, 3.4vw, 3.4rem)/.95 var(--serif); letter-spacing: -.03em; }
.banner-studio-head p { margin: 0; max-width: 56ch; color: var(--muted); }
.banner-controls { display: grid; gap: .6rem; justify-items: end; }
.seg { display: flex; flex-wrap: wrap; gap: .35rem; }
.banner-stage { display: grid; grid-template-columns: 1fr 160px; gap: 1.4rem; align-items: center; min-height: 420px; padding: 1.6rem; border-radius: 16px; background: repeating-conic-gradient(rgba(58,64,69,.05) 0 25%, transparent 0 50%) 0 0 / 22px 22px; }
.banner { position: relative; justify-self: center; overflow: hidden; border-radius: 8px; box-shadow: 0 24px 50px rgba(20,24,28,.22); transition: aspect-ratio .4s ease, width .4s ease; container-type: inline-size; }
.banner[data-size="wide"] { width: min(100%, 640px); aspect-ratio: 1200 / 628; }
.banner[data-size="square"] { width: min(100%, 400px); aspect-ratio: 1; }
.banner[data-size="story"] { width: min(100%, 236px); aspect-ratio: 1080 / 1920; }
.banner-art, .banner-art span { position: absolute; }
.banner-art { inset: 0; }
.banner-copy { position: absolute; z-index: 2; display: grid; gap: .5cqw; align-content: center; }
.banner[data-size="wide"] .banner-copy { left: 6%; top: 0; bottom: 0; width: 50%; }
.banner[data-size="square"] .banner-copy { left: 7%; right: 7%; top: 6%; text-align: left; }
.banner[data-size="story"] .banner-copy { left: 9%; right: 9%; top: 7%; }
.banner-copy small { font: 600 clamp(8px, 2.2cqw, 14px) var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.banner-copy strong { font: 900 clamp(14px, 5.6cqw, 42px)/1.06 var(--sans); letter-spacing: -.02em; text-wrap: balance; word-break: keep-all; }
.banner[data-size="story"] .banner-copy strong { font-size: clamp(14px, 11cqw, 40px); }
.banner[data-size="square"] .banner-copy strong { font-size: clamp(14px, 8.6cqw, 40px); }
.banner-copy span { font-size: clamp(8px, 2.5cqw, 16px); opacity: .88; }
.banner[data-size="story"] .banner-copy span { font-size: clamp(8px, 4.6cqw, 15px); }
.banner-copy em { justify-self: start; margin-top: 1.4cqw; padding: .6em 1.2em; border-radius: 999px; font: 700 clamp(8px, 2.4cqw, 15px) var(--sans); font-style: normal; }
.banner[data-size="story"] .banner-copy em { font-size: clamp(8px, 4.6cqw, 14px); }
.safe-frame { position: absolute; inset: 5%; border: 1px dashed rgba(255,255,255,.0); pointer-events: none; z-index: 3; transition: border-color .3s ease; }
.banner-stage:hover .safe-frame { border-color: rgba(255,80,40,.55); }
.banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner[data-product="tp"] { background: #1b8ea0; color: #ffffff; }
.banner[data-product="tp"] .banner-copy strong { font-weight: 900; letter-spacing: -.03em; text-shadow: 0 2px 18px rgba(4,40,60,.35); }
.banner[data-product="tp"] .banner-copy small { color: #d9fbff; }
.banner[data-product="tp"] .banner-copy em { background: #ffffff; color: #0a3d8f; box-shadow: 0 6px 18px rgba(4,40,60,.25); }
.banner[data-product="tp"]::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(3,36,66,.62) 0%, rgba(3,36,66,.5) 42%, rgba(3,36,66,0) 64%);
}
.banner[data-size="square"][data-product="tp"]::before, .banner[data-size="story"][data-product="tp"]::before {
  background: linear-gradient(180deg, rgba(3,36,66,.62) 0%, rgba(3,36,66,.5) 34%, rgba(3,36,66,0) 54%);
}
.banner[data-product="tp"]::after {
  content: "NEW"; position: absolute; z-index: 3; display: grid; place-items: center;
  width: 12cqw; aspect-ratio: 1; border-radius: 50%; right: 4%; top: 6%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #e8f6ff 60%, #c4e2f5);
  color: #0a3d8f; font: 900 clamp(8px, 2.6cqw, 18px) var(--sans); letter-spacing: .04em;
  box-shadow: 0 6px 16px rgba(4,40,60,.25), inset 0 0 0 2px rgba(10,61,143,.15);
}
.banner[data-size="square"][data-product="tp"]::after { top: auto; bottom: 7%; right: auto; left: 6%; width: 14cqw; }
.banner[data-size="story"][data-product="tp"]::after { top: auto; bottom: 6%; right: auto; left: 7%; width: 20cqw; font-size: clamp(8px, 4cqw, 16px); }
.banner[data-product="al"] { background: #120c22; color: #f6efe4; }
.banner[data-product="al"] .banner-copy strong { font-family: var(--serif); font-weight: 400; letter-spacing: .02em; }
.banner[data-product="al"] .banner-copy em { background: #f2b36b; color: #1a1233; }
.banner[data-product="gm"] { background: #142638; color: #ffffff; }
.banner[data-product="gm"] .banner-copy small { color: #ffd23f; }
.banner[data-product="gm"] .banner-copy em { background: #ffd23f; color: #0d1b2a; }
.banner-copy { text-shadow: none; }
.banner[data-size="story"] .banner-copy, .banner[data-size="square"] .banner-copy { align-content: start; }
.banner-qa { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.banner-qa li { display: grid; gap: .1rem; padding: .7rem .8rem; border: 1px solid var(--frost-line-strong); border-radius: 12px; background: rgba(255,255,255,.5); }
.banner-qa span { font: 500 .6rem var(--mono); text-transform: uppercase; color: var(--muted); }
.banner-qa b { font-size: .95rem; color: #2f6b45; }
.banner-qa b.ok::before { content: "✓ "; }
.banner-qa b.bad { color: #b0321e; }
.banner-qa b.bad::before { content: "✕ "; }

/* ---------- automation: throughput ---------- */
.throughput-lab { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 4rem); padding: clamp(1.6rem, 3.6vw, 3.4rem); }
.throughput-copy h3 { display: flex; align-items: baseline; gap: .6rem; margin: .6rem 0 1rem; font: 400 clamp(4rem, 8vw, 7.4rem)/.85 var(--serif); letter-spacing: -.04em; }
.throughput-copy h3 small { font: 500 .72rem var(--mono); letter-spacing: 0; text-transform: uppercase; color: var(--muted); }
.throughput-copy p { margin: 0; color: var(--muted); max-width: 48ch; }
.throughput-controls { display: grid; gap: 1.1rem; align-content: center; }
.throughput-controls label { display: flex; justify-content: space-between; font: 500 .7rem var(--mono); text-transform: uppercase; }
.throughput-controls label b { font-size: 1rem; color: var(--amber); }
.throughput-controls input[type="range"], .frames-scrubber input[type="range"] { width: 100%; accent-color: var(--amber); }
.tp-modes { display: flex; flex-wrap: wrap; gap: .4rem; }
.tp-modes button { display: flex; gap: .5rem; align-items: baseline; }
.tp-result { display: grid; gap: .7rem; padding: 1.1rem; border: 1px solid var(--frost-line-strong); border-radius: 14px; background: rgba(255,255,255,.35); }
.tp-result small { font: 500 .62rem var(--mono); text-transform: uppercase; color: var(--muted); }
.tp-result strong { display: flex; align-items: baseline; gap: .4rem; font: 400 3.2rem/.9 var(--serif); font-variant-numeric: tabular-nums; }
.tp-result strong em { font: 500 .72rem var(--mono); font-style: normal; color: var(--muted); }
.tp-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.tp-bar i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--amber-deep), var(--amber-bright)); transition: width .35s ease; }
.tp-result p { margin: 0; font-size: .8rem; color: var(--muted); }

/* ---------- automation: frames ---------- */
.frames-viewer { display: grid; gap: 1rem; align-content: center; padding: clamp(1.4rem, 3vw, 2.8rem); background: #121417; color: #e6e9eb; }
.frames-stage { position: relative; justify-self: center; width: min(100%, 300px); aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #1a1e22; box-shadow: 0 0 0 6px #1f2328, 0 0 0 7px rgba(255,255,255,.12), 0 30px 60px rgba(0,0,0,.5); }
.frames-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frames-rec { position: absolute; top: 12px; left: 12px; padding: .15rem .45rem; border-radius: 6px; background: rgba(0,0,0,.55); color: #ff6a55; font: 600 .6rem var(--mono); letter-spacing: .1em; }
.frames-rec::before { content: "● "; }
.frames-strip { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.frames-strip i { aspect-ratio: 9 / 16; border-radius: 4px; background: #1a1e22 center / cover no-repeat; border: 1px solid rgba(255,255,255,.08); opacity: .55; transition: border-color .2s ease, transform .2s ease, opacity .2s ease; }
.frames-strip i.on { border-color: var(--amber-bright); transform: translateY(-3px); opacity: 1; }
.frames-scrubber { position: relative; }
.frames-events { position: relative; height: 26px; margin-top: .4rem; }
.frames-events span { position: absolute; top: 0; translate: -50% 0; padding: .1rem .35rem; border-radius: 5px; font: 500 .58rem var(--mono); background: #23282e; color: #cfd4d8; white-space: nowrap; }
.frames-events span.on { background: var(--amber-bright); color: #1a1233; }
.frames-readout { display: grid; grid-template-columns: 70px 1fr; column-gap: 1rem; padding: .9rem 1rem; border-radius: 12px; border: 1px solid rgba(229,234,238,.14); }
.frames-readout span { grid-row: span 2; align-self: center; font: 500 1rem var(--mono); color: var(--amber-bright); font-variant-numeric: tabular-nums; }
.frames-readout b { font-size: 1.05rem; }
.frames-readout small { color: #aeb4b9; }

/* ---------- field systems: parallel crawl board ---------- */
.crawl-board { display: grid; gap: 1rem; align-content: start; padding: clamp(1.4rem, 3vw, 2.6rem); min-width: 0; }
.crawl-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.crawl-workers { display: flex; align-items: center; gap: .35rem; margin-left: auto; font: 500 .62rem var(--mono); text-transform: uppercase; color: var(--muted); }
.crawl-workers button, .crawl-run { appearance: none; min-width: 34px; padding: .4rem .6rem; border: 1px solid var(--frost-line-strong); border-radius: 999px; background: rgba(255,255,255,.4); color: var(--ink); font: 500 .7rem var(--mono); cursor: pointer; }
.crawl-workers button[aria-checked="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.crawl-workers button:focus-visible, .crawl-run:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.crawl-lanes { display: grid; grid-template-columns: repeat(auto-fill, minmax(26px, 1fr)); gap: 4px; }
.crawl-lanes span { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.crawl-lanes span i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--amber-deep), var(--amber-bright)); transition: width .07s linear; }
.crawl-grid { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; }
.crawl-grid i { aspect-ratio: 4 / 3; border-radius: 3px; background: var(--line); transition: background .15s ease; position: relative; }
.crawl-grid i::after { content: ""; position: absolute; left: 18%; right: 18%; top: 22%; height: 18%; border-radius: 1px; background: rgba(255,255,255,.35); }
.crawl-grid i.s-capture, .crawl-legend .s-capture { background: var(--amber-bright); }
.crawl-grid i.s-read, .crawl-legend .s-read { background: #6aa8d8; }
.crawl-grid i.s-review, .crawl-legend .s-review { background: #e0624a; }
.crawl-grid i.s-done, .crawl-legend .s-done { background: var(--gunmetal); }
.crawl-legend .s-queue { background: var(--line); }
.crawl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.crawl-stats div { padding: .6rem .7rem; border: 1px solid var(--frost-line-strong); border-radius: 10px; background: rgba(255,255,255,.35); }
.crawl-stats small { display: block; font: 500 .58rem var(--mono); text-transform: uppercase; color: var(--muted); }
.crawl-stats b { font: 400 1.5rem/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.crawl-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 0; padding: 0; list-style: none; font: 500 .62rem var(--mono); color: var(--muted); }
.crawl-legend li { display: flex; align-items: center; gap: .35rem; }
.crawl-legend i { width: 10px; height: 8px; border-radius: 2px; }
body[data-mode="signal"] .crawl-stats div { background: rgba(255,255,255,.04); }
body[data-mode="signal"] .crawl-grid i.s-done, body[data-mode="signal"] .crawl-legend .s-done { background: #c9d1d8; }

/* ---------- metal (dark) mode ---------- */
body[data-mode="signal"] .contract-card { background: #1c2026; color: #eef0f2; }
body[data-mode="signal"] .contract-card dl div { border-color: rgba(255,255,255,.1); }
body[data-mode="signal"] .contract-card dt { color: #9aa3ad; }
body[data-mode="signal"] .rule-ok { color: #8fe0aa; } body[data-mode="signal"] .rule-block { color: #ff9a85; }
body[data-mode="signal"] .banner-qa b { color: #8fe0aa; }
body[data-mode="signal"] .kb-node { background: rgba(30,34,40,.7); }
body[data-mode="signal"] .b-node, body[data-mode="signal"] .platform-steps button, body[data-mode="signal"] .plate { background: linear-gradient(145deg, #2c3137, #1b1f24); color: var(--ink); box-shadow: 0 8px 20px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06); }
body[data-mode="signal"] .platform-detail, body[data-mode="signal"] .tp-result, body[data-mode="signal"] .banner-qa li, body[data-mode="signal"] .boundary-zone { background: rgba(255,255,255,.04); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .wr-row { grid-template-columns: minmax(130px, 1.2fr) 80px minmax(90px, 1.4fr) 54px; }
  .wr-eta { display: none; }
}
@media (max-width: 900px) {
  .impact-console, .gate-lab, .platform-lab, .boundary-lab, .exploded-lab, .frames-lab, .throughput-lab { grid-template-columns: 1fr; }
  .impact-readouts, .platform-copy, .boundary-copy, .exploded-copy, .frames-copy { border-right: 0; border-bottom: 1px solid var(--frost-line-strong); }
  .ticket-ring { grid-row: auto; }
  .agent-registry { grid-column: auto; }
  .banner-stage { grid-template-columns: 1fr; }
  .banner-qa { grid-template-columns: repeat(3, 1fr); }
  .banner-controls { justify-items: start; }
  .platform-flow { min-height: 0; padding-right: 160px; }
  .warroom-facts { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .crawl-grid { grid-template-columns: repeat(10, 1fr); }
  .crawl-stats { grid-template-columns: 1fr 1fr; }
  .crawl-workers { margin-left: 0; }
  .impact-readouts { grid-template-columns: 1fr 1fr; }
  .impact-readout { padding: 1.1rem; }
  .impact-readout strong { font-size: 2.8rem; }
  .registry-panel { grid-template-columns: 1fr; }
  .registry-dots { max-width: 200px; }
  .wr-row { grid-template-columns: 1fr 70px; row-gap: .4rem; }
  .wr-bar { grid-column: 1 / -1; }
  .wr-pct { display: none; }
  .platform-flow { padding: 1.2rem; }
  .kb-node { position: relative; right: auto; top: auto; translate: none; margin: 1rem auto 0; }
  .platform-wires { display: none; }
  .boundary-zone, .boundary-out, .boundary-rules { grid-template-columns: 1fr; }
  .exploded-stack { min-height: 460px; }
  .plate { width: 88%; }
  .banner-stage { padding: .8rem; min-height: 0; }
  .banner-qa { grid-template-columns: 1fr 1fr 1fr; gap: .4rem; }
  .banner-qa li { padding: .5rem; }
  .frames-strip { grid-template-columns: repeat(5, 1fr); }
  .frames-strip i:nth-child(n+6) { display: none; }
  .manifesto-line { font-size: clamp(2rem, 8.4vw, 3rem); }
}
@media (prefers-reduced-motion: reduce) {
  .manifesto-line .w { opacity: 1; transition: none; }
  .plate, .wr-bar i, .tp-bar i, .ring-seg { transition: none; }
  .gate-lanes li.hold i { animation: none; }
}

/* =========================================================
   Metal material system — real brushed / anodized surfaces
   ========================================================= */
:root {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .02' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --alu:
    var(--grain),
    linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 38%, rgba(0,0,0,.06) 62%, rgba(255,255,255,.18) 100%),
    linear-gradient(100deg, #8b9297 0%, #e9eae7 18%, #b3b8bb 34%, #f7f6f2 50%, #bfc3c5 66%, #eceeec 82%, #868d92 100%);
  --alu-bevel:
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -1px 0 rgba(40,45,50,.35),
    inset 1px 0 0 rgba(255,255,255,.45),
    inset -1px 0 0 rgba(40,45,50,.18),
    0 1px 0 rgba(255,255,255,.7),
    0 4px 10px rgba(30,35,40,.18),
    0 12px 26px rgba(30,35,40,.12);
  --anodized:
    var(--grain),
    linear-gradient(180deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 45%, rgba(0,0,0,.25) 100%),
    linear-gradient(100deg, #1d2125 0%, #3b4248 30%, #23282c 55%, #4a5258 78%, #1a1d20 100%);
  --anodized-bevel:
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 -1px 0 rgba(0,0,0,.6),
    0 1px 0 rgba(255,255,255,.35),
    0 6px 14px rgba(10,12,14,.35);
}
body[data-mode="signal"] {
  --alu:
    var(--grain),
    linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 40%, rgba(0,0,0,.3) 100%),
    linear-gradient(100deg, #2b3136 0%, #59626a 20%, #353c42 40%, #6c757c 55%, #3a4147 72%, #5a636a 86%, #262b2f 100%);
  --alu-bevel:
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -1px 0 rgba(0,0,0,.65),
    inset 1px 0 0 rgba(255,255,255,.08),
    0 1px 0 rgba(255,255,255,.08),
    0 6px 16px rgba(0,0,0,.45);
}

/* shared metal surface */
.wordmark-mark,
.mode-button,
.language-switch,
.button-ghost,
.registry-chips button,
.seg button,
.tp-modes button,
.boundary-toggle button,
.crawl-workers button,
.crawl-run,
.warroom-replay,
.platform-steps button,
.b-node,
.plate,
.banner-qa li,
.crawl-stats div,
.impact-readout,
.kb-node {
  background: var(--alu);
  background-size: 180px 180px, 100% 100%, 100% 100%;
  box-shadow: var(--alu-bevel);
  border-color: rgba(60,66,72,.45);
  backdrop-filter: none;
}
.impact-readout { box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -1px 0 rgba(40,45,50,.18); background-size: 180px 180px, 100% 100%, 100% 100%; }
.kb-node { border-style: solid; border-color: rgba(184,79,28,.55); }

/* engraved type on metal */
.wordmark-mark, .mode-button, .button-ghost, .platform-steps button b, .plate b, .b-node b, .crawl-run, .warroom-replay {
  color: #1d2124;
  text-shadow: 0 1px 0 rgba(255,255,255,.75), 0 -1px 0 rgba(0,0,0,.12);
}
body[data-mode="signal"] .wordmark-mark, body[data-mode="signal"] .mode-button, body[data-mode="signal"] .button-ghost,
body[data-mode="signal"] .platform-steps button b, body[data-mode="signal"] .plate b, body[data-mode="signal"] .b-node b,
body[data-mode="signal"] .crawl-run, body[data-mode="signal"] .warroom-replay {
  color: #eef1f3;
  text-shadow: 0 -1px 0 rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.08);
}

/* the wordmark plate: machined bezel + screws */
.wordmark-mark { border-radius: 4px; font-weight: 600; }
.wordmark-mark::after {
  inset: 3px;
  border: 1px solid rgba(40,45,50,.28);
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
  background: radial-gradient(circle at 4px 4px, rgba(40,45,50,.55) 0 1px, transparent 1.6px) top left / 100% 100% no-repeat,
              radial-gradient(circle at calc(100% - 4px) calc(100% - 4px), rgba(40,45,50,.55) 0 1px, transparent 1.6px) top left / 100% 100% no-repeat;
}

/* selected / pressed state = dark anodized metal */
.language-switch button[aria-pressed="true"],
.registry-chips button[aria-selected="true"],
.seg button[aria-checked="true"],
.tp-modes button[aria-checked="true"],
.boundary-toggle button[aria-pressed="true"],
.crawl-workers button[aria-checked="true"],
.button-primary {
  background: var(--anodized);
  background-size: 180px 180px, 100% 100%, 100% 100%;
  box-shadow: var(--anodized-bevel);
  color: #f3f4f2;
  border-color: #0c0e10;
  text-shadow: 0 -1px 0 rgba(0,0,0,.6);
}
.platform-steps button[aria-pressed="true"] { box-shadow: var(--alu-bevel), 0 0 0 2px rgba(184,79,28,.55); }

/* specular sweep on hover (pointer devices only) */
@media (hover: hover) and (pointer: fine) {
  .wordmark-mark, .mode-button, .button-ghost, .button-primary, .crawl-run, .warroom-replay { position: relative; overflow: hidden; }
  .mode-button::after, .button-ghost::after, .button-primary::after, .crawl-run::after, .warroom-replay::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.65) 48%, rgba(255,255,255,.1) 54%, transparent 62%);
    translate: -120% 0; transition: translate .7s cubic-bezier(.2,.7,.2,1);
  }
  .button-primary::after { background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.22) 48%, transparent 60%); }
  .mode-button:hover::after, .button-ghost:hover::after, .button-primary:hover::after, .crawl-run:hover::after, .warroom-replay:hover::after { translate: 120% 0; }
}

/* footer wordmark: polished chrome letterforms */
.footer-mark {
  background: linear-gradient(180deg, #ffffff 0%, #c9cdcf 22%, #6f777c 48%, #f1f2f0 52%, #a9afb3 74%, #5d6469 100%);
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.5)) drop-shadow(0 6px 10px rgba(20,24,28,.18));
}
@media (prefers-reduced-motion: reduce) {
  .mode-button::after, .button-ghost::after, .button-primary::after, .crawl-run::after, .warroom-replay::after { display: none; }
}

/* ---------- rendering performance ---------- */
.trajectory-section, .experiments-section, .github-section { content-visibility: auto; contain-intrinsic-size: auto 1100px; }

/* =========================================================
   Satin grey override — quiet, low-sheen metal with white type
   ========================================================= */
:root, body[data-mode="signal"] {
  --grain-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85 .015' numOctaves='2' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --alu:
    var(--grain-soft),
    linear-gradient(180deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 42%, rgba(0,0,0,.08) 100%),
    linear-gradient(100deg, #5a6065 0%, #686e73 28%, #61676c 52%, #6b7176 74%, #5c6267 100%);
  --alu-bevel:
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -1px 0 rgba(0,0,0,.28),
    0 1px 2px rgba(20,24,28,.18),
    0 8px 20px rgba(20,24,28,.12);
  --anodized:
    var(--grain-soft),
    linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(0,0,0,.14) 100%),
    linear-gradient(100deg, #2c3034 0%, #363b3f 50%, #2e3236 100%);
  --anodized-bevel:
    inset 0 1px 0 rgba(255,255,255,.1),
    inset 0 -1px 0 rgba(0,0,0,.45),
    0 2px 6px rgba(10,12,14,.25);
}
body[data-mode="signal"] {
  --alu:
    var(--grain-soft),
    linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(0,0,0,.1) 100%),
    linear-gradient(100deg, #3e4448 0%, #4a5055 40%, #43494d 70%, #3c4246 100%);
}
.wordmark-mark, .mode-button, .language-switch, .button-ghost, .registry-chips button, .seg button, .tp-modes button,
.boundary-toggle button, .crawl-workers button, .crawl-run, .warroom-replay, .platform-steps button, .b-node, .plate,
.banner-qa li, .crawl-stats div, .impact-readout, .kb-node {
  background-size: 220px 220px, 100% 100%, 100% 100%;
  border-color: rgba(30,34,38,.55);
  color: #f4f5f3;
}
/* white type, softly embossed */
.wordmark-mark, .mode-button, .button-ghost, .platform-steps button b, .plate b, .b-node b, .crawl-run, .warroom-replay,
.registry-chips button, .seg button, .tp-modes button, .boundary-toggle button, .crawl-workers button,
.impact-readout strong, .crawl-stats b, .kb-node b {
  color: #f4f5f3;
  text-shadow: 0 1px 1px rgba(0,0,0,.28);
}
.language-switch button { color: rgba(244,245,243,.62); }
.language-switch button[aria-pressed="true"] { color: #fff; }
.impact-readout small, .impact-readout span, .crawl-stats small, .banner-qa span, .b-node small, .plate small, .kb-node small,
.platform-steps button span, .kb-node span, .crawl-workers > span {
  color: rgba(236,238,236,.66);
}
.crawl-workers > span { color: var(--muted); }
.platform-steps button[aria-pressed="true"] span, .kb-node span, .plate span { color: #f2a774; }
.banner-qa b, .banner-qa b.ok { color: #a6dcb6; text-shadow: none; }
.banner-qa b.bad { color: #ff9a85; }
.mode-dot { background: #9aa1a6; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 3px rgba(255,255,255,.06); }
.wordmark-mark::after { border-color: rgba(0,0,0,.25); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); background:
  radial-gradient(circle at 4px 4px, rgba(0,0,0,.45) 0 1px, transparent 1.6px) top left / 100% 100% no-repeat,
  radial-gradient(circle at calc(100% - 4px) calc(100% - 4px), rgba(0,0,0,.45) 0 1px, transparent 1.6px) top left / 100% 100% no-repeat; }
/* gentler hover sheen */
@media (hover: hover) and (pointer: fine) {
  .mode-button::after, .button-ghost::after, .crawl-run::after, .warroom-replay::after {
    background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.12) 50%, transparent 62%);
  }
}
.footer-mark {
  background: linear-gradient(180deg, #8d9398 0%, #6a7075 45%, #5a6065 55%, #757b80 100%);
  background-clip: text; -webkit-background-clip: text;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.25));
}

/* =========================================================
   v2.2 — section tags, atlas, speed bands, signature, topo
   ========================================================= */
.section-tags { display: flex; flex-wrap: wrap; gap: .4rem; max-width: 46rem; margin: 0 0 2.2rem; }
.section-tags a {
  display: inline-flex; align-items: baseline; gap: .35rem; padding: .42rem .7rem; border-radius: 999px;
  border: 1px solid rgba(30,34,38,.3); background: rgba(255,255,255,.55); color: var(--ink);
  font: 500 .72rem var(--sans); white-space: nowrap; transition: background .2s ease, color .2s ease, border-color .2s ease, translate .2s ease;
}
.section-tags a span { font: 500 .58rem var(--mono); color: var(--amber); }
.section-tags a b { font-weight: 600; }
.section-tags a:hover, .section-tags a:focus-visible { background: #2c3034; color: #f4f5f3; border-color: #2c3034; translate: 0 -2px; outline: none; }
body[data-mode="signal"] .section-tags a { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.18); }

/* atlas */
.atlas { display: grid; grid-template-columns: minmax(0, 1fr) 280px; grid-template-rows: auto 1fr; gap: 1rem 1.6rem; }
.atlas-filters { grid-column: 1 / -1; display: flex; gap: .4rem; }
.atlas-filters button { appearance: none; padding: .45rem .85rem; border-radius: 999px; border: 1px solid rgba(30,34,38,.3); background: transparent; color: var(--ink); font: 500 .72rem var(--sans); cursor: pointer; }
.atlas-filters button[aria-checked="true"] { background: #2c3034; color: #f4f5f3; border-color: #2c3034; }
.atlas-filters button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.atlas-stage { position: relative; border: 1px solid var(--frost-line-strong); border-radius: 18px 18px 28px 18px; background:
  radial-gradient(circle at 50% 50%, rgba(255,255,255,.5), transparent 70%),
  repeating-linear-gradient(90deg, transparent 0 49px, rgba(58,64,69,.05) 49px 50px),
  repeating-linear-gradient(0deg, transparent 0 49px, rgba(58,64,69,.05) 49px 50px), var(--paper);
  overflow: hidden; contain: layout paint; }
.atlas-map { display: block; width: 100%; height: auto; }
.atlas-axes line { stroke: rgba(30,34,38,.22); stroke-width: 1; stroke-dasharray: 4 6; }
[data-atlas-edges] path { fill: none; stroke: rgba(60,66,72,.22); stroke-width: 1; transition: stroke .2s ease, opacity .2s ease; }
[data-atlas-edges] path.hot { stroke: var(--amber); stroke-width: 1.8; opacity: 1; }
[data-atlas-edges] path.dim { opacity: .25; }
.atlas-node { cursor: pointer; outline: none; transition: opacity .2s ease; }
.atlas-node circle { fill: #2c3034; stroke: #f6f5f2; stroke-width: 2; }
.atlas-node rect { fill: var(--amber); stroke: #f6f5f2; stroke-width: 2; }
.atlas-node text { font: 500 14px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.atlas-node.project text { font-weight: 700; }
.atlas-node.dim { opacity: .22; }
.atlas-node.on circle, .atlas-node.on rect, .atlas-node:focus-visible circle, .atlas-node:focus-visible rect { stroke: var(--amber); stroke-width: 4; }
.atlas-axis { position: absolute; font: 500 .62rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--paper); padding: .15rem .4rem; border-radius: 6px; }
.ax-left { left: .6rem; top: 50%; translate: 0 -50%; }
.ax-right { right: .6rem; top: 50%; translate: 0 -50%; }
.ax-top { top: .6rem; left: 50%; translate: -50% 0; }
.ax-bottom { bottom: .6rem; left: 50%; translate: -50% 0; }
.atlas-detail { align-self: start; display: grid; gap: .5rem; padding: 1.2rem; border-radius: 16px; background: #2c3034; color: #f4f5f3; min-height: 220px; }
.atlas-detail small { font: 500 .6rem var(--mono); text-transform: uppercase; color: #f2a774; }
.atlas-detail b { font-size: 1.2rem; }
.atlas-detail p { margin: 0; color: rgba(244,245,243,.74); font-size: .86rem; }
.atlas-detail ul { margin: .4rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; }
.atlas-detail ul button { appearance: none; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #f4f5f3; padding: .3rem .55rem; border-radius: 999px; font: 500 .7rem var(--sans); cursor: pointer; }
.atlas-detail ul button.project { border-color: rgba(242,167,116,.6); color: #f6c39c; }
body[data-mode="signal"] .atlas-stage { background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.04), transparent 70%), repeating-linear-gradient(90deg, transparent 0 49px, rgba(255,255,255,.04) 49px 50px), repeating-linear-gradient(0deg, transparent 0 49px, rgba(255,255,255,.04) 49px 50px), #15181c; }
body[data-mode="signal"] .atlas-node circle { fill: #c9d0d6; stroke: #15181c; }
body[data-mode="signal"] .atlas-node rect { stroke: #15181c; }
body[data-mode="signal"] .atlas-node text { stroke: #15181c; }
body[data-mode="signal"] .atlas-axis { background: #15181c; }
body[data-mode="signal"] [data-atlas-edges] path { stroke: rgba(255,255,255,.16); }
body[data-mode="signal"] .atlas-axes line { stroke: rgba(255,255,255,.18); }

/* speed bands (after the Lando Norris headline rows) */
.speed-band { overflow: hidden; padding: clamp(2rem, 5vw, 4rem) 0; border-block: 1px solid var(--frost-line); contain: layout paint; }
.band-row { white-space: nowrap; will-change: transform; }
.band-row span { display: inline-block; padding-right: 2rem; }
.band-serif { font: italic 400 clamp(2.6rem, 7vw, 7rem)/1 var(--serif); color: var(--amber); }
.band-sans { margin-top: -.08em; font: 900 clamp(2.6rem, 7vw, 7rem)/1 var(--sans); letter-spacing: -.03em; color: var(--ink); text-transform: uppercase; }
.band-closing .band-sans { -webkit-text-stroke: 1px var(--ink); color: transparent; }

/* signature */
.signature { display: block; width: 220px; height: auto; margin: .4rem 0 1rem; }
.signature path { fill: none; stroke: var(--amber); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.signature.drawn path { transition: stroke-dashoffset 2.2s cubic-bezier(.6,.1,.3,1); stroke-dashoffset: 0; }

/* topographic contours behind dark chapters */
.governance-section, .system-section { position: relative; isolation: isolate; }
.topo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: .5; }
.topo path { stroke: rgba(240,138,60,.12); stroke-width: 1; vector-effect: non-scaling-stroke; }

@media (max-width: 900px) {
  .atlas { grid-template-columns: 1fr; }
  .atlas-stage { overflow-x: auto; }
  .atlas-map { min-width: 760px; }
}
@media (max-width: 720px) {
  .section-tags { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(var(--gutter) * -1); padding-bottom: .4rem; scrollbar-width: none; }
  .section-tags::-webkit-scrollbar { display: none; }
  .atlas-axis { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .signature path { stroke-dashoffset: 0; }
  .band-row { transform: none !important; }
}

/* ---- game banner: game-show key visual lockup ---- */
.banner-ribbon, .banner-plat { display: none; }
.banner[data-product="gm"] .banner-ribbon, .banner[data-product="gm"] .banner-plat { display: inline-block; }
.banner-ribbon[hidden], .banner-plat[hidden] { display: none !important; }
.banner[data-product="gm"]::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(5,8,14,.72) 0%, rgba(5,8,14,.45) 40%, rgba(5,8,14,0) 62%),
              linear-gradient(0deg, rgba(5,8,14,.55), rgba(5,8,14,0) 30%);
}
.banner[data-size="square"][data-product="gm"]::before, .banner[data-size="story"][data-product="gm"]::before {
  background: linear-gradient(180deg, rgba(5,8,14,.72) 0%, rgba(5,8,14,.45) 36%, rgba(5,8,14,0) 58%),
              linear-gradient(0deg, rgba(5,8,14,.5), rgba(5,8,14,0) 24%);
}
.banner[data-product="gm"] .banner-copy { gap: .9cqw; }
.banner[data-product="gm"] .banner-copy small {
  color: #ffcf3d; font: 700 clamp(7px, 1.7cqw, 13px) var(--mono); letter-spacing: .42em;
  text-shadow: 0 0 12px rgba(255,180,40,.45);
}
.banner[data-product="gm"] .banner-copy strong {
  color: #aab8c6;                       /* darkest stop of the fill: used by the contrast check */
  background: linear-gradient(180deg, #ffffff 0%, #e9eef4 38%, #9fb2c4 52%, #f4f7fa 64%, #b9c6d3 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font: 900 clamp(18px, 9.4cqw, 72px)/.95 var(--sans); letter-spacing: .02em; font-style: italic;
  transform: skewX(-6deg); transform-origin: left;
  filter: drop-shadow(0 2px 0 #0b1a2c) drop-shadow(0 0 1px #0b1a2c) drop-shadow(0 6px 14px rgba(0,0,0,.6)) drop-shadow(0 0 18px rgba(60,170,255,.35));
}
body[data-language="en"] .banner[data-product="gm"] .banner-copy strong { font-size: clamp(16px, 7.6cqw, 60px); letter-spacing: -.01em; }
.banner[data-size="square"][data-product="gm"] .banner-copy strong { font-size: clamp(18px, 14cqw, 72px); }
.banner[data-size="story"][data-product="gm"] .banner-copy strong { font-size: clamp(18px, 17cqw, 64px); }
.banner[data-product="gm"] .banner-ribbon {
  justify-self: start; padding: .35em 1em .35em .8em; color: #0d1b2a; background: linear-gradient(90deg, #ffd23f, #ffb020);
  font: 800 clamp(7px, 1.9cqw, 14px) var(--sans); letter-spacing: .06em; clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%);
  box-shadow: 0 0 18px rgba(255,190,40,.35);
}
.banner[data-product="gm"] .banner-copy span[data-banner-sub] { color: #e6edf4; font-weight: 600; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.banner[data-product="gm"] .banner-copy em {
  background: linear-gradient(180deg, #ffe27a, #ffc21a); color: #0d1b2a; border-radius: 6px;
  box-shadow: 0 0 0 2px rgba(255,210,63,.35), 0 8px 20px rgba(0,0,0,.45); text-transform: uppercase; letter-spacing: .04em;
}
.banner[data-product="gm"] .banner-plat {
  justify-self: start; margin-top: .4cqw; padding: .25em .7em; border: 1px solid rgba(230,237,244,.45); border-radius: 4px;
  color: #e6edf4; font: 600 clamp(6px, 1.5cqw, 11px) var(--mono); letter-spacing: .12em; background: rgba(5,8,14,.35);
}
.banner[data-size="story"][data-product="gm"] .banner-ribbon, .banner[data-size="story"][data-product="gm"] .banner-plat { font-size: clamp(7px, 3.4cqw, 12px); }
.banner[data-size="square"][data-product="gm"] .banner-ribbon { font-size: clamp(7px, 2.6cqw, 13px); }
/* game banner: QA fixes — 3 type sizes, stronger copy wash */
.banner[data-product="gm"]::before {
  background: linear-gradient(90deg, rgba(5,8,14,.86) 0%, rgba(5,8,14,.62) 42%, rgba(5,8,14,0) 64%),
              linear-gradient(0deg, rgba(5,8,14,.55), rgba(5,8,14,0) 30%);
}
.banner[data-size="square"][data-product="gm"]::before, .banner[data-size="story"][data-product="gm"]::before {
  background: linear-gradient(180deg, rgba(5,8,14,.86) 0%, rgba(5,8,14,.62) 38%, rgba(5,8,14,0) 60%),
              linear-gradient(0deg, rgba(5,8,14,.5), rgba(5,8,14,0) 24%);
}
.banner[data-product="gm"] .banner-copy strong {
  color: #b9c6d3;
  background: linear-gradient(180deg, #ffffff 0%, #eef2f6 40%, #b9c6d3 52%, #f6f8fa 64%, #c9d4de 100%);
  -webkit-background-clip: text; background-clip: text;
}
.banner[data-product="gm"] .banner-copy small,
.banner[data-product="gm"] .banner-ribbon,
.banner[data-product="gm"] .banner-plat { font-size: clamp(7px, 1.8cqw, 13px); }
.banner[data-product="gm"] .banner-copy span[data-banner-sub],
.banner[data-product="gm"] .banner-copy em { font-size: clamp(8px, 2.5cqw, 16px); }
.banner[data-size="square"][data-product="gm"] .banner-copy small,
.banner[data-size="square"][data-product="gm"] .banner-ribbon,
.banner[data-size="square"][data-product="gm"] .banner-plat { font-size: clamp(7px, 2.6cqw, 13px); }
.banner[data-size="square"][data-product="gm"] .banner-copy span[data-banner-sub],
.banner[data-size="square"][data-product="gm"] .banner-copy em { font-size: clamp(8px, 3.4cqw, 16px); }
.banner[data-size="story"][data-product="gm"] .banner-copy small,
.banner[data-size="story"][data-product="gm"] .banner-ribbon,
.banner[data-size="story"][data-product="gm"] .banner-plat { font-size: clamp(7px, 3.6cqw, 12px); }
.banner[data-size="story"][data-product="gm"] .banner-copy span[data-banner-sub],
.banner[data-size="story"][data-product="gm"] .banner-copy em { font-size: clamp(8px, 4.6cqw, 15px); }

/* signature v2: calligraphic script revealed like handwriting */
.signature { display: inline-grid; width: auto; height: auto; margin: .2rem 0 1rem; position: relative; }
.signature .sig-text {
  font: 400 clamp(4.2rem, 8vw, 6.2rem)/1 "Mrs Saint Delafield", cursive; color: var(--amber-bright, #f08a3c);
  letter-spacing: .01em; padding: 0 .3em 0 .05em; transform: rotate(-4deg); transform-origin: left bottom;
  clip-path: inset(-20% 100% -20% 0); text-shadow: 0 0 18px rgba(240,138,60,.18);
}
.signature .sig-swash { width: 180px; height: auto; margin: -1.4rem 0 0 1.6rem; overflow: visible; }
.signature .sig-swash path { fill: none; stroke: var(--amber-bright, #f08a3c); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .85; }
.signature.drawn .sig-text { transition: clip-path 1.6s cubic-bezier(.55,.1,.35,1); clip-path: inset(-20% -10% -20% 0); }
.signature.drawn .sig-swash path { transition: stroke-dashoffset .9s ease 1.4s; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .signature .sig-text { clip-path: none; }
  .signature .sig-swash path { stroke-dashoffset: 0; }
}

/* ---------- v2.5: platform CI/CD ---------- */
.cicd-lab { position: relative; margin-bottom: 2rem; padding: clamp(1.6rem, 3.6vw, 3.2rem); border: 1px solid var(--frost-line-strong); background: var(--frost-silver-strong); border-radius: 18px 18px 28px 18px; box-shadow: var(--frost-shadow); contain: layout paint; display: grid; gap: 1.6rem; }
.cicd-head h3 { margin: .6rem 0 .8rem; font: 400 clamp(2.2rem, 3.8vw, 4rem)/.95 var(--serif); letter-spacing: -.03em; }
.cicd-head p { margin: 0; max-width: 70ch; color: var(--muted); }
.cicd-controls { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1.1rem; }
.cicd-play { appearance: none; padding: .55rem 1rem; border-radius: 999px; border: 1px solid #0c0e10; background: var(--anodized, #2c3034); background-size: 220px 220px, 100% 100%, 100% 100%; color: #f4f5f3; font: 600 .74rem var(--sans); cursor: pointer; }
.cicd-play:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.cicd-stages { margin: 0; padding: 0; list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .5rem; position: relative; }
.cicd-stages[hidden] { display: none; }
.cicd-stages::before { content: ""; position: absolute; left: 2%; right: 2%; top: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px); }
.cicd-stages li { position: relative; display: grid; gap: .3rem; align-content: start; padding: .2rem .2rem .6rem; opacity: .45; }
.cicd-stages li span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--paper); border: 1px solid var(--frost-line-strong); font: 600 .62rem var(--mono); color: var(--muted); position: relative; z-index: 1; transition: background .3s ease, color .3s ease, box-shadow .3s ease; }
.cicd-stages li.gate span { border-radius: 50%; border-style: dashed; }
.cicd-stages li.env span { width: 54px; }
.cicd-stages li b { font-size: .86rem; }
.cicd-stages li small { font-size: .74rem; color: var(--muted); }
.cicd-stages li.on, .cicd-stages li.done { opacity: 1; }
.cicd-stages li.on span { background: var(--amber); color: #fff; border-color: var(--amber); box-shadow: 0 0 0 6px rgba(184,79,28,.14); }
.cicd-stages li.done span { background: #2c3034; color: #f4f5f3; border-color: #2c3034; }
.cicd-stages li.env.prod.done span { background: #2f6b45; border-color: #2f6b45; }
.cicd-log { display: flex; gap: 1rem; align-items: baseline; margin-top: 1rem; padding: .8rem 1rem; border-radius: 12px; background: #15181c; color: #e6e9eb; font: 500 .8rem var(--sans); }
.cicd-log span { font: 600 .9rem var(--mono); color: var(--amber-bright); font-variant-numeric: tabular-nums; }
.cicd-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin: 0; }
.cicd-facts div { padding: .9rem 1rem; border-top: 2px solid var(--ink); }
.cicd-facts dt { font: 400 2.4rem/1 var(--serif); }
.cicd-facts dd { margin: .3rem 0 0; font-size: .8rem; color: var(--muted); }
body[data-mode="signal"] .cicd-stages li span { background: #1b1f24; }

/* ---------- v2.5: war room internals ---------- */
.wr-arch { margin-top: 1.6rem; display: grid; gap: 1.2rem; color: #e6e9eb; }
.wr-arch-head p:last-child { margin: .3rem 0 0; max-width: 70ch; color: #aeb4b9; }
.wr-arch-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.wr-arch-steps li { display: grid; gap: .3rem; padding: 1rem; border: 1px solid rgba(229,234,238,.16); border-radius: 14px; background: rgba(255,255,255,.03); }
.wr-arch-steps span { font: 600 .62rem var(--mono); color: var(--amber-bright); }
.wr-arch-steps b { font-size: .95rem; }
.wr-arch-steps small { color: #aeb4b9; font-size: .8rem; }
.wr-arch-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 0; }
.wr-arch-facts div { padding: .8rem 1rem; border-top: 2px solid var(--amber-bright); }
.wr-arch-facts dt { font: 400 2.2rem/1 var(--serif); color: #fff; }
.wr-arch-facts dd { margin: .3rem 0 0; font-size: .8rem; color: #aeb4b9; }

/* ---------- v2.5: audio agent ---------- */
.audio-lab { position: relative; margin-bottom: 2rem; display: grid; grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr); border: 1px solid var(--frost-line-strong); background: var(--frost-silver-strong); border-radius: 18px 18px 28px 18px; box-shadow: var(--frost-shadow); overflow: hidden; contain: layout paint; }
.audio-copy { display: flex; flex-direction: column; gap: 1.2rem; padding: clamp(1.8rem, 4vw, 3.6rem); border-right: 1px solid var(--frost-line-strong); }
.audio-copy h3 { margin: 0; font: 400 clamp(2.6rem, 4.4vw, 4.8rem)/.9 var(--serif); letter-spacing: -.035em; }
.audio-copy > p { margin: 0; max-width: 50ch; color: var(--muted); }
.audio-copy .case-facts { margin-top: auto; }
.audio-viewer { display: grid; gap: 1.1rem; align-content: center; padding: clamp(1.4rem, 3vw, 2.8rem); background: #121417; color: #e6e9eb; }
.audio-meter { display: grid; gap: .4rem; }
.meter-scale { display: flex; justify-content: space-between; font: 500 .6rem var(--mono); color: #8f979e; }
.meter-bar { position: relative; height: 14px; border-radius: 99px; background: repeating-linear-gradient(90deg, #23282e 0 3px, #1a1e22 3px 6px); overflow: hidden; }
.meter-bgm { position: absolute; left: 40%; top: -4px; bottom: -4px; width: 2px; background: #e6e9eb; z-index: 1; }
.meter-sfx { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, #f08a3c, #ffd23f); border-radius: 99px; transition: left .4s ease, width .4s ease; }
.meter-sfx.below { background: linear-gradient(90deg, #6aa8d8, #9fc3ff); }
.audio-meter small { color: #8f979e; font-size: .72rem; }
.audio-chain { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.audio-chain li { display: grid; grid-template-columns: 34px 96px 1fr; gap: .6rem; align-items: baseline; padding: .55rem .7rem; border: 1px solid rgba(229,234,238,.1); border-radius: 10px; background: rgba(255,255,255,.025); }
.audio-chain li span { font: 600 .62rem var(--mono); color: var(--amber-bright); }
.audio-chain li b { font-size: .8rem; color: #cfd4d8; }
.audio-chain li em { font-style: normal; font-size: .84rem; }
.audio-chain li.pulse { animation: chain-pulse .5s ease; }
@keyframes chain-pulse { 0% { border-color: rgba(240,138,60,.8); } 100% { border-color: rgba(229,234,238,.1); } }
.audio-viewer .seg button { background: transparent; color: #e6e9eb; border-color: rgba(229,234,238,.3); }
.audio-viewer .seg button[aria-checked="true"] { background: #f4f5f3; color: #121417; }

@media (max-width: 900px) {
  .audio-lab { grid-template-columns: 1fr; }
  .audio-copy { border-right: 0; border-bottom: 1px solid var(--frost-line-strong); }
  .cicd-stages { grid-auto-flow: row; grid-template-columns: 1fr; }
  .cicd-stages::before { display: none; }
  .cicd-stages li { grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: .8rem; }
  .cicd-stages li span { grid-row: span 2; }
  .cicd-facts, .wr-arch-steps { grid-template-columns: 1fr 1fr; }
  .wr-arch-facts { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .audio-chain li { grid-template-columns: 30px 1fr; }
  .audio-chain li em { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .audio-chain li.pulse { animation: none; } }

/* ticket ring: center the readout on the ring itself, not on the whole figure */
.ring-wrap { position: relative; width: min(100%, 300px); aspect-ratio: 1; }
.ring-wrap svg { width: 100%; height: 100%; }
.ticket-ring .ring-center { position: absolute; top: 50%; left: 50%; margin: 0; translate: -50% -50%; }
