/* The ZAZA Map (/vision/): the homepage's navy / yellow / electric blue and Titan One, on its own small sheet. */

:root {
  --font-display: "Titan One", "Arial Black", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --navy-950: #030a2c;
  --navy-900: #06124f;
  --navy-800: #0a1a6b;
  --navy-700: #0d2285;
  --blue: #1d4bff;
  --blue-bright: #3a66ff;
  --blue-deep: #0a2bb8;
  --yellow: #ffd60a;
  --yellow-soft: #ffe566;
  --red: #ff2e4d;
  --green: #3ddc84;
  --white: #ffffff;
  --text: #eef2ff;
  --muted: #b3c0f0;
  --drop: #000a2e;
  --line: rgba(58, 102, 255, 0.35);

  --radius: 22px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --topbar-h: 76px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 12px);
  background: var(--navy-950);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  background: linear-gradient(180deg, var(--navy-900) 0%, #051044 55%, var(--navy-950) 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1.5px);
  background-size: 24px 24px;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p { margin: 0; }
[hidden] { display: none !important; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.005em;
}

h2 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  text-shadow: 0 0.07em 0 var(--blue-deep);
}

h1 span, h2 span { color: var(--yellow); }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

main { position: relative; z-index: 1; padding-top: var(--topbar-h); overflow-x: clip; }

.kicker {
  margin: 0 0 0.8rem;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.1rem;
  padding: 0 1.5rem;
  border: 3px solid var(--drop);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--drop);
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--drop); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--drop); }
.btn-yellow { background: var(--yellow); color: var(--navy-900); }
.btn-yellow:hover { background: var(--yellow-soft); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-bright); }
.btn-outline { border-color: rgba(179, 192, 240, 0.45); background: transparent; color: var(--white); box-shadow: none; }
.btn-outline:hover { box-shadow: none; border-color: var(--yellow); }
.btn-sm { min-height: 2.6rem; padding: 0 1.1rem; font-size: 0.95rem; box-shadow: 0 4px 0 var(--drop); }

/* ---------- Top bar ---------- */

.topbar {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 var(--gutter);
  background: rgba(6, 18, 79, 0.94);
  border-bottom: 1px solid rgba(255, 214, 10, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 3.1rem;
  padding: 0 1.1rem 0 0.35rem;
  border: 3px solid var(--yellow);
  border-radius: 999px;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1;
}

.brand-mark { width: 2.25rem; height: 2.25rem; flex: none; border-radius: 50%; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }

.page-tag {
  padding: 0.45rem 0.9rem;
  border: 3px solid var(--blue);
  border-radius: 999px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1;
}

.topbar-actions { display: flex; align-items: center; gap: 0.7rem; margin-left: auto; }

.icon-pill {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border: 3px solid var(--blue);
  border-radius: 50%;
  color: var(--white);
  transition: background 150ms ease;
}

.icon-pill:hover { background: var(--blue); }
.icon-pill svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.play-pill { min-height: 3.1rem; }

@media (max-width: 720px) {
  :root { --topbar-h: 64px; }
  .brand { height: 2.7rem; font-size: 1.1rem; }
  .brand-mark { width: 1.9rem; height: 1.9rem; }
  .page-tag { display: none; }
  .icon-pill { width: 2.7rem; height: 2.7rem; }
  .play-pill { min-height: 2.7rem; padding: 0 1rem; font-size: 0.95rem; }
  .play-pill .wide { display: none; }
}

@media (max-width: 380px) { .icon-pill { display: none; } }

/* ---------- Intro ---------- */

/* A small title over the map (owner, 2026-10-25: "the title is too big and the actual map and rest not so much"). */
.intro {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(18px, 2.4vw, 30px) 0 clamp(14px, 1.6vw, 20px);
  text-align: center;
}

.intro .kicker { margin-bottom: 0.5rem; }

.intro h1 {
  color: var(--white);
  font-size: clamp(2rem, 3.4vw, 3rem);
  text-shadow: 0 0.07em 0 var(--blue-deep);
}

.lede {
  max-width: 38rem;
  margin: 0.6rem auto 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
}

/* The map as big as the screen allows with the sealed scroll under it (story.css leaves room for the open page too);
   once open, vision.js scrolls the page so the scroll's foot shows. */
@media (min-width: 721px) {
  .stage { --ms-h: 210px; }
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.2rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.legend li { display: inline-flex; align-items: center; gap: 0.45rem; }


/* ---------- The chronicle: every chapter on one long scroll ---------- */

.section {
  position: relative;
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-block: clamp(52px, 6vw, 88px) 0;
}

.section-head { max-width: 760px; margin-bottom: clamp(24px, 3.4vw, 40px); }
.section-head > p:not(.kicker) { margin-top: 1rem; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.1rem); }
.section-head .legend { justify-content: flex-start; }

.scroll {
  --ink: #3a2812;
  --ink-2: #6e5532;
  --ink-red: #8f1520;
  --rule: rgba(92, 62, 24, 0.45);
  max-width: 820px;
  margin: 0 auto;
  padding: 0 12px;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.5));
}

