/* Casrion field manual site. Paper, ink, typewriter. No frameworks, no webfonts. */

:root {
  --paper: #ede4d3;
  --paper-deep: #e4d8c2;
  --paper-card: #f4ecdd;
  --ink: #241d15;
  --ink-soft: #5f5344;
  --ink-faint: #8c7d69;
  --rule: #c4b298;
  --rule-soft: #d6c7ac;
  --stamp: #9c4a1f;
  --accent: #8a5a2b;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
}

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

html { scroll-behavior: smooth; }
html.no-anim { scroll-behavior: auto; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Faint paper grain over everything */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.14 0 0 0 0 0.11 0 0 0 0 0.08 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.mono { font-family: var(--mono); }

::selection { background: rgba(156, 74, 31, 0.22); }

a { color: inherit; }

kbd {
  font-family: var(--mono);
  font-size: 0.72em;
  letter-spacing: 0.03em;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: 3px;
  padding: 2px 7px 1px;
  white-space: nowrap;
}

/* ── Print furniture ─────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; background: var(--stamp);
  transform-origin: 0 50%; transform: scaleX(0);
  z-index: 60;
}

.crops i {
  position: fixed; width: 18px; height: 18px;
  border: 0 solid var(--ink-faint); opacity: 0.55;
  z-index: 50; pointer-events: none;
}
.crops .c1 { top: 12px; left: 12px; border-top-width: 1px; border-left-width: 1px; }
.crops .c2 { top: 12px; right: 12px; border-top-width: 1px; border-right-width: 1px; }
.crops .c3 { bottom: 12px; left: 12px; border-bottom-width: 1px; border-left-width: 1px; }
.crops .c4 { bottom: 12px; right: 12px; border-bottom-width: 1px; border-right-width: 1px; }

.margin-note {
  position: fixed; top: 50%;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.34em;
  color: var(--ink-faint); opacity: 0.7;
  z-index: 50; pointer-events: none; white-space: nowrap;
}
.margin-left  { left: 18px;  transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; }
.margin-right { right: 18px; transform: translateY(-50%); writing-mode: vertical-rl; }

/* ── Sheet ───────────────────────────────────────── */
.sheet {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 28px 60px;
  position: relative;
}

.rule-double {
  border-top: 1.5px solid var(--ink);
  position: relative;
  margin: 10px 0 0;
}
.rule-double::after {
  content: ""; position: absolute; left: 0; right: 0; top: 3px;
  border-top: 1px solid var(--ink);
}

/* ── Masthead ────────────────────────────────────── */
.masthead { padding-top: 34px; }
.mast-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.mast-cell { font-size: 11px; letter-spacing: 0.22em; color: var(--ink-soft); flex: 1; }
.mast-cell.right { text-align: right; }
.mast-brand { display: flex; align-items: center; gap: 10px; }
.mast-brand img { display: block; }
.mast-name {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.45rem; letter-spacing: 0.42em; margin-right: -0.42em;
}
.mast-sub {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 2px 0; font-size: 10.5px; letter-spacing: 0.2em;
  color: var(--ink-faint);
}
.mast-nav { display: flex; gap: 22px; }
.mast-nav a { text-decoration: none; color: var(--ink-soft); }
.mast-nav a:hover { color: var(--stamp); }

/* ── Hero ────────────────────────────────────────── */
.hero { padding: 84px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 54px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }

/* Frontispiece plate beside the hero copy */
.frontis { margin: 0; }
.frontis-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: 4px 5px 0 rgba(36, 29, 21, 0.16);
  background: var(--paper-deep);
}

