/* ════════════════════════════════════════════════════════════════════
   CASASOL — STYLES v3.5
   ──────────────────────────────────────────────────────────────────────
   Modular CSS organized into sections that mirror the HTML structure.
   Each major block is marked with a heavy banner; subsections with rules.

   Sections (search for the banner to jump):
     [TOKENS]      — design tokens / CSS custom properties
     [RESET]       — reset, base, body, paper grain
     [TOPBAR]      — top navigation
     [HERO]        — hero section
     [SECTION]     — shared section scaffolding
     [THESIS]      — §I — The Asymmetry
     [POSTCARD]    — the B200 postcard (in §I)
     [SIDENOTE]    — secondary callouts (Hobbesian in §I)
     [CANDOR]      — §II — The Real Constraint
     [ENGINE]      — §III — diagram frame + tier descriptions
     [PAIR]        — §IV — terminal + reply
     [COMPLIANCE]  — §V — comp grid + Article 22
     [AUDIENCES]   — §VI — 2x2 audience grid
     [SUBSTRATE]   — §VII — dark substrate section
     [EVENT]       — §VIII — event card + email row
     [FOOTER]      — footer
     [MOTION]      — entrance animations
   ══════════════════════════════════════════════════════════════════════ */


/* ════════════════════════════════════════════════════════════════════
   [TOKENS]
   Design tokens. Edit the palette here and it cascades everywhere.
   ════════════════════════════════════════════════════════════════════ */
:root {
  /* Mediterranean editorial palette */
  --bone:           #F4EEDF;
  --bone-deep:      #ECE3CD;
  --paper:          #F8F3E6;
  --ink:            #16140F;
  --ink-soft:       #2A2620;
  --ink-mute:       #6B6356;
  --rule:           #C9BEA3;
  --rule-soft:      #DDD2B4;

  --terracotta:     #B43F22;
  --terracotta-deep:#8C2E15;
  --olive:          #5C6A3A;
  --olive-deep:     #3F4824;

  --night:          #0E1714;
  --night-soft:     #18221E;
  --terminal-fg:    #E8DFC9;
  --terminal-mute:  #9A9379;
  --terminal-accent:#E89B6E;
  --terminal-green: #A8B57A;

  /* Typography */
  --serif: "Fraunces", "EB Garamond", Georgia, serif;
  --mono:  "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;

  /* Spacing rhythm */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(3.5rem, 8vw, 7rem);
  --section-gap: clamp(2rem, 6vw, 5rem);
}


/* ════════════════════════════════════════════════════════════════════
   [RESET] + base
   ════════════════════════════════════════════════════════════════════ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 380;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-feature-settings: "ss01", "ss02", "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  /* Subtle warm modulation — bone with mediterranean ambient */
  background-image:
    radial-gradient(ellipse 800px 400px at 15% 10%, rgba(180, 63, 34, 0.025), transparent 60%),
    radial-gradient(ellipse 600px 500px at 85% 60%, rgba(92, 106, 58, 0.025), transparent 60%),
    radial-gradient(ellipse 1200px 600px at 50% 110%, rgba(140, 46, 21, 0.018), transparent 70%);
  background-attachment: fixed;
}

/* Paper grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08  0 0 0 0 0.07  0 0 0 0 0.05  0 0 0 0.07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

main, header, footer { position: relative; z-index: 2; }

a { color: inherit; text-decoration: none; }
a:not(.bare):hover { color: var(--terracotta); }

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--bone-deep);
  padding: 0.05em 0.3em;
  color: var(--ink);
}


/* ════════════════════════════════════════════════════════════════════
   [TOPBAR]
   ════════════════════════════════════════════════════════════════════ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--gutter);
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.topbar__mark {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 500;
  color: var(--ink);
}

.topbar__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 3px var(--bone), 0 0 0 4px var(--terracotta);
}

.topbar__nav {
  display: flex; gap: 1.6rem;
}

.topbar__nav a:hover { color: var(--terracotta); }

.topbar__meta {
  text-align: right;
  color: var(--ink-mute);
}

.topbar__rev {
  color: var(--terracotta-deep);
}

@media (max-width: 980px) {
  .topbar__nav { display: none; }
}


/* ════════════════════════════════════════════════════════════════════
   [HERO]
   ════════════════════════════════════════════════════════════════════ */
