:root {
  --background: #f6f2ea;
  --surface: #fcfaf6;
  --surface-alt: #f1ebe0;
  --surface-2: #e9dfcf;
  --surface-3: #fffdfa;
  --border: #d8ccb9;
  --divider: #e4dacb;
  --text: #1c1611;
  --text-soft: #6f6558;
  --faint: #ab9f90;
  --inverse: #fbf8f2;
  --primary: #204f5a;
  --primary-hover: #183f48;
  --primary-soft: #d8e5e6;
  --accent: #b0722a;
  --accent-strong: #8f5d22;
  --accent-soft: #f2e5d1;
  --accent-border: #d4bf9b;
  --accent-2: #7f2430;
  --background-glow: rgba(176, 114, 42, 0.18);
  --shadow-sm: 0 1px 3px rgba(30, 22, 17, .06), 0 1px 2px rgba(30, 22, 17, .04);
  --shadow-md: 0 10px 30px rgba(30, 22, 17, .08), 0 2px 8px rgba(30, 22, 17, .05);
  --shadow-lg: 0 24px 70px rgba(30, 22, 17, .12), 0 6px 20px rgba(30, 22, 17, .06);
  --shadow: var(--shadow-md);
  --radius: 28px;
  --radius-small: 18px;
  --radius-large: 34px;
  --container: 1180px;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --hero-glow: radial-gradient(circle at 12% 18%, rgba(176,114,42,.18), transparent 28%), radial-gradient(circle at 88% 20%, rgba(32,79,90,.16), transparent 26%), linear-gradient(180deg, #f9f4ec 0%, #f6f2ea 52%, #fffdfa 100%);
  --grid: linear-gradient(rgba(32,79,90,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(32,79,90,.05) 1px, transparent 1px);
}

[data-theme="dark"] {
  color-scheme: dark;
  --background: #12100e;
  --surface: #1a1714;
  --surface-alt: #221f1b;
  --surface-2: #2a261f;
  --surface-3: #181512;
  --border: #3a342c;
  --divider: #2b271f;
  --text: #ece4d7;
  --text-soft: #b6a996;
  --faint: #7b7167;
  --inverse: #171411;
  --primary: #6aa5b4;
  --primary-hover: #8bbdca;
  --primary-soft: #182328;
  --accent: #d49a4c;
  --accent-strong: #b97f35;
  --accent-soft: #2a2012;
  --accent-border: #57452d;
  --background-glow: rgba(212, 154, 76, 0.14);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.28);
  --shadow-md: 0 10px 30px rgba(0,0,0,.35);
  --shadow-lg: 0 24px 70px rgba(0,0,0,.46);
  --shadow: var(--shadow-md);
  --hero-glow: radial-gradient(circle at 12% 18%, rgba(212,154,76,.12), transparent 28%), radial-gradient(circle at 88% 20%, rgba(106,165,180,.12), transparent 26%), linear-gradient(180deg, #181512 0%, #12100e 52%, #151210 100%);
  --grid: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
}

[data-theme="dark"] {
  --background: #12100e;
  --surface: #1a1714;
  --surface-alt: #221f1b;
  --surface-2: #2a261f;
  --surface-3: #181512;
  --border: #3a342c;
  --divider: #2b271f;
  --text: #ece4d7;
  --text-soft: #b6a996;
  --faint: #7b7167;
  --inverse: #171411;
  --primary: #6aa5b4;
  --primary-hover: #8bbdca;
  --primary-soft: #182328;
  --accent: #d49a4c;
  --accent-strong: #b97f35;
  --accent-soft: #2a2012;
  --accent-border: #57452d;
  --accent-2: #d46a79;
  --background-glow: rgba(212,154,76,.12);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.28);
  --shadow-md: 0 10px 30px rgba(0,0,0,.35);
  --shadow-lg: 0 24px 70px rgba(0,0,0,.46);
  --shadow: var(--shadow-md);
  --hero-glow: radial-gradient(circle at 12% 18%, rgba(212,154,76,.12), transparent 28%), radial-gradient(circle at 88% 20%, rgba(106,165,180,.12), transparent 26%), linear-gradient(180deg, #181512 0%, #12100e 52%, #151210 100%);
  --grid: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: none; text-size-adjust: none; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  min-height: 100vh;
  color-scheme: light;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
::selection { background: rgba(32,79,90,.16); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 10px; }

.skip-link {
  position: absolute; left: 12px; top: -80px;
  padding: 10px 14px; border-radius: 12px;
  background: var(--primary); color: white; z-index: 999;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.page-glow {
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(80px);
  z-index: 0;
  opacity: .55;
}
.page-glow--one { top: -10rem; left: -12rem; width: 34rem; height: 34rem; background: rgba(176,114,42,.18); }
.page-glow--two { top: 12rem; right: -10rem; width: 30rem; height: 30rem; background: rgba(32,79,90,.14); }

.site-header {
  position: fixed; inset: 0 0 auto 0; height: 78px; z-index: 30;
  transition: .35s ease;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--background) 82%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--divider);
  box-shadow: var(--shadow-sm);
}
.site-header__inner,
.shell,
.mobile-menu,
.site-footer {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
.site-header__inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.brand strong { display: block; font-size: 1rem; letter-spacing: .02em; }
.brand small { display: block; color: var(--text-soft); font-size: .84rem; margin-top: .15rem; }
.brand__badge {
  width: 42px; height: 42px; border-radius: 15px; display: grid; place-items: center;
  color: var(--primary);
  background: linear-gradient(135deg, var(--surface-alt), var(--surface));
  border: 1px solid var(--border); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), var(--shadow-sm);
  position: relative; overflow: hidden;
}
.brand__badge::before {
  content: ''; position: absolute; inset: -20%;
  background: conic-gradient(from 180deg, var(--accent), transparent 26%, var(--primary), transparent 58%, var(--accent));
  opacity: .18; animation: spin 14s linear infinite;
}
.brand__badge svg { position: relative; z-index: 1; }

.site-nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  min-height: 42px; padding: 0 14px; border-radius: 999px; color: var(--text-soft);
  display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; font-weight: 700;
  transition: .25s ease;
}
.nav-link:hover, .nav-link.is-active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.header-controls { display: flex; align-items: center; gap: 10px; }
.icon-button, .menu-toggle {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: .25s ease;
}
.icon-button:hover, .menu-toggle:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); color: var(--primary); }
.menu-toggle { display: none; width: auto; padding-inline: 16px; }
.theme-toggle {
  width: auto;
  min-width: 42px;
  padding-inline: 12px;
  grid-auto-flow: column;
  gap: 8px;
}
.theme-toggle span { font-size: .88rem; font-weight: 800; }