/* The note Casrion kept while you were reading */
.frontis-note {
  position: absolute; right: 3.5%; bottom: 5%;
  width: min(224px, 52%);
  text-align: left;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0, transparent 25px,
      rgba(138, 90, 43, 0.14) 25px, rgba(138, 90, 43, 0.14) 26px
    ),
    var(--paper-card);
  border: 1px solid var(--rule);
  box-shadow: 4px 5px 0 rgba(36, 29, 21, 0.24);
}
.fn-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-size: 8.5px; letter-spacing: 0.06em; color: var(--ink-faint);
  background: var(--paper-deep);
  border-bottom: 1px solid var(--rule);
  padding: 7px 12px 6px;
}
.fn-key { color: var(--stamp); letter-spacing: 0.12em; white-space: nowrap; }
.fn-line { font-size: 0.78rem; line-height: 1.5; padding: 8px 11px 4px; min-height: 3.9em; }
.fn-cursor {
  display: inline-block; width: 6px; height: 11px;
  background: var(--ink); margin-left: 2px; vertical-align: -1px;
  animation: blink 1.05s steps(1) infinite;
}
.fn-src {
  font-size: 9px; letter-spacing: 0; color: var(--stamp);
  padding: 0 11px 9px; white-space: nowrap;
  opacity: 0; transition: opacity 0.5s ease;
}
.fn-src.on { opacity: 1; }
html.no-anim .fn-src { opacity: 1; transition: none; }
html.no-anim .fn-cursor { animation: none; }

.note-reveal {
  opacity: 0;
  transform: translateY(18px) rotate(2deg);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 1.3, 0.3, 1);
  transition-delay: 0.9s;
}
.note-reveal.in-view { opacity: 1; transform: rotate(-2deg); }
html.no-anim .note-reveal { opacity: 1; transform: rotate(-2deg); transition: none; }
.frontis-frame img {
  display: block; width: 100%; height: auto;
  transform: translateY(var(--plx, 0px)) scale(1.1);
  will-change: transform;
}
.frontis .fig { text-align: center; }
.kicker {
  font-size: 11px; letter-spacing: 0.26em; color: var(--stamp);
  margin-bottom: 22px;
}
h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 46ch; }
.hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-meta { font-size: 11.5px; letter-spacing: 0.14em; color: var(--ink-faint); }

.btn-stamp {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px; letter-spacing: 0.14em;
  color: var(--stamp);
  border: 2px solid var(--stamp);
  padding: 13px 22px 12px;
  text-decoration: none;
  background: transparent;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn-stamp:hover { background: var(--stamp); color: var(--paper-card); transform: translateY(-1px); }
.btn-stamp.big { font-size: 15px; padding: 16px 30px 15px; }

/* ── Specimen papers ─────────────────────────────── */
.specimen { position: relative; }
.spec-tag {
  position: absolute; top: -11px; left: 18px; z-index: 2;
  font-size: 10px; letter-spacing: 0.3em;
  background: var(--ink); color: var(--paper);
  padding: 4px 10px 3px;
}
.paper {
  position: relative;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0, transparent 27px,
      rgba(138, 90, 43, 0.16) 27px, rgba(138, 90, 43, 0.16) 28px
    ),
    var(--paper-card);
  border: 1px solid var(--rule);
  box-shadow: 3px 4px 0 rgba(36, 29, 21, 0.14);
  padding: 0 0 26px;
  min-height: 300px;
}
.paper-head {
  font-size: 11px; letter-spacing: 0.12em; color: var(--ink-faint);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-deep);
  padding: 8px 16px;
}
.paper-body { padding: 16px 18px 0; font-size: 0.92rem; line-height: 28px; }
.paper-body p { margin: 0; }
.paper-body .pl { margin-bottom: 28px; }
.paper-body h4 {
  font-size: 1.02rem; font-weight: 700; line-height: 28px;
}
.paper-body .src {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.02em;
  color: var(--stamp); line-height: 28px;
}
.paper-cursor {
  display: inline-block; width: 8px; height: 17px;
  background: var(--ink); vertical-align: -2px;
  margin-left: 3px; opacity: 0;
}
.paper-cursor.on { opacity: 1; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.fig {
  margin-top: 12px;
  font-size: 10.5px; letter-spacing: 0.1em; color: var(--ink-faint);
}

/* Quick-writer specimen */
.paper-static { min-height: 0; }
.qw { min-height: 128px; }
.qw-typed {
  display: inline; white-space: pre-wrap; word-break: break-word;
  font-size: 0.85rem; line-height: 28px; color: var(--ink);
}
.qw-hint {
  margin-top: 14px; padding: 10px 16px 0;
  border-top: 1px dashed var(--rule);
  font-size: 10.5px; letter-spacing: 0.06em; color: var(--ink-faint);
}
.qw-hint b { color: var(--ink-soft); }

/* ── Dividers ────────────────────────────────────── */
.divider {
  text-align: center;
  font-size: 12px; letter-spacing: 0.18em;
  color: var(--ink-faint);
  margin: 26px 0;
  user-select: none;
}
.divider span { display: inline-block; opacity: 0; transform: translateY(4px); transition: opacity 0.3s ease, transform 0.3s ease; transition-delay: var(--d, 0s); }
.divider.in-view span { opacity: 0.85; transform: none; }
html.no-anim .divider span { opacity: 0.85; transform: none; transition: none; }

/* ── Sections ────────────────────────────────────── */
.section { padding: 58px 0; }

.sec-head { margin-bottom: 40px; }
.sec-index {
  font-size: 12px; letter-spacing: 0.24em; color: var(--stamp);
  display: block; margin-bottom: 8px;
}
.sec-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 600; line-height: 1.15;
}
.sec-note {
  margin-top: 10px;
  font-size: 10.5px; letter-spacing: 0.26em; color: var(--ink-faint);
}

