/* ═══════════════════════════════════════════════════════════════
   SOTERIAS — soterias.ai
   Two materials: archival paper & indigo ink.
   Hairline rules, near-square corners, engraved motifs.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* paper family (warm archival) */
  --paper:        #F4F1EA;
  --paper-high:   #FBF9F4;
  --paper-shade:  #ECE7DC;
  --line-paper:   #D9D2C2;
  --line-paper-2: #C7BFAC;

  /* ink family (indigo) */
  --ink:          #1B2740;   /* text on paper */
  --ink-soft:     #47526B;   /* secondary text on paper */
  --ink-plate:    #101A2E;   /* dark surfaces */
  --ink-plate-2:  #16233C;   /* raised dark surface */
  --line-ink:     #2B3A57;
  --paper-on-ink: #E9EDF5;   /* text on ink */
  --soft-on-ink:  #97A7C4;   /* secondary on ink */

  /* brand */
  --aegean:  #2E6CB8;
  --azure:   #0B8DE8;
  --azure-2: #4AA7EE;        /* azure for dark surfaces */
  --indigo:  #30498F;
  --gilt:    #A5812F;
  --gilt-2:  #D9B85C;        /* gilt on ink */

  /* functional (from the product) */
  --sev-critical: #8C281C;
  --sev-major:    #855407;
  --sev-minor:    #34526F;
  --sev-recomm:   #4C6247;

  /* type */
  --f-display: 'Marcellus', 'Iowan Old Style', Georgia, serif;
  --f-body: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
  --f-doc: 'Courier Prime', 'Courier New', monospace;

  /* space (4pt scale) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem;
  --s-6: 1.5rem; --s-8: 2rem; --s-12: 3rem; --s-16: 4rem; --s-24: 6rem;
  --sec-pad: clamp(4.5rem, 10vw, 8.5rem);

  /* motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --wrap: 72rem;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── reset-ish ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
h1, h2, h3, figure, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
::selection { background: #BFD9F2; color: #12203B; }

:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; border-radius: 1px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink-plate); color: var(--paper-on-ink);
  padding: .6rem 1rem; font-size: .875rem; text-decoration: none;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

/* ═══ Type system ═══ */
h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.7rem, 1.2rem + 5.4vw, 4.9rem);
  line-height: 1.06;
  letter-spacing: .005em;
}
h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 1.05rem + 2.6vw, 3rem);
  line-height: 1.14;
}
h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.375rem;
  line-height: 1.25;
}
.lead { font-size: 1.125rem; line-height: 1.65; color: var(--ink-soft); max-width: 34rem; }
.eyebrow {
  font-family: var(--f-doc);
  font-size: .8125rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: var(--s-6);
}
.eyebrow::before {
  content: "";
  width: 2rem; height: 1px; background: var(--line-paper-2); flex: none;
}
.section-ink .eyebrow { color: var(--soft-on-ink); }
.section-ink .eyebrow::before { background: var(--line-ink); }

.sec-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.sec-head h2 { margin-bottom: var(--s-6); }
.sec-lead { font-size: 1.0625rem; color: var(--ink-soft); max-width: 40rem; line-height: 1.7; }
.section-ink .sec-lead { color: var(--soft-on-ink); line-height: 1.75; }

@media (max-width: 720px) { .br-wide { display: none; } }