.button {
  min-height: 44px; padding: 0 18px; border-radius: 999px; display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; transition: .28s ease; border: 1px solid transparent;
}
.button svg { flex: 0 0 auto; }
.button--primary {
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 72%, #0d1a1f));
  color: white; box-shadow: 0 14px 30px rgba(32,79,90,.24);
}
.button--primary:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 18px 38px rgba(32,79,90,.28); }
.button--ghost {
  background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-sm);
}
.button--ghost:hover { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 32%, var(--border)); color: var(--primary); }
.header-cta { white-space: nowrap; }

.mobile-menu { display: none; padding-top: 86px; }
.mobile-menu__panel {
  border-radius: 24px; background: color-mix(in srgb, var(--surface) 90%, transparent); border: 1px solid var(--border);
  box-shadow: var(--shadow-md); padding: 16px; backdrop-filter: blur(18px);
}
.mobile-menu .nav-link { display: flex; justify-content: flex-start; background: var(--surface); border: 1px solid var(--border); margin-bottom: 10px; }
.mobile-menu__cta { width: 100%; justify-content: center; }
.mobile-menu__theme { margin-bottom: 10px; }

.shell { padding: 102px 0 4.5rem; }
.hero-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--hero-glow);
  border: 1px solid var(--border);
  border-radius: 34px;
  box-shadow: var(--shadow-lg);
  margin-bottom: clamp(2rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-panel::before {
  content: ''; position: absolute; inset: 0; background-image: var(--grid); background-size: 34px 34px;
  mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 72%, transparent 100%);
  pointer-events: none;
}
.hero-panel::after {
  content: ''; position: absolute; inset: auto -10% -10% auto; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(176,114,42,.14), transparent 65%); filter: blur(20px); pointer-events: none;
}
.hero-panel > * { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary);
  margin-bottom: 1.25rem;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(176,114,42,.45); animation: pulse 2.2s infinite; }
.hero-copy h1, .page-top h1, .empty-box h1 { font-size: clamp(3.1rem, 1.6rem + 4.8vw, 6rem); }
.hero-copy h1 { max-width: 9ch; margin-bottom: 1rem; }
.lead { font-size: clamp(1.08rem, .98rem + .6vw, 1.34rem); color: var(--text-soft); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

.hero-side { display: grid; gap: 18px; }
.hero-preview-card {
  position: relative; background: linear-gradient(180deg, var(--surface), var(--surface-alt));
  border: 1px solid var(--border); border-radius: 32px; padding: 20px; box-shadow: var(--shadow-lg); isolation: isolate; overflow: hidden;
}
.hero-preview-card::before {
  content: ''; position: absolute; inset: -2px; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(176,114,42,.42), transparent 30%, rgba(32,79,90,.35) 70%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.preview-top, .meta-row, .tag-row, .tag-stack, .footer-socials, .footer-links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.preview-top { justify-content: space-between; margin-bottom: 14px; }
.preview-badge, .micro-tag, .meta-chip, .section-label, .mini-panel__label {
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.preview-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-border);
}
.micro-tag, .meta-chip {
  padding: 6px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary);
}
.preview-window {
  border-radius: 24px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-md);
}
.preview-stage {
  position: relative; min-height: 420px;
  background:
    linear-gradient(180deg, rgba(28,22,17,.08), rgba(28,22,17,.52)),
    radial-gradient(circle at 22% 30%, rgba(176,114,42,.26), transparent 24%),
    radial-gradient(circle at 80% 18%, rgba(32,79,90,.18), transparent 22%),
    linear-gradient(135deg, #7b5e3a 0%, #3a524f 52%, #1b2426 100%);
}
.preview-overlay {
  position: absolute; inset: auto 18px 18px 18px; background: rgba(250,247,240,.86); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.55); border-radius: 22px; padding: 18px; box-shadow: var(--shadow-md);
}
.preview-overlay h2 { font-size: clamp(2rem, 1.1rem + 2vw, 2.6rem); margin-bottom: 8px; }
.preview-overlay p { color: var(--text-soft); font-size: .95rem; }
.floating-chip {
  position: absolute; padding: 10px 14px; border-radius: 999px; background: rgba(252,250,246,.88); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.55); box-shadow: var(--shadow-md); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px; animation: floatY 4.5s ease-in-out infinite;
}
.floating-chip--one { top: 26px; right: -12px; animation-delay: .2s; }
.floating-chip--two { left: -12px; bottom: 120px; animation-delay: 1.2s; }
.orbit-icon {
  width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--accent);
}
.hero-side__stack, .stat-grid, .card-grid, .stack-list, .aside-panel, .insight-list, .check-grid { display: grid; gap: 18px; }
.mini-panel, .detail-panel, .detail-side-block, .empty-box, .content-card, .check-card, .timeline-main, .search-shell, .insight-card, .quote-card {
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.mini-panel, .detail-panel, .detail-side-block, .empty-box, .check-card, .insight-card, .quote-card, .search-shell { border-radius: 28px; padding: 22px; }
.mini-panel--quote {
  background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 12%, var(--surface)), var(--surface));
}
.mini-panel__label, .section-label { color: var(--primary); margin-bottom: 10px; display: inline-block; }
.mini-panel strong, .insight-card h3, .detail-side-block h3, .detail-panel h2, .check-card h3 { font-size: 1.75rem; margin-bottom: 10px; }
.mini-panel p, .section-copy, .content-card p, .detail-panel p, .detail-side-block p, .check-card p, .site-footer p, .insight-item span, .quote-card span { color: var(--text-soft); }
.stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-card {
  background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid var(--border); border-radius: 22px;
  padding: 18px; box-shadow: var(--shadow-sm); backdrop-filter: blur(10px);
}
.stat-card strong { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 1rem + 2vw, 2.8rem); line-height: 1; }
.stat-card span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-soft); font-weight: 800; }

