/* ============================================================
   IMENA Global — landing styles
   Brand tokens from Brandbook v1.0
   ============================================================ */

:root {
  --ink: #1a1a1c;
  --ink-2: #2a2a2e;
  --paper: #f4f1ec;
  --paper-2: #ebe6df;
  --bone: #e3ddd2;
  --coral: #ff5a47;
  --coral-2: #ff7a68;
  --moss: #2f4030;
  --rule: #d9d2c5;
  --muted: #8a8275;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter Tight', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 64px);
  --section-y: clamp(80px, 10vw, 144px);
}

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

html { scroll-behavior: smooth; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
em { font-style: normal; color: var(--coral); font-family: var(--font-display); font-weight: 600; }
u {
  text-decoration: none;
  border-bottom: 4px solid var(--coral);
  padding-bottom: 1px;
}

/* ===== reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   TOPBAR  — Horizontal / Light (always on paper, infrastructure tone)
   ============================================================ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter);
  background: rgba(244, 241, 236, 0.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color .35s ease, padding .35s ease, background .35s ease;
}
.topbar.is-scrolled {
  border-bottom-color: var(--rule);
  padding: 10px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.brand-mark {
  display: inline-flex;
  align-items: flex-end;
  font-size: 22px;
  line-height: 0.9;
}
.brand-dot {
  width: 8px; height: 8px;
  background: var(--coral);
  border-radius: 50%;
  margin-right: 4px;
  margin-bottom: 4px;
  display: inline-block;
}
.brand-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.32em;
  padding-left: 10px;
  border-left: 1px solid currentColor;
  opacity: .7;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.topnav a {
  position: relative;
  padding: 4px 0;
  opacity: 0.85;
  transition: opacity .2s ease;
}
.topnav a:hover { opacity: 1; }
.topnav a:not(.topnav-cta)::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 1px; background: var(--coral);
  transition: right .25s ease;
}
.topnav a:not(.topnav-cta):hover::after { right: 0; }

.topnav-cta {
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.06em;
  opacity: 1;
}
.topnav-cta::after { display: none; }
.topnav-cta:hover { background: var(--ink-2); opacity: 1; }

@media (max-width: 760px) {
  .topnav { gap: 14px; font-size: 11px; }
  .topnav a:not(.topnav-cta) { display: none; }
  .topnav .topnav-cta { display: inline-flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(160px, 18vh, 220px) var(--gutter) clamp(96px, 12vh, 140px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(244,241,236,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244,241,236,.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.hero-corner {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244,241,236,.55);
  line-height: 1.6;
}
.hero-corner.tl { top: clamp(110px, 13vh, 150px); left: var(--gutter); }
.hero-corner.tr { top: clamp(110px, 13vh, 150px); right: var(--gutter); text-align: right; }

@media (max-width: 700px) {
  .hero-corner { font-size: 11px; }
  .hero-corner.tl, .hero-corner.tr { top: 110px; }
}

.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: clamp(28px, 4vw, 48px);
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--paper);
}
/* Stacked / Dark — per brandbook S4 stacked variant */
.hero-stacked {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: clamp(72px, 14vw, 200px);
  line-height: 0.86;
  letter-spacing: -0.045em;
}
.hero-stack-row {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.04em;
}
.hero-stack-row .dot {
  width: 0.18em; height: 0.18em;
  background: var(--coral);
  border-radius: 50%;
  margin-bottom: 0.1em;
  margin-right: 0.04em;
  flex-shrink: 0;
}
.hero-stack-global {
  margin-top: clamp(14px, 1.6vw, 22px);
  padding-top: clamp(14px, 1.6vw, 22px);
  border-top: 1px solid rgba(244,241,236,.35);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(18px, 2.4vw, 32px);
  letter-spacing: 0.36em;
  color: rgba(244,241,236,.85);
  align-self: stretch;
  text-indent: 0.18em;
}

.hero-lead {
  margin-top: clamp(28px, 4vw, 48px);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.45;
  max-width: 880px;
  color: rgba(244,241,236,.88);
}
.hero-lead em {
  color: var(--coral);
  font-family: var(--font-display);
  font-weight: 600;
  font-style: normal;
}

.hero-actions {
  margin-top: clamp(36px, 5vw, 56px);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-ticker {
  position: absolute;
  bottom: clamp(28px, 4vh, 48px);
  left: var(--gutter); right: var(--gutter);
  border-top: 1px solid rgba(244,241,236,.2);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244,241,236,.55);
}
.hero-ticker b { color: var(--coral); font-weight: 500; }

@media (max-width: 700px) {
  .hero-ticker { flex-direction: column; gap: 8px; }
  .hero-ticker > span:nth-child(2) { order: 3; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .15s ease, background .25s ease, color .25s ease, border-color .25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--coral);
  color: var(--ink);
}
.btn-primary:hover { background: var(--coral-2); }
.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: rgba(244,241,236,.35);
}
.btn-ghost:hover { border-color: var(--paper); background: rgba(244,241,236,.06); }
.btn-dark {
  background: var(--ink);
  color: var(--paper);
}
.btn-dark:hover { background: var(--ink-2); }

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section {
  position: relative;
  padding: var(--section-y) var(--gutter);
}
.section > :not(.section-tag):not(.section-num) {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.section-paper { background: var(--paper); color: var(--ink); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-coral { background: var(--coral); color: var(--ink); }
.section-bordered { border-top: 1px solid var(--rule); }
.section-ink + .section-paper { border-top: none; }

.section-tag {
  position: absolute;
  top: clamp(28px, 4vw, 48px);
  left: var(--gutter);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 2;
}
.section-tag.on-dark { color: rgba(244,241,236,.55); }
.section-tag.on-coral { color: rgba(0,0,0,.6); }

.section-num {
  position: absolute;
  top: clamp(28px, 4vw, 48px);
  right: var(--gutter);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(80px, 14vw, 220px);
  line-height: 0.8;
  color: var(--bone);
  letter-spacing: -0.05em;
  user-select: none;
  pointer-events: none;
  opacity: .85;
}
.section-num.on-dark { color: rgba(244,241,236,.07); }
.section-num.on-coral { color: rgba(26,26,28,.12); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(48px, 8vw, 96px);
  flex-wrap: wrap;
}
.section-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.section-meta.on-dark { color: rgba(244,241,236,.55); }

/* labels */
.label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: clamp(28px, 4vw, 48px);
  display: block;
}
.label.coral { color: var(--coral); }
.label.on-coral { color: rgba(0,0,0,.7); }

/* ============================================================
   MANIFESTO (problem / why)
   ============================================================ */
.manifesto {
  padding-top: clamp(40px, 6vw, 80px);
}
.manifesto-h {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 5.6vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 1500px;
  text-wrap: pretty;
}
.manifesto-p {
  margin-top: clamp(32px, 4vw, 56px);
  max-width: 720px;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.55;
  color: var(--ink-2);
}

/* ============================================================
   SPLIT (solution)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  padding-top: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}
.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4.8vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}
.h-display.on-dark { color: var(--paper); }
.body-l {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--ink-2);
}
.body-l + .body-l { margin-top: 18px; }

/* ============================================================
   NUMBERED LIST (what we do)
   ============================================================ */
.numlist {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.numlist li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: clamp(20px, 4vw, 64px);
  padding: clamp(28px, 4vw, 40px) 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  transition: background .3s ease;
}
.numlist li:hover { background: rgba(255, 90, 71, 0.04); }
.numlist .num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--coral);
  text-transform: uppercase;
}
.numlist h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.numlist p {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 720px;
}
@media (max-width: 700px) {
  .numlist li { grid-template-columns: 1fr; gap: 8px; }
}

