/* Humanitas — Living Phylogeny Field
   Custom theme: evolution · atoms · chromosomes · gravity · bioluminescence */

:root {
  --bg: #03050a;
  --bg-elevated: #070b14;
  --bg-panel: #0a1220;
  --bg-soft: #0f1a2a;
  --fg: #e8f4f2;
  --fg-muted: #8aa8a4;
  --fg-subtle: #5a726e;
  --border: rgba(64, 224, 208, 0.1);
  --border-strong: rgba(64, 224, 208, 0.22);
  --accent: #2dd4bf;
  --accent-soft: #5eead4;
  --accent-glow: rgba(45, 212, 191, 0.28);
  --energy: #ffb84d;
  --mind: #a78bfa;
  --stands: #34d399;
  --partial: #fbbf24;
  --destroyed: #f87171;
  --idea: #818cf8;
  --transformed: #c084fc;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --header-h: 58px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

/* —— Phylogeny field canvas —— */
#phylo-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.field-veil {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(45, 212, 191, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 80%, rgba(167, 139, 250, 0.07), transparent 50%),
    radial-gradient(ellipse 40% 35% at 0% 60%, rgba(255, 184, 77, 0.04), transparent 45%);
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(circle at 30% 30%, rgba(94, 234, 212, 0.35), transparent 55%),
    var(--bg-panel);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--accent-soft);
  box-shadow: 0 0 20px var(--accent-glow);
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 184, 77, 0.15));
  animation: brandPulse 4s ease-in-out infinite;
}
@keyframes brandPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.brand-sub {
  font-size: 9px;
  color: var(--fg-subtle);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav-btn {
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.nav-btn:hover {
  color: var(--fg);
  background: var(--bg-soft);
}
.nav-btn-accent {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  color: #03120f;
  box-shadow: 0 0 24px var(--accent-glow);
}
.nav-btn-accent:hover {
  background: var(--fg);
  color: #03120f;
}
.progress-bar {
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--energy), var(--mind));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s linear;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  color: #03120f;
  box-shadow: 0 0 28px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--fg);
  box-shadow: 0 0 36px rgba(232, 244, 242, 0.25);
}
.btn-ghost {
  border: 1px solid var(--border-strong);
  background: color-mix(in oklab, var(--bg-elevated) 80%, transparent);
  color: var(--fg);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--bg-soft);
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }

/* —— Hero —— */
.hero {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 20px 48px;
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    padding-top: 88px;
    padding-bottom: 72px;
  }
}
.eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.hero-title em {
  font-style: italic;
  background: linear-gradient(120deg, var(--accent-soft), var(--energy) 50%, var(--mind));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  margin: 18px 0 0;
  max-width: 34rem;
  color: var(--fg-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-stats {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.stat-card {
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg-elevated) 75%, transparent);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.stat-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 28px var(--accent-glow);
  transform: translateY(-2px);
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--accent-soft);
}
.stat-label {
  margin-top: 2px;
  font-size: 11px;
  color: var(--fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Hero living cell — custom CSS organism */
.hero-organism {
  position: relative;
  height: 320px;
  display: grid;
  place-items: center;
  pointer-events: none;
}
@media (max-width: 899px) {
  .hero-organism { height: 200px; margin-top: 8px; }
}
.org-membrane {
  position: absolute;
  width: min(280px, 70vw);
  height: min(280px, 70vw);
  border-radius: 50%;
  border: 1px solid rgba(45, 212, 191, 0.25);
  box-shadow:
    0 0 60px rgba(45, 212, 191, 0.15),
    inset 0 0 40px rgba(167, 139, 250, 0.08);
  animation: membrane 8s ease-in-out infinite;
}
.org-membrane.m2 {
  width: min(340px, 82vw);
  height: min(340px, 82vw);
  border-style: dashed;
  opacity: 0.5;
  animation-direction: reverse;
  animation-duration: 14s;
}
@keyframes membrane {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.04) rotate(4deg); }
}
.org-nucleus {
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(94, 234, 212, 0.9), rgba(45, 212, 191, 0.4) 40%, transparent 70%),
    radial-gradient(circle at 70% 70%, rgba(167, 139, 250, 0.5), transparent 60%);
  box-shadow: 0 0 50px rgba(45, 212, 191, 0.4);
  animation: nucleus 5s ease-in-out infinite;
}
@keyframes nucleus {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.08); filter: brightness(1.15); }
}
.org-orbit {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(255, 184, 77, 0.2);
  animation: spin 22s linear infinite;
}
.org-orbit.o2 {
  width: 210px;
  height: 140px;
  animation-duration: 16s;
  animation-direction: reverse;
  border-color: rgba(167, 139, 250, 0.25);
}
.org-electron {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--energy);
  box-shadow: 0 0 12px var(--energy);
  top: -4px;
  left: 50%;
  margin-left: -4px;
}
.org-electron.e2 {
  background: var(--mind);
  box-shadow: 0 0 12px var(--mind);
  top: auto;
  bottom: -4px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.org-label {
  position: absolute;
  bottom: 8%;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  text-align: center;
  max-width: 14rem;
  line-height: 1.4;
}

/* —— Controls —— */
.controls {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 8px;
}
.controls-inner {
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg-elevated) 88%, transparent);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: 0 0 40px rgba(45, 212, 191, 0.04);
}
.search-wrap { position: relative; }
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg-subtle);
  pointer-events: none;
}
#search {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
#search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.chips { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
  transition: all 0.2s var(--ease);
}
.chip:hover { border-color: var(--border-strong); color: var(--fg); }
.chip.active {
  border-color: color-mix(in oklab, var(--accent) 50%, transparent);
  background: color-mix(in oklab, var(--accent) 15%, transparent);
  color: var(--accent-soft);
  box-shadow: 0 0 16px var(--accent-glow);
}
.result-meta { margin: 12px 0 0; font-size: 12px; color: var(--fg-subtle); }

/* —— Timeline as chromosome strand —— */
.timeline-section {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}
.timeline-spine {
  position: absolute;
  left: 36px;
  top: 40px;
  bottom: 80px;
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(45, 212, 191, 0.5) 8%,
    rgba(167, 139, 250, 0.4) 50%,
    rgba(255, 184, 77, 0.35) 92%,
    transparent
  );
  box-shadow: 0 0 12px var(--accent-glow);
}
.timeline-spine::before,
.timeline-spine::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 12px;
  height: 1px;
  background: rgba(45, 212, 191, 0.35);
  transform: translateX(-50%);
}
.timeline-spine::before { top: 12%; }
.timeline-spine::after { bottom: 18%; }
@media (min-width: 900px) {
  .timeline-spine { left: 50%; transform: translateX(-0.5px); }
}
.timeline { list-style: none; margin: 0; padding: 0; }
.era-band {
  position: relative;
  z-index: 2;
  margin: 28px 0 20px 52px;
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 90%, transparent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  backdrop-filter: blur(6px);
}
@media (min-width: 900px) {
  .era-band { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }
}
.tl-item {
  position: relative;
  padding-bottom: 28px;
  padding-left: 52px;
  opacity: 0;
  transform: translateY(18px);
  animation: tlRise 0.7s var(--ease) forwards;
}
.tl-item:nth-child(odd) { animation-delay: 0.05s; }
.tl-item:nth-child(even) { animation-delay: 0.12s; }
@keyframes tlRise {
  to { opacity: 1; transform: none; }
}
@media (min-width: 900px) {
  .tl-item {
    padding-left: 0;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
  }
  .timeline-spine { left: 24px; transform: none; }
}
.tl-dot {
  position: absolute;
  left: 36px;
  top: 28px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--accent-soft);
  background: var(--bg);
  box-shadow:
    0 0 0 4px var(--bg),
    0 0 20px var(--accent-glow),
    0 0 0 1px rgba(255, 184, 77, 0.3);
  transform: translateX(-50%);
  z-index: 2;
  animation: atomPulse 3s ease-in-out infinite;
}
.tl-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(45, 212, 191, 0.2);
  animation: electronRing 6s linear infinite;
}
@keyframes atomPulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--bg), 0 0 16px var(--accent-glow); }
  50% { box-shadow: 0 0 0 4px var(--bg), 0 0 28px rgba(45, 212, 191, 0.55); }
}
@keyframes electronRing {
  to { transform: rotate(360deg); }
}
@media (min-width: 900px) {
  .tl-dot { left: 24px; top: 40%; }
  .timeline-section { padding-left: 40px; }
  .era-band { margin-left: 40px; }
}