.hero {
  padding: clamp(3rem, 9vw, 7rem) var(--gutter) clamp(2.5rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  border-bottom: 1px solid var(--rule);
}

.hero__eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin-bottom: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.hero__eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--terracotta-deep);
}

.hero__h {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(2.2rem, 6vw, 5.4rem);
  line-height: 0.99;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  max-width: 22ch;
}

.hero__h em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: var(--terracotta);
}

.hero__sub {
  margin-top: clamp(1.5rem, 3vw, 2.4rem);
  font-size: clamp(1.05rem, 1.55vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 42ch;
  font-weight: 380;
}

.hero__sub strong {
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--terracotta);
  padding-bottom: 1px;
}

.hero__lineage {
  margin-top: clamp(1.8rem, 3.5vw, 2.6rem);
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  padding-top: 1rem;
  border-top: 1px dashed var(--rule);
  max-width: 48ch;
}

.hero__lineage a {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
}

.hero__lineage a:hover {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}

/* ─── Status card ─── */
.status {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.5rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.7;
  color: var(--ink-soft);
  position: relative;
  box-shadow:
    1px 1px 0 var(--rule-soft),
    3px 3px 0 var(--rule-soft);
}

.status::before {
  content: "STATUS / 2026-05-06";
  position: absolute;
  top: -0.7rem; left: 1rem;
  background: var(--bone);
  padding: 0 0.6rem;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--terracotta-deep);
  font-weight: 500;
}

.status dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
}

.status dt {
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.64rem;
  padding-top: 0.18rem;
}

.status dd {
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .status { max-width: 22rem; }
}


/* ════════════════════════════════════════════════════════════════════
   [SECTION] — shared scaffolding (used by all numbered sections)
   ════════════════════════════════════════════════════════════════════ */
section {
  padding: var(--section-pad) var(--gutter);
  border-bottom: 1px solid var(--rule);
}

.section-head {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.section-head::before {
  content: attr(data-num);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--terracotta);
  letter-spacing: 0;
}

.section-head__label--olive { color: var(--olive-deep); }
.section-head--dark { color: var(--terminal-accent); }
.section-head--dark::before { color: var(--terminal-accent); }

.section-h {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
  margin-bottom: 2.5rem;
  max-width: 22ch;
}

.section-h em {
  font-style: italic;
  color: var(--terracotta);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.section-h--dark { color: var(--terminal-fg); }
.section-h--dark em { color: var(--terminal-accent); }

.lead {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 36em;
  margin-bottom: 1.5rem;
  font-weight: 380;
}

.lead--dark { color: var(--terminal-mute); }


/* ════════════════════════════════════════════════════════════════════
   [THESIS] — §I — The Asymmetry
   ════════════════════════════════════════════════════════════════════ */
.thesis__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  margin-top: 2rem;
}

.thesis__prose p {
  max-width: 38em;
  margin-bottom: 1.2rem;
  color: var(--ink-soft);
}

.thesis__prose p:first-child {
  /* the lead paragraph already sized via .lead in HTML */
}

.thesis__prose strong {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}

.thesis__prose em {
  font-style: italic;
  color: var(--ink);
}

