/* ═══════════════════════════════════════════════════════════════
   BLACKOUT — the public instrument.
   Pure black / pure white. Zero accent color. One grotesk, one mono.
   The page is a contract; the hero is the signature line.
   ═══════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/plex-mono-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --k: #000000;
  --w: #ffffff;
  --w80: rgba(255, 255, 255, 0.8);
  --w60: rgba(255, 255, 255, 0.6);
  --w40: rgba(255, 255, 255, 0.42);
  --w25: rgba(255, 255, 255, 0.25);
  --line: rgba(255, 255, 255, 0.22);
  --hair: rgba(255, 255, 255, 0.12);
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'SF Mono', 'Courier New', monospace;
  --pad: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--k);
  color: var(--w);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--w); color: var(--k); }

a { color: var(--w); text-decoration: none; }
a:hover { opacity: 0.7; }

:focus-visible { outline: 1px solid var(--w); outline-offset: 3px; }

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

.container { max-width: 1360px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ── Skip link ─────────────────────────────────────────────── */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--w); color: var(--k);
  padding: 10px 18px; font-family: var(--mono); font-size: 12px;
}
.skip-link:focus { left: 0; }

/* ── Top bar ───────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 90;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-top: 16px; padding-bottom: 16px;
}
.top-brand {
  font-weight: 800; font-size: 15px; letter-spacing: 0.16em;
  white-space: nowrap;
}
.top-meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--w60); white-space: nowrap;
}
.top-nav { display: flex; align-items: center; gap: 26px; }
.top-nav a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  color: var(--w60);
}
.top-nav a:hover { color: var(--w); opacity: 1; }
.top-cta {
  background: var(--w); color: var(--k) !important;
  font-family: var(--sans) !important; font-weight: 800;
  font-size: 13px !important; letter-spacing: 0.1em !important;
  padding: 10px 22px;
  border: 1px solid var(--w);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.top-cta:hover { background: var(--k); color: var(--w) !important; opacity: 1; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - 62px);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.hero-gl {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 520px);
  gap: clamp(32px, 5vw, 90px);
  align-items: center;
  flex: 1;
  padding-top: clamp(40px, 6vh, 80px);
  padding-bottom: clamp(40px, 6vh, 80px);
}

.hero-copy { display: flex; flex-direction: column; gap: 30px; }
.hero-eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.28em;
  color: var(--w60);
}
.hero-h1 {
  font-weight: 900;
  font-size: clamp(52px, 7.2vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero-h1 .stroke {
  color: var(--k);
  -webkit-text-stroke: 1.5px var(--w);
}
.hero-h1 .h1-line { display: block; overflow: hidden; }
.hero-h1 .h1-line > span {
  display: block;
  transform: translateY(110%);
  animation: h1-rise 0.9s var(--ease) forwards;
}
.hero-h1 .h1-line:nth-child(2) > span { animation-delay: 0.08s; }
.hero-h1 .h1-line:nth-child(3) > span { animation-delay: 0.16s; }
@keyframes h1-rise { to { transform: translateY(0); } }

.hero-sub {
  font-weight: 400; font-size: 17px; line-height: 1.6;
  color: var(--w60); max-width: 34rem;
}
.hero-sub strong { color: var(--w); font-weight: 500; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
  color: var(--w40);
}
.hero-facts span b { color: var(--w80); font-weight: 500; }

/* ── The contract card ─────────────────────────────────────── */
.pact {
  position: relative;
  border: 1px solid var(--w);
  background: rgba(0, 0, 0, 0.82);
  padding: clamp(24px, 2.6vw, 36px);
  display: flex; flex-direction: column; gap: 22px;
}
.pact::before {
  content: '';
  position: absolute; inset: 6px;
  border: 1px solid var(--hair);
  pointer-events: none;
}
.pact-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
}
.pact-title {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em;
  color: var(--w60);
}
.pact-no {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  color: var(--w);
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.22em;
  color: var(--w40);
  display: flex; justify-content: space-between;
}
.field-label .hint { letter-spacing: 0.1em; }
.field-input {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--line);
  color: var(--w);
  font-family: var(--mono); font-size: 17px;
  padding: 8px 2px 10px;
  border-radius: 0;
  transition: border-color 0.25s var(--ease);
  width: 100%;
}
.field-input::placeholder { color: var(--w25); }
.field-input:focus { outline: none; border-bottom-color: var(--w); }
.field.invalid .field-input { border-bottom-color: var(--w); }
.field-note {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em;
  color: var(--w40); min-height: 14px;
}
.field-note.err { color: var(--w); }

