
:root,
:root[data-theme="dark"] {
  --bg: #111215;
  --bg-raised: #17181c;
  --bg-sunken: #0c0d0f;
  --bg-hover: #1e1f24;
  --ink: #f2f1ee;
  --ink-strong: #ffffff;
  --muted: rgba(242, 241, 238, 0.66);
  --faint: rgba(242, 241, 238, 0.42);
  --line: rgba(242, 241, 238, 0.11);
  --line-strong: rgba(242, 241, 238, 0.26);
  --accent: #3b82ff;
  --accent-ink: #8db6ff;
  --accent-soft: rgba(59, 130, 255, 0.14);
  --ok: #3fcf8e;
  --ok-soft: rgba(63, 207, 142, 0.12);
  --warn: #f5b041;
  --warn-soft: rgba(245, 176, 65, 0.12);
  --bad: #ff6b5e;
  --bad-soft: rgba(255, 107, 94, 0.12);
  --btn-bg: #f2f1ee;
  --btn-fg: #101114;
  --grid: rgba(242, 241, 238, 0.04);
  --shadow: 0 30px 90px -30px rgba(0, 0, 0, 0.75);
  --nav-bg: rgba(17, 18, 21, 0.78);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3f2ef;
  --bg-raised: #fbfaf8;
  --bg-sunken: #e9e8e4;
  --bg-hover: #ecebe7;
  --ink: #111216;
  --ink-strong: #000000;
  --muted: rgba(17, 18, 22, 0.66);
  --faint: rgba(17, 18, 22, 0.46);
  --line: rgba(17, 18, 22, 0.12);
  --line-strong: rgba(17, 18, 22, 0.3);
  --accent: #1f6bff;
  --accent-ink: #1552c4;
  --accent-soft: rgba(31, 107, 255, 0.1);
  --ok: #12844f;
  --ok-soft: rgba(18, 132, 79, 0.1);
  --warn: #9a5c00;
  --warn-soft: rgba(201, 125, 0, 0.12);
  --bad: #c0352a;
  --bad-soft: rgba(192, 53, 42, 0.09);
  --btn-bg: #111216;
  --btn-fg: #f3f2ef;
  --grid: rgba(17, 18, 22, 0.05);
  --shadow: 0 30px 70px -34px rgba(17, 18, 22, 0.32);
  --nav-bg: rgba(243, 242, 239, 0.8);
  color-scheme: light;
}
:root {
  --f-display: "Archivo", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --frame: 1320px;
  --pad: 32px;
  --nav-h: 58px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html.modal-open body { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 620; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--btn-bg); color: var(--btn-fg); padding: 10px 14px;
  font: 500 13px var(--f-body); text-decoration: none;
}
.skip:focus { top: 12px; }
h2 em, h1 em, .thanks-card h2 em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.01em; font-size: 1.07em;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 20px;
  font: 500 12.5px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent; border-radius: 2px;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: var(--bg-hover); }
.btn-lg { min-height: 52px; padding: 16px 24px; font-size: 13px; }
.btn-sm { min-height: 36px; padding: 9px 14px; font-size: 11.5px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn .btn-spin { display: none; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
.btn.is-loading .btn-spin { display: inline-block; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  background: transparent; border: 1px solid var(--line); border-radius: 2px; cursor: pointer;
  color: var(--ink);
}
.icon-btn:hover { border-color: var(--line-strong); background: var(--bg-hover); }
.icon-btn svg { width: 18px; height: 18px; }
:root[data-theme="dark"] .i-moon, :root:not([data-theme]) .i-moon { display: none; }
:root[data-theme="light"] .i-sun { display: none; }

.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: var(--nav-bg); backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-in {
  max-width: var(--frame); height: 100%; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { flex: none; width: 26px; height: 26px; }
.brand-word {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 800;
  font-size: 15px; letter-spacing: 0.02em;
}
.brand-word b { font-weight: 400; color: var(--muted); }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a {
  font: 500 12px var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--muted); padding: 8px 10px; white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); }
.nav-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-donate {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  font: 500 12px var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); padding: 8px 10px;
}
.nav-donate svg { flex: none; width: 16px; height: 16px; color: var(--bad); }
.nav-donate:hover { color: var(--ink); }
.btn-nav { min-height: 38px; padding: 10px 16px; font-size: 11.5px; }

.frame {
  max-width: var(--frame); margin: 0 auto;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}