@media (max-width: 980px) {
  .thesis__layout { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════════════════════════════════════
   [POSTCARD] — the B200 postcard (in §I)
   Heavy-stock postcard aesthetic: paper background, postal-banner head,
   stamp in the corner with rotated text, bandwidth bars in the body.
   ════════════════════════════════════════════════════════════════════ */
.postcard {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 0;
  position: relative;
  font-family: var(--serif);
  box-shadow:
    2px 2px 0 var(--rule-soft),
    5px 5px 0 var(--rule-soft),
    8px 8px 0 var(--rule-soft);
  transform: rotate(-0.6deg);
  transition: transform 300ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.postcard:hover {
  transform: rotate(0deg);
}

/* Postal banner head */
.postcard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
}

.postcard__type {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.postcard__subject {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 380;
  font-size: 0.95rem;
  font-variation-settings: "opsz" 100, "SOFT" 100;
}

/* Stamp — small square with double border, rotated text */
.postcard__stamp {
  display: inline-block;
  width: 38px;
  height: 38px;
  border: 1px solid var(--paper);
  outline: 1px dashed var(--paper);
  outline-offset: 2px;
  position: relative;
  flex-shrink: 0;
}

.postcard__stamp-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-align: center;
  color: var(--terracotta);
  font-weight: 600;
  transform: rotate(-8deg);
}

/* Body */
.postcard__body {
  padding: 1.6rem 1.5rem 1.8rem;
}

.postcard__row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.7rem;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.postcard__label {
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.postcard__bar {
  display: block;
  height: 10px;
  background: var(--terracotta);
  border: 1px solid var(--terracotta-deep);
}

.postcard__bar--full { width: 100%; }
.postcard__bar--small {
  width: 12.5%;
  background: var(--ink);
  border-color: var(--ink);
}

.postcard__value {
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.72rem;
  white-space: nowrap;
}

.postcard__text {
  margin-top: 1.4rem;
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.postcard__text em {
  font-style: italic;
  color: var(--ink);
  font-weight: 420;
}

.postcard__quote {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--rule);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.3;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  letter-spacing: -0.005em;
}


/* ════════════════════════════════════════════════════════════════════
   [SIDENOTE] — secondary callouts (Hobbesian framing in §I)
   ════════════════════════════════════════════════════════════════════ */
.sidenote {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: 1.4rem 1.6rem;
  background: var(--bone-deep);
  border-left: 2px solid var(--ink-mute);
  max-width: 60ch;
  position: relative;
}

.sidenote__label {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin-bottom: 0.7rem;
}

.sidenote p {
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.sidenote strong {
  color: var(--ink);
  font-weight: 500;
}


/* ════════════════════════════════════════════════════════════════════
   [CANDOR] — §II — The Real Constraint
   The honesty section. Olive accents, more whitespace, distinct frame.
   ════════════════════════════════════════════════════════════════════ */
.candor {
  background:
    linear-gradient(to right, var(--paper) 0%, var(--bone) 60%);
  position: relative;
}

.candor::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--olive);
}

.essay-quote {
  margin: 0 0 2.5rem;
  padding: 1.4rem 0 1.4rem 1.6rem;
  border-left: 2px solid var(--olive);
  max-width: 38em;
}

.essay-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.4;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  margin-bottom: 0.8rem;
}

.essay-quote cite {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-style: normal;
  letter-spacing: 0.06em;
  color: var(--olive-deep);
  font-weight: 500;
}

.essay-quote cite a {
  color: inherit;
  border-bottom: 1px solid var(--olive);
}

.essay-quote cite a:hover { color: var(--terracotta); border-bottom-color: var(--terracotta); }

.consequences {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.consequence {
  border-top: 2px solid var(--olive);
  padding-top: 1rem;
}

.consequence__num {
  display: block;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--olive-deep);
  margin-bottom: 0.4rem;
}

.consequence h3 {
  font-family: var(--serif);
  font-weight: 380;
  font-size: 1.15rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.consequence p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.consequence em {
  font-style: italic;
  color: var(--ink);
}


/* ════════════════════════════════════════════════════════════════════
   [ENGINE] — §III — three-tier diagram + tier descriptions
   ════════════════════════════════════════════════════════════════════ */
.engine {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.diagram-frame {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: clamp(1.2rem, 3vw, 2.2rem);
  position: relative;
  box-shadow: 1px 1px 0 var(--rule-soft), 3px 3px 0 var(--rule-soft);
}

.diagram-frame svg { display: block; width: 100%; height: auto; }

.diagram-frame figcaption {
  display: none;
}

.diagram-frame::before {
  content: "FIG. 1 — THE ENGINE";
  position: absolute;
  top: -0.7rem; left: 1.2rem;
  background: var(--bone);
  padding: 0 0.6rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--terracotta-deep);
}

/* ─── Tier descriptions ─── */
.tiers {
  display: flex; flex-direction: column; gap: 1.6rem;
}

.tier {
  border-top: 1px solid var(--rule);
  padding-top: 1.2rem;
}

.tier__tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.4rem;
  display: flex; align-items: center; gap: 0.7rem;
}

.tier--olive .tier__tag      { color: var(--olive-deep); }
.tier--terracotta .tier__tag { color: var(--terracotta-deep); }
.tier--ink .tier__tag        { color: var(--ink); }

.tier__badge {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  padding: 0.18rem 0.5rem;
  border: 1px solid currentColor;
  letter-spacing: 0.1em;
}

.tier h4 {
  font-family: var(--serif);
  font-weight: 360;
  font-size: 1.45rem;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  font-variation-settings: "opsz" 100;
}

.tier h4 em {
  font-style: italic;
  color: var(--terracotta);
}

.tier p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .engine { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════════════════════════════════════
   [PAIR] — §IV — Sovereignty Pair (terminal + reply)
   ════════════════════════════════════════════════════════════════════ */
.pair__demo {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}

.terminal {
  background: var(--night);
  color: var(--terminal-fg);
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.55;
  padding: 1.6rem;
  border: 1px solid var(--night-soft);
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.02),
    3px 3px 0 var(--rule-soft);
}

.terminal::before {
  content: "▍ buyer-claude · MCP query";
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--terminal-mute);
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
  text-transform: uppercase;
}