/* ═══ Buttons ═══ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .9375rem; letter-spacing: .01em;
  padding: .8rem 1.5rem; border-radius: 2px;
  text-decoration: none; border: 1px solid transparent;
  transition: background-color .15s var(--ease-out), border-color .15s var(--ease-out), color .15s var(--ease-out), transform .15s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--aegean); color: #F7FAFD; border-color: var(--aegean); }
.btn-primary:hover { background: #275D9F; border-color: #275D9F; }
.btn-ghost { border-color: var(--line-paper-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-paper:hover { background: #FFFFFA; }
.btn-sm { padding: .55rem 1.05rem; font-size: .875rem; }

/* ═══ Nav ═══ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: transparent;
  transition: background-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.nav.scrolled {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line-paper);
}
.nav-inner {
  max-width: var(--wrap); margin-inline: auto;
  padding: .8rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-6);
}
.lockup { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.lockup-mark { border-radius: 50%; }
.lockup-word {
  font-family: var(--f-display); font-size: 1.35rem; letter-spacing: .06em;
  color: var(--ink);
}
.lockup-tld { color: var(--aegean); }
.nav-links { display: flex; gap: clamp(1rem, 2.5vw, 2rem); }
.nav-links a {
  font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--ink-soft);
  padding: .35rem 0; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--ink); transition: right .25s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: var(--s-4); }
.nav-burger { display: none; }

@media (max-width: 880px) {
  .nav-inner { gap: var(--s-3); }
  .nav-inner > * { min-width: 0; }
  .lockup { gap: .5rem; }
  .lockup-mark { width: 30px; height: 30px; }
  .lockup-word { font-size: 1.15rem; }
  .nav-cta { gap: var(--s-3); }
  .nav-cta .btn-sm { padding: .5rem .8rem; font-size: .8rem; white-space: nowrap; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--paper-high);
    border-bottom: 1px solid var(--line-paper);
    padding: .5rem 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem clamp(1.25rem, 4vw, 2.5rem); }
  .nav-links a::after { display: none; }
  .nav-burger {
    display: grid; gap: 5px; padding: .6rem .2rem;
  }
  .nav-burger span { width: 20px; height: 1.5px; background: var(--ink); transition: transform .2s var(--ease-out), opacity .2s; }
  .nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
}

/* ═══ Sections ═══ */
.section { padding-block: var(--sec-pad); position: relative; }
.section-shade { background: var(--paper-shade); box-shadow: inset 0 1px 0 var(--line-paper), inset 0 -1px 0 var(--line-paper); }
.section-ink {
  background: var(--ink-plate);
  color: var(--paper-on-ink);
  background-image: var(--grain);
}
body { background-image: var(--grain); }

