/* ============================================================
   THE HALF-LIFE OF MEANING — HLM-2026
   Design system: declassified report turned monument.
   Two voices: REPORT (mono, paper, ink) and DEEP TIME (void, serif).
   No rounded corners. No soft shadows. No loaded fonts.
   ============================================================ */

:root {
  --void: #121310;
  --void-2: #0c0d0b;
  --paper: #e7e2d3;
  --paper-2: #ded8c6;
  --ink: #1c1a15;
  --ink-soft: #4c473c;
  --bone: #cfc9b8;
  --bone-dim: #8d877a;
  --yellow: #e8b820;
  --yellow-deep: #c79a0a;
  --red: #b23a1d;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --serif: "Charter", "Iowan Old Style", "Palatino", Georgia, serif;
  --sheet-w: 60rem;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--yellow); color: var(--ink); }

.yellow { color: var(--yellow); }

/* ---------- hazard stripes ---------- */
.hazard-bar {
  height: 14px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow) 0 16px,
    var(--void-2) 16px 32px
  );
}

/* ---------- section rail ---------- */
.rail {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
}
.rail a {
  display: block;
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  text-align: center;
  color: var(--bone-dim);
  text-decoration: none;
  font-size: 0.7rem;
  border-left: 2px solid transparent;
  background: rgba(12,13,11,0.7);
}
.rail a:hover { color: var(--paper); }
.rail a.on { color: var(--ink); background: var(--yellow); font-weight: 700; }
@media (max-width: 760px) { .rail { display: none; } }

/* ============================================================
   COVER
   ============================================================ */
.cover {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(ellipse 120% 70% at 50% 110%, #1c1d18 0%, var(--void) 60%);
}
.cover-inner {
  max-width: var(--sheet-w);
  margin: 0 auto;
  padding: 9vh 2rem 6vh;
  width: 100%;
}
.doc-line {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--bone-dim);
  margin-bottom: 0.4rem;
}
.doc-line.dim { color: #5d584d; }

.title {
  margin: 9vh 0 4vh;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(3rem, 10.5vw, 8.2rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--paper);
  text-transform: uppercase;
}
.title span { display: block; }
.title span:nth-child(2) { color: var(--yellow); }

.cover-sub {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--bone);
  margin-bottom: 2.2rem;
}
.cover-sub em { color: var(--yellow); font-style: italic; }

.cover-credit {
  max-width: 34rem;
  font-size: 0.78rem;
  color: var(--bone-dim);
  letter-spacing: 0.02em;
  margin-bottom: 4rem;
}

.scroll-cue {
  display: inline-block;
  color: var(--yellow);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  border: 1px solid var(--yellow-deep);
  padding: 0.7rem 1.3rem;
}
.scroll-cue:hover { background: var(--yellow); color: var(--ink); }

/* ============================================================
   VOID sections (dark interludes)
   ============================================================ */
.void {
  background: var(--void);
  padding: 7rem 0 8rem;
  border-top: 1px solid #23241f;
}
.void-inner {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 2rem;
}
.void-inner.wide { max-width: 56rem; }
.sec-mark {
  color: var(--yellow);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  margin-bottom: 0.8rem;
}
.void-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 400;
  color: var(--paper);
  margin-bottom: 2.6rem;
}

.prose p { margin-bottom: 1.25rem; }
.prose.serif p, .serif {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--bone);
}
.prose.serif strong { color: var(--paper); }
.prose.serif em { color: var(--paper); }
.standoff {
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid #34352e;
  color: var(--paper) !important;
  font-size: 1.25rem !important;
}

/* how-to box on §0 */
.howto {
  border: 1px solid #3a3b33;
  padding: 1.4rem 1.6rem;
  margin: 2.4rem 0;
}
.howto-head {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--yellow);
  margin-bottom: 0.9rem;
}
.howto ol { list-style: none; counter-reset: how; }
.howto li {
  counter-increment: how;
  margin-bottom: 0.7rem;
  padding-left: 2rem;
  position: relative;
  font-size: 0.92rem;
  color: var(--bone);
}
.howto li::before {
  content: counter(how, decimal-leading-zero);
  position: absolute;
  left: 0;
  color: var(--bone-dim);
}

.statgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #3a3b33;
  border: 1px solid #3a3b33;
  margin-top: 2.6rem;
}
.stat { background: var(--void); padding: 1.3rem 1.2rem 1.5rem; }
.stat-n {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.stat-l { font-size: 0.8rem; color: var(--bone-dim); display: block; }
@media (max-width: 700px) { .statgrid { grid-template-columns: 1fr; } }

/* ============================================================
   SHEET sections (paper)
   ============================================================ */
.sheet { padding: 5rem 1rem; background: var(--void); }
.sheet-inner {
  max-width: var(--sheet-w);
  margin: 0 auto;
  background: var(--paper);
  color: var(--ink);
  padding: 2.2rem clamp(1.2rem, 5vw, 4rem) 3rem;
  position: relative;
  border: 1px solid #000;
}
/* crop marks */
.sheet-inner::before, .sheet-inner::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--bone-dim);
  border-style: solid;
}
.sheet-inner::before { top: -8px; left: -8px; border-width: 0 0 1px 1px; transform: rotate(180deg); }
.sheet-inner::after { bottom: -8px; right: -8px; border-width: 1px 1px 0 0; transform: rotate(180deg); }

.sheet-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.6rem;
  margin-bottom: 2.4rem;
}
.sheet-title {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}
.sec-no { color: var(--yellow-deep); margin-right: 0.6rem; }

.epigraph {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.06rem;
  color: var(--ink-soft);
  max-width: 38rem;
  margin-bottom: 2.6rem;
}
.epigraph .cite {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

.sheet .prose p {
  font-family: var(--serif);
  font-size: 1.07rem;
  line-height: 1.72;
  color: var(--ink);
  max-width: 42rem;
}
.prose.small p { font-size: 0.85rem; line-height: 1.65; font-family: var(--mono); max-width: none; color: var(--ink-soft); }
.prose.small b { color: var(--ink); }

.sub-head {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  margin: 3rem 0 1.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--bone-dim);
}

.fn {
  font-size: 0.65rem;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  vertical-align: super;
  margin-left: 0.35rem;
}

/* exhibits */
.exhibit {
  border: 1.5px solid var(--ink);
  margin: 2.6rem 0;
  padding: 1.6rem clamp(1rem, 3vw, 2.2rem) 1.8rem;
  position: relative;
}
.exhibit-head {
  position: absolute;
  top: -0.7em;
  left: 1.2rem;
  background: var(--paper);
  padding: 0 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.exhibit-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  max-width: 40rem;
  margin: 0.6rem 0 1rem;
}
.exhibit-note.pull {
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--ink);
  border-left: 3px solid var(--yellow);
  padding-left: 1.1rem;
  margin-top: 1.6rem;
}

/* personnel table */
.personnel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 1.4rem 0 0.6rem;
}
@media (max-width: 640px) { .personnel { grid-template-columns: 1fr; } }
.team-head {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.4rem;
  margin-bottom: 0.7rem;
}
.personnel ul { list-style: none; }
.personnel li {
  font-size: 0.85rem;
  padding: 0.28rem 0;
  border-bottom: 1px dotted var(--bone-dim);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.personnel li span { color: var(--ink-soft); font-size: 0.75rem; text-align: right; }

/* the message */
.message {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  line-height: 1.65;
  margin: 2rem auto;
  max-width: 38rem;
  color: var(--ink);
}
.message p { margin-bottom: 1.1em; }
.message p:nth-child(3) { font-weight: 700; }

/* specimens (Beowulf etc.) */
.specimen {
  background: var(--paper-2);
  border-left: 4px solid var(--ink);
  padding: 1.2rem 1.4rem;
  margin: 1.6rem 0;
  max-width: 42rem;
}
.specimen-label { font-size: 0.68rem; letter-spacing: 0.2em; color: var(--ink-soft); margin-bottom: 0.6rem; }
.specimen-text { font-family: var(--serif); font-size: 1.2rem; }
.specimen-gloss { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.6rem; }

/* ---------- decay machine ---------- */
.machine {
  border: 2px solid var(--ink);
  background: var(--paper-2);
  padding: 1.6rem clamp(1rem, 3vw, 2rem) 2.4rem;
  margin: 2rem 0 2.6rem;
}
.machine-head {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 1.2rem;
}
.machine-label { display: block; font-size: 0.66rem; letter-spacing: 0.16em; color: var(--ink-soft); margin-bottom: 0.4rem; }
#decay-input {
  width: 100%;
  font-family: var(--mono);
  font-size: 0.95rem;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}