/* ── Contents ────────────────────────────────────── */
.toc { list-style: none; max-width: 700px; }
.toc li { border-bottom: 1px solid var(--rule-soft); }
.toc li:first-child { border-top: 1px solid var(--rule-soft); }
.toc a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 15px 6px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.toc a:hover { background: rgba(156, 74, 31, 0.06); }
.toc a:hover .toc-title { color: var(--stamp); }
.toc-num { font-size: 12px; color: var(--stamp); letter-spacing: 0.1em; min-width: 26px; }
.toc-title { font-size: 1.12rem; }
.toc-ref { font-size: 11px; color: var(--ink-faint); letter-spacing: 0.06em; }

.leader { flex: 1; border-bottom: 2px dotted var(--rule); transform: translateY(-4px); min-width: 40px; }

/* ── Ledger (procedure) ──────────────────────────── */
.ledger { list-style: none; max-width: 720px; }
.ledger li {
  display: flex; gap: 30px;
  padding: 30px 6px;
  border-top: 1px solid var(--rule-soft);
}
.ledger li:last-child { border-bottom: 1px solid var(--rule-soft); }
.ledger-num {
  font-family: var(--serif);
  font-size: 3.2rem; line-height: 1; font-weight: 600;
  color: var(--stamp); min-width: 52px;
}
.ledger h3 { font-size: 1.22rem; font-weight: 600; margin-bottom: 8px; }
.ledger p { color: var(--ink-soft); max-width: 54ch; }

.inv-num {
  font-size: 11px; letter-spacing: 0.16em; color: var(--stamp);
  display: block; margin-bottom: 10px;
}

/* ── Demonstration (film) ────────────────────────── */
.film-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--rule);
  background: var(--paper-deep);
  box-shadow: 4px 5px 0 rgba(36, 29, 21, 0.16);
  overflow: hidden;
}
.film-frame iframe,
.film-frame video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}
.film-slot {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
  color: var(--ink-faint);
  font-size: 11px; letter-spacing: 0.22em;
  text-align: center;
  background: repeating-linear-gradient(45deg, transparent 0 34px, rgba(138, 90, 43, 0.05) 34px 35px);
}
.film-badge {
  border: 1.5px solid var(--stamp); color: var(--stamp);
  padding: 6px 12px 5px;
  font-size: 10px; letter-spacing: 0.26em;
}

/* ── Editions triptych ───────────────────────────── */
.editions { padding: 10px 0 40px; }
.ed-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.ed-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  justify-content: flex-end; align-items: flex-start;
  min-height: 330px;
  padding: 24px 22px 22px;
  border: 1px solid var(--rule);
  background: var(--paper-card);
  box-shadow: 3px 4px 0 rgba(36, 29, 21, 0.12);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
