/* ============================================================
   GRAVITY — "PLATES"
   An illustration + UI system layered over styles.css.

   The idea: every image on the site is a PLATE — a figure from a
   scientific atlas — but printed the way a 1960s risograph poster
   is printed. Flat spot inks, deliberate misregistration, overprint
   where colours cross, engraved hatching instead of gradients, and
   paper grain over the top. Precise enough for a mathematician,
   warm enough for someone who has never read a paper in their life.
   ============================================================ */

:root {
  /* --- spot inks (riso) --- */
  --ink:        #14130d;
  --paper:      #f7f4ec;
  --paper-2:    #efeadc;
  --klein:      #1E3A8A;
  --flare:      #ff5330;   /* attempts, heat, failure-in-progress */
  --beacon:     #ffc23c;   /* light, money, discovery */
  --verified:   #0f9d78;   /* independently checked */
  --void:       #0b1030;   /* deep night bands */

  --klein-wash:   #dfe4f7;
  --flare-wash:   #ffe2d9;
  --beacon-wash:  #fdefc9;
  --verified-wash:#d3efe6;

  --plate-line: 1.4;

  /* the older components read these; point them at the riso inks so the
     whole site prints from one set of plates */
  --accent: #1E3A8A;
  --accent-ink: #16295e;
  --accent-soft: #dfe4f7;
  --accent-soft-2: #eaedfa;
  --killed: #dda28d;          /* a failed attempt is a faded flare, not grey */
  --killed-bg: #f6ece6;
  --hairline: #d9d3c3;
  --hairline-strong: #c2bba6;
  --ink-soft: #55524a;
  --ink-faint: #8c8879;
  --bg: #f7f4ec;
  --bg-raised: #fffdf7;
  --bg-sunk: #efeadc;

  /* paper grain, tiled */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

html, body { background: var(--paper); }
body { color: var(--ink); }

/* Grain sits over the whole page at a whisper. Costs nothing, and it is
   the single cheapest thing that stops flat vector reading as clipart. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--grain);
  background-size: 200px 200px;
  opacity: 0.32;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 9999;
}

/* ------------------------------------------------------------
   PRINT PRIMITIVES
   Classes the plates are assembled from.
   ------------------------------------------------------------ */

.plate { position: relative; display: block; }
.plate svg { display: block; width: 100%; height: auto; overflow: visible; }

/* A colour plate. Multiply so overlaps make a genuine third colour,
   and nudged off the line plate so the registration is visibly hand-set. */
.spot { mix-blend-mode: multiply; }
.spot-slip   { transform: translate(-2.5px, 2px); }
.spot-slip-2 { transform: translate(2px, -1.5px); }

.ln       { fill: none; stroke: var(--ink); stroke-width: var(--plate-line); stroke-linecap: round; stroke-linejoin: round; }
.ln-heavy { stroke-width: calc(var(--plate-line) * 2); }
.ln-hair  { stroke-width: calc(var(--plate-line) * 0.62); }
.ln-dot   { stroke-dasharray: 0.1 4.2; }
.ln-dash  { stroke-dasharray: 7 5; }

.fl-klein    { fill: var(--klein); }
.fl-flare    { fill: var(--flare); }
.fl-beacon   { fill: var(--beacon); }
.fl-verified { fill: var(--verified); }
.fl-ink      { fill: var(--ink); }
.fl-paper    { fill: var(--paper); }

.st-klein    { stroke: var(--klein); }
.st-flare    { stroke: var(--flare); }
.st-beacon   { stroke: var(--beacon); }
.st-verified { stroke: var(--verified); }

/* ------------------------------------------------------------
   FIGURE CAPTIONS — plates are figures, so they get numbered
   ------------------------------------------------------------ */

.fig-caption {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink);
  opacity: 0.62;
  display: flex;
  gap: 10px;
}
.fig-caption b {
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0.75;
  padding-top: 1px;
}

