:root {
  --ink: #100d0a;
  --ink-soft: #1d1711;
  --ink-raised: #272017;
  --cream: #f7eedb;
  --muted: #c0b29a;
  --gold: #d9ae61;
  --gold-light: #f2d58f;
  --paper: #ead9b7;
  --paper-light: #f4e6ca;
  --line: rgba(237, 207, 149, 0.2);
  --container: 82rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--cream);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::selection { background: var(--gold); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(16, 13, 10, 0.91);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  flex: none;
  font-family: "Archivo Black", sans-serif;
  font-size: 1rem;
  letter-spacing: -.07em;
  line-height: 1;
}

.brand img { width: 2.75rem; height: 2.75rem; object-fit: contain; }
.brand-text span { color: var(--gold); }
.site-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: .5rem; }

.header-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 2.85rem;
  padding: .45rem .75rem;
  border: 1px solid var(--gold);
  border-radius: .35rem;
  background: var(--gold);
  color: var(--ink);
  font-size: .86rem;
  font-weight: 700;
  transition: background .2s ease, transform .2s ease;
}

.header-buy:hover { background: var(--gold-light); transform: translateY(-2px); }
.header-buy img { width: 1.55rem; height: 1.55rem; object-fit: contain; }
.header-buy .button-arrow { margin-left: .2rem; font-size: 1.1rem; }

.menu-toggle {
  width: 2.85rem;
  height: 2.85rem;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .36rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}

.menu-toggle span {
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  transition: transform .2s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(.24rem) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-.24rem) rotate(-45deg); }

.site-nav.nav-open {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: .75rem 1rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #17120e;
  box-shadow: 0 1.5rem 2rem rgba(0, 0, 0, .25);
}

.nav-link {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .5rem .75rem;
  color: var(--cream);
  font-size: .9rem;
  font-weight: 700;
  transition: color .2s ease;
}

.nav-link:hover { color: var(--gold-light); }

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 90% 25%, rgba(151, 95, 30, .28), transparent 39%),
    linear-gradient(135deg, #17110c 0%, #100d0a 48%, #14100c 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent 99px, rgba(244, 209, 142, .035) 100px);
  content: "";
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 3.75rem;
  padding-block: 4.2rem 4.5rem;
}

.hero-content { position: relative; z-index: 2; animation: enter-up .8s both; }

.eyebrow, .section-kicker, .hero-ticker, .hero-footnote, .visual-caption,
.phase-tag, .roadmap-note, .chart-window-bar, .empty-overline, .site-footer,
.scroll-cue {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  letter-spacing: .08em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--gold-light);
  font-size: .64rem;
  white-space: nowrap;
}

.eyebrow-dot {
  width: .45rem;
  height: .45rem;
  flex: none;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 1rem var(--gold);
}