/* Person card: portrait LEFT, details RIGHT */
.tl-person {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg-elevated) 90%, transparent);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.tl-person:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5), 0 0 40px var(--accent-glow);
}
@media (min-width: 700px) {
  .tl-person {
    grid-template-columns: minmax(200px, 38%) 1fr;
    min-height: 240px;
  }
}
.tl-portrait {
  position: relative;
  min-height: 220px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(45, 212, 191, 0.12), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 700px) {
  .tl-portrait {
    min-height: 100%;
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
}
.tl-portrait img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: saturate(0.95) contrast(1.06);
}
@media (min-width: 700px) {
  .tl-portrait img { min-height: 260px; position: absolute; inset: 0; }
}
.tl-portrait-fallback {
  width: 100%;
  min-height: 220px;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 40% 35%, rgba(94, 234, 212, 0.25), transparent 55%),
    linear-gradient(160deg, #0a1520, #0c0a18);
}
.tl-portrait-fallback span {
  font-family: var(--font-display);
  font-size: 4.5rem;
  color: var(--accent-soft);
  opacity: 0.85;
  text-shadow: 0 0 40px var(--accent-glow);
}
.tl-details {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.tl-year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.tl-name {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.tl-epithet { margin: 6px 0 0; font-size: 14px; color: var(--fg-muted); }
.tl-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-soft);
}
.badge-status {
  border-color: color-mix(in oklab, var(--stands) 35%, transparent);
  background: color-mix(in oklab, var(--stands) 12%, transparent);
  color: var(--stands);
}
.badge-status.partial {
  border-color: color-mix(in oklab, var(--partial) 35%, transparent);
  background: color-mix(in oklab, var(--partial) 12%, transparent);
  color: var(--partial);
}
.badge-status.destroyed {
  border-color: color-mix(in oklab, var(--destroyed) 35%, transparent);
  background: color-mix(in oklab, var(--destroyed) 12%, transparent);
  color: var(--destroyed);
}
.badge-status.idea,
.badge-status.transformed {
  border-color: color-mix(in oklab, var(--idea) 35%, transparent);
  background: color-mix(in oklab, var(--idea) 12%, transparent);
  color: var(--idea);
}
.tl-summary {
  margin: 14px 0 0;
  font-size: 14.5px;
  color: var(--fg-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tl-foot {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  color: var(--fg-subtle);
}
.tl-cta {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-soft);
}

/* Centered modal (was right drawer) */
.drawer-photo {
  margin: 0 0 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, #0a1520, #0c0a18);
}
.drawer-photo img {
  width: 100%;
  height: auto;
  max-height: min(52vh, 480px);
  object-fit: contain;
  object-position: center center;
  display: block;
  margin: 0 auto;
}
.drawer-photo figcaption,
.figure-photo figcaption {
  padding: 8px 12px 10px;
  font-size: 11px;
  color: var(--fg-subtle);
  line-height: 1.4;
}
.img-credit { opacity: 0.85; }
.figure-photo.img-failed,
.drawer-photo.img-failed {
  min-height: 120px;
  background: linear-gradient(160deg, #0a1520, #0c0a18);
}

/* —— Thesis —— */
.thesis-section {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(45, 212, 191, 0.06), transparent 60%),
    color-mix(in oklab, var(--bg-elevated) 55%, transparent);
}
.thesis-inner { max-width: 720px; margin: 0 auto; padding: 72px 20px 96px; }
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.section-lead { margin: 16px 0 0; color: var(--fg-muted); line-height: 1.65; }
.thesis-stats { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.thesis-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.thesis-status {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  padding: 16px;
}
.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--fg-subtle);
  padding: 4px 0;
}
.status-line.done { color: var(--fg); }
.status-line.active { color: var(--fg-muted); }
.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}
.status-line.done .status-dot {
  background: var(--stands);
  border-color: var(--stands);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}