.hero {
  position: relative; isolation: isolate; overflow: clip;
  padding: 72px var(--pad) 56px; text-align: center;
  container-type: inline-size;    
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 38%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 38%, #000 30%, transparent 75%);
}
.ring {
  position: absolute; left: 50%; top: 300px; aspect-ratio: 1; border-radius: 50%;
  translate: -50% -50%;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
}
.ring-a {
  width: min(1180px, 150vw);
  background: conic-gradient(from 30deg, transparent 0 14%, rgba(63, 207, 142, 0.55) 20%, transparent 27%,
    transparent 46%, rgba(59, 130, 255, 0.7) 54%, transparent 63%,
    transparent 76%, rgba(156, 112, 255, 0.5) 83%, transparent 90%);
  animation: spin 90s linear infinite;
}
.ring-b {
  width: min(820px, 110vw);
  background: conic-gradient(from 200deg, transparent 0 30%, var(--line-strong) 40%, transparent 52%,
    transparent 70%, var(--line-strong) 82%, transparent 92%);
  animation: spin 140s linear infinite reverse;
}
.chip {
  position: absolute; display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  padding: 10px 12px 11px; min-width: 112px;
  background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: 2px;
  font: 500 11px var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  box-shadow: var(--shadow); animation: float 9s ease-in-out infinite;
}
.chip-ext {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 20px;
  letter-spacing: 0; color: var(--ink); text-transform: none;
}
.chip-1 { left: 3.5%; top: 470px; }
.chip-2 { right: 3.5%; top: 430px; animation-delay: -2.5s; }
.chip-3 { left: 6%; top: 640px; animation-delay: -5s; }
.chip-4 { right: 6%; top: 610px; animation-delay: -7s; }
.eyebrow { color: var(--muted); margin-bottom: 18px; }
.eyebrow .arrow { color: var(--accent-ink); }
.wordmark {
  font-family: var(--f-display); font-stretch: 100%; font-weight: 800;
  font-size: clamp(40px, 6.6cqi, 80px); line-height: 1; letter-spacing: -0.04em;
  color: var(--ink-strong); user-select: none;
}
.wordmark span { font-weight: 400; color: var(--muted); margin-left: 0.03em; }
.wordmark-tag { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px;
  font-size: 11.5px; letter-spacing: 0.22em; color: var(--muted); }
.wordmark-tag::before, .wordmark-tag::after { content: ""; width: 28px; height: 1px; background: var(--line-strong); }
.hero-title {
  margin-top: 26px; font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.03em; line-height: 1.08;
}
.hero-sub {
  max-width: 640px; margin: 18px auto 0; color: var(--muted);
  font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6;
}
.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  margin-top: 26px; color: var(--faint); font-size: 11px;
}
.hero-meta span + span::before { content: "·"; margin-right: 22px; color: var(--line-strong); }
.hero-share { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 16px;
  margin-top: 14px; font-size: 13px; color: var(--muted); }
.hero-share a { color: var(--ink); text-underline-offset: 3px; }
.hero-share a:hover { color: var(--accent-ink); }