.eyebrow-index { margin-left: .15rem; color: #8a7554; }

h1, h2, h3, p { margin-top: 0; }

h1, h2 {
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  letter-spacing: -.085em;
  line-height: .93;
}

h1 {
  margin-block: 2.15rem 1.35rem;
  font-size: clamp(3.8rem, 17vw, 7.4rem);
}

h1 > span { display: block; color: var(--gold); }
.title-period { color: var(--cream); }

.hero-ticker {
  display: flex;
  align-items: center;
  gap: .8rem;
  width: min(100%, 27rem);
  color: var(--gold-light);
  font-size: .7rem;
}

.hero-ticker span:first-child {
  padding: .5rem .7rem;
  border: 1px solid rgba(217, 174, 97, .55);
  border-radius: 100px;
  color: var(--cream);
  white-space: nowrap;
}

.ticker-line { flex: 1; height: 1px; background: var(--line); }
.hero-ticker span:last-child { white-space: nowrap; }

.hero-copy {
  max-width: 34rem;
  margin-block: 1.9rem 2.1rem;
  color: #cfbfaa;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.68;
}

.hero-actions { display: grid; grid-template-columns: 1fr; gap: .7rem; max-width: 36rem; }

.action-button {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 4.3rem;
  padding: .55rem .85rem;
  border: 1px solid #574429;
  border-radius: .42rem;
  background: rgba(39, 31, 22, .9);
  color: var(--cream);
  font-size: .9rem;
  font-weight: 700;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.action-button:hover { border-color: var(--gold); background: #342719; transform: translateY(-3px); }
.action-button-primary { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.action-button-primary:hover { background: var(--gold-light); }

.action-icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
  border-radius: .25rem;
  background: rgba(255, 255, 255, .07);
}

.action-button-primary .action-icon { background: rgba(16, 13, 10, .09); }
.action-icon img { width: 2.1rem; height: 2.1rem; object-fit: contain; }
.social-icon img { width: 1.3rem; height: 1.3rem; filter: brightness(0) invert(1); }
.action-button .button-arrow { margin-left: auto; font-size: 1.15rem; font-weight: 400; }

.hero-footnote {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 2.25rem;
  color: #857661;
  font-size: .61rem;
}

.footnote-line { width: 1.8rem; height: 1px; background: var(--gold); }

.hero-visual {
  position: relative;
  width: min(100%, 38rem);
  margin-inline: auto;
  animation: enter-up .9s .15s both;
}

.visual-orbit {
  position: absolute;
  z-index: -1;
  inset: -1.5rem;
  border: 1px solid rgba(219, 169, 91, .15);
  border-radius: 50%;
  transform: rotate(-13deg) scale(1.1, .85);
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1.1;
  border: 1px solid #b98b47;
  border-radius: .6rem;
  background: #80613a;
  box-shadow: 1rem 1.2rem 0 #22190f, 0 2.5rem 5rem rgba(0, 0, 0, .38);
}

.portrait-frame::after {
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent 42%, rgba(8, 6, 4, .64));
  content: "";
  pointer-events: none;
}

.character-image { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }

.portrait-label {
  position: absolute;
  z-index: 1;
  right: 1.2rem;
  bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .4rem;
  text-align: right;
}

.portrait-label span { font-family: "IBM Plex Mono", monospace; font-size: .58rem; letter-spacing: .15em; }
.portrait-label strong { font-family: "Archivo Black", sans-serif; font-size: clamp(1.1rem, 3vw, 1.8rem); line-height: .95; letter-spacing: -.06em; }

.visual-stamp {
  position: absolute;
  z-index: 2;
  top: -1.5rem;
  right: -1rem;
  display: grid;
  place-items: center;
  width: 5.8rem;
  height: 5.8rem;
  border: 1px solid #c9a262;
  border-radius: 50%;
  background: #17110b;
  box-shadow: 0 .8rem 2rem rgba(0, 0, 0, .4);
  transform: rotate(12deg);
}

.visual-stamp img { width: 4.8rem; height: 4.8rem; }
.visual-caption { position: absolute; right: .2rem; bottom: -2.4rem; color: #8c7656; font-size: .55rem; }

.scroll-cue {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 3.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .65rem;
}

.scroll-cue span:last-child { color: var(--gold); font-size: 1.2rem; }
.section-pad { padding-block: 5.5rem; }

.roadmap {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  color: #1d160f;
}

.roadmap::before {
  position: absolute;
  inset: 0;
  opacity: .4;
  background-image: repeating-linear-gradient(0deg, transparent 0, transparent 91px, rgba(66, 44, 18, .05) 92px);
  content: "";
  pointer-events: none;
}

.roadmap .container { position: relative; }
.section-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid currentColor;
  color: #684d27;
  font-size: .65rem;
}

.section-kicker span:last-child { opacity: .65; text-align: right; }
.section-heading-row { display: grid; gap: 1.2rem; margin-block: 3rem; }
.section-heading-row h2, .chart-intro h2 { margin-bottom: 0; font-size: clamp(3rem, 9.4vw, 7rem); }
.section-heading-row h2 em, .chart-intro h2 em { font-style: normal; color: #9d7233; }
.section-heading-row p {
  max-width: 23rem;
  margin-bottom: 0;
  color: #54422d;
  font-size: 1rem;
  line-height: 1.65;
}

.roadmap-grid { display: grid; gap: .85rem; }

.roadmap-card {
  display: flex;
  flex-direction: column;
  min-height: 18.5rem;
  padding: 1.35rem;
  border: 1px solid #bda16f;
  background: rgba(255, 248, 231, .43);
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.roadmap-card:hover {
  background: var(--paper-light);
  box-shadow: .5rem .5rem 0 rgba(107, 76, 35, .14);
  transform: translateY(-4px);
}

.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.phase-number { font-family: "Archivo Black", sans-serif; font-size: 3.4rem; line-height: 1; letter-spacing: -.11em; color: #9d7233; }
.phase-tag { margin-top: .3rem; color: #73552d; font-size: .58rem; text-align: right; }
.roadmap-card h3 { margin-block: 2.2rem .7rem; font-family: "Archivo Black", sans-serif; font-size: 1.23rem; letter-spacing: -.05em; }
.roadmap-card p { max-width: 18rem; margin-bottom: 1.5rem; color: #5b4831; font-size: .92rem; line-height: 1.6; }
.card-rule { display: block; width: 100%; height: 2px; margin-top: auto; background: linear-gradient(to right, #a27634 25%, rgba(162, 118, 52, .2) 25%); }
.roadmap-note { margin: 1.5rem 0 0; color: #745b3a; font-size: .63rem; }

.chart-section {
  background:
    radial-gradient(circle at 12% 22%, rgba(147, 97, 32, .18), transparent 30%),
    #100d0a;
}

.chart-section .section-kicker { color: var(--gold); border-color: var(--line); }
.chart-intro { display: grid; gap: 2rem; margin-block: 3rem 2.5rem; }
.chart-intro h2 em { color: var(--gold); }
.chart-intro p { margin: 1.15rem 0 0; color: var(--muted); font-size: 1rem; }

.chart-external {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  width: fit-content;
  min-height: 3.7rem;
  padding: .6rem 1rem;
  border: 1px solid var(--gold);
  border-radius: .35rem;
  color: var(--gold-light);
  font-size: .85rem;
  font-weight: 700;
  transition: background .2s ease, color .2s ease;
}

.chart-external:hover { background: var(--gold); color: var(--ink); }
.chart-external img { width: 1.75rem; height: 1.75rem; }
.chart-external span:last-child { margin-left: .6rem; font-size: 1.1rem; }

.chart-window {
  overflow: hidden;
  border: 1px solid #765930;
  border-radius: .65rem;
  background: #151311;
  box-shadow: 0 1.6rem 5rem rgba(0, 0, 0, .35);
}

.chart-window-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 3.45rem;
  padding-inline: 1rem;
  border-bottom: 1px solid #3b3124;
  background: #211b15;
  color: #d0b88a;
  font-size: .58rem;
}

.window-dots { display: flex; gap: .28rem; margin-right: .25rem; }
.window-dots i { width: .48rem; height: .48rem; border: 1px solid #af8a4c; border-radius: 50%; }
.window-dots i:first-child { background: #b58448; }
.window-live { display: none; align-items: center; gap: .4rem; margin-left: auto; color: #8d7d64; white-space: nowrap; }
.window-live i { width: .36rem; height: .36rem; border-radius: 50%; background: #8d7d64; }
.window-live.is-active { color: #d8ba80; }
.window-live.is-active i { background: #aad083; box-shadow: 0 0 .6rem #aad083; }

.chart-body { position: relative; min-height: 27rem; background: #11100f; }
.chart-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.chart-body iframe[hidden], .chart-empty[hidden] { display: none; }

.chart-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.4rem;
  background-image: linear-gradient(rgba(196, 156, 91, .065) 1px, transparent 1px), linear-gradient(90deg, rgba(196, 156, 91, .065) 1px, transparent 1px);
  background-size: 3.3rem 3.3rem;
  text-align: center;
}

.chart-empty::before {
  position: absolute;
  width: min(75vw, 30rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181, 123, 41, .16), transparent 65%);
  content: "";
  pointer-events: none;
}

.chart-empty > * { position: relative; }
.chart-empty-icon { display: grid; place-items: center; width: 5rem; height: 5rem; margin-bottom: 1.2rem; border: 1px solid #65502d; border-radius: 50%; background: #251d13; }
.chart-empty-icon img { width: 3.7rem; height: 3.7rem; }
.empty-overline { margin-bottom: .65rem; color: var(--gold); font-size: .57rem; }
.chart-empty h3 { margin-bottom: .7rem; font-family: "Archivo Black", sans-serif; font-size: clamp(1.6rem, 4vw, 2.5rem); letter-spacing: -.06em; }
.chart-empty p:last-child { max-width: 25rem; margin-bottom: 0; color: var(--muted); font-size: .91rem; line-height: 1.55; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 4rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  color: #8d7d64;
  font-size: .58rem;
}

.footer-brand { color: var(--cream); font-size: .83rem; letter-spacing: -.05em; }
.footer-brand img { width: 2rem; height: 2rem; }
.site-footer > a:last-child { transition: color .2s ease; }
.site-footer > a:last-child:hover { color: var(--gold); }

.toast {
  position: fixed;
  z-index: 100;
  right: 1rem;
  bottom: 1rem;
  max-width: min(23rem, calc(100vw - 2rem));
  padding: .9rem 1.15rem;
  border: 1px solid var(--gold);
  border-radius: .4rem;
  background: #2b2115;
  color: var(--cream);
  box-shadow: 0 .8rem 2rem rgba(0, 0, 0, .4);
  font-size: .9rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem);
  transition: opacity .2s ease, transform .2s ease;
}

.toast-visible { opacity: 1; transform: translateY(0); }

@keyframes enter-up {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 640px) {
  .container { width: min(calc(100% - 3rem), var(--container)); }
  .hero-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roadmap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .window-live { display: inline-flex; }
}

@media (min-width: 768px) {
  .header-inner { min-height: 5.35rem; }
  .brand { font-size: 1.15rem; }
  .brand img { width: 3.15rem; height: 3.15rem; }
  .site-nav { display: flex; align-items: center; gap: .2rem; }
  .site-nav.nav-open { position: static; flex-direction: row; padding: 0; border: 0; background: none; box-shadow: none; }
  .nav-link { padding-inline: .7rem; color: #c5b69d; font-size: .82rem; }
  .menu-toggle { display: none; }
  .header-buy { min-height: 3.1rem; padding-inline: 1rem; }
  .hero-grid { padding-block: 5.5rem 6rem; }
  .section-pad { padding-block: 7rem; }
  .section-heading-row { grid-template-columns: 1.4fr .6fr; align-items: end; gap: 2rem; margin-block: 4rem 3.5rem; }
  .section-heading-row p { padding-bottom: .3rem; }
  .chart-intro { grid-template-columns: 1fr auto; align-items: end; }
  .chart-body { min-height: 33rem; }
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); align-items: center; gap: 4.5rem; padding-block: 5.1rem 5.2rem; }
  .hero-visual { width: 100%; }
  .hero-content { padding-bottom: 1rem; }
  h1 { font-size: clamp(5.8rem, 8.1vw, 8.6rem); }
  .scroll-cue { display: flex; }
  .roadmap-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .roadmap-card { min-height: 20rem; }
  .chart-body { min-height: 36rem; }
}

@media (min-width: 1280px) {
  .hero-grid { gap: 5.5rem; }
  .nav-link { padding-inline: 1rem; }
  .roadmap-card { padding: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

[hidden] { display: none !important; }