.section { padding: clamp(3.8rem, 8vw, 5.8rem) 0; }
.section--tight { padding-top: 0; }
.section + .section { border-top: 1px solid var(--divider); }
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px;
}
.section-head h2, .search-shell h2 { font-size: clamp(2rem, 1.2rem + 2vw, 3rem); }
.section-copy { max-width: 48ch; margin-top: 10px; }
.pill-link {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--border); font-weight: 800; box-shadow: var(--shadow-sm); transition: .25s ease;
}
.pill-link:hover { color: var(--primary); transform: translateY(-1px); }
.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.content-card {
  position: relative; overflow: hidden; border-radius: 28px; padding: 20px; transition: .32s ease; box-shadow: var(--shadow-sm);
}
.content-card::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--primary));
  transform: scaleX(.16); transform-origin: left; transition: .35s ease;
}
.content-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 28%, var(--border)); box-shadow: var(--shadow-md); }
.content-card:hover::after { transform: scaleX(1); }
.content-card__icon {
  width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--surface-alt), var(--surface)); border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5); color: var(--primary);
}
.card-eyebrow { display: inline-block; color: var(--accent); font-size: .8rem; font-weight: 800; margin-bottom: 6px; }
.content-card h3 { font-size: clamp(1.55rem, 1.1rem + 1vw, 2rem); margin-bottom: 8px; }
.content-card p { font-size: .96rem; }
.card-meta { margin-top: 12px; color: var(--text-soft); }
.card-link { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 800; }
.content-card--compact h3 { font-size: 1.5rem; }

.timeline-feature-grid, .detail-layout {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px;
}
.detail-layout { align-items: start; }
.detail-layout--timeline { grid-template-columns: minmax(0, 1.12fr) minmax(290px, .88fr); }
.detail-main, .detail-side { display: grid; gap: 18px; }
.timeline-main {
  position: relative; border-radius: 30px; padding: 26px; overflow: hidden;
}
.timeline-main::before {
  content: ''; position: absolute; left: 41px; top: 32px; bottom: 32px; width: 2px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--primary) 60%, transparent), transparent);
}
.timeline-item {
  position: relative; display: grid; grid-template-columns: 84px 1fr; gap: 18px; padding: 18px 0;
  align-items: start; border-bottom: 1px solid var(--divider);
}
.timeline-item:last-child { border-bottom: none; padding-bottom: 0; }
.time-dot {
  position: absolute; left: 34px; top: 26px; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, var(--accent));
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent), 0 0 22px rgba(176,114,42,.28);
  transition: .3s ease;
}
.timeline-item:hover .time-dot { transform: scale(1.18); box-shadow: 0 0 0 8px color-mix(in srgb, var(--primary) 16%, transparent), 0 0 30px rgba(32,79,90,.24); }
.year { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); padding-top: 2px; }
.timeline-card {
  background: linear-gradient(180deg, var(--surface), var(--surface-alt)); border: 1px solid var(--divider);
  border-radius: 22px; padding: 18px; transition: .28s ease;
}
.timeline-card h3 { font-size: clamp(1.65rem, 1.1rem + 1vw, 2rem); margin-bottom: 8px; }
.timeline-card p { color: var(--text-soft); font-size: .95rem; margin-bottom: 10px; }
.timeline-item:hover .timeline-card { transform: translateX(4px); border-color: color-mix(in srgb, var(--primary) 28%, var(--divider)); box-shadow: var(--shadow-sm); }
.timeline-impact {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px;
  background: color-mix(in srgb, var(--accent-soft) 74%, white); color: var(--text); font-weight: 600;
}

.insight-card h3, .quote-card h3 { font-size: clamp(1.9rem, 1.2rem + 1vw, 2.2rem); }
.insight-list { margin-top: 12px; }
.insight-item {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 18px;
  background: var(--surface-alt); border: 1px solid color-mix(in srgb, var(--border) 75%, transparent); transition: .25s ease;
}
.insight-item:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }
.insight-icon {
  width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface)); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border)); box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}
.insight-item strong { display: block; font-size: .98rem; margin-bottom: 2px; }
.quote-card {
  background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 24%, var(--surface)), var(--surface)); position: relative; overflow: hidden;
}
.quote-card::before {
  content: '“'; position: absolute; right: 18px; top: -6px; font-family: var(--font-display); font-size: 7rem; line-height: 1; color: rgba(176,114,42,.18);
}
.quote-card p { font-family: var(--font-display); font-size: clamp(1.9rem, 1.1rem + 1vw, 2.4rem); line-height: 1.14; max-width: 14ch; margin-bottom: 12px; }

.page-top { padding: 1rem 0 1.3rem; }
.page-top--detail { padding-top: .35rem; }
.page-top h1 { margin-bottom: 10px; max-width: 14ch; }
.tag-row, .tag-stack { gap: 8px; margin-top: 18px; }
.tag {
  min-height: 36px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-soft); font-size: .9rem;
}
.tag--soft { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent); }
.toolbar-shell { padding: 1.5rem; }
.search-shell {
  background: linear-gradient(180deg, var(--surface), var(--surface-alt)); border-radius: 32px; padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.search-shell::before {
  content: ''; position: absolute; inset: auto auto -50px -50px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(176,114,42,.16), transparent 65%);
}
.search-bar {
  position: relative; display: flex; align-items: center; gap: 14px; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: 22px; padding: 10px 12px 10px 16px; box-shadow: var(--shadow-sm);
}
.search-bar:focus-within { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); box-shadow: 0 0 0 4px rgba(32,79,90,.08), var(--shadow-sm); }
.search-bar__icon { color: var(--text-soft); }
.search-field { flex: 1; min-width: 0; border: none; background: transparent; outline: none; font-size: 1rem; }
.search-field::placeholder { color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip {
  padding: 10px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .93rem; font-weight: 700; transition: .25s ease;
}
.chip:hover { background: var(--primary-soft); color: var(--primary); border-color: color-mix(in srgb, var(--primary) 32%, var(--border)); transform: translateY(-1px); }
.bullet-list { margin: 0; padding-left: 1.15rem; display: grid; gap: .8rem; }
.check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check-card { display: grid; grid-template-columns: auto 1fr; gap: 1rem; }
.check-card__index {
  width: 2.3rem; height: 2.3rem; display: grid; place-items: center; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid var(--accent-border); color: var(--accent); font-weight: 800;
}
.empty-box { text-align: center; display: grid; gap: 14px; place-items: center; min-height: 14rem; }
.empty-box--page { min-height: 60vh; }
.site-footer {
  padding: 0 0 3rem; display: flex; justify-content: space-between; gap: 20px; align-items: flex-start;
}

.section,
.card-grid,
.timeline-feature-grid,
.feature-mosaic,
.atlas-grid,
.detail-layout,
.search-shell,
.timeline-main {
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}
.footer-brand strong { display: block; font-size: 1.7rem; margin-bottom: 8px; font-family: var(--font-display); }
.footer-links-wrap { display: grid; gap: 14px; justify-items: end; }
.footer-links a { color: var(--text-soft); font-weight: 700; }
.footer-links a:hover { color: var(--primary); }
.site-footer > * { padding-top: 24px; border-top: 1px solid var(--divider); }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .42s cubic-bezier(.16,1,.3,1), transform .42s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(176,114,42,.42); }
  70% { box-shadow: 0 0 0 12px rgba(176,114,42,0); }
  100% { box-shadow: 0 0 0 0 rgba(176,114,42,0); }
}
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes spin { to { transform: rotate(1turn); } }