/* ============================================================
   STEPS (how it works)
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: rgba(244,241,236,.12);
  border: 1px solid rgba(244,241,236,.12);
}
.step {
  background: var(--ink);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  min-height: 280px;
  transition: background .3s ease;
}
.step:hover { background: var(--ink-2); }
.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--paper);
  margin-top: 8px;
}
.step p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: rgba(244,241,236,.7);
  margin-top: auto;
}

/* ============================================================
   STATS (validation)
   ============================================================ */
.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  padding: 0;
}
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

.stats li {
  border-top: 1px solid rgba(244,241,236,.2);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stats b {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 4.2vw, 64px);
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--paper);
}
.stats span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244,241,236,.55);
}

.next-line {
  margin-top: clamp(56px, 8vw, 96px);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.015em;
  color: var(--paper);
  border-top: 1px solid rgba(244,241,236,.2);
  padding-top: 24px;
}
.next-dot {
  width: 14px; height: 14px;
  background: var(--coral);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  padding-top: clamp(40px, 6vw, 80px);
  max-width: 1100px;
}
.cta-h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 11vw, 180px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.cta-lead {
  margin-top: clamp(28px, 4vw, 48px);
  max-width: 680px;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.55;
  color: rgba(26,26,28,.78);
}
.cta-actions {
  margin-top: clamp(32px, 5vw, 56px);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.section-coral em { color: var(--ink); }
.section-coral u { border-bottom-color: var(--ink); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(64px, 8vw, 96px) var(--gutter) clamp(28px, 4vw, 40px);
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr 1.2fr;
  gap: clamp(24px, 4vw, 64px);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; margin-bottom: 24px; }
}
.footer-col p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244,241,236,.85);
}
.footer-col a { color: var(--coral); transition: color .2s; }
.footer-col a:hover { color: var(--coral-2); }
.footer-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244,241,236,.5);
  display: block;
  margin-bottom: 10px;
}
.brand-foot { color: var(--paper); margin-bottom: 16px; }
.footer-tag {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: rgba(244,241,236,.78);
}