.cv {
  position: relative; max-width: 780px; margin: 40px auto 0; text-align: left;
  background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: 3px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cv .anchor { position: absolute; top: -110px; }
.cv-head {
  display: flex; align-items: center; gap: 12px; padding: 11px 16px;
  border-bottom: 1px solid var(--line); font-size: 11px; color: var(--faint);
}
.cv-head-l { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.cv-head-r { margin-left: auto; }
.cv-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-soft); }
.cv.is-demo .cv-dot { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.cv.is-paused .cv-dot { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.cv-demo { display: none; color: var(--warn); background: var(--warn-soft);
  padding: 3px 8px; border-radius: 2px; }
.cv.is-demo .cv-demo { display: inline-block; }
.cv-pane { display: none; }
.cv[data-state="idle"] [data-pane="idle"],
.cv[data-state="reading"] [data-pane="reading"],
.cv[data-state="ready"] [data-pane="ready"],
.cv[data-state="working"] [data-pane="working"],
.cv[data-state="done"] [data-pane="done"],
.cv[data-state="error"] [data-pane="error"] { display: block; animation: pane-in 0.32s var(--ease); }
.cv.is-dragging { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }

.drop {
  margin: 16px; padding: 46px 20px 40px; text-align: center; cursor: pointer;
  border: 1px dashed var(--line-strong); border-radius: 2px;
  background: repeating-linear-gradient(135deg, transparent 0 14px, var(--grid) 14px 15px);
  transition: border-color 0.2s, background-color 0.2s;
}
.drop:hover, .drop:focus-visible, .cv.is-dragging .drop {
  border-color: var(--accent); background-color: var(--accent-soft); outline: none;
}
.drop-ico { width: 54px; height: 54px; margin: 0 auto 14px; color: var(--accent-ink); }
.cv.is-dragging .drop-ico { animation: bob 0.9s ease-in-out infinite; }
.drop-title { font-family: var(--f-display); font-weight: 620; font-size: 22px; letter-spacing: -0.02em; }
.drop-sub { margin-top: 6px; color: var(--muted); }
.drop-link { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.drop-meta { margin-top: 16px; color: var(--faint); font-size: 11px; }
.drop-safe { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  color: var(--muted); font-size: 11px; }
.drop-safe .lock-ico { flex: none; color: var(--ok); }
.cv.is-paused .drop { pointer-events: none; opacity: 0.45; }
.paused-note { display: none; margin: 0 16px 16px; padding: 12px 14px;
  border-left: 2px solid var(--bad); background: var(--bad-soft); font-size: 14px; }
.cv.is-paused .paused-note { display: block; }
.resume-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  margin: 16px 16px 0; padding: 12px 14px; border-left: 2px solid var(--accent); background: var(--accent-soft); font-size: 14px; }

.reading { display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 56px 20px; }
.reading strong { font-weight: 600; word-break: break-all; }
.reading .mono { margin-top: 4px; font-size: 11px; }
.spinner {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  border: 2px solid var(--line-strong); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

.file-card { display: grid; grid-template-columns: 196px 1fr; border-bottom: 1px solid var(--line); }
.thumb {
  position: relative; display: grid; place-items: center; min-height: 196px;
  background: #fff; border-right: 1px solid var(--line); overflow: hidden;
}
.thumb img { display: none; width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.cv.has-thumb .thumb img { display: block; }
.thumb-none { color: #8a8a8a; text-align: center; font-size: 10.5px; line-height: 1.6; }
.cv.has-thumb .thumb-none { display: none; }
.thumb-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px;
  font-size: 9.5px; color: #6d6d6d; background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.facts { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.facts > div { padding: 11px 16px; border-bottom: 1px solid var(--line); min-width: 0; }
.facts > div:nth-child(2n) { border-left: 1px solid var(--line); }
.facts > div.facts-wide { grid-column: 1 / -1; }
.facts > div.facts-wide ~ div:nth-child(2n) { border-left: 0; }
.facts > div.facts-wide ~ div:nth-child(2n + 1) { border-left: 1px solid var(--line); }
.facts > div:nth-last-child(-n + 2) { border-bottom: 0; }
.facts dt { font: 500 10.5px var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.facts dd { margin: 3px 0 0; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facts dd.mono { font-size: 12.5px; text-transform: none; letter-spacing: 0.02em; }
.facts-wide dd { font-weight: 600; }

.verdict {
  display: flex; gap: 12px; align-items: flex-start; margin: 16px 16px 0; padding: 12px 14px;
  border-left: 2px solid var(--ok); background: var(--ok-soft); font-size: 14.5px;
}
.verdict-ico { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; position: relative;
  background: var(--ok); }
.verdict-ico::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px;
  border: solid var(--bg-raised); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.verdict[data-tone="info"] { border-color: var(--accent); background: var(--accent-soft); }
.verdict[data-tone="info"] .verdict-ico { background: var(--accent); }
.verdict[data-tone="warn"] { border-color: var(--warn); background: var(--warn-soft); }
.verdict[data-tone="warn"] .verdict-ico { background: var(--warn); }
.verdict[data-tone="bad"] { border-color: var(--bad); background: var(--bad-soft); }
.verdict[data-tone="bad"] .verdict-ico { background: var(--bad); }
.verdict[data-tone="warn"] .verdict-ico::after,
.verdict[data-tone="bad"] .verdict-ico::after,
.verdict[data-tone="info"] .verdict-ico::after {
  left: 8px; top: 4px; width: 2px; height: 7px; border: 0; background: var(--bg-raised); transform: none;
  box-shadow: 0 9px 0 0 var(--bg-raised);
}
.note { margin: 12px 16px 0; padding: 11px 14px; font-size: 13.5px; color: var(--muted);
  border: 1px solid var(--line); background: var(--bg-sunken); }
.cv-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px; }
.cv-actions-end { justify-content: flex-end; padding-top: 6px; }

[data-pane="working"] { padding: 18px 16px 0; }
.w-head { display: flex; align-items: flex-end; gap: 16px; justify-content: space-between; }
.w-id { min-width: 0; }
.w-name { font-family: var(--f-display); font-weight: 620; font-size: 19px; letter-spacing: -0.015em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-id .mono { margin-top: 3px; font-size: 11px; }
.w-clock { font-size: 13px; color: var(--ink); white-space: nowrap; letter-spacing: 0.04em; }
.w-sep { margin: 0 6px; color: var(--faint); }
.bar {
  position: relative; height: 34px; margin-top: 14px; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: 2px; background: var(--bg-sunken);
}
.bar-fill {
  position: absolute; inset: 0; transform: scaleX(0); transform-origin: left center;
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.12) 0 8px, transparent 8px 16px),
    var(--accent);
  background-size: 22.6px 22.6px, auto;
  animation: stripes 0.9s linear infinite;
  transition: transform 0.7s var(--ease);    
}
.bar-pct { position: absolute; right: 12px; top: 50%; translate: 0 -50%;
  font-size: 12.5px; color: #fff; mix-blend-mode: difference; letter-spacing: 0.05em; }
.phases { list-style: none; margin: 14px 0 0; padding: 0; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.phases li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 10px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.phases li:nth-child(3n) { border-right: 0; }
.phases li:nth-last-child(-n + 3) { border-bottom: 0; }
.st-ico { flex: none; width: 13px; height: 13px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); position: relative; }
.st-label { font-size: 12.5px; color: var(--faint); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; transition: color 0.2s; }
.phases li[data-s="active"] { background: var(--accent-soft); }
.phases li[data-s="active"] .st-label { color: var(--ink); font-weight: 500; }
.phases li[data-s="active"] .st-ico { border-color: var(--accent); border-right-color: transparent;
  animation: spin 0.8s linear infinite; }
.phases li[data-s="done"] .st-label { color: var(--muted); }
.phases li[data-s="done"] .st-ico { background: var(--ok); border-color: var(--ok); }
.phases li[data-s="done"] .st-ico::after { content: ""; position: absolute; left: 3.2px; top: 1.2px;
  width: 3.2px; height: 6px; border: solid var(--bg-raised); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }

.w-console { margin-top: 10px; height: 176px; overflow-y: auto; padding: 8px 12px;
  background: var(--bg-sunken); border: 1px solid var(--line); border-radius: 2px;
  font: 400 12px/1.5 var(--f-mono); letter-spacing: 0.01em; scrollbar-width: thin; }
.w-console p { display: grid; grid-template-columns: 44px 16px 1fr; align-items: center; padding: 2px 0;
  animation: pane-in 0.25s var(--ease); }
.w-console .ts { color: var(--faint); font-size: 11px; }
.w-console .mk { width: 10px; height: 10px; border-radius: 50%; position: relative; }
.w-console .tx { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.w-console .is-active .tx { color: var(--ink); }
.w-console .is-active .mk { border: 1.5px solid var(--accent); border-right-color: transparent;
  animation: spin 0.8s linear infinite; }
.w-console .is-done .mk::after { content: ""; position: absolute; left: 2.5px; top: 0;
  width: 3px; height: 6.5px; border: solid var(--ok); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.w-console .is-final .tx { color: var(--ok); font-weight: 500; }
.hold { margin-top: 10px; padding: 10px 12px; font-size: 13.5px; border-left: 2px solid var(--warn);
  background: var(--warn-soft); }

.done-head { display: flex; gap: 14px; align-items: center; padding: 20px 16px 0; }
.done-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ok); position: relative;
  box-shadow: 0 0 0 6px var(--ok-soft); animation: pop 0.45s var(--ease); }
.done-ico::after { content: ""; position: absolute; left: 14px; top: 8px; width: 9px; height: 17px;
  border: solid var(--bg-raised); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.done-title { font-family: var(--f-display); font-weight: 620; font-size: 22px; letter-spacing: -0.02em; }
.done-head .mono { margin-top: 3px; font-size: 11px; }
.out-card { margin: 16px 16px 0; border: 1px solid var(--line); }
.out-file { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px; border-bottom: 1px solid var(--line); }
.out-file svg { width: 42px; height: 42px; flex: none; color: var(--accent-ink); }
.out-badge { position: absolute; left: 22px; top: 37px; padding: 1px 4px; font-size: 9px;
  background: var(--accent); color: #fff; letter-spacing: 0.04em; }
.out-txt { min-width: 0; }
.out-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.out-txt .mono { margin-top: 2px; font-size: 11px; }
.facts-3 { grid-template-columns: repeat(3, 1fr); }
.facts-3 > div { border-bottom: 0 !important; }
.facts-3 > div + div { border-left: 1px solid var(--line) !important; }
.warn-box { margin: 12px 16px 0; padding: 12px 14px; border-left: 2px solid var(--warn); background: var(--warn-soft); }
.warn-box .mono { font-size: 11px; color: var(--warn); }
.warn-box ul { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--muted); }
.share-back { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  margin: 0 16px 16px; padding: 12px 14px; border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.share-back strong { color: var(--ink); font-weight: 600; }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 14px var(--pad);
  font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); }
.share-row .btn { text-decoration: none; }
.prose .share-row, .chart-share .share-row { padding: 12px 0 0; border-bottom: 0; }
.donate-inline { border-top: 1px solid var(--line); background: var(--bg-sunken); padding: 16px; }
.donate-inline:has(+ .share-back) { border-bottom: 1px solid var(--line); }
.donate-inline + .share-back { margin-top: 16px; }
.donate-inline-msg { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.donate-inline-msg strong { color: var(--ink); font-weight: 600; }

.err { display: flex; gap: 12px; align-items: flex-start; margin: 16px 16px 0; padding: 14px;
  border-left: 2px solid var(--bad); background: var(--bad-soft); }
.err-ico { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--bad); position: relative; margin-top: 1px; }
.err-ico::before, .err-ico::after { content: ""; position: absolute; left: 9px; top: 4px; width: 2px; height: 12px;
  background: var(--bg-raised); transform: rotate(45deg); }
.err-ico::after { transform: rotate(-45deg); }

.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden;
  padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 22px; width: max-content;
  animation: marquee 48s linear infinite; }
.marquee-track span { font: 500 12px var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap; }
.marquee-track i { width: 6px; height: 6px; background: var(--accent); flex: none; }

.sec { border-top: 1px solid var(--line); }
.sec:first-of-type { border-top: 0; }
.sec-row { display: flex; justify-content: space-between; gap: 20px; padding: 14px var(--pad);
  color: var(--faint); font-size: 11.5px; border-bottom: 1px solid var(--line); }
.sec-intro { padding: 64px var(--pad) 44px; max-width: 920px; }
.sec h2, .cta h2, .faq-wrap h2 {
  font-size: clamp(34px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.035em;
}
.lede { margin-top: 18px; max-width: 640px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.lede a { color: var(--accent-ink); text-underline-offset: 3px; }

.grid { display: grid; border-top: 1px solid var(--line); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid > .card { border-right: 1px solid var(--line); }
.grid-3 > .card:nth-child(3n), .grid-2 > .card:nth-child(2n) { border-right: 0; }
.grid-2 > .card:nth-child(n + 3) { border-top: 1px solid var(--line); }
.grid-3 > .card:nth-child(n + 4) { border-top: 1px solid var(--line); }
.engine .card-body { padding-top: 22px; }
.engine .card-head span:first-child { color: var(--accent-ink); }
.card { display: flex; flex-direction: column; min-width: 0; }
.card-head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 24px;
  border-bottom: 1px solid var(--line); color: var(--faint); font-size: 11px; }
.card-body { padding: 26px 24px 32px; }
.card h3 { font-size: 23px; letter-spacing: -0.02em; line-height: 1.2; }
.card p { margin-top: 10px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }

.card-vis { position: relative; height: 210px; border-bottom: 1px solid var(--line);
  background: var(--bg-sunken); display: grid; place-items: center; overflow: hidden; }
.vu-drop { width: 70%; height: 66%; border: 1px dashed var(--line-strong); display: grid; place-items: center;
  position: relative; background: repeating-linear-gradient(135deg, transparent 0 12px, var(--grid) 12px 13px); }
.vu-file { width: 56px; height: 70px; border: 1.5px solid var(--accent-ink); position: relative;
  display: grid; place-items: end center; padding-bottom: 8px; background: var(--bg-raised);
  clip-path: polygon(0 0, 68% 0, 100% 24%, 100% 100%, 0 100%); animation: drop-in 4s var(--ease) infinite; }
.vu-file .mono { font-size: 10px; color: var(--accent-ink); }
.vu-tag { position: absolute; bottom: -12px; left: 50%; translate: -50% 0; background: var(--bg-raised);
  border: 1px solid var(--line-strong); padding: 4px 8px; font-size: 10px; color: var(--muted); white-space: nowrap; }
.vis-map { grid-template-columns: 1fr 50px 1fr; gap: 0; padding: 0 22px; place-items: center stretch; }
.vm-col { display: flex; flex-direction: column; gap: 7px; }
.vm-h { font-size: 9.5px; color: var(--faint); margin-bottom: 4px; }
.vm-r { font-size: 10.5px; text-transform: none; letter-spacing: 0.02em; color: var(--muted);
  border: 1px solid var(--line); padding: 5px 7px; background: var(--bg-raised); white-space: nowrap; }
.vm-r b { color: var(--accent-ink); font-weight: 500; float: right; margin-left: 6px; }
.vm-col:last-child .vm-r b { color: var(--ok); }
.vm-lines { width: 50px; height: 120px; }
.vm-lines path { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 3 3;
  animation: dash 1.2s linear infinite; }
.vis-open { gap: 18px; align-content: center; }
.vo-file { width: 60px; height: 76px; margin: 0 auto; border: 1.5px solid var(--ok); display: grid; place-items: center;
  clip-path: polygon(0 0, 68% 0, 100% 24%, 100% 100%, 0 100%); background: var(--bg-raised); }
.vo-file .mono { font-size: 12px; color: var(--ok); }
.vo-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; font-size: 10px; }
.vo-row span { border: 1px solid var(--line-strong); padding: 4px 7px; color: var(--muted); position: relative; }
.vo-row span::after { content: "✓"; margin-left: 5px; color: var(--ok); }

.fmt-body { display: flex; gap: 22px; align-items: flex-start; padding: 30px 24px 34px; }
.fmt-ico { flex: none; width: 64px; height: 64px; color: var(--accent-ink); }
.fmt-body p { margin-top: 8px; }

.versions { padding: 8px var(--pad) 56px; }
.v-diagram { width: 100%; height: auto; max-width: 980px; margin: 0 auto; overflow: visible; }
.v-diagram rect { fill: var(--bg-raised); stroke: var(--line-strong); stroke-width: 1; }
.v-diagram text { fill: var(--ink); font: 500 15px var(--f-mono); letter-spacing: 0.04em; }
.v-in text { fill: var(--muted); }
.v-lines path { fill: none; stroke: var(--accent); stroke-width: 1.3; stroke-dasharray: 4 5; animation: dash 1.6s linear infinite; }
.v-lines path.v-out { stroke: var(--ok); }
.v-hub rect { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.4; }
.v-hub-k { font-size: 11px !important; fill: var(--muted) !important; letter-spacing: 0.12em !important; text-transform: uppercase; }
.v-hub-v { font-family: var(--f-display) !important; font-stretch: 125%; font-weight: 800 !important; font-size: 34px !important; }
.v-col { font-size: 11px !important; fill: var(--faint) !important; letter-spacing: 0.12em !important; text-transform: uppercase; }
.v-ok { fill: var(--ok) !important; }
.v-mobile { display: none; }
.v-note { margin: 28px auto 0; max-width: 640px; text-align: center; color: var(--muted); font-size: 15px; }

.pv .card-body { padding-top: 30px; }

.donate-sec { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.donate-copy { padding: 64px var(--pad) 60px; border-right: 1px solid var(--line); }
.donate-uses { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; font-size: 11.5px; color: var(--muted); }
.donate-uses li { display: flex; align-items: center; gap: 10px; }
.donate-uses li::before { content: ""; width: 6px; height: 6px; background: var(--accent); flex: none; }
.donate-card { display: flex; flex-direction: column; background: var(--bg-sunken); }
.donate-card-body { padding: 40px 32px; margin: auto 0; }
.donate-form { width: 100%; }
.donate-label { display: block; color: var(--faint); font-size: 11px; margin-bottom: 10px; }
.donate-row { display: flex; gap: 10px; }
.donate-field { flex: 1; display: flex; align-items: center; min-width: 0;
  border: 1px solid var(--line-strong); background: var(--bg-raised); border-radius: 2px; transition: border-color 0.18s, box-shadow 0.18s; }
.donate-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.donate-sym { padding-left: 16px; font-family: var(--f-display); font-stretch: 125%; font-weight: 700; font-size: 22px; color: var(--muted); }
.donate-field input {
  flex: 1; min-width: 0; width: 100%; height: 56px; padding: 0 14px 0 8px; border: 0; outline: 0; background: transparent;
  color: var(--ink); font: 600 24px var(--f-display); letter-spacing: -0.01em;
}
.donate-field input::placeholder { color: var(--faint); font-weight: 400; font-size: 18px; }
.donate-field input[aria-invalid="true"] { color: var(--bad); }
.donate-btn { min-height: 58px; padding: 0 26px; }
.donate-err { margin-top: 10px; color: var(--bad); font-size: 14px; }
.donate-fine { margin-top: 12px; color: var(--faint); font-size: 13px; }
.donate-form.is-compact .donate-field input { height: 48px; font-size: 20px; }
.donate-form.is-compact .donate-sym { font-size: 18px; }
.donate-form.is-compact .donate-btn { min-height: 50px; }
.donate-form.is-compact .donate-label { display: none; }

.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; padding: 64px var(--pad) 70px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px;
  padding: 20px 0; font-family: var(--f-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 22px/1 var(--f-mono); color: var(--faint); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent-ink); }
.faq summary:hover { color: var(--accent-ink); }
.faq details p { padding: 0 40px 22px 0; color: var(--muted); font-size: 16px; line-height: 1.65; }

.cta { border-top: 1px solid var(--line); padding: 90px var(--pad); text-align: center;
  background: radial-gradient(ellipse 60% 80% at 50% 120%, var(--accent-soft), transparent 70%); }
.cta .eyebrow { font-size: 11px; color: var(--faint); }
.cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

.foot { border-top: 1px solid var(--line); }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; }
.foot-in > div { padding: 40px var(--pad); }
.foot-in > div + div { border-left: 1px solid var(--line); }
.foot-brand p { margin-top: 16px; color: var(--muted); }
.foot-brand .mono { font-size: 11.5px; text-transform: none; letter-spacing: 0.02em; }
.foot-brand .mono a { color: var(--faint); }
.foot-col { display: flex; flex-direction: column; gap: 11px; }
.foot-col .mono { font-size: 11px; color: var(--faint); margin-bottom: 6px; }
.foot-col a { color: var(--ink); text-decoration: none; font-size: 15px; }
.foot-col a:hover { color: var(--accent-ink); }
.foot-bar { display: flex; justify-content: space-between; gap: 24px; padding: 16px var(--pad);
  border-top: 1px solid var(--line); color: var(--faint); font-size: 10.5px; text-transform: none; letter-spacing: 0.03em; }
.foot.frame, footer .frame { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }

.crumbs { padding: 14px var(--pad); border-bottom: 1px solid var(--line); font-size: 11px; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-current] { color: var(--ink); }
.lang-bar { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 10px var(--pad); border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--muted); }
.lang-bar a { color: var(--muted); text-decoration: none; }
.lang-bar a:hover { color: var(--accent-ink); }
.lang-bar [aria-current] { color: var(--ink); font-weight: 600; }
html[lang^="en"][data-en-visitor] .lang-bar { display: none; }
.post-head { padding: 56px var(--pad) 40px; border-bottom: 1px solid var(--line); max-width: 980px; }
.post-head .eyebrow { margin-bottom: 14px; color: var(--accent-ink); }
.post-head h1 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.035em; }
.post-dek { margin-top: 18px; max-width: 720px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.post-meta { margin-top: 22px; color: var(--faint); font-size: 11px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.post-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.toc { border-right: 1px solid var(--line); padding: 32px 24px; }
.toc-in { position: sticky; top: calc(var(--nav-h) + 24px); }
.toc .mono { font-size: 10.5px; color: var(--faint); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.toc a { color: var(--muted); text-decoration: none; font-size: 13.5px; line-height: 1.4; display: block; }
.toc a:hover { color: var(--ink); }
.prose { padding: 40px var(--pad) 56px; max-width: 760px; font-size: 17px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.02em; margin-top: 2.2em;
  scroll-margin-top: calc(var(--nav-h) + 20px); }
.prose h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose a { color: var(--accent-ink); text-underline-offset: 3px; }
.prose strong { font-weight: 600; }
.prose code { font-family: var(--f-mono); font-size: 0.86em; background: var(--bg-sunken); border: 1px solid var(--line);
  padding: 1px 5px; border-radius: 2px; }
.prose .lead { font-size: 19px; color: var(--ink); }
.callout { border-left: 2px solid var(--accent); background: var(--accent-soft); padding: 14px 18px; border-radius: 0 2px 2px 0; }
.callout p { margin: 0; }
.callout .mono { display: block; font-size: 10.5px; color: var(--accent-ink); margin-bottom: 6px; }
.callout.is-error { border-color: var(--bad); background: var(--bad-soft); }
.callout.is-error .mono { color: var(--bad); }
.callout.is-error p { font-family: var(--f-mono); font-size: 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose thead th { font: 500 10.5px var(--f-mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--faint);
  background: var(--bg-sunken); white-space: nowrap; }
.prose tbody tr:last-child th, .prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody th { font-weight: 600; }
.prose td.yes { color: var(--ok); } .prose td.no { color: var(--bad); }
.scenario { border: 1px solid var(--line); padding: 16px 18px; background: var(--bg-raised); }
.scenario .mono { font-size: 10.5px; color: var(--faint); display: block; margin-bottom: 6px; }
.chart-share { border: 1px solid var(--line); padding: 16px 18px; background: var(--bg-raised); }
.chart-share .mono { font-size: 10.5px; color: var(--faint); display: block; margin-bottom: 8px; }
.chart-share img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.chart-share p { margin-top: 12px; font-size: 15px; }
.chart-share pre { margin-top: 8px; padding: 10px 12px; overflow-x: auto; white-space: pre-wrap; word-break: break-all;
  font: 12px/1.5 var(--f-mono); color: var(--muted); background: var(--bg-sunken); border: 1px solid var(--line); }
.chart-share pre code { padding: 0; border: 0; background: none; font-size: inherit; }
.scenario p + p { margin-top: 0.6em; }
.takeaways { border: 1px solid var(--line-strong); padding: 18px 20px 18px 38px; }
.post-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding: 32px var(--pad);
  border-top: 1px solid var(--line); background: var(--bg-sunken); }
.post-cta h2 { font-size: 24px; letter-spacing: -0.02em; }
.post-cta p { color: var(--muted); margin-top: 6px; }
.post-cta .btn { margin-left: auto; }
.related { border-top: 1px solid var(--line); }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.guide { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 30px; text-decoration: none;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background 0.2s; }
.guide:nth-child(3n) { border-right: 0; }
.guide:hover { background: var(--bg-hover); }
.guide .mono { font-size: 10.5px; color: var(--accent-ink); }
.guide h3, .guide .h3-like { font-size: 21px; line-height: 1.25; letter-spacing: -0.015em; }
.guide-cta { background: var(--accent-soft); }
.guide-cta:hover { background: var(--accent-soft); filter: brightness(1.15); }
.guide p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.guide .read { margin-top: auto; padding-top: 8px; font-size: 10.5px; color: var(--faint); }
.guides-head { padding: 56px var(--pad) 40px; max-width: 900px; }
.guides-head h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.035em; }
.guides-head p { margin-top: 16px; color: var(--muted); font-size: 18px; max-width: 640px; }
@media (max-width: 1000px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px var(--pad); }
  .toc-in { position: static; }
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide:nth-child(3n) { border-right: 1px solid var(--line); }
  .guide:nth-child(2n) { border-right: 0; }
}
@media (max-width: 640px) {
  .post-head { padding: 36px var(--pad) 28px; }
  .prose { padding: 28px var(--pad) 40px; font-size: 16.5px; }
  .toc ol { grid-template-columns: minmax(0, 1fr); }
  .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .guide, .guide:nth-child(3n) { border-right: 0; }
  .post-cta .btn { margin-left: 0; width: 100%; }
  .guides-head { padding: 36px var(--pad) 28px; }
  .prose table.stack thead { display: none; }
  .prose table.stack, .prose table.stack tbody, .prose table.stack tr,
  .prose table.stack th, .prose table.stack td { display: block; width: 100%; }
  .prose table.stack tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .prose table.stack tr:last-child { border-bottom: 0; }
  .prose table.stack th, .prose table.stack td { padding: 0; border: 0; }
  .prose table.stack td { margin-top: 8px; }
  .prose table.stack td::before { display: block; margin-bottom: 2px; font: 500 10px var(--f-mono);
    letter-spacing: 0.07em; text-transform: uppercase; color: var(--faint); }
  .prose table.stack td:nth-of-type(1)::before { content: var(--c1); }
  .prose table.stack td:nth-of-type(2)::before { content: var(--c2); }
}

.ruler { position: fixed; z-index: 40; right: 0; top: var(--nav-h); bottom: 0; width: 48px;
  border-left: 1px solid var(--line); overflow: hidden; pointer-events: none; background: var(--bg); }
.ruler-scale { position: absolute; top: 8px; left: 0; right: 0; text-align: center;
  font: 500 9px var(--f-mono); color: var(--faint); letter-spacing: 0.06em; z-index: 2; background: var(--bg); padding-bottom: 4px; }
.ruler-tape { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.tick { position: absolute; right: 0; width: 7px; height: 1px; background: var(--line-strong); }
.tick-m { width: 12px; }
.tick-l { width: 18px; background: var(--faint); }
.tick[data-n]::before { content: attr(data-n); position: absolute; right: 22px; top: -6px;
  font: 500 9px var(--f-mono); color: var(--faint); letter-spacing: 0.04em; }
.ruler-mark { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--accent); z-index: 1; }
.ruler-mark span { position: absolute; right: 4px; top: 4px; font: 500 9px var(--f-mono); color: var(--accent-ink);
  background: var(--bg); padding: 1px 2px; }
.section-index { position: fixed; z-index: 40; right: 64px; bottom: 26px; display: flex; flex-direction: column;
  align-items: flex-end; gap: 1px; pointer-events: none; }
.section-index a { pointer-events: auto; text-decoration: none; font-family: var(--f-display); font-stretch: 125%;
  font-weight: 700; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint);
  line-height: 1.25; transition: color 0.2s, font-size 0.3s var(--ease); text-shadow: 0 0 12px var(--bg), 0 0 4px var(--bg); }
.section-index a:hover { color: var(--ink); }
.section-index a.is-current { color: var(--ink-strong); font-size: 22px; margin-top: 3px; }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 6, 8, 0.66); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.2s; }
.modal-card { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 40px); display: flex; flex-direction: column;
  background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: 3px; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px) scale(0.985); transition: opacity 0.22s, transform 0.22s var(--ease); }