#decay-input:focus { outline: 2px solid var(--yellow-deep); }

.decay-stage { margin: 1.6rem 0 1.2rem; min-height: 7.5rem; }
.decay-year { font-size: 0.72rem; letter-spacing: 0.2em; color: var(--ink-soft); margin-bottom: 0.5rem; }
.decay-output {
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.5;
  min-height: 3.2em;
  word-wrap: break-word;
}
.decay-output .lac { color: var(--bone-dim); }
.decay-output .fossil { background: var(--yellow); padding: 0 0.15em; }
.decay-meter { font-size: 0.72rem; letter-spacing: 0.14em; color: var(--ink-soft); margin-top: 0.7rem; }
.decay-meter span { color: var(--ink); font-weight: 700; }

input[type="range"] {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 4px;
  background: var(--ink);
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  background: var(--yellow);
  border: 2px solid var(--ink);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 0;
}
.decay-ticks {
  position: relative;
  height: 3.4rem;
  margin-top: 0.6rem;
  font-size: 0.62rem;
  color: var(--ink-soft);
}
.decay-ticks span { position: absolute; transform: translateX(-50%); text-align: center; letter-spacing: 0.05em; line-height: 1.35; }
.decay-ticks span:first-child { transform: none; text-align: left; }
.decay-ticks span:last-child { transform: translateX(-100%); text-align: right; }
.decay-ticks i { font-style: italic; color: var(--bone-dim); display: block; max-width: 8.5em; }
@media (max-width: 640px) { .decay-ticks span:nth-child(2) { display: none; } }

/* ---------- symbol cards ---------- */
.symbol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.8rem 0 1rem;
}
@media (max-width: 760px) { .symbol-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .symbol-grid { grid-template-columns: 1fr; } }
.symbol-card {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  text-align: left;
  padding: 1.1rem 1.1rem 1rem;
  transition: background 0.15s;
}
.symbol-card:hover, .symbol-card.open { background: var(--paper-2); }
.sym-head {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.sym-head:focus-visible { outline: 2px solid var(--yellow-deep); outline-offset: 4px; }
.sym-head svg { width: 64px; height: 64px; display: block; margin-bottom: 0.7rem; }
.sym-name { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; }
.sym-arc {
  font-size: 0.78rem;
  line-height: 1.55;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px dotted var(--bone-dim);
  color: var(--ink-soft);
}
.sym-arc[hidden] { display: none; }
.sym-arc b { color: var(--ink); }
.sym-arc em { color: var(--red); font-style: italic; }

/* ---------- institutions bar chart ---------- */
.barchart { margin: 2rem 0 1rem; }
.bar-row {
  display: grid;
  grid-template-columns: 11rem 1fr 5rem;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
}
@media (max-width: 640px) { .bar-row { grid-template-columns: 8rem 1fr 4rem; font-size: 0.68rem; } }
.bar-name { text-align: right; color: var(--ink-soft); }
.bar-track { position: relative; height: 1.1rem; background: transparent; }
.bar {
  height: 100%;
  width: 0;
  background: var(--ink);
  transition: width 1.2s cubic-bezier(.22,1,.36,1);
}
.bar.hazard {
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 10px, var(--ink) 10px 20px);
}
.bar-val { color: var(--ink-soft); }
.bar-row.req { margin-top: 1rem; }
.bar-row.req .bar-name, .bar-row.req .bar-val { color: var(--yellow-deep); font-weight: 700; }

