:root {
  --paper: #f2ecdf;
  --paper-2: #f9f4e8;
  --paper-deep: #e6dcc4;
  --panel: #1f1a12;
  --panel-2: #2a2318;
  --ink: #211d16;
  --ink-soft: #5c5647;
  --ink-faint: #8b8370;
  --paper-dim: #b9ad92;
  --line: #d3c8ac;
  --line-strong: #211d16;
  --scan: #0e7a4e;
  --scan-strong: #0a5c3b;
  --scan-bright: #18a05e;
  --scan-mist: #dbe9d4;
  --bad: #b3392f;
  --bad-bright: #e05246;
  --warn: #9a6a12;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --radius: 3px;
  --shadow-hard: 4px 4px 0 rgba(33, 29, 22, 0.9);
  --shadow-soft: 4px 4px 0 rgba(33, 29, 22, 0.18);
  --maxw: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--scan-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--scan);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1.1em;
}

ul, ol {
  padding-left: 1.25em;
}

::selection {
  background: var(--scan);
  color: var(--paper-2);
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 22px;
}

.section {
  padding: 74px 0;
}

.section-tight {
  padding: 40px 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--panel);
  color: var(--paper-2);
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 13px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--panel);
  color: var(--paper-2);
  border: 2px solid var(--line-strong);
  border-left: 6px solid var(--scan-bright);
  box-shadow: var(--shadow-hard);
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 13.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 300;
  max-width: min(92vw, 560px);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--scan);
  color: var(--paper-2);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 12px;
  position: relative;
}

.nav a:hover {
  color: var(--scan-strong);
}

.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 3px;
  background: var(--scan);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
  font-family: var(--mono);
}

.kicker {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--scan-strong);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--scan);
  display: inline-block;
}

.hero {
  position: relative;
  border-bottom: 3px solid var(--ink);
  background-image:
    linear-gradient(rgba(211, 200, 172, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(211, 200, 172, 0.35) 1px, transparent 1px);
  background-size: 34px 34px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: start;
  justify-items: center;
  padding-top: 52px;
  padding-bottom: 64px;
}

.hero-inner > div:first-child {
  max-width: 880px;
  text-align: center;
}

.hero-inner > div:first-child .hero-links {
  justify-content: center;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 5vw, 3.9rem);
  line-height: 1.04;
}

.hero-title em {
  font-style: italic;
  color: var(--scan-strong);
}

.hero-lede {
  font-size: 18.5px;
  color: var(--ink-soft);
  width: 100%;
  margin-bottom: 22px;
}

.hero-lede strong {
  color: var(--ink);
}

.hero-bullets {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 22px;
}

.hero-bullets li {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ink);
  padding-left: 24px;
  position: relative;
  text-align: left;
}

.hero-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--scan);
  font-weight: 700;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--mono);
  font-size: 13.5px;
}

.hero-links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--line);
  padding-bottom: 2px;
}

.hero-links a:hover {
  border-bottom-color: var(--scan);
  color: var(--scan-strong);
}

.workbench {
  position: relative;
  background: var(--panel);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-hard);
  padding: 0;
  width: 100%;
  max-width: 960px;
}

.wb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 2px solid var(--ink);
  background: var(--panel-2);
}

.wb-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--scan-bright);
}

.wb-led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--scan-bright);
  box-shadow: 0 0 8px var(--scan-bright);
  animation: ledBlink 2.4s ease-in-out infinite;
}

.wb-status {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.wb-body {
  position: relative;
  padding: 20px 18px 22px;
}

.scan-beam {
  position: absolute;
  left: 6px;
  right: 6px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--scan-bright) 35%, rgba(24, 160, 94, 0.15) 70%, transparent);
  box-shadow: 0 0 14px var(--scan-bright);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  animation: beamIdle 6.5s ease-in-out infinite;
}

.workbench:has(.status-badge.converting) {
  box-shadow: 0 0 0 3px var(--paper), 4px 4px 0 var(--ink);
}

