/* HistoricalAtlas Chinese landing — museum / cinematic atlas */

:root {
  --ink: #090b10;
  --ink-2: #10131b;
  --ink-3: #181c27;
  --panel: rgba(18, 21, 30, 0.72);
  --gold: #c9a44a;
  --gold-2: #e8d5a3;
  --gold-dim: rgba(201, 164, 74, 0.18);
  --bronze: #8a6a3b;
  --parchment: #efe6d4;
  --muted: #a39886;
  --text: #f3ead8;
  --text-dim: #b7ac97;
  --line: rgba(201, 164, 74, 0.22);
  --danger: #8b3a3a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --nav-h: 72px;
  --atlas-serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", serif;
}

[data-theme="light"] {
  --ink: #f6f0e4;
  --ink-2: #efe6d4;
  --ink-3: #e4d8c2;
  --panel: rgba(255, 250, 240, 0.78);
  --gold: #8a6420;
  --gold-2: #5c4314;
  --gold-dim: rgba(138, 100, 32, 0.14);
  --bronze: #6e5228;
  --parchment: #3a3226;
  --muted: #6f6556;
  --text: #2a241b;
  --text-dim: #5c5346;
  --line: rgba(138, 100, 32, 0.28);
  --shadow: 0 20px 50px rgba(58, 44, 18, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

html[lang="en"] { --atlas-serif: "Source Serif 4", "Noto Serif", Georgia, serif; }
html[lang="ja"] { --atlas-serif: "Noto Serif JP", serif; }
html[lang="ko"] { --atlas-serif: "Noto Serif KR", serif; }
html[lang="zh-Hant"] { --atlas-serif: "Noto Serif TC", "Songti TC", serif; }
html[lang="ar"] { --atlas-serif: "Noto Naskh Arabic", "Noto Serif", serif; }
html[lang="he"] { --atlas-serif: "Noto Serif Hebrew", "Noto Serif", serif; }
html[lang="hi"] { --atlas-serif: "Noto Serif Devanagari", "Noto Serif", serif; }
html[lang="th"] { --atlas-serif: "Noto Serif Thai", "Noto Serif", serif; }
html[lang="vi"],
html[lang="tr"],
html[lang="id"],
html[lang="ms"],
html[lang="ru"],
html[lang="uk"],
html[lang="pl"],
html[lang="cs"],
html[lang="sk"],
html[lang="hu"],
html[lang="ro"],
html[lang="el"],
html[lang="it"],
html[lang="fr"],
html[lang="es"],
html[lang="ca"],
html[lang="pt"],
html[lang="de"],
html[lang="nl"],
html[lang="da"],
html[lang="sv"],
html[lang="no"],
html[lang="fi"],
html[lang="hr"] { --atlas-serif: "Source Serif 4", "Noto Serif", Georgia, serif; }

body.atlas-cn {
  font-family: var(--atlas-serif);
  background: var(--ink);
  color: var(--text);
  line-height: 1.7;
  overflow-x: clip;
}

body.atlas-cn a {
  color: var(--gold);
  text-decoration: none;
}

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

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 8;
  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");
}

.atlas-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.28em;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--gold);
  font-family: Cinzel, "Noto Serif SC", serif;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.eyebrow::before {
  background: linear-gradient(90deg, var(--gold), transparent);
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}

.lead {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 640px;
}

/* Nav */
.atlas-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(9, 11, 16, 0.78), rgba(9, 11, 16, 0.28) 70%, transparent);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}

.atlas-nav.is-scrolled {
  background: rgba(9, 11, 16, 0.88);
  border-bottom-color: var(--line);
}

[data-theme="light"] .atlas-nav {
  background: linear-gradient(180deg, rgba(246, 240, 228, 0.88), rgba(246, 240, 228, 0.2) 80%, transparent);
}

[data-theme="light"] .atlas-nav.is-scrolled {
  background: rgba(246, 240, 228, 0.92);
}

.atlas-nav .atlas-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-2) !important;
  font-family: Cinzel, "Noto Serif SC", serif;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 14px;
  letter-spacing: 0.08em;
}

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

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

.theme-toggle {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--gold-2);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-sun,
[data-theme="dark"] .theme-toggle .icon-moon {
  display: inline;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold-2);
  cursor: pointer;
}