/* ------------------------------------------------------------
   HEADER — wordmark becomes a small body in orbit
   ------------------------------------------------------------ */

.site-header { background: rgba(247, 244, 236, 0.86); border-bottom: 1px solid rgba(20,19,13,0.14); }
.site-header .container { height: 76px; }

.wordmark { gap: 10px; letter-spacing: -0.015em; }
.wordmark .dot { display: none; }
.mark-orbit { width: 36px; height: 36px; flex: 0 0 36px; align-self: center; overflow: visible; color: currentColor; }
.mark-orbit .ray { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.mark-orbit .core { fill: currentColor; }

/* the mark is a live gravity well: the field slowly turns, the core breathes,
   and it spins up when you point at the wordmark */
.mark-orbit .rays { transform-box: view-box; transform-origin: 50px 50px; animation: markSpin 48s linear infinite; }
.mark-orbit .core { transform-box: fill-box; transform-origin: center; animation: corePulse 5s ease-in-out infinite; }
.wordmark:hover .mark-orbit .rays { animation-duration: 9s; }
@keyframes markSpin { to { transform: rotate(360deg); } }
@keyframes corePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
@media (prefers-reduced-motion: reduce) {
  .mark-orbit .rays, .mark-orbit .core { animation: none; }
}
@keyframes markOrbit { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mark-orbit .moon { animation: none; } }

.site-nav a { font-size: 14.5px; }
.nav-cta { border-color: var(--ink); }

/* ------------------------------------------------------------
   HERO — the gravity well
   ------------------------------------------------------------ */

.hero {
  position: relative;
  padding: 0;
  min-height: min(880px, 92vh);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(20,19,13,0.14);
}

.well-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.well-stage canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  /* the plate fades off at its edges rather than being guillotined */
  -webkit-mask-image: radial-gradient(126% 108% at 62% 62%, #000 42%, rgba(0,0,0,0.72) 68%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(126% 108% at 62% 62%, #000 42%, rgba(0,0,0,0.72) 68%, rgba(0,0,0,0) 100%);
}

/* keeps the headline readable where it crosses the mesh */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(76% 84% at 1% 45%, var(--paper) 0%, rgba(247,244,236,0.95) 30%, rgba(247,244,236,0.62) 52%, rgba(247,244,236,0) 72%);
}

.hero .container { position: relative; z-index: 2; width: 100%; }
.hero-copy { max-width: 640px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--klein);
  margin-bottom: 26px;
}
.hero-eyebrow::before {
  content: "";
  width: 26px;
  height: 1.4px;
  background: var(--klein);
}

.hero h1.cover-headline {
  font-size: clamp(3.4rem, 8.4vw, 7.4rem);
  line-height: 0.87;
  letter-spacing: -0.028em;
  margin: 0;
}
.hero h1 .lift {
  display: inline-block;
  font-style: italic;
  color: var(--klein);
}

.hero .hero-tagline { display: none; }

.hero .subline {
  margin-top: 30px;
  font-size: 19px;
  line-height: 1.58;
  max-width: 40ch;
  color: rgba(20,19,13,0.78);
}

.hero .hero-actions { margin-top: 38px; gap: 16px; align-items: center; }
.hero-note { color: rgba(20,19,13,0.5); }

/* a live read-out pinned to the plate, bottom right */
.well-readout {
  position: absolute;
  right: 34px;
  bottom: 34px;
  z-index: 3;
  text-align: right;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(20,19,13,0.6);
  line-height: 1.8;
  pointer-events: none;
  background: rgba(247,244,236,0.82);
  border: 1px solid rgba(20,19,13,0.16);
  padding: 12px 15px 11px;
  backdrop-filter: blur(2px);
}
.well-readout b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.well-readout .kill { color: var(--flare); }
.well-readout .hit  { color: var(--verified); }