.terminal__prompt { color: var(--terminal-accent); font-weight: 500; }
.terminal__arrow  { color: var(--terminal-mute); }
.terminal__comment{ color: var(--terminal-mute); }
.terminal__plan   { color: var(--terminal-green); }
.terminal__detail { color: var(--terminal-mute); }
.terminal__ok     { color: var(--terminal-green); }

.terminal__query {
  color: var(--terminal-fg);
  margin: 0.4rem 0 1.2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--terminal-accent);
}

.terminal__meta {
  color: var(--terminal-mute);
  font-size: 0.78rem;
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px dashed rgba(255,255,255,0.08);
}

.reply {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.8rem;
  font-family: var(--serif);
  font-size: 1.0rem;
  line-height: 1.55;
  color: var(--ink-soft);
  position: relative;
  box-shadow: 3px 3px 0 var(--rule-soft);
}

.reply::before {
  content: "claude · composed reply";
  position: absolute;
  top: -0.7rem; left: 1.2rem;
  background: var(--bone);
  padding: 0 0.6rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--olive-deep);
  text-transform: uppercase;
  font-weight: 500;
}

.reply p { margin-bottom: 0.8rem; }
.reply p:last-child { margin-bottom: 0; }

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  background: var(--bone-deep);
  color: var(--ink);
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--rule);
  margin: 0 0.1rem;
  font-weight: 500;
  white-space: nowrap;
}

.tag--olive {
  background: rgba(92, 106, 58, 0.12);
  border-color: var(--olive);
  color: var(--olive-deep);
}

.pair__corollary {
  margin-top: 2.5rem;
  padding: 1.4rem 1.6rem;
  background: var(--paper);
  border-left: 2px solid var(--terracotta);
  font-size: 0.98rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

.pair__corollary strong {
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 880px) {
  .pair__demo { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════════════════════════════════════
   [COMPLIANCE] — §V — comp grid + Article 22
   ════════════════════════════════════════════════════════════════════ */
.comp-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  counter-reset: comp;
}

.comp {
  border-top: 1px solid var(--ink);
  padding-top: 1rem;
  position: relative;
  counter-increment: comp;
}

.comp::before {
  content: counter(comp, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--terracotta);
  display: block;
  margin-bottom: 0.4rem;
}

.comp h4 {
  font-family: var(--serif);
  font-weight: 380;
  font-size: 1.08rem;
  line-height: 1.25;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.comp p {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--ink-mute);
  letter-spacing: 0.01em;
}

.article-22 {
  margin-top: 3rem;
  padding: 1.6rem 1.8rem;
  background: var(--paper);
  border-left: 3px solid var(--olive);
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.article-22__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive-deep);
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.article-22 em {
  font-style: italic;
  color: var(--ink);
}


/* ════════════════════════════════════════════════════════════════════
   [AUDIENCES] — §VI — 2x2 grid (sceptics is new in v3.5)
   ════════════════════════════════════════════════════════════════════ */
.audience-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.audience {
  background: var(--bone);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
}

.audience--sceptic {
  background: var(--paper);
}

.audience__for {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--terracotta-deep);
  margin-bottom: 0.6rem;
}

.audience--sceptic .audience__for {
  color: var(--olive-deep);
}

.audience h4 {
  font-family: var(--serif);
  font-weight: 360;
  font-size: 1.4rem;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  font-variation-settings: "opsz" 100;
  color: var(--ink);
}

.audience h4 em { font-style: italic; color: var(--terracotta); }
.audience--sceptic h4 em { color: var(--olive); }

.audience p {
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.audience__ask {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--rule);
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--ink-mute);
  letter-spacing: 0.01em;
}