.status-line.active .status-dot {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  animation: pulse 1s ease infinite;
}
@keyframes pulse { 50% { opacity: 0.5; } }
.thesis-doc { margin-top: 40px; animation: fadeUp 0.5s var(--ease); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.thesis-doc h3 {
  margin: 36px 0 16px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.thesis-doc h4 { margin: 0 0 8px; font-size: 1rem; font-weight: 600; }
.thesis-preamble { color: var(--fg-muted); line-height: 1.7; }
.cluster {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 12px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cluster:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 24px var(--accent-glow);
}
.cluster-head { display: flex; gap: 10px; align-items: baseline; }
.cluster-num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.cluster p { margin: 10px 0 0; font-size: 14px; color: var(--fg-muted); line-height: 1.6; }
.cluster ul { margin: 12px 0 0; padding: 0; list-style: none; }
.cluster li { font-size: 13px; padding: 3px 0; color: var(--fg); }
.cluster li span { color: var(--fg-subtle); }
.cluster-today {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.55;
}
.pillar, .practice {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 10px;
}
.pillar ul { margin: 8px 0 0; padding-left: 18px; color: var(--fg-muted); font-size: 14px; }
.pillar .rooted { margin-top: 8px; font-size: 12px; color: var(--fg-subtle); }
.practice p { margin: 6px 0 0; font-size: 14px; color: var(--fg-muted); }
.future p { color: var(--fg-muted); line-height: 1.65; margin: 0 0 12px; }
.closing-box {
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(45, 212, 191, 0.1), transparent 55%),
    var(--bg-panel);
}
.closing-box p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.closing-meta {
  margin-top: 14px !important;
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  color: var(--fg-subtle) !important;
}

/* —— Footer —— */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 28px 20px;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-subtle);
}
.footer-credit {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
}
.footer-credit a {
  color: var(--accent-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(94, 234, 212, 0.35);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-credit a:hover {
  color: var(--fg);
  border-bottom-color: var(--accent-soft);
}
@media (min-width: 700px) {
  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 20px;
  }
}

/* —— Centered detail modal —— */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
  z-index: 80;
  animation: fadeIn 0.25s var(--ease);
}
.drawer {
  position: fixed;
  z-index: 90;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100vw - 1.5rem));
  max-height: min(88dvh, 900px);
  background: color-mix(in oklab, var(--bg-elevated) 97%, #0a1a1a);
  border: 1px solid var(--border-strong);
  border-radius: 1.35rem;
  box-shadow:
    var(--shadow),
    0 0 80px rgba(45, 212, 191, 0.1);
  display: flex;
  flex-direction: column;
  animation: modalIn 0.35s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: translate(-50%, -46%) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.drawer-chrome {
  flex-shrink: 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 18px;
  border-bottom: 1px solid var(--border);
}
.drawer-chrome::before {
  content: "Full history";
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 24px;
  color: var(--fg-muted);
  line-height: 1;
}
.drawer-close:hover { background: var(--bg-soft); color: var(--fg); }
.drawer-body {
  overflow-y: auto;
  padding: 20px 22px 40px;
  -webkit-overflow-scrolling: touch;
}
.drawer-body h1 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.drawer-body .epithet { margin: 6px 0 0; color: var(--fg-muted); }
.drawer-dl {
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 13px;
}
.drawer-dl dt {
  color: var(--fg-subtle);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.drawer-dl dd { margin: 2px 0 0; }
.drawer-section { margin-top: 28px; }
.accomplishments-list {
  margin: 0;
  padding: 0 0 0 1.25rem;
  color: var(--fg);
  line-height: 1.55;
}
.accomplishments-list li {
  margin: 0 0 10px;
  padding-left: 4px;
  color: var(--fg-muted);
}
.accomplishments-list li::marker {
  color: var(--accent-soft);
  font-weight: 600;
}
.drawer-section h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}
.drawer-section p {
  margin: 0 0 12px;
  color: var(--fg-muted);
  font-size: 14.5px;
  line-height: 1.65;
}
.quote-block {
  border-left: 2px solid var(--accent);
  background: var(--bg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 14px 16px;
  margin: 10px 0;
  box-shadow: -4px 0 20px var(--accent-glow);
}
.quote-block p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--fg);
  line-height: 1.35;
}
.quote-block footer { margin-top: 8px; font-size: 12px; color: var(--fg-subtle); }
.creation-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
  background: var(--bg);
}
.creation-card h3 { margin: 0; font-size: 14px; font-weight: 600; }
.creation-card .type { font-size: 11px; color: var(--fg-subtle); }
.creation-card p { margin: 8px 0 0; font-size: 13px; }
.related-list { display: grid; gap: 8px; }
.related-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg);
  text-align: left;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.related-btn:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 16px var(--accent-glow);
}
.related-btn strong { display: block; font-size: 14px; }
.related-btn span { font-size: 12px; color: var(--fg-subtle); }