/* Hero */
.hero {
  --gold: #c9a44a;
  --gold-2: #e8d5a3;
  --text: #f3ead8;
  --text-dim: #d9d0bc;
  --muted: #a39886;
  --line: rgba(201, 164, 74, 0.22);
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #f3ead8;
  background: radial-gradient(ellipse at 50% 40%, #1a140c 0%, #090b10 58%, #05060a 100%);
}

.hero-canvas,
.hero-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-canvas {
  z-index: 0;
  opacity: 1;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 30%, rgba(5, 6, 10, 0.55) 72%, rgba(5, 6, 10, 0.92) 100%),
    linear-gradient(180deg, rgba(5, 6, 10, 0.2), transparent 18%, transparent 78%, #090b10);
}

.hero-fx {
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.cavalry-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8%;
  height: 140px;
  opacity: 0.28;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.4));
}

.cavalry-track::before {
  content: "";
  position: absolute;
  inset: auto 0 -20px 0;
  height: 90px;
  background: linear-gradient(180deg, transparent, rgba(40, 28, 10, 0.55));
}

.cavalry-line {
  position: absolute;
  bottom: 0;
  display: flex;
  gap: 90px;
  animation: gallop 32s linear infinite;
  color: #0c0906;
  filter: drop-shadow(0 0 10px rgba(201, 164, 74, 0.28));
}

.cavalry-line.slow {
  bottom: 28px;
  opacity: 0.55;
  animation-duration: 46s;
  animation-delay: -12s;
}

.cavalry-line.reverse {
  animation-direction: reverse;
  bottom: 54px;
  opacity: 0.32;
  animation-duration: 54s;
}

@keyframes gallop {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.dust-cloud {
  position: absolute;
  bottom: 6%;
  width: 220px;
  height: 40px;
  background: radial-gradient(ellipse, rgba(201, 164, 74, 0.18), transparent 70%);
  animation: drift 18s linear infinite;
  filter: blur(6px);
}

.dust-cloud:nth-child(2) { left: 20%; animation-delay: -6s; }
.dust-cloud:nth-child(3) { left: 55%; animation-delay: -11s; width: 280px; }

@keyframes drift {
  0% { transform: translateX(40vw) scale(0.8); opacity: 0; }
  20% { opacity: 0.7; }
  80% { opacity: 0.4; }
  100% { transform: translateX(-30vw) scale(1.3); opacity: 0; }
}

.spark {
  position: absolute;
  width: 2px;
  height: 18px;
  background: linear-gradient(var(--gold-2), transparent);
  opacity: 0.35;
  animation: spark 6s linear infinite;
}

.spark:nth-child(odd) { animation-duration: 8s; }

@keyframes spark {
  0% { transform: translate3d(10vw, 80vh, 0) rotate(-18deg); opacity: 0; }
  12% { opacity: 0.5; }
  100% { transform: translate3d(70vw, -10vh, 0) rotate(-18deg); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 120px 20px 80px;
  max-width: 860px;
}

.hero-content h1 {
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.08;
  color: var(--gold-2);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.hero-content h1 span {
  display: block;
  font-size: 0.32em;
  letter-spacing: 0.42em;
  font-family: Cinzel, serif;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 400;
}

.hero-content .lead {
  margin: 18px auto 28px;
  font-size: 18px;
  color: #d9d0bc;
}

.year-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 11, 16, 0.45);
  color: var(--gold-2);
  font-size: 13px;
  letter-spacing: 0.12em;
  margin-bottom: 22px;
}

.year-chip b {
  color: #fff;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 148px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  font-size: 14px;
  letter-spacing: 0.12em;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(180deg, #e3c878, #b58a2c);
  color: #1a1408 !important;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(201, 164, 74, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--gold-2) !important;
}

.hero-scroll {
  position: absolute;
  z-index: 3;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--muted);
}

.hero-scroll span {
  display: block;
  width: 1px;
  height: 34px;
  margin: 8px auto 0;
  background: linear-gradient(var(--gold), transparent);
  animation: pulse-line 1.8s ease-in-out infinite;
}

@keyframes pulse-line {
  0%, 100% { opacity: 0.2; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Pillars */
.section {
  position: relative;
  padding: 96px 0;
  scroll-margin-top: 84px;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--gold-2);
}

.pillars {
  background: var(--ink);
}

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

.pillar {
  position: relative;
  padding: 36px 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.pillar::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--gold-dim), transparent 70%);
}