@media (max-width: 1080px) {
  .hero-panel, .timeline-feature-grid, .detail-layout, .card-grid--four, .card-grid--three { grid-template-columns: 1fr; }
  .section-head, .site-footer { flex-direction: column; align-items: flex-start; }
  .footer-links-wrap { justify-items: start; }
  .header-cta { display: none; }
}
@media (max-width: 1040px) {
  .theme-toggle span { display: none; }
}
@media (max-width: 900px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .mobile-menu.is-open { display: block; }
  .hero-panel { padding: 1.35rem; }
}
@media (max-width: 760px) {
  .hero-panel, .card-grid, .check-grid { grid-template-columns: 1fr; }
  .hero-copy h1, .page-top h1 { max-width: unset; }
  .timeline-item { grid-template-columns: 72px 1fr; }
  .timeline-main::before { left: 35px; }
  .time-dot { left: 28px; }
  .stat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .site-header__inner, .shell, .mobile-menu, .site-footer { width: min(calc(100% - 1rem), var(--container)); }
  .preview-stage { min-height: 340px; }
  .floating-chip { display: none; }
  .icon-button:nth-child(1) { display: none; }
  .search-bar { flex-wrap: wrap; }
  .search-bar .button { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

.discovery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.discovery-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 22px;
  border-radius: 30px;
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .34s cubic-bezier(.16,1,.3,1), border-color .28s ease, box-shadow .28s ease;
}
.discovery-card::before {
  content: '';
  position: absolute;
  inset: auto -40px -54px auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176,114,42,.15), transparent 68%);
  opacity: .8;
  transition: transform .4s ease;
}
.discovery-card:hover {
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  box-shadow: var(--shadow-md);
}
.discovery-card:hover::before { transform: scale(1.1); }
.discovery-card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: var(--primary);
  background: linear-gradient(135deg, var(--surface-alt), var(--surface));
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}
.discovery-card__eyebrow,
.discovery-card__count {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.discovery-card h3 {
  font-size: clamp(1.55rem, 1rem + 1vw, 2rem);
}
.discovery-card p {
  color: var(--text-soft);
}
.discovery-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.discovery-card__count {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}
.content-card,
.hero-preview-card,
.discovery-card {
  transform-style: preserve-3d;
  will-change: transform;
}
.content-card {
  transition: transform .34s cubic-bezier(.16,1,.3,1), border-color .28s ease, box-shadow .28s ease;
}
.content-card__icon,
.discovery-card__icon,
.insight-icon {
  transition: transform .28s ease, color .28s ease, border-color .28s ease;
}
.content-card:hover .content-card__icon,
.discovery-card:hover .discovery-card__icon,
.insight-item:hover .insight-icon {
  transform: translateY(-2px) scale(1.05);
}
.content-card:hover .content-card__icon svg,
.discovery-card:hover .discovery-card__icon svg {
  transform: rotate(-4deg);
}
.content-card__icon svg,
.discovery-card__icon svg,
.insight-icon svg {
  transition: transform .28s ease;
}
.hero-preview-card {
  transition: transform .36s cubic-bezier(.16,1,.3,1), box-shadow .28s ease, border-color .28s ease;
}
.hero-preview-card:hover {
  box-shadow: 0 28px 72px rgba(30,22,17,.14), 0 8px 24px rgba(30,22,17,.08);
}
.chip {
  position: relative;
  overflow: hidden;
}
.chip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.5) 45%, transparent 100%);
  transform: translateX(-120%);
  transition: transform .5s ease;
}
.chip:hover::after { transform: translateX(120%); }

@media (max-width: 1080px) {
  .discovery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .discovery-grid { grid-template-columns: 1fr; }
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  box-shadow: 0 0 20px rgba(32,79,90,.24);
}
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: .28s ease;
  z-index: 35;
}
.back-to-top svg { transform: rotate(-90deg); }
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.back-to-top:hover {
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}