.workbench:has(.status-badge.converting) .scan-beam {
  animation: beamScan 1.15s linear infinite;
}

.workbench:has(.file-card) .wb-status::after {
  content: " — QUEUE ACTIVE";
  color: var(--scan-bright);
}

.workbench:has(.status-badge.done) .queue {
  max-height: 620px;
}

.toolbar {
  margin-bottom: 16px;
}

.field {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.field label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--paper-dim);
  white-space: nowrap;
}

.lang-search {
  width: 100%;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  padding: 10px 12px;
}

.lang-search::placeholder {
  color: var(--ink-faint);
}

.lang-search:focus {
  outline: 2px solid var(--scan-bright);
  outline-offset: 2px;
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  padding: 10px 40px 10px 12px;
  cursor: pointer;
}

.select-wrap select:focus {
  outline: 2px solid var(--scan-bright);
  outline-offset: 2px;
}

.select-wrap::after {
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  color: var(--ink);
  pointer-events: none;
}

.dropzone {
  position: relative;
  background: var(--paper-2);
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  padding: 40px 22px;
  text-align: center;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.dropzone svg {
  color: var(--scan);
  margin-bottom: 10px;
}

.dropzone p {
  margin: 0;
  font-size: 15.5px;
}

.dropzone p strong {
  font-family: var(--serif);
  font-size: 17.5px;
}

.dropzone .hint {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.dropzone kbd {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--paper-deep);
  border: 1.5px solid var(--ink);
  border-bottom-width: 3px;
  border-radius: 3px;
  padding: 1px 6px;
}

.dropzone.dragover {
  border-style: solid;
  border-color: var(--scan);
  background: var(--scan-mist);
  transform: translateY(-2px);
}

.dropzone:focus-visible {
  outline: 3px solid var(--scan-bright);
  outline-offset: 3px;
}

.empty-state {
  display: none;
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--paper-dim);
  text-align: center;
}

.empty-state.visible {
  display: block;
}

.queue {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 460px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--ink) transparent;
}

.queue::-webkit-scrollbar {
  width: 10px;
}

.queue::-webkit-scrollbar-track {
  background: transparent;
}

.queue::-webkit-scrollbar-thumb {
  background: var(--ink);
  border: 2px solid var(--paper-2);
}

.file-card {
  display: grid;
  grid-template-columns: 52px minmax(96px, 1fr) auto minmax(0, auto);
  align-items: center;
  gap: 14px;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.file-thumb {
  width: 52px;
  height: 52px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-deep);
  overflow: hidden;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.06em;
}

.file-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-thumb.pdf {
  background: var(--scan);
  color: var(--paper-2);
}

.file-info {
  min-width: 0;
}

.file-name {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-meta {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.file-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.status-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge.queued::before {
  background: var(--ink-faint);
}

.status-badge.masking::before {
  background: var(--warn);
  color: var(--warn);
}

.status-badge.converting::before {
  background: var(--scan-bright);
  animation: ledPulse 0.9s ease-in-out infinite;
}

.status-badge.done {
  color: var(--scan-strong);
}

.status-badge.done::before {
  background: var(--scan);
}

.status-badge.error {
  color: var(--bad);
}

.status-badge.error::before {
  background: var(--bad-bright);
}

.progress-track {
  height: 8px;
  background: var(--paper-deep);
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: repeating-linear-gradient(45deg, var(--scan) 0 8px, var(--scan-strong) 8px 16px);
  background-size: 22px 22px;
  transition: width 0.3s ease;
}

.result-box {
  display: none;
  margin-top: 12px;
}

.result-box.visible {
  display: block;
}

.result-head {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--paper-2);
  background: var(--panel);
  border: 2px solid var(--ink);
  border-bottom: none;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-head::before {
  content: "⧉";
  color: var(--scan-bright);
}

.result-box textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-top: none;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.6;
  padding: 12px;
}

.convert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.convert-note {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--paper-dim);
  margin: 10px 0 0;
}

