:root {
  --bg: #0a0a0b;
  --bg-soft: #111113;
  --ink: #f4f1ec;
  --ink-muted: #8a8680;
  --ink-dim: #4a4742;
  --line: rgba(244, 241, 236, 0.08);
  --accent: #d43728;
  --max: 1280px;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--bg);
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

canvas#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 2;
}

a {
  color: inherit;
  text-decoration: none;
}

em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

/* ─── Navigation ─────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.5rem 2.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(10, 10, 11, 0.6) 0%, rgba(10, 10, 11, 0) 100%);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.nav-mark {
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  padding-bottom: 2px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  justify-self: center;
  font-weight: 400;
  color: var(--ink-muted);
}

.nav-links a {
  transition: color 0.24s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-locale {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 55, 40, 0.15);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ─── Hero — centered 3D stage with callouts ──────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 6rem 2.5rem 4rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 55% at 50% 55%,
    rgba(10, 10, 11, 0) 0%,
    rgba(10, 10, 11, 0.55) 55%,
    rgba(10, 10, 11, 0.92) 100%
  );
  pointer-events: none;
  z-index: -1;
}

/* ─── 2D brain centrepiece ────────────────────────────── */

.hero-brain {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(68vw, 820px);
  aspect-ratio: 1.35 / 1;
  transform: translate(-50%, -52%);
  pointer-events: none;
  z-index: 0;
  animation: brain-breathe 9s ease-in-out infinite;
}

.hero-brain__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: brightness(1.05) contrast(1.12);
  mix-blend-mode: screen;                 /* black bg drops out, white lines show */
  mask-image: radial-gradient(
    ellipse 56% 62% at 50% 50%,
    #000 50%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 56% 62% at 50% 50%,
    #000 50%,
    transparent 100%
  );
}

.hero-brain__glow {
  position: absolute;
  inset: 12%;
  background: radial-gradient(
    ellipse at 38% 40%,
    rgba(212, 55, 40, 0.18) 0%,
    rgba(212, 55, 40, 0.06) 40%,
    transparent 70%
  );
  filter: blur(24px);
  pointer-events: none;
}

.hero-brain__synapses {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@keyframes brain-breathe {
  0%, 100% { transform: translate(-50%, -52%) scale(1); opacity: 0.88; }
  50%      { transform: translate(-50%, -52%) scale(1.012); opacity: 1; }
}

/* Fade the 2D brain out past the hero */
body:has(#about:target) .hero-brain,
.hero:not(:hover) .hero-brain { /* default keep visible */ }

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.hero-title em {
  color: var(--ink-muted);
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
}

/* ─── Telemetry corners ───────────────────────────────── */

.tele {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  z-index: 3;
}

.tele--tl { top: 6rem; left: 2.5rem; }
.tele--tr { top: 6rem; right: 2.5rem; }
.tele--bl { bottom: 2.5rem; left: 2.5rem; }
.tele--br { bottom: 2.5rem; right: 2.5rem; }

.tele-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 55, 40, 0.2);
  animation: pulse 2.4s ease-in-out infinite;
}

.tele-sep {
  color: var(--ink-dim);
}

.tele-arrow {
  display: inline-block;
  animation: scroll-arrow 2.2s ease-in-out infinite;
  color: var(--accent);
  font-size: 0.875rem;
}

@keyframes scroll-arrow {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(4px); opacity: 1; }
}

/* ─── Annotation callouts (Moffett-style) ─────────────── */

.anno {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 22rem;
  z-index: 3;
}

.anno--left {
  top: 34%;
  left: 2.5rem;
  flex-direction: row;
}

.anno--right {
  top: 46%;
  right: 2.5rem;
  flex-direction: row-reverse;
  text-align: right;
}

.anno-marker {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  margin-top: 0.4rem;
  position: relative;
}

.anno-marker::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.anno-line {
  flex-shrink: 0;
  width: 3rem;
  height: 1px;
  background: linear-gradient(to right, var(--accent), rgba(212, 55, 40, 0.1));
  margin-top: 0.85rem;
}

.anno--right .anno-line {
  background: linear-gradient(to left, var(--accent), rgba(212, 55, 40, 0.1));
}

.anno-body {
  flex: 1;
  min-width: 0;
}