/* seal preview row */
.seal-row {
  display: flex; align-items: center; gap: 18px;
  border: 1px solid var(--hair);
  padding: 12px 16px;
}
.seal-canvas { width: 64px; height: 64px; flex: none; display: block; }
.seal-info { display: flex; flex-direction: column; gap: 3px; }
.seal-info .t1 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--w40); }
.seal-info .t2 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--w80); }

/* amount riders */
.riders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rider {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--w60);
  font-family: var(--mono);
  padding: 10px 6px 9px;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.rider:hover { border-color: var(--w60); color: var(--w); }
.rider .r-r { font-size: 10px; letter-spacing: 0.24em; }
.rider .r-a { font-family: var(--sans); font-weight: 700; font-size: 17px; color: inherit; }
.rider .r-t { font-size: 9px; letter-spacing: 0.2em; }
.rider[aria-checked="true"] {
  border-color: var(--w);
  background: var(--w);
  color: var(--k);
}

/* clause lines */
.pact-clauses { display: flex; flex-direction: column; gap: 9px; }
.pact-clause {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em;
  color: var(--w60); line-height: 1.45;
}
.pact-clause .box {
  flex: none;
  width: 12px; height: 12px;
  border: 1.5px solid var(--w);
  background: var(--w);
  box-shadow: inset 0 0 0 2.5px var(--k);
}

/* execute */
.execute {
  position: relative;
  border: 1px solid var(--w);
  background: var(--w);
  color: var(--k);
  font-family: var(--sans);
  font-weight: 900; font-size: 17px; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 20px 10px;
  cursor: pointer;
  width: 100%;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}
.execute:hover { background: var(--k); color: var(--w); }
.execute:active { transform: scale(0.99); }
.execute[disabled] { opacity: 0.55; cursor: wait; }
.pact-trust {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  color: var(--w40); text-align: center; line-height: 1.7;
}
.pact-error {
  display: none;
  background: var(--w); color: var(--k);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  padding: 10px 14px;
}
.pact-error.show { display: block; }

.crypto-toggle {
  background: none; border: none; cursor: pointer;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em;
  color: var(--w40);
  text-decoration: underline; text-underline-offset: 3px;
  align-self: center;
}
.crypto-toggle:hover { color: var(--w); }
.crypto-panel { display: none; flex-direction: column; gap: 12px; }
.crypto-panel.show { display: flex; }
.crypto-row { display: flex; gap: 10px; }
.crypto-row .field-input { flex: 1; }
.crypto-go {
  border: 1px solid var(--w); background: transparent; color: var(--w);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  padding: 0 18px; cursor: pointer; white-space: nowrap;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.crypto-go:hover:not([disabled]) { background: var(--w); color: var(--k); }
.crypto-go[disabled] { opacity: 0.4; cursor: not-allowed; }

/* draft-restored notice */
.notice {
  display: none;
  background: var(--w); color: var(--k);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em;
  padding: 10px 14px;
}
.notice.show { display: block; }

/* hero bottom strip */
.hero-strip {
  position: relative; z-index: 2;
  border-top: 1px solid var(--hair);
  display: flex; justify-content: space-between; gap: 20px;
  padding-top: 16px; padding-bottom: 20px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--w40);
}

/* ── Sections ──────────────────────────────────────────────── */
.sec { border-top: 1px solid var(--line); padding-top: clamp(56px, 8vh, 96px); padding-bottom: clamp(56px, 8vh, 96px); }
.sec-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.28em;
  color: var(--w40); margin-bottom: 34px;
  display: flex; align-items: center; gap: 18px;
}
.sec-tag::after { content: ''; flex: 1; height: 1px; background: var(--hair); }
.sec-h2 {
  font-weight: 900; font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.02; letter-spacing: -0.01em; text-transform: uppercase;
  text-wrap: balance;
  margin-bottom: 30px;
}

/* clauses grid */
.clauses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.clause { background: var(--k); padding: 30px 28px 34px; display: flex; flex-direction: column; gap: 14px; }
.clause-n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; color: var(--w40); }
.clause-t { font-weight: 700; font-size: 21px; line-height: 1.25; }
.clause-p { font-size: 14.5px; line-height: 1.65; color: var(--w60); }