.feature-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 20px;
  align-items: stretch;
}
.feature-mosaic__side,
.stack-list {
  display: grid;
  gap: 16px;
}
.lead-feature,
.atlas-card {
  transform-style: preserve-3d;
  will-change: transform;
}
.lead-feature {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(176,114,42,.14), transparent 28%),
    linear-gradient(160deg, color-mix(in srgb, var(--primary) 10%, var(--surface)), var(--surface-alt));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transition: transform .34s cubic-bezier(.16,1,.3,1), border-color .28s ease, box-shadow .28s ease;
}
.lead-feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grid);
  background-size: 32px 32px;
  opacity: .22;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 80%, transparent);
  pointer-events: none;
}
.lead-feature > * { position: relative; z-index: 1; }
.lead-feature:hover {
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
  box-shadow: 0 26px 70px rgba(30,22,17,.14), 0 10px 24px rgba(30,22,17,.06);
}
.lead-feature__top,
.lead-feature__meta,
.lead-feature__footer,
.atlas-card__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.lead-feature__top { justify-content: space-between; }
.lead-feature__eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.lead-feature h3 {
  font-size: clamp(2.1rem, 1.2rem + 2vw, 3.25rem);
  max-width: 12ch;
}
.lead-feature p {
  max-width: 56ch;
  color: var(--text-soft);
  font-size: 1.02rem;
}
.lead-feature__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}
.lead-feature__line {
  flex: 1;
  min-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.lead-feature__footer { justify-content: space-between; }

.atlas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.atlas-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  padding: 22px;
  min-height: 100%;
  border-radius: 30px;
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .34s cubic-bezier(.16,1,.3,1), border-color .28s ease, box-shadow .28s ease;
}
.atlas-card::before {
  content: '';
  position: absolute;
  inset: auto -30px -30px auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176,114,42,.16), transparent 68%);
  transition: transform .35s ease;
}
.atlas-card:hover {
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  box-shadow: var(--shadow-md);
}
.atlas-card:hover::before { transform: scale(1.12); }
.atlas-card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: var(--primary);
  background: linear-gradient(135deg, var(--surface-alt), var(--surface));
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}
.atlas-card__label,
.atlas-card__count {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.atlas-card h3 {
  font-size: clamp(1.55rem, 1rem + 1vw, 2rem);
}
.atlas-card p { color: var(--text-soft); }
.atlas-card__footer { justify-content: space-between; margin-top: auto; }
.atlas-card__count {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

@media (max-width: 1080px) {
  .feature-mosaic,
  .atlas-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .back-to-top { right: 12px; bottom: 12px; }
  .lead-feature__top,
  .lead-feature__footer,
  .atlas-card__footer { align-items: flex-start; }
}

.filter-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.filter-chip {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: .92rem;
  font-weight: 750;
  transition: .22s ease;
}
.filter-chip:hover,
.filter-chip.is-active {
  background: var(--primary-soft);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  color: var(--primary);
  transform: translateY(-1px);
}
.learning-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}
.learning-strip__item {
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.learning-strip__item span {
  display: block;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.learning-strip__item strong {
  display: block;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.35;
}
.detail-panel h2 + p,
.timeline-card p,
.content-card p {
  line-height: 1.72;
}
@media (max-width: 760px) {
  .learning-strip { grid-template-columns: 1fr; }
  .filter-panel { gap: 8px; }
  .filter-chip { width: auto; max-width: 100%; }
}


html { color-scheme: light; }
[data-theme="dark"] { color-scheme: dark; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 14px;
  color: var(--text-soft);
  display: inline-grid;
  place-items: center;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
}
.nav-link svg { width: 18px; height: 18px; }
.nav-link:hover, .nav-link.is-active {
  background: var(--surface);
  border-color: var(--border);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.mobile-dock {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(calc(100% - 1rem), 460px);
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 10px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  z-index: 32;
}
.mobile-dock .nav-link {
  width: 100%;
  height: 46px;
  border-radius: 16px;
  background: transparent;
}
.search-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.filter-toggle svg { width: 16px; height: 16px; }
.filter-dropdown {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease, margin-top .28s ease;
  margin-top: 0;
}
.filter-dropdown > div { overflow: hidden; }
.filter-dropdown.is-open {
  grid-template-rows: 1fr;
  margin-top: 12px;
}
.filter-panel { margin-top: 0; }
.filter-toggle.is-open {
  background: var(--primary-soft);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  color: var(--primary);
}
@media (max-width: 900px) {
  .site-nav { display: none; }
  .mobile-dock { display: grid; }
  .shell { padding-bottom: 6.2rem; }
}
@media (max-width: 760px) {
  .search-toolbar { grid-template-columns: 1fr; }
  .filter-toggle { width: 100%; justify-content: center; }
}

/* MOBILE UX + PERFORMANCE PATCH */
.nav-label {
  display: none;
}
.mobile-dock .nav-label {
  display: block;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-top: 3px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-dock .nav-link {
  height: 56px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
}
.mobile-dock .nav-link svg {
  width: 19px;
  height: 19px;
}
.mobile-dock .nav-link.is-active {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: color-mix(in srgb, var(--primary) 22%, var(--border));
}
.content-card[hidden] { display: none !important; }
.insight-item {
  color: inherit;
}
.detail-panel--reader p {
  font-size: clamp(1.02rem, .98rem + .25vw, 1.16rem);
  line-height: 1.85;
}
.card-meta .card-link {
  color: var(--primary);
}
.filter-dropdown {
  will-change: auto;
}

@media (min-width: 761px) {
  .section,
  .card-grid,
  .timeline-main,
  .detail-layout {
    content-visibility: auto;
    contain-intrinsic-size: 1px 720px;
  }
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
    top: 0;
    background: color-mix(in srgb, var(--background) 94%, transparent);
    border-bottom: 1px solid var(--divider);
  }
  .site-header.is-scrolled {
    backdrop-filter: none;
    box-shadow: var(--shadow-sm);
  }
  .site-header__inner {
    height: 68px;
  }
  .brand small {
    display: none;
  }
  .header-controls .icon-button:first-child {
    display: grid;
  }
  .shell {
    padding-top: 28px;
    padding-bottom: 7.6rem;
  }
  .mobile-dock {
    display: grid;
    bottom: 10px;
    width: min(calc(100% - .75rem), 520px);
    padding: 8px;
    gap: 6px;
    border-radius: 22px;
    backdrop-filter: none;
    background: var(--surface);
  }
  .back-to-top {
    right: 12px;
    bottom: 86px;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    backdrop-filter: none;
  }
}

@media (max-width: 760px) {
  .page-glow,
  .hero-panel::after,
  .floating-chip {
    display: none !important;
  }
  .hero-panel,
  .lead-feature,
  .hero-preview-card,
  .content-card,
  .atlas-card,
  .timeline-main,
  .detail-panel,
  .detail-side-block,
  .search-shell,
  .mini-panel,
  .insight-card,
  .quote-card {
    box-shadow: var(--shadow-sm) !important;
    transform: none !important;
    will-change: auto !important;
  }
  .hero-panel {
    border-radius: 26px;
    padding: 1.15rem;
    margin-bottom: 2rem;
  }
  .preview-overlay {
    backdrop-filter: none;
  }
  .preview-stage {
    min-height: 300px;
  }
  .content-card:hover,
  .timeline-item:hover .timeline-card,
  .atlas-card:hover,
  .lead-feature:hover {
    transform: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .card-grid,
  .card-grid--three,
  .card-grid--four {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .content-card {
    padding: 18px;
  }
  .content-card h3 {
    font-size: 1.55rem;
  }
  .content-card p {
    font-size: 1rem;
    line-height: 1.7;
  }
  .search-shell {
    padding: 1rem;
    border-radius: 24px;
  }
  .filter-dropdown {
    transition: none;
  }
  .filter-panel {
    max-height: 310px;
    overflow: auto;
    padding-right: 2px;
    -webkit-overflow-scrolling: touch;
  }
  .filter-chip {
    min-height: 42px;
    font-size: .9rem;
  }
  .timeline-main::before {
    left: 28px;
  }
  .timeline-item {
    grid-template-columns: 56px 1fr;
    gap: 12px;
  }
  .time-dot {
    left: 21px;
  }
  .year {
    font-size: 10px;
  }
}

/* =========================================================
   VIOLET EDITORIAL ADAPTATION
   Inspired by uploaded chronology-v3.html: neutral surface,
   violet accent, serif display + Inter body, lighter motion.
   ========================================================= */
:root {
  --background: #f4f3ff;
  --surface: #ffffff;
  --surface-alt: #faf9ff;
  --surface-2: #f3f0fe;
  --surface-3: #ffffff;
  --border: #ddd9f8;
  --divider: #e8e4f8;
  --text: #0d0b18;
  --text-soft: #6b6589;
  --faint: #9d9ab8;
  --inverse: #ffffff;
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-soft: #f3e8ff;
  --accent: #7c3aed;
  --accent-strong: #5b21b6;
  --accent-soft: #f3e8ff;
  --accent-border: #c4b5fd;
  --accent-2: #4c1d95;
  --background-glow: rgba(124,58,237,.13);
  --shadow-sm: 0 1px 3px rgba(13,11,24,.06), 0 1px 2px rgba(13,11,24,.03);
  --shadow-md: 0 4px 16px rgba(13,11,24,.08), 0 1px 4px rgba(13,11,24,.04);
  --shadow-lg: 0 12px 48px rgba(13,11,24,.10), 0 4px 8px rgba(13,11,24,.05);
  --shadow: var(--shadow-md);
  --radius: 20px;
  --radius-small: 14px;
  --radius-large: 28px;
  --container: 1140px;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Instrument Serif', Georgia, serif;
  --hero-glow: linear-gradient(170deg,#f3e8ff 0%,#f4f3ff 45%,#ffffff 100%);
  --grid: linear-gradient(var(--divider) 1px, transparent 1px), linear-gradient(90deg, var(--divider) 1px, transparent 1px);
}

[data-theme="dark"] {
  color-scheme: dark;
  --background: #0c0b18;
  --surface: #14132a;
  --surface-alt: #1a1830;
  --surface-2: #201e3a;
  --surface-3: #100e1e;
  --border: #2e2b52;
  --divider: #252240;
  --text: #f0eeff;
  --text-soft: #c4c0e8;
  --faint: #8580a8;
  --inverse: #0c0b18;
  --primary: #a78bfa;
  --primary-hover: #c4b5fd;
  --primary-soft: #1f1840;
  --accent: #a78bfa;
  --accent-strong: #ddd6fe;
  --accent-soft: #1f1840;
  --accent-border: #4c3d8a;
  --accent-2: #ddd6fe;
  --background-glow: rgba(124,58,237,.28);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,.35);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.45);
  --shadow: var(--shadow-md);
  --hero-glow: linear-gradient(170deg,#15122e 0%,#0c0b18 50%,#100e1e 100%);
  --grid: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
}

html { scroll-padding-top: 72px; }
body {
  background: var(--background);
  font-family: var(--font-body);
  line-height: 1.6;
  transition: background .3s ease, color .3s ease;
}
h1,h2,h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.025em; }
::selection { background: var(--primary-soft); color: var(--accent-2); }
:focus-visible { outline-color: var(--primary); border-radius: 6px; }

.page-glow { filter: blur(88px); opacity: .5; }
.page-glow--one { background: rgba(124,58,237,.16); }
.page-glow--two { background: rgba(124,58,237,.10); }

.scroll-progress span { background: linear-gradient(90deg,#7c3aed,#6d28d9,#5b21b6); box-shadow: 0 0 20px rgba(124,58,237,.28); }

.site-header {
  height: 68px;
  background: transparent;
  transition: background .36s cubic-bezier(.16,1,.3,1), border-bottom .18s ease, box-shadow .18s ease;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--background) 86%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--divider);
  box-shadow: 0 1px 0 var(--divider);
}
.site-header__inner,
.shell,
.mobile-dock,
.site-footer { max-width: var(--container); }
.brand { font-family: var(--font-display); font-weight: 400; font-size: 1.16rem; letter-spacing: -.02em; }
.brand strong { font-family: var(--font-display); font-size: 1.18rem; font-weight: 400; }
.brand small { font-family: var(--font-body); color: var(--faint); font-size: .72rem; letter-spacing: .02em; }
.brand__badge {
  width: 34px; height: 34px; border-radius: 10px; color: var(--primary);
  background: rgba(124,58,237,.08); border-color: var(--border); box-shadow: none;
}
.brand__badge::before { display: none; }
.brand__badge svg { width: 20px; height: 20px; }

.site-nav { gap: 4px; }
.nav-link {
  width: 38px; height: 38px; min-height: 38px; padding: 0; border-radius: 10px;
  color: var(--text-soft); background: transparent; box-shadow: none;
}
.nav-link svg { width: 17px; height: 17px; }
.nav-link:hover,
.nav-link.is-active { background: var(--surface-2); color: var(--primary); box-shadow: none; }
.site-nav .nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.header-controls { gap: 4px; }
.icon-button,
.menu-toggle {
  width: 38px; height: 38px; border-radius: 10px; background: transparent; border: 0; box-shadow: none; color: var(--text-soft);
}
.icon-button:hover,
.menu-toggle:hover { background: var(--surface-2); color: var(--primary); transform: none; border-color: transparent; }
.theme-toggle { min-width: 38px; padding: 0; }
.theme-toggle span { display: none; }

.shell { padding: 96px 0 4.5rem; }
.hero-panel {
  min-height: auto;
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--hero-glow);
  border: 0;
  border-radius: 28px;
  box-shadow: none;
  grid-template-columns: 1fr minmax(310px, 400px);
  gap: clamp(2rem, 6vw, 4rem);
  margin-bottom: clamp(3rem, 7vw, 5rem);
}
.hero-panel::before {
  background-image: var(--grid); background-size: 36px 36px; opacity: .5;
  mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 65%, transparent 100%);
}
.hero-panel::after {
  inset: 0 0 auto 0; width: auto; height: 520px; border-radius: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(124,58,237,.13) 0%, transparent 70%);
  filter: none;
}
.eyebrow {
  height: 26px; padding: 0 .75rem; border-radius: 9999px;
  font-size: .6875rem; letter-spacing: .08em;
  color: var(--accent-2); background: var(--primary-soft); border: 1px solid var(--accent-border); box-shadow: none;
}
.eyebrow-dot { background: var(--primary); box-shadow: none; animation: pulse-violet 2.4s ease-in-out infinite; }
@keyframes pulse-violet { 0%,100%{opacity:1; transform:scale(1)} 50%{opacity:.5; transform:scale(.8)} }
.hero-copy h1,
.page-top h1,
.empty-box h1 { font-size: clamp(2.5rem, .5rem + 6vw, 4.5rem); line-height: .98; letter-spacing: -.04em; }
.hero-copy h1 { max-width: 10ch; }
.lead { font-size: clamp(1rem, .95rem + .5vw, 1.18rem); line-height: 1.7; color: var(--text-soft); max-width: 46ch; }
.button { min-height: 46px; border-radius: 14px; font-size: .875rem; font-weight: 700; }
.button--primary {
  background: linear-gradient(135deg,#7c3aed 0%,#6d28d9 55%,#5b21b6 100%);
  color: #fff; box-shadow: 0 4px 20px rgba(124,58,237,.28), 0 1px 4px rgba(124,58,237,.16);
}
.button--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(124,58,237,.22), 0 2px 8px rgba(124,58,237,.12); }
.button--ghost { background: var(--surface); border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); color: var(--text); }
.button--ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

.hero-preview-card,
.lead-feature,
.content-card,
.atlas-card,
.discovery-card,
.detail-panel,
.detail-side-block,
.insight-card,
.quote-card,
.search-shell,
.filter-shell,
.learning-strip,
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}
.hero-preview-card { border-radius: 20px; padding: 0; overflow: hidden; transition: transform .36s cubic-bezier(.16,1,.3,1), box-shadow .36s cubic-bezier(.16,1,.3,1); }
.hero-preview-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hero-preview-card::before { display: none; }
.preview-top { padding: 1.25rem 1.25rem 0; }
.preview-badge,
.micro-tag,
.meta-chip,
.section-label,
.mini-panel__label,
.card-eyebrow {
  font-size: .6875rem; letter-spacing: .08em; font-weight: 700; text-transform: uppercase;
}
.preview-badge { background: var(--primary-soft); color: var(--accent-2); border: 1px solid var(--accent-border); }
.micro-tag,
.meta-chip { background: var(--primary-soft); color: var(--accent-2); }
.preview-window { border: 0; border-radius: 0; box-shadow: none; background: var(--surface-2); }
.preview-stage {
  min-height: 315px;
  background:
    linear-gradient(180deg, transparent 50%, rgba(13,11,24,.35) 100%),
    radial-gradient(circle at 30% 18%, rgba(124,58,237,.16), transparent 28%),
    linear-gradient(145deg, var(--surface-2), var(--surface));
}
.preview-overlay {
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  border-radius: 16px; box-shadow: var(--shadow-sm);
}
.preview-overlay h2 { font-size: 1.65rem; }
.floating-chip { display: none; }