.anno-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.anno-body p {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-muted);
  font-weight: 300;
  letter-spacing: 0.005em;
}

/* Entrance animation for annotations */
.anno {
  opacity: 0;
  animation: annoIn 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.anno--left { animation-delay: 0.5s; }
.anno--right { animation-delay: 0.9s; }

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

/* ─── Sections ───────────────────────────────────────── */

.section {
  position: relative;
  padding: 10rem 2.5rem;
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.section--dark {
  background: var(--bg-soft);
  max-width: 100%;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.section--dark > .section-head,
.section--dark > .opp-list {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  margin-bottom: 6rem;
  max-width: 52rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-title em {
  color: var(--ink-muted);
}

.section-lede {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink-muted);
  margin-top: 2rem;
  max-width: 36rem;
  font-weight: 300;
}

/* ─── About ──────────────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 6rem;
  align-items: start;
}

.about-prose {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  font-weight: 300;
}

.about-prose p + p {
  margin-top: 1.5rem;
}

.about-prose .lead {
  font-size: 1.25rem;
  color: var(--ink);
  line-height: 1.55;
}

.about-prose .pull-quote {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.2;
  color: var(--ink);
  padding: 1.5rem 0 1.5rem 2rem;
  border-left: 2px solid var(--accent);
  margin: 2.5rem 0;
}

.about-prose .signature {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--ink-muted);
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.about-meta {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 0.5rem;
  position: sticky;
  top: 6rem;
}

.meta-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.meta-block:last-child {
  border-bottom: none;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
}

.meta-value {
  font-size: 1.0625rem;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.4;
}

.meta-sub {
  color: var(--ink-muted);
  font-size: 0.9375rem;
  font-weight: 300;
}

/* ─── Opportunities ──────────────────────────────────── */

.opp-list {
  list-style: none;
  counter-reset: none;
}

.opp {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 4rem;
  padding: 3.5rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
  transition: background 0.4s ease;
}

.opp:last-child {
  border-bottom: 1px solid var(--line);
}

.opp:hover {
  background: rgba(244, 241, 236, 0.015);
}

.opp-num {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: sticky;
  top: 6rem;
}

.opp-num .roman {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.opp-num .pct {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
}

.opp-body h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.opp-body p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-muted);
  font-weight: 300;
  max-width: 42rem;
}

/* ─── System (workflow) section ──────────────────────── */

.section--system {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 10rem;
  background: transparent;         /* let the 3D canvas render through */
  max-width: 100%;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.section--system > .section-head,
.section--system > .system-legend,
.section--system > .system-stage {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.system-stage {
  /* Invisible spacer — the 3D workflow renders in the canvas behind this */
  height: 70vh;
  min-height: 30rem;
  position: relative;
  margin: 2rem auto 3rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.system-hint {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.system-stage.is-active .system-hint {
  opacity: 1;
}

.hint-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: hint-breathe 1.8s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(212, 55, 40, 0.6);
}

@keyframes hint-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 55, 40, 0.6); }
  50%      { box-shadow: 0 0 0 10px rgba(212, 55, 40, 0); }
}

/* Node panel — appears when a node is clicked */
.node-panel {
  position: fixed;
  top: 50%;
  right: 2.5rem;
  transform: translateY(-50%);
  width: 22rem;
  max-width: calc(100vw - 3rem);
  background: rgba(14, 14, 16, 0.94);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  padding: 2rem 2rem 2rem 2.25rem;
  z-index: 20;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transform: translate(20px, -50%);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.node-panel[hidden] {
  display: none;
}

.node-panel.is-open {
  opacity: 1;
  transform: translate(0, -50%);
}

.node-panel-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--ink-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  font-family: var(--font-sans);
  transition: color 0.2s ease;
}

.node-panel-close:hover {
  color: var(--ink);
}

.node-panel-key {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.node-panel-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.node-panel-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-muted);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.node-panel-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
}

.node-panel-meta dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  align-self: center;
}

.node-panel-meta dd {
  color: var(--ink);
  font-weight: 400;
  line-height: 1.4;
}