/* instrument (manifesto) */
.instrument { max-width: 68rem; }
.articles { display: flex; flex-direction: column; gap: 34px; max-width: 62rem; }
.article { display: grid; grid-template-columns: 84px 1fr; gap: 24px; }
.article-n {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--w40);
  padding-top: 5px;
}
.article h3 { font-weight: 700; font-size: 19px; margin-bottom: 8px; }
.article p { font-size: 15.5px; line-height: 1.7; color: var(--w60); max-width: 65ch; }
.instrument-cta {
  margin-top: 46px;
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}
.btn-line {
  display: inline-block;
  border: 1px solid var(--w);
  background: var(--w); color: var(--k);
  font-weight: 800; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 16px 36px;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.btn-line:hover { background: var(--k); color: var(--w); opacity: 1; }
.btn-ghost { background: transparent; color: var(--w); }
.btn-ghost:hover { background: var(--w); color: var(--k); }
.cta-side { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; color: var(--w40); }

/* record */
.record-tools {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  margin-bottom: 4px; flex-wrap: wrap;
}
.record-count { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--w60); }
.record-search {
  background: transparent; border: 1px solid var(--line);
  color: var(--w); font-family: var(--mono); font-size: 13px;
  padding: 10px 14px; width: 260px; border-radius: 0;
}
.record-search:focus { outline: none; border-color: var(--w); }
.record-table { border-top: 1px solid var(--line); margin-top: 16px; }
.record-row {
  display: grid;
  grid-template-columns: 90px 220px 1fr 130px;
  gap: 20px; align-items: baseline;
  padding: 13px 4px;
  border-bottom: 1px solid var(--hair);
  font-family: var(--mono); font-size: 13px;
  color: var(--w60);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
a.record-row:hover { background: var(--w); color: var(--k); opacity: 1; }
a.record-row:hover .rr-h { color: var(--k); }
.rr-n { letter-spacing: 0.08em; }
.rr-h { color: var(--w); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr-m { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: italic; }
.rr-d { text-align: right; font-size: 12px; letter-spacing: 0.06em; }
.record-more {
  margin-top: 22px;
  border: 1px solid var(--line); background: transparent; color: var(--w60);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em;
  padding: 13px 30px; cursor: pointer; width: 100%;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.record-more:hover { border-color: var(--w); color: var(--w); }
.record-empty { font-family: var(--mono); font-size: 12px; color: var(--w40); padding: 20px 4px; display: none; }

/* exhibits */
.exhibits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.exhibit { background: var(--k); padding: 30px 28px 34px; display: flex; flex-direction: column; gap: 14px; }
.exhibit-n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; color: var(--w40); }
.exhibit-t { font-weight: 700; font-size: 19px; }
.exhibit-p { font-size: 14px; line-height: 1.65; color: var(--w60); }
.exhibit-p code {
  font-family: var(--mono); font-size: 12.5px; color: var(--w80);
  border: 1px solid var(--hair); padding: 1px 6px; white-space: nowrap;
}

/* Q&A */
.qa { max-width: 56rem; }
.qa details { border-bottom: 1px solid var(--hair); }
.qa summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: baseline; gap: 18px;
  padding: 20px 4px;
  font-weight: 700; font-size: 17px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .qn { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--w40); flex: none; width: 34px; }
.qa summary::after { content: '+'; margin-left: auto; font-family: var(--mono); font-weight: 400; color: var(--w40); }
.qa details[open] summary::after { content: '−'; }
.qa .qa-a { padding: 0 4px 22px 52px; font-size: 14.5px; line-height: 1.7; color: var(--w60); max-width: 60ch; }

/* final */
.final { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; overflow: hidden; }
.final-no {
  font-weight: 900;
  font-size: clamp(120px, 24vw, 340px);
  line-height: 0.9; letter-spacing: -0.04em;
  color: var(--k);
  -webkit-text-stroke: 2px var(--line);
  font-variant-numeric: tabular-nums;
  user-select: none;
}
.final-line { font-size: clamp(19px, 2.4vw, 26px); font-weight: 300; margin-top: 8px; }
.final-line b { font-weight: 700; }
.final .btn-line { margin-top: 28px; }
.final-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; color: var(--w40); margin-top: 14px; }

