/* ─────────────────────────────────────────────
   Ink Postal — paper, ink, one postal red.
   One idea per screen. Scroll reveals.
   ───────────────────────────────────────────── */

:root {
  --paper: #f3eee3;
  --paper-2: #ebe4d5;
  --paper-3: #e1d8c4;
  --ink: #17160f;
  --ink-2: #3c3a2e;
  --ink-3: #7b7766;
  --rule: rgba(23, 22, 15, 0.16);
  --red: #c4342a;
  --blue: #2a4fa3;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --mono: "Courier Prime", "Courier New", Courier, monospace;

  --max: 1100px;
  --gutter: clamp(20px, 4vw, 56px);
  --nav-h: 72px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}
html.snapping { scroll-snap-type: y proximity; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--red); color: var(--paper); }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 350; letter-spacing: -0.02em; font-variation-settings: "opsz" 144, "SOFT" 40; }
p { margin: 0; }

.grain {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0.045; mix-blend-mode: multiply; z-index: 999;
}

.airmail-rule {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: 8px;
  background: repeating-linear-gradient(-45deg,
    var(--red) 0 18px, var(--paper) 18px 24px, var(--blue) 24px 42px, var(--paper) 42px 48px);
}

/* ── Nav ─────────────────────────────────── */
.nav {
  position: fixed; top: 8px; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  transition: background .3s ease, box-shadow .3s ease;
}
.nav.is-solid {
  background: rgba(243, 238, 227, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--rule);
}
.wordmark-box {
  display: inline-block;
  font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: 0.22em;
  padding: 7px 11px 6px 13px;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  transform: rotate(-1.5deg);
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.wordmark:hover .wordmark-box { transform: rotate(0deg); }

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.04em;
  padding: 14px 22px 13px;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-sm { font-size: 12.5px; padding: 9px 14px 8px; }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--red); }
.btn-ink:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--red); }
.btn-ink:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--red); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper-2); }

.text-link {
  font-family: var(--mono); font-size: 13px; letter-spacing: .04em;
  border-bottom: 2px solid var(--red); padding-bottom: 1px;
}
.text-link:hover { color: var(--red); }

/* ── Reveal (IntersectionObserver adds .in) ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
}
[data-reveal="left"]  { transform: translate(-40px, 0) rotate(-1deg); }
[data-reveal="right"] { transform: translate(40px, 0) rotate(1deg); }
[data-reveal].in { opacity: 1; transform: none; }

/* Stagger siblings */
[data-reveal]:nth-child(2) { --d: 90ms; }
[data-reveal]:nth-child(3) { --d: 180ms; }
[data-reveal]:nth-child(4) { --d: 270ms; }

[data-parallax] { will-change: translate; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  [data-parallax] { translate: none !important; }
  .env-postmark { animation: none; opacity: .82; transform: rotate(-12deg); }
}

/* ── Snap sections ───────────────────────── */
.snap { scroll-snap-align: start; scroll-snap-stop: normal; }

/* ── Hero ────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: grid; place-items: center;
  position: relative;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 100px;
  text-align: center;
}
.hero-inner { max-width: 760px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.hero-mark { color: var(--ink); }
h1 {
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 1.02;
  text-wrap: balance;
}
h1 em, h2 em { font-style: italic; color: var(--red); }

.start-form {
  display: flex; gap: 10px; width: 100%; max-width: 480px; flex-wrap: wrap; justify-content: center;
  position: relative;
}
.start-form input {
  flex: 1 1 240px;
  font-family: var(--mono); font-size: 15px;
  padding: 13px 14px 12px;
  border: 2px solid var(--ink);
  background: #f8f4ea; color: var(--ink);
  outline: none; border-radius: 0;
}
.start-form input:focus { border-color: var(--red); }
.start-form input::placeholder { color: var(--ink-3); }
.form-done { flex-basis: 100%; font-family: var(--mono); font-size: 13px; color: var(--red); text-align: center; }

.hero-fine { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); letter-spacing: .02em; }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em;
  padding: 9px 14px 8px;
  border: 1.5px solid var(--rule);
  color: var(--ink-2);
  background: rgba(255,255,255,.35);
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* ── Intro ───────────────────────────────── */
.intro {
  min-height: 100svh;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 44px;
  background: linear-gradient(180deg, var(--paper) 0, var(--paper-2) 30%, var(--paper-2) 100%);
}
.intro-head { text-align: center; max-width: 640px; }
.intro-head h2, .more-head h2, .cta h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; }
.intro-head p { margin-top: 16px; color: var(--ink-2); font-size: clamp(17px, 1.4vw, 20px); text-wrap: balance; }

