/* InvoicePacket public preview — static, no scripts. All motion is CSS/SVG and respects reduced-motion. */
:root {
  color-scheme: light;
  --canvas: #f7f6f2;
  --paper: #fff;
  --ink: #0f1d2e;
  --muted: #56636f;
  --faint: #8b96a1;
  --blue: #2856cf;
  --blue-deep: #1d42a6;
  --blue-soft: #5b82f0;
  --sky: #e9effd;
  --line: #dfe3e3;
  --line-strong: #c9d1d8;
  --green: #2d7a5c;
  --green-bg: #e3f2ea;
  --amber: #9a5810;
  --amber-bright: #e3962f;
  --amber-bg: #fbefdc;
  --violet: #6647c2;
  --violet-bg: #eee9fb;
  --slate: #6b7885;
  --slate-bg: #edf0f2;
  --night: #0b1524;
  --night-2: #13223a;
  --white: #fff;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.2, .9, .25, 1.35);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 88px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
svg { display: block; overflow: visible; }
p, h1, h2, h3, figure { margin: 0; }
a { color: var(--blue); text-underline-offset: .22em; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; border-radius: 4px; }
.container { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: -.01em; }
.skip { position: absolute; top: 12px; left: 24px; padding: 12px 18px; background: var(--ink); color: var(--white); border-radius: 8px; transform: translateY(-200%); z-index: 50; }
.skip:focus { transform: none; }

/* ───────── Header ───────── */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(247, 246, 242, .78);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid rgba(15, 29, 46, .07);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 1.22rem; letter-spacing: -.04em; font-weight: 680; }
.brand-symbol { width: 30px; height: 30px; flex: none; }
.brand-back { fill: var(--blue); opacity: .22; transition: transform .35s var(--ease-out); }
.brand-front { fill: var(--blue); transition: transform .35s var(--ease-out); }
.brand-lines { fill: none; stroke: #fff; stroke-width: 1.5; transition: transform .35s var(--ease-out); }
nav { display: flex; align-items: center; gap: 6px; }
nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px; color: var(--muted); text-decoration: none; font-size: .875rem; font-weight: 540; border-radius: 999px; transition: color .2s, background-color .2s; }
nav a[aria-current="page"] { color: var(--ink); background: rgba(40, 86, 207, .08); }
.motion-control { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--muted); font-size: .8125rem; white-space: nowrap; cursor: pointer; }
.motion-control input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.motion-control:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ───────── Shared type ───────── */
.eyebrow { font-size: .75rem; line-height: 1.5; font-weight: 680; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
h1 { font-size: clamp(2.75rem, 5.6vw, 4.35rem); line-height: 1.02; letter-spacing: -.058em; font-weight: 640; text-wrap: balance; }
h2 { font-size: clamp(1.95rem, 3.4vw, 2.75rem); line-height: 1.12; letter-spacing: -.045em; font-weight: 600; text-wrap: balance; }
h3 { font-size: 1.125rem; line-height: 1.4; letter-spacing: -.025em; font-weight: 640; }
.section-heading { max-width: 44rem; }
.section-heading .eyebrow { margin-bottom: 16px; }
.section-lead { margin-top: 16px; color: var(--muted); font-size: 1.0625rem; max-width: 38rem; }

/* ───────── Buttons ───────── */
.primary-link {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 14px;
  padding: 12px 22px; background: var(--blue); border-radius: 12px; color: var(--white);
  font-size: .9375rem; font-weight: 620; text-decoration: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 24px -12px rgba(40, 86, 207, .8);
  transition: background-color .2s, transform .2s var(--ease-out), box-shadow .2s;
}
.primary-link::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: sheen 5.5s 2.2s ease-in-out infinite;
}
.primary-link svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease-out); }
.ghost-link { display: inline-flex; min-height: 52px; align-items: center; padding: 12px 6px; color: var(--ink); font-size: .9375rem; font-weight: 580; text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1.5px; transition: text-decoration-color .2s, color .2s; }