/* footer */
footer.foot { border-top: 1px solid var(--line); padding-top: 34px; padding-bottom: 42px; }
.foot-grid { display: flex; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.foot-col { display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; color: var(--w40); }
.foot-col a { color: var(--w40); }
.foot-col a:hover { color: var(--w); opacity: 1; }
.foot-seo { margin-top: 26px; font-size: 12px; line-height: 1.6; color: var(--w25); max-width: 70ch; }

/* ── sticky bottom CTA (appears after hero) ────────────────── */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: var(--w); color: var(--k);
  transform: translateY(102%);
  transition: transform 0.35s var(--ease);
  border-top: 1px solid var(--w);
}
.dock.show { transform: translateY(0); }
.dock-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 12px; padding-bottom: 12px;
}
.dock-text { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; font-weight: 500; }
.dock-btn {
  background: var(--k); color: var(--w);
  border: 1px solid var(--k);
  font-family: var(--sans); font-weight: 800; font-size: 13px; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 26px; cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.dock-btn:hover { background: var(--w); color: var(--k); }

/* ── overlay: executed / pending ───────────────────────────── */
.exec-overlay {
  position: fixed; inset: 0; z-index: 120;
  background: var(--k);
  display: none;
  align-items: center; justify-content: center;
}
.exec-overlay.open { display: flex; }
.exec-box {
  width: min(680px, calc(100vw - 40px));
  border: 1px solid var(--w);
  padding: clamp(28px, 4vw, 52px);
  position: relative;
  display: flex; flex-direction: column; gap: 22px;
  text-align: center; align-items: center;
  background: var(--k);
}
.exec-box::before { content: ''; position: absolute; inset: 7px; border: 1px solid var(--hair); pointer-events: none; }
.exec-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; color: var(--w60); }
.exec-h { font-weight: 900; font-size: clamp(40px, 7vw, 72px); line-height: 1; text-transform: uppercase; letter-spacing: -0.01em; }
.exec-no { font-family: var(--mono); font-size: 14px; letter-spacing: 0.16em; color: var(--w80); }
.exec-msg { font-size: 15px; color: var(--w60); font-style: italic; max-width: 40ch; }
.exec-seal { width: 96px; height: 96px; }
.exec-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; position: relative; z-index: 1; }
.exec-actions .btn-line { font-size: 12px; padding: 13px 24px; }
.exec-sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; color: var(--w40); }
.exec-close {
  position: absolute; top: 14px; right: 16px; z-index: 2;
  background: none; border: none; color: var(--w60); cursor: pointer;
  font-size: 22px; line-height: 1; padding: 6px;
}
.exec-close:hover { color: var(--w); }

/* ── reveal on scroll ──────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ── responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; align-items: start; }
  .hero { min-height: 0; }
  .pact { max-width: 640px; }
  .clauses, .exhibits { grid-template-columns: 1fr; }
  .top-meta { display: none; }
}
@media (max-width: 760px) {
  .top-nav a:not(.top-cta) { display: none; }
  .hero-h1 { font-size: clamp(44px, 11.5vw, 64px); }
  .record-row { grid-template-columns: 64px 1fr 90px; }
  .rr-m { display: none; }
  .record-search { width: 100%; }
  .article { grid-template-columns: 1fr; gap: 6px; }
  .riders { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .hero-strip { flex-direction: column; gap: 6px; }
  .dock-text { font-size: 10.5px; }
}
@media (max-width: 460px) {
  .rider .r-t { display: none; }
  .exec-actions { flex-direction: column; width: 100%; }
  .field-label .hint { display: none; }
}

/* ── reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-h1 .h1-line > span { animation: none; transform: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  .dock { transition: none; }
  * { animation-duration: 0.001s !important; }
}

/* ═══════════════════════════════════════════════════════════════
   SUBPAGES — shared chrome for blog, legal, find, archives.
   Same instrument, smaller sheet.
   ═══════════════════════════════════════════════════════════════ */

.page-main { padding-top: clamp(44px, 7vh, 84px); padding-bottom: clamp(64px, 9vh, 110px); }
.page-narrow { max-width: 880px; }

.page-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.28em;
  color: var(--w40); margin-bottom: 18px;
  display: flex; align-items: center; gap: 18px;
}
.page-eyebrow::after { content: ''; flex: 1; height: 1px; background: var(--hair); }
.page-title {
  font-weight: 900; font-size: clamp(36px, 5.6vw, 68px);
  line-height: 1.0; letter-spacing: -0.015em; text-transform: uppercase;
  text-wrap: balance; margin-bottom: 18px;
}
.page-sub { font-size: 17px; font-weight: 300; line-height: 1.6; color: var(--w60); max-width: 60ch; margin-bottom: 40px; }

/* article typography */
.prose { max-width: 68ch; font-size: 16.5px; line-height: 1.75; color: var(--w80); }
.prose p { margin-bottom: 1.1em; }
.prose h2 {
  font-weight: 800; font-size: 24px; line-height: 1.25;
  margin: 2.1em 0 0.7em; letter-spacing: -0.005em; color: var(--w);
}
.prose h3 { font-weight: 700; font-size: 18px; margin: 1.7em 0 0.5em; color: var(--w); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--w40); }
.prose a:hover { text-decoration-color: var(--w); opacity: 1; }
.prose ul, .prose ol { margin: 0 0 1.1em 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose blockquote {
  border-left: 2px solid var(--w);
  padding: 0.2em 0 0.2em 1.2em;
  margin: 1.4em 0;
  color: var(--w60); font-style: italic;
}
.prose code {
  font-family: var(--mono); font-size: 0.85em; color: var(--w);
  border: 1px solid var(--hair); padding: 0.1em 0.45em;
}
.prose pre {
  border: 1px solid var(--line); padding: 16px 18px; overflow-x: auto;
  font-family: var(--mono); font-size: 13px; line-height: 1.6; margin: 1.4em 0;
}
.prose pre code { border: none; padding: 0; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.2em 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.4em 0; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--w60); text-transform: uppercase; }
.prose strong { color: var(--w); }
.prose em { color: var(--w80); }