.audience__ask::before {
  content: "ASK ME ABOUT —";
  display: block;
  color: var(--terracotta-deep);
  letter-spacing: 0.14em;
  font-size: 0.64rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.audience--sceptic .audience__ask::before {
  color: var(--olive-deep);
}

@media (max-width: 760px) {
  .audience-grid { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════════════════════════════════════
   [SUBSTRATE] — §VII — dark substrate section
   ════════════════════════════════════════════════════════════════════ */
.substrate {
  background: var(--night);
  color: var(--terminal-fg);
  border-bottom: none;
}

.stack {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}

.stack__cell {
  background: var(--night);
  padding: 1.6rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.5;
}

.stack__label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terminal-accent);
  margin-bottom: 0.7rem;
  font-weight: 500;
}

.stack__value {
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.15;
  color: var(--terminal-fg);
  margin-bottom: 0.4rem;
  font-weight: 360;
  font-variation-settings: "opsz" 100;
}

.stack__detail {
  color: var(--terminal-mute);
  font-size: 0.78rem;
}


/* ════════════════════════════════════════════════════════════════════
   [EVENT] — §VIII — event card + email row
   ════════════════════════════════════════════════════════════════════ */
.event {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  margin-top: 2rem;
}

.event__copy h3 {
  font-family: var(--serif);
  font-weight: 320;
  font-style: italic;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.05;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  margin-bottom: 1.5rem;
  letter-spacing: -0.015em;
}

.event__copy h3 em { font-style: italic; color: var(--terracotta); }

.event__copy p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
  max-width: 38ch;
}

.event__card {
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 1.8rem;
  font-family: var(--mono);
  position: relative;
  box-shadow: 4px 4px 0 var(--terracotta);
  display: block;
  color: inherit;
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

a.event__card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--terracotta);
}

.event__when {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.event__what {
  font-family: var(--serif);
  font-weight: 380;
  font-size: 1.55rem;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 0.6rem;
  font-variation-settings: "opsz" 100;
}

.event__where {
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.4;
  margin-bottom: 1.2rem;
}

.event__look {
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--ink-mute);
  padding-top: 1rem;
  border-top: 1px dashed var(--rule);
}

.event__link {
  display: block;
  margin-top: 0.6rem;
  color: var(--terracotta-deep);
}

.email-row {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.8rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.86rem;
}

.email-row__label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  font-weight: 500;
}

.email-row__email {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 380;
  color: var(--ink);
  border-bottom: 2px solid var(--terracotta);
  padding-bottom: 1px;
  font-variation-settings: "opsz" 144;
}

.email-row__email:hover { color: var(--terracotta); }

.email-row__hint {
  color: var(--ink-mute);
  font-size: 0.78rem;
}

@media (max-width: 880px) {
  .event { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════════════════════════════════════
   [FOOTER]
   ════════════════════════════════════════════════════════════════════ */
footer {
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-top: 1px solid var(--rule);
  background: var(--bone-deep);
}

footer a {
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms;
}

footer a:hover {
  border-bottom-color: var(--terracotta);
  color: var(--terracotta);
}

.footer__copyright { color: var(--ink-mute); }

.footer__links {
  display: flex; gap: 1.6rem; flex-wrap: wrap;
}


/* ════════════════════════════════════════════════════════════════════
   [MOTION] — entrance animations and the terminal caret
   ════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  .hero__h, .hero__eyebrow, .hero__sub, .hero__lineage, .status {
    animation: rise 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero__eyebrow { animation-delay: 0.05s; }
  .hero__h       { animation-delay: 0.15s; }
  .hero__sub     { animation-delay: 0.45s; }
  .hero__lineage { animation-delay: 0.7s; }
  .status        { animation-delay: 0.6s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.caret {
  display: inline-block;
  width: 0.5em;
  height: 1em;
  background: var(--terminal-accent);
  margin-left: 0.15em;
  vertical-align: -0.1em;
  animation: blink 1.05s steps(2) infinite;
}

@keyframes blink { 50% { opacity: 0; } }