.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section + .section { border-top: 1px solid var(--divider); }
.section-head { align-items: flex-end; gap: 1.5rem; margin-bottom: 2.5rem; }
.section-label { color: var(--primary); margin-bottom: .75rem; }
.section-heading p,
.section-copy { color: var(--text-soft); font-size: .875rem; line-height: 1.7; }
.section h2,
.section-head h2 { font-size: clamp(1.625rem, .5rem + 3.5vw, 2.75rem); }
.pill-link,
.btn-sm {
  height: 34px; padding: 0 1rem; border-radius: 10px; font-size: .875rem; font-weight: 600;
  color: var(--primary); border: 1.5px solid var(--accent-border); background: transparent; box-shadow: none;
}
.pill-link:hover,
.btn-sm:hover { background: var(--primary-soft); border-color: var(--primary); transform: none; }

.card-grid { gap: 1rem; }
.content-card {
  display: flex; flex-direction: column; gap: .75rem; padding: 1.5rem;
  border-radius: 20px; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.content-card::after { background: linear-gradient(90deg,#7c3aed,#6d28d9,#5b21b6); transform: scaleX(0); }
.content-card:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--shadow-md), 0 0 0 1px var(--primary-soft); }
.content-card:hover::after { transform: scaleX(1); }
.content-card__icon {
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: .25rem;
  color: var(--primary); background: var(--surface-2); border: 1px solid var(--border); box-shadow: none;
}
.card-eyebrow { color: var(--primary); }
.content-card h3 { font-size: clamp(1.25rem, .9rem + 1vw, 1.72rem); line-height: 1.18; }
.content-card p { color: var(--text-soft); font-size: .875rem; line-height: 1.65; }
.card-link { color: var(--primary); font-size: .875rem; }

.timeline-main {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}
.timeline-main::before { left: 35px; top: 28px; bottom: 28px; background: linear-gradient(180deg,var(--primary), color-mix(in srgb,var(--primary) 35%, transparent), transparent); }
.timeline-item { grid-template-columns: 70px 1fr; border-bottom-color: var(--divider); padding: 1rem 0; }
.time-dot { left: 28px; width: 14px; height: 14px; background: radial-gradient(circle at 35% 35%, #fff, var(--primary)); box-shadow: 0 0 0 6px rgba(124,58,237,.13); }
.timeline-item:hover .time-dot { box-shadow: 0 0 0 8px rgba(124,58,237,.10); transform: scale(1.1); }
.year { color: var(--primary); }
.timeline-card { background: var(--surface); border: 1px solid var(--divider); border-radius: 14px; padding: 1rem; }
.timeline-card h3 { font-size: clamp(1.2rem, .9rem + .9vw, 1.65rem); }
.timeline-card p { font-size: .875rem; color: var(--text-soft); }
.timeline-item:hover .timeline-card { transform: none; border-color: var(--accent-border); box-shadow: var(--shadow-sm); }
.timeline-impact { background: var(--primary-soft); color: var(--accent-2); border-radius: 10px; }

.search-shell,
.filter-shell { border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm); }
.search-shell::before { background: radial-gradient(circle, rgba(124,58,237,.12), transparent 65%); }
.search-bar { height: 52px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,.12), var(--shadow-sm); }
.chip,
.filter-chip,
.tag { border-radius: 9999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-soft); }
.chip:hover,
.filter-chip:hover,
.filter-chip.is-active { color: var(--primary); border-color: var(--accent-border); background: var(--primary-soft); }
.filter-toggle { background: var(--surface); border-color: var(--border); color: var(--text); border-radius: 14px; }
.filter-toggle:hover,
.filter-toggle.is-open { background: var(--primary-soft); color: var(--primary); border-color: var(--accent-border); }
.filter-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-sm); }

