/* --------------------------------------------------------------------------
   Seld — Fog
   Atmospheric, analog, quiet. Sage fog, heavy grain, one ember accent.
   Big friendly sentence-case type, pill nav, rounded frosted cards.
---------------------------------------------------------------------------- */

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('/fonts/onest-var.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/plexmono-normal-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/plexmono-normal-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/plexmono-normal-600.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --fog-0: #79837a;
  --fog-1: #6b756c;
  --fog-2: #565f58;
  --fog-3: #434b45;
  --fog-4: #343b36;
  --paper: #f2f0e9;
  --paper-soft: #d9d9d0;
  --mist: #b6bab0;
  --mist-dim: #99a096;
  --ember: #e8703f;
  --ember-glow: #ff8a52;
  --card: rgba(255, 255, 255, 0.07);
  --card-line: rgba(242, 240, 233, 0.22);
  --card-line-soft: rgba(242, 240, 233, 0.12);
  --font-text: 'Onest', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --r-lg: 24px;
  --r-md: 16px;
  --r-pill: 999px;
  background: var(--fog-3);
  color: var(--paper);
  font-family: var(--font-text);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scrollbar-color: var(--fog-1) var(--fog-3);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background:
    radial-gradient(120% 90% at 50% -10%, var(--fog-1) 0%, var(--fog-2) 48%, var(--fog-3) 100%);
  background-color: var(--fog-3);
  font-size: 1.04rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Film grain over everything */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='280' height='280' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 280px 280px;
}
.grain--fine {
  z-index: 91;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-size: 140px 140px;
}

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; }
code { font-family: var(--font-mono); font-size: 0.88em; }

::selection { background: var(--paper); color: var(--fog-4); }

:focus-visible,
a:focus-visible,
button:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; border-radius: 4px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 18px;
  background: var(--paper);
  color: var(--fog-4);
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  text-decoration: none;
  transform: translateY(-220%);
}
.skip-link:focus { transform: none; }

/* Voice: small caps chips ---------------------------------------------------- */

.chip,
.press-heading__kicker,
.hero__datum,
.mono-line,
.register__hint,
.status-item__chip b,
.demo-card__head span,
.press-note__label,
.code-panel__head,
.site-footer__meta {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--card-line);
  border-radius: 8px;
  color: var(--paper-soft);
  background: rgba(30, 34, 31, 0.25);
  backdrop-filter: blur(2px);
}

.shell {
  width: min(100%, 1560px);
  margin-inline: auto;
  padding-inline: clamp(22px, 4vw, 60px);
}

/* Pill nav ------------------------------------------------------------------ */

.pillbar {
  position: fixed;
  z-index: 80;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem;
  background: rgba(28, 31, 27, 0.82);
  border-radius: var(--r-pill);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(15, 18, 15, 0.35);
}
.pillbar a,
.pillbar span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 1.05rem;
  border-radius: var(--r-pill);
  color: var(--paper-soft);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pillbar a:hover { color: var(--paper); background: rgba(255, 255, 255, 0.07); }
