/* ==========================================================================
   HOK — House of Knowledge
   Riding on the Development Corridors
   ========================================================================== */

:root {
  --bg: #0b0e0c;
  --bg-2: #111614;
  --bg-3: #171c19;
  --bg-4: #1e2622;
  --ink: #f3eee4;
  --ink-soft: #c9c3b6;
  --muted: #8d948c;
  --faint: #5c635d;
  --line: rgba(243, 238, 228, 0.09);
  --line-strong: rgba(243, 238, 228, 0.16);
  --gold: #d4b05a;
  --gold-2: #f0d78c;
  --gold-dim: rgba(212, 176, 90, 0.14);
  --sage: #7ea184;
  --teal: #3f8f7e;
  --teal-dim: rgba(63, 143, 126, 0.16);
  --danger: #c96b4a;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --radius-sm: 10px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Outfit", "Avenir Next", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(212, 176, 90, 0.08), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(63, 143, 126, 0.07), transparent 50%),
    var(--bg);
  line-height: 1.6;
  font-size: 16.5px;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

::selection {
  background: var(--gold);
  color: #1a1408;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.display {
  font-family: var(--font-display);
  font-weight: 420;
  letter-spacing: -0.035em;
  line-height: 0.96;
  margin: 0;
}

.display em {
  font-style: italic;
  font-weight: 380;
  color: var(--gold-2);
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 38rem;
  line-height: 1.7;
}

.muted { color: var(--muted); }
.gold { color: var(--gold); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 480; letter-spacing: -0.03em; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.wrap {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.section {
  padding: clamp(72px, 10vw, 140px) 0;
  position: relative;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head h2 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.95;
  margin: 12px 0 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* --------------------------------------------------------------------------
   Loader
   -------------------------------------------------------------------------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #070908;
  display: grid;
  place-items: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-mark {
  width: 72px;
  height: 72px;
}

.loader-mark path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: draw 1.1s var(--ease) forwards;
}

.loader-mark circle {
  fill: var(--gold-2);
  opacity: 0;
  animation: pop 0.4s 0.85s var(--ease) forwards;
}

.loader-word {
  position: absolute;
  margin-top: 110px;
  font-family: var(--font-mono);
  letter-spacing: 0.42em;
  font-size: 11px;
  color: var(--gold);
  opacity: 0;
  animation: rise 0.6s 0.7s var(--ease) forwards;
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Cursor
   -------------------------------------------------------------------------- */

.cursor,
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 90;
  border-radius: 50%;
  mix-blend-mode: difference;
}

.cursor {
  width: 36px; height: 36px;
  border: 1px solid rgba(243, 238, 228, 0.55);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s, border-color 0.25s, opacity 0.3s;
}

.cursor.is-live,
.cursor-dot.is-live { opacity: 1; }

.cursor.is-hot {
  width: 64px; height: 64px;
  background: rgba(212, 176, 90, 0.12);
  border-color: var(--gold);
}

.cursor-dot {
  width: 5px; height: 5px;
  background: var(--gold-2);
  transform: translate(-50%, -50%);
  opacity: 0;
}

@media (pointer: coarse) {
  .cursor, .cursor-dot { display: none; }
}

@media (pointer: fine) {
  body, a, button { cursor: none; }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s, transform 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(11, 14, 12, 0.72);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--line);
}

.site-header.is-hidden { transform: translateY(-110%); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - var(--gutter) * 2));
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.brand-mark {
  width: 34px; height: 34px;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 560;
  letter-spacing: 0.02em;
}

.brand-name span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 8px 14px;
  font-size: 13.5px;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
  background: rgba(243, 238, 228, 0.06);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s, transform 0.3s var(--ease);
}

.icon-btn:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
}

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  position: relative;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  position: absolute;
  left: 11px;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.menu-toggle span { top: 19px; }
.menu-toggle span::before { content: ""; top: -6px; }
.menu-toggle span::after { content: ""; top: 6px; }

body.nav-open .menu-toggle span { background: transparent; }
body.nav-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

.btn svg { width: 16px; height: 16px; }

.btn-gold {
  background: linear-gradient(180deg, #e4c57a, var(--gold));
  color: #1c1508;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(212, 176, 90, 0.22);
}

.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
}