/* ---------- worked / weird two-up figures ---------- */
.worked, .weird {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 1.6rem 0;
}
@media (max-width: 760px) { .worked, .weird { grid-template-columns: 1fr; } }
.worked-item, .weird-item { border-top: 2px solid var(--ink); padding-top: 1rem; }
.worked-head { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; margin-bottom: 0.6rem; }
.worked-item figcaption p:not(.worked-head), .weird-item figcaption p:not(.worked-head) {
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink);
}
.fig { width: 100%; height: auto; color: var(--ink); margin-bottom: 0.8rem; }
.weird .fig, .worked .fig { max-height: 150px; }

/* ---------- plates (§3) ---------- */
.plates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  margin: 2rem 0;
}
@media (max-width: 760px) { .plates { grid-template-columns: 1fr; } }
.plate {
  border: 1.5px solid var(--ink);
  padding: 1rem 1rem 1.1rem;
  position: relative;
  background: var(--paper);
}
.plate .fig { background: var(--paper-2); display: block; }
.plate figcaption { font-size: 0.78rem; line-height: 1.55; color: var(--ink-soft); margin-top: 0.7rem; }
.plate figcaption b { display: block; color: var(--ink); letter-spacing: 0.08em; margin-bottom: 0.3rem; }
.stamp {
  position: absolute;
  top: 0.7rem; right: 0.7rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--red);
  border: 2px solid var(--red);
  padding: 0.25rem 0.5rem;
  transform: rotate(6deg);
  background: var(--paper);
}

.bigfig { margin: 1.4rem 0; }
.bigfig figcaption { font-size: 0.75rem; letter-spacing: 0.1em; color: var(--ink-soft); margin-top: 0.5rem; }
.dim { font-family: var(--mono); font-size: 9px; fill: var(--ink-soft); stroke: none; letter-spacing: 0.08em; }

.speclist { list-style: none; margin: 1.4rem 0; max-width: 44rem; }
.speclist li {
  font-size: 0.88rem;
  line-height: 1.6;
  padding: 0.55rem 0 0.55rem 1.4rem;
  border-bottom: 1px dotted var(--bone-dim);
  position: relative;
}
.speclist li::before { content: "▪"; position: absolute; left: 0.2rem; color: var(--yellow-deep); }
.speclist b { letter-spacing: 0.04em; }

.sheet-foot {
  margin-top: 3rem;
  padding-top: 0.7rem;
  border-top: 2px solid var(--ink);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}

/* ============================================================
   §5 THE PROJECTION (terminal)
   ============================================================ */
.term { background: var(--void-2); }
.term-intro { max-width: 44rem; margin-bottom: 3rem; }

.worksheet {
  border: 1px solid #3a3b33;
  padding: 1.8rem clamp(1rem, 3vw, 2rem) 1.6rem;
  position: relative;
  background: var(--void);
}
.worksheet .machine-head { color: var(--yellow); }

.ws-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}
@media (max-width: 860px) { .ws-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ws-grid { grid-template-columns: 1fr; } }

.ws-opt {
  display: flex;
  gap: 0.7rem;
  border: 1px solid #34352e;
  padding: 0.85rem 0.9rem;
  cursor: pointer;
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--bone-dim);
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}
.ws-opt:hover { border-color: var(--bone-dim); }
.ws-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ws-box {
  flex: 0 0 auto;
  width: 16px; height: 16px;
  border: 1.5px solid var(--bone-dim);
  margin-top: 0.15rem;
  position: relative;
}
.ws-opt input:checked ~ .ws-box { background: var(--yellow); border-color: var(--yellow); }
.ws-opt input:checked ~ .ws-box::after {
  content: "✕";
  position: absolute;
  inset: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 15px;
  text-align: center;
  font-weight: 700;
}
.ws-opt input:checked ~ .ws-body { color: var(--bone); }
.ws-opt input:checked ~ .ws-body b { color: var(--yellow); }
.ws-opt input:focus-visible ~ .ws-box { outline: 2px solid var(--yellow); outline-offset: 2px; }
.ws-body b { display: block; color: var(--bone); letter-spacing: 0.1em; margin-bottom: 0.25rem; }
.ws-body i { color: var(--red); font-style: normal; }
.ws-opt.oblivion { border-style: dashed; }
.ws-opt.disabled { opacity: 0.35; pointer-events: none; }
.ws-box-none { display: none; }