.footer-rule {
  max-width: var(--container);
  margin: clamp(48px, 6vw, 72px) auto 0;
  border-top: 1px solid rgba(244,241,236,.18);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244,241,236,.45);
}
@media (max-width: 600px) { .footer-rule { flex-direction: column; gap: 6px; } }

/* ============================================================
   selection
   ============================================================ */
::selection { background: var(--coral); color: var(--ink); }

/* ============================================================
   V1 update — light/infrastructure tone
   Base = paper. Black = accent only. Coral = CTA only.
   ============================================================ */

/* ===== Hero — light variant ===== */
.hero.hero-light {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(140px, 16vh, 200px) var(--gutter) clamp(80px, 10vh, 120px);
  border-bottom: 1px solid var(--rule);
}
.hero-light .hero-grid { display: none; }
.hero-light .hero-corner {
  color: var(--muted);
  font-weight: 400;
}
.hero-light .hero-headline {
  color: var(--ink);
}
.hero-light .hero-stack-global {
  color: var(--muted);
  border-top-color: var(--rule);
}
.hero-light .hero-lead {
  color: var(--ink-2);
}
.hero-light .hero-lead em {
  color: var(--coral);
}
.hero-light .hero-ticker {
  border-top-color: var(--rule);
  color: var(--muted);
}
.hero-light .hero-ticker b { color: var(--coral); }
.hero-light .btn-ghost {
  color: var(--ink);
  border-color: rgba(26, 26, 28, .25);
}
.hero-light .btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(26, 26, 28, .04);
}