.btn-gold:hover::after { animation: shine 0.8s var(--ease); }
.btn-gold:hover { transform: translateY(-2px); }

.btn-ghost {
  border: 1px solid rgba(243, 238, 228, 0.28);
  color: var(--ink);
  background: rgba(11, 14, 12, 0.38);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
}

@keyframes shine { to { transform: translateX(120%); } }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: end;
  padding: calc(var(--nav-h) + 32px) 0 48px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: ken 22s ease-in-out alternate infinite;
  filter: saturate(0.85) contrast(1.05);
}

@keyframes ken {
  to { transform: scale(1.16) translate3d(-1.5%, -1%, 0); }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,14,12,0.35) 0%, rgba(11,14,12,0.2) 30%, rgba(11,14,12,0.78) 70%, var(--bg) 100%),
    radial-gradient(ellipse at 70% 40%, transparent 20%, rgba(11,14,12,0.45) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(243,238,228,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243,238,228,0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 10%, transparent 72%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-bottom: 28px;
}

.hero-inner .kicker,
.hero-inner .display,
.hero-inner .lede,
.hero-inner .hero-actions,
.hero-inner .hero-meta {
  opacity: 0;
}

body.is-ready .hero-inner .kicker,
body.is-ready .hero-inner .display,
body.is-ready .hero-inner .lede,
body.is-ready .hero-inner .hero-actions,
body.is-ready .hero-inner .hero-meta {
  animation: rise 0.85s var(--ease) both;
}
.hero-inner .display { animation-delay: 0.12s; }
.hero-inner .lede { animation-delay: 0.22s; }
.hero-inner .hero-actions { animation-delay: 0.32s; }
.hero-inner .hero-meta { animation-delay: 0.42s; }

.hero h1 {
  font-size: clamp(3.4rem, 9.4vw, 8.6rem);
  max-width: 14ch;
  margin: 18px 0 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-meta {
  display: flex;
  gap: 36px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.hero-meta div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.hero-meta div span {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-hint {
  position: absolute;
  right: var(--gutter);
  bottom: 36px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(var(--gold), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  left: 0; width: 1px; height: 16px;
  background: var(--gold-2);
  animation: drip 1.8s ease-in-out infinite;
}

@keyframes drip {
  0% { top: -16px; }
  100% { top: 56px; }
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */

.marquee {
  border-block: 1px solid var(--line);
  background: rgba(23, 28, 25, 0.55);
  overflow: hidden;
  padding: 16px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
  gap: 0;
}

.marquee-track span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0 28px;
  white-space: nowrap;
}

.marquee-track span i {
  font-style: normal;
  color: var(--gold);
  padding-right: 28px;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Atlas preview / map
   -------------------------------------------------------------------------- */

.atlas-stage {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(63,143,126,0.12), transparent 55%),
    var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  min-height: 640px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
}

.atlas-map {
  position: relative;
  padding: 18px 8px 18px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
}

.atlas-map svg,
.atlas-map .africa-atlas {
  width: 100%;
  height: auto;
  max-height: none;
  min-height: 520px;
  overflow: visible;
  display: block;
}

.country path.continent,
.continent {
  fill: #18231f;
  stroke: rgba(232, 214, 168, 0.48);
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  transition: fill 0.45s var(--ease), stroke 0.45s var(--ease);
}

.country.is-lit path.continent {
  fill: #2f4a3d;
  stroke: rgba(240, 215, 140, 0.9);
  stroke-width: 1.55;
}

.route {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 10 12;
  opacity: 0.38;
  animation: dash 18s linear infinite;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.route.is-on {
  opacity: 1;
  stroke-width: 3.6;
  filter: url(#routeGlow) drop-shadow(0 0 6px rgba(212,176,90,0.55));
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  animation: drawRoute 1.55s var(--ease) forwards;
}

@keyframes dash { to { stroke-dashoffset: -220; } }
@keyframes drawRoute { to { stroke-dashoffset: 0; } }

.node {
  fill: var(--gold-2);
  stroke: rgba(12, 16, 14, 0.65);
  stroke-width: 1.2;
  filter: drop-shadow(0 0 6px rgba(240,215,140,0.8));
  transform-box: fill-box;
  transform-origin: center;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.node.pulse {
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.55); opacity: 0.55; }
}

.atlas-panel {
  padding: 36px 36px 36px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.corridor-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 22px;
}

.corridor-item {
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  color: var(--ink-soft);
  transition: background 0.25s, border-color 0.25s, transform 0.35s var(--ease);
}

.corridor-item:hover,
.corridor-item.is-on {
  background: rgba(243,238,228,0.04);
  border-color: var(--line-strong);
  color: var(--ink);
}

.corridor-item.is-on {
  border-color: rgba(212,176,90,0.4);
  background: var(--gold-dim);
}

.corridor-item .idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
}

.corridor-item small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform 0.5s var(--ease), border-color 0.3s, box-shadow 0.5s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(212,176,90,0.35);
  box-shadow: var(--shadow);
}

.card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.card:hover .card-media img { transform: scale(1.07); }

.card-media .tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(11,14,12,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card-body { padding: 22px 22px 24px; }

.card-body h3 {
  font-size: 1.45rem;
  margin: 0 0 8px;
  line-height: 1.15;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--gold-2);
  font-size: 13.5px;
}

.room {
  padding: 28px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(243,238,228,0.03), transparent 40%),
    var(--bg-3);
}

.room-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--gold);
  margin-bottom: 28px;
}

.room h3 { font-size: 1.6rem; margin: 0 0 8px; }

/* --------------------------------------------------------------------------
   Stats band
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-2);
}

.stat {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: 0; }

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 480;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13.5px;
}

/* --------------------------------------------------------------------------
   Insights
   -------------------------------------------------------------------------- */

.insight-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}