/* ═══ Hero ═══ */
.hero {
  position: relative;
  padding-top: clamp(7rem, 16vh, 10.5rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.hero-rings {
  position: absolute; top: -170px; right: -190px;
  width: clamp(300px, 46vw, 640px); aspect-ratio: 1;
  pointer-events: none;
}
.hero-rings svg { width: 100%; height: 100%; animation: slow-turn 240s linear infinite; }
@keyframes slow-turn { to { transform: rotate(360deg); } }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  position: relative;
}
.hero-copy h1 { margin-bottom: var(--s-6); }
.hero-copy .lead { margin-bottom: var(--s-8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-bottom: var(--s-8); }
.hero-standards {
  font-family: var(--f-doc); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft); border-top: 1px solid var(--line-paper); padding-top: var(--s-4);
  max-width: 34rem; line-height: 1.8;
}
.hero-standards strong { color: var(--ink); font-weight: 700; }

/* specimen finding card */
.hero-specimen { position: relative; }
.specimen {
  position: relative;
  background: var(--paper-high);
  border: 1px solid var(--line-paper-2);
  border-radius: 2px;
  box-shadow: 6px 6px 0 0 var(--paper-shade), 6px 6px 0 1px var(--line-paper);
}
.specimen-head {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding: .7rem 5.5rem .7rem 1.1rem; /* right padding clears the seal */
  border-bottom: 1px dotted var(--line-paper-2);
}
.spec-id { font-family: var(--f-doc); font-size: .72rem; letter-spacing: .12em; color: var(--ink-soft); }
.sev {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--f-doc); font-weight: 700; font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase;
}
.sev i { width: 9px; height: 9px; border-radius: 1px; display: inline-block; }
.sev-major { color: var(--sev-major); } .sev-major i { background: var(--sev-major); }
.sev-critical { color: var(--sev-critical); } .sev-critical i { background: var(--sev-critical); }
.specimen-body { padding: 1.1rem 1.1rem 1rem; display: grid; gap: .9rem; }
.spec-label {
  display: block; font-family: var(--f-doc); font-size: .68rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: .25rem;
}
.spec-req, .spec-cond { font-size: .875rem; line-height: 1.6; }
.cite {
  font-family: var(--f-doc); font-size: .74rem; letter-spacing: .02em;
  color: var(--aegean);
  border-bottom: 1px dotted var(--aegean);
  margin-left: .35rem; padding-bottom: .05rem;
  position: relative;
  white-space: nowrap;
}
.cite:hover, .cite:focus-visible { color: #1F5292; border-bottom-style: solid; }
.cite::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 240px;
  background: var(--ink-plate); color: var(--paper-on-ink);
  font-family: var(--f-body); font-size: .74rem; line-height: 1.5; letter-spacing: 0;
  padding: .6rem .7rem; border-radius: 2px;
  opacity: 0; pointer-events: none; white-space: normal;
  transition: opacity .18s var(--ease-out), transform .18s var(--ease-out);
  z-index: 5;
}
.cite:hover::after, .cite:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.spec-evidence { display: grid; gap: .35rem; border-top: 1px solid var(--line-paper); padding-top: .8rem; }
.spec-evidence li {
  display: flex; align-items: baseline; gap: .6rem;
  font-size: .8rem; color: var(--ink-soft);
}
.ev-id { font-family: var(--f-doc); font-size: .72rem; color: var(--ink); flex: none; }
.ev-status { margin-left: auto; font-family: var(--f-doc); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; flex: none; }
.ev-verified { color: var(--sev-recomm); }
.ev-missing { color: var(--sev-critical); }
.specimen-foot {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex-wrap: wrap;
  padding: .7rem 1.1rem;
  border-top: 1px solid var(--line-paper);
  background: var(--paper);
  border-radius: 0 0 2px 2px;
}
.spec-mode { font-family: var(--f-doc); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.spec-actions { display: flex; gap: .4rem; }
.chip-btn {
  font-size: .74rem; font-weight: 600;
  border: 1px solid var(--line-paper-2); border-radius: 2px;
  padding: .28rem .6rem; color: var(--ink-soft);
  transition: border-color .15s, color .15s;
}
.chip-btn:hover { border-color: var(--aegean); color: var(--aegean); }
.stamp {
  position: absolute; top: 56%; left: 50%;
  transform: translate(-50%, -50%) rotate(-5deg);
  font-family: var(--f-doc); font-weight: 700; font-size: .78rem;
  letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  color: rgba(46, 108, 184, .48);
  border: 2px solid rgba(46, 108, 184, .36);
  border-radius: 3px;
  padding: .45rem .9rem;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.hero-seal {
  position: absolute; top: -50px; right: -24px;
  width: clamp(84px, 8.5vw, 112px); height: auto;
  filter: drop-shadow(0 2px 6px rgba(27, 39, 64, .18));
}

/* ═══ Aphorism frieze ═══ */
.frieze-band {
  background: var(--ink-plate);
  color: var(--soft-on-ink);
  border-block: 1px solid var(--line-ink);
  overflow: hidden;
  padding-block: .95rem;
  position: relative;
}
.marquee { display: flex; overflow: hidden; user-select: none; }
.marquee-track {
  display: flex; flex: none; align-items: center;
  min-width: 100%;
  gap: 3.5rem; padding-right: 3.5rem;
  animation: marquee 90s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.marquee-track li {
  font-family: var(--f-display); font-size: 1.02rem; letter-spacing: .045em;
  white-space: nowrap; display: flex; align-items: center; gap: 3.5rem;
  color: #B9C6DD;
}
.marquee-track li::after { content: "◆"; font-size: .5rem; color: var(--gilt-2); }

/* ═══ Burden ═══ */
.burden-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.burden-item { border-top: 1px solid var(--line-paper-2); padding-top: var(--s-6); }
.burden-item h3 { margin-bottom: var(--s-3); }
.burden-item p { font-size: .9375rem; color: var(--ink-soft); line-height: 1.7; }
.glyph { width: 30px; height: 30px; color: var(--aegean); margin-bottom: var(--s-4); }
.glyph-sm { width: 20px; height: 20px; color: var(--aegean); vertical-align: -4px; }
.section-ink .glyph-sm { color: var(--azure-2); }

@media (max-width: 820px) { .burden-grid { grid-template-columns: 1fr; gap: var(--s-8); } }

/* ═══ Platform bento ═══ */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 1px;
  background: var(--line-paper-2);
  border: 1px solid var(--line-paper-2);
  border-radius: 2px;
}
.tile {
  background: var(--paper-high);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  display: flex; flex-direction: column; gap: var(--s-4);
}
.tile-wide { grid-column: span 2; }
.tile-tall { grid-row: span 2; }
.tile-head { display: flex; align-items: center; gap: .8rem; }
.tile-head .glyph { margin: 0; width: 26px; height: 26px; }
.tile p { font-size: .9375rem; color: var(--ink-soft); line-height: 1.7; max-width: 52ch; }
.stage-strip {
  display: flex; gap: .4rem; margin-top: auto; padding-top: var(--s-2); flex-wrap: wrap;
}
.stage-strip li {
  font-family: var(--f-doc); font-size: .72rem; letter-spacing: .08em;
  border: 1px solid var(--line-paper-2); border-radius: 2px;
  padding: .3rem .55rem; color: var(--ink-soft);
}
.skill-case {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; margin-top: var(--s-2);
}
.skill-case li {
  font-family: var(--f-doc); font-size: .78rem; text-align: center;
  border: 1px solid var(--line-paper-2); border-radius: 2px;
  padding: .5rem 0; color: var(--line-paper-2);
}
.skill-case li.on { color: var(--aegean); border-color: color-mix(in srgb, var(--aegean) 45%, var(--line-paper-2)); background: color-mix(in srgb, var(--aegean) 6%, var(--paper-high)); }
.skill-note { font-size: .8rem !important; font-family: var(--f-doc); letter-spacing: .04em; color: var(--ink-soft); margin-top: auto !important; }

@media (max-width: 980px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: span 2; }
  .tile-tall { grid-row: auto; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
}

/* ═══ Method frieze ═══ */
.frieze {
  display: grid; grid-template-columns: repeat(9, 1fr); gap: 1px;
  background: var(--line-ink);
  border: 1px solid var(--line-ink);
  border-radius: 2px;
  margin-bottom: 1px;
}
.stage {
  background: var(--ink-plate);
  padding: 1.05rem .6rem .95rem;
  display: grid; gap: .45rem; justify-items: start;
  text-align: left;
  position: relative;
  transition: background-color .18s var(--ease-out);
}
.stage::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--azure-2);
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s var(--ease-out);
}
.stage:hover { background: var(--ink-plate-2); }
.stage[aria-selected="true"] { background: var(--ink-plate-2); }
.stage[aria-selected="true"]::before { transform: scaleX(1); }
.st-no { font-family: var(--f-doc); font-size: .72rem; letter-spacing: .14em; color: var(--soft-on-ink); }
.stage[aria-selected="true"] .st-no { color: var(--azure-2); }
.st-name { font-size: .82rem; font-weight: 500; color: var(--paper-on-ink); line-height: 1.3; }