/* ===== Hero — foundation tag (under CTA buttons) ===== */
.hero-foundation {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(20px, 2.4vw, 28px);
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-foundation .hf-mark {
  font-weight: 500;
  color: var(--ink);
}
.hero-foundation .hf-divider {
  color: var(--coral);
  font-size: 8px;
}
.hero-foundation .hf-tag b { color: var(--coral); }

/* ===== Stats — light variant (for #impact on paper) ===== */
.stats-light li {
  border-top-color: var(--rule);
}
.stats-light b {
  color: var(--ink);
}
.stats-light span {
  color: var(--muted);
}

/* ===== Proof line / Wikipedia link ===== */
.proof-line {
  margin-top: clamp(28px, 4vw, 40px);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.proof-line .next-dot {
  width: 10px; height: 10px;
  background: var(--coral);
  border-radius: 50%;
  flex-shrink: 0;
}
.wiki-link {
  color: var(--ink);
  border-bottom: 1px solid var(--coral);
  padding-bottom: 1px;
  font-weight: 500;
  transition: color .2s ease;
  text-transform: none;
  font-family: var(--font-body);
  letter-spacing: 0;
  font-size: 14px;
}
.wiki-link:hover { color: var(--coral); }

/* ===== Projects grid (ported from v2) ===== */
.projects-grid {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (max-width: 760px) { .projects-grid { grid-template-columns: 1fr; } }

.project {
  background: var(--paper-2);
  padding: clamp(28px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background .25s ease;
}
.project:hover { background: #efeae1; }
.project-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.project-id { color: var(--muted); }
.project-status {
  padding: 3px 8px;
  border: 1px solid var(--moss);
  color: var(--moss);
  border-radius: 999px;
  font-size: 10px;
}
.project[data-state="closed"] .project-status {
  color: var(--muted);
  border-color: var(--muted);
}
.project[data-state="open"] .project-status {
  color: var(--coral);
  border-color: var(--coral);
}

.project-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  column-gap: 18px;
  row-gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.project-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.project-stats > div { display: flex; flex-direction: column; gap: 4px; }
.project-stats b {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.project-stats span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.project-desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}
.project-desc em {
  color: var(--coral);
  font-family: var(--font-display);
  font-weight: 600;
  font-style: normal;
}

.projects-foot {
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  max-width: 920px;
}

/* Placeholder marker — coral-tinted, easy to find & replace */
.placeholder {
  background: rgba(255, 90, 71, .1);
  border-bottom: 1px dashed var(--coral);
  padding: 0 4px;
  color: var(--coral);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.92em;
}
.project-desc.placeholder {
  display: block;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px dashed var(--coral);
  background: rgba(255, 90, 71, .05);
  font-size: 13px;
  line-height: 1.5;
}

/* ===== Steps — light variant (for #how on paper) ===== */
.section-paper .steps {
  background: var(--rule);
  border: 1px solid var(--rule);
}
.section-paper .step {
  background: var(--paper-2);
}
.section-paper .step:hover { background: #efeae1; }
.section-paper .step-num { color: var(--coral); }
.section-paper .step h3 { color: var(--ink); }
.section-paper .step p { color: var(--ink-2); }

/* ===== Next-line on paper ===== */
.section-paper .next-line {
  color: var(--ink);
  border-top-color: var(--rule);
}

/* ============================================================
   Dark-section adaptations for content used on both light & dark
   ============================================================ */
.section-ink .body-l {
  color: rgba(244, 241, 236, .85);
}

/* Validated-model on dark — proof line + Wikipedia link readable */
.section-ink .proof-line {
  color: rgba(244, 241, 236, .55);
}
.section-ink .wiki-link {
  color: var(--paper);
}
.section-ink .wiki-link:hover { color: var(--coral); }

/* Project grid on dark — soften the inter-card gridlines */
.section-ink .projects-grid {
  background: rgba(244, 241, 236, .12);
  border-color: rgba(244, 241, 236, .12);
}

/* Projects-foot caption on dark */
.section-ink .projects-foot {
  color: rgba(244, 241, 236, .65);
  border-top-color: rgba(244, 241, 236, .15);
}
