/* hankelsner.com — field-built showcase
   System: "label stock" — the page reads like output from Hank's own print pipeline.
   Paper ground, ink type, safety-orange used only as the printed registration color. */

@import url("../fonts/fonts.css");

:root {
  --paper: #fcfcfa;
  --ink: #191d21;
  --muted: #5a6167;
  --accent: #e4570a;
  --line: #e5e3de;
  --band: #f4f3ef;
  --label: #ffffff;
  --shadow: 0 1px 2px rgba(25, 29, 33, 0.07), 0 4px 14px rgba(25, 29, 33, 0.05);
  --disp: "Overpass", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "Overpass Mono", "IBM Plex Mono", monospace;
  --max: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- calibration strip: the section signature ---------- */
.calstrip {
  display: flex; align-items: flex-end; gap: 16px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px; margin-bottom: 34px;
}
.calstrip .ticks {
  flex: 1; height: 14px; align-self: flex-end;
  background:
    repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 8px) left bottom / 100% 6px no-repeat,
    repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 40px) left bottom / 100% 14px no-repeat;
  opacity: 0.55;
}
.calstrip .code {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; color: var(--accent); white-space: nowrap;
}
.calstrip h2 {
  font-family: var(--disp); font-weight: 800; font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  letter-spacing: -0.015em; line-height: 1; white-space: nowrap;
}

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; gap: 22px; height: 60px; }
.wordmark { font-family: var(--disp); font-weight: 800; font-size: 1.02rem; letter-spacing: 0.02em; text-decoration: none; }
.wordmark em { font-style: normal; color: var(--accent); }
nav.main { display: flex; gap: 18px; margin-left: auto; }
nav.main a { font-family: var(--mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.07em; text-decoration: none; color: var(--muted); }
nav.main a:hover { color: var(--accent); }
.btn {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.07em;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  padding: 7px 14px; border-radius: 3px; cursor: pointer; text-decoration: none; display: inline-block;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 64px; }
.hero .eyebrow {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; color: var(--muted); margin-bottom: 22px;
}
.hero .eyebrow b { color: var(--accent); font-weight: 600; }
.hero h1 {
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  line-height: 1.02; letter-spacing: -0.025em; max-width: 15ch;
}
.hero h1 .dot { color: var(--accent); }
.hero p.lede { max-width: 58ch; margin-top: 26px; font-size: 1.14rem; color: var(--muted); }
.hero .cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- sections ---------- */
section { padding: 64px 0; }
section.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- build log ---------- */
#log .gatebar { margin-top: 26px; }
.entry {
  background: var(--label);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}
.entry > button {
  all: unset; display: grid; width: 100%; cursor: pointer; box-sizing: border-box;
  grid-template-columns: 110px 1fr auto; gap: 16px; align-items: baseline;
  padding: 15px 18px;
}
.entry > button:hover .t { color: var(--accent); }
.entry .d { font-family: var(--mono); font-size: 0.75rem; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
.entry .t { font-family: var(--disp); font-weight: 700; font-size: 1.02rem; line-height: 1.35; letter-spacing: -0.01em; }
.entry .tags { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); letter-spacing: 0.06em; text-align: right; }
.entry .body {
  display: none; padding: 0 18px 16px 18px; color: var(--muted); font-size: 0.98rem;
  border-top: 1px dashed var(--line); padding-top: 13px; margin: 0 18px 16px; padding-left: 0; padding-right: 0;
}
.entry.open .body { display: block; }
.entry.open { border-left: 3px solid var(--accent); }
.gate {
  border: 1.5px dashed var(--line); border-radius: 4px; padding: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  color: var(--muted); font-size: 0.98rem;
}
.apps-strip { margin-top: 30px; display: none; }
.apps-strip.on { display: block; }
.apps-strip h3 { font-family: var(--mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 14px; }
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.apps-grid a {
  font-family: var(--mono); font-size: 0.8rem; font-weight: 600; text-decoration: none;
  border: 1px solid var(--line); background: var(--label); border-radius: 3px;
  padding: 10px 12px; box-shadow: var(--shadow);
}
.apps-grid a:hover { border-color: var(--accent); }

/* ---------- toolkit ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.card {
  background: var(--label); border: 1px solid var(--line); border-radius: 4px;
  box-shadow: var(--shadow); padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.card .prob { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); line-height: 1.55; }
.card .prob::before { content: "PROBLEM — "; color: var(--accent); font-weight: 600; letter-spacing: 0.08em; }
.card h3 { font-family: var(--disp); font-weight: 800; font-size: 1.18rem; letter-spacing: -0.01em; line-height: 1.25; }
.card .fix { color: var(--muted); font-size: 0.97rem; }
.card.hot { border-left: 3px solid var(--accent); }
.card .flag { font-family: var(--mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; color: var(--accent); }
.nb { white-space: nowrap; }

/* ---------- screens: dark contact sheet ---------- */
#screens { background: var(--ink); }
#screens .calstrip { border-bottom-color: var(--paper); }
#screens .calstrip h2 { color: var(--paper); }
#screens .calstrip .ticks {
  background:
    repeating-linear-gradient(to right, var(--paper) 0 1px, transparent 1px 8px) left bottom / 100% 6px no-repeat,
    repeating-linear-gradient(to right, var(--paper) 0 1px, transparent 1px 40px) left bottom / 100% 14px no-repeat;
}
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.shots figure {
  background: #22272c; border: 1px solid #343b42; border-radius: 4px; overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.shots figure:hover { transform: translateY(-3px); border-color: var(--accent); }
.shots a { display: block; cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 95; display: none;
  align-items: center; justify-content: center; padding: 30px;
  background: rgba(15, 18, 21, 0.93); cursor: zoom-out;
}
.lightbox.on { display: flex; }
.lightbox img {
  max-width: min(1500px, 100%); max-height: 100%; border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65); background: #fff;
}
.lb-close {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  background: transparent; border: 1.5px solid #aab3ba; color: #e8ecef;
  border-radius: 3px; padding: 8px 14px; cursor: pointer;
}
.lb-close:hover { border-color: var(--accent); color: var(--accent); }
.shots img { width: 100%; height: 380px; object-fit: cover; object-position: top; display: block; }
.shots figcaption {
  font-family: var(--mono); font-size: 0.75rem; color: #aab3ba; padding: 13px 16px; line-height: 1.6;
  border-top: 1px solid #343b42;
}
.shots figcaption b { color: var(--accent); font-weight: 600; letter-spacing: 0.08em; }
.shots figure.wide { grid-column: 1 / -1; }
.shots figure.wide img { height: auto; max-height: 640px; object-fit: contain; background: #fcfcfa; }
.shotnote { margin-top: 18px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: #78828a; }
#screens .subcal {
  display: flex; align-items: flex-end; gap: 16px; margin: 40px 0 20px;
  border-bottom: 1px solid #3c444c; padding-bottom: 8px;
}
#screens .subcal .code { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; color: var(--accent); white-space: nowrap; }
#screens .subcal .ticks {
  flex: 1; height: 10px; opacity: 0.4;
  background: repeating-linear-gradient(to right, #aab3ba 0 1px, transparent 1px 8px) left bottom / 100% 6px no-repeat;
}

/* ---------- platform receipt ---------- */
.receipt-wrap { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.2fr); gap: 44px; align-items: start; }
.receipt-wrap .intro h2 { font-family: var(--disp); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; line-height: 1.1; }
.receipt-wrap .intro p { margin-top: 18px; color: var(--muted); max-width: 42ch; }
.receipt {
  background: var(--label); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow);
  font-family: var(--mono); font-size: 0.88rem; padding: 26px 26px 18px;
}
.receipt .rhead {
  font-weight: 600; letter-spacing: 0.14em; font-size: 0.72rem; color: var(--muted);
  border-bottom: 1px dashed var(--line); padding-bottom: 12px; margin-bottom: 8px;
  display: flex; justify-content: space-between;
}
.receipt ul { list-style: none; }
.receipt li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); line-height: 1.5; }
.receipt li:last-child { border-bottom: none; }
.receipt li::before { content: "✓"; color: var(--accent); font-weight: 600; }
.receipt .rfoot { border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 12px; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--muted); }