.stage-panel {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 1px;
  background: var(--line-ink);
  border: 1px solid var(--line-ink); border-top: 0;
  border-radius: 0 0 2px 2px;
  min-height: 9.5rem;
}
.sp-assistant, .sp-gate { background: var(--ink-plate-2); padding: 1.4rem 1.6rem; }
.sp-label {
  font-family: var(--f-doc); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--soft-on-ink); margin-bottom: .65rem;
  display: flex; align-items: center; gap: .5rem;
}
.sp-text { font-size: .95rem; line-height: 1.7; color: var(--paper-on-ink); }
.sp-question {
  font-family: var(--f-display); font-size: 1.18rem; line-height: 1.45;
  color: #DCE6F4;
}
.sp-question::before { content: "“"; color: var(--gilt-2); }
.sp-question::after { content: "”"; color: var(--gilt-2); }

@media (max-width: 980px) {
  .frieze { grid-template-columns: repeat(3, 1fr); }
  .stage-panel { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .frieze { grid-template-columns: repeat(3, 1fr); } .st-name { font-size: .74rem; } }

/* ═══ Evidence ═══ */
.evidence-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.validator-ledger { display: grid; }
.validator-ledger li {
  display: grid; grid-template-columns: 11.5rem 1fr; gap: 1rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line-paper-2);
}
.validator-ledger li:last-child { border-bottom: 1px solid var(--line-paper-2); }
.vl-name {
  font-family: var(--f-doc); font-weight: 700; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
  padding-top: .15rem;
}
.vl-desc { font-size: .9rem; color: var(--ink-soft); line-height: 1.65; }