.modal.is-open .modal-backdrop { opacity: 1; }
.modal.is-open .modal-card { opacity: 1; transform: none; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 16px 18px;
  border-bottom: 1px solid var(--line); }
.modal-title { font-family: var(--f-display); font-weight: 620; font-size: 22px; letter-spacing: -0.02em; }
.modal-head .mono { margin-top: 3px; font-size: 10.5px; }
.test-pill { margin-left: 6px; padding: 2px 6px; background: var(--warn-soft); color: var(--warn); }
.modal-body { position: relative; overflow: auto; background: #ffffff; min-height: 420px; }
.modal-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px;
  color: #555; font-size: 14px; }
.modal-loading .spinner { border-color: #ddd; border-top-color: var(--accent); }
.modal.is-mounted .modal-loading { display: none; }
#donate-checkout { min-height: 420px; }
.thanks-card { align-items: center; text-align: center; padding: 40px 32px 34px; gap: 16px; }
.thanks-card h2 { font-size: 46px; letter-spacing: -0.035em; }
.thanks-card p { color: var(--muted); max-width: 380px; }
.thanks-card p strong { color: var(--ink); }
.thanks-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--bad-soft); position: relative; }
.thanks-ico::after { content: "♥"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--bad); font-size: 26px; }

.toast { position: fixed; z-index: 150; left: 50%; bottom: 24px; translate: -50% 20px; max-width: min(560px, calc(100vw - 32px));
  padding: 13px 18px; background: var(--ink); color: var(--bg); border-radius: 2px; font-size: 14px;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity 0.2s, translate 0.25s var(--ease); }