.insight-feature {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
}

.insight-feature img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.insight-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(11,14,12,0.92) 100%);
}

.insight-feature .copy {
  position: relative;
  z-index: 1;
  padding: 32px;
}

.insight-feature h3 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 10px 0 12px;
  max-width: 18ch;
}

.stack { display: flex; flex-direction: column; gap: 18px; }

.insight-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-3);
  transition: border-color 0.25s, transform 0.4s var(--ease);
}

.insight-row:hover {
  border-color: rgba(212,176,90,0.35);
  transform: translateX(4px);
}

.insight-row img {
  width: 140px; height: 96px;
  object-fit: cover;
  border-radius: 12px;
}

.insight-row h4 { margin: 0 0 6px; font-size: 1.15rem; }
.insight-row p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.meta-line {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Article
   -------------------------------------------------------------------------- */

main { min-height: 60vh; }

.article-hero {
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 96px;
}

.article-hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  max-width: 16ch;
  margin: 16px 0 24px;
}

.article-cover {
  border-radius: 24px;
  overflow: hidden;
  margin: 32px 0 48px;
  max-height: 520px;
}

.article-cover img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.prose h2 {
  color: var(--ink);
  font-size: 2rem;
  margin: 2.2em 0 0.6em;
}

.prose p { margin: 0 0 1.2em; }
.prose blockquote {
  margin: 2em 0;
  padding: 8px 0 8px 24px;
  border-left: 2px solid var(--gold);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Page hero (inner)
   -------------------------------------------------------------------------- */

.page-hero {
  padding: calc(var(--nav-h) + 72px) 0 48px;
  position: relative;
}

.page-hero h1 {
  font-size: clamp(3rem, 8vw, 6.4rem);
  margin: 12px 0 18px;
  max-width: 14ch;
}

/* --------------------------------------------------------------------------
   Filters
   -------------------------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 32px;
}

.filter {
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 13px;
  background: transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filter.is-on,
.filter:hover {
  background: var(--gold);
  color: #1c1508;
  border-color: var(--gold);
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 380px;
  display: grid;
  align-items: center;
}

.cta img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11,14,12,0.88) 0%, rgba(11,14,12,0.55) 55%, rgba(11,14,12,0.25) 100%);
}

.cta .copy {
  position: relative;
  z-index: 1;
  padding: clamp(32px, 5vw, 64px);
}

.cta h2 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  margin: 10px 0 16px;
  max-width: 14ch;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  background: #090c0a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
  font-weight: 500;
}

.site-footer a {
  display: block;
  color: var(--ink-soft);
  font-size: 14.5px;
  padding: 4px 0;
  transition: color 0.2s;
}

.site-footer a:hover { color: var(--gold-2); }

.footer-brand p {
  color: var(--muted);
  max-width: 32ch;
  margin: 12px 0 0;
  font-size: 14.5px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12.5px;
}

/* --------------------------------------------------------------------------
   Command palette
   -------------------------------------------------------------------------- */

.cmd {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(7,9,8,0.62);
  backdrop-filter: blur(10px);
  display: none;
  place-items: start center;
  padding-top: 14vh;
}

.cmd.is-open { display: grid; }

.cmd-box {
  width: min(560px, calc(100% - 32px));
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: cmdIn 0.35s var(--ease);
}

@keyframes cmdIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
}