.verdict-pair { display: grid; gap: var(--s-4); }
.verdict {
  border: 1px solid var(--line-paper-2); border-radius: 2px;
  background: var(--paper-high);
  padding: 1.1rem 1.2rem;
  position: relative;
}
.v-stamp {
  font-family: var(--f-doc); font-weight: 700; font-size: .68rem;
  letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: .55rem;
  display: inline-flex; align-items: center; gap: .45rem;
}
.verdict-no .v-stamp { color: var(--sev-critical); }
.verdict-no .v-stamp::before { content: "✕"; font-size: .8rem; }
.verdict-yes .v-stamp { color: var(--sev-recomm); }
.verdict-yes .v-stamp::before { content: "✓"; font-size: .8rem; }
.v-text { font-size: .92rem; line-height: 1.6; margin-bottom: .55rem; }
.verdict-no .v-text { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgba(140, 40, 28, .45); text-decoration-thickness: 1px; }
.v-why { font-size: .8rem; color: var(--ink-soft); }
.ev-inline { font-family: var(--f-doc); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; }
.ev-inline b { color: var(--sev-recomm); }

.plaque {
  margin-top: var(--s-6);
  border: 1px solid var(--line-paper-2); border-radius: 2px;
  background: var(--paper-shade);
  padding: 1.3rem 1.4rem;
}
.plaque-figure {
  font-family: var(--f-display); font-size: 2.1rem; letter-spacing: .02em;
  display: flex; align-items: center; gap: .8rem;
  margin-bottom: .5rem;
}
.plaque-figure .from { color: var(--ink-soft); }
.plaque-figure .to { color: var(--aegean); }
.plaque-arrow { width: 40px; height: 12px; color: var(--gilt); }
.plaque-text { font-size: .9rem; color: var(--ink-soft); line-height: 1.65; max-width: 40ch; }
.plaque-text em { color: var(--ink); font-style: italic; }

@media (max-width: 900px) {
  .evidence-grid { grid-template-columns: 1fr; }
  .validator-ledger li { grid-template-columns: 1fr; gap: .3rem; }
}

/* ═══ Sovereignty ═══ */
.sov-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.sov-grid .sec-head { margin-bottom: 0; }
.sov-points { display: grid; gap: 1.05rem; margin-top: var(--s-8); }
.sov-points li { display: flex; gap: .9rem; align-items: baseline; font-size: .9375rem; color: var(--soft-on-ink); line-height: 1.7; }
.sov-points .glyph-sm { flex: none; transform: translateY(3px); }
.sov-points b { color: var(--paper-on-ink); font-weight: 600; }
.sov-diagram svg { width: 100%; height: auto; }

.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line-ink);
  border: 1px solid var(--line-ink); border-radius: 2px;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.stat-row > div { background: var(--ink-plate-2); padding: 1.4rem 1.5rem; }
.stat-row dt { font-family: var(--f-display); font-size: clamp(1.7rem, 2.6vw, 2.3rem); color: #E4EBF6; letter-spacing: .02em; }
.stat-row dd { font-family: var(--f-doc); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--soft-on-ink); margin-top: .45rem; line-height: 1.6; }
@media (max-width: 820px) {
  .sov-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}

/* ═══ Rules ledger ═══ */
.rules-ledger {
  columns: 2; column-gap: clamp(2.5rem, 5vw, 4.5rem);
  counter-reset: rules;
}
.rules-ledger li {
  display: flex; gap: 1.1rem;
  break-inside: avoid;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line-paper-2);
}
.rule-no {
  font-family: var(--f-display); font-size: 1.15rem; color: var(--gilt);
  flex: none; width: 2.2rem; text-align: right;
  letter-spacing: .04em;
}
.rules-ledger div { font-size: .9375rem; color: var(--ink-soft); line-height: 1.65; }
.rules-ledger b { color: var(--ink); font-weight: 600; display: block; margin-bottom: .1rem; }
@media (max-width: 780px) { .rules-ledger { columns: 1; } }

/* ═══ Who ═══ */
.who-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.who-grid article { border-top: 1px solid var(--line-paper-2); padding-top: var(--s-6); }
.who-grid h3 { margin-bottom: var(--s-3); }
.who-grid p { font-size: .9375rem; color: var(--ink-soft); line-height: 1.7; }
.who-bridge {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-family: var(--f-doc); font-size: .82rem; letter-spacing: .06em;
  color: var(--ink-soft); line-height: 1.7;
  display: flex; align-items: baseline; gap: .7rem;
  border: 1px dashed var(--line-paper-2); border-radius: 2px;
  padding: .9rem 1.2rem;
  max-width: 56ch;
}
.who-bridge .glyph-sm { flex: none; transform: translateY(3px); }
@media (max-width: 820px) { .who-grid { grid-template-columns: 1fr; gap: var(--s-8); } }

