/* AI-ChainGuard project site. Colours = the project's verdicts (same values as the deck and the paper). */

@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Devanagari"; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-devanagari-devanagari-400-normal.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "IBM Plex Sans Devanagari"; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-devanagari-devanagari-600-normal.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --navy: #0F2A44;
  --navy-0: #0A1A2B;
  --navy-1: #0F2A44;
  --navy-2: #143553;
  --navy-line: rgba(217, 226, 236, 0.13);
  --ink: #1C2633;
  --ink-2: #3D4A5A;
  --muted: #5A6676;
  --line: #DCE2E9;
  --paper: #FFFFFF;
  --band: #EEF2EF;
  --paper-2: #E3E9E5;
  --rule: #CFD8D3;
  --film: #06121D;
  --phosphor: #D6F0FF;
  --signal: #FF5B4F;
  --verified: #0E7C86;
  --warning-text: #875900;
  --failed: #B42318;
  --refused: #6B46C1;
  --on-dark: #DCE5EE;
  --on-dark-2: #A9BACB;
  --teal-bright: #2BC4CC;
  --red-bright: #FF8F84;
  --amber-bright: #F2B84B;
  --violet-bright: #B79CFF;
  --head: "Space Grotesk", "IBM Plex Sans", "IBM Plex Sans Devanagari", Arial, sans-serif;
  --sans: "IBM Plex Sans", "IBM Plex Sans Devanagari", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.62 var(--sans); text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--verified); }
:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 2px; border-radius: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; color: var(--navy); }
h2 { font-family: var(--head); font-weight: 700; font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 18px; }
h3 { font-family: var(--head); font-weight: 700; font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.005em; margin-bottom: 10px; }
code, pre { font-family: var(--mono); }
code { font-size: 0.92em; }
sup { line-height: 0; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 12px; z-index: 30; }
.skip:focus { left: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 880px; }
.lede { font-size: 1.1875rem; line-height: 1.55; color: var(--ink-2); max-width: 64ch; }
.note { font-size: 0.9375rem; color: var(--muted); }
.prose { max-width: 72ch; }
.mono { font-family: var(--mono); font-size: 0.9em; }
.cite { font-size: 0.8em; text-decoration: none; color: var(--verified); white-space: nowrap; vertical-align: 1px; }
.cite:hover { text-decoration: underline; }

/* status words: the tool's own vocabulary */
.st { font-family: var(--mono); font-weight: 600; font-size: 0.86em; white-space: nowrap; }
.st-verified { color: var(--verified); }
.st-warning { color: var(--warning-text); }
.st-failed { color: var(--failed); }
.st-refused { color: var(--refused); }