.chron {
  margin: 0;
  padding: 0.6rem clamp(1.1rem, 5vw, 3.2rem) 1rem;
  list-style: none;
}

.chron > li {
  padding: 1.3rem 0.4rem 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 160ms ease;
}

.chron > li:hover { background: rgba(255, 246, 214, 0.35); }

/* A small ink flourish between chapters. */
.chron > li + li { position: relative; }
.chron > li + li::before {
  content: "❦";
  position: absolute;
  top: -0.75rem;
  left: 50%;
  color: var(--ink-2);
  font-family: Georgia, serif;
  font-size: 1.2rem;
  line-height: 1;
  transform: translateX(-50%);
}

/* ---------- The flywheel ---------- */

.wheel {
  --r: 39%;
  position: relative;
  width: min(640px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
}

.wheel-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wheel-ring circle { fill: none; stroke: rgba(255, 214, 10, 0.55); stroke-width: 0.6; stroke-dasharray: 1.6 1.6; }
.wheel-ring .spin { transform-origin: 50px 50px; animation: wheel-spin 40s linear infinite; }
.wheel-ring path { fill: var(--yellow); }

@keyframes wheel-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wheel-ring .spin { animation: none; } }

.wheel-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  width: 30%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.wheel-hub img { width: 100%; height: auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.5)); }
.wheel-hub b { color: var(--yellow); font-family: var(--font-display); font-size: clamp(1rem, 2.4vw, 1.4rem); font-weight: 400; }

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

.wheel-stops li {
  position: absolute;
  left: calc(50% + var(--r) * sin(var(--i) * 60deg));
  top: calc(50% - var(--r) * cos(var(--i) * 60deg));
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  width: 31%;
  padding: 0.7rem 0.6rem 0.75rem;
  border: 3px solid var(--blue);
  border-radius: 18px;
  background: linear-gradient(160deg, var(--navy-700) 0%, var(--navy-800) 100%);
  text-align: center;
  transform: translate(-50%, -50%);
}

.wheel-stops b { font-size: 1.4rem; font-weight: 400; line-height: 1.1; }
.wheel-stops strong { color: var(--white); font-family: var(--font-display); font-size: clamp(0.92rem, 1.7vw, 1.08rem); font-weight: 400; line-height: 1.1; }
.wheel-stops span { color: var(--muted); font-size: clamp(0.78rem, 1.3vw, 0.86rem); font-weight: 600; line-height: 1.3; }

/* Phones: the wheel unrolls into a column, an arrow under each stop and "round again" after the last. */
@media (max-width: 620px) {
  .wheel { aspect-ratio: auto; width: 100%; }
  .wheel-ring { display: none; }
  .wheel-hub { position: static; width: 46%; margin: 0 auto 1rem; transform: none; }
  .wheel-stops { display: grid; gap: 1.7rem; }
  .wheel-stops li { position: relative; left: auto; top: auto; width: 100%; transform: none; }
  .wheel-stops li::after {
    content: "↓";
    position: absolute;
    left: 50%;
    top: calc(100% + 0.1rem);
    color: var(--yellow);
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1.2;
    transform: translateX(-50%);
  }
  .wheel-stops li:last-child::after { content: "↻ and round again"; font-size: 0.95rem; white-space: nowrap; }
  .wheel-stops li:last-child { margin-bottom: 1.6rem; }
}

/* ---------- Call to action + footer ---------- */

.cta { text-align: center; padding-bottom: clamp(52px, 6vw, 88px); }
.cta > p { margin-top: 0.9rem; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; margin-top: 1.5rem; }

.footer {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.45rem;
  padding: 26px max(var(--gutter), (100% - var(--container)) / 2) 30px;
  border-top: 2px solid rgba(255, 214, 10, 0.25);
}

.footer-risk { color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.footer-legal { color: rgba(255, 255, 255, 0.5); font-size: 0.75rem; font-weight: 600; line-height: 1.6; }