/* ═══ Story ═══ */
.story-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}
.story-medallion { position: relative; display: grid; place-items: center; }
.story-medallion::before {
  content: ""; position: absolute;
  width: min(118%, 460px); aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed var(--line-paper-2);
  animation: slow-turn 150s linear infinite;
}
.story-medallion::after {
  content: ""; position: absolute;
  width: min(132%, 520px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--line-paper);
}
.story-medallion img { width: min(100%, 340px); height: auto; position: relative; }
.story-copy p { margin-bottom: var(--s-4); max-width: 56ch; color: var(--ink-soft); line-height: 1.75; }
.story-copy .sec-head { margin-bottom: var(--s-8); }
.greek { font-family: var(--f-display); letter-spacing: .3em; color: var(--ink); }
.story-status {
  font-family: var(--f-doc); font-size: .82rem !important; letter-spacing: .05em;
  color: var(--ink) !important;
  border-top: 1px solid var(--line-paper-2);
  padding-top: var(--s-4); margin-top: var(--s-6);
}
@media (max-width: 880px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-medallion { order: 2; margin-top: var(--s-8); }
}

/* ═══ CTA band ═══ */
.cta-band {
  background: linear-gradient(135deg, #30498F 0%, #2E6CB8 55%, #0B8DE8 100%);
  color: #F2F7FC;
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
  overflow: hidden;
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3E%3Cpath d='M0 8 7 1l7 7z' fill='%23F4F1EA'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
}
.cta-band::before { top: 0; }
.cta-band::after { bottom: 0; transform: scaleY(-1); }
.cta-inner { text-align: center; display: grid; justify-items: center; gap: var(--s-6); }
.cta-inner h2 { color: #FBFDFF; font-size: clamp(2rem, 1.1rem + 3vw, 3.2rem); }
.cta-inner p { color: #CBE2F6; font-size: 1.0625rem; max-width: 44ch; }
.cta-actions { display: flex; align-items: center; gap: var(--s-6); flex-wrap: wrap; justify-content: center; }
.cta-mail {
  font-family: var(--f-doc); font-size: .9rem; letter-spacing: .06em;
  color: #DCEBFA; text-decoration: none; border-bottom: 1px dotted #9CC6EC; padding-bottom: .1rem;
}
.cta-mail:hover { color: #fff; border-bottom-style: solid; }

/* ═══ Footer ═══ */
.footer { background: var(--ink-plate); color: var(--soft-on-ink); }
.meander-rule {
  height: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='26'%3E%3Cpath d='M0 7 h15 v12 H5 v-6 h5 M15 7 h5' fill='none' stroke='%232B3A57' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  border-bottom: 1px solid var(--line-ink);
  background-color: var(--ink-plate);
}
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .7fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: var(--s-16) var(--s-12);
}
.footer .lockup-word { color: var(--paper-on-ink); }
.footer .lockup-tld { color: var(--azure-2); }
.footer-greek {
  font-family: var(--f-display); letter-spacing: .28em; font-size: .8rem;
  color: var(--gilt-2); text-transform: uppercase;
  margin: var(--s-4) 0 var(--s-3);
}
.footer-tag { font-size: .875rem; line-height: 1.7; }
.footer-nav { display: grid; gap: .55rem; align-content: start; }
.footer-nav a { font-size: .875rem; text-decoration: none; color: var(--soft-on-ink); width: fit-content; }
.footer-nav a:hover { color: var(--paper-on-ink); }
.footer-legal { font-size: .78rem; line-height: 1.7; display: grid; gap: .6rem; align-content: start; }
.footer-egg { font-family: var(--f-doc); font-size: .7rem; letter-spacing: .05em; color: #5E7195; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }

/* ═══ Reveal on scroll ═══ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal.in { opacity: 1; transform: none; }

.no-anim .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.no-anim .marquee-track { animation: none; }
.no-anim .hero-rings svg, .no-anim .story-medallion::before { animation: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; white-space: normal; }
  .marquee-track li { white-space: normal; }
}

/* mobile hero */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-specimen { max-width: 30rem; }
  .hero-seal { top: -34px; right: 6px; }
  .hero-rings { top: -220px; right: -240px; opacity: .55; }
}
