/* maqpna.com scenes: the MAQPNA mark as a gateway. Loaded after paper.css.
   The mark stands as an extruded arch on a ledger-ruled platform; agent calls
   are small slabs that pass through its opening or stop at its face. Line
   art in ink, one accent (ledger teal), labelled like a technical drawing.
   Drawn by site-src/build.py (iso_gate, gate_scene, gate_emblem). No inline
   styles (CSP); reduced motion shows every drawing in its final state. */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ------------------------------------------------------------------ isometric parts */
.scene, .emblem svg { display: block; width: 100%; height: auto; overflow: visible; }
.p-top { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.p-side { stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.p-l { fill: var(--surface-sunk); }
.p-r { fill: var(--line-strong); }
.p-rule { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.lane { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 2 6; stroke-linecap: round; opacity: 0.75; }
.gate .g-side { fill: var(--ink); }
.gate .g-face { fill: var(--accent); stroke: var(--ink); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.tok polygon { stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.tok .s-t { fill: var(--paper); }
.tok .s-l { fill: var(--accent-soft); }
.tok .s-r { fill: var(--accent); }
.note text { font: 400 11px var(--font-mono); fill: var(--text-2); }
.note .n-h { font-weight: 600; fill: var(--text); letter-spacing: 0.04em; }
.note .lead { fill: none; stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 2 3; }
.note-a .n-h { fill: var(--status-allow); }
.note-d .n-h { fill: var(--status-deny); }

/* calls move along the lane: 1 world unit = (0.866, 0.5) on screen */
.mv { --x0: -138.56px; --y0: -80px; --x1: 129.9px; --y1: 75px; }
.mv-b { --x1: -22.52px; --y1: -13px; --x2: -95.26px; --y2: -55px; }
.emblem .mv { --x0: -73.6px; --y0: -42.5px; --x1: 64.95px; --y1: 37.5px; }
.js .mv { opacity: 0; }
.js .mv-a { animation: mv-a 4.8s linear infinite, vis-back 4.8s step-end infinite; }
.js .mv-a.mv-front { animation: mv-a 4.8s linear infinite, vis-front 4.8s step-end infinite; }
.js .mv-b { animation: mv-b 4.8s linear 2.4s infinite, vis-b 4.8s step-end 2.4s infinite; }
.js .mv-b polygon.s-r, .js .mv-b polygon.s-l { animation: tok-red 4.8s step-end 2.4s infinite; }
.js .scene .gate .g-face { animation: gate-red 4.8s step-end 2.4s infinite; }
.js .note-a { animation: note-a 4.8s step-end infinite; }
.js .note-d { animation: note-d 4.8s step-end 2.4s infinite; }
.js .lane { animation: lane-flow 1.2s linear infinite; }
.js .emblem .mv-m.mv-back { animation: mv-a 4.2s linear infinite, vis-back-m 4.2s step-end infinite; }
.js .emblem .mv-m.mv-front { animation: mv-a 4.2s linear infinite, vis-front-m 4.2s step-end infinite; }
@keyframes mv-a { 0%, 6% { transform: translate(var(--x0), var(--y0)); } 86%, 100% { transform: translate(var(--x1), var(--y1)); } }
@keyframes vis-back { 0% { opacity: 0; } 6% { opacity: 1; } 47.3% { opacity: 0; } }
@keyframes vis-front { 0% { opacity: 0; } 47.3% { opacity: 1; } 92% { opacity: 0; } }
@keyframes vis-back-m { 0% { opacity: 0; } 6% { opacity: 1; } 48.5% { opacity: 0; } }
@keyframes vis-front-m { 0% { opacity: 0; } 48.5% { opacity: 1; } 92% { opacity: 0; } }
@keyframes mv-b { 0%, 6% { transform: translate(var(--x0), var(--y0)); } 40.8%, 52% { transform: translate(var(--x1), var(--y1)); } 74%, 100% { transform: translate(var(--x2), var(--y2)); } }
@keyframes vis-b { 0% { opacity: 0; } 6% { opacity: 1; } 76% { opacity: 0; } }
@keyframes tok-red { 0% { fill: var(--accent); } 40.8% { fill: var(--status-deny); } 80% { fill: var(--accent); } }
@keyframes gate-red { 0% { fill: var(--accent); } 40.8% { fill: var(--status-deny); } 54% { fill: var(--accent); } }
@keyframes note-a { 0% { opacity: 0; } 48% { opacity: 1; } 92% { opacity: 0; } }
@keyframes note-d { 0% { opacity: 0; } 41% { opacity: 1; } 74% { opacity: 0; } }
@keyframes lane-flow { to { stroke-dashoffset: -16; } }
.js .mv-b polygon.s-l { animation-name: tok-red-soft; }
@keyframes tok-red-soft { 0% { fill: var(--accent-soft); } 40.8% { fill: var(--status-deny-soft); } 80% { fill: var(--accent-soft); } }

/* ------------------------------------------------------------------ home hero */
.hero-scene { display: grid; gap: 4px; }
.hero-scene .receipt { margin: -6px 6% 0; }
.js .hero-scene .scene { animation: rise 900ms var(--ease-enter) 150ms both; }

/* ------------------------------------------------------------------ page heroes: the gateway emblem, calls floating around it */
.page-hero > .wrap { position: relative; }
.emblem { position: absolute; right: -8px; top: 50%; width: clamp(230px, 27vw, 350px); transform: translateY(-50%); pointer-events: none; }
.page-hero:has(.emblem) h1, .page-hero:has(.emblem) .lede { max-width: min(920px, calc(100% - 340px)); }
.fl { animation: float 6s ease-in-out infinite; }
.fl-1 { animation-delay: -2s; animation-duration: 7s; }
.fl-2 { animation-delay: -4s; animation-duration: 5.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.js .emblem { animation: emblem-in 800ms var(--ease-enter) 120ms both; }
@keyframes emblem-in { from { opacity: 0; transform: translateY(-44%); } to { opacity: 1; transform: translateY(-50%); } }
.page-hero-center .emblem, .contact-grid .emblem { position: relative; right: auto; top: auto; width: 230px; margin: 0 auto 6px; transform: none; }
.contact-grid .emblem { margin: 0 0 6px -10px; }
.page-hero-center:has(.emblem) h1, .page-hero-center:has(.emblem) .lede, .page-hero:has(.contact-grid .emblem) h1, .page-hero:has(.contact-grid .emblem) .lede { max-width: 920px; }
.js .page-hero-center .emblem, .js .contact-grid .emblem { animation-name: emblem-in-c; }
@keyframes emblem-in-c { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ comic: four steps that draw themselves */
.comic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.panel { display: grid; gap: 10px; }
.panel svg { display: block; width: 100%; height: auto; border: 2.5px solid var(--ink); border-radius: 6px; background: var(--paper); box-shadow: 6px 6px 0 var(--ink); overflow: hidden; }
.panel:nth-child(odd) svg { transform: rotate(-0.8deg); }
.panel:nth-child(even) svg { transform: rotate(0.7deg); }
.panel p { display: flex; align-items: center; gap: 10px; font: 700 1.05rem/1.2 var(--font-sans); color: var(--text); }
.panel p b { padding: 1px 6px; background: var(--ink); color: var(--bg); font: 500 0.7rem var(--font-mono); }
.panel svg :is(path, rect, circle):not(.gate *) { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.panel .ink { fill: none; }
.panel .card, .panel .phone, .panel .receipt-strip, .panel .person { fill: var(--paper); }
.panel .phone { fill: var(--surface-subtle); }
.panel .bar { fill: var(--accent); stroke: none !important; }
.panel .speed, .panel .dash { stroke: var(--line-strong) !important; }
.panel .dash { stroke-dasharray: 4 5; }
.panel .say { font: 700 17px var(--font-sans); fill: var(--ink); }
.panel .say-m { font: 600 15px var(--font-mono); }
.panel .say-s { font-size: 14px; }
.panel .checks circle { fill: var(--paper); stroke-width: 2 !important; }
.panel .checks text { font: 500 12px var(--font-mono); fill: var(--text-2); }
.panel .eye { fill: var(--ink); stroke: none !important; }
.panel .tap-btn { fill: var(--accent); stroke-width: 2 !important; }
.panel .tap-t { font: 700 10px var(--font-sans); fill: var(--paper); }
.panel .ripple { fill: none; stroke: var(--accent) !important; stroke-width: 2 !important; opacity: 0; transform-box: fill-box; transform-origin: center; }
.panel .rc { font: 500 13px var(--font-mono); fill: var(--text-2); }
.panel .rc-h { font-size: 11px; letter-spacing: 0.14em; fill: var(--text-3); }
.panel .rc-ok { font-weight: 700; fill: var(--status-allow); }
.panel .rc-dim { fill: var(--status-allow); }
.panel .rc-dim2 { fill: var(--text-3); font-size: 11px; }
.panel .stampmark rect { fill: none; stroke-width: 3 !important; }
.panel .stampmark text { font: 700 18px var(--font-mono); letter-spacing: 0.16em; }
.panel .stampmark { transform-box: fill-box; transform-origin: center; }
.panel .st-hold { transform: rotate(-6deg); }
.panel .st-hold rect { stroke: var(--status-pending) !important; } .panel .st-hold text { fill: var(--status-pending); }
.panel .st-allow { transform: rotate(-5deg); }
.panel .st-allow rect { stroke: var(--status-allow) !important; } .panel .st-allow text { fill: var(--status-allow); }

.js .panel .ink { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1100ms var(--ease-settle) calc(var(--d, 0ms) + 150ms); }
.js .panel .dash { stroke-dasharray: 1; }
.js .panel.in .ink { stroke-dashoffset: 0; }
.js .panel.in .dash { stroke-dasharray: 0.08 0.06; }
.js .panel :is(.say, .rc, .tap-t, .tap-btn, .checks, .eye, .gate, .bar) { opacity: 0; transition: opacity 400ms calc(var(--d, 0ms) + 700ms); }
.js .panel.in :is(.say, .rc, .tap-t, .tap-btn, .checks, .eye, .gate, .bar) { opacity: 1; }
.js .panel .stampmark { opacity: 0; }
.js .panel.in .st-hold { animation: stamp-in-h 420ms cubic-bezier(0.2, 0.9, 0.3, 1.2) calc(var(--d, 0ms) + 1500ms) both; }
.js .panel.in .st-allow { animation: stamp-in-a 420ms cubic-bezier(0.2, 0.9, 0.3, 1.2) calc(var(--d, 0ms) + 1500ms) both; }
@keyframes stamp-in-h { from { opacity: 0; transform: scale(2.2) rotate(-18deg); } to { opacity: 1; transform: rotate(-6deg); } }
@keyframes stamp-in-a { from { opacity: 0; transform: scale(2.2) rotate(-18deg); } to { opacity: 1; transform: rotate(-5deg); } }
.js .panel.in .rc { animation: print 400ms steps(8) both; }
.js .panel.in .rc:nth-of-type(2) { animation-delay: 1100ms; } .js .panel.in .rc:nth-of-type(3) { animation-delay: 1300ms; }
.js .panel.in .rc:nth-of-type(4) { animation-delay: 1500ms; } .js .panel.in .rc:nth-of-type(5) { animation-delay: 1700ms; }
.panel.live .checks circle { animation: ck-dot 3.2s infinite both; }
.panel.live .checks circle:nth-of-type(2) { animation-delay: 300ms; } .panel.live .checks circle:nth-of-type(3) { animation-delay: 600ms; }
.panel.live .checks circle:nth-of-type(4) { animation-delay: 900ms; }
@keyframes ck-dot { 0%, 8% { fill: var(--paper); } 14%, 80% { fill: var(--accent); } 100% { fill: var(--paper); } }
.panel.live .ripple { animation: ripple 1.8s ease-out infinite; }
.panel.live .ripple.r2 { animation-delay: 0.6s; }
@keyframes ripple { 0% { opacity: 0.9; transform: scale(0.6); } 100% { opacity: 0; transform: scale(3.2); } }

/* ------------------------------------------------------------------ Gate Rush */
@keyframes pop-c { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: none; } }
.gr-gate { position: absolute; top: 0; right: 0; bottom: 0; width: var(--gate-w, 130px); display: grid; place-items: center; align-content: center; gap: 12px;
  border-left: 3px solid var(--ink); background: var(--bg-alt); background-image: repeating-linear-gradient(135deg, transparent 0 14px, var(--grid-line) 14px 28px); }
.gr-gate-sign { position: absolute; top: 12px; left: 50%; transform: translateX(-50%) rotate(-3deg); padding: 2px 8px; background: var(--ink); color: var(--bg); font: 600 0.62rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.gr-mark { width: 74%; fill: var(--ink); transition: fill 140ms, transform 200ms var(--ease-standard); }
.gr-gate-state { padding: 1px 8px; border: 1.5px solid var(--line-strong); border-radius: 3px; font: 600 0.62rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); }
.gr-gate.is-allow .gr-mark { fill: var(--status-allow); transform: scale(1.08); }
.gr-gate.is-deny .gr-mark { fill: var(--status-deny); transform: scale(1.08) rotate(-3deg); }
.gr-gate.is-leak .gr-mark { fill: var(--status-pending); transform: scale(0.94); }
.gr-gate.is-allow .gr-gate-state { color: var(--status-allow); border-color: var(--status-allow); }
.gr-gate.is-deny .gr-gate-state { color: var(--status-deny); border-color: var(--status-deny); }
.gr-gate.is-leak .gr-gate-state { color: var(--status-pending); border-color: var(--status-pending); }
.gr-gate::before { content: ""; position: absolute; left: -9px; top: 0; bottom: 0; width: 14px; border: 2px solid var(--ink); border-width: 0 2px;
  background: repeating-linear-gradient(180deg, var(--accent) 0 18px, var(--paper) 18px 36px); }
.gr-bots { position: absolute; inset: 0; }
.gr-call { position: absolute; left: 0; display: grid; place-items: center; height: 33.333%; padding: 0; border: 0; background: none; cursor: pointer; color: var(--text); will-change: transform; }
.gr-call[data-lane="0"] { top: 0; } .gr-call[data-lane="1"] { top: 33.333%; } .gr-call[data-lane="2"] { top: 66.666%; }
.gr-slip { position: relative; display: grid; gap: 2px; min-width: 128px; padding: 9px 14px 9px 16px; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper); box-shadow: 3px 3px 0 var(--ink); text-align: left; animation: slip-wobble 700ms ease-in-out infinite alternate; }
.gr-slip::before { content: ""; position: absolute; left: -2px; top: 8px; bottom: 8px; width: 5px; background: var(--accent); }
.gr-slip b { font: 700 0.86rem/1.2 var(--font-sans); white-space: nowrap; }
.gr-slip small { font: 500 0.66rem var(--font-mono); color: var(--text-3); white-space: nowrap; }
@keyframes slip-wobble { from { transform: rotate(-1.2deg); } to { transform: rotate(1.2deg) translateY(-2px); } }
.gr-call:hover .gr-slip { border-color: var(--status-deny); box-shadow: 4px 4px 0 var(--status-deny); }
.gr-call:focus-visible { outline: none; }
.gr-call:focus-visible .gr-slip { outline: 2px solid var(--focus); outline-offset: 3px; }
.gr-call.gr-denied { pointer-events: none; }
.gr-call.gr-denied .gr-slip { animation: none; transform: rotate(-5deg); opacity: 0.92; }
.gr-call.gr-denied .gr-slip::before { background: var(--status-deny); }
.gr-call.gr-passed { pointer-events: none; opacity: 0; transition: opacity 260ms; }
.gr-call .stamp { position: absolute; top: 50%; left: 50%; font-size: 0.82rem; padding: 3px 8px; translate: -50% -50%; }
/* ------------------------------------------------------------------ Gate Rush */
.gr { position: relative; border: 2.5px solid var(--ink); border-radius: 8px; background: var(--paper); box-shadow: 8px 8px 0 var(--ink); overflow: hidden; }
.gr-hud { display: flex; align-items: center; gap: clamp(10px, 2vw, 22px); padding: 12px 16px; border-bottom: 2px solid var(--ink); background: var(--bg); font: 500 0.78rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2); }
.gr-score b { display: inline-block; min-width: 3ch; color: var(--text); font-size: 1.15rem; letter-spacing: -0.02em; }
.gr-score b.bump { animation: bump 260ms ease-out; }
@keyframes bump { 40% { transform: scale(1.35); color: var(--accent); } }
.gr-combo { padding: 1px 8px; border: 2px solid var(--ink); border-radius: 4px; font-weight: 700; color: var(--text); }
.gr-combo.hot { background: var(--status-pending); color: var(--pupil); animation: bump 300ms ease-out; }
.gr-hearts { display: inline-flex; gap: 6px; }
.gr-hearts i { width: 16px; height: 15px; background: var(--status-deny);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 15'%3E%3Cpath d='M8 15 1.2 8.2A4 4 0 0 1 8 2.6a4 4 0 0 1 6.8 5.6z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 15'%3E%3Cpath d='M8 15 1.2 8.2A4 4 0 0 1 8 2.6a4 4 0 0 1 6.8 5.6z'/%3E%3C/svg%3E") center / contain no-repeat; }
.gr-hearts i.lost { background: var(--line-strong); animation: heart-lost 500ms ease-out; }
@keyframes heart-lost { 30% { transform: scale(1.6) rotate(-12deg); background: var(--status-deny); } }
.gr-time { flex: 1; height: 10px; border: 2px solid var(--ink); border-radius: 3px; overflow: hidden; background: var(--bg-alt); }
.gr-time-bar { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--t, 1)); }
.gr-time-bar.low { background: var(--status-deny); }

.gr-stage { position: relative; height: clamp(330px, 44vw, 460px); overflow: hidden; touch-action: manipulation; user-select: none; -webkit-user-select: none;
  background-image: repeating-linear-gradient(180deg, transparent 0 31px, var(--rule-line) 31px 32px); }
.gr-lanes { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(3, 1fr); pointer-events: none; }
.gr-lanes i { border-bottom: 2px dashed var(--line-strong); }
.gr-lanes i:last-child { border-bottom: 0; }
.gr-stage.shake { animation: shake 420ms cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes shake { 15%, 55% { transform: translateX(-7px); } 35%, 75% { transform: translateX(7px); } }
.gr-stage.flash::after { content: ""; position: absolute; inset: 0; background: var(--status-deny); opacity: 0; animation: flash 420ms ease-out; pointer-events: none; }
@keyframes flash { 10% { opacity: 0.22; } }
.gr-pop { position: absolute; z-index: 3; pointer-events: none; padding: 2px 8px; border-radius: 4px; font: 700 0.8rem var(--font-mono); white-space: nowrap; color: var(--paper); background: var(--ink); animation: pop-up 1100ms ease-out both; }
.gr-pop.good { background: var(--status-allow); }
.gr-pop.bad { background: var(--status-deny); }
.gr-pop.meh { background: var(--status-pending); color: var(--pupil); }
@keyframes pop-up { 0% { opacity: 0; transform: translateY(6px) scale(0.7); } 15% { opacity: 1; transform: translateY(0) scale(1.08); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-34px); } }

.gr-over { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--paper) 86%, transparent); }
.gr-over[hidden] { display: none; }
.gr-card { display: grid; gap: 12px; justify-items: start; max-width: 460px; padding: clamp(18px, 3vw, 28px); border: 2.5px solid var(--ink); border-radius: 8px; background: var(--paper); box-shadow: 6px 6px 0 var(--ink); }
.js .gr-card { animation: pop-c 420ms cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }
.gr-kicker { font: 500 0.7rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-3); }
.gr-title { font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.15; letter-spacing: -0.02em; }
.gr-rules { display: grid; gap: 8px; font-size: 0.95rem; color: var(--text-2); }
.gr-rules li { display: flex; align-items: center; gap: 10px; }
.gr-chip { display: inline-grid; place-items: center; min-width: 44px; padding: 2px 6px; border: 2px solid var(--ink); border-radius: 4px; font: 700 0.68rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); }
.gr-chip-deny { background: var(--status-deny-soft); border-color: var(--status-deny); color: var(--status-deny); }
.gr-chip-ok { background: var(--status-allow-soft); border-color: var(--status-allow); color: var(--status-allow); }
.gr-chip-leak { background: var(--status-pending-soft); border-color: var(--status-pending); color: var(--status-pending); }
.gr-go { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; }
.gr-best { font: 500 0.74rem var(--font-mono); color: var(--text-3); }
.gr-keys { font-size: 0.78rem; color: var(--text-3); }
.gr-big { font: 700 clamp(2.4rem, 6vw, 3.4rem)/1 var(--font-mono); letter-spacing: -0.04em; }
.gr-rank { padding: 2px 8px; background: var(--ink); color: var(--bg); font: 600 0.74rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; transform: rotate(-2deg); }
.gr-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 18px; font: 500 0.78rem var(--font-mono); color: var(--text-2); }
.gr-stats b { display: block; font-size: 1.2rem; color: var(--text); }
.gr-moral { color: var(--text-2); font-size: 0.95rem; }