/* ---------- hardware ---------- */
.hw { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.hw figure { background: var(--label); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); overflow: hidden; }
.hw img { width: 100%; height: 320px; object-fit: cover; display: block; }
.hw figcaption { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); padding: 12px 16px; line-height: 1.6; }
.hw figcaption b { color: var(--accent); font-weight: 600; letter-spacing: 0.08em; }
.hwnote {
  background: var(--label); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow);
  padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 10px; color: var(--muted);
}
.hwnote strong { color: var(--ink); }
.hwnote .hwtitle {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; color: var(--accent);
}

/* ---------- presentation cta ---------- */
.present-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  border: 2px solid var(--ink); border-radius: 4px; padding: 30px 32px; background: var(--label); box-shadow: var(--shadow);
}
.present-cta h2 { font-family: var(--disp); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.015em; }
.present-cta p { color: var(--muted); margin-top: 6px; max-width: 52ch; }

/* ---------- footer ---------- */
footer.site { border-top: 2px solid var(--ink); margin-top: 30px; padding: 40px 0 60px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; align-items: baseline; }
footer.site .who { font-family: var(--disp); font-weight: 800; font-size: 1.05rem; }
footer.site .mail { font-family: var(--mono); font-size: 0.95rem; }
footer.site nav { display: flex; gap: 18px; }
footer.site nav a { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); text-decoration: none; letter-spacing: 0.08em; }
footer.site nav a:hover { color: var(--accent); }