.ws-actions { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.btn-run {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  background: var(--yellow);
  color: var(--ink);
  border: none;
  padding: 0.9rem 1.6rem;
  cursor: pointer;
}
.btn-run:hover { background: var(--paper); }
.btn-ghost {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--bone-dim);
  padding: 0.7rem 1.2rem;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.ws-meta { font-size: 0.7rem; color: var(--bone-dim); letter-spacing: 0.1em; }

/* projection log */
.projection { margin-top: 2.4rem; border: 1px solid #3a3b33; background: #0a0b09; padding: 1.6rem clamp(1rem, 3vw, 2rem) 2rem; }
.proj-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--bone-dim);
  border-bottom: 1px solid #2a2b25;
  padding-bottom: 0.8rem;
  margin-bottom: 1.4rem;
}
.proj-log { list-style: none; }
.proj-log li {
  display: grid;
  grid-template-columns: 6.2rem 1fr;
  gap: 1.2rem;
  padding: 0.65rem 0;
  border-bottom: 1px dotted #26271f;
  font-size: 0.85rem;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(4px);
  animation: logline 0.4s forwards;
}
@keyframes logline { to { opacity: 1; transform: none; } }
.proj-log .y { color: var(--yellow); font-weight: 700; letter-spacing: 0.06em; }
.proj-log .ev { color: var(--bone); font-family: var(--serif); font-size: 0.97rem; }
.proj-log .state { display: block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; color: #5d584d; margin-top: 0.35rem; }
.proj-log li.bad .ev { color: #d98873; }
.proj-log li.good .ev { color: #b8c98a; }
@media (max-width: 560px) { .proj-log li { grid-template-columns: 1fr; gap: 0.2rem; } }

.verdict { margin-top: 2rem; text-align: center; }
.verdict-stamp {
  display: inline-block;
  font-size: clamp(1.1rem, 3vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  padding: 0.8rem 1.6rem;
  border: 3px double currentColor;
  transform: rotate(-2deg);
  margin-bottom: 1.4rem;
}
.verdict-stamp.v-good { color: #9fbf63; }
.verdict-stamp.v-bad { color: var(--red); }
.verdict-stamp.v-grey { color: var(--bone-dim); }
.verdict-stamp.v-yellow { color: var(--yellow); }
.verdict-text { max-width: 38rem; margin: 0 auto 1.8rem; text-align: left; }
.proj-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.proj-note { font-size: 0.68rem; letter-spacing: 0.12em; color: var(--bone-dim); margin-top: 1.4rem; }

/* ============================================================
   §6 last word
   ============================================================ */
.lastword { margin-top: 4rem; border: 1px solid #3a3b33; padding: 1.8rem clamp(1rem, 3vw, 2rem) 2.2rem; }
.lastword .machine-head { color: var(--yellow); margin-bottom: 1.4rem; }
.lastword-prompt { font-size: 1.3rem; color: var(--paper); margin-bottom: 1.2rem; }
#lastword-form { display: flex; gap: 0.8rem; flex-wrap: wrap; }
#lastword-input {
  flex: 1 1 16rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  padding: 0.8rem 1rem;
  background: var(--void);
  border: 1px solid var(--bone-dim);
  color: var(--paper);
}
#lastword-input:focus { outline: 2px solid var(--yellow); }
.lastword-stage { margin-top: 2.4rem; }
.lastword-text {
  font-size: clamp(1.3rem, 3.4vw, 1.9rem);
  line-height: 1.55;
  color: var(--paper);
  min-height: 4.6em;
  margin: 0.8rem 0 1.6rem;
  word-wrap: break-word;
}
.lastword-text .lac { color: #4a4b42; }
.lastword-text .fossil { color: var(--yellow); }
.lastword-after {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--bone);
  border-top: 1px solid #34352e;
  padding-top: 1.6rem;
  animation: logline 1.2s forwards;
}

/* ============================================================
   colophon
   ============================================================ */
.colophon .sheet-inner { background: var(--paper-2); }
.sig { letter-spacing: 0.18em; margin-top: 2rem; font-size: 0.68rem !important; }