/* header: on security paper */
.top { position: sticky; top: 0; z-index: 20; background: rgba(238, 242, 239, 0.9); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--rule); }
.top-row { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font: 700 1.125rem/1 var(--head); letter-spacing: -0.01em; }
.brand:hover { color: var(--navy); }
.brand svg { width: 30px; height: 30px; }
/* four destinations, centred; the rest of the page is reached by scrolling */
.nav { display: flex; gap: 2px; margin: 0 auto; }
.nav a { padding: 8px 13px; border-radius: 7px; color: var(--ink-2); text-decoration: none; font: 500 0.9375rem/1.2 var(--sans); white-space: nowrap; }
.nav a:hover { color: var(--navy); background: rgba(15, 42, 68, 0.06); }
.nav a[aria-current="true"] { color: var(--navy); background: rgba(14, 124, 134, 0.12); }
.nav .nav-gh { display: none; }
.lang { position: relative; display: inline-flex; align-items: center; color: var(--muted); }
.lang svg { position: absolute; left: 10px; width: 15px; height: 15px; pointer-events: none; }
.lang select { font: 500 0.9063rem/1 var(--sans); color: var(--navy); background: transparent; border: 1px solid var(--rule); border-radius: 7px; padding: 8px 28px 8px 31px; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #5A6676 50%), linear-gradient(135deg, #5A6676 50%, transparent 50%); background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.lang select:hover { border-color: var(--navy); }
.top .gh { background: var(--navy); border: 1px solid var(--navy); color: #fff; }
.top .gh:hover { background: var(--navy-0); color: #fff; }
.menu-btn { display: none; position: relative; width: 40px; height: 38px; padding: 0; border: 1px solid var(--rule); border-radius: 7px; background: transparent; color: var(--navy); cursor: pointer; }
.menu-ic, .menu-ic::before, .menu-ic::after { position: absolute; left: 11px; width: 16px; height: 2px; border-radius: 1px; background: currentColor; transition: transform 0.2s ease, opacity 0.2s ease; }
.menu-ic { top: 17px; }
.menu-ic::before, .menu-ic::after { content: ""; left: 0; }
.menu-ic::before { top: -5px; }
.menu-ic::after { top: 5px; }
.menu-open .menu-ic { background: transparent; }
.menu-open .menu-ic::before { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-ic::after { transform: translateY(-5px) rotate(-45deg); }
.lang select option { color: var(--ink); background: #fff; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 8px; font: 600 0.9688rem/1.2 var(--sans); text-decoration: none; border: 1px solid transparent; white-space: nowrap; cursor: pointer; }
.btn svg { width: 16px; height: 16px; }
.btn-small { padding: 7px 13px; font-size: 0.9063rem; }
.btn-primary { background: var(--teal-bright); color: #062026; border-color: var(--teal-bright); }
.btn-primary:hover { background: #5AD6DC; color: #062026; }
.btn-light { color: #fff; border-color: rgba(217, 226, 236, 0.4); background: rgba(255, 255, 255, 0.04); }
.btn-light:hover { color: #fff; border-color: #fff; }
.btn-ghost { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.section .btn-primary { color: #062026; }
.band .btn-primary, .section:not(.dark) .btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.band .btn-primary:hover, .section:not(.dark) .btn-primary:hover { background: var(--navy-0); color: #fff; }

/* dark sections */
/* dark sections are radiograph film: where things get inspected */
.dark { background-color: var(--film); background-image: radial-gradient(90% 60% at 20% 0%, rgba(43, 196, 204, 0.10), transparent 70%), repeating-linear-gradient(0deg, rgba(214, 240, 255, 0.022) 0 1px, transparent 1px 4px); color: var(--on-dark); }
.dark h2, .dark h3 { color: #fff; }
.dark .lede { color: var(--on-dark); }
.dark .note { color: var(--on-dark-2); }
.dark a { color: #fff; }

/* hero: the bench. Paper (left) is what a signature checks, re-run in the browser; film (right) is what
   the same signed file does when it runs. The seam between them is the paper's claim. */
.hero { background: var(--band); }
.bench { container-type: inline-size; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "ta tb" "pa pb" "ia ib"; }
.b-cell { min-width: 0; position: relative; }
.b-ta, .b-pa, .b-ia { padding-left: max(var(--gutter), calc(50cqw - 600px + var(--gutter))); padding-right: clamp(24px, 3.4cqw, 52px); }
.b-tb, .b-pb, .b-ib { padding-right: max(var(--gutter), calc(50cqw - 600px + var(--gutter))); padding-left: clamp(24px, 3.4cqw, 52px); }
.b-ta { grid-area: ta; padding-top: 52px; display: flex; flex-direction: column; justify-content: flex-end; }
.b-tb { grid-area: tb; padding-top: 52px; display: flex; flex-direction: column; justify-content: flex-end; }
.b-pa { grid-area: pa; padding-top: 26px; }
.b-pb { grid-area: pb; padding-top: 26px; }
.b-ia { grid-area: ia; padding-top: 28px; padding-bottom: 52px; }
.b-ib { grid-area: ib; padding-top: 28px; padding-bottom: 52px; }
.b-paper { background: var(--band); }
.b-film { color: var(--phosphor); background-color: var(--film); background-image: repeating-linear-gradient(0deg, rgba(214, 240, 255, 0.03) 0 1px, transparent 1px 4px); }
.b-film::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: #7FE3EA; box-shadow: 0 0 16px 1px rgba(127, 227, 234, 0.42); pointer-events: none; }
.kicker { font: 500 0.9375rem/1.4 var(--sans); color: var(--verified); margin-bottom: 14px; }
.b-title { margin: 0; font: 700 clamp(2.75rem, 6.5cqw, 6.1rem)/0.96 var(--head); letter-spacing: -0.04em; }
.b-paper .b-title { color: var(--navy); }
.b-film .b-title { color: #fff; }
.hero .lede { font-size: 1.1875rem; margin-bottom: 26px; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.hero .btn-primary:hover { background: var(--navy-0); color: #fff; }

/* the certificate: the checks the browser just re-ran */
.cert { max-width: 560px; background: #FBFCFA; border: 1px solid var(--rule); border-radius: 12px; padding: 18px 20px 14px; box-shadow: 0 34px 60px -44px rgba(15, 42, 68, 0.5); }
.cert-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.cert-id { min-width: 0; padding-top: 4px; }
.cert-tag { margin: 0 0 6px; font: 500 0.875rem/1.4 var(--sans); color: var(--verified); }
.cert.bad .cert-tag { color: var(--failed); }
.cert-file { margin: 0; font: 600 0.9375rem/1.35 var(--mono); color: var(--navy); overflow-wrap: anywhere; }
.cert-seal { flex: none; width: 100px; height: 100px; color: #9AA7B4; transition: color 0.3s ease; }
.cert.ok .cert-seal { color: var(--verified); }
.cert.bad .cert-seal { color: var(--failed); }
.cert-seal.stamp { animation: stamp 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.25); }
@keyframes stamp { 0% { transform: scale(1.22) rotate(-8deg); opacity: 0.2; } 100% { transform: none; opacity: 1; } }
.seal { display: block; width: 100%; height: 100%; }
.seal-micro { font-family: var(--mono); letter-spacing: 0.02em; }
.seal-word { font: 600 15px/1 var(--mono); letter-spacing: 0.06em; }
.cert-lines { margin: 12px 0 0; }
.cl { display: grid; grid-template-columns: 8.4rem minmax(0, 1fr); gap: 4px 12px; padding: 9px 0; border-top: 1px solid var(--rule); }
.cl dt { font-size: 0.875rem; line-height: 1.45; color: var(--muted); }
.cl dd { margin: 0; display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; align-items: start; }
.cv { min-width: 0; display: flex; flex-direction: column; }
.cv .m { font-size: 0.9375rem; line-height: 1.4; color: var(--ink); font-weight: 600; }
.cv .m.mono { font: 600 0.8438rem/1.45 var(--mono); color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv .s { font-size: 0.8125rem; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.cl.bad .cv .m, .cl.bad .cv .s { color: var(--failed); }
.cl.wait .cv .m { color: var(--muted); font-weight: 400; }
.mk { position: relative; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; border: 1.5px solid var(--rule); }
.cl.ok .mk { background: var(--verified); border-color: var(--verified); }
.cl.ok .mk::after { content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cl.bad .mk { background: var(--failed); border-color: var(--failed); }
.cl.bad .mk::before, .cl.bad .mk::after { content: ""; position: absolute; left: 6px; top: 2.5px; width: 2px; height: 8px; background: #fff; transform: rotate(45deg); }
.cl.bad .mk::after { transform: rotate(-45deg); }
.cl.wait .mk { border-style: dashed; animation: spin 1.4s linear infinite; }
.cl.na .mk { border-style: dashed; }
@keyframes spin { to { transform: rotate(360deg); } }
.cert-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--rule); }
.verdict { margin: 0; display: flex; align-items: baseline; gap: 12px; }
.verdict-k { font-size: 0.875rem; color: var(--muted); }
.verdict-w { font: 600 1.5rem/1.1 var(--mono); letter-spacing: 0.05em; color: var(--muted); }
.cert.ok .verdict-w { color: var(--verified); }
.cert.bad .verdict-w { color: var(--failed); }
.tamper { font: 600 0.875rem/1.2 var(--sans); color: var(--failed); background: transparent; border: 1px solid rgba(180, 35, 24, 0.5); border-radius: 6px; padding: 8px 12px; cursor: pointer; }
.tamper:hover:not(:disabled) { background: rgba(180, 35, 24, 0.07); border-color: var(--failed); }
.tamper[aria-pressed="true"] { background: var(--failed); border-color: var(--failed); color: #fff; }
.tamper[aria-pressed="true"]:hover:not(:disabled) { background: #8F1C13; }
.tamper:disabled { opacity: 0.5; cursor: default; }
.cert-byte { flex-basis: 100%; margin: 0; font: 0.8125rem/1.4 var(--mono); color: var(--failed); }
.cert-byte:empty { display: none; }
.cert-note { max-width: 560px; margin: 14px 0 0; font-size: 0.875rem; line-height: 1.55; color: var(--ink-2); }
.cert-files { max-width: 560px; margin: 8px 0 0; font-size: 0.875rem; line-height: 1.55; color: var(--muted); }

/* the instrument: what the same bytes read */
.instrument { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 28px; align-items: center; }
.pad-box { position: relative; }
.pad { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 8px; background: #091A28; box-shadow: 0 0 0 1px rgba(214, 240, 255, 0.16), 0 24px 50px -30px rgba(0, 0, 0, 0.8); touch-action: none; cursor: crosshair; }
.pad-box.off .pad { cursor: not-allowed; }
.pad-hint { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 20px; text-align: center; pointer-events: none; font: 500 1rem/1.4 var(--sans); color: rgba(214, 240, 255, 0.72); transition: opacity 0.25s ease; }
.pad-box.inked .pad-hint, .pad-box.off .pad-hint { opacity: 0; }
.reading { min-width: 0; }
.reading-k { margin: 0; font-size: 0.9375rem; color: rgba(214, 240, 255, 0.72); }
.reading-v { margin: 0; font: 700 clamp(5.5rem, 10cqw, 9.5rem)/0.94 var(--head); letter-spacing: -0.04em; color: #fff; font-variant-numeric: tabular-nums; transition: color 0.2s ease, text-shadow 0.2s ease; }
.reading.fired .reading-v { color: var(--signal); text-shadow: 0 0 34px rgba(255, 91, 79, 0.5); }
.reading.blocked .reading-v { color: rgba(214, 240, 255, 0.3); }
.reading-n { margin: 6px 0 14px; min-height: 4.35em; font-size: 0.9375rem; line-height: 1.45; color: var(--phosphor); }
.reading.fired .reading-n { color: var(--red-bright); }
.bars { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; max-width: 230px; }
.bar { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.track { position: relative; display: block; width: 100%; height: 40px; overflow: hidden; border-radius: 2px; background: rgba(214, 240, 255, 0.1); }
.fill { position: absolute; inset: 0; transform-origin: 50% 100%; transform: scaleY(0); background: rgba(214, 240, 255, 0.55); transition: transform 0.25s ease; }
.bar.peak .fill { background: #fff; }
.bar.fire .fill { background: var(--signal); }
.lab { font: 600 0.75rem/1 var(--mono); color: rgba(214, 240, 255, 0.55); }
.bar.peak .lab { color: #fff; }
.bar.fire .lab { color: var(--signal); }
.pad-src { margin: 12px 0 0; min-height: 1.45em; font-size: 0.875rem; line-height: 1.45; color: rgba(214, 240, 255, 0.72); font-variant-numeric: tabular-nums; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ctl { display: inline-flex; align-items: center; gap: 9px; font: 600 0.875rem/1.2 var(--sans); color: var(--phosphor); background: transparent; border: 1px solid rgba(214, 240, 255, 0.34); border-radius: 6px; padding: 9px 13px; cursor: pointer; }
.ctl:hover:not(:disabled) { color: #fff; border-color: var(--phosphor); }
.ctl:disabled { opacity: 0.4; cursor: default; }
.ctl-trig { border-color: rgba(255, 91, 79, 0.75); }
.ctl-trig .sw { width: 12px; height: 12px; border-radius: 2px; border: 1.5px solid var(--signal); }
.ctl-trig[aria-pressed="true"] { background: var(--signal); border-color: var(--signal); color: var(--film); }
.ctl-trig[aria-pressed="true"]:hover:not(:disabled) { color: var(--film); border-color: #fff; }
.ctl-trig[aria-pressed="true"] .sw { background: var(--film); border-color: var(--film); }
.b-film :focus-visible { outline-color: #7FE3EA; }
.tally { margin: 16px 0 0; max-width: 62ch; font-size: 0.9688rem; line-height: 1.55; color: var(--phosphor); }
.tally b { color: #fff; font-weight: 600; }
.pad-note { margin: 10px 0 0; max-width: 62ch; font-size: 0.8125rem; line-height: 1.5; color: rgba(214, 240, 255, 0.6); }

.term-body { font-family: var(--mono); font-size: 0.875rem; line-height: 1.6; color: var(--on-dark); }
.term-body .l { display: block; white-space: pre-wrap; min-height: 1.6em; padding-left: 9ch; text-indent: -9ch; }
.term-body .cmd { color: #fff; }
.term-body .ok { color: var(--teal-bright); font-weight: 600; }
.term-body .bad { color: var(--red-bright); font-weight: 600; }
.term-body .wrn { color: var(--amber-bright); font-weight: 600; }
.term-body .skp, .term-body .dim { color: var(--on-dark-2); }

.facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.fact { padding: 24px 22px 32px 0; display: flex; flex-direction: column; gap: 6px; }
.fact + .fact { padding-left: 22px; border-left: 1px solid var(--rule); }
.fact b { font: 700 clamp(1.6rem, 1.1rem + 1.3vw, 2.25rem)/1.05 var(--head); color: var(--navy); letter-spacing: -0.02em; white-space: nowrap; }
.fact-bad b { color: var(--failed); }
.fact span { font-size: 0.9063rem; line-height: 1.45; color: var(--ink-2); }

/* sections */
.section { padding: 96px 0; }
.band { background: var(--band); }
.section-head { margin-bottom: 40px; }
.subhead { margin-top: 64px; font-size: 1.5rem; }

/* problem */
.split-head { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.sticky-head { position: sticky; top: 104px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px; }
.timeline li::before { content: ""; position: absolute; left: -36px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--failed); }
.timeline li.law::before { border-color: var(--navy); }
.timeline time { display: block; font: 600 0.875rem/1.3 var(--mono); color: var(--failed); margin-bottom: 4px; }
.timeline li.law time { color: var(--navy); }
.timeline p { margin: 0; font-size: 1.0625rem; }
.gap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.gap-card { border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px; background: #fff; }
.gap-card p { margin: 0; color: var(--ink-2); }
.gap-card-bad { background: #FDF3F2; border-color: #F3C9C4; }
.gap-card-bad h3 { color: var(--failed); }

/* how */
.chain { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 58px; }
.stage { position: relative; background: #FBFCFA; border: 1px solid var(--rule); border-top: 3px solid var(--navy); border-radius: 10px; padding: 18px 18px 20px; }
/* the link between stages is the parent's digest, signed inside the child */
.stage:not(:last-child)::after { content: "sha256"; position: absolute; top: 50%; left: 100%; width: 58px; margin-top: -18px; padding-bottom: 6px; text-align: center; font: 600 0.6875rem/1 var(--mono); color: var(--verified); border-bottom: 2px solid var(--verified); }
.stage:not(:last-child)::before { content: ""; position: absolute; top: 50%; left: calc(100% + 50px); margin-top: -5px; border: 5px solid transparent; border-left: 8px solid var(--verified); border-right: 0; }
.stage-n { display: block; font-size: 0.8125rem; color: var(--muted); }
.stage strong { display: block; font: 700 1.125rem/1.3 var(--head); color: var(--navy); margin-bottom: 8px; }
.role { display: inline-block; font-family: var(--mono); font-size: 0.8125rem; color: var(--verified); background: #E6F4F5; border-radius: 4px; padding: 1px 7px; margin-bottom: 10px; }
.stage p { margin: 0; font-size: 0.9375rem; color: var(--ink-2); }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 64px; border-top: 2px solid var(--navy); }
.feature { padding: 20px 24px 4px 0; }
.feature + .feature { padding-left: 24px; border-left: 1px solid var(--rule); }
.feature p { margin: 0; font-size: 0.9688rem; color: var(--ink-2); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.code { margin: 0 0 14px; background: #F6F8FA; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: 0.8438rem; line-height: 1.55; color: var(--ink); }
.bib { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.8125rem; }
.code-dark { background: #071523; border-color: var(--navy-line); color: var(--on-dark); }
.code-dark .dim { color: var(--on-dark-2); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 8px; }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
thead th { font-weight: 600; color: var(--navy); background: #F6F8FA; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 600; color: var(--navy); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.compare { min-width: 940px; }
.compare td:last-child, .compare th:last-child { background: #E9F5F6; color: var(--navy); font-weight: 500; }

/* demo */
.demo-section { padding-bottom: 72px; }
.demo { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.demo-attacks { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 88px; }
.attack-group { display: flex; flex-direction: column; gap: 8px; }
.attack-group h3 { font-size: 0.9375rem; font-family: var(--sans); font-weight: 600; color: var(--red-bright); margin-bottom: 2px; }
.attack-group-before h3 { color: var(--amber-bright); }
.attack { text-align: left; font: 500 0.9063rem/1.35 var(--sans); color: var(--on-dark); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--navy-line); border-left: 3px solid rgba(255, 143, 132, 0.7); border-radius: 8px; padding: 10px 12px; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease; }
.attack-group-before .attack { border-left-color: rgba(242, 184, 75, 0.8); }
.attack:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }
.attack[aria-pressed="true"] { background: rgba(43, 196, 204, 0.14); border-color: var(--teal-bright); color: #fff; }
.attack.reset { border-left-color: var(--teal-bright); text-align: center; }
.attack:disabled { opacity: 0.6; cursor: progress; }
.demo-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.demo-chain { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 14px 34px; padding: 18px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--navy-line); border-radius: 12px; min-height: 196px; }
.demo-chain svg.edges { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.node { position: relative; z-index: 1; text-align: left; font: inherit; color: var(--on-dark); background: #0B2036; border: 1px solid var(--navy-line); border-top: 3px solid var(--on-dark-2); border-radius: 10px; padding: 10px 12px; cursor: pointer; min-width: 0; }
.node:hover { border-color: rgba(217, 226, 236, 0.4); }
.node[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--teal-bright); }
.node .n-name { display: block; font: 600 0.8125rem/1.3 var(--mono); color: #fff; overflow-wrap: anywhere; }
.node .n-type { display: block; font-size: 0.8125rem; color: var(--on-dark-2); }
.node .n-dig { display: block; font: 400 0.75rem/1.4 var(--mono); color: var(--on-dark-2); margin-top: 4px; overflow-wrap: anywhere; }
.node .n-st { display: inline-block; margin-top: 6px; font: 600 0.75rem/1 var(--mono); padding: 4px 7px; border-radius: 4px; background: rgba(217, 226, 236, 0.12); color: var(--on-dark); }
.node.s-VERIFIED { border-top-color: var(--teal-bright); } .node.s-VERIFIED .n-st { background: rgba(43, 196, 204, 0.16); color: var(--teal-bright); }
.node.s-FAILED { border-top-color: var(--red-bright); } .node.s-FAILED .n-st { background: rgba(255, 143, 132, 0.16); color: var(--red-bright); }
.node.s-WARNING { border-top-color: var(--amber-bright); } .node.s-WARNING .n-st { background: rgba(242, 184, 75, 0.16); color: var(--amber-bright); }
.node.s-DEPLOYED { border-top-color: var(--teal-bright); } .node.s-DEPLOYED .n-st { background: var(--teal-bright); color: #062026; }
.node.s-BLOCKED { border-top-color: var(--red-bright); } .node.s-BLOCKED .n-st { background: var(--red-bright); color: #2A0905; }
.demo-panels { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 20px; }
.demo-panel { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--navy-line); border-radius: 12px; padding: 16px 18px 18px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.panel-head h3 { font-size: 0.9688rem; font-family: var(--sans); font-weight: 600; margin: 0; }
.digits { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.digit { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px; border-radius: 6px; border: 1px solid transparent; }
.digit canvas { width: 100%; max-width: 44px; aspect-ratio: 1; image-rendering: pixelated; border-radius: 3px; background: #000; }
.digit span { font: 600 0.75rem/1 var(--mono); color: var(--on-dark-2); }
.digit.poisoned { border-color: var(--amber-bright); background: rgba(242, 184, 75, 0.1); }
.digit.poisoned span { color: var(--amber-bright); }
.digit.changed { border-color: var(--red-bright); background: rgba(255, 143, 132, 0.12); }
.digit.changed span { color: var(--red-bright); }
#demo-explain { margin: 0; color: var(--on-dark); font-size: 0.9688rem; }
.demo-term { background: #071523; border: 1px solid var(--navy-line); border-radius: 8px; padding: 12px 14px; font-size: 0.8125rem; max-height: 470px; overflow: auto; }
.gateway { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.gate { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.9688rem; }
.gate .chip { font: 600 0.8125rem/1 var(--mono); padding: 6px 9px; border-radius: 5px; }
.chip-ok { background: var(--teal-bright); color: #062026; }
.chip-bad { background: var(--red-bright); color: #2A0905; }
.measured { border: 1px solid rgba(255, 143, 132, 0.45); background: rgba(255, 143, 132, 0.08); border-radius: 8px; padding: 10px 12px; font-size: 0.9375rem; }
.measured b { color: var(--red-bright); font-family: var(--head); font-size: 1.25rem; }
.demo-note { margin: 20px 0 0; max-width: 90ch; }

/* charts */
.chart-card { margin: 0 0 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 20px 14px; }
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--sans); }
.chart-card figcaption { margin-top: 8px; font-size: 0.9375rem; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; padding: 0; list-style: none; font-size: 0.875rem; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 7px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.legend i.dot { border-radius: 50%; }
.tip { position: absolute; z-index: 5; pointer-events: none; background: var(--navy-0); color: #fff; font-size: 0.8125rem; line-height: 1.4; padding: 7px 10px; border-radius: 6px; max-width: 280px; opacity: 0; transform: translate(-50%, calc(-100% - 10px)); transition: opacity 0.1s ease; }
.tip.on { opacity: 1; }
.tip b { font-family: var(--mono); }
.proves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin: 32px 0 24px; }
/* the two kinds of evidence, drawn like the hero: certificate paper and radiograph film */
.proves > div { border-radius: 12px; padding: 22px 24px 12px; }
.proves > div:first-child { background: #FBFCFA; border: 1px solid var(--rule); }
.proves > div:last-child { background-color: var(--film); background-image: repeating-linear-gradient(0deg, rgba(214, 240, 255, 0.03) 0 1px, transparent 1px 4px); color: var(--phosphor); }
.proves > div:last-child h3 { color: #fff; }
.proves > div:last-child .ticks.no li::before { background: var(--signal); box-shadow: 0 0 8px rgba(255, 91, 79, 0.6); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 24px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 2px; background: var(--verified); }
.ticks.no li::before { background: var(--failed); }
.bypass { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.bypass li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 0.9375rem; }
.bypass b { font-family: var(--mono); color: var(--navy); }
.bypass .mono { color: var(--failed); font-weight: 600; white-space: nowrap; }
.bypass li::after { content: "FAILED"; display: none; }

/* cost */
.facts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.facts-grid div { padding: 14px 0; border-top: 1px solid var(--line); }
.facts-grid dt { font-size: 0.9375rem; color: var(--muted); }
.facts-grid dd { margin: 0; font-size: 1.0625rem; }
.facts-grid b { font-family: var(--head); color: var(--navy); font-weight: 700; }

/* dashboard */
.shots { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.shots figure { margin: 0; }
.shot { display: block; width: 100%; padding: 0; border: 1px solid var(--navy-line); border-radius: 8px; overflow: hidden; background: none; cursor: zoom-in; }
.shot img { display: block; width: 100%; transition: transform 0.25s ease; }
.shot:hover img { transform: scale(1.02); }
.shots figcaption { margin-top: 10px; font-size: 0.9375rem; color: var(--on-dark-2); }
.shots figcaption b { color: #fff; }
.run { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); }
.lightbox::backdrop { background: rgba(5, 13, 22, 0.86); }
.lightbox img { display: block; max-width: 100%; max-height: 88vh; border-radius: 8px; }
.lb-close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(5, 13, 22, 0.75); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }

/* limits, paper, sources, team */
.limits { margin: 0; padding-left: 1.2em; }
.limits li { margin-bottom: 14px; padding-left: 4px; color: var(--ink-2); }
.paper { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.paper-title { font-size: 1.375rem; line-height: 1.3; margin: 6px 0 8px; }
/* the brief's six phases, in order, and where each deliverable lives */
.deliver { margin-top: 64px; }
.deliver h3 { font-size: 1.375rem; margin-bottom: 8px; }
.deliver-lede { max-width: 72ch; color: var(--ink-2); }
.phases { list-style: none; counter-reset: ph; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 22px 0 0; padding: 0; border-top: 2px solid var(--navy); }
.phases li { counter-increment: ph; display: flex; flex-direction: column; gap: 6px; padding: 18px 22px 22px 0; border-bottom: 1px solid var(--rule); }
.phases li:not(:nth-child(3n + 1)) { padding-left: 22px; border-left: 1px solid var(--rule); }
.ph { font: 700 1.0625rem/1.3 var(--head); color: var(--navy); }
.ph::before { content: counter(ph); display: inline-block; min-width: 1.6em; font: 600 0.875rem/1 var(--mono); color: var(--verified); }
.pd { font-size: 0.9375rem; line-height: 1.55; color: var(--ink-2); }
.authors { color: var(--muted); }
.refs { margin: 0; padding-left: 2.2em; font-size: 0.9375rem; color: var(--ink-2); }
.refs li { margin-bottom: 10px; padding-left: 4px; }
.refs li:target { background: #FFF6D6; border-radius: 4px; }
.refs a { overflow-wrap: anywhere; }
.team { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.team li { border-top: 3px solid var(--navy); padding-top: 14px; }
.team b { display: block; font: 700 1.0625rem/1.3 var(--head); color: var(--navy); margin-bottom: 4px; }
.team span { color: var(--muted); font-size: 0.9688rem; }
.foot { background: var(--navy-0); color: var(--on-dark-2); padding: 44px 0 52px; font-size: 0.9063rem; }
.foot p { max-width: 96ch; }

/* responsive */
@media (max-width: 1100px) {
  .split-head { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .sticky-head { position: static; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact:nth-child(4) { padding-left: 0; border-left: 0; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature:nth-child(3) { padding-left: 0; border-left: 0; }
  .feature:nth-child(n+3) { margin-top: 18px; border-top: 1px solid var(--rule); }
  .demo { grid-template-columns: minmax(0, 1fr); }
  .demo-attacks { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-attacks .reset { grid-column: 1 / -1; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .lang { margin-left: auto; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 6px var(--gutter) 18px; background: var(--band); border-bottom: 1px solid var(--rule); box-shadow: 0 24px 40px -28px rgba(15, 42, 68, 0.45); }
  .menu-open .nav { display: flex; }
  .nav a { padding: 15px 2px; border-radius: 0; border-bottom: 1px solid var(--rule); font-size: 1.0625rem; }
  .nav a:hover, .nav a[aria-current="true"] { background: transparent; color: var(--verified); }
  .nav .nav-gh { display: block; border-bottom: 0; color: var(--navy); font-weight: 600; }
}
@media (max-width: 1100px) {
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phases li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .phases li:nth-child(2n) { padding-left: 22px; border-left: 1px solid var(--rule); }
}
@media (max-width: 600px) {
  .phases { grid-template-columns: minmax(0, 1fr); }
  .phases li:nth-child(2n) { padding-left: 0; border-left: 0; }
}
@media (max-width: 860px) {
  .bench { grid-template-columns: minmax(0, 1fr); grid-template-areas: "ta" "pa" "tb" "pb" "ib" "ia"; }
  .b-cell.b-ta, .b-cell.b-pa, .b-cell.b-ia, .b-cell.b-tb, .b-cell.b-pb, .b-cell.b-ib { padding-left: var(--gutter); padding-right: var(--gutter); }
  .b-ta { padding-top: 40px; }
  .b-pa { padding-bottom: 40px; }
  .b-tb { padding-top: 36px; }
  .b-ib { padding-bottom: 40px; }
  .b-ia { padding-top: 32px; padding-bottom: 44px; }
  .b-film::before { display: none; }
  .b-tb::before { display: block; left: 0; right: 0; top: -1px; bottom: auto; width: auto; height: 2px; }
  .chain { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .stage:not(:last-child)::after { top: 100%; left: 28px; width: auto; height: 38px; margin-top: 0; padding: 0 0 0 10px; display: flex; align-items: center; text-align: left; border-bottom: 0; border-left: 2px solid var(--verified); }
  .stage:not(:last-child)::before { top: calc(100% + 30px); left: 24px; margin-top: 0; border: 5px solid transparent; border-top: 8px solid var(--verified); border-bottom: 0; }
  .gap-grid, .cols, .proves, .bypass, .run, .paper, .demo-panels { grid-template-columns: minmax(0, 1fr); }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-chain { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 600px) {
  .feature, .feature + .feature, .feature:nth-child(3) { padding: 16px 0 4px; border-left: 0; }
  .feature + .feature { margin-top: 0; border-top: 1px solid var(--rule); }
  :root { --gutter: 16px; }
  body { font-size: 1rem; }
  .top-row { gap: 10px; }
  .brand span { display: none; }
  .gh span { display: none; }
  .section { padding: 64px 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact, .fact + .fact { padding: 18px 12px 22px 0; border-left: 0; }
  .features, .facts-grid, .shots, .team { grid-template-columns: minmax(0, 1fr); }
  .demo-attacks { grid-template-columns: minmax(0, 1fr); }
  .digits { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .term-body { font-size: 0.75rem; }
  .cert { padding: 14px 14px 12px; }
  .cert-seal { width: 76px; height: 76px; }
  .cl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .instrument { grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); gap: 16px; }
  .reading-n { min-height: 0; font-size: 0.875rem; }
  .bars { gap: 2px; }
  .track { height: 30px; }
  .ctl { padding: 9px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Hindi: Devanagari needs room above and below the line, and no negative tracking */
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3 { letter-spacing: 0; }
:lang(hi) .b-title { line-height: 1.3; letter-spacing: 0; font-size: clamp(2.2rem, 4.6cqw, 4.4rem); }
:lang(hi) h2 { line-height: 1.32; }
:lang(hi) h3 { line-height: 1.45; }
:lang(hi) body { line-height: 1.8; }
/* German compounds: let long words break at syllables in running text */
:lang(de) p, :lang(de) li, :lang(de) td, :lang(de) th, :lang(de) figcaption { hyphens: auto; }
.chart-key { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; margin: 8px 0 0; font-size: 0.8125rem; line-height: 1.5; color: var(--ink-2); }
.chart-key dt { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.chart-key dd { margin: 0; }

/* demo: the hash lens */
.lens { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--navy-line); }
.lens:empty { display: none; }
.lens-title { margin: 0 0 12px; font-size: 0.875rem; color: var(--on-dark-2); }
.lens-pair { display: flex; flex-wrap: wrap; gap: 20px; }
.lens-fig { margin: 0; }
.lens-fig canvas { display: block; width: 104px; height: 104px; image-rendering: pixelated; border-radius: 4px; background: rgba(214, 240, 255, 0.05); box-shadow: 0 0 0 1px var(--navy-line); }
.lens-fig figcaption { margin-top: 7px; font-size: 0.8125rem; line-height: 1.4; color: var(--on-dark-2); }
.lens-fig code { display: block; font-size: 0.75rem; color: var(--on-dark); }
.lens-diff { margin: 12px 0 0; font-size: 0.9375rem; line-height: 1.5; }
.lens.bad .lens-diff { color: var(--red-bright); }
.lens.ok .lens-diff { color: var(--teal-bright); }

/* where you are: the scanner line under the header follows the reading position */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; transform-origin: 0 50%; transform: scaleX(0); background: #2BC4CC; box-shadow: 0 0 10px rgba(43, 196, 204, 0.55); pointer-events: none; }


/* dashboard tour */
.tour { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 8px; }
.tour-frame { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--navy-line); background: #0b1422; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.8); }
.tour-frame video { display: block; width: 100%; height: auto; cursor: pointer; }
.tour-play { position: absolute; right: 12px; bottom: 12px; font: 600 0.8125rem var(--sans); color: var(--on-dark); background: rgba(6, 18, 29, 0.78); border: 1px solid var(--navy-line); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.tour-play:hover { color: #fff; border-color: var(--teal-bright); }
.tour-steps { list-style: none; margin: 0; padding: 0; counter-reset: tour; display: grid; gap: 8px; }
.tour-steps li { counter-increment: tour; }
.tour-steps button { position: relative; display: block; width: 100%; text-align: left; font: 0.9375rem/1.45 var(--sans); color: var(--on-dark-2); background: transparent; border: 1px solid var(--navy-line); border-radius: 10px; padding: 11px 14px 13px 46px; cursor: pointer; overflow: hidden; }
.tour-steps button::before { content: counter(tour); position: absolute; left: 14px; top: 11px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--on-dark-2); font: 600 0.75rem/20px var(--sans); text-align: center; color: var(--on-dark-2); }
.tour-steps button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--teal-bright); transform-origin: left; transform: scaleX(var(--p, 0)); }
.tour-steps button b { color: var(--on-dark); }
.tour-steps button:hover { border-color: var(--on-dark-2); }
.tour-steps button.on { color: var(--on-dark); background: rgba(43, 196, 204, 0.08); border-color: rgba(43, 196, 204, 0.55); }
.tour-steps button.on::before { color: var(--film); background: var(--teal-bright); border-color: var(--teal-bright); }
.tour-steps button.on b { color: #fff; }
@media (max-width: 900px) { .tour { grid-template-columns: minmax(0, 1fr); gap: 18px; } }

/* folded reference material */
details.more { margin-top: 28px; border-top: 1px solid var(--line); }
details.more > summary { cursor: pointer; list-style: none; padding: 16px 0; display: flex; align-items: center; gap: 12px; font: 600 1rem var(--sans); color: var(--navy); }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--verified); border-bottom: 2px solid var(--verified); transform: rotate(-45deg); transition: transform 0.15s; }
details.more[open] > summary::before { transform: rotate(45deg); }
details.more > summary .subhead, details.more > summary h3 { margin: 0; }
details.more > summary:hover { color: var(--verified); }

.foot-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 18px; }
.foot-links a { font-weight: 600; }
.foot-links a { color: var(--on-dark); }
details.more { margin-top: 44px; }
.tour { margin-bottom: 56px; }