/* —— Explore: gravitational constellation —— */
.explore-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.explore-header {
  height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
}
.explore-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
}
.explore-canvas-wrap { flex: 1; position: relative; overflow: hidden; }
#explore-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}
#explore-canvas:active { cursor: grabbing; }
.explore-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--fg-muted);
  pointer-events: none;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

[hidden] { display: none !important; }

/* —— Feature suite —— */
.nav-scroll {
  overflow-x: auto;
  max-width: min(70vw, 720px);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 4px;
}
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-scroll .nav-btn { flex-shrink: 0; white-space: nowrap; font-size: 12px; padding: 6px 10px; }

.feature-section {
  position: relative;
  z-index: 1;
  padding: 56px 20px;
  border-top: 1px solid var(--border);
}
.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.section-inner.narrow { max-width: 720px; }
.section-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
}
.section-lead {
  margin: 0 0 24px;
  color: var(--fg-muted);
  max-width: 58ch;
  line-height: 1.6;
}
.mono-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-subtle);
}
.btn-sm { font-size: 13px; padding: 8px 14px; }
.linkish {
  background: none;
  border: none;
  color: var(--accent-soft);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-align: left;
}
.linkish:hover { color: var(--fg); text-decoration: underline; }

.daily-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, rgba(45, 212, 191, 0.12), transparent 55%),
    var(--bg-panel);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
  text-align: left;
  width: 100%;
}
.daily-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.daily-media {
  width: 120px;
  height: 140px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-soft);
}
.daily-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.daily-fallback {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent-soft);
  background: var(--bg-elevated);
}
.daily-body h3 {
  margin: 4px 0 4px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.65rem;
}
.daily-epithet { margin: 0 0 8px; color: var(--fg-muted); font-style: italic; }
.daily-summary { margin: 0 0 10px; color: var(--fg-muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.daily-cta { font-size: 13px; color: var(--accent-soft); font-weight: 500; }
@media (max-width: 560px) {
  .daily-card { grid-template-columns: 1fr; }
  .daily-media { width: 100%; height: 180px; }
}

.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.tour-card {
  text-align: left;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.tour-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 24px var(--accent-glow);
}
.tour-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
}
.tour-card p { margin: 0 0 12px; font-size: 14px; color: var(--fg-muted); line-height: 1.5; }
.tour-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-soft);
}

.tour-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 45;
  background: color-mix(in oklab, var(--bg-elevated) 92%, transparent);
  border-bottom: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
}
.tour-bar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.tour-bar-inner strong { display: block; font-size: 14px; }
.tour-bar-inner span { font-size: 12px; color: var(--fg-subtle); }
.tour-bar-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.feature-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  font-size: 13px;
  color: var(--accent-soft);
  pointer-events: none;
}

.chip-special {
  border-color: rgba(52, 211, 153, 0.35);
  color: var(--stands);
}
.chip-special.active {
  background: rgba(52, 211, 153, 0.15);
  border-color: var(--stands);
}

.standing-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.standing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.standing-chip {
  text-align: left;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color 0.2s var(--ease);
}
.standing-chip:hover { border-color: var(--stands); }
.standing-chip strong { display: block; font-size: 13px; margin-bottom: 4px; }
.standing-chip span { font-size: 11px; color: var(--fg-subtle); line-height: 1.4; }

.compare-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 600px) {
  .compare-controls { grid-template-columns: 1fr; }
}
.compare-controls label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.compare-controls select {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--fg);
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 720px) {
  .compare-grid { grid-template-columns: 1fr; }
}
.compare-side {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-panel);
}
.compare-side h4 {
  margin: 16px 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-subtle);
}
.compare-side ul { margin: 0; padding-left: 18px; color: var(--fg-muted); font-size: 14px; }
.compare-side p { color: var(--fg-muted); font-size: 14px; line-height: 1.55; }
.compare-head {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
}
.compare-head img {
  width: 72px;
  height: 88px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.compare-head h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; }
.compare-delta { margin-top: 16px; }

.map-wrap {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-elevated);
}
#map-canvas, #phylo-canvas {
  width: 100%;
  display: block;
  touch-action: none;
}
#phylo-canvas { height: 100%; cursor: grab; }
#phylo-canvas:active { cursor: grabbing; }

.pledge-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  margin-bottom: 10px;
}
.pledge-item p { margin: 4px 0 0; color: var(--fg-muted); font-size: 14px; }
.pledge-box .pledge-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.weight-details {
  margin: 20px 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}
.weight-details summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--accent-soft);
}
.weight-picker {
  max-height: 280px;
  overflow: auto;
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.weight-row {
  display: grid;
  grid-template-columns: 1fr 120px 24px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--fg-muted);
}
.weight-row input[type="range"] { width: 100%; accent-color: var(--accent); }
.weight-row em { font-style: normal; font-family: var(--font-mono); font-size: 12px; color: var(--accent-soft); text-align: right; }

.classroom-sheet {
  padding: 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-strong);
  background: var(--bg-panel);
}
.classroom-sheet h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
}
.classroom-sheet ol { color: var(--fg-muted); line-height: 1.7; }
.classroom-sheet .btn { margin-top: 12px; display: inline-flex; }

/* —— AmeriKing studio card (compact) —— */
.ak-section {
  padding: 40px 20px 48px;
}
.ak-section ameriking-made,
.site-footer ameriking-made {
  display: block;
  width: 100%;
}
.site-footer .footer-inner:has(ameriking-made) {
  flex-direction: column;
  align-items: stretch;
}
.ak-realm {
  max-width: 420px;
  margin: 0 auto;
}
.ak-card {
  position: relative;
  display: block;
  text-align: center;
  padding: 28px 24px 26px;
  border-radius: 1.25rem;
  border: 1px solid rgba(192, 132, 252, 0.28);
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(168, 85, 247, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(20, 11, 32, 0.95), rgba(5, 3, 8, 0.98));
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.08),
    0 16px 40px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.25s var(--ease), transform 0.2s var(--ease);
}
.ak-card:hover {
  border-color: rgba(192, 132, 252, 0.5);
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.18),
    0 0 36px rgba(168, 85, 247, 0.2),
    0 20px 48px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}
.ak-card-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 20%, rgba(232, 121, 249, 0.1), transparent 50%);
  opacity: 0.7;
}
.ak-crown {
  position: relative;
  width: 88px;
  height: 66px;
  margin: 0 auto 12px;
  filter: drop-shadow(0 0 14px rgba(168, 85, 247, 0.35));
  transition: filter 0.25s var(--ease), transform 0.25s var(--ease);
}
.ak-card:hover .ak-crown {
  filter: drop-shadow(0 0 20px rgba(192, 132, 252, 0.55));
  transform: scale(1.04);
}
.ak-crown-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.ak-aura {
  transform-origin: 48px 38px;
  animation: akAura 5s ease-in-out infinite;
}
.ak-mark {
  transform-origin: 48px 38px;
  animation: akDrift 6s ease-in-out infinite;
}
.ak-wire {
  stroke-dasharray: 220;
  animation: akDraw 7s ease-in-out infinite;
}
.ak-ghost {
  animation: akBreath 5s ease-in-out infinite;
}
.ak-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: akNode 2.4s ease-in-out infinite;
}
.ak-node.n1 { animation-delay: 0s; }
.ak-node.n2 { animation-delay: 0.25s; }
.ak-node.n3 { animation-delay: 0.5s; }
.ak-node.n4 { animation-delay: 0.15s; }
.ak-node.n5 { animation-delay: 0.4s; }
.ak-base {
  opacity: 0.85;
  animation: akBase 5s ease-in-out infinite;
}
.ak-base-soft { opacity: 0.45; }
@keyframes akAura {
  0%, 100% { opacity: 0.5; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes akDrift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.5px); }
}
@keyframes akDraw {
  0% { stroke-dashoffset: 220; opacity: 0.55; }
  28% { stroke-dashoffset: 0; opacity: 1; }
  72% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -28; opacity: 0.75; }
}
@keyframes akBreath {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}
@keyframes akNode {
  0%, 100% { opacity: 0.55; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}
@keyframes akBase {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.ak-eyebrow {
  position: relative;
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c084fc;
}
.ak-heading {
  position: relative;
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: #ede8f7;
}
.ak-copy {
  position: relative;
  margin: 0 auto 14px;
  max-width: 32ch;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(237, 232, 247, 0.62);
}
.ak-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #c084fc;
  transition: color 0.15s, gap 0.15s;
}
.ak-card:hover .ak-link {
  color: #e9d5ff;
  gap: 10px;
}
@media (prefers-reduced-motion: reduce) {
  .ak-aura, .ak-mark, .ak-wire, .ak-ghost, .ak-node, .ak-base {
    animation: none !important;
  }
  .ak-wire { stroke-dasharray: none; stroke-dashoffset: 0; opacity: 1; }
  .ak-card:hover { transform: none; }
}

.footer-note a {
  color: var(--accent-soft);
  border-bottom: 1px solid rgba(94, 234, 212, 0.3);
}

/* Print thesis */
@media print {
  #phylo-field, .field-veil, .site-header, .tour-bar, .feature-toast,
  .hero, .controls, .timeline-section, .feature-section,
  .drawer, .drawer-backdrop, .explore-overlay, .site-footer,
  .thesis-actions, .weight-details, .hero-organism {
    display: none !important;
  }
  body, body.print-thesis {
    background: #fff !important;
    color: #111 !important;
  }
  .thesis-section, .thesis-inner, .thesis-doc {
    display: block !important;
    position: static !important;
    max-width: none !important;
    padding: 0 !important;
    border: none !important;
    background: #fff !important;
    color: #111 !important;
  }
  .thesis-doc { visibility: visible !important; }
  .cluster, .pillar, .practice, .closing-box {
    break-inside: avoid;
    border-color: #ccc !important;
    background: #fff !important;
    color: #111 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .org-membrane, .org-orbit, .org-nucleus, .brand-mark::after,
  .tl-dot, .tl-dot::after, .status-line.active .status-dot,
  .tl-item { animation: none !important; opacity: 1; transform: none; }
  .tl-person:hover { transform: none; }
  .drawer { animation: none; }
}