.pillar:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}

.pillar .idx {
  font-family: Cinzel, serif;
  color: var(--gold);
  letter-spacing: 0.2em;
  font-size: 12px;
}

.pillar h3 {
  font-size: 28px;
  margin: 10px 0 8px;
}

.pillar p {
  color: var(--text-dim);
  margin: 0;
}

.pillar ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pillar li {
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-2);
}

/* Civilization stage */
.civ-stage {
  --gold: #c9a44a;
  --gold-2: #e8d5a3;
  --text: #f3ead8;
  --text-dim: #d9d0bc;
  --muted: #a39886;
  --line: rgba(201, 164, 74, 0.22);
  --panel: rgba(18, 21, 30, 0.72);
  color: #f3ead8;
  background:
    radial-gradient(ellipse at 50% 0%, #1c160e 0%, #090b10 55%);
  padding-bottom: 40px;
}

.globe-panel {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  align-items: stretch;
}

.globe-frame {
  position: relative;
  height: min(70vh, 620px);
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #07090e;
  box-shadow: var(--shadow);
}

.globe-frame canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.globe-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  color: var(--gold-2);
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 1.55;
  pointer-events: none;
}

.civ-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(16px);
}

.panel h3 {
  font-size: 18px;
  color: var(--gold-2);
}

.year-readout {
  font-family: Cinzel, "Noto Serif SC", serif;
  font-size: 28px;
  color: var(--gold);
  margin: 6px 0 14px;
}

.timeline input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}

.play-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.mini-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold-2);
  cursor: pointer;
  letter-spacing: 0.08em;
}

.mini-btn.is-on,
.mini-btn:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
}

.swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.empty-legend {
  color: var(--muted);
  font-size: 13px;
}

/* Features / app shots */
.features {
  background: var(--ink-2);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse .feature-copy {
  order: 2;
}

.feature-copy h3 {
  font-size: 32px;
  color: var(--gold-2);
}

.feature-shot {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #0d1016;
}

.feature-shot img {
  display: block;
  width: 100%;
}

.living-stage {
  position: relative;
  height: 460px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #07090e;
}

.crossfade,
.ken-host {
  position: absolute;
  inset: 0;
}

.crossfade img,
.ken-host img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ken-host img {
  animation: ken 22s ease-in-out infinite alternate;
}

.crossfade img {
  opacity: 0;
  animation: crossfade 18s ease-in-out infinite;
}

.crossfade img:nth-child(1) { animation-delay: 0s; }
.crossfade img:nth-child(2) { animation-delay: 6s; }
.crossfade img:nth-child(3) { animation-delay: 12s; }

.fade-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(7,9,14,0.55)),
    linear-gradient(90deg, rgba(7,9,14,0.2), transparent 30%);
  pointer-events: none;
}

.stage-float {
  position: absolute;
  width: 42%;
  right: 18px;
  bottom: 18px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(201,164,74,0.45);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  animation: float-card 7s ease-in-out infinite;
  background: #0b0d12;
}

.stage-float.alt {
  right: auto;
  left: 18px;
  bottom: 28px;
  width: 36%;
  animation-delay: -2.5s;
}

.stage-float img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.stage-float figcaption {
  padding: 8px 12px 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold-2);
  background: rgba(8,10,14,0.86);
}

.portrait-mosaic {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: 480px;
}

.portrait-mosaic figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.portrait-mosaic .p1 {
  grid-row: 1 / 3;
}

.portrait-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  animation: ken 16s ease-in-out infinite alternate;
}

.portrait-mosaic .p2 img { animation-delay: -4s; }
.portrait-mosaic .p3 img { animation-delay: -8s; }
.portrait-mosaic .p4 img { animation-delay: -11s; }

.portrait-mosaic figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8,10,14,0.72);
  color: var(--gold-2);
  font-size: 12px;
  letter-spacing: 0.18em;
  border: 1px solid var(--line);
}

@keyframes ken {
  from { transform: scale(1.08) translate3d(-1.5%, 0, 0); }
  to { transform: scale(1.18) translate3d(1.5%, -2%, 0); }
}