.fact-card,
.fact-link-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; }
.fact-card:hover,
.fact-link-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm), 0 0 0 1px var(--primary-soft); }

.learning-strip { background: var(--surface-alt); border-radius: 20px; box-shadow: none; }
.learning-strip__item span { color: var(--primary); }
.learning-strip__item strong { font-family: var(--font-display); font-weight: 400; }
.quote-card { background: linear-gradient(145deg, var(--primary), var(--primary-hover)); color: #fff; }
.quote-card::before { color: rgba(255,255,255,.16); }
.quote-card p,
.quote-card .section-label,
.quote-card span { color: #fff; }
.insight-item { background: var(--surface-alt); border-color: var(--border); }
.insight-icon { background: var(--primary-soft); color: var(--primary); border-color: var(--accent-border); box-shadow: none; }

.site-footer { padding-bottom: 5rem; }
.footer-brand strong { font-family: var(--font-display); font-weight: 400; }
.footer-links a:hover { color: var(--primary); }
.back-to-top { border-radius: 14px; background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-md); }
.back-to-top:hover { color: var(--primary); border-color: var(--accent-border); }

.mobile-dock {
  border: 1px solid var(--border); border-radius: 18px 18px 0 0;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 -8px 28px rgba(13,11,24,.08);
}
.mobile-dock .nav-link { color: var(--text-soft); }
.mobile-dock .nav-link.is-active,
.mobile-dock .nav-link:hover { color: var(--primary); background: var(--primary-soft); }
.mobile-dock .nav-label { font-size: .65rem; font-weight: 700; }

@media (max-width: 1080px) {
  .hero-panel { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .shell { padding-top: 82px; padding-bottom: 5.8rem; }
  .site-header { height: 64px; }
  .site-nav { display: none; }
  .hero-panel { padding: 1.5rem; border-radius: 22px; }
  .hero-copy h1, .page-top h1 { font-size: clamp(2.35rem, 14vw, 3.6rem); max-width: 9ch; }
  .section { padding-block: 2.8rem; }
  .section-head { margin-bottom: 1.6rem; }
  .content-card,
  .timeline-main,
  .search-shell,
  .filter-shell { border-radius: 18px; }
  .timeline-main::before { left: 29px; }
  .time-dot { left: 22px; }
  .timeline-item { grid-template-columns: 56px 1fr; }
  .mobile-dock { display: grid; }
  .mobile-dock .nav-label { position: static; width: auto; height: auto; clip-path: none; overflow: visible; white-space: nowrap; }
  .back-to-top { bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-preview-card:hover,
  .content-card:hover,
  .button--primary:hover { transform: none; }
}

/* =========================================================
   FILTER DROPDOWN + HEADER PANEL ICON TWEAKS
========================================================= */
.toolbar-shell {
  overflow: visible;
}
.search-toolbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}
.filter-toggle {
  position: relative;
  z-index: 3;
  min-width: 160px;
  justify-content: center;
}
.filter-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(440px, calc(100vw - 3rem));
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 8;
}
.filter-dropdown.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.filter-panel {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px;
  max-height: min(62vh, 420px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.filter-chip {
  width: 100%;
  justify-content: flex-start;
  min-height: 44px;
  padding: 0 16px;
  text-align: left;
  font-size: .95rem;
}

@media (max-width: 760px) {
  .search-toolbar {
    grid-template-columns: 1fr;
  }
  .filter-toggle {
    width: 100%;
  }
  .filter-dropdown {
    left: 0;
    right: 0;
    width: auto;
  }
}

/* DROPDOWN SEARCH/FILTER FIX */
.search-shell,
.toolbar-shell {
  overflow: visible !important;
}
.search-toolbar--dropdown {
  position: relative;
  align-items: stretch;
}
.search-bar--dropdown-trigger {
  cursor: text;
  min-height: 54px;
  border-color: var(--border);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.search-bar--dropdown-trigger:hover,
.search-bar--dropdown-trigger.is-open {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,.12), var(--shadow-sm);
}
.search-bar__chevron {
  flex: 0 0 auto;
  color: var(--text-soft);
  opacity: .7;
  transition: transform .18s ease, color .18s ease, opacity .18s ease;
}
.search-bar__chevron svg {
  transform: rotate(90deg);
}
.search-bar--dropdown-trigger.is-open .search-bar__chevron {
  color: var(--primary);
  opacity: 1;
}
.search-bar--dropdown-trigger.is-open .search-bar__chevron svg {
  transform: rotate(90deg) translateX(2px);
}
.filter-toggle {
  min-height: 54px;
  border-radius: 16px;
}
.filter-dropdown {
  display: none;
  margin-top: 12px;
  padding: 18px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
  position: relative;
  z-index: 8;
}
.filter-dropdown.is-open {
  display: block;
  animation: dropdownIn .18s cubic-bezier(.16,1,.3,1) both;
}
.filter-dropdown__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text);
}
.filter-dropdown__head strong {
  font-size: .95rem;
}
.filter-dropdown__head span {
  color: var(--text-soft);
  font-size: .82rem;
}
.filter-dropdown .filter-panel {
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-dropdown .filter-chip {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  font-weight: 700;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.filter-dropdown .filter-chip:hover {
  transform: translateY(-1px);
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  background: var(--primary-soft);
}
.filter-dropdown .filter-chip.is-active {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
}
@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 760px) {
  .search-toolbar--dropdown { grid-template-columns: 1fr; }
  .search-bar--dropdown-trigger { min-height: 52px; }
  .filter-toggle { width: 100%; justify-content: center; min-height: 48px; }
  .filter-dropdown { padding: 14px; border-radius: 18px; }
  .filter-dropdown__head { align-items: flex-start; flex-direction: column; gap: 2px; }
  .filter-dropdown .filter-panel { gap: 8px; }
  .filter-dropdown .filter-chip { min-height: 34px; padding-inline: 12px; font-size: .88rem; }
}