/* ---------- login modal ---------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(25, 29, 33, 0.45); z-index: 90;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-back.on { display: flex; }
.modal {
  background: var(--label); border-radius: 5px; box-shadow: 0 18px 60px rgba(0,0,0,0.25);
  width: min(400px, 100%); padding: 30px;
}
.modal h3 { font-family: var(--disp); font-weight: 800; font-size: 1.3rem; margin-bottom: 6px; }
.modal p.hint { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.modal label { display: block; font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; color: var(--muted); margin: 14px 0 6px; }
.modal input {
  width: 100%; font-family: var(--mono); font-size: 0.95rem; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 3px; background: var(--paper); color: var(--ink);
}
.modal input:focus { border-color: var(--accent); outline: none; }
.modal .row { display: flex; gap: 12px; margin-top: 22px; align-items: center; }
.modal .err { color: #b3261e; font-size: 0.85rem; margin-top: 12px; display: none; }
.modal .err.on { display: block; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  nav.main { display: none; }
  .entry > button { grid-template-columns: 1fr; gap: 4px; }
  .entry .tags { text-align: left; }
  .receipt-wrap { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  .calstrip h2 { white-space: normal; }
}

/* ---------- call button: the number is the brand — always visible, never hidden ---------- */
.btn.call {
  background: var(--accent); border-color: var(--accent); color: #fff;
  display: inline-flex; align-items: baseline; gap: 7px; white-space: nowrap;
  font-weight: 700; letter-spacing: 0.06em;
}
.btn.call:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.call .ico { font-size: 1.05em; align-self: center; }
.btn.call .num { font-weight: 800; font-size: 1.06em; letter-spacing: 0.03em; }
.btn.call .alt { font-weight: 700; opacity: 0.72; font-size: 0.9em; }

/* Below the nav breakpoint the bar wraps so the number still reads in full. */
@media (max-width: 760px) {
  header.site .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px 12px; }
  header.site .wrap > .wordmark { order: 1; }
  header.site .wrap > *:not(.wordmark):not(.call) { order: 2; margin-left: auto; }
  header.site .wrap > .btn.call { order: 3; width: 100%; justify-content: center; padding: 11px 14px; }
}
@media (max-width: 380px) { .btn.call { font-size: 0.74rem; } }