@keyframes crossfade {
  0% { opacity: 0; transform: scale(1.08); }
  8% { opacity: 1; }
  30% { opacity: 1; transform: scale(1); }
  38% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes float-card {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); }
}

/* Figures */
.figures {
  background:
    linear-gradient(180deg, var(--ink) 0%, #120e0a 40%, var(--ink) 100%);
}

.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-dim);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  letter-spacing: 0.1em;
}

.filter-btn.is-on {
  color: #1a1408;
  background: linear-gradient(180deg, #e3c878, #b58a2c);
  border-color: transparent;
}

.figure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  perspective: 1200px;
}

.figure-card {
  position: relative;
  padding: 0 0 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(165deg, rgba(201,164,74,0.08), rgba(255,255,255,0.02) 38%, rgba(0,0,0,0.2));
  transform-style: preserve-3d;
  transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.3s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.figure-card .photo {
  height: 252px;
  margin: 0 0 16px;
  overflow: hidden;
  background: #0c1018;
}

.figure-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
}

.figure-card.is-hidden {
  display: none;
}

.figure-card:hover {
  border-color: var(--gold);
}

.seal {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  font-size: 22px;
  color: var(--gold-2);
  margin-bottom: 14px;
  background: rgba(201, 164, 74, 0.08);
}

.tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin: 0 22px 6px;
}

.figure-card h3 {
  font-size: 22px;
  margin: 0 22px 4px;
}

.era {
  color: var(--muted);
  font-size: 13px;
  margin: 0 22px 10px;
}

.figure-card p {
  margin: 0 22px;
  color: var(--text-dim);
  font-size: 14px;
}

/* Stories */
.stories {
  background: var(--ink-2);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.story-col h3 {
  color: var(--gold-2);
  font-size: 22px;
  margin-bottom: 18px;
}

.story-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.story-list li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 14px;
}

.story-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

/* CTA */
.cta {
  text-align: center;
  padding: 100px 0 80px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201,164,74,0.16), transparent 55%),
    var(--ink);
}

.cta h2 {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--gold-2);
}

.cta .hero-actions {
  margin-top: 28px;
}

/* Footer */
.site-footer {
  padding: 40px 0 120px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

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

.disclaimer {
  max-width: 720px;
  margin: 10px auto 0;
  line-height: 1.8;
}

/* Banner */
#download-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: rgba(12, 10, 7, 0.92);
  color: var(--gold-2);
  border-top: 1px solid var(--gold);
  backdrop-filter: blur(12px);
  font-size: 14px;
}

#download-banner a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e3c878, #b58a2c);
  color: #1a1408;
  font-weight: 700;
}

#download-banner a:hover {
  filter: brightness(1.05);
}

@media (max-width: 980px) {
  .pillar-grid,
  .globe-panel,
  .feature-row,
  .feature-row.reverse,
  .figure-grid,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-copy {
    order: 0;
  }

  .globe-frame {
    min-height: 420px;
  }

  .living-stage {
    height: 380px;
  }

  .portrait-mosaic {
    height: 400px;
  }

  .figure-card .photo {
    height: 300px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: rgba(9, 11, 16, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 8px 0 16px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 24px;
  }
}

@media (max-width: 640px) {
  .hero-content h1 {
    font-size: 40px;
  }

  .cavalry-track {
    opacity: 0.18;
    height: 90px;
  }

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

  .figure-card .photo {
    height: 320px;
  }

  .living-stage,
  .portrait-mosaic {
    height: 340px;
  }

  .stage-float {
    width: 48%;
  }

  #download-banner {
    font-size: 12px;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cavalry-line,
  .dust-cloud,
  .spark,
  .hero-scroll span,
  .ken-host img,
  .crossfade img,
  .stage-float,
  .portrait-mosaic img,
  .figure-card .photo img {
    animation: none !important;
  }
  .crossfade img:first-child {
    opacity: 1;
  }
}

html[dir="rtl"] .hero-content,
html[dir="rtl"] .section-head,
html[dir="rtl"] .feature-copy,
html[dir="rtl"] .civ-side,
html[dir="rtl"] .site-footer,
html[dir="rtl"] .cta {
  text-align: right;
}

html[dir="rtl"] .nav-links {
  direction: rtl;
}