a.ed-card:hover { transform: translateY(-3px); box-shadow: 5px 7px 0 rgba(36, 29, 21, 0.16); }
.ed-art {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.6; transform: scale(1.02);
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s ease;
}
.ed-art-left { background-position: left center; }
.ed-art-right { background-position: right center; }
a.ed-card:hover .ed-art { transform: scale(1.06); opacity: 0.75; }
.ed-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(244, 236, 221, 0) 34%, rgba(244, 236, 221, 0.9) 76%, var(--paper-card) 100%);
  pointer-events: none;
}
.ed-eyebrow, .ed-name, .ed-btn { position: relative; }
.ed-eyebrow { font-size: 10px; letter-spacing: 0.24em; color: var(--stamp); margin-bottom: 6px; }
.ed-name { font-size: 1.7rem; font-weight: 600; line-height: 1.1; margin-bottom: 16px; }
.ed-btn {
  display: inline-block;
  font-size: 11.5px; letter-spacing: 0.14em;
  color: var(--stamp); border: 1.5px solid var(--stamp);
  padding: 8px 14px 7px;
  transition: background 0.18s ease, color 0.18s ease;
}
a.ed-card:hover .ed-btn { background: var(--stamp); color: var(--paper-card); }
.ed-btn.ghost { color: var(--ink-faint); border: 1.5px dashed var(--rule); }
.ed-soon .ed-eyebrow { color: var(--ink-soft); }

/* ── Story (procedure, scroll driven) ────────────── */
.story {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px; align-items: start;
}
.story-visual { position: sticky; top: 84px; }
.story-plates {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--rule);
  box-shadow: 4px 5px 0 rgba(36, 29, 21, 0.16);
  background: var(--paper-deep);
}
.story-plate {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transform: translateY(var(--plx, 0px)) scale(1.1);
  will-change: transform, opacity;
  transition: opacity 0.7s ease;
}
.story-plate.is-active { opacity: 1; }
.story-step {
  min-height: 56vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 26px 4px;
  border-top: 1px solid var(--rule-soft);
  opacity: 0.3;
  transition: opacity 0.45s ease;
}
.story-step:first-child { border-top: 0; }
.story-step.is-current { opacity: 1; }
.story-step .ledger-num { font-size: 2.7rem; min-width: 0; margin-bottom: 10px; }
.story-step h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 8px; }
.story-step p { color: var(--ink-soft); max-width: 46ch; }
html.no-anim .story-visual { position: static; }
html.no-anim .story-step { min-height: 0; opacity: 1; }