/* ---------- Hank Radio: on-air strip + explainer popup ---------- */
.radiobar {
  display: block; background: var(--ink); color: var(--paper);
  text-decoration: none; border-bottom: 1px solid var(--ink);
}
.radiobar .wrap {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  padding: 7px 24px; font-family: var(--mono); font-size: 0.72rem;
  font-weight: 600; letter-spacing: 0.14em;
}
.radiobar .dotlive {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(228, 87, 10, 0.7); animation: onair 2s infinite;
}
@keyframes onair {
  70% { box-shadow: 0 0 0 7px rgba(228, 87, 10, 0); }
  100% { box-shadow: 0 0 0 0 rgba(228, 87, 10, 0); }
}
.radiobar em { font-style: normal; color: var(--accent); }
.radiobar:hover { color: #fff; }
.radiobar:hover .go { text-decoration: underline; }
.modal.radio .rk {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.16em; color: var(--accent); margin-bottom: 6px;
}
.modal.radio ul { list-style: none; margin: 14px 0 4px; }
.modal.radio li {
  display: flex; gap: 10px; padding: 7px 0; color: var(--muted);
  font-size: 0.95rem; border-bottom: 1px dashed var(--line); line-height: 1.5;
}
.modal.radio li:last-child { border-bottom: none; }
.modal.radio li::before { content: "▸"; color: var(--accent); }
.modal.radio .row { flex-wrap: wrap; }
@media (max-width: 520px) { .radiobar .wrap { letter-spacing: 0.08em; font-size: 0.66rem; } }

/* ==========================================================================
   DARK MODE (js/theme.js sets data-theme on <html>; light is the default).
   The page is drawn from tokens, so the theme is mostly a re-ink; the few
   hardcoded surfaces (screens sheet, radio bar) are re-pointed below.
   ========================================================================== */
:root[data-theme="dark"] {
  --paper: #0e1114;
  --ink: #f2f0ec;
  --muted: #9aa2a8;
  --accent: #ff7a1a;
  --line: #24282c;
  --band: #121417;
  --label: #15181b;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 4px 14px rgba(0, 0, 0, 0.35);
}
:root[data-theme="dark"] #screens { background: var(--band); }
:root[data-theme="dark"] #screens .calstrip { border-bottom-color: var(--ink); }
:root[data-theme="dark"] #screens .calstrip h2 { color: var(--ink); }
:root[data-theme="dark"] #screens .calstrip .ticks {
  background:
    repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 8px) left bottom / 100% 6px no-repeat,
    repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 40px) left bottom / 100% 14px no-repeat;
}
:root[data-theme="dark"] .radiobar { background: var(--band); color: var(--ink); border-bottom: 1px solid var(--line); }
:root[data-theme="dark"] .modal .err { color: #ff6b5e; }
.btn.theme { padding: 7px 10px; line-height: 1; }

/* ==========================================================================
   LANDING v2 — "the drawing sheet." The whole landing is one drafted sheet:
   vellum-grid ground, double-rule frame with zone marks, a real title block,
   three engraved plates (FIG. I–III), and a title-block footer.
   ========================================================================== */
:root { --gridline: rgba(25, 29, 33, 0.05); --plate-mat: #f2ead6; }
:root[data-theme="dark"] { --gridline: rgba(242, 240, 236, 0.055); --plate-mat: #efe7d2; }

body.landing {
  background:
    linear-gradient(var(--gridline) 1px, transparent 1px) 0 0 / 100% 36px,
    linear-gradient(90deg, var(--gridline) 1px, transparent 1px) 0 0 / 36px 100%,
    var(--paper);
}

.sheet {
  position: relative;
  max-width: 1160px;
  margin: clamp(18px, 3vw, 40px) auto clamp(24px, 3vw, 40px);
  padding: clamp(26px, 5vw, 62px);
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
}
.sheet::before {
  content: ""; position: absolute; inset: 7px;
  border: 1px solid var(--line); pointer-events: none;
}
.zone {
  position: absolute; font-family: var(--mono); font-size: 0.6rem; font-weight: 600;
  color: var(--muted); opacity: 0.55; user-select: none;
}
.zone.zt { top: 11px; left: 50%; transform: translateX(-50%); letter-spacing: 0.3em; }
.zone.zl { left: 14px; top: 50%; transform: translateY(-50%); line-height: 1.5; text-align: center; }

/* ---------- hero ---------- */
.hero2 { padding: clamp(18px, 3.5vw, 40px) 0 0; }
.hero2 .eyebrow {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.18em; color: var(--muted); margin-bottom: 24px;
}
.hero2 .eyebrow .nb, .hero .eyebrow .nb { white-space: nowrap; }
.hero2 .eyebrow .nb + .nb::before, .hero .eyebrow .nb + .nb::before { content: " · "; color: var(--muted); white-space: pre; }
.hero2 .eyebrow b.nb, .hero .eyebrow b.nb { color: var(--accent); font-weight: 600; }
.hero2 h1 {
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(2.6rem, 6.5vw, 4.7rem);
  line-height: 1.0; letter-spacing: -0.028em; max-width: 15ch;
}
.hero2 h1 .dot { color: var(--accent); }
.hero2 .lede { max-width: 62ch; margin-top: 24px; font-size: 1.13rem; color: var(--muted); line-height: 1.7; }

/* ---------- title block ---------- */
.tblock {
  margin-top: clamp(28px, 4vw, 44px);
  display: grid; grid-template-columns: 1.15fr 1.7fr 1.05fr 0.6fr;
  border: 1.5px solid var(--ink); background: var(--label);
}
.tblock > div { padding: 10px 14px 12px; border-right: 1px solid var(--line); min-width: 0; }
.tblock > div:last-child { border-right: none; }
.tblock span {
  display: block; font-family: var(--mono); font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.22em; color: var(--muted); margin-bottom: 4px;
}
.tblock b {
  display: block; font-family: var(--mono); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- cue rule ---------- */
.cue {
  display: flex; align-items: center; gap: 18px;
  margin: clamp(38px, 6vw, 60px) 0 24px;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.26em; color: var(--accent);
}
.cue::before, .cue::after { content: ""; height: 2px; background: var(--ink); flex: 1; }
.cue::before { flex: 0 0 42px; }

/* ---------- plates ---------- */
.plates { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 26px); }
.plate {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--label); border: 1.5px solid var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.plate:hover {
  transform: translateY(-4px); color: var(--ink);
  box-shadow: 0 2px 3px rgba(25, 29, 33, 0.08), 0 16px 34px rgba(25, 29, 33, 0.13);
}
.plate figure { margin: 10px 10px 0; border: 1px solid var(--line); background: var(--plate-mat); overflow: hidden; }
.plate img { width: 100%; height: auto; display: block; transition: transform 0.35s ease; }
.plate:hover img { transform: scale(1.035); }
.pcap { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.pfig { display: flex; align-items: baseline; gap: 12px; margin-bottom: 9px; }
.pfig .fig {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--paper); background: var(--ink); padding: 2px 8px 3px;
}
.plate:hover .pfig .fig { background: var(--accent); color: #fff; }
.pfig .pcode { font-family: var(--mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.22em; color: var(--accent); }
.pcap h2 { font-family: var(--disp); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.16; }
.pdesc { color: var(--muted); font-size: 0.94rem; line-height: 1.62; margin-top: 8px; }
.enter {
  margin-top: auto; padding-top: 18px;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em;
  color: var(--accent); display: inline-flex; align-items: center; gap: 8px;
}
.enter em { font-style: normal; transition: transform 0.18s ease; }
.plate:hover .enter em { transform: translateX(6px); }


/* Four chains on the crypto plate. A tile cannot hold prose about four
   blockchains, but it can hold four lines — one per chain, so the plate says
   what is actually behind the door instead of naming only the oldest of them.
   Sized below .pdesc deliberately: it is a manifest, not the pitch. */
.pchains { list-style: none; margin: 10px 0 0; padding: 0; }
.pchains li {
  color: var(--muted); font-size: 0.84rem; line-height: 1.5;
  padding-left: 14px; position: relative;
}
.pchains li + li { margin-top: 2px; }
.pchains li::before {
  content: "\2500"; position: absolute; left: 0; color: var(--accent); opacity: .7;
}
.pchains b { color: var(--ink); font-weight: 700; }

/* ---------- closing line ---------- */
.closing { margin: clamp(42px, 7vw, 68px) 0 4px; padding-top: 26px; border-top: 2px solid var(--ink); }
.closing p {
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  line-height: 1.14; letter-spacing: -0.02em; max-width: 24ch;
}
.closing .dot { color: var(--accent); }

/* ---------- pullquote (interior pages still use it) ---------- */
.pullquote { margin: 64px 0 10px; padding-top: 34px; border-top: 2px solid var(--ink); }
.pullquote p {
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(1.9rem, 5.4vw, 3.4rem);
  line-height: 1.12; letter-spacing: -0.025em; max-width: 20ch;
}
.pullquote .dot { color: var(--accent); }

/* ---------- footer title block ---------- */
.tfoot { max-width: 1160px; margin: 0 auto clamp(28px, 5vw, 56px); padding: 0 0; }
.tgrid {
  display: grid; grid-template-columns: 1.45fr 1.05fr 1.15fr 1.1fr;
  border: 2px solid var(--ink); background: var(--label); box-shadow: var(--shadow);
}
.tcell { padding: 16px 18px 18px; border-right: 1px solid var(--line); min-width: 0; }
.tcell:last-child { border-right: none; }
.tcell .tlab {
  display: block; font-family: var(--mono); font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.22em; color: var(--muted); margin-bottom: 8px;
}
.tcell a { font-family: var(--mono); font-size: 0.86rem; font-weight: 600; text-decoration: none; }
.tcell a:hover { color: var(--accent); }
.tcell a small { font-weight: 600; color: var(--muted); }
.tcell nav { display: flex; flex-direction: column; gap: 5px; }
.tcell nav a { font-size: 0.72rem; letter-spacing: 0.1em; color: var(--muted); }
.tname b { font-family: var(--disp); font-weight: 800; font-size: 1.22rem; letter-spacing: -0.01em; display: block; }
.tname span { display: block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em; color: var(--muted); margin-top: 7px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .plates { grid-template-columns: 1fr; }
  .tblock { grid-template-columns: 1fr 1fr; }
  .tblock > div { border-bottom: 1px solid var(--line); }
  .tblock > div:nth-child(2n) { border-right: none; }
  .tblock > div:nth-child(n+3) { border-bottom: none; }
  .tgrid { grid-template-columns: 1fr 1fr; }
  .tcell { border-bottom: 1px solid var(--line); }
  .tcell:nth-child(2n) { border-right: none; }
  .tcell:nth-child(n+3) { border-bottom: none; }
  .zone { display: none; }
}
@media (max-width: 560px) {
  .sheet { margin: 10px 10px 20px; padding: 20px 16px 26px; }
  .tfoot { margin: 0 10px 26px; }
  .tblock, .tgrid { grid-template-columns: 1fr; }
  .tblock > div, .tcell { border-right: none; border-bottom: 1px solid var(--line); }
  .tblock > div:last-child, .tcell:last-child { border-bottom: none; }
}

/* dark re-inks: the plates stay cream — prints pinned to a dark drafting wall */
:root[data-theme="dark"] .plate img { filter: brightness(0.96); }

/* ---------- laser strip (landing sheet, FIG. IV) ---------- */
.lgrid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 26px); align-items: stretch; }
.lshot {
  margin: 0; border: 1.5px solid var(--ink); background: var(--plate-mat);
  box-shadow: var(--shadow); overflow: hidden;
}
.lshot img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; display: block; }
.lcap {
  display: flex; flex-direction: column; background: var(--label);
  border: 1.5px solid var(--ink); box-shadow: var(--shadow); padding: 18px 20px 20px;
}
.lcap h2 {
  font-family: var(--disp); font-weight: 800; font-size: 1.3rem;
  letter-spacing: -0.015em; line-height: 1.16;
}
.lcta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.lnote {
  margin-top: auto; padding-top: 16px;
  font-family: var(--mono); font-size: 0.72rem; line-height: 1.75; color: var(--muted);
}
.lnote a { color: var(--accent); text-decoration: none; font-weight: 600; }
.lnote a:hover { text-decoration: underline; }
@media (max-width: 980px) {
  .lgrid { grid-template-columns: 1fr; }
  .lshot img { min-height: 200px; max-height: 320px; }
}