/* ───────── Hero ───────── */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-backdrop { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.grid-glow {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 55% 60% at 78% 45%, rgba(91, 130, 240, .20), transparent 70%),
    radial-gradient(ellipse 40% 45% at 12% 8%, rgba(227, 150, 47, .10), transparent 70%),
    linear-gradient(rgba(15, 29, 46, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 29, 46, .045) 1px, transparent 1px);
  background-size: auto, auto, 40px 40px, 40px 40px;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.hero-orbits { position: absolute; top: 50%; left: 72%; width: 980px; height: 980px; transform: translate(-50%, -50%); }
.orbit { fill: none; stroke: rgba(40, 86, 207, .16); stroke-width: 1; stroke-dasharray: 2 7; }
.orbit.o2 { stroke: rgba(40, 86, 207, .11); }
.orbit.o3 { stroke: rgba(40, 86, 207, .07); }
.orbit-dot { fill: var(--blue-soft); }
.orbit-dot.amber { fill: var(--amber-bright); }
.orbit-spin { transform-box: view-box; transform-origin: 50% 50%; animation: spin 38s linear infinite; }
.orbit-spin.s2 { animation-duration: 56s; animation-direction: reverse; }
.orbit-spin.s3 { animation-duration: 80s; }

.hero-inner { display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: 56px; padding-block: 84px 92px; }
.hero-copy, .packet-illustration { min-width: 0; }
.hero-copy > * { animation: rise .8s var(--ease-out) backwards; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.hero-copy > :nth-child(6) { animation-delay: .4s; }
.preview-pill {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 26px; padding: 6px 14px 6px 11px;
  border: 1px solid rgba(40, 86, 207, .2); border-radius: 999px; background: rgba(255, 255, 255, .7);
  color: var(--blue); font-size: .78rem; font-weight: 640; letter-spacing: .02em;
  box-shadow: 0 6px 18px -12px rgba(40, 86, 207, .5);
}
.pill-sep { color: var(--faint); }
.pill-muted { color: var(--muted); font-weight: 520; }
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--blue); animation: ping 2.2s var(--ease-out) infinite; }
.h1-accent {
  position: relative; white-space: nowrap;
  background: linear-gradient(100deg, var(--blue) 10%, #6a55d8 55%, var(--blue-soft) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h1-accent::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: .02em; height: .09em; border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--blue-soft));
  transform-origin: left; animation: underline 1s .9s var(--ease-out) backwards;
}
.hero-lead { margin-top: 26px; max-width: 30rem; font-size: 1.32rem; line-height: 1.5; letter-spacing: -.022em; }
.hero-description { margin-top: 14px; max-width: 30rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 32px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 30px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .8125rem; font-weight: 520; }
.hero-facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts svg { width: 16px; height: 16px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Packet illustration */
.packet-illustration { animation: rise 1s .15s var(--ease-out) backwards; }
.packet-illustration figcaption { display: flex; align-items: center; gap: 9px; margin: 0 0 14px 4px; font-size: .75rem; line-height: 1.5; color: var(--muted); font-family: var(--mono); letter-spacing: -.01em; }
.caption-rule { height: 1px; width: 22px; background: #a1adb8; flex: none; }
.packet-scene { position: relative; padding: 64px 70px 58px; }
.float-doc { position: absolute; width: 150px; height: 104px; z-index: 0; }
.fd-tl { top: 0; left: -8px; animation: bob 7s ease-in-out infinite; }
.fd-tr { top: 18px; right: -12px; animation: bob 8s -2s ease-in-out infinite; }
.fd-bl { bottom: 70px; left: -22px; animation: bob 7.5s -4s ease-in-out infinite; }
.fd-br { bottom: 8px; right: -18px; animation: bob 6.5s -1s ease-in-out infinite; }
.doc-card rect:first-child { fill: var(--paper); stroke: #d3dce5; stroke-width: 1; filter: drop-shadow(0 10px 14px rgba(21, 44, 80, .12)); }
.doc-card.ghost rect:first-child { fill: #fffdf9; stroke: var(--amber-bright); stroke-dasharray: 5 4; }
.doc-tag { fill: var(--sky); }
.doc-tag.green { fill: var(--green-bg); }
.doc-tag.amber { fill: var(--amber-bg); }
.doc-tag-text { font-family: var(--mono); font-size: 7.5px; font-weight: 700; letter-spacing: .06em; fill: var(--blue); text-anchor: middle; }
.doc-tag-text.green { fill: var(--green); }
.doc-tag-text.amber { fill: var(--amber); }
.doc-lines { stroke: #e3e8ee; stroke-width: 4; stroke-linecap: round; fill: none; }
.sign-line { fill: none; stroke: #d9c7ad; stroke-width: 1.4; stroke-dasharray: 3 3; stroke-linecap: round; }
.flow { fill: none; stroke: var(--blue-soft); stroke-width: 1.6; stroke-dasharray: 2 5; stroke-linecap: round; animation: dash-flow 1.4s linear infinite; }
.flow.broken { stroke: var(--amber-bright); stroke-dasharray: 3 7; animation-duration: 3s; opacity: .8; }
.flow-end { fill: var(--blue-soft); }
.doc-alert circle { fill: var(--amber-bright); }
.doc-alert path { stroke: #fff; stroke-width: 2.4; stroke-linecap: round; fill: none; }
.doc-alert { transform-box: fill-box; transform-origin: center; animation: nudge 2.6s 3.6s ease-in-out infinite; }

.evidence-sheet {
  position: relative; z-index: 1; overflow: hidden;
  padding: 24px 24px 22px; background: var(--paper);
  border: 1px solid #d8e0e6; border-radius: 16px;
  box-shadow:
    0 -10px 0 -4px #f7fafc, 0 -10px 0 -3px #d4dde5,
    0 -20px 0 -8px #f0f5f8, 0 -20px 0 -7px #d4dde5,
    0 30px 60px -28px rgba(21, 44, 80, .45), 0 12px 24px -18px rgba(21, 44, 80, .25);
}
.scan {
  position: absolute; left: 0; right: 0; top: 0; height: 90px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(91, 130, 240, .10) 70%, rgba(91, 130, 240, .35) 99%, transparent);
  border-bottom: 1px solid rgba(91, 130, 240, .45);
  opacity: 0;
  animation: scan 2.6s .5s ease-in-out 1 both;
}
.sheet-heading { display: flex; align-items: center; gap: 12px; }
.document-symbol { display: grid; place-items: center; width: 40px; height: 46px; border: 1px solid #dbe5f9; border-radius: 8px; background: var(--sky); color: var(--blue); flex: none; }
.document-symbol svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.sheet-heading p { font-size: .9375rem; line-height: 1.45; font-weight: 640; letter-spacing: -.01em; }
.sheet-heading .sub { display: block; margin-top: 2px; font-size: .6875rem; font-weight: 420; color: var(--muted); letter-spacing: 0; }
.invoice-amount { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 22px; padding-bottom: 18px; border-bottom: 1px solid #e5e9ed; }
.invoice-amount span { display: block; font-size: .6875rem; color: var(--muted); }
.invoice-amount strong { display: block; margin-top: 2px; font-size: 1.8rem; line-height: 1.25; letter-spacing: -.045em; font-weight: 640; font-variant-numeric: tabular-nums; }
.invoice-amount .period { text-align: right; }
.invoice-amount .period b { font-family: var(--mono); font-size: .75rem; font-weight: 600; }
.checklist-label { margin-top: 18px; font-size: .625rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 680; }
.evidence-list { list-style: none; padding: 0; margin: 4px 0 0; }
.evidence-list li { display: flex; align-items: center; gap: 10px; padding-block: 12px; border-bottom: 1px solid #edf0f3; }
.evidence-list li:last-child { border-bottom: none; }
.evidence-icon { position: relative; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; flex: none; }
.evidence-icon.confirmed { color: var(--green); background: var(--green-bg); }
.evidence-icon.missing { color: var(--amber); background: var(--amber-bg); }
.evidence-icon svg { grid-area: 1 / 1; width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.evidence-icon .spin { color: var(--blue); opacity: 0; }
.evidence-name { font-size: .78rem; font-weight: 580; line-height: 1.45; }
.evidence-name > span { display: block; font-size: .65rem; font-weight: 420; color: var(--muted); }
.evidence-status { display: grid; margin-left: auto; color: var(--green); font-size: .65rem; font-weight: 680; text-align: right; }
.evidence-status > span { grid-area: 1 / 1; }
.evidence-status .pending { color: var(--blue); opacity: 0; font-weight: 560; }
.missing-text { color: var(--amber); }

/* staged checking sequence: final state is the default; animations only replay the path to it */
.c1 { --d: 1.2s; }
.c2 { --d: 2s; }
.c3 { --d: 2.8s; }
.check .spin { animation: linger var(--d) linear both, spin .8s linear infinite; }
.check .pending { animation: linger var(--d) linear both; }
.check .tick { animation: pop-in .45s var(--d) var(--ease-spring) backwards; }
.check .final { animation: fade-in .35s var(--d) ease-out backwards; }
.check .evidence-icon.confirmed, .check .evidence-icon.missing { animation: icon-bg .45s var(--d) ease-out backwards; }
.check.c3 .evidence-icon.missing::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--amber-bright); animation: ping 2.4s calc(var(--d) + .3s) var(--ease-out) infinite backwards; }
.evidence-list .c3 { animation: row-flag .9s 2.8s ease-out backwards; border-radius: 8px; }

.packet-result { margin-top: 14px; padding: 13px 15px; border: 1px solid #efd8b6; border-radius: 10px; background: #fdf6ea; animation: rise .6s 3.4s var(--ease-out) backwards; }
.result-row { display: flex; justify-content: space-between; align-items: center; }
.result-label { font-size: .625rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 640; }
.not-pct { position: relative; font-family: var(--mono); font-size: .65rem; color: var(--faint); }
.not-pct::after { content: ""; position: absolute; left: -3px; right: -3px; top: 50%; height: 1.5px; background: var(--amber); transform-origin: left; animation: underline .5s 4s ease-out backwards; }
.packet-result strong { display: flex; align-items: center; gap: 7px; margin-top: 4px; color: var(--amber); font-size: .84rem; font-weight: 680; }
.blocked-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--amber-bright); flex: none; }
.blocked-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--amber-bright); animation: ping 2s var(--ease-out) infinite; }
.packet-result p { margin-top: 5px; font-size: .6875rem; line-height: 1.6; color: #725d3e; }

/* ───────── Ticker ───────── */
.ticker { position: relative; overflow: hidden; border-block: 1px solid var(--line); background: var(--paper); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; align-items: center; gap: 26px; width: max-content; padding-block: 16px; animation: marquee 48s linear infinite; }
.ticker span { font-family: var(--mono); font-size: .8rem; color: var(--muted); white-space: nowrap; letter-spacing: -.01em; }
.ticker i { width: 6px; height: 6px; border-radius: 2px; background: var(--blue-soft); opacity: .6; transform: rotate(45deg); flex: none; }

/* ───────── Intro ───────── */
.intro-section { padding-block: 96px 88px; }
.intro-section > .eyebrow { margin-bottom: 22px; }
.intro-content { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.intro-body { color: var(--muted); max-width: 32rem; font-size: 1.0625rem; }
.intro-body p + p { margin-top: 16px; }
.segments { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.segments li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: .875rem; font-weight: 560; box-shadow: 0 4px 14px -10px rgba(21, 44, 80, .4); }
.segments svg { width: 30px; height: 30px; padding: 3px; border-radius: 50%; background: var(--sky); }
.seg-stroke { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.seg-fill { fill: var(--blue); }
.seg-scan { stroke: var(--amber-bright); stroke-width: 1.6; stroke-linecap: round; animation: seg-scan 2.4s ease-in-out infinite alternate; }
.seg-gear { transform-box: fill-box; transform-origin: center; animation: spin 9s linear infinite; }
.seg-wrench { transform-box: fill-box; transform-origin: 30% 70%; animation: wrench 3s ease-in-out infinite; }

/* ───────── Readiness gate (dark) ───────── */
.gate-section { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: #dfe7f3; }
.gate-section::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 45% 60% at 80% 50%, rgba(91, 130, 240, .22), transparent 70%),
    radial-gradient(ellipse 35% 50% at 5% 100%, rgba(227, 150, 47, .10), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px;
}
.gate-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; padding-block: 104px; }
.gate-copy .eyebrow { color: #8fb0ff; margin-bottom: 16px; }
.gate-copy h2 { color: var(--white); }
.gate-copy > p { margin-top: 18px; color: #a9b7ca; font-size: 1.0625rem; max-width: 30rem; }
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; max-width: 30rem; }
.vs-card { padding: 16px 16px 15px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); }
.vs-label { display: block; font-size: .65rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: #7c8ba0; }
.vs-no p { margin-top: 10px; font-size: .8125rem; color: #a3b0c2; }
.vs-no s { text-decoration-color: #e27c6a; text-decoration-thickness: 1.5px; }
.fake-bar { margin-top: 12px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.fake-bar span { display: block; width: 67%; height: 100%; border-radius: inherit; background: repeating-linear-gradient(45deg, #52607a 0 6px, #46536b 6px 12px); }
.vs-yes { border-color: rgba(227, 150, 47, .45); background: linear-gradient(160deg, rgba(227, 150, 47, .16), rgba(227, 150, 47, .04)); }
.vs-yes .vs-label { color: #f0b867; }
.vs-status { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: #ffd08f; font-weight: 680; font-size: 1.05rem; letter-spacing: -.02em; }
.vs-reason { margin-top: 3px; color: #c6a77e; font-size: .75rem; }

.gate-figure { min-width: 0; padding: 22px 22px 18px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .09); background: linear-gradient(180deg, rgba(19, 34, 58, .9), rgba(11, 21, 36, .9)); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06); }
.gate-art { width: 100%; height: auto; }
.gate-figure figcaption { margin-top: 10px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); color: #8e9db2; font-size: .8125rem; }
.lane { stroke: rgba(143, 176, 255, .28); stroke-width: 2; stroke-dasharray: 3 8; stroke-linecap: round; fill: none; animation: dash-flow 1.6s linear infinite; }
.lane-label { fill: #9fb0c8; font-size: 13px; font-weight: 560; letter-spacing: -.01em; }
.checkpoint circle { stroke-width: 2; }
.checkpoint path { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cp-ok circle { fill: rgba(78, 196, 145, .16); stroke: #4ec491; animation: cp-ok 8s linear infinite; }
.cp-ok path { stroke: #7fe0b5; animation: cp-mark 8s linear infinite; }
.cp-miss circle { fill: rgba(227, 150, 47, .18); stroke: var(--amber-bright); animation: cp-miss 8s linear infinite; }
.cp-miss path { stroke: #ffc877; animation: cp-mark 8s linear infinite; }
.cp-miss { transform-box: fill-box; transform-origin: center; }
.cp2 circle, .cp2 path { animation-delay: .35s; }
.cp3 circle, .cp3 path { animation-delay: .7s; }
.token rect { fill: #e9effd; stroke: #8fb0ff; stroke-width: 1.2; }
.token path { stroke: #9ab0d8; stroke-width: 2.4; stroke-linecap: round; }
.token.amber rect { fill: #fff3df; stroke: var(--amber-bright); stroke-dasharray: 4 3; }
.token.amber path { stroke: #d9b88a; }
.token { animation: token 8s var(--ease-out) infinite; }
.t2 { animation-delay: .35s; }
.t3 { animation-delay: .7s; }
.gate-post { fill: #1b2d4b; stroke: rgba(143, 176, 255, .35); }
.gate-bar { stroke: #e27c6a; stroke-width: 3; stroke-dasharray: 10 8; stroke-linecap: round; animation: dash-flow 2.4s linear infinite reverse; }
.gate-lock rect { fill: #2a1d18; stroke: #e27c6a; stroke-width: 2; }
.gate-lock path { fill: none; stroke: #e27c6a; stroke-width: 2.4; stroke-linecap: round; }
.gate-lock circle { fill: #ff9f8a; }
.gate-lock { transform-box: fill-box; transform-origin: center; animation: lock-shake 8s 1s ease-in-out infinite; }
.output rect { fill: rgba(255, 255, 255, .025); stroke: rgba(143, 176, 255, .3); stroke-width: 1.4; stroke-dasharray: 5 5; }
.output-title { fill: #6d7f99; font-size: 14px; font-weight: 640; text-anchor: middle; letter-spacing: -.02em; }
.output-sub { fill: #e27c6a; font-family: var(--mono); font-size: 10.5px; text-anchor: middle; }
.output-link { stroke: rgba(143, 176, 255, .25); stroke-width: 2; stroke-dasharray: 2 5; }

/* ───────── How it works ───────── */
.flow-section { padding-block: 104px 96px; }
.flow-wrap { position: relative; margin-top: 56px; }
.flow-track { position: absolute; top: 27px; left: calc(100% / 12); right: calc(100% / 12); height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); }
.flow-track::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--blue), var(--blue-soft)); transform-origin: left; animation: track-fill 7.2s linear infinite; }
.flow-runner { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(40, 86, 207, .18), 0 0 18px 4px rgba(91, 130, 240, .55); animation: runner-x 7.2s linear infinite; }
.steps { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.step { text-align: center; }
.node {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin-inline: auto;
  border-radius: 18px; background: var(--paper); border: 1px solid var(--line-strong); color: var(--blue);
  box-shadow: 0 10px 22px -16px rgba(21, 44, 80, .6);
  animation: node-glow 7.2s linear infinite;
}
.node svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.s2 .node { animation-delay: 1.2s; }
.s3 .node { animation-delay: 2.4s; }
.s4 .node { animation-delay: 3.6s; }
.s5 .node { animation-delay: 4.8s; }
.s6 .node { animation-delay: 6s; }
.step-num { display: block; margin-top: 18px; font-family: var(--mono); font-size: .72rem; color: var(--faint); }
.step h3 { margin-top: 2px; font-size: 1.02rem; }
.step p { margin-top: 6px; color: var(--muted); font-size: .875rem; line-height: 1.55; }

/* ───────── States ───────── */
.states-section { padding-block: 96px; background: linear-gradient(180deg, #eef2f6, var(--canvas)); border-block: 1px solid var(--line); }
.states { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 48px 0 0; padding: 0; list-style: none; }
.state { position: relative; overflow: hidden; padding: 26px 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.state::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--tone); }
.state-art { width: 56px; height: 56px; }
.state .ring { fill: var(--tone-bg); stroke: var(--tone); stroke-width: 2; }
.state .mark { fill: none; stroke: var(--tone); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.state h3 { margin-top: 18px; }
.state p { margin-top: 6px; color: var(--muted); font-size: .9rem; }
.st-ok { --tone: var(--green); --tone-bg: var(--green-bg); }
.st-miss { --tone: var(--amber-bright); --tone-bg: var(--amber-bg); }
.st-miss .mark { stroke: var(--amber); }
.st-amb { --tone: var(--violet); --tone-bg: var(--violet-bg); }
.st-na { --tone: var(--slate); --tone-bg: var(--slate-bg); }
.draw { stroke-dasharray: 40; animation: draw 3.6s ease-in-out infinite; }
.pulse-ring { fill: none !important; transform-box: fill-box; transform-origin: center; animation: ring-out 2.4s var(--ease-out) infinite; }
.dashed { stroke-dasharray: 6 5; }
.spin-slow { transform-box: fill-box; transform-origin: center; animation: spin 12s linear infinite; }

/* ───────── Principles ───────── */
.approach-section { padding-block: 104px 72px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 48px 0 0; padding: 0; }
.principles li { padding: 18px 18px 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.principle-art { width: 100%; height: auto; aspect-ratio: 240 / 150; border-radius: 12px; background: linear-gradient(160deg, #f1f5fd, #e8eef9); }
.principle-number { display: block; margin: 22px 6px 0; font-family: var(--mono); font-size: .75rem; color: var(--blue); font-weight: 600; }
.principles h3 { margin: 6px 6px 0; }
.principles p { margin: 10px 6px 0; color: var(--muted); font-size: .9375rem; }
/* versions */
.ver rect { fill: var(--paper); stroke: #c9d5ea; stroke-width: 1.2; }
.ver text { font-family: var(--mono); font-size: 12px; font-weight: 700; fill: var(--faint); }
.ver.v3 rect { stroke: var(--blue-soft); filter: drop-shadow(0 8px 12px rgba(40, 86, 207, .18)); }
.ver.v3 text { fill: var(--blue); }
.ver.v3 .ver-date { font-size: 8.5px; font-weight: 500; fill: var(--muted); text-anchor: end; }
.ver.v3 path { stroke: #e3e8f0; stroke-width: 5; stroke-linecap: round; }
.v1 { transform: translate(-22px, 12px); opacity: .55; animation: fan-1 6s ease-in-out infinite; }
.v2 { transform: translate(-11px, 6px); opacity: .8; animation: fan-2 6s ease-in-out infinite; }
.v3 { animation: fan-3 6s ease-in-out infinite; }
/* stamp */
.suggestion rect { fill: #faf8ff; stroke: #a391dd; stroke-width: 1.3; stroke-dasharray: 4 3; }
.suggestion text { font-family: var(--mono); font-size: 10px; fill: var(--violet); text-anchor: middle; }
.suggestion { animation: bob-small 4s ease-in-out infinite; }
.paper { fill: var(--paper); stroke: #c9d5ea; stroke-width: 1.2; }
.paper-lines { stroke: #e3e8f0; stroke-width: 5; stroke-linecap: round; fill: none; }
.stamp rect { fill: var(--blue); }
.stamp rect:nth-child(2) { fill: var(--blue-deep); }
.stamp { animation: stamp 4s ease-in-out infinite; }
.stamp-mark rect { fill: rgba(45, 122, 92, .08); stroke: var(--green); stroke-width: 1.6; }
.stamp-mark text { font-family: var(--mono); font-size: 9px; font-weight: 800; fill: var(--green); text-anchor: middle; letter-spacing: .08em; }
.stamp-mark { transform-box: fill-box; transform-origin: center; animation: stamp-mark 4s ease-in-out infinite; }
/* snapshot */
.snap-frame { fill: var(--paper); stroke: #c9d5ea; stroke-width: 1.2; }
.snap-corner { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; }
.hash { font-family: var(--mono); font-size: 9.5px; fill: var(--muted); }
.snap-lock rect { fill: var(--blue); }
.snap-lock path { fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; transform-box: fill-box; transform-origin: 90% 100%; animation: shackle 5s ease-in-out infinite; }
.flash { fill: #fff; opacity: 0; animation: flash 5s ease-out infinite; }
.snap-corner { animation: focus-in 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

/* ───────── Separate facts ───────── */
.separate-section { padding-block: 24px 88px; }
.separate { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 14px; margin: 0; padding: 0; list-style: none; }
.separate li:not(.neq) { padding: 22px 22px 20px; border-radius: 18px; border: 1px dashed var(--line-strong); background: rgba(255, 255, 255, .55); }
.separate strong { display: block; margin-top: 4px; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.045em; line-height: 1.2; font-weight: 640; }
.sep-kicker { display: block; font-family: var(--mono); font-size: .7rem; color: var(--blue); letter-spacing: -.01em; }
.sep-note { display: block; margin-top: 6px; color: var(--muted); font-size: .875rem; }
.neq { display: grid; place-items: center; font-size: 2rem; color: var(--amber-bright); font-weight: 300; animation: neq 3s ease-in-out infinite; }

/* ───────── Scope ───────── */
.scope-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; margin-bottom: 96px; padding: 40px 44px; border-radius: 24px; background: linear-gradient(135deg, #e9eef8, #f1f0ec); border: 1px solid var(--line); }
.scope-symbol { width: 48px; height: 48px; margin-bottom: 18px; }
.scope-symbol svg { width: 48px; height: 48px; }
.scope-ring { fill: none; stroke: var(--blue); stroke-width: 1.6; opacity: .35; transform-box: fill-box; transform-origin: center; animation: breathe 3.2s ease-in-out infinite; }
.scope-ring.inner { opacity: .7; animation-delay: .4s; }
.scope-core { fill: var(--blue); }
.scope-section h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); }
.scope-copy p { margin-top: 10px; color: var(--muted); }
.not-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
.not-list li { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.not-list li::before { content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--slate-bg) no-repeat center / 10px 10px; background-image: linear-gradient(45deg, transparent 44%, var(--slate) 44% 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, var(--slate) 44% 56%, transparent 56%); }

/* ───────── Footer ───────── */
.site-footer { position: relative; overflow: hidden; background: var(--night); color: #8e9db2; font-size: .8125rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-block: 52px 8px; }
.footer-brand { color: var(--white); font-size: 1.1rem; font-weight: 640; letter-spacing: -.03em; }
.footer-brand > span { display: block; margin-top: 4px; color: #8e9db2; font-size: .875rem; font-weight: 420; letter-spacing: 0; }
.footer-note { margin-top: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: flex-end; }
.site-footer a { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; color: #c4d0e0; text-decoration: none; }
.footer-word { margin: 0; padding: 12px 0 0; text-align: center; font-size: clamp(3.5rem, 15vw, 13rem); line-height: .8; font-weight: 760; letter-spacing: -.07em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(143, 176, 255, .22); background: linear-gradient(180deg, rgba(143, 176, 255, .12), transparent 85%); -webkit-background-clip: text; background-clip: text; transform: translateY(12%); }

/* ───────── Article pages (privacy, 404) ───────── */
.article-page { position: relative; isolation: isolate; overflow: hidden; }
.article-page .hero-backdrop .grid-glow { -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 80%); mask-image: linear-gradient(to bottom, #000 30%, transparent 80%); }
.article-main { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; padding-block: 88px 96px; }
.article-main .eyebrow { margin-bottom: 18px; }
.article-main h1 { font-size: clamp(2.5rem, 5vw, 3.6rem); }
.article-lead { margin-top: 22px; color: var(--ink); font-size: 1.25rem; line-height: 1.55; letter-spacing: -.02em; max-width: 36rem; }
.article-content { margin-top: 36px; padding: 32px 34px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); color: var(--muted); max-width: 44rem; }
.article-content h2 { color: var(--ink); font-size: 1.125rem; margin-bottom: 8px; font-weight: 640; letter-spacing: -.025em; }
.article-content p + h2 { margin-top: 28px; }
.article-content p + p { margin-top: 16px; }
.article-content .fine { padding-top: 18px; border-top: 1px solid var(--line); font-size: .875rem; }
.article-main .primary-link { margin-top: 32px; }
.glance { position: sticky; top: 104px; padding: 24px; border-radius: 20px; background: var(--night); color: #c4d0e0; box-shadow: 0 30px 60px -30px rgba(11, 21, 36, .6); }
.glance-art { width: 72px; height: 72px; margin-bottom: 16px; }
.glance h2 { color: var(--white); font-size: 1rem; letter-spacing: -.02em; }
.glance ul { margin: 14px 0 0; padding: 0; list-style: none; }
.glance li { display: flex; align-items: center; gap: 10px; padding-block: 9px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .875rem; }
.glance li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.5px solid #4ec491; background: radial-gradient(circle, #4ec491 0 3px, transparent 3.5px); }
.shield-body { fill: rgba(91, 130, 240, .14); stroke: #8fb0ff; stroke-width: 2; stroke-linejoin: round; }
.shield-check { fill: none; stroke: #7fe0b5; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; animation: draw 4s ease-in-out infinite; }
.shield-ring { fill: none; stroke: rgba(143, 176, 255, .35); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ring-out 3s var(--ease-out) infinite; }

.not-found { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; min-height: 62vh; }
.lost-art { width: 100%; max-width: 440px; height: auto; margin-inline: auto; }
.lost-folder { fill: #e3eaf8; stroke: #b7c6e4; stroke-width: 1.5; }
.lost-folder-front { fill: #eef2fb; stroke: #b7c6e4; stroke-width: 1.5; }
.lost-page { fill: var(--paper); stroke: #c9d5ea; stroke-width: 1.2; }
.lost-lines { stroke: #e3e8f0; stroke-width: 5; stroke-linecap: round; fill: none; }
.lost-slot { fill: rgba(227, 150, 47, .06); stroke: var(--amber-bright); stroke-width: 2; stroke-dasharray: 7 6; animation: dash-flow 1.8s linear infinite; }
.lost-q { font-size: 40px; font-weight: 700; fill: var(--amber-bright); text-anchor: middle; }
.lost-slot-g { animation: bob-small 3.4s ease-in-out infinite; }
.lost-lens { animation: orbit-lens 7s ease-in-out infinite; }
.lost-lens circle { fill: rgba(255, 255, 255, .5); stroke: var(--blue); stroke-width: 5; }
.lost-lens path { stroke: var(--blue); stroke-width: 8; stroke-linecap: round; }
.lost-shadow { fill: rgba(15, 29, 46, .08); animation: shadow 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

/* ───────── Scroll reveal (progressive enhancement) ───────── */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .states .reveal:nth-child(2), .principles .reveal:nth-child(2) { animation-range: entry 8% entry 63%; }
    .states .reveal:nth-child(3), .principles .reveal:nth-child(3) { animation-range: entry 16% entry 71%; }
    .states .reveal:nth-child(4) { animation-range: entry 24% entry 79%; }
  }
}

/* ───────── Hover ───────── */
@media (hover: hover) and (pointer: fine) {
  nav a:hover { color: var(--ink); background: rgba(15, 29, 46, .05); }
  .brand:hover .brand-back { transform: translate(-2px, 2px); }
  .brand:hover .brand-front, .brand:hover .brand-lines { transform: translate(1px, -1px); }
  .primary-link:hover { background: var(--blue-deep); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 16px 30px -14px rgba(40, 86, 207, .9); }
  .primary-link:hover svg { transform: translateX(3px); }
  .ghost-link:hover { color: var(--blue); text-decoration-color: currentColor; }
  .state:hover, .principles li:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(21, 44, 80, .45); }
  .not-list li:hover { color: var(--ink); }
  .site-footer a:hover { color: var(--white); }
}

/* ───────── Keyframes ───────── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.3); } }
@keyframes linger { 0%, 99.9% { opacity: 1; } 100% { opacity: 0; } }
@keyframes icon-bg { from { background: var(--sky); } }
@keyframes row-flag { 0% { background: rgba(227, 150, 47, 0); } 30% { background: rgba(227, 150, 47, .16); } 100% { background: rgba(227, 150, 47, 0); } }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes underline { from { transform: scaleX(0); } }
@keyframes sheen { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(-1.2deg); } }
@keyframes bob-small { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes dash-flow { to { stroke-dashoffset: -28; } }
@keyframes nudge { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-14deg); } 82% { transform: rotate(12deg); } 88% { transform: rotate(-6deg); } }
@keyframes scan { 0% { transform: translateY(-100%); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(560px); opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes seg-scan { from { transform: translateY(-4px); } to { transform: translateY(4px); } }
@keyframes wrench { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-18deg); } }
@keyframes token {
  0% { transform: translateX(0); opacity: 0; }
  6% { opacity: 1; }
  40%, 88% { transform: translateX(196px); opacity: 1; }
  96%, 100% { transform: translateX(196px); opacity: 0; }
}
@keyframes cp-ok { 0%, 38% { fill: rgba(255, 255, 255, .04); stroke: rgba(143, 176, 255, .3); } 44%, 92% { fill: rgba(78, 196, 145, .16); stroke: #4ec491; } 100% { fill: rgba(255, 255, 255, .04); stroke: rgba(143, 176, 255, .3); } }
@keyframes cp-miss { 0%, 38% { fill: rgba(255, 255, 255, .04); stroke: rgba(143, 176, 255, .3); } 44%, 92% { fill: rgba(227, 150, 47, .18); stroke: #e3962f; } 100% { fill: rgba(255, 255, 255, .04); stroke: rgba(143, 176, 255, .3); } }
@keyframes cp-mark { 0%, 40% { opacity: 0; } 46%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes lock-shake { 0%, 44%, 56%, 100% { transform: translateX(0); } 46% { transform: translateX(-4px); } 48% { transform: translateX(4px); } 50% { transform: translateX(-3px); } 52% { transform: translateX(3px); } 54% { transform: translateX(-1px); } }
@keyframes track-fill { 0% { transform: scaleX(0); } 83.3%, 92% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes runner-x { 0% { left: 0; opacity: 0; } 3% { opacity: 1; } 83.3% { left: 100%; opacity: 1; } 92%, 100% { left: 100%; opacity: 0; } }
@keyframes runner-y { 0% { top: 0; opacity: 0; } 3% { opacity: 1; } 83.3% { top: 100%; opacity: 1; } 92%, 100% { top: 100%; opacity: 0; } }
@keyframes node-glow {
  0% { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 0 0 7px rgba(40, 86, 207, .14), 0 14px 26px -12px rgba(40, 86, 207, .8); transform: translateY(-3px); }
  14% { background: var(--paper); color: var(--blue); border-color: var(--line-strong); box-shadow: 0 10px 22px -16px rgba(21, 44, 80, .6); transform: none; }
}
@keyframes draw { 0% { stroke-dashoffset: 40; } 30%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes ring-out { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes fan-1 { 0%, 100% { transform: translate(-22px, 12px); } 50% { transform: translate(-40px, 20px) rotate(-5deg); } }
@keyframes fan-2 { 0%, 100% { transform: translate(-11px, 6px); } 50% { transform: translate(-18px, 10px) rotate(-2deg); } }
@keyframes fan-3 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(12px, -4px) rotate(1.5deg); } }
@keyframes stamp { 0%, 20% { transform: translateY(0); } 34% { transform: translateY(52px); } 40% { transform: translateY(46px); } 56%, 100% { transform: translateY(0); } }
@keyframes stamp-mark { 0%, 33% { opacity: 0; transform: scale(1.3) rotate(-6deg); } 36% { opacity: 1; transform: scale(1) rotate(-6deg); } 90% { opacity: 1; transform: scale(1) rotate(-6deg); } 100% { opacity: 0; transform: scale(1) rotate(-6deg); } }
@keyframes shackle { 0%, 30% { transform: translateY(-5px); } 42%, 100% { transform: translateY(0); } }
@keyframes flash { 0%, 38% { opacity: 0; } 42% { opacity: .9; } 60%, 100% { opacity: 0; } }
@keyframes focus-in { 0%, 30% { transform: scale(1.08); opacity: .4; } 40%, 100% { transform: scale(1); opacity: 1; } }
@keyframes neq { 0%, 100% { transform: scale(1); opacity: .75; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes reveal { from { opacity: 0; transform: translateY(36px) scale(.985); } }
@keyframes orbit-lens { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(-60px, 30px) rotate(-8deg); } 50% { transform: translate(-20px, 70px) rotate(4deg); } 75% { transform: translate(30px, 30px) rotate(8deg); } }
@keyframes shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.8); opacity: .6; } }

/* ───────── Responsive ───────── */
@media (max-width: 1080px) {
  .hero-inner { gap: 32px; }
  .packet-scene { padding-inline: 48px; }
  .gate-inner { gap: 40px; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 44px; }
  .flow-track { display: none; }
  .states { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 124px; }
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding-block: 10px; }
  .motion-control { grid-column: 2; grid-row: 1; }
  nav { grid-column: 1 / -1; grid-row: 2; width: 100%; justify-content: space-between; }
  nav a { white-space: nowrap; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-block: 56px 72px; }
  .hero-copy { max-width: 620px; }
  .packet-illustration { width: 100%; max-width: 520px; margin-inline: auto; }
  .hero-orbits { left: 50%; top: 72%; }
  .gate-inner { grid-template-columns: 1fr; padding-block: 80px; }
  .principles { grid-template-columns: 1fr; max-width: 560px; }
  .separate { grid-template-columns: 1fr; }
  .neq { transform: rotate(90deg); animation: none; font-size: 1.6rem; line-height: 1; }
  .scope-section { grid-template-columns: 1fr; gap: 24px; }
  .article-main { grid-template-columns: 1fr; gap: 40px; }
  .glance { position: static; max-width: 520px; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 40px); }
  .header-inner { gap: 0 8px; padding-block: 6px; }
  .brand { font-size: 1rem; gap: 7px; }
  .brand-symbol { width: 28px; height: 28px; }
  .motion-control { font-size: .75rem; gap: 6px; padding-inline: 6px; }
  nav { gap: 0; }
  nav a { padding-inline: 10px; }
  h1 { font-size: clamp(2.5rem, 10vw, 3.4rem); }
  .intro-section { padding-block: 64px; }
  .intro-content { grid-template-columns: 1fr; gap: 20px; }
  .desktop-break { display: none; }
  .flow-section, .approach-section, .states-section { padding-block: 72px; }
  .flow-wrap { margin-top: 40px; }
  .steps { grid-template-columns: 1fr; row-gap: 28px; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; text-align: left; }
  .node { grid-row: 1 / 4; margin: 0; }
  .step-num { margin-top: 2px; }
  .flow-track { display: block; top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 12px); }
  .flow-track::before { background: linear-gradient(180deg, var(--blue), var(--blue-soft)); transform-origin: top; animation-name: track-fill-y; }
  .flow-runner { left: 50%; top: 0; margin: -7px 0 0 -7px; animation-name: runner-y; }
  .states { grid-template-columns: 1fr; }
  .scope-section { padding: 28px 22px; margin-bottom: 72px; }
  .not-list { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .article-main { padding-block: 56px 72px; }
  .article-content { padding: 24px 22px; }
}
@keyframes track-fill-y { 0% { transform: scaleY(0); } 83.3%, 92% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 520px) {
  .packet-scene { padding: 54px 18px 46px; }
  .float-doc { width: 112px; height: 78px; }
  .fd-tl { left: -14px; top: 4px; }
  .fd-tr { right: -20px; top: 10px; }
  .fd-bl { display: none; }
  .fd-br { right: -22px; bottom: 0; }
  .evidence-sheet { padding: 20px 16px 18px; }
  .invoice-amount strong { font-size: 1.5rem; }
  .versus { grid-template-columns: 1fr; }
  .gate-figure { padding: 14px 12px 14px; }
  .lane-label { font-size: 19px; }
  .output-title { font-size: 17px; }
  .output-sub { font-size: 13px; }
}
@media (max-width: 390px) {
  .container { width: calc(100% - 32px); }
  nav a { padding-inline: 8px; font-size: .8125rem; }
  .hero-lead { font-size: 1.18rem; }
  .evidence-list li { flex-wrap: wrap; gap: 8px; }
  .evidence-status { width: calc(100% - 34px); margin-left: 34px; text-align: left; }
  .evidence-status > span { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .flow-runner, .scan { display: none; }
}

/* The native checkbox leaves meaningful default states visible, just like reduced motion. */
html:has(#stop-animations:checked) { scroll-behavior: auto; }
:root:has(#stop-animations:checked) *,
:root:has(#stop-animations:checked) *::before,
:root:has(#stop-animations:checked) *::after { animation: none !important; transition: none !important; }
:root:has(#stop-animations:checked) .flow-runner,
:root:has(#stop-animations:checked) .scan { display: none; }
