/* QBREACH landing — editorial dark. One stylesheet, no overrides. */
:root {
  --bg: #060606;
  --panel: #0E0E0D;
  --well: #080808;
  --line: #1F1E1C;
  --line-2: #2A2927;
  --stroke: #3A3936;
  --text: #EDEAE3;
  --text-2: #B8B5AE;
  --muted: #8D8A84;
  --gold: #D7B46A;
  --safe: #A9D8F2;
  --risk: #E8774A;
  --risk-dim: #3B2117;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: dark;
  scrollbar-color: #2A2927 var(--bg);
  interpolate-size: allow-keywords;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--bg); }

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 40px; position: relative; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }
.cap { font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--muted); max-width: 320px; }
.cap b { font-weight: 500; color: var(--text); }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--bg); text-decoration: none; font-size: 14px; }
.skip:focus { top: 16px; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
a:hover > .ic, button:hover > .ic { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav-bar { position: sticky; top: 0; z-index: 50; transition: transform .5s var(--ease), background-color .4s, box-shadow .4s, backdrop-filter .4s; }
.nav-bar.is-scrolled { background: rgba(6, 6, 6, .74); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 1px 0 #1A1918; }
.nav-bar.is-hidden { transform: translateY(-100%); }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 80px; transition: height .4s var(--ease); }
.nav-bar.is-scrolled .nav { height: 64px; }
.word { font-family: var(--serif); font-size: 30px; letter-spacing: -0.01em; text-decoration: none; line-height: 1; justify-self: start; }
.nav-links { display: flex; gap: 32px; font-size: 14px; }
.nav-links a { position: relative; text-decoration: none; color: var(--text-2); padding: 12px 0; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-r { display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 860px) { .nav { grid-template-columns: 1fr auto; } .nav-links { display: none; } }

/* ---------- buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--text); color: var(--bg);
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, transform .6s var(--ease), box-shadow .2s;
}
.pill:hover { background: #fff; }
.pill:active:not(:disabled) { scale: .97; }
.pill:disabled { background: var(--line); color: #6E6B66; cursor: not-allowed; }
.pill-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.pill-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.pill-line { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--stroke); }
.pill-line:hover { background: #151515; }
.ghost-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--stroke); text-decoration: none; font-size: 14px; transition: background-color .2s; }
.ghost-pill:hover { background: #151515; }
.pulse-dot, .status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--safe); display: inline-block; flex: none; box-shadow: 0 0 0 0 rgba(169, 216, 242, .5); animation: ping 2.4s var(--ease-io) infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 7px rgba(169, 216, 242, 0); } }
.underline-tabs { display: flex; gap: 28px; flex-wrap: wrap; }
.underline-tab { background: none; border: 0; padding: 12px 0; font-size: 15px; color: var(--muted); cursor: pointer; border-bottom: 1px solid transparent; transition: color .2s, border-color .3s; }
.underline-tab:hover { color: var(--text-2); }
.underline-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); }
.tag { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.tag-safe { color: var(--safe); box-shadow: inset 0 0 0 1px rgba(169, 216, 242, .35); }
.tag-risk { color: var(--risk); box-shadow: inset 0 0 0 1px rgba(232, 119, 74, .4); }
.tag-plain { color: var(--text-2); box-shadow: inset 0 0 0 1px var(--stroke); }

/* ---------- reveals ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal][data-in] { opacity: 1; transform: none; }
.js [data-reveal="img"] { opacity: 1; transform: none; clip-path: inset(18% 6% 18% 6% round 4px); transition: clip-path 1.4s var(--ease-io); }
.js [data-reveal="img"] img { scale: 1.14; transition: scale 1.8s var(--ease); }
.js [data-reveal="img"][data-in] { clip-path: inset(0 0 0 0 round 4px); }
.js [data-reveal="img"][data-in] img { scale: 1; }

/* ---------- statement ---------- */
.statement { padding: 160px 40px 140px; }
.lit { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.16; letter-spacing: -0.025em; font-weight: 500; max-width: 1100px; text-wrap: pretty; }
.js .lit .w { color: #1F1E1C; transition: color .6s var(--ease); }
.js .lit .w.on { color: var(--text); }
.js .lit .w.d.on { color: #66635D; }

/* ---------- sections ---------- */
.sec { padding-top: 160px; }
.sec-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 40px; align-items: end; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6vw, 92px); line-height: .92; letter-spacing: -0.02em; }
.sec-head p { font-size: 17px; line-height: 1.55; color: var(--text-2); max-width: 440px; }

/* gameplay band */
.band { margin-top: 56px; }
.band-img { overflow: hidden; border-radius: 4px; background: #0C0C0C; }
.band img { width: 100%; height: min(680px, 56vw); object-fit: cover; }
.band figcaption { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 16px; }
.band-cap { max-width: 520px; text-align: right; }

/* incident tool */
.tool { margin-top: 56px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); }
.tool-l { padding: 36px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.tool-r { padding: 28px 36px; }
.tool-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.readout { display: flex; align-items: flex-end; gap: 28px; margin: 48px 0 28px; }
.big-grade { font-family: var(--serif); font-size: 168px; line-height: .72; letter-spacing: -0.03em; min-width: .6em; transition: color .6s var(--ease); }
.tool[data-state="checking"] .big-grade { color: var(--gold); }
.tool[data-state="done"] .big-grade { color: var(--risk); }
.score { font-size: 15px; color: var(--text-2); }
.score b { font-size: 40px; font-weight: 500; letter-spacing: -0.03em; color: var(--text); display: block; line-height: 1; font-variant-numeric: tabular-nums; }
.bar { display: flex; gap: 2px; height: 6px; }
.bar i { flex: 1; background: var(--risk-dim); border-radius: 1px; position: relative; overflow: hidden; }
.bar i::after { content: ""; position: absolute; inset: 0; background: var(--safe); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.bar i.ok::after { transform: none; }
.bar i.bad { background: var(--risk); }
.verdict { font-size: 16px; line-height: 1.55; color: var(--text-2); margin-top: 28px; max-width: 440px; min-height: 3.1em; }
.tool-ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: auto; padding-top: 28px; }
.sig-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.sig-head .mono { font-size: 13px; }
.bytes { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 2px 0; font-family: var(--mono); font-size: 12px; line-height: 1.75; color: #55707E; }
.bytes span { text-align: center; border-radius: 2px; transition: color 1.2s var(--ease), background-color 1.2s var(--ease); }
.bytes span.hot { transition: none; color: var(--gold); background: #1A160E; }
.tool[data-state="done"] .bytes { color: #7E5442; }
.checks { list-style: none; padding: 0; margin-top: 20px; }
.check { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid #1C1B19; font-size: 15px; }
.check:last-child { border-bottom: 0; }
.check-detail { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; font-family: var(--mono); }
.st { font-size: 13px; color: var(--muted); }
.st.ok { color: var(--safe); }
.st.bad { color: var(--risk); }
.st.run { color: var(--gold); }

/* machine */
.launch { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr)); gap: 64px; align-items: center; }
.launch figcaption { margin-top: 14px; }
.launch ol { list-style: none; margin-top: 40px; padding: 0; counter-reset: l; }
.launch li { counter-increment: l; display: grid; grid-template-columns: 40px 1fr; padding: 18px 0; border-top: 1px solid #222120; font-size: 16px; line-height: 1.5; color: #D3D0C9; }
.launch li::before { content: counter(l, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 4px; }
.launch .ctas { margin-top: 36px; }
/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 40px; margin-top: 64px; }
.step { border-top: 1px solid var(--line-2); padding-top: 28px; }
.num { font-family: var(--serif); font-size: 72px; line-height: .8; color: var(--gold); }
.step h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.015em; margin-top: 28px; }
.step p { font-size: 16px; line-height: 1.6; color: var(--text-2); margin-top: 12px; max-width: 360px; }
.credits { display: inline-block; margin-top: 18px; font-size: 12px; color: var(--muted); }
.aside { margin-top: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 40px; padding: 36px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.aside h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.015em; max-width: 440px; line-height: 1.3; }
.aside ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; font-size: 15px; color: var(--text-2); align-content: start; }
.aside li { display: flex; gap: 10px; }
.aside li::before { content: "—"; color: var(--gold); }

/* p2e */
.editions { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 0; margin-top: 64px; border-top: 1px solid #222120; }
.editions > article { padding: 32px 32px 8px 0; }
.editions > article + article { padding-left: 32px; border-left: 1px solid #222120; }
.editions h3 { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: -0.01em; margin-top: 22px; }
.editions p { font-size: 15px; line-height: 1.6; color: var(--text-2); margin-top: 14px; max-width: 380px; }
.editions > article.operative { margin: 24px 0 0 32px; padding: 26px; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); border-left: 0; }
.op-top { display: flex; justify-content: space-between; }
.editions .op-name { font-family: var(--serif); font-size: 56px; line-height: 1; margin-top: 26px; color: var(--text); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.op-rows { margin-top: 18px; }
.op-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid #1C1B19; font-size: 14px; }
.op-rows dt { color: var(--muted); }
.op-rows dd { text-align: right; }
.op-ctas { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 1040px) {
  .editions { grid-template-columns: 1fr 1fr; }
  .editions > article.operative { grid-column: 1 / -1; margin: 32px 0 0; }
}
@media (max-width: 680px) {
  .editions { grid-template-columns: 1fr; }
  .editions > article, .editions > article + article { padding: 28px 0; border-left: 0; }
  .editions > article + article { border-top: 1px solid #222120; }
  .editions > article.operative { padding: 24px; border-top: 0; }
}

/* closing */
.closing { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: end; }
.closing-img { overflow: hidden; border-radius: 4px; background: #000; }
.closing-img img { width: 100%; height: 560px; object-fit: cover; }
.closing-copy p { font-size: 17px; color: var(--text-2); margin: 24px 0 32px; }
.closing figcaption { grid-column: 1; margin-top: -48px; }
@media (max-width: 900px) { .closing { grid-template-columns: 1fr; gap: 40px; } .closing figcaption { margin-top: -24px; } .closing-img img { height: 380px; } }

/* faq */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 40px; }
.qa details { border-top: 1px solid #222120; }
.qa details:last-child { border-bottom: 1px solid #222120; }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 72px; font-size: 19px; letter-spacing: -0.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary span { font-family: var(--mono); color: var(--muted); font-size: 18px; transition: transform .3s var(--ease); }
.qa details[open] summary span { transform: rotate(45deg); color: var(--gold); }
.qa details p { font-size: 16px; line-height: 1.6; color: var(--text-2); padding-bottom: 26px; max-width: 620px; }
details::details-content { height: 0; overflow: clip; transition: height .55s var(--ease), content-visibility .55s allow-discrete; }
details[open]::details-content { height: auto; }

/* footer */
.foot { padding: 180px 40px 40px; }
.foot-word { font-family: var(--serif); font-size: clamp(96px, 21vw, 330px); line-height: .8; letter-spacing: -0.03em; color: #1B1A18; user-select: none; white-space: nowrap; }
.foot-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid #222120; font-size: 14px; color: var(--muted); }
.foot-row nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-row a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; transition: color .2s; }
.foot-row a:hover { color: var(--text); }
.motion { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: none; box-shadow: inset 0 0 0 1px #2C2B28; color: var(--text-2); font-size: 13px; cursor: pointer; }
.motion:hover { background: #151515; }
.motion-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.motion[aria-pressed="false"] .motion-dot { background: transparent; box-shadow: inset 0 0 0 1px var(--muted); }

/* ---------- wallet dialog (rendered by wallet-ui.js) ---------- */
.wallet-dialog { color: var(--text); border: 0; background: var(--panel); width: min(440px, calc(100% - 28px)); padding: 28px; border-radius: 20px; max-height: calc(100svh - 36px); overflow: auto; box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px rgba(0,0,0,.6); font-family: var(--sans); }
.wallet-dialog[open] { animation: wp-up .35s var(--ease) both; }
.wallet-dialog::backdrop { background: rgba(4,4,4,.72); backdrop-filter: blur(6px); }
.wallet-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 12px var(--mono); color: var(--muted); }
.wallet-close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; box-shadow: inset 0 0 0 1px #2C2B28; color: var(--text); font-size: 20px; cursor: pointer; }
.wallet-dialog h2 { font: 400 44px/.95 var(--serif); margin: 26px 0 14px; letter-spacing: -0.01em; }
.wallet-intro { font-size: 14px; line-height: 1.6; color: var(--text-2); }
.wallet-choice { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin-top: 8px; border: 0; border-radius: 14px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); text-decoration: none; font: 15px var(--sans); text-align: left; cursor: pointer; transition: box-shadow .2s; }
.wallet-choice:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.wallet-choice:disabled { opacity: .45; cursor: wait; }
.wallet-choice > strong { flex: 1; font-weight: 500; }
.wallet-choice > small { font-size: 12px; color: var(--muted); }
.wallet-letter { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #1E1D1B; font: 18px var(--serif); }
.wallet-empty { font-size: 14px; line-height: 1.6; color: var(--text-2); padding: 14px 16px; margin-top: 16px; border-radius: 12px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); }
.wallet-connected { padding: 16px; margin-top: 16px; border-radius: 14px; background: var(--well); box-shadow: inset 0 0 0 1px rgba(169,216,242,.35); }
.wallet-connected > span { display: block; font: 12px var(--mono); color: var(--safe); margin-bottom: 10px; }
.wallet-connected code { font: 13px/1.6 var(--mono); word-break: break-all; color: var(--text-2); }
#wallet-feedback { font-size: 13px; line-height: 1.6; color: var(--risk); margin: 12px 0 0; }
#wallet-feedback:empty { display: none; }
.wallet-mobile { display: flex; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 20px; font-size: 14px; }
.wallet-mobile > span { flex-basis: 100%; font: 12px var(--mono); color: var(--muted); }
.wallet-mobile a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--stroke); padding-bottom: 3px; }
.wallet-footer { font-size: 12px; line-height: 1.6; color: var(--muted); margin-top: 20px; }
.wallet-guest { width: 100%; margin-top: 16px; min-height: 44px; border: 0; border-radius: 999px; background: none; box-shadow: inset 0 0 0 1px var(--stroke); color: var(--text); font: 500 14px var(--sans); cursor: pointer; }
.wallet-guest:hover { background: #151515; }
@keyframes wp-up { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* ---------- responsive ---------- */
@media (max-width: 1040px) { .bytes { font-size: 11px; } }
@media (max-width: 760px) {
  .statement { padding: 96px 20px 80px; }
  .sec { padding-top: 104px; }
  .band img { height: 300px; }
  .band-cap { text-align: left; }
  .tool-l { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px; }
  .tool-r { padding: 20px 24px; }
  .big-grade { font-size: 120px; }
  .readout { margin-top: 32px; }
  .bytes { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .aside ul { grid-template-columns: 1fr; }
  .foot { padding: 120px 20px 32px; }
}

/* ---------- reduced motion: everything is simply there ---------- */
html.still [data-reveal], html.still [data-reveal="img"] { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
html.still [data-reveal="img"] img { scale: 1 !important; }
html.still *, html.still *::before, html.still *::after { animation-duration: .001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal="img"] { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  [data-reveal="img"] img { scale: 1 !important; }
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

/* ---------- stage: live 3D scene from the game ---------- */
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes cue { to { top: 100%; } }
.stage { position: relative; height: 560vh; margin-top: -80px; }
.anchor { position: absolute; left: 0; width: 1px; height: 1px; }
.stage-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); }
.stage-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-cv { opacity: 0; transition: opacity 1.4s var(--ease); touch-action: pan-y; }
.stage.is-live .stage-cv { opacity: 1; }
.stage-shade { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(6,6,6,.75) 100%),
  linear-gradient(to bottom, rgba(6,6,6,.55) 0, transparent 18%, transparent 70%, rgba(6,6,6,.9) 100%); }
.stage-shade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,6,6,.85) 0, rgba(6,6,6,.4) 32%, transparent 56%); opacity: var(--left, 1); transition: opacity .8s var(--ease); }
.stage-shade::before { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(6,6,6,.85) 0, rgba(6,6,6,.4) 32%, transparent 56%); opacity: var(--right, 0); transition: opacity .8s var(--ease); }
.stage-ui { position: relative; height: 100%; pointer-events: none; }
.ch { position: absolute; opacity: 0; visibility: hidden; transform: translateY(24px); transition: opacity .7s var(--ease), transform .9s var(--ease), visibility 0s .7s; }
.ch.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .9s var(--ease), transform 1.1s var(--ease), visibility 0s; }
.ch a, .ch button { pointer-events: auto; }
.ch-hero { left: 40px; right: 40px; bottom: 96px; }
.ch-side { top: 50%; width: min(440px, 40%); transform: translateY(calc(-50% + 24px)); }
.ch-side.is-on { transform: translateY(-50%); }
.ch-right { right: 40px; }
.ch-left { left: 40px; }
.ch-machine { left: 40px; bottom: 96px; width: min(560px, 90%); }
.overline { font-size: 14px; color: var(--text-2); max-width: 300px; line-height: 1.5; }
.stage h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(76px, 12vw, 196px); line-height: .84; letter-spacing: -0.025em; margin-top: 24px; text-shadow: 0 6px 40px rgba(0,0,0,.6); }
.stage h1 em, .ch-h em, .h2 em { font-style: italic; color: var(--gold); }
.ch-h em.risk { color: var(--risk); }
.stage h1 .line { display: block; overflow: clip; padding: 0 .12em .1em 0; margin-bottom: -.1em; }
.stage h1 .line > * { display: inline-block; }
.hero-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 32px; align-items: end; margin-top: 44px; max-width: 900px; }
.hero-foot p { font-size: 17px; line-height: 1.55; color: var(--text-2); max-width: 420px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ch-h { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 6.4vw, 104px); line-height: .9; letter-spacing: -0.02em; margin-top: 18px; text-shadow: 0 6px 40px rgba(0,0,0,.6); }
.quote { font-family: var(--mono); font-size: 14px; margin-top: 22px; color: var(--text); }
.ch .t { font-size: 16px; line-height: 1.6; color: var(--text-2); margin-top: 14px; max-width: 440px; }
.temp { font-family: var(--serif); font-size: clamp(64px, 8vw, 128px); line-height: .85; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--gold); margin-bottom: 18px; }
.breach { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 8px 14px; border-radius: 999px; background: rgba(6,6,6,.6); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 12px; transition: box-shadow .4s, color .4s; }
.breach.is-hot { color: var(--risk); box-shadow: inset 0 0 0 1px rgba(232,119,74,.5); }
.breach.is-hot .status-dot { background: var(--risk); animation: none; }
.stage-rail { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; z-index: 2; transition: opacity .6s var(--ease); }
.stage-rail li { display: flex; align-items: center; justify-content: flex-end; gap: 10px; font-size: 13px; color: var(--faint, #4e4b46); padding: 6px 0; transition: color .4s; }
.stage-rail li span { font: 11px var(--mono); }
.stage-rail li::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .5s var(--ease); }
.stage-rail li.is-on { color: var(--text); }
.stage-rail li.is-on::after { width: 36px; background: var(--gold); }
.stage.on-right .stage-rail { opacity: 0; }
.stage-cap { position: absolute; z-index: 2; right: 40px; bottom: 32px; text-align: right; max-width: 340px; }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 20px; width: 44px; height: 56px; margin-left: -22px; display: grid; place-items: center; animation: rise-in 1s var(--ease) 1.2s both; transition: opacity .4s; }
.stage:not(.at-top) .scroll-cue { opacity: 0; pointer-events: none; }
.scroll-cue span { position: relative; width: 1px; height: 40px; background: #2A2927; overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold); animation: cue 2.2s var(--ease-io) infinite; }
.stage-load { position: absolute; left: 50%; top: 18px; translate: -50% 0; }
.no-js .stage { height: auto; }
.no-js .stage-stick { position: relative; }

@media (max-width: 860px) {
  .stage-rail { display: none; }
  .stage-cap { display: none; }
  .ch-side, .ch-side.is-on { top: auto; bottom: 48px; left: 20px; right: 20px; width: auto; transform: none; }
  .ch-side { transform: translateY(24px); }
  .ch-hero, .ch-machine { left: 20px; right: 20px; bottom: 56px; }
  .stage-shade::after, .stage-shade::before { background: linear-gradient(to top, rgba(6,6,6,.95) 0, rgba(6,6,6,.6) 40%, transparent 70%); }
  .stage-shade::after { opacity: 1; }
  .stage-shade::before { opacity: 0; }
  .stage { height: 500vh; }
  .stage h1 { font-size: clamp(60px, 17vw, 96px); }
  .hero-foot { margin-top: 28px; gap: 20px; }
  .hero-foot p { font-size: 15px; }
  .ch-h { font-size: 52px; }
  .ch .t { font-size: 14px; }
  .temp { font-size: 64px; }
}

/* ---------- cursor ---------- */
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor :is(input:not([type=checkbox]):not([type=radio]):not([type=range]), textarea) { cursor: text !important; }
.cursor { position: fixed; left: 0; top: 0; z-index: 2147483647; pointer-events: none; opacity: 0; transition: opacity .25s; }
html.cursor-on .cursor { opacity: 1; }
.cursor-dot { position: fixed; left: 0; top: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--text); will-change: transform; transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), background-color .25s; }
.cursor-ring { position: fixed; left: 0; top: 0; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(237,234,227,.35); will-change: transform; transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), box-shadow .3s, background-color .3s; }
.cursor-label { position: fixed; left: 0; top: 0; will-change: transform; font: 500 11px/1 var(--mono); color: var(--bg); white-space: nowrap; opacity: 0; transition: opacity .2s; }
.cursor-label span { display: block; translate: -50% -50%; }
html.cur-hot .cursor-ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; box-shadow: inset 0 0 0 1px var(--gold); background: rgba(215,180,106,.08); }
html.cur-hot .cursor-dot { background: var(--gold); }
html.cur-label .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: var(--gold); box-shadow: none; }
html.cur-label .cursor-dot { width: 0; height: 0; margin: 0; }
html.cur-label .cursor-label { opacity: 1; }
html.cur-text .cursor-dot { width: 2px; height: 22px; margin: -11px 0 0 -1px; border-radius: 1px; }
html.cur-text .cursor-ring { opacity: 0; }
html.cur-down .cursor-ring { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
html.cur-drag .cursor-ring { width: 72px; height: 44px; margin: -22px 0 0 -36px; border-radius: 22px; }
html:not(.has-cursor) .cursor { display: none; }