.tool-note {
  display: none;
  margin-top: 14px;
  background: rgba(227, 82, 70, 0.14);
  border: 2px solid var(--bad);
  border-radius: var(--radius);
  color: var(--bad-bright);
  font-size: 14.5px;
  padding: 12px 14px;
}

.tool-note.visible {
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 12px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--scan);
  color: var(--paper-2);
  box-shadow: var(--shadow-hard);
}

.btn-primary:hover {
  background: var(--scan-strong);
  color: var(--paper-2);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-secondary {
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  background: var(--paper-deep);
  color: var(--ink);
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: transparent;
  box-shadow: none;
  padding-left: 8px;
  padding-right: 8px;
}

.btn-ghost:hover {
  color: var(--bad);
  text-decoration: underline;
  transform: none;
  box-shadow: none;
}

.btn-sm {
  font-size: 12px;
  padding: 7px 12px;
}

.btn-lg {
  font-size: 15px;
  padding: 15px 26px;
}

.ticker {
  border-bottom: 3px solid var(--ink);
  background: var(--paper-deep);
  overflow: hidden;
  padding: 13px 0;
  position: relative;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: ticker 32s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  padding: 0 18px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 18px;
}

.ticker-item::after {
  content: "◆";
  color: var(--scan);
  font-size: 9px;
}

.ticker-item.hot {
  color: var(--scan-strong);
}

.card {
  position: relative;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 26px 24px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.28rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--scan-mist);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  color: var(--scan-strong);
  margin-bottom: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 34px;
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  counter-reset: step;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.step {
  position: relative;
  padding: 30px 26px;
  border-left: 2px solid var(--ink);
  counter-increment: step;
}

.step:first-child {
  border-left: none;
}

.step::before {
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--scan-strong);
  display: block;
  margin-bottom: 14px;
}

.step::after {
  content: "→";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 18px;
  color: var(--scan);
  background: var(--paper-2);
  padding: 0 4px;
  z-index: 2;
}

.step:last-child::after {
  display: none;
}

.step h3 {
  margin: 0 0 8px;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.chips + .chips {
  margin-top: 4px;
}

.chip {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
}

.chip.hot {
  background: var(--scan);
  color: var(--paper-2);
  box-shadow: 2px 2px 0 var(--ink);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq {
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-family: var(--sans);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 400;
  color: var(--scan);
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

.faq[open] summary::after {
  content: "−";
}

.faq-body {
  padding: 0 20px 20px;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.faq-body p {
  margin: 0;
}

.cta-band {
  position: relative;
  background: var(--panel);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  padding: 54px 46px;
  text-align: center;
}

.cta-band h2 {
  color: var(--paper-2);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-bottom: 12px;
}

.cta-band p {
  color: var(--paper-dim);
  font-size: 16.5px;
  max-width: 52ch;
  margin: 0 auto 26px;
}

.error-code {
  font-family: var(--serif);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  color: var(--scan-bright);
  text-shadow: 4px 4px 0 var(--ink);
  margin-bottom: 8px;
}

.cta-band .kicker {
  color: var(--scan-bright);
  justify-content: center;
}

.cta-band .kicker::before {
  background: var(--scan-bright);
}

.cta-band .err-log {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--scan);
  margin: 0 0 20px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.article-card {
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.article-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 2px solid var(--ink);
}

.ac-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.ac-body h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
}

.ac-body h3 a {
  color: var(--ink);
  text-decoration: none;
}

.ac-body h3 a:hover {
  color: var(--scan-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ac-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  flex: 1;
}

.ac-meta {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--scan-strong);
}

.page-head {
  border-bottom: 3px solid var(--ink);
  background-image:
    linear-gradient(rgba(211, 200, 172, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(211, 200, 172, 0.35) 1px, transparent 1px);
  background-size: 34px 34px;
  padding: 56px 0 48px;
}

.page-head h1 {
  margin-bottom: 14px;
}

.page-head p {
  max-width: 64ch;
  color: var(--ink-soft);
  font-size: 17.5px;
  margin: 0;
}

.breadcrumbs {
  padding: 16px 0 0;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-faint);
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--line);
}

.breadcrumbs a {
  color: var(--ink-soft);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--scan-strong);
  text-decoration: underline;
}

.prose {
  font-size: 17px;
  color: var(--ink);
}

.prose h2 {
  margin-top: 1.8em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.4em;
}

.prose img {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin: 1.6em 0;
}

.prose blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-left: 6px solid var(--scan);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
}