.gr-foot { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-top: 2px solid var(--ink); background: var(--bg); }
.gr-kill { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 7px 12px; border: 2px solid var(--status-deny); border-radius: 6px; background: var(--paper); color: var(--status-deny); font: 700 0.8rem var(--font-sans); cursor: pointer; transition: transform 140ms, box-shadow 140ms; }
.gr-kill small { font: 500 0.66rem var(--font-mono); color: var(--text-3); }
.gr-kill:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--status-deny); }
.gr-kill:disabled { opacity: 0.45; cursor: default; }
.gr-kill-sw { width: 14px; height: 14px; border-radius: 50%; background: var(--status-deny); box-shadow: 0 0 0 3px var(--status-deny-soft); }
.gr-feed { display: flex; gap: 8px; overflow: hidden; min-width: 0; mask-image: linear-gradient(90deg, #000 80%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); }
.gr-feed li { flex: none; padding: 2px 8px; border: 1.5px solid currentColor; border-radius: 3px; font: 600 0.66rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.gr-feed li.new { animation: slip-in 360ms var(--ease-enter) both; }
.gr-feed .f-deny { color: var(--status-deny); } .gr-feed .f-pass { color: var(--status-allow); } .gr-feed .f-leak { color: var(--status-pending); background: var(--status-pending-soft); } .gr-feed .f-oops { color: var(--text-3); }


/* ------------------------------------------------------------------ scroll ink: a teal line fills as you read */
@supports (animation-timeline: scroll()) {
  body::after { content: ""; position: fixed; z-index: 200; left: 0; top: 0; width: 100%; height: 3px; background: var(--accent); transform-origin: left; transform: scaleX(0);
    animation: ink-read linear both; animation-timeline: scroll(root); pointer-events: none; }
  @keyframes ink-read { to { transform: scaleX(1); } }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .comic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-scene { max-width: 560px; }
}
@media (max-width: 760px) {
  .emblem { position: relative; right: auto; top: auto; width: 190px; margin: 0 0 4px -12px; transform: none; }
  .js .emblem { animation-name: emblem-in-c; }
  .page-hero:has(.emblem) h1, .page-hero:has(.emblem) .lede { max-width: none; }
  .note .n-s { display: none; }
  .gr-stage { height: 360px; --gate-w: 86px; }
  .gr-hud { flex-wrap: wrap; row-gap: 8px; }
  .gr-time { flex-basis: 100%; order: 5; }
  .gr-slip { min-width: 0; padding: 6px 10px 6px 12px; }
  .gr-slip b { font-size: 0.74rem; }
  .gr-slip small { display: none; }
  .gr-gate-sign { font-size: 0.54rem; }
  .gr-feed { display: none; }
  .gr-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .comic { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .js .mv, .js .mv-a, .js .mv-b, .js .mv-a.mv-front, .js .emblem .mv-m, .js .note-a, .js .note-d, .js .lane, .fl,
  .js .mv-b polygon, .js .scene .gate .g-face, .js .emblem, .js .hero-scene .scene, .gr-slip, .js .gr-card { animation: none; }
  .js .mv-a.mv-front, .js .emblem .mv-m.mv-front { opacity: 1; transform: translate(var(--x1), var(--y1)); }
  .js .mv-a.mv-back, .js .emblem .mv-m.mv-back { opacity: 0; }
  .js .mv-b { opacity: 1; transform: translate(var(--x1), var(--y1)); }
  .js .mv-b polygon.s-r { fill: var(--status-deny); }
  .js .note-a, .js .note-d { opacity: 1; }
  .js .panel .ink { stroke-dashoffset: 0; transition: none; }
  .js .panel .dash { stroke-dasharray: 0.08 0.06; }
  .js .panel :is(.say, .rc, .tap-t, .tap-btn, .checks, .eye, .gate, .bar), .js .panel .stampmark { opacity: 1; transition: none; animation: none; }
  .js .panel.in .rc, .js .panel.in .stampmark { animation: none; }
  .panel .checks circle { fill: var(--accent); }
  .panel.live .checks circle, .panel.live .ripple { animation: none; }
  body::after { display: none; }
}
.fl .tok-deny .s-r { fill: var(--status-deny); }
.fl .tok-deny .s-l { fill: var(--status-deny-soft); }
.notfound .emblem { margin-left: auto; margin-right: auto; }
@media (min-width: 761px) { .notfound .emblem { position: relative; right: auto; top: auto; width: 240px; margin: 0 auto 8px; transform: none; } .js .notfound .emblem { animation-name: emblem-in-c; } .page-hero.notfound:has(.emblem) h1, .page-hero.notfound:has(.emblem) .lede { max-width: 920px; } }

/* ------------------------------------------------------------------ home: who it is for, a slow strip of cards */
.marquee { padding: clamp(28px, 4vw, 44px) 0 clamp(24px, 3vw, 36px); overflow: hidden; }
.marquee-h { margin: 0 16px 18px; text-align: center; font: 500 0.74rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-3); }
.marquee-view { -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.marquee-track { display: flex; width: max-content; animation: tick 55s linear infinite; }
.marquee-view:hover .marquee-track, .marquee-view:focus-within .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 18px; padding: 4px 18px 8px 0; }
.mq-item > a, .mq-item > span { display: flex; align-items: center; gap: 14px; padding: 9px 22px 9px 9px; border: 1.5px solid var(--ink); background: var(--paper);
  font: 600 1.02rem/1 var(--font-sans); letter-spacing: -0.01em; white-space: nowrap; color: var(--text); text-decoration: none;
  transition: transform 160ms var(--ease-standard), box-shadow 160ms var(--ease-standard); }
.mq-item > a:hover, .mq-item > a:focus-visible { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.mq-ic { position: relative; display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 1.5px solid var(--ink); background: var(--bg); color: var(--text); }
.mq-ic::before { content: ""; position: absolute; left: 4px; right: 4px; top: 5px; border-top: 1.5px dashed var(--text-3); }
.mq-ic .ic { width: 20px; height: 20px; margin-top: 4px; }
.mq-hot .mq-ic { background: var(--accent); color: var(--paper); }
.mq-hot .mq-ic::before { border-top-color: color-mix(in srgb, var(--paper) 70%, transparent); }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee-view { overflow-x: auto; }
}