.panel {
  position: relative;
  width: min(100%, 880px);
  padding: clamp(28px, 6vw, 72px) clamp(20px, 6vw, 80px);
  background: #f8f4ea;
  border: 1px solid var(--rule);
  box-shadow: 0 30px 60px -30px rgba(23,22,15,.35);
}
.float {
  position: absolute;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--ink-2);
  background: #fff; border: 1px solid var(--rule);
  box-shadow: 0 8px 20px -10px rgba(23,22,15,.4);
}
.float-photo {
  left: -6px; bottom: 10%;
  padding: 10px 12px 8px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  transform: rotate(-6deg);
}
.float-photo span { width: 34px; height: 34px; border: 1.5px dashed var(--ink-3); }
.float-photo small { grid-column: 1 / -1; text-align: center; font-size: 8.5px; }
.float-tab {
  right: -8px; top: 12%;
  padding: 9px 14px 7px;
  background: #e3c58c; border-color: #b5975a; font-weight: 700;
  transform: rotate(4deg);
}
@media (max-width: 720px) { .float { display: none; } }

/* ── Envelope ────────────────────────────── */
.envelope {
  position: relative;
  aspect-ratio: 9.5 / 4.125;
  background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,0) 40%), #fbf8f1;
  border: 1px solid rgba(23,22,15,.28);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 18px 40px -18px rgba(23,22,15,.35), 0 2px 6px rgba(23,22,15,.08);
  transform: rotate(-1.2deg);
  overflow: hidden;
  font-family: var(--mono); color: var(--ink);
  container-type: inline-size;
}
.env-stripe {
  position: absolute; inset: 0 0 auto 0; height: 4%;
  background: repeating-linear-gradient(-45deg, var(--red) 0 14px, transparent 14px 20px, var(--blue) 20px 34px, transparent 34px 40px);
  opacity: .9;
}
.env-return {
  position: absolute; left: 5%; top: 11%;
  display: flex; flex-direction: column;
  font-size: clamp(8px, 2.3cqw, 12px); line-height: 1.4; letter-spacing: .04em;
}
.env-return span:first-child { font-weight: 700; letter-spacing: .16em; }
.env-stamp {
  position: absolute; right: 4.5%; top: 9%;
  width: 16%; aspect-ratio: .86;
  background: #fff; background-clip: padding-box;
  border: 4px dotted #fff; padding: 2.5%;
  transform: rotate(2deg);
  filter: drop-shadow(0 1px 1px rgba(23,22,15,.18));
}
.stamp-inner {
  width: 100%; height: 100%;
  border: 1.5px solid var(--red);
  background: repeating-linear-gradient(0deg, rgba(196,52,42,.09) 0 1px, transparent 1px 3px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--red); text-align: center; gap: 1px; overflow: hidden; padding: 4%;
}
.stamp-val { font-weight: 700; font-size: clamp(6px, 1.45cqw, 9px); letter-spacing: .04em; line-height: 1.05; }
.stamp-sub { font-size: clamp(4px, .85cqw, 5.5px); letter-spacing: .04em; margin-top: 4px; white-space: nowrap; }
.env-postmark {
  position: absolute; right: 19%; top: 6%;
  width: 20%; aspect-ratio: 1;
  opacity: 0;
}
.in .env-postmark, .env-postmark.in { animation: stamp-in .5s cubic-bezier(.2,1.4,.4,1) forwards; animation-delay: .5s; }
@keyframes stamp-in {
  0%   { opacity: 0; transform: scale(1.5) rotate(-18deg); }
  70%  { opacity: .9; transform: scale(.98) rotate(-11deg); }
  100% { opacity: .82; transform: scale(1) rotate(-12deg); }
}
.pm-ring {
  width: 100%; height: 100%; border-radius: 50%;
  border: 2px solid var(--ink); outline: 1px solid var(--ink); outline-offset: -6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: var(--ink);
  font-size: clamp(5px, 1.15cqw, 7.5px); letter-spacing: .1em; line-height: 1.3; padding: 10%;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(circle at 40% 60%, #000 55%, rgba(0,0,0,.6) 80%, rgba(0,0,0,.85));
  mask-image: radial-gradient(circle at 40% 60%, #000 55%, rgba(0,0,0,.6) 80%, rgba(0,0,0,.85));
}
.pm-date { font-weight: 700; font-size: clamp(7px, 1.7cqw, 11px); margin: 3px 0; letter-spacing: .06em; }
.env-window {
  position: absolute; left: 24%; top: 43%; width: 56%;
  padding: 3.2% 3.6%;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(23,22,15,.18);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.9), inset 0 2px 8px rgba(23,22,15,.08);
  display: flex; flex-direction: column;
  font-size: clamp(9px, 2.5cqw, 14px); line-height: 1.45; letter-spacing: .02em;
}
.env-to-label { font-size: .62em; letter-spacing: .2em; color: var(--ink-3); margin-bottom: 2px; }
.env-line:first-of-type { font-weight: 700; }
.env-meta {
  position: absolute; left: 5%; bottom: 7%;
  display: flex; gap: 16px;
  font-size: clamp(6.5px, 1.6cqw, 9px); letter-spacing: .08em; color: var(--ink-3);
}

/* ── Feature rows ────────────────────────── */
.feature {
  min-height: 92svh;
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.feature-flip .feature-visual { order: 2; }
.feature-flip .feature-copy { order: 1; }
.feature-copy h3 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; }
.feature-copy p { margin-top: 18px; color: var(--ink-2); font-size: clamp(17px, 1.4vw, 20px); max-width: 38ch; }
.feature-copy .text-link { display: inline-block; margin-top: 22px; }
.feature-visual { display: grid; place-items: center; }
.feature-visual > * { width: min(100%, 440px); }

@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; min-height: 0; padding: 72px var(--gutter); gap: 36px; }
  .feature-flip .feature-visual, .feature-visual { order: 1; }
  .feature-flip .feature-copy, .feature-copy { order: 2; }
  .feature-copy p { max-width: none; }
  .snap { scroll-snap-align: none; }
}