.prose blockquote p {
  margin: 0;
}

.prose a {
  color: var(--scan-strong);
}

.prose strong {
  color: var(--ink);
}

.byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 6px 0 34px;
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink-soft);
}

.byline-avatar {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--scan);
  color: var(--paper-2);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  box-shadow: 2px 2px 0 var(--ink);
}

.site-footer {
  background: var(--panel);
  color: var(--paper-2);
  border-top: 3px solid var(--ink);
  margin-top: 74px;
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 40px;
}

.footer-grid .brand {
  color: var(--paper-2);
  margin-bottom: 12px;
}

.footer-grid h4 {
  color: var(--scan-bright);
  font-family: var(--mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-grid a {
  color: var(--paper-dim);
  text-decoration: none;
  font-size: 15px;
}

.footer-grid a:hover {
  color: var(--paper-2);
  text-decoration: underline;
}

.footer-brand p {
  color: var(--paper-dim);
  font-size: 15px;
  margin: 0;
  max-width: 30ch;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 2px solid var(--panel-2);
  padding: 20px 0;
  font-family: var(--mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--paper-dim);
}

.mask-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(31, 26, 18, 0.72);
  z-index: 400;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.mask-modal.open {
  display: flex;
}

.mask-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
}

.mask-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 2px solid var(--ink);
  background: var(--paper-2);
}

.mask-head h3 {
  margin: 0;
}

.file-tag {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  max-width: 45%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mask-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 22px;
  border-bottom: 2px solid var(--ink);
}

.mask-toolbar .group {
  display: flex;
  gap: 8px;
}

.tool-btn {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 14px;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
}

.tool-btn.active {
  background: var(--scan);
  color: var(--paper-2);
  box-shadow: 2px 2px 0 var(--ink);
}

.mask-toolbar label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.mask-toolbar input[type="range"] {
  accent-color: var(--scan);
  width: 130px;
}

.mask-toolbar input[type="color"] {
  width: 42px;
  height: 32px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 2px;
  background: var(--paper-2);
  cursor: pointer;
}

.mask-canvas-wrap {
  padding: 22px;
  display: grid;
  place-items: center;
  background-image:
    linear-gradient(rgba(211, 200, 172, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(211, 200, 172, 0.5) 1px, transparent 1px);
  background-size: 22px 22px;
}

#maskCanvas {
  max-width: 100%;
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: var(--shadow-soft);
  touch-action: none;
}

.mask-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 22px 20px;
  border-top: 2px solid var(--ink);
  background: var(--paper-2);
}

.mask-foot > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@keyframes ledBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes ledPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.72); }
}

@keyframes beamIdle {
  0%, 8% { top: 10%; opacity: 0; }
  18% { opacity: 0.95; }
  46% { top: 86%; opacity: 0.95; }
  58%, 100% { top: 86%; opacity: 0; }
}

@keyframes beamScan {
  0% { top: 0%; opacity: 0; }
  8% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 52px;
    padding-bottom: 60px;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .article-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .field {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .section {
    padding: 54px 0;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 3px solid var(--ink);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 22px 18px;
    display: none;
    gap: 2px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
  }

  .nav a[aria-current="page"]::after {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-inner {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .grid-2,
  .grid-4,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    border-left: none;
    border-top: 2px solid var(--ink);
  }

  .step:first-child {
    border-top: none;
  }

  .step::after {
    display: none;
  }

  .hero-bullets {
    grid-template-columns: 1fr;
  }

  .file-card {
    grid-template-columns: 46px 1fr;
  }

  .file-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .cta-band {
    padding: 40px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .mask-toolbar {
    justify-content: flex-start;
  }
}