.cmd-box input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.cmd-list { padding: 8px; max-height: 320px; overflow: auto; }

.cmd-list a,
.cmd-list button {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 10px;
  color: var(--ink-soft);
}

.cmd-list a:hover,
.cmd-list button:hover,
.cmd-list a:focus {
  background: rgba(243,238,228,0.05);
  color: var(--ink);
}

.cmd-list small { color: var(--muted); font-family: var(--font-mono); font-size: 11px; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  max-width: 460px;
}

.form input,
.form textarea {
  background: rgba(243,238,228,0.04);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.form textarea { min-height: 120px; resize: vertical; }

.form input:focus,
.form textarea:focus {
  border-color: var(--gold);
  background: rgba(212,176,90,0.06);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--gold);
  color: #1c1508;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  z-index: 80;
  transition: 0.4s var(--ease);
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --------------------------------------------------------------------------
   Reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */

.timeline {
  display: grid;
  gap: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 8px; bottom: 8px;
  width: 1px;
  background: var(--line-strong);
}

.tl-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 20px;
  padding: 18px 0;
}

.dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--gold);
  margin: 8px 0 0 13px;
  box-shadow: 0 0 0 6px rgba(212,176,90,0.12);
}

.tl-item h3 { margin: 0 0 6px; font-size: 1.35rem; }
.tl-item p { margin: 0; color: var(--muted); }

/* --------------------------------------------------------------------------
   House page mosaic
   -------------------------------------------------------------------------- */

.mosaic {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 280px 220px;
  gap: 14px;
}

.mosaic img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.mosaic .wide { grid-row: span 2; }

/* --------------------------------------------------------------------------
   Library table
   -------------------------------------------------------------------------- */

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.table tr { transition: background 0.2s; }
.table tbody tr:hover { background: rgba(243,238,228,0.03); }

.chip {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Mobile nav
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .section-head,
  .split,
  .grid-3,
  .grid-2,
  .stats,
  .atlas-stage,
  .insight-hero,
  .footer-grid,
  .mosaic {
    grid-template-columns: 1fr;
  }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .stat:nth-child(2), .stat:nth-child(4) { border-right: 0; }

  .mosaic { grid-template-rows: 220px 180px 180px; }
  .mosaic .wide { grid-row: auto; min-height: 220px; }

  .nav, .header-cta .btn { display: none; }
  .menu-toggle { display: grid; place-items: center; }

  .nav {
    position: fixed;
    inset: 0;
    background: rgba(11,14,12,0.96);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 90px var(--gutter);
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
  }

  body.nav-open .nav {
    display: flex;
    transform: none;
  }

  .nav a {
    font-family: var(--font-display);
    font-size: 2.2rem;
    padding: 6px 0;
  }

  .hero h1 { font-size: clamp(2.8rem, 14vw, 4.4rem); }
  .scroll-hint { display: none; }
  .insight-row { grid-template-columns: 1fr; }
  .insight-row img { width: 100%; height: 160px; }
  .atlas-panel { padding: 12px 20px 28px; }
  .atlas-map { padding: 12px; }
}

@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .brand-name span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal,
  .hero-inner .kicker,
  .hero-inner .display,
  .hero-inner .lede,
  .hero-inner .hero-actions,
  .hero-inner .hero-meta { opacity: 1; transform: none; }
  .hero-media img { transform: none; }
}