/* Hover tooltip — follows cursor, appears above canvas */
.node-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  width: 17rem;
  padding: 1rem 1.15rem 0.85rem;
  background: rgba(14, 14, 17, 0.96);
  border: 1px solid rgba(212, 55, 40, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  pointer-events: none;
  opacity: 0;
  transform: translate(0, 0);
  transition: opacity 0.18s ease;
  z-index: 15;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  font-family: var(--font-sans);
}

.node-tooltip.is-visible {
  opacity: 1;
}

.tt-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--accent);
}
.tt-corner--tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.tt-corner--tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.tt-corner--bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.tt-corner--br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.tt-key {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
}

.tt-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.tt-desc {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-muted);
  font-weight: 300;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tt-hint {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin-top: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.system-legend {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
  counter-reset: none;
}

.system-legend li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.25rem 1rem 0.25rem 1rem;
  border-right: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.24s ease, transform 0.24s ease;
}

.system-legend li:hover {
  background: rgba(244, 241, 236, 0.025);
  transform: translateY(-2px);
}

.system-legend li.is-active {
  background: rgba(212, 55, 40, 0.06);
  border-left: 2px solid var(--accent);
  padding-left: calc(1rem - 2px);
}

.system-legend li:last-child {
  border-right: none;
}

.legend-key {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.legend-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--ink);
  line-height: 1.2;
}

.legend-desc {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-muted);
  font-weight: 300;
}

/* ─── Manifesto ──────────────────────────────────────── */

.section--manifesto {
  padding-top: 10rem;
  padding-bottom: 12rem;
}

.manifesto {
  max-width: 52rem;
}

.manifesto .section-label {
  margin-bottom: 4rem;
}

.manifesto-line {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  line-height: 1.35;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.manifesto-line + .manifesto-line {
  margin-top: 0.75rem;
}

.manifesto-line em {
  color: var(--accent);
}

/* ─── Footer ─────────────────────────────────────────── */

.footer {
  position: relative;
  z-index: 2;
  background: var(--bg);
  padding: 6rem 2.5rem 3rem;
  border-top: 1px solid var(--line);
  max-width: var(--max);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  font-weight: 300;
}

.footer-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  margin-bottom: 0.5rem;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
}

/* ─── Responsive ─────────────────────────────────────── */

@media (max-width: 900px) {
  .nav {
    padding: 1rem 1.25rem;
    grid-template-columns: 1fr auto;
  }
  .nav-locale { display: none; }
  .nav-links { gap: 1.25rem; font-size: 0.75rem; }

  .hero { padding: 5rem 1.25rem 6rem; }
  .hero-inner { padding-bottom: 2rem; }
  .hero::before {
    background: radial-gradient(
      ellipse 80% 50% at 50% 55%,
      rgba(10, 10, 11, 0) 0%,
      rgba(10, 10, 11, 0.6) 50%,
      rgba(10, 10, 11, 0.95) 100%
    );
  }

  .tele--tl { top: 4.5rem; left: 1.25rem; font-size: 0.625rem; }
  .tele--tr { top: 4.5rem; right: 1.25rem; font-size: 0.625rem; }
  .tele--bl, .tele--br { display: none; }

  /* Annotations collapse into small inline pills on mobile */
  .anno {
    position: static;
    width: auto;
    max-width: 100%;
    flex-direction: row !important;
    text-align: left !important;
    margin: 0 auto 1.25rem;
    padding: 0 0.5rem;
  }
  .anno-line { display: none; }
  .anno-body p { font-size: 0.75rem; }

  .system-legend {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .system-legend li {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 1.25rem;
  }
  .system-legend li:last-child { border-bottom: none; }
  .system-stage { height: 40vh; min-height: 16rem; }

  .section { padding: 6rem 1.5rem; }
  .section-head { margin-bottom: 4rem; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-meta {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
  }
  .meta-block { padding-bottom: 1rem; }

  .opp {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2.5rem 0;
  }
  .opp-num {
    position: static;
    flex-direction: row;
    align-items: baseline;
    gap: 1rem;
  }
  .opp-num .roman { font-size: 2.25rem; }

  .section--manifesto { padding: 6rem 1.5rem 7rem; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .about-meta { grid-template-columns: 1fr; }
}

/* ─── Reveal animations ──────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Selection ──────────────────────────────────────── */

::selection {
  background: var(--accent);
  color: var(--ink);
}