.pillbar a[aria-current='page'] { color: var(--paper); background: rgba(255, 255, 255, 0.1); }
.pillbar .pill-cta { background: var(--paper); color: #23261f; font-weight: 500; }
.pillbar a.pill-cta:hover { background: #fff; color: #23261f; }
.pillbar .is-disabled { color: var(--mist-dim); cursor: not-allowed; }

.brandmark {
  position: fixed;
  z-index: 80;
  top: 22px;
  left: clamp(22px, 4vw, 60px);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(28, 31, 27, 0.7);
  color: var(--paper);
  font-weight: 500;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

/* Hero: the fog field -------------------------------------------------------- */

.hero {
  position: relative;
  min-height: max(100svh, 700px);
  overflow: hidden;
  isolation: isolate;
}

.hero__atmos { position: absolute; inset: 0; z-index: -2; }
.hero__atmos::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 50% 42%, rgba(160, 168, 158, 0.5) 0%, rgba(160, 168, 158, 0) 70%),
    radial-gradient(120% 100% at 50% 0%, var(--fog-0) 0%, var(--fog-1) 40%, var(--fog-2) 78%, var(--fog-3) 100%);
}
.hero__atmos::after {
  content: "";
  position: absolute;
  inset: -6%;
  background: radial-gradient(75% 70% at 50% 50%, rgba(20, 24, 21, 0) 55%, rgba(20, 24, 21, 0.5) 100%);
}

/* Orbit rings + ember thread */
.hero__orbit {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  place-items: center;
}
.hero__orbit svg { width: min(118vh, 90vw); height: auto; overflow: visible; }
.orbit-ring { fill: none; stroke: rgba(242, 240, 233, 0.28); stroke-width: 1; }
.orbit-ring--faint { stroke: rgba(242, 240, 233, 0.14); }
.ember-glow { fill: none; stroke: var(--ember-glow); stroke-width: 12; opacity: 0.35; filter: blur(14px); }
.ember-core { fill: none; stroke: var(--ember-glow); stroke-width: 2.2; opacity: 0.9; }
.ember-dot { fill: var(--ember-glow); opacity: 0.9; }
.hero .ember-glow { animation: ember-breathe 7s ease-in-out infinite; }
@keyframes ember-breathe { 0%, 100% { opacity: 0.26; } 50% { opacity: 0.45; } }

/* Floating chips on the rings */
.hero__chips { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__chips .chip { position: absolute; transform: translate(-50%, -50%); }

/* Hero copy placement: asymmetric */
.hero__statement {
  position: absolute;
  z-index: 2;
  top: clamp(108px, 16vh, 180px);
  left: clamp(22px, 5vw, 84px);
  max-width: 15ch;
  font-size: clamp(2.5rem, 4.6vw, 4.9rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(24, 28, 25, 0.35);
}

.hero__aphorism {
  position: absolute;
  z-index: 2;
  top: clamp(118px, 17vh, 190px);
  right: clamp(22px, 5vw, 84px);
  max-width: 24ch;
  text-align: right;
  font-size: clamp(1.15rem, 1.5vw, 1.6rem);
  font-weight: 400;
  color: var(--paper);
  line-height: 1.4;
}

.hero__para {
  position: absolute;
  z-index: 2;
  bottom: clamp(80px, 13vh, 150px);
  right: clamp(22px, 5vw, 84px);
  max-width: 34ch;
  text-align: right;
  font-size: clamp(1.12rem, 1.45vw, 1.5rem);
  line-height: 1.5;
  color: var(--paper);
  text-shadow: 0 1px 30px rgba(24, 28, 25, 0.45);
}

/* Bottom-left inset card */
.hero__card {
  position: absolute;
  z-index: 2;
  bottom: clamp(70px, 11vh, 130px);
  left: clamp(22px, 5vw, 84px);
  width: min(320px, 78vw);
  padding: 1rem 1.1rem 1.05rem;
  background: rgba(30, 34, 30, 0.5);
  border: 1px solid var(--card-line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(6px);
}
.hero__card .chip { margin-bottom: 0.7rem; }
.hero__card p {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.7;
  color: var(--paper-soft);
}
.hero__card p b { color: var(--ember-glow); font-weight: 500; }

.hero__datum {
  position: absolute;
  z-index: 2;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--mist);
  white-space: nowrap;
}

/* Motion toggle */
.motion-toggle {
  position: absolute;
  z-index: 3;
  bottom: 24px;
  left: clamp(22px, 5vw, 84px);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.motion-toggle:hover { color: var(--paper); }
.motion-toggle::before { content: ""; width: 9px; height: 11px; border-inline: 3px solid currentColor; }
html[data-motion='paused'] .motion-toggle::before {
  border-inline: 0;
  border-left: 9px solid currentColor;
  border-block: 5.5px solid transparent;
  height: 0;
}
html[data-motion='paused'] .ember-glow { animation-play-state: paused; }

/* Sections -------------------------------------------------------------------- */

.signal-section { scroll-margin-top: 90px; position: relative; }

.press-section { padding-block: clamp(5.5rem, 12svh, 10rem); }
.press-section + .press-section { border-top: 1px solid var(--card-line-soft); }

.press-heading { max-width: 70rem; }
.press-heading__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.32rem 0.7rem;
  border: 1px solid var(--card-line);
  border-radius: 8px;
  color: var(--paper-soft);
  background: rgba(30, 34, 31, 0.25);
}
.press-heading__kicker .rule { display: none; }
.press-heading__kicker .kicker-right { color: var(--mist-dim); }
.press-heading__kicker .kicker-right::before { content: "· "; }

.press-heading__title {
  margin-top: 1.5rem;
  font-size: clamp(2rem, 3.4vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}
.press-section--pillar .press-heading__title {
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  line-height: 1.06;
}

.press-heading__description {
  max-width: 52ch;
  margin-top: 1.1rem;
  color: var(--mist);
  font-size: clamp(1.05rem, 1.25vw, 1.3rem);
  line-height: 1.6;
}

.section-body {
  max-width: 46rem;
  margin-top: 1.5rem;
  color: var(--paper-soft);
  font-size: clamp(1.02rem, 1.2vw, 1.22rem);
  line-height: 1.65;
}
.section-body + .section-body { margin-top: 1rem; }
.section-body a { text-decoration: underline; text-underline-offset: 4px; }

.mono-line { display: block; margin-top: 1.4rem; color: var(--mist-dim); }

.press-section--indent > * { margin-left: clamp(0rem, 12vw, 14rem); }
.press-section--indent .press-heading__description,
.press-section--indent .section-body { max-width: 42rem; }
@media (max-width: 1024px) { .press-section--indent > * { margin-left: 0; } }

/* Frosted cards --------------------------------------------------------------- */

.background-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 2.2rem;
  max-width: 72rem;
}
.background-columns__item {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1.5rem 1.6rem;
  background: var(--card);
  border: 1px solid var(--card-line-soft);
  border-radius: var(--r-lg);
}
.background-columns__item > span {
  color: var(--mist-dim);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  padding-top: 0.35rem;
}
.background-columns__item p { color: var(--paper-soft); font-size: 1.05rem; line-height: 1.6; }

.principles-grid,
.principles-rows { margin-top: 2.2rem; max-width: 72rem; display: grid; gap: 0.8rem; }
.principles-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.principles-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.principles-rows { grid-template-columns: minmax(0, 1fr) !important; }

.principle {
  padding: 1.3rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--card-line-soft);
  border-radius: var(--r-md);
}
.principles-rows .principle {
  display: grid;
  grid-template-columns: 3.4rem minmax(13rem, 0.4fr) minmax(0, 1fr);
  gap: 1.3rem;
  align-items: baseline;
}
.principle__number {
  color: var(--mist-dim);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
}
.principle h3 { margin-top: 0.6rem; font-size: clamp(1.15rem, 1.5vw, 1.5rem); font-weight: 400; line-height: 1.2; }
.principles-rows .principle h3 { margin-top: 0; }
.principle p { margin-top: 0.5rem; color: var(--mist); font-size: 0.99rem; line-height: 1.55; }
.principles-rows .principle p { margin-top: 0; }

/* Evidence register: rounded rows --------------------------------------------- */

.register { margin-top: 2.2rem; max-width: 64rem; display: grid; gap: 0.7rem; }
.register__row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: center;
  padding: 1rem 1.3rem;
  background: var(--card);
  border: 1px solid var(--card-line-soft);
  border-radius: var(--r-md);
}
.register__index { color: var(--mist-dim); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.09em; }
.register__line { color: var(--paper-soft); font-size: clamp(1.02rem, 1.2vw, 1.2rem); line-height: 1.5; }

.register__panel {
  max-width: 64rem;
  margin-top: 1rem;
  padding: 1.5rem 1.7rem;
  background: rgba(30, 34, 30, 0.55);
  border: 1px solid var(--card-line);
  border-radius: var(--r-lg);
}
.register__panel p { color: var(--paper); font-size: clamp(1.08rem, 1.3vw, 1.3rem); line-height: 1.5; }
.register__hint { display: block; margin-top: 1rem; color: var(--mist-dim); }

/* Status list ------------------------------------------------------------------ */

.status-list { margin-top: 2.2rem; max-width: 74rem; display: grid; gap: 0.7rem; }
.status-item {
  display: grid;
  grid-template-columns: minmax(8.5rem, 0.22fr) minmax(0, 1fr);
  gap: 1.3rem;
  padding: 1.3rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--card-line-soft);
  border-radius: var(--r-md);
}
.status-item__chip b {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--card-line);
  border-radius: 8px;
  font-weight: 500;
  color: var(--paper-soft);
}
.status-item--works .status-item__chip b { background: var(--paper); border-color: var(--paper); color: #2b2f29; }
.status-item--open .status-item__chip b { border-style: dashed; color: var(--mist); }
.status-item__body h3 { font-size: clamp(1.1rem, 1.4vw, 1.35rem); font-weight: 400; }
.status-item__body p { max-width: 56rem; margin-top: 0.45rem; color: var(--mist); font-size: 1rem; line-height: 1.55; }

/* The paper sheet: Rundown ------------------------------------------------------ */

.work-section {
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50% + clamp(22px, 4vw, 60px));
  margin-block: clamp(3rem, 6vw, 5rem);
  padding-block: clamp(4.5rem, 9svh, 7.5rem) !important;
  background: linear-gradient(180deg, #ecebe0 0%, #e2e1d4 100%);
  color: #2c2f29;
  border-top: 0 !important;
}
.work-section .press-heading__kicker { color: #55584f; background: rgba(44, 47, 41, 0.05); border-color: rgba(44, 47, 41, 0.3); }
.work-section .press-heading__kicker .kicker-right { color: #7b7e72; }
.work-section .press-heading__description,
.work-section .section-body { color: #4c4f46; }

.rundown-duo {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(15rem, 0.8fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  margin-top: 2.2rem;
}
@media (max-width: 1024px) { .rundown-duo { grid-template-columns: minmax(0, 1fr); } }

.rundown-duo .work-facts { display: grid; gap: 0.6rem; margin-top: 0; }
.work-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem; margin-top: 2rem; }
.work-fact {
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(44, 47, 41, 0.18);
  border-radius: var(--r-md);
}
.work-fact > span { color: #7b7e72; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.09em; text-transform: uppercase; }
.work-fact strong { display: block; margin-top: 0.3rem; font-size: clamp(1.08rem, 1.35vw, 1.3rem); font-weight: 500; letter-spacing: -0.01em; }
.work-fact > p { margin-top: 0.35rem; color: #55584f; font-size: 0.96rem; line-height: 1.5; }

/* Demo card: white on paper */
.demo-card {
  max-width: 44rem;
  margin-top: 0;
  background: #fbfaf5;
  border: 1px solid rgba(44, 47, 41, 0.25);
  border-radius: var(--r-lg);
  box-shadow: 0 18px 50px rgba(44, 47, 41, 0.14);
  overflow: hidden;
}
.demo-card__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.2rem;
  background: rgba(44, 47, 41, 0.05);
  border-bottom: 1px solid rgba(44, 47, 41, 0.15);
  color: #6b6e63;
}
.demo-card__body { padding: 1.4rem 1.4rem 1.5rem; }
.demo-card__item { font-size: clamp(1.3rem, 1.9vw, 1.75rem); font-weight: 500; letter-spacing: -0.015em; }
.demo-card__position { margin-top: 0.8rem; color: #4c4f46; font-size: 1.02rem; line-height: 1.6; }
.demo-card__position.is-contradiction { padding-left: 0.95rem; border-left: 3px solid var(--ember); border-radius: 2px; }
.demo-strip { display: flex; gap: 0.45rem; margin-top: 1.1rem; }
.demo-strip span { width: 10px; height: 10px; border: 1px dashed rgba(44, 47, 41, 0.45); border-radius: 3px; }
.demo-strip span.is-done { background: var(--ember); border: 1px solid var(--ember); }
.demo-card__actions { display: flex; gap: 0.55rem; margin-top: 1.3rem; flex-wrap: wrap; }
.demo-btn {
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(44, 47, 41, 0.45);
  border-radius: var(--r-pill);
  background: transparent;
  color: #2c2f29;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 150ms ease, color 150ms ease;
}
.demo-btn:hover { background: #2c2f29; color: #f2f0e9; }
.demo-card__note { display: block; margin-top: 1.1rem; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.09em; text-transform: uppercase; color: #7b7e72; }
.demo-card__numeral { display: block; font-size: clamp(2.6rem, 5.5vw, 4.5rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.05; margin-top: 0.4rem; color: var(--ember); }

/* Tables / quotes / bounds / code ---------------------------------------------- */

.split-table {
  width: 100%;
  max-width: 64rem;
  margin-top: 2.2rem;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border: 1px solid var(--card-line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.split-table th, .split-table td { padding: 0.9rem 1.3rem; text-align: left; vertical-align: top; }
.split-table th {
  background: rgba(30, 34, 30, 0.35);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.split-table td { color: var(--paper-soft); font-size: 1.02rem; line-height: 1.5; border-top: 1px solid var(--card-line-soft); }

.pull-quote {
  max-width: 58rem;
  margin: 2rem 0 0;
  padding: 1.2rem 1.5rem;
  background: rgba(30, 34, 30, 0.35);
  border-left: 3px solid var(--ember);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
}

.bounds { margin-top: 2rem; max-width: 64rem; display: grid; gap: 0.7rem; }
.bounds__row {
  display: grid;
  grid-template-columns: minmax(8.5rem, 0.22fr) minmax(0, 1fr);
  gap: 1.3rem;
  padding: 1.1rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--card-line-soft);
  border-radius: var(--r-md);
}
.bounds__label { color: var(--mist-dim); font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.09em; text-transform: uppercase; padding-top: 0.25rem; }
.bounds__body { color: var(--paper-soft); font-size: 1rem; line-height: 1.6; }

.code-panel {
  max-width: 64rem;
  margin-top: 2.2rem;
  background: rgba(24, 27, 24, 0.75);
  border: 1px solid var(--card-line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.code-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.2rem;
  border-bottom: 1px solid var(--card-line-soft);
  color: var(--mist-dim);
}
.code-panel pre { margin: 0; padding: 1.2rem 1.3rem; overflow-x: auto; font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.8; color: var(--paper); }
.code-panel .cmt { color: var(--mist-dim); }
.code-panel__caption { padding: 1rem 1.3rem; border-top: 1px solid var(--card-line-soft); color: var(--mist); font-size: 0.99rem; line-height: 1.6; }
.code-panel__caption code { color: var(--ember-glow); }

.compare { margin-top: 2.2rem; max-width: 64rem; display: grid; gap: 0.7rem; }
.compare__row {
  display: grid;
  grid-template-columns: minmax(8.5rem, 0.26fr) minmax(0, 1fr);
  gap: 1.3rem;
  padding: 1.2rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--card-line-soft);
  border-radius: var(--r-md);
}
.compare__label { color: var(--mist-dim); font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 0.25rem; }
.compare__row--seld { border-color: rgba(232, 112, 63, 0.5); background: rgba(232, 112, 63, 0.08); }
.compare__row--seld .compare__label { color: var(--ember-glow); }
.compare__body { color: var(--paper-soft); font-size: 1.03rem; line-height: 1.55; }

/* Actions ----------------------------------------------------------------------- */

.action {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 46px;
  padding: 0.6rem 1.5rem;
  background: var(--paper);
  color: #23261f;
  border: 0;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 150ms ease, background-color 150ms ease;
  margin-top: 2rem;
}
a.action:hover { background: #fff; transform: translateY(-1px); }
.action--disabled {
  background: transparent;
  border: 1px dashed var(--card-line);
  color: var(--mist);
  cursor: not-allowed;
}

.press-note {
  max-width: 36rem;
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--card-line-soft);
  border-radius: var(--r-md);
}
.press-note__label { color: var(--mist-dim); }
.press-note__body { margin-top: 0.45rem; color: var(--paper-soft); font-size: 0.96rem; line-height: 1.55; }

/* Imprint / footer ---------------------------------------------------------------- */

.imprint-list { max-width: 48rem; }

.site-footer {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-block: 2.2rem 2.6rem;
  border-top: 1px solid var(--card-line-soft);
  background: linear-gradient(180deg, rgba(24, 28, 25, 0) 0%, rgba(24, 28, 25, 0.35) 100%);
}
.site-footer__grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2rem; align-items: center; }
.site-footer__mark { width: 34px; height: 34px; border-radius: 10px; background: var(--paper); position: relative; }
.site-footer__mark span { position: absolute; inset: 11px; border-radius: 3px; background: var(--ember); }
.site-footer__text { color: var(--mist); font-size: 0.94rem; line-height: 1.55; }
.site-footer__text a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer__meta { color: var(--mist-dim); text-align: right; }

/* Trace nav (soft) ----------------------------------------------------------------- */

.trace-nav {
  position: fixed;
  right: clamp(14px, 2.6vw, 38px);
  bottom: clamp(14px, 2.6vw, 32px);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 0;
  background: rgba(28, 31, 27, 0.6);
  padding: 0.45rem 0.9rem 0.45rem 0.45rem;
  border-radius: var(--r-pill);
  backdrop-filter: blur(8px);
  color: var(--paper-soft);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
.trace-nav.is-on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.4s ease; }
.trace-nav__ringwrap { position: relative; display: grid; place-items: center; width: 46px; height: 46px; }
.trace-nav__ringwrap svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.trace-nav__track { fill: none; stroke: rgba(242, 240, 233, 0.25); stroke-width: 2; }
.trace-nav__progress { fill: none; stroke: var(--ember-glow); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 176; stroke-dashoffset: 176; }
.trace-nav__ticks line { stroke: rgba(242, 240, 233, 0.3); stroke-width: 1.5; }
.trace-nav__ticks line.is-passed { stroke: var(--paper); }
.trace-nav__index { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; }
.trace-nav__label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.09em; text-transform: uppercase; }
.trace-nav[data-polarity='light'] { background: rgba(242, 240, 233, 0.88); color: #2c2f29; }
.trace-nav[data-polarity='light'] .trace-nav__track { stroke: rgba(44, 47, 41, 0.25); }
.trace-nav[data-polarity='light'] .trace-nav__ticks line { stroke: rgba(44, 47, 41, 0.35); }
.trace-nav[data-polarity='light'] .trace-nav__ticks line.is-passed { stroke: #2c2f29; }
@media (max-width: 720px) { .trace-nav__label { display: none; } }

/* One-way gutter thread (soft) */
.gutter-thread {
  position: fixed;
  z-index: 30;
  top: 0;
  bottom: 0;
  left: clamp(8px, 1.3vw, 22px);
  width: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.gutter-thread.is-on { opacity: 1; }
.gutter-thread svg { width: 100%; height: 100%; }
.gutter-thread__line { stroke: rgba(242, 240, 233, 0.55); stroke-width: 1; }
.gutter-thread__node { fill: none; stroke: rgba(242, 240, 233, 0.6); stroke-width: 1.2; }
.gutter-thread__node.is-live { fill: var(--ember-glow); stroke: var(--ember-glow); }
.gutter-thread__node.is-ended { fill: none; stroke: rgba(242, 240, 233, 0.35); stroke-dasharray: 2 3; opacity: 0.6; }
@media (max-width: 1180px) { .gutter-thread { display: none; } }

/* Reveals -------------------------------------------------------------------------- */

.rv { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

.hero__statement, .hero__aphorism, .hero__para, .hero__card { animation: fog-rise 1s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.hero__aphorism { animation-delay: 120ms; }
.hero__para { animation-delay: 220ms; }
.hero__card { animation-delay: 320ms; }
@keyframes fog-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__statement, .hero__aphorism, .hero__para, .hero__card { animation: none; }
  .ember-glow { animation: none !important; }
  * { transition-duration: 0.01ms !important; }
}

/* Responsive ------------------------------------------------------------------------ */

@media (max-width: 1024px) {
  .principles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .hero { display: flex; flex-direction: column; justify-content: flex-end; min-height: 100svh; padding-bottom: 130px; }
  .hero__aphorism { display: none; }
  .hero__statement { position: static; max-width: 14ch; padding: 130px clamp(22px, 5vw, 84px) 1rem; }
  .hero__para { position: static; max-width: 100%; text-align: left; margin: 0; padding: 0 clamp(22px, 5vw, 84px); }
  .hero__card { position: static; margin: 1.4rem clamp(22px, 5vw, 84px) 0; }
  .hero__datum { display: none; }
  .motion-toggle { bottom: 84px; }
  .pillbar { top: auto; bottom: 14px; max-width: calc(100vw - 20px); overflow-x: auto; }
  .brandmark { top: 16px; }
  .principles-rows .principle { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
  .background-columns { grid-template-columns: minmax(0, 1fr); }
  .principles-grid, .principles-grid--three { grid-template-columns: minmax(0, 1fr); }
  .status-item, .bounds__row, .compare__row { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .site-footer__meta { text-align: left; }
  .split-table { display: block; overflow-x: auto; }
  .rundown-duo { grid-template-columns: minmax(0, 1fr); }
}