.well-hint {
  position: absolute;
  right: 34px;
  bottom: 126px;
  z-index: 3;
  text-align: right;
  font-size: 11.5px;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(20,19,13,0.38);
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 60px 0 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .hero::before { display: none; }
  .hero .container { order: 1; }
  .hero-copy { max-width: none; }
  .hero .subline { max-width: none; }
  .hero .hero-actions .btn { flex: 1 1 auto; text-align: center; }
  .well-stage { order: 2; position: relative; inset: auto; width: 100%; height: 62vw; min-height: 260px; max-height: 380px; margin-top: 34px; }
  .well-readout {
    order: 3;
    position: static;
    align-self: flex-end;
    margin: 14px 22px 26px;
    padding: 10px 13px 9px;
    backdrop-filter: none;
  }
  .well-hint { display: none; }
}

/* ------------------------------------------------------------
   BAND COLOURS — the page needs a rhythm, not one long beige
   ------------------------------------------------------------ */

.band-paper   { background: var(--paper); }
.band-sunk    { background: var(--paper-2); border-top: 1px solid rgba(20,19,13,0.12); border-bottom: 1px solid rgba(20,19,13,0.12); }
.band-beacon  { background: var(--beacon-wash); border-top: 1px solid rgba(20,19,13,0.14); border-bottom: 1px solid rgba(20,19,13,0.14); }
.band-klein   { background: var(--klein-wash); border-top: 1px solid rgba(20,19,13,0.14); border-bottom: 1px solid rgba(20,19,13,0.14); }
.band-void    { background: var(--void); color: var(--paper); }
.band-void h1, .band-void h2, .band-void h3, .band-void h4,
.live-band h1, .live-band h2, .live-band h3, .live-band h4 { color: #fff; }
.band-void p, .live-band p { color: rgba(247,244,236,0.82); }

/* ------------------------------------------------------------
   STATS STRIP — ledger, with a tick-mark rule under each
   ------------------------------------------------------------ */

.stats-strip { background: var(--paper-2); border-top: 1px solid rgba(20,19,13,0.14); border-bottom: 1px solid rgba(20,19,13,0.14); }
.stats-grid { border: none; gap: 0; }
.stat-cell { border-left: 1px solid rgba(20,19,13,0.14); padding: 30px 30px 26px; position: relative; }
.stat-cell:first-child { border-left: none; }
.stat-value { font-size: clamp(2rem, 3.4vw, 2.9rem); letter-spacing: -0.02em; }
.stat-label { color: rgba(20,19,13,0.6); }
.stat-rule { display: block; height: 9px; margin: 12px 0 12px; overflow: visible; }
.stat-rule line { stroke: var(--ink); stroke-width: 1.1; opacity: 0.3; }
.stat-rule line.on { stroke: var(--klein); opacity: 1; stroke-width: 1.6; }

/* ------------------------------------------------------------
   SECTION HEADS — figure-numbered, like an atlas
   ------------------------------------------------------------ */

.section { padding: 104px 0; }
.section-head { margin-bottom: 54px; }
.section-head h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); letter-spacing: -0.022em; line-height: 1.02; }
.section-head .section-desc { font-size: 16.5px; line-height: 1.62; color: rgba(20,19,13,0.7); }

.plate-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--klein);
  margin-bottom: 18px;
}
.plate-eyebrow .fig-no {
  border: 1.2px solid currentColor;
  border-radius: 999px;
  padding: 3px 9px 2px;
  font-size: 10.5px;
  letter-spacing: 0;
}
.band-void .plate-eyebrow, .live-band .plate-eyebrow { color: var(--beacon); }

/* ------------------------------------------------------------
   PROBLEM CARDS — every problem is a body with its own mass
   ------------------------------------------------------------ */

.problem-grid { gap: 24px; background: none; border: none; grid-template-columns: repeat(2, 1fr); }