/* Folder */
.folder {
  position: relative;
  background: #e3c58c;
  background-image: linear-gradient(180deg, rgba(255,255,255,.25), rgba(255,255,255,0) 30%),
    repeating-linear-gradient(90deg, rgba(120,90,30,.05) 0 1px, transparent 1px 3px);
  border: 1px solid #b5975a;
  padding: 26px 22px 22px;
  margin-top: 26px;
  transform: rotate(.6deg);
  box-shadow: 0 20px 40px -20px rgba(23,22,15,.4), 6px 6px 0 var(--ink);
}
.folder-tab {
  position: absolute; top: -25px; left: 22px;
  background: #e3c58c; border: 1px solid #b5975a; border-bottom: 0;
  padding: 6px 14px 4px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: var(--ink-2);
}
.folder-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: #e3c58c; }
.sheet {
  background: #fbf8f1;
  border: 1px solid rgba(23,22,15,.18);
  padding: 20px 22px 18px;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 3px 10px -4px rgba(23,22,15,.3);
  transform: rotate(-.7deg);
}
.sheet-head {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
  padding-bottom: 10px; border-bottom: 1px solid var(--ink); margin-bottom: 14px;
}
.sheet h4 { font-size: 19px; line-height: 1.2; font-weight: 400; margin-bottom: 14px; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.checklist li { display: grid; grid-template-columns: 16px 1fr; gap: 12px; align-items: start; }
.checklist strong { font-weight: 500; color: var(--ink); }
.checklist .box { width: 14px; height: 14px; margin-top: 4px; border: 1.5px solid var(--ink); background: #fff; position: relative; }
.in .checklist li:first-child .box::after {
  content: ""; position: absolute; left: 2px; top: -4px; width: 6px; height: 11px;
  border: solid var(--red); border-width: 0 2px 2px 0; transform: rotate(40deg);
  animation: tick .3s ease .9s both;
}
@keyframes tick { from { opacity: 0; transform: rotate(40deg) scale(.4); } to { opacity: 1; transform: rotate(40deg) scale(1); } }
.sheet-foot { margin-top: 16px; padding-top: 10px; border-top: 1px dashed var(--rule); font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

/* Chat mock */
.chat {
  background: #fbf8f1;
  border: 1px solid var(--rule);
  padding: 18px 18px 22px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 24px 50px -24px rgba(23,22,15,.45), 6px 6px 0 var(--ink);
  transform: rotate(-.6deg);
  font-size: 15px; line-height: 1.4;
}
.chat-head { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.chat-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.bubble { max-width: 85%; padding: 10px 14px; border: 1px solid var(--rule); background: #fff; color: var(--ink-2); }
.bubble.me { align-self: flex-end; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.bubble.sys { align-self: flex-start; max-width: 100%; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--ink-2); background: var(--paper-2); display: flex; align-items: center; gap: 8px; }
.sys-icon { width: 14px; height: 10px; border: 1.5px solid var(--red); position: relative; }
.sys-icon::after { content: ""; position: absolute; left: 1px; right: 1px; top: 0; height: 5px; border: solid var(--red); border-width: 0 1.5px 1.5px 0; transform: scaleX(.6) rotate(45deg); transform-origin: top; }

/* Green card */
.green-card {
  background: #d9e6cf;
  background-image: repeating-linear-gradient(0deg, rgba(40,80,40,.06) 0 1px, transparent 1px 4px);
  border: 1px solid #8ea583;
  padding: 16px 18px 18px;
  font-family: var(--mono);
  color: #1f2f1a;
  transform: rotate(1deg);
  box-shadow: 0 24px 50px -24px rgba(23,22,15,.45), 6px 6px 0 var(--ink);
  position: relative;
}
.gc-head { font-size: 11px; font-weight: 700; letter-spacing: .18em; border-bottom: 1.5px solid #1f2f1a; padding-bottom: 8px; margin-bottom: 12px; }
.gc-row { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px dotted #7f9575; font-size: 13px; }
.gc-row span { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: #4e6547; }
.gc-row b { font-weight: 700; }
.gc-row .sig { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 20px; color: var(--blue); }
.gc-stamp {
  position: absolute; right: 14px; top: 44px;
  font-size: 11px; font-weight: 700; letter-spacing: .2em;
  color: var(--red); border: 2px solid var(--red); padding: 4px 8px 3px;
  transform: rotate(-9deg); opacity: .85;
}

/* Approval card */
.approve {
  background: #fbf8f1;
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(-.5deg);
}
.approve-head { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: 12px 18px; border-bottom: 1px solid var(--rule); }
.approve-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--ink-2); }
.approve-body strong { font-size: 19px; color: var(--ink); font-weight: 500; }
.approve-cost { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.approve-actions { display: flex; gap: 10px; padding: 0 18px 18px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chips span {
  font-family: var(--mono); font-size: 14.5px; letter-spacing: .06em;
  padding: 11px 15px 10px;
  border: 1.5px solid var(--ink); background: #fbf8f1;
  transform: rotate(var(--r, 0deg));
  opacity: 0; translate: 0 10px;
  transition: opacity .6s ease, translate .6s cubic-bezier(.2,.7,.2,1);
}
.in .chips span { opacity: 1; translate: 0 0; }
.chips span:nth-child(odd) { --r: -1.2deg; }
.chips span:nth-child(3n) { --r: 1.4deg; }
.chips span:last-child { border-color: var(--red); color: var(--red); }
.in .chips span:nth-child(n)  { transition-delay: calc(var(--i, 0) * 1ms); }
.in .chips span:nth-child(1)  { transition-delay: 0ms; }  .in .chips span:nth-child(2)  { transition-delay: 40ms; }
.in .chips span:nth-child(3)  { transition-delay: 80ms; } .in .chips span:nth-child(4)  { transition-delay: 120ms; }
.in .chips span:nth-child(5)  { transition-delay: 160ms; } .in .chips span:nth-child(6)  { transition-delay: 200ms; }
.in .chips span:nth-child(7)  { transition-delay: 240ms; } .in .chips span:nth-child(8)  { transition-delay: 280ms; }
.in .chips span:nth-child(9)  { transition-delay: 320ms; } .in .chips span:nth-child(10) { transition-delay: 360ms; }
.in .chips span:nth-child(11) { transition-delay: 400ms; } .in .chips span:nth-child(12) { transition-delay: 440ms; }
.in .chips span:nth-child(13) { transition-delay: 480ms; } .in .chips span:nth-child(14) { transition-delay: 520ms; }
.in .chips span:nth-child(15) { transition-delay: 600ms; }

/* ── Learn more ──────────────────────────── */
.more {
  min-height: 70svh;
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  align-content: center;
}
.more-head p { margin-top: 12px; color: var(--ink-3); }
.more-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.more-list li { border-bottom: 1px solid var(--rule); }
.more-list a, .more-list div {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto;
  column-gap: 20px; row-gap: 4px;
  padding: 22px 4px;
}
.more-list a:hover { background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); }
.more-t { font-size: 22px; line-height: 1.15; grid-column: 1; grid-row: 1; }
.more-d { color: var(--ink-3); font-size: 16px; grid-column: 1; grid-row: 2; }
.more-arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: var(--mono); font-size: 18px; color: var(--red); }
@media (max-width: 820px) { .more { grid-template-columns: 1fr; min-height: 0; } }

/* ── CTA ─────────────────────────────────── */
.cta {
  min-height: 80svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  padding: 80px var(--gutter);
  text-align: center;
  background: linear-gradient(180deg, var(--paper) 0, var(--paper-2) 100%);
}

/* ── Footer ──────────────────────────────── */
.footer {
  border-top: 1px solid var(--ink);
  background: var(--paper-3);
  padding: 22px var(--gutter) 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px;
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
}
.footer nav { display: flex; gap: 20px; }
.footer a:hover { color: var(--ink); }
.footer-note { flex-basis: 100%; }

/* ── Forms page ──────────────────────────── */
.forms { max-width: var(--max); margin: 0 auto; padding: calc(var(--nav-h) + 56px) var(--gutter) 80px; }
.forms-head { max-width: 640px; margin-bottom: 48px; }
.forms-head h1 { font-size: clamp(36px, 4.5vw, 60px); margin: 18px 0 16px; }
.forms-head p { color: var(--ink-2); }
.back { display: inline-block; }
.forms-grid { columns: 3; column-gap: 40px; }
.form-cat { break-inside: avoid; margin-bottom: 34px; border-top: 2px solid var(--ink); padding-top: 12px; }
.form-cat h3 { font-size: 20px; line-height: 1.2; font-weight: 500; margin-bottom: 10px; letter-spacing: -0.01em; }
.form-cat ul { list-style: none; margin: 0; padding: 0; }
.form-cat li {
  display: grid; grid-template-columns: 62px 1fr; gap: 10px;
  padding: 6px 0; border-bottom: 1px solid var(--rule);
  font-size: 15px; line-height: 1.35; color: var(--ink-2);
}
.form-cat li:last-child { border-bottom: 0; }
.form-cat code { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--red); padding-top: 3px; white-space: nowrap; }
.forms-note { margin-top: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 1000px) { .forms-grid { columns: 2; } }
@media (max-width: 640px)  { .forms-grid { columns: 1; } }