.toast.show { opacity: 1; translate: -50% 0; }
.toast[data-tone="warn"] { border-left: 3px solid var(--warn); }
.toast[data-tone="ok"] { border-left: 3px solid var(--ok); }

html.js-reveal [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

@keyframes spin { to { rotate: 360deg; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes stripes { to { background-position: 22.6px 0, 0 0; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes dash { to { stroke-dashoffset: -18; } }
@keyframes pane-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes pop { 0% { transform: scale(0.4); } 70% { transform: scale(1.08); } }
@keyframes drop-in { 0% { transform: translateY(-60px); opacity: 0; } 30%, 80% { transform: none; opacity: 1; } 100% { opacity: 0; } }

@media (min-width: 1181px) {
  .frame { max-width: min(var(--frame), calc(100vw - 112px)); }
}
@media (max-width: 1280px) {
  .section-index { display: none; }
}
@media (max-width: 1180px) {
  .ruler { display: none; }
  .chip { display: none; }        
}
@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-3 > .card { border-right: 0; }
  .grid-3 > .card + .card { border-top: 1px solid var(--line); }
  .donate-sec { grid-template-columns: minmax(0, 1fr); }
  .donate-copy { border-right: 0; border-bottom: 1px solid var(--line); }
  .faq-wrap { grid-template-columns: 1fr; gap: 24px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-in > div:nth-child(3) { border-left: 0; }
  .foot-in > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 960px) {
  .nav-links { display: none; }    
}
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2 > .card { border-right: 0; }
  .grid-2 > .card + .card { border-top: 1px solid var(--line); }
  .v-diagram { display: none; }
  .v-mobile { display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .vmb-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 12px; }
  .vmb-row span { border: 1px solid var(--line-strong); padding: 7px 10px; background: var(--bg-raised); }
  .vmb-ok span { color: var(--ok); }
  .vmb-arrow { color: var(--accent-ink); font-size: 22px; line-height: 1; }
  .vmb-hub { display: flex; flex-direction: column; align-items: center; padding: 14px 30px;
    border: 1.4px solid var(--accent); background: var(--accent-soft); }
  .vmb-hub .mono { font-size: 10px; color: var(--muted); }
  .vmb-hub b { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 34px; }
}
@media (max-width: 640px) {
  :root { --pad: 16px; }
  .nav-in { padding: 0 14px; gap: 10px; }
  .nav-donate span { display: none; }
  .brand-word { font-size: 13px; }
  .btn-nav { padding: 9px 12px; font-size: 10.5px; }
  .btn-nav-more { display: none; }
  .hero { padding-top: 46px; padding-bottom: 40px; }
  .hero-meta span + span::before { display: none; }
  .hero-meta { flex-direction: column; gap: 6px; }
  .cv { margin-top: 30px; }
  .cv-head-r { display: none; }
  .cv-demo { margin-left: auto; }
  .file-card { grid-template-columns: 1fr; }
  .thumb { min-height: 160px; border-right: 0; border-bottom: 1px solid var(--line); }
  .thumb img { max-height: 180px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .cv-actions .btn { flex: 1 1 100%; }
  .cv-actions-end .btn { flex: 0 0 auto; }
  .w-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .phases { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .phases li, .phases li:nth-child(3n), .phases li:nth-last-child(-n + 3) {
    justify-content: center; padding: 9px 0; border-bottom: 0; border-right: 1px solid var(--line); }
  .phases li:last-child { border-right: 0; }
  .phases .st-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .w-console { height: 200px; font-size: 11.5px; }
  .w-console p { grid-template-columns: 40px 14px 1fr; }
  .sec-row { font-size: 10.5px; }
  .sec-row span:last-child { text-align: right; }
  .sec-intro { padding: 44px var(--pad) 32px; }
  .card-head, .card-body, .fmt-body { padding-left: var(--pad); padding-right: var(--pad); }
  .fmt-body { flex-direction: column; gap: 14px; }
  .vis-map { padding: 0 10px; grid-template-columns: 1fr 26px 1fr; }
  .vm-r { font-size: 9px; padding: 4px 5px; }
  .vm-lines { width: 26px; }
  .donate-row { flex-direction: column; }
  .donate-btn { width: 100%; }
  .donate-card-body { padding: 28px var(--pad); }
  .faq details p { padding-right: 0; }
  .cta { padding: 64px var(--pad); }
  .foot-in { grid-template-columns: 1fr; }
  .foot-in > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .foot-bar { flex-direction: column; gap: 6px; }
  .modal { padding: 0; place-items: end center; }
  .modal-card { width: 100%; max-height: 94dvh; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
}