.prose-meta {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em;
  color: var(--w40); margin-bottom: 34px;
  display: flex; gap: 18px; flex-wrap: wrap;
}

/* index rows (blog list, archives) */
.index-rows { border-top: 1px solid var(--line); }
.index-row {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; align-items: baseline;
  padding: 20px 4px; border-bottom: 1px solid var(--hair);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
  color: var(--w);
}
.index-row:hover { background: var(--w); color: var(--k); opacity: 1; }
.index-row:hover .ir-date, .index-row:hover .ir-sub, .index-row:hover .ir-arrow { color: var(--k); }
.ir-date { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; color: var(--w40); }
.ir-title { font-weight: 700; font-size: 18px; line-height: 1.3; }
.ir-sub { display: block; font-weight: 400; font-size: 13.5px; color: var(--w60); margin-top: 4px; }
.ir-arrow { font-family: var(--mono); color: var(--w40); }
@media (max-width: 640px) {
  .index-row { grid-template-columns: 1fr auto; }
  .ir-date { grid-column: 1 / -1; }
}

/* back link */
.back-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.18em;
  color: var(--w60); margin-bottom: 36px;
}
.back-link:hover { color: var(--w); opacity: 1; }

/* small bordered panel (find form, notices) */
.panel {
  position: relative; border: 1px solid var(--w); background: var(--k);
  padding: clamp(22px, 3vw, 34px); max-width: 560px;
}
.panel::before { content: ''; position: absolute; inset: 6px; border: 1px solid var(--hair); pointer-events: none; }

/* ═══ Certificate page ═══ */
.cert-main {
  display: grid; grid-template-columns: minmax(340px, 480px) 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  padding-top: clamp(40px, 6vh, 72px);
  padding-bottom: clamp(56px, 8vh, 96px);
}
.cert-card {
  position: relative; border: 1px solid var(--w); background: var(--k);
  padding: 22px;
}
.cert-card::before { content: ''; position: absolute; inset: 6px; border: 1px solid var(--hair); pointer-events: none; }
.cert-card svg { display: block; width: 100%; height: auto; }
.cert-serial {
  margin-top: 14px; text-align: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em; color: var(--w40);
}
.cert-side { display: flex; flex-direction: column; gap: 26px; }
.cert-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; color: var(--w60); }
.cert-name {
  font-weight: 900; font-size: clamp(40px, 5.5vw, 76px);
  line-height: 0.98; letter-spacing: -0.015em; text-transform: uppercase;
  overflow-wrap: anywhere;
}
.cert-name.long { font-size: clamp(32px, 4.4vw, 58px); }
.cert-name.extra-long { font-size: clamp(24px, 3.4vw, 42px); }
.cert-quote { font-size: 17px; font-style: italic; color: var(--w60); max-width: 44ch; }
.cert-quote .silent { font-style: normal; font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--w40); }
.cert-fields { border-top: 1px solid var(--line); }
.cert-field {
  display: grid; grid-template-columns: 150px 1fr; gap: 20px;
  padding: 12px 2px; border-bottom: 1px solid var(--hair);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.55;
}
.cert-field dt { letter-spacing: 0.2em; font-size: 10.5px; color: var(--w40); padding-top: 2px; }
.cert-field dd { color: var(--w80); overflow-wrap: anywhere; }
.cert-field dd .accent { color: var(--w); font-weight: 500; }
.cert-cta-line { font-size: 15px; color: var(--w60); }
.cert-cta-line a { text-decoration: underline; text-underline-offset: 3px; }
.cert-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cert-actions .btn-line { font-size: 12px; padding: 13px 24px; }
.adjacency {
  display: flex; gap: 14px; align-items: baseline;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--w40);
}
.adjacency a { color: var(--w60); }
.adjacency a:hover { color: var(--w); opacity: 1; }
.adj-era { letter-spacing: 0.24em; }
@media (max-width: 900px) {
  .cert-main { grid-template-columns: 1fr; }
  .cert-card { max-width: 480px; }
}