/* ── Illustrated features ────────────────────────── */
.feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 30px; margin-bottom: 50px;
}
.feat-art {
  aspect-ratio: 3 / 2;
  background-image: url("./art/tiles.jpg");
  background-size: 300% 300%;
  border: 1px solid var(--rule);
  box-shadow: 3px 4px 0 rgba(36, 29, 21, 0.12);
  margin-bottom: 20px;
  transition: background-size 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.feat:hover .feat-art { background-size: 330% 330%; }
.tile-burst  { background-position: 100% 0%; }
.tile-wave   { background-position: 0% 50%; }
.tile-tunnel { background-position: 0% 100%; }
.feat .inv-num { font-size: 11px; letter-spacing: 0.16em; color: var(--stamp); display: block; margin-bottom: 8px; }
.feat h3 { font-size: 1.16rem; font-weight: 600; margin-bottom: 8px; }
.feat p { color: var(--ink-soft); font-size: 0.95rem; }

/* ── Privacy band (full bleed plate) ─────────────── */
.band {
  position: relative;
  width: 100vw;
  margin: 30px calc(50% - 50vw);
  height: 76vh; min-height: 430px; max-height: 760px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.band-img {
  position: absolute; left: 0; top: -12%;
  width: 100%; height: 124%;
  object-fit: cover; object-position: center 42%;
  transform: translateY(var(--plx, 0px));
  will-change: transform;
}
.band::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(237, 228, 211, 0.18);
}
.band-quote {
  position: relative; z-index: 1;
  max-width: 580px; margin: 0 24px;
  text-align: center;
  background: rgba(244, 236, 221, 0.93);
  border: 1px solid var(--rule);
  box-shadow: 4px 5px 0 rgba(36, 29, 21, 0.22);
  padding: 40px 46px 34px;
}
.band-kicker {
  font-size: 10.5px; letter-spacing: 0.26em; color: var(--stamp);
  margin-bottom: 18px;
}
.band-quote .pull { margin: 0; max-width: none; }
.band-sub {
  margin-top: 18px;
  font-size: 11px; letter-spacing: 0.1em; color: var(--ink-soft);
  line-height: 1.8;
}
html.no-anim .band { height: 640px; }

/* ── Two column deep dives ───────────────────────── */
.twocol {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px; align-items: start;
}
.col-copy p { color: var(--ink-soft); max-width: 50ch; }
.plain-list { list-style: none; margin-top: 22px; }
.plain-list li {
  padding: 10px 2px 10px 26px;
  border-top: 1px solid var(--rule-soft);
  position: relative; font-size: 0.98rem;
}
.plain-list li:last-child { border-bottom: 1px solid var(--rule-soft); }
.plain-list li::before {
  content: "+"; position: absolute; left: 4px; top: 9px;
  font-family: var(--mono); color: var(--stamp);
}

/* ── Key index ───────────────────────────────────── */
.keys {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 56px; max-width: 900px;
}
.key-row {
  display: flex; align-items: baseline; gap: 14px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 1rem;
}
.keys .key-row:nth-child(1), .keys .key-row:nth-child(2) { border-top: 1px solid var(--rule-soft); }

/* ── Specification ───────────────────────────────── */
.spec-wrap { position: relative; max-width: 720px; }
.spec { width: 100%; border-collapse: collapse; }
.spec tr { border-top: 1px solid var(--rule-soft); }
.spec tr:last-child { border-bottom: 1px solid var(--rule-soft); }
.spec th {
  text-align: left; font-weight: 400;
  font-size: 11px; letter-spacing: 0.2em; color: var(--ink-faint);
  padding: 13px 18px 13px 4px; width: 220px; vertical-align: top;
}
.spec td { padding: 13px 4px; font-size: 1.02rem; }

.stamp {
  position: absolute; right: -18px; top: 34%;
  transform: rotate(-5deg);
  border: 3px double var(--stamp);
  color: var(--stamp);
  font-size: 13px; letter-spacing: 0.2em; line-height: 1.7;
  text-align: center;
  padding: 14px 20px;
  border-radius: 4px;
  background: rgba(244, 236, 221, 0.82);
  box-shadow: 0 0 0 1px rgba(156, 74, 31, 0.12);
  pointer-events: none;
}

.pull {
  margin: 70px auto 8px; max-width: 640px;
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.3; font-weight: 600;
}
.pull em { font-style: italic; color: var(--stamp); }

/* ── Download coupon ─────────────────────────────── */
.coupon {
  border: 2px dashed var(--ink-soft);
  max-width: 660px; margin: 0 auto;
  padding: 40px 34px 36px;
  text-align: center;
  background: var(--paper-card);
  position: relative;
}
.coupon-head {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 10px; letter-spacing: 0.22em; color: var(--ink-faint);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 16px; margin-bottom: 30px;
}
.coupon-logo { display: block; margin: 0 auto 18px; }
.coupon h2 { font-size: 1.9rem; font-weight: 600; margin-bottom: 26px; }
.coupon-note {
  margin-top: 22px;
  font-size: 11px; letter-spacing: 0.04em; color: var(--ink-faint);
  max-width: 46ch; margin-left: auto; margin-right: auto; line-height: 1.7;
}
.coupon-lead {
  max-width: 52ch; margin: -12px auto 24px;
  font-size: 1rem; line-height: 1.7; color: var(--ink-soft);
}

/* ── Download request form ───────────────────────── */
.req-form {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; align-items: stretch;
  max-width: 560px; margin: 0 auto;
}
.req-input {
  flex: 1 1 260px; min-width: 0;
  padding: 14px 16px 13px;
  font-size: 13px; letter-spacing: 0.05em;
  color: var(--ink);
  background: var(--paper-card);
  border: 1.5px solid var(--rule);
  border-radius: 3px;
  outline: none;
  box-shadow: inset 0 1px 3px rgba(36, 29, 21, 0.06);
}
.req-input::placeholder { color: var(--ink-faint); }
.req-input:focus { border-color: var(--stamp); }
.req-form .btn-stamp.big { flex: 0 0 auto; }
.req-status {
  margin: 16px auto 0;
  max-width: 52ch;
  font-size: 11px; letter-spacing: 0.1em; line-height: 1.8;
  color: var(--stamp);
}
.req-status.ok { color: var(--ink-soft); }
@media (max-width: 560px) {
  .req-form .btn-stamp.big { flex: 1 1 100%; }
}

/* ── Appendix ────────────────────────────────────── */
.qa {
  border-top: 1px solid var(--rule-soft);
  max-width: 720px;
}
.qa:last-of-type { border-bottom: 1px solid var(--rule-soft); }
.qa summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: baseline; gap: 16px;
  padding: 18px 30px 18px 4px;
  font-size: 1.08rem; font-weight: 600;
  position: relative;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; font-family: var(--mono);
  position: absolute; right: 8px; top: 16px;
  color: var(--stamp); font-size: 1.1rem;
  transition: transform 0.2s ease;
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa-num { font-size: 11px; letter-spacing: 0.14em; color: var(--stamp); min-width: 34px; }
.qa p { padding: 0 34px 22px 54px; color: var(--ink-soft); font-size: 0.98rem; }

/* ── Colophon ────────────────────────────────────── */
.colophon { padding: 70px 0 30px; text-align: center; }
.colophon .rule-double { margin-bottom: 34px; }
.colophon p { font-size: 11px; letter-spacing: 0.18em; color: var(--ink-soft); margin-bottom: 10px; }
.colophon a { color: var(--ink-soft); }
.colophon a:hover { color: var(--stamp); }
.colophon .dim { color: var(--ink-faint); }
.colophon .end { margin-top: 26px; color: var(--ink-faint); letter-spacing: 0.3em; }

/* ── Reveal animations ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(1.5px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease,
    filter 0.65s ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.d1 { transition-delay: 90ms; }
.reveal.d2 { transition-delay: 180ms; }
.reveal.d3 { transition-delay: 270ms; }
.reveal.d4 { transition-delay: 360ms; }
.reveal.in-view { opacity: 1; transform: none; filter: none; }

.stamp-reveal {
  opacity: 0;
  transform: rotate(-14deg) scale(1.6);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.2, 1.4, 0.3, 1);
  transition-delay: 350ms;
}
.stamp-reveal.in-view { opacity: 1; transform: rotate(-5deg) scale(1); }

html.no-anim .reveal,
html.no-anim .stamp-reveal { opacity: 1; transform: rotate(-5deg); filter: none; transition: none; }
html.no-anim .reveal { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .stamp-reveal, .note-reveal, .divider span { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .stamp-reveal { transform: rotate(-5deg) !important; }
  .paper-cursor.on { animation: none; }
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1120px) {
  .margin-note { display: none; }
}

@media (max-width: 900px) {
  .hero { padding: 64px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .twocol { grid-template-columns: 1fr; gap: 46px; }
  .keys, .ed-grid, .feat-grid { grid-template-columns: 1fr; }
  .keys .key-row:nth-child(2) { border-top: 0; }
  .stamp { position: static; display: inline-block; margin-top: 26px; }
  .ed-card { min-height: 240px; }
  .story { grid-template-columns: 1fr; gap: 34px; }
  .story-visual { position: static; }
  .story-step { min-height: 0; opacity: 1; }
  .band { height: 60vh; min-height: 360px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .sheet { padding: 0 18px 40px; }
  .crops i { display: none; }
  .mast-cell { display: none; }
  .mast-row { justify-content: center; }
  .mast-sub { flex-direction: column; gap: 10px; text-align: center; }
  .hero { padding-top: 54px; }
  .hero-actions { gap: 14px; }
  .ledger li { gap: 18px; }
  .toc-ref { display: none; }
  .qa p { padding-left: 4px; }
  .divider { letter-spacing: 0.08em; font-size: 10px; }
  .coupon { padding: 30px 18px; }
  .band-quote { padding: 28px 22px 24px; margin: 0 16px; }
  .band { height: 54vh; min-height: 320px; }
  .frontis-note { width: 58%; right: 3.5%; bottom: 4%; }
  .fn-line { font-size: 0.7rem; line-height: 1.45; padding: 7px 9px 3px; min-height: 4.1em; }
  .fn-head { font-size: 8px; padding: 5px 9px 4px; }
  .fn-src { font-size: 8px; padding: 0 9px 7px; }
}