.problem-card {
  background: var(--paper);
  border: 1.4px solid var(--ink);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.problem-card:hover { transform: translateY(-3px); box-shadow: 5px 6px 0 rgba(20,19,13,0.16); }

/* the body sits in a tinted well at the top of the card */
.card-plate {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--paper-2);
  border-bottom: 1.4px solid var(--ink);
  padding: 46px 26px 6px;
  overflow: hidden;
}
.card-plate .body-svg { width: 100%; height: auto; display: block; }
.card-plate .card-tag {
  position: absolute;
  top: 18px;
  left: 26px;
  right: 26px;
  z-index: 2;
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(20,19,13,0.66);
}

.card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.problem-card h3 { font-size: 24px; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 20px; }

.problem-card .card-meta { border-top: 1px solid rgba(20,19,13,0.16); padding-top: 16px; margin-bottom: 18px; }
.card-meta-item .val { font-size: 21px; }
.card-meta-item .lbl { color: rgba(20,19,13,0.55); }

.funding-bar-track { background: rgba(20,19,13,0.1); height: 5px; border-radius: 0; }
.funding-bar-fill  { border-radius: 0; }
.funding-bar-label { color: rgba(20,19,13,0.6); }

.card-live-metric { color: rgba(20,19,13,0.62); }
.mass-line { color: rgba(20,19,13,0.6); }
.problem-card .card-actions { margin-top: auto; padding-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }

/* the flagship prints on night stock */
.problem-card.flagship { background: var(--void); border-color: var(--void); color: var(--paper); grid-column: span 2; }
.problem-card.flagship .card-plate { background: #131a44; border-bottom-color: rgba(247,244,236,0.28); }
.problem-card.flagship .card-plate .card-tag { color: rgba(247,244,236,0.72); }
.problem-card.flagship h3 { color: #fff; }
.problem-card.flagship .card-meta { border-top-color: rgba(247,244,236,0.22); }
.problem-card.flagship .card-meta-item .lbl,
.problem-card.flagship .card-live-metric,
.problem-card.flagship .mass-line,
.problem-card.flagship .funding-bar-label { color: rgba(247,244,236,0.62); }
.problem-card.flagship .funding-bar-track { background: rgba(247,244,236,0.16); }
.problem-card.flagship:hover { box-shadow: 5px 6px 0 rgba(20,19,13,0.3); }

/* flagship runs plate-left / copy-right */
.problem-card.flagship { display: grid; grid-template-columns: 1.02fr 1fr; }
.problem-card.flagship .card-plate { border-bottom: none; border-right: 1.4px solid rgba(247,244,236,0.28); padding: 50px 30px 18px; }

.problem-card.flagship .card-body { padding: 34px 34px 32px; }
.problem-card.flagship h3 { font-size: 32px; }

.tag-pill { border-radius: 999px; padding: 4px 11px 3px; font-size: 10.5px; letter-spacing: 0; }

@media (max-width: 900px) {
  .problem-grid { grid-template-columns: 1fr; }
  .problem-card.flagship { grid-column: span 1; grid-template-columns: 1fr; }
  .problem-card.flagship .card-plate { border-right: none; border-bottom: 1.4px solid rgba(247,244,236,0.28); }
  
}

/* ------------------------------------------------------------
   STEPS — each step is a plate
   ------------------------------------------------------------ */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(20,19,13,0.16); border: 1.4px solid var(--ink); }
.step { background: var(--paper); padding: 0 0 30px; }
.step .step-plate { background: var(--paper-2); border-bottom: 1px solid rgba(20,19,13,0.16); padding: 20px 0 0; }
.step .step-plate svg { width: 100%; height: 168px; display: block; }
.step .step-inner { padding: 24px 28px 0; }
.step .step-num { color: var(--klein); font-size: 12px; letter-spacing: 0; margin-bottom: 12px; }
.step h3 { font-size: 22px; line-height: 1.1; margin-bottom: 12px; }
.step p { color: rgba(20,19,13,0.7); font-size: 14.8px; line-height: 1.6; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------
   BUTTONS — hard-edged, printed, with a shadow that looks like
   a second impression of the same block
   ------------------------------------------------------------ */

.btn { border-radius: 0; border-width: 1.4px; font-weight: 600; letter-spacing: 0.005em; transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease; }
.btn-primary { background: var(--klein); border-color: var(--klein); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.btn-primary:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); background: #1834a5; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; box-shadow: 3px 3px 0 rgba(20,19,13,0.16); }
.btn-outline:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(20,19,13,0.22); }
.btn-flare { background: var(--flare); border-color: var(--flare); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.btn-flare:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.band-void .btn-outline { border-color: rgba(247,244,236,0.6); color: var(--paper); box-shadow: 3px 3px 0 rgba(0,0,0,0.4); }
.problem-card.flagship .btn-outline { border-color: rgba(247,244,236,0.65); color: var(--paper); box-shadow: 3px 3px 0 rgba(0,0,0,0.45); }
.nav-cta { border-radius: 999px; }

/* ------------------------------------------------------------
   THE SEARCH — the swarm canvas, reprinted
   ------------------------------------------------------------ */

.search-frame {
  /* graph paper, so the plate is never a blank white void */
  background:
    repeating-linear-gradient(0deg, rgba(20,19,13,0.05) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(20,19,13,0.05) 0 1px, transparent 1px 34px),
    var(--paper);
  border: 1.4px solid var(--ink);
  box-shadow: 6px 7px 0 rgba(20,19,13,0.14);
}
.search-frame .search-canvas { mix-blend-mode: multiply; }
.search-stage-label { color: rgba(20,19,13,0.5); letter-spacing: 0; }
.search-caption { font-family: var(--font-display); }
.search-counters { color: rgba(20,19,13,0.6); }
.search-replay { border-radius: 999px; border: 1.2px solid var(--ink); background: var(--paper); }

/* corner registration marks, so the frame reads as a printed plate */
.search-frame::before,
.search-frame::after {
  content: "";
  position: absolute;
  width: 13px; height: 13px;
  border: 1.2px solid rgba(20,19,13,0.28);
  pointer-events: none;
}
.search-frame::before { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.search-frame::after  { bottom: 10px; right: 10px; border-left: none; border-top: none; }

/* ------------------------------------------------------------
   ACTIVITY FEED — a strip of telemetry off the press
   ------------------------------------------------------------ */

.activity-feed { border: 1.4px solid var(--ink); background: var(--paper); }
.activity-feed-head { background: var(--void); color: var(--paper); border-bottom: none; letter-spacing: 0; text-transform: none; font-size: 11px; padding: 13px 22px; }
.activity-feed-head .label { color: #fff; }
.feed-list li { border-bottom: 1px solid rgba(20,19,13,0.12); }
.feed-time { color: rgba(20,19,13,0.42); }
.feed-text .accent-word { color: var(--klein); font-weight: 600; }
.mini-pulse, .stat-pulse { background: var(--flare); }
.activity-feed-head .mini-pulse { background: var(--beacon); }

/* ------------------------------------------------------------
   LIVE / VISION BAND
   ------------------------------------------------------------ */

.live-band { background: var(--void); border: none; color: var(--paper); }
.live-band .eyebrow { color: var(--beacon); }
.live-h { letter-spacing: -0.022em; }
.live-sub { color: rgba(247,244,236,0.8); }
.live-format { background: rgba(247,244,236,0.2); border-color: rgba(247,244,236,0.2); }
.lf { background: var(--void); }
.lf-n { color: var(--beacon); }
.lf p { color: rgba(247,244,236,0.72); }
.live-strands span { border-color: rgba(247,244,236,0.28); color: rgba(247,244,236,0.8); }
.live-strands span.hi { background: var(--beacon); border-color: var(--beacon); color: var(--void); }
.live-dot { background: var(--beacon); }
.live-night-label { color: var(--beacon); }

/* ------------------------------------------------------------
   BUILD WITH US
   ------------------------------------------------------------ */

.build-grid { background: rgba(20,19,13,0.16); border: 1.4px solid var(--ink); gap: 1px; }
.build-cell { background: var(--paper); padding: 0 28px 30px; }
.build-cell .build-plate { margin: 0 -28px 20px; padding: 20px 0 0; background: var(--paper-2); border-bottom: 1px solid rgba(20,19,13,0.16); }
.build-cell .build-plate svg { width: 100%; height: 118px; display: block; }
.build-tag { font-size: 18px; letter-spacing: -0.01em; }
.build-cell p { color: rgba(20,19,13,0.7); }
.build-cta { border: 1.4px solid var(--ink); background: var(--beacon-wash); box-shadow: 6px 7px 0 rgba(20,19,13,0.14); }

/* ------------------------------------------------------------
   MANIFESTO
   ------------------------------------------------------------ */

.manifesto { background: var(--paper); }
.manifesto blockquote { font-size: clamp(1.5rem, 3.1vw, 2.4rem); line-height: 1.2; letter-spacing: -0.018em; }
.manifesto cite { color: rgba(20,19,13,0.55); }

/* ------------------------------------------------------------
   ENGINE CTA PANEL
   ------------------------------------------------------------ */

.engine-cta-panel { border: 1.4px solid var(--ink); background: var(--paper); box-shadow: 6px 7px 0 rgba(20,19,13,0.14); position: relative; overflow: hidden; }
.engine-cta-panel p { color: rgba(20,19,13,0.72); }

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */

.site-footer { background: var(--void); color: rgba(247,244,236,0.78); border: none; position: relative; overflow: hidden; }
/* the gravity field, cropped into the corner: the mark blown up as texture */
.site-footer .field-motif {
  position: absolute; right: -18%; bottom: -46%;
  width: 560px; height: 560px; max-width: 62vw;
  color: #f7f4ec; opacity: 0.10; pointer-events: none; z-index: 0;
}
.site-footer .field-motif .frays { transform-box: view-box; transform-origin: 50px 50px; animation: markSpin 150s linear infinite; }
.site-footer .container { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .site-footer .field-motif .frays { animation: none; } }
.site-footer .wordmark { color: #fff; }
/* mark inherits currentColor, so the footer wordmark renders it white automatically */
.site-footer .footer-brand p { color: rgba(247,244,236,0.62); }
.site-footer .footer-col h4 { color: var(--beacon); }
.site-footer .footer-col a { color: rgba(247,244,236,0.74); }
.site-footer .footer-col a:hover { color: #fff; }
.site-footer .hairline { border-top-color: rgba(247,244,236,0.18); }
.site-footer .footer-bottom { color: rgba(247,244,236,0.5); }

/* ------------------------------------------------------------
   MISC
   ------------------------------------------------------------ */

.illustrative-note { color: rgba(20,19,13,0.45); }
.modal-card { border-radius: 0; border: 1.4px solid var(--ink); }

@media (max-width: 600px) {
  .container { padding: 0 22px; }
  .section { padding: 72px 0; }
  .stat-cell { padding: 22px; }
}

/* ------------------------------------------------------------
   BASE LAYOUT for blocks that used to live in a page-level
   <style> tag. They belong in the system, not in the markup.
   ------------------------------------------------------------ */

.illustrative-note {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-align: center;
}

/* --- build with us --- */
.build-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.build-tag { font-family: var(--font-display); font-weight: 600; margin-bottom: 12px; }
.build-cell p { font-size: 14px; line-height: 1.6; }
.build-cta {
  margin-top: 40px;
  padding: 32px 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.build-cta h3 { font-size: 21px; margin-bottom: 6px; }
.build-cta p { font-size: 14.5px; color: rgba(20,19,13,0.7); }
@media (max-width: 1080px) { .build-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .build-grid { grid-template-columns: 1fr; }
  .build-cta { flex-direction: column; align-items: flex-start; }
  .build-cta .btn { width: 100%; text-align: center; }
}

/* --- the vision band --- */
.live-band .container { padding-top: 100px; padding-bottom: 100px; }
.live-h { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.02; max-width: 20ch; text-wrap: balance; }
.live-sub { margin-top: 22px; max-width: 62ch; font-size: 18px; line-height: 1.62; text-wrap: pretty; }
.live-format { margin-top: 46px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border-style: solid; border-width: 1px; }
.lf { padding: 26px 24px; }
.lf-n { font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.lf-t { font-family: var(--font-display); font-size: 19px; color: #fff; margin: 12px 0 8px; text-wrap: balance; }
.lf p { font-size: 14px; line-height: 1.55; text-wrap: pretty; }
.live-cta { margin-top: 42px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.live-status { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(247,244,236,0.82); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; animation: pulse 2.4s ease-in-out infinite; }
.live-strands { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.live-strands span { font-size: 12.5px; letter-spacing: 0.02em; border: 1px solid; border-radius: 999px; padding: 7px 13px; }
.live-strands span.hi { font-weight: 600; }
.live-night-label { margin-top: 44px; margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; }
@media (max-width: 1080px) { .live-format { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .live-format { grid-template-columns: 1fr; } }

/* --- the propose card: a problem with no mass yet --- */
.problem-card.propose { background: var(--paper); border-style: dashed; }
.problem-card.propose .card-plate { background: transparent; border-bottom-style: dashed; }
.problem-card.propose .card-body { justify-content: center; }
.problem-card.propose h3 { margin-bottom: 12px; }
.problem-card.propose p { color: rgba(20,19,13,0.7); font-size: 15px; line-height: 1.6; margin-bottom: 22px; }

/* --- the vision band: copy left, the constellation right --- */
.live-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.live-copy .live-sub { max-width: none; }
.live-plate svg { width: 100%; height: auto; max-height: 440px; display: block; }
@media (max-width: 980px) {
  .live-top { grid-template-columns: 1fr; gap: 34px; }
  .live-plate { max-width: 420px; margin: 0 auto; }
}
.site-header { background: var(--paper); }

/* ------------------------------------------------------------
   GUARDS
   These blocks are restyled around an illustration. On pages that
   use the same components without one, put the padding back.
   ------------------------------------------------------------ */

.step:not(:has(.step-plate))        { padding: 28px 28px 30px; }
.build-cell:not(:has(.build-plate)) { padding-top: 28px; }
.problem-card:not(:has(.card-body)) { padding: 26px; display: block; }
.problem-card:not(:has(.card-body)) .card-tag { position: static; margin-bottom: 14px; }

/* MOO: the initials carry the three states */
.wordmark .wm-m, .deck-nav-word .wm-m { color: #ffc23c; }
.wordmark .wm-o1, .deck-nav-word .wm-o1 { color: #ff5330; }
.wordmark .wm-o2, .deck-nav-word .wm-o2 { color: #0f9d78; }
.site-footer .wordmark .wm-m { color: #ffc23c; } .site-footer .wordmark .wm-o1 { color: #ff5330; } .site-footer .wordmark .wm-o2 { color: #0f9d78; }

/* accessibility */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; font-weight: 600; }
.skip:focus { left: 12px; outline: 3px solid #ffc23c; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid #1d3ebf; outline-offset: 2px; }
.legal h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; margin: 30px 0 8px; }
.legal p, .legal li { max-width: 68ch; font-size: 16px; line-height: 1.65; color: rgba(20,19,13,0.82); }
.legal ul { padding-left: 20px; } .legal li { margin-bottom: 8px; }
.legal .meta { font-size: 13px; color: rgba(20,19,13,0.55); }
.legal a { color: #1d3ebf; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }
