:root {
  --bg: #f4efe6;
  --bg-strong: #efe7da;
  --surface: rgba(255, 252, 247, 0.86);
  --surface-strong: #fffdf8;
  --surface-accent: #f7f1e7;
  --text: #1c2833;
  --muted: #5f6d75;
  --line: rgba(28, 40, 51, 0.12);
  --line-strong: rgba(28, 40, 51, 0.18);
  --teal: #0f4c5c;
  --teal-soft: #d8ebee;
  --copper: #b86a4f;
  --gold: #b68a38;
  --shadow: 0 22px 48px rgba(27, 37, 44, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --content-width: min(1200px, calc(100vw - 32px));
  --font-body: "Instrument Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --page-top-left: rgba(15, 76, 92, 0.14);
  --page-top-right: rgba(184, 106, 79, 0.12);
  --page-end: #efe7db;
  --header-bg: rgba(255, 250, 244, 0.72);
  --header-border: rgba(255, 255, 255, 0.55);
  --hero-a: rgba(15, 76, 92, 0.18);
  --hero-b: rgba(184, 106, 79, 0.12);
  --hero-c1: rgba(255, 252, 247, 0.97);
  --hero-c2: rgba(243, 235, 222, 0.99);
  --hero-panel-bg: rgba(255, 250, 244, 0.62);
  --hero-panel-border: rgba(15, 76, 92, 0.1);
  --theme-vision: #0f4c5c;
  --theme-motion: #80512f;
  --theme-foundation: #5b4a8d;
  --theme-systems: #3f6c48;
  --theme-icon: "✦";
  --theme-pattern-opacity: 0.25;
}

html[data-theme="atlas"] {
  --bg: #0e1722;
  --bg-strong: #131f2d;
  --surface: rgba(15, 24, 34, 0.82);
  --surface-strong: rgba(20, 31, 43, 0.96);
  --surface-accent: rgba(27, 40, 55, 0.86);
  --text: #eaf0f5;
  --muted: #9fb0bd;
  --line: rgba(190, 210, 225, 0.12);
  --line-strong: rgba(190, 210, 225, 0.18);
  --teal: #7ed0d8;
  --copper: #f0aa7c;
  --gold: #f2cc76;
  --font-body: "IBM Plex Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "IBM Plex Sans", "PingFang SC", sans-serif;
  --page-top-left: rgba(126, 208, 216, 0.16);
  --page-top-right: rgba(123, 120, 255, 0.16);
  --page-end: #0c141d;
  --header-bg: rgba(13, 22, 31, 0.76);
  --header-border: rgba(190, 210, 225, 0.12);
  --hero-a: rgba(126, 208, 216, 0.18);
  --hero-b: rgba(123, 120, 255, 0.14);
  --hero-c1: rgba(16, 27, 38, 0.97);
  --hero-c2: rgba(10, 18, 27, 0.98);
  --hero-panel-bg: rgba(18, 30, 43, 0.82);
  --hero-panel-border: rgba(126, 208, 216, 0.16);
  --theme-vision: #7ed0d8;
  --theme-motion: #f0aa7c;
  --theme-foundation: #b6a7ff;
  --theme-systems: #8ed7a2;
  --theme-icon: "▣";
  --theme-pattern-opacity: 0.16;
}

html[data-theme="lab"] {
  --bg: #f3f6fb;
  --bg-strong: #e8eef7;
  --surface: rgba(250, 252, 255, 0.9);
  --surface-strong: #ffffff;
  --surface-accent: rgba(237, 243, 251, 0.94);
  --text: #17212b;
  --muted: #607080;
  --line: rgba(23, 33, 43, 0.1);
  --line-strong: rgba(23, 33, 43, 0.16);
  --teal: #2456d3;
  --copper: #2f7b66;
  --gold: #b88323;
  --font-body: "IBM Plex Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --page-top-left: rgba(36, 86, 211, 0.12);
  --page-top-right: rgba(47, 123, 102, 0.12);
  --page-end: #eef3fb;
  --header-bg: rgba(255, 255, 255, 0.82);
  --header-border: rgba(23, 33, 43, 0.08);
  --hero-a: rgba(36, 86, 211, 0.13);
  --hero-b: rgba(47, 123, 102, 0.11);
  --hero-c1: rgba(252, 254, 255, 0.98);
  --hero-c2: rgba(239, 244, 251, 0.98);
  --hero-panel-bg: rgba(245, 249, 255, 0.9);
  --hero-panel-border: rgba(36, 86, 211, 0.12);
  --theme-vision: #2456d3;
  --theme-motion: #2f7b66;
  --theme-foundation: #7a46d3;
  --theme-systems: #bd7a1f;
  --theme-icon: "●";
  --theme-pattern-opacity: 0.18;
}

html[data-theme="editorial"] .site-noise {
  opacity: 0.25;
}

html[data-theme="atlas"] .site-noise {
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04)),
    linear-gradient(rgba(126, 208, 216, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 208, 216, 0.05) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
}

html[data-theme="lab"] .site-noise {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)),
    radial-gradient(circle at 1px 1px, rgba(36, 86, 211, 0.08) 1.2px, transparent 0);
  background-size: auto, 18px 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background:
    radial-gradient(circle at top left, var(--page-top-left), transparent 28%),
    radial-gradient(circle at top right, var(--page-top-right), transparent 26%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 78%, white 22%) 0%, var(--bg) 55%, var(--page-end) 100%);
}

a {
  color: var(--teal);
  text-decoration-color: rgba(15, 76, 92, 0.3);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #093744;
}

img {
  max-width: 100%;
  height: auto;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: clip;
}

.site-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: var(--theme-pattern-opacity);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.16)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230f4c5c' fill-opacity='0.04'%3E%3Cpath d='M36 22h2v2h-2zm58 38h1v1h-1zm24 19h2v2h-2zm-84 51h1v1h-1zm57-12h2v2h-2zm38-76h1v1h-1zm-93 67h2v2h-2zm72 31h1v1h-1z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

html[data-theme="atlas"] .site-noise {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04)),
    linear-gradient(rgba(126, 208, 216, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 208, 216, 0.05) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
}

html[data-theme="lab"] .site-noise {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)),
    radial-gradient(circle at 1px 1px, rgba(36, 86, 211, 0.08) 1.2px, transparent 0);
  background-size: auto, 18px 18px;
}

.site-header,
.page-shell,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  padding: 16px 0 0;
}

.site-header__inner,
.site-footer__inner,
.page-home,
.page-content {
  width: var(--content-width);
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 20px;
  border: 1px solid var(--header-border);
  border-radius: 999px;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(30, 40, 45, 0.06);
}

html[data-theme="atlas"] .site-header__inner {
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

html[data-theme="lab"] .site-header__inner {
  box-shadow: 0 16px 34px rgba(44, 78, 126, 0.08);
}

.brandmark {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  color: inherit;
  text-decoration: none;
}

.brandmark__eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.brandmark__eyebrow::before {
  content: var(--theme-icon);
  margin-right: 6px;
}

.brandmark__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.site-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.theme-switcher span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.theme-switcher select {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-accent);
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
}

html[data-theme="atlas"] .theme-switcher select,
html[data-theme="atlas"] .button,
html[data-theme="atlas"] .pill,
html[data-theme="atlas"] .theme-card__links a,
html[data-theme="atlas"] .banner-links a,
html[data-theme="atlas"] .quick-section-nav a,
html[data-theme="atlas"] .page-content tbody td.is-action a,
html[data-theme="atlas"] .page-content tbody td.is-code a {
  border-radius: 10px;
}

html[data-theme="atlas"] .site-nav a {
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html[data-theme="atlas"] .theme-switcher select,
html[data-theme="atlas"] .button,
html[data-theme="atlas"] .pill,
html[data-theme="atlas"] .theme-card__links a,
html[data-theme="atlas"] .banner-links a,
html[data-theme="atlas"] .quick-section-nav a,
html[data-theme="atlas"] .page-content tbody td.is-action a,
html[data-theme="atlas"] .page-content tbody td.is-code a {
  border-radius: 10px;
}

html[data-theme="lab"] .theme-switcher select,
html[data-theme="lab"] .button,
html[data-theme="lab"] .pill,
html[data-theme="lab"] .theme-card__links a,
html[data-theme="lab"] .banner-links a,
html[data-theme="lab"] .quick-section-nav a,
html[data-theme="lab"] .page-content tbody td.is-action a,
html[data-theme="lab"] .page-content tbody td.is-code a {
  border-radius: 999px;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  transition: color 160ms ease, transform 160ms ease;
}

.site-nav a:hover {
  color: var(--teal);
  transform: translateY(-1px);
}

html[data-theme="atlas"] .site-nav a {
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-shell {
  padding: 24px 0 48px;
}

.page-home {
  display: grid;
  gap: 24px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.65);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--teal) 18%, transparent), transparent 30%),
    linear-gradient(135deg, var(--hero-c1) 0%, var(--hero-c2) 100%);
  box-shadow: var(--shadow);
}

.hero--editorial {
  background:
    radial-gradient(circle at top right, var(--hero-a), transparent 26%),
    radial-gradient(circle at bottom left, var(--hero-b), transparent 24%),
    linear-gradient(135deg, var(--hero-c1) 0%, var(--hero-c2) 100%);
}

html[data-theme="atlas"] .hero {
  border-color: rgba(126, 208, 216, 0.1);
}

html[data-theme="atlas"] .hero::after {
  width: 320px;
  height: 320px;
  right: -120px;
  top: -130px;
  border-color: rgba(126, 208, 216, 0.12);
}

html[data-theme="atlas"] .hero h1,
html[data-theme="atlas"] .section-title h2,
html[data-theme="atlas"] .theme-card h3,
html[data-theme="atlas"] .timeline-card h3,
html[data-theme="atlas"] .process-card h3,
html[data-theme="atlas"] .page-content h2,
html[data-theme="atlas"] .brandmark__title {
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

html[data-theme="lab"] .hero {
  border-color: rgba(36, 86, 211, 0.08);
}

html[data-theme="lab"] .hero::after {
  border-style: dashed;
  border-color: rgba(36, 86, 211, 0.16);
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
  border-radius: 20px;
  background: var(--hero-panel-bg);
  border: 1px solid var(--hero-panel-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

html[data-theme="atlas"] .hero-panel {
  background:
    linear-gradient(180deg, rgba(18, 30, 43, 0.94), rgba(13, 22, 32, 0.88));
}

html[data-theme="lab"] .hero-panel {
  background:
    linear-gradient(180deg, rgba(245, 249, 255, 0.98), rgba(238, 244, 252, 0.94));
}

.hero-panel__label {
  display: inline-flex;
  color: var(--copper);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-panel__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin-bottom: 6px;
}

.hero-panel__stat span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

.hero-panel__rail {
  display: grid;
  gap: 10px;
}

.hero-panel__rail-item {
  position: relative;
  padding: 0 0 0 14px;
}

.hero-panel__rail-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 2px;
  background: linear-gradient(180deg, rgba(15, 76, 92, 0.32), rgba(184, 106, 79, 0.26));
}

.hero-panel__rail-item span {
  display: block;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-panel__rail-item p {
  margin: 4px 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
}

.hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -92px;
  top: -118px;
  border-radius: 50%;
  border: 1px solid rgba(15, 76, 92, 0.14);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 22px;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 76, 92, 0.08);
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.page-content h1,
.page-content h2:first-of-type {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 4.8vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 58ch;
  margin: 16px 0 0;
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--muted);
}

.hero__actions,
.hero__metrics,
.card-grid,
.topic-grid,
.feature-grid {
  display: grid;
  gap: 14px;
}

.hero--compact {
  padding: 20px 22px;
}

.hero--compact .hero__grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.72fr);
  gap: 18px;
}

.hero--compact h1 {
  font-size: clamp(1.85rem, 3.8vw, 2.65rem);
}

.hero--compact p {
  max-width: 62ch;
  font-size: 0.94rem;
}

.hero--compact .hero__actions {
  margin-top: 16px;
  grid-template-columns: repeat(3, max-content);
}

.hero__actions {
  margin-top: 20px;
  grid-template-columns: repeat(3, max-content);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.button--primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #fef8f1;
}

.button--ghost {
  background: rgba(255, 255, 255, 0.55);
}

.hero__metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card,
.feature-card,
.section-card,
.topic-card,
.page-content {
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.metric-card {
  padding: 16px;
  border-radius: var(--radius-lg);
}

.metric-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin-bottom: 6px;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.section-title h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2.05rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-title p {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.feature-grid,
.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.signal-card {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 252, 247, 0.74);
  box-shadow: var(--shadow);
}

html[data-theme="atlas"] .signal-card,
html[data-theme="atlas"] .theme-card,
html[data-theme="atlas"] .timeline-card,
html[data-theme="atlas"] .process-card,
html[data-theme="atlas"] .section-card,
html[data-theme="atlas"] .metric-card,
html[data-theme="atlas"] .page-content,
html[data-theme="atlas"] .table-shell {
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

html[data-theme="lab"] .signal-card,
html[data-theme="lab"] .theme-card,
html[data-theme="lab"] .timeline-card,
html[data-theme="lab"] .process-card,
html[data-theme="lab"] .section-card,
html[data-theme="lab"] .metric-card,
html[data-theme="lab"] .page-content,
html[data-theme="lab"] .table-shell {
  box-shadow: 0 14px 28px rgba(44, 78, 126, 0.07);
}

.signal-card__label {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.signal-card h3 {
  margin: 0 0 8px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
}

.signal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

.card-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.section-card,
.topic-card {
  padding: 18px;
  border-radius: var(--radius-lg);
}

.feature-card h3,
.section-card h3,
.topic-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.feature-card p,
.section-card p,
.topic-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.62;
}

.feature-card__index,
.topic-card__tag {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--copper);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-card__meta {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill,
.rich-content .archive-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--surface-accent);
  border: 1px solid var(--line);
  color: var(--teal);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
}

.rich-content .topic-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
}

.rich-content .topic-index li {
  margin: 0;
}

.rich-content .topic-index a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 11px 13px;
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.84);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(27, 37, 44, 0.045);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.rich-content .topic-index a::after {
  content: "↗";
  color: var(--teal);
  font-size: 0.92rem;
}

.rich-content .topic-index a:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 76, 92, 0.2);
  box-shadow: 0 10px 20px rgba(27, 37, 44, 0.06);
}

.rich-content .topic-index a .topic-index__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rich-content .topic-index a .topic-index__number {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 76, 92, 0.08);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
}

.meta-strip .pill {
  background: rgba(255, 252, 247, 0.74);
}

.banner-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.banner-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.7);
  color: var(--teal);
  text-decoration: none;
  font-weight: 700;
}

.page-content .back-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.page-content .back-link:hover {
  color: var(--teal);
}

.topic-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.topic-card {
  display: grid;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.topic-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 76, 92, 0.24);
  box-shadow: 0 20px 34px rgba(15, 76, 92, 0.09);
}

.topic-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.topic-card__arrow {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(15, 76, 92, 0.08);
  color: var(--teal);
  font-size: 1rem;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.theme-grid--compact {
  margin: 0 0 18px;
}

.theme-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  background: rgba(255, 252, 247, 0.86);
  box-shadow: var(--shadow);
}

.theme-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: currentColor;
  opacity: 0.9;
}

.theme-card::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -28px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 10%, transparent);
}

html[data-theme="atlas"] .theme-card::before {
  height: 2px;
}

html[data-theme="atlas"] .theme-card::after {
  border-radius: 18px;
  transform: rotate(45deg);
}

html[data-theme="lab"] .theme-card::before {
  height: 5px;
}

html[data-theme="lab"] .theme-card::after {
  width: 86px;
  height: 86px;
  border: 1px dashed color-mix(in srgb, currentColor 18%, transparent);
  background: transparent;
}

.theme-card--vision {
  color: var(--theme-vision);
  background:
    linear-gradient(180deg, rgba(218, 237, 240, 0.62), rgba(255, 252, 247, 0.92));
}

.theme-card--motion {
  color: var(--theme-motion);
  background:
    linear-gradient(180deg, rgba(246, 228, 208, 0.68), rgba(255, 252, 247, 0.92));
}

.theme-card--foundation {
  color: var(--theme-foundation);
  background:
    linear-gradient(180deg, rgba(233, 226, 252, 0.7), rgba(255, 252, 247, 0.92));
}

.theme-card--systems {
  color: var(--theme-systems);
  background:
    linear-gradient(180deg, rgba(227, 241, 225, 0.72), rgba(255, 252, 247, 0.92));
}

.theme-card__tag {
  display: inline-flex;
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.82;
}

.theme-card__tag::before {
  content: var(--theme-icon);
  margin-right: 6px;
}

.theme-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.1;
  color: var(--text);
}

.theme-card p {
  margin: 0 0 14px;
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--muted);
}

.theme-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.theme-card__links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(28, 40, 51, 0.1);
  color: inherit;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
}

.timeline-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.timeline-grid--compact {
  margin: 0 0 20px;
}

.timeline-grid--editorial {
  position: relative;
}

.timeline-grid--editorial::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(15, 76, 92, 0.18), rgba(184, 106, 79, 0.2), rgba(91, 74, 141, 0.18));
}

html[data-theme="atlas"] .timeline-grid--editorial::before {
  height: 2px;
  background: linear-gradient(90deg, rgba(126, 208, 216, 0.26), rgba(182, 167, 255, 0.22), rgba(240, 170, 124, 0.26));
}

html[data-theme="lab"] .timeline-grid--editorial::before {
  background: linear-gradient(90deg, rgba(36, 86, 211, 0.18), rgba(47, 123, 102, 0.18), rgba(189, 122, 31, 0.18));
}

.timeline-card {
  position: relative;
  padding: 18px 18px 18px 24px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  background: rgba(255, 252, 247, 0.84);
  box-shadow: var(--shadow);
}

.timeline-card::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(180deg, rgba(15, 76, 92, 0.25), rgba(184, 106, 79, 0.24));
}

.timeline-card::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(15, 76, 92, 0.08);
}

html[data-theme="atlas"] .timeline-grid--editorial::before {
  height: 2px;
  background: linear-gradient(90deg, rgba(126, 208, 216, 0.26), rgba(182, 167, 255, 0.22), rgba(240, 170, 124, 0.26));
}

html[data-theme="atlas"] .timeline-card {
  padding-left: 20px;
}

html[data-theme="atlas"] .timeline-card::before {
  left: 0;
  top: 0;
  bottom: auto;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(126, 208, 216, 0.32), rgba(182, 167, 255, 0.24));
}

html[data-theme="atlas"] .timeline-card::after {
  left: auto;
  right: 16px;
  top: 14px;
  box-shadow: 0 0 0 6px rgba(126, 208, 216, 0.08);
}

html[data-theme="lab"] .timeline-card::after {
  box-shadow: 0 0 0 6px rgba(36, 86, 211, 0.08);
}

html[data-theme="atlas"] .timeline-card::after {
  box-shadow: 0 0 0 6px rgba(126, 208, 216, 0.08);
}

html[data-theme="lab"] .timeline-card::after {
  box-shadow: 0 0 0 6px rgba(36, 86, 211, 0.08);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.process-card {
  position: relative;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 252, 247, 0.82);
  box-shadow: var(--shadow);
}

.process-card__step {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(15, 76, 92, 0.08);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 800;
}

.process-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.process-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 20px;
  color: var(--copper);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-divider::before,
.section-divider::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  background: linear-gradient(90deg, rgba(15, 76, 92, 0.06), rgba(184, 106, 79, 0.22), rgba(15, 76, 92, 0.06));
}

.timeline-card__year {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--copper);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.timeline-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.timeline-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.62;
}

.page-content {
  padding: clamp(22px, 2.7vw, 34px);
  border-radius: var(--radius-xl);
}

.page-content:not(.page-home) {
  max-width: min(1200px, calc(100vw - 32px));
}

.page-content h1,
.page-content h2,
.page-content h3 {
  color: var(--text);
}

.page-content h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.page-content h3 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--teal);
}

.page-content p,
.page-content li {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.page-content ul,
.page-content ol {
  padding-left: 1.2rem;
}

.page-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}

.page-content blockquote {
  margin: 20px 0;
  padding: 0 0 0 16px;
  border-left: 3px solid rgba(15, 76, 92, 0.28);
  color: var(--muted);
}

.page-content code {
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
  background: rgba(15, 76, 92, 0.08);
  color: var(--teal);
  font-size: 0.9em;
}

.page-content pre {
  padding: 16px;
  overflow: auto;
  border-radius: var(--radius-md);
  background: #18323a;
  color: #f6efe4;
}

.page-content pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.rich-content .lede {
  margin: 14px 0 22px;
  color: var(--muted);
  font-size: 1rem;
}

.page-content > h2:not(:first-child) {
  margin-top: 26px;
}

.subtle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--copper);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.page-meta .pill {
  background: rgba(255, 252, 247, 0.78);
}

.rich-content .archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}

.rich-content .archive-grid li {
  margin: 0;
}

.table-shell {
  margin: 22px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 8px 18px rgba(27, 37, 44, 0.035);
}

.page-content table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 0.88rem;
  table-layout: auto;
}

.page-content thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(247, 239, 227, 0.96);
  color: var(--text);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.page-content th,
.page-content td {
  padding: 11px 13px;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid rgba(28, 40, 51, 0.08);
}

.page-content th:first-child,
.page-content td:first-child {
  padding-left: 15px;
}

.page-content th:last-child,
.page-content td:last-child {
  padding-right: 15px;
}

.page-content tbody tr:nth-child(even) {
  background: rgba(15, 76, 92, 0.025);
}

.page-content tbody tr:hover {
  background: rgba(15, 76, 92, 0.055);
}

.page-content tbody td:first-child {
  white-space: nowrap;
  color: var(--text);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.page-content tbody td:nth-child(2) {
  min-width: 360px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.48;
}

.page-content tbody td:nth-child(3) {
  min-width: 170px;
  font-size: 0.84rem;
  color: var(--muted);
}

.page-content tbody td:nth-child(n + 4) {
  white-space: nowrap;
  font-size: 0.83rem;
}

.page-content tbody td a {
  font-weight: 600;
}

.page-content tbody td.is-action a,
.page-content tbody td.is-code a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 76, 92, 0.07);
  border: 1px solid rgba(15, 76, 92, 0.1);
  color: var(--teal);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
}

.page-content tbody td.is-code a {
  background: rgba(184, 106, 79, 0.08);
  border-color: rgba(184, 106, 79, 0.14);
  color: #9a5138;
}

.page-content tbody td.is-empty {
  color: #96a0a8;
  font-style: italic;
}

.page-content tbody td.is-empty::before {
  opacity: 0.9;
}

.page-content tbody td.is-title a {
  color: inherit;
  text-decoration: none;
}

.page-content tbody td.is-title a:hover {
  color: var(--teal);
}

.is-empty {
  color: #99a3aa;
  font-style: italic;
}

.page-content .hero-banner {
  margin-bottom: 22px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--copper) 16%, transparent), transparent 35%),
    linear-gradient(180deg, color-mix(in srgb, var(--teal) 10%, transparent), color-mix(in srgb, var(--teal) 3%, transparent));
  border: 1px solid color-mix(in srgb, var(--teal) 12%, transparent);
}

html[data-theme="atlas"] .page-content .hero-banner {
  background:
    radial-gradient(circle at top right, rgba(182, 167, 255, 0.12), transparent 35%),
    linear-gradient(180deg, rgba(126, 208, 216, 0.12), rgba(126, 208, 216, 0.03));
}

html[data-theme="lab"] .page-content .hero-banner {
  background:
    radial-gradient(circle at top right, rgba(36, 86, 211, 0.1), transparent 35%),
    linear-gradient(180deg, rgba(36, 86, 211, 0.06), rgba(47, 123, 102, 0.02));
}

.page-content .hero-banner p:last-child {
  margin-bottom: 0;
}

.quick-section-nav {
  margin: 18px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-section-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(15, 76, 92, 0.06);
  border: 1px solid rgba(15, 76, 92, 0.1);
  color: var(--teal);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
}

.quick-section-nav a:hover {
  background: rgba(15, 76, 92, 0.09);
}

.site-footer {
  padding: 0 0 22px;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 0 6px;
}

.site-footer__inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer__links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer__links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.site-footer__links a:hover {
  color: var(--teal);
}

.page-home > section,
.page-content > * {
  animation: fadeUp 420ms ease both;
}

.page-home > section:nth-child(2),
.page-content > *:nth-child(2) {
  animation-delay: 60ms;
}

.page-home > section:nth-child(3),
.page-content > *:nth-child(3) {
  animation-delay: 110ms;
}

.page-home > section:nth-child(4),
.page-content > *:nth-child(4) {
  animation-delay: 150ms;
}

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

@media (max-width: 1024px) {
  .hero__grid,
  .signal-strip,
  .feature-grid,
  .card-grid,
  .card-grid--two,
  .process-grid,
  .theme-grid,
  .timeline-grid,
  .topic-grid,
  .hero__metrics {
    grid-template-columns: 1fr;
  }

  .hero--compact .hero__grid,
  .hero--compact .hero__actions {
    grid-template-columns: 1fr;
  }

  .timeline-grid--editorial::before {
    display: none;
  }

  .section-title {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 760px) {
  .site-controls {
    width: 100%;
    flex-direction: column;
    align-items: start;
  }

  .theme-switcher {
    padding-left: 0;
    border-left: 0;
  }

  .theme-switcher select {
    width: 100%;
  }

  .site-header__inner,
  .site-footer__inner {
    border-radius: 28px;
    padding: 18px;
    flex-direction: column;
    align-items: start;
  }

  .hero__actions {
    grid-template-columns: 1fr;
  }

  .banner-links {
    flex-direction: column;
  }

  .banner-links a {
    width: 100%;
    justify-content: center;
  }

  .button {
    width: 100%;
  }

  .page-content,
  .hero,
  .feature-card,
  .section-card,
  .topic-card,
  .metric-card {
    border-radius: 22px;
  }

  .page-content table,
  .page-content thead,
  .page-content tbody,
  .page-content th,
  .page-content td,
  .page-content tr {
    display: block;
  }

  .page-content thead {
    display: none;
  }

  .table-shell {
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .page-content table {
    min-width: 0;
  }

  .page-content tbody tr {
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 252, 247, 0.92);
    box-shadow: var(--shadow);
  }

  .page-content td {
    padding: 8px 0;
    border-bottom: 0;
  }

  .page-content td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .page-content tbody td:first-child,
  .page-content tbody td:nth-child(2) {
    white-space: normal;
  }

  .page-content tbody td.is-action a,
  .page-content tbody td.is-code a {
    min-height: 30px;
  }
}
