:root {
  --navy: #1b365d;
  --navy-deep: #0b2a46;
  --ink-deep: #071525;
  --gold: #c4a46a;
  --gold-bright: #e0c48a;
  --gold-deep: #a8884e;
  --ink: #122033;
  --muted: #5c6b7a;
  --line: #e4e1d8;
  --paper: #f6f4ef;
  --white: #ffffff;
  --max: 1120px;
  --serif: "IBM Plex Serif", Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --script: "Caveat", cursive;
  --shadow: 0 28px 70px rgba(7, 21, 37, 0.28);
  --header: 112px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
section { scroll-margin-top: calc(var(--header) + 12px); }
::selection { background: rgba(196, 164, 106, 0.35); }
:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 40;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink-deep);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(7, 21, 37, 0.06);
}
.event-bar {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 500;
}
.event-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
}
.event-bar p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.event-bar a {
  color: var(--gold-bright);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.event-bar a:hover { text-decoration: underline; }
.event-short { display: none; }
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(196, 164, 106, 0.6);
  animation: ping 1.8s ease-out infinite;
  flex: 0 0 auto;
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a {
  text-decoration: none;
  color: var(--navy-deep);
  font-size: 14px;
  font-weight: 500;
}
.nav a:hover { color: var(--gold-deep); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--ink-deep); }
.btn-gold:hover { background: #d2b57e; }
.btn-line {
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--white);
  background: transparent;
}
.btn-line:hover { background: rgba(255, 255, 255, 0.08); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--navy-deep);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 88% 0%, rgba(196, 164, 106, 0.18), transparent 58%),
    radial-gradient(640px 480px at 0% 100%, rgba(27, 54, 93, 0.55), transparent 60%),
    var(--ink-deep);
  color: var(--white);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 15%, transparent 72%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  min-height: calc(100svh - var(--header));
  padding: 56px 0 64px;
}
.kicker {
  margin: 0 0 14px;
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.kicker-dark { color: var(--gold-deep); }
.hero h1 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(42px, 4.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.lead {
  margin: 0 0 28px;
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.stage {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: #10283f;
  box-shadow: var(--shadow);
}
.stage-progress {
  height: 2px;
  margin: 2px 8px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.stage-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
}
.stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 8px 12px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-bright); }
.live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(196, 164, 106, 0.55);
  animation: ping 1.8s ease-out infinite;
}
.os-card { position: relative; }
.os-body {
  padding: 8px 8px 4px;
  transition: opacity 0.22s ease;
}
.os-card.is-changing .os-body { opacity: 0.45; }
.os-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.os-top img { height: 58px; width: auto; }
.chip {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(196, 164, 106, 0.16);
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.os-id {
  margin: 0 0 6px;
  color: var(--gold-bright);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.os-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.15;
}
.os-place { margin: 6px 0 16px; color: rgba(255, 255, 255, 0.66); font-size: 14px; }
.os-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}
.os-meta div {
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}
.os-meta dt {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.46);
}
.os-meta dd { margin: 4px 0 0; font-weight: 600; }
.stock { margin-top: 12px; }
.stock-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}
.stock-row strong { color: var(--gold-bright); }
.stock-track {
  height: 6px;
  margin: 8px 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.stock-track span {
  display: block;
  height: 100%;
  width: 78%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.stock.is-down .stock-track span { width: 52%; }
.stock p { margin: 0; color: rgba(255, 255, 255, 0.62); font-size: 13px; }
.signs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.signs span {
  display: flex;
  flex-direction: column;
  min-height: 52px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 8px;
  opacity: 0.4;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}
.signs span.is-on {
  opacity: 1;
  transform: none;
  border-top-color: rgba(196, 164, 106, 0.7);
}
.signs span:nth-child(2).is-on { transition-delay: 0.08s; }
.signs span:nth-child(3).is-on { transition-delay: 0.16s; }
.signs em {
  font-family: var(--script);
  font-style: normal;
  font-size: 22px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
  min-height: 22px;
}
.signs small {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.cycle {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.cycle button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.cycle button b {
  color: var(--gold-bright);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.cycle button[aria-selected="true"] {
  background: rgba(196, 164, 106, 0.16);
  border-color: rgba(196, 164, 106, 0.55);
  color: var(--white);
}
.tab-short { display: none; }

.facts { background: var(--white); border-bottom: 1px solid var(--line); }
.facts .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.fact {
  padding: 28px 22px;
  border-left: 1px solid var(--line);
}
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--navy-deep);
}
.fact span { display: block; color: var(--muted); font-size: 14px; max-width: 22ch; }

.band { padding: 88px 0; }
.band-mist { background: var(--paper); }
.band h2,
.battle h2,
.cta h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.band h2,
.battle h2 { font-size: clamp(32px, 4vw, 48px); max-width: 16em; }
.section-intro {
  margin: 0 0 36px;
  max-width: 40rem;
  color: var(--muted);
  font-size: 17px;
}
.section-intro.light { color: rgba(255, 255, 255, 0.74); }

.worlds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.world {
  border-radius: 22px;
  padding: 28px;
}
.world h3 { margin: 0 0 16px; font-size: 18px; }
.world ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.world li {
  position: relative;
  padding-left: 22px;
}
.world li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.world-before {
  background: var(--white);
  border: 1px solid var(--line);
}
.world-before li::before { background: #c5c0b6; }
.world-before li { color: var(--muted); }
.world-after {
  background: var(--navy-deep);
  color: var(--white);
}
.world-after li::before { background: var(--gold); }
.world-after li { color: rgba(255, 255, 255, 0.84); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border-radius: 18px;
  padding: 22px;
  border: 1px solid var(--line);
}
.steps li span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--navy-deep);
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 600;
}
.steps h3 { margin: 0 0 8px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

.bento {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 16px;
}
.bento article {
  border-radius: 18px;
  padding: 24px;
  background: var(--paper);
  min-height: 160px;
  border: 1px solid transparent;
}
.bento article:first-child,
.bento article:nth-child(4) {
  background: var(--navy-deep);
  color: var(--white);
}
.bento article:first-child p,
.bento article:nth-child(4) p { color: rgba(255, 255, 255, 0.74); }
.bento h3 { margin: 0 0 8px; font-size: 20px; }
.bento p { margin: 0; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.split .section-intro { margin-bottom: 0; }
.who { list-style: none; margin: 0; padding: 0; }
.who li {
  display: grid;
  gap: 2px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.who strong { font-size: 16px; }
.who span { color: var(--muted); }

.battle {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 320px at 90% 0%, rgba(196, 164, 106, 0.16), transparent 60%),
    var(--ink-deep);
  color: var(--white);
  padding: 88px 0;
}
.battle-mark {
  position: absolute;
  right: -1vw;
  top: -28px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(140px, 24vw, 300px);
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  user-select: none;
}
.battle .wrap { position: relative; z-index: 1; }
.uses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.use {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}
.use span {
  display: block;
  margin-bottom: 28px;
  color: var(--gold-bright);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.use h3 { margin: 0 0 8px; font-size: 18px; }
.use p { margin: 0; color: rgba(255, 255, 255, 0.72); }
.battle-quote {
  margin: 40px 0 0;
  padding: 0 0 0 18px;
  border-left: 2px solid var(--gold);
  max-width: 40rem;
}
.battle-quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 500;
  line-height: 1.35;
}

.cta { background: var(--navy-deep); color: var(--white); }
.cta .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 40px 0;
}
.cta img { height: 76px; width: auto; }
.cta h2 { font-size: clamp(26px, 3vw, 34px); max-width: none; }
.cta p { margin: 0; color: rgba(255, 255, 255, 0.74); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

.site-footer {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 22px 0;
  font-size: 14px;
}
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-footer img { height: 48px; width: auto; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--gold-bright); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; transition-delay: 0s; }
.world.reveal.is-in,
.steps li.reveal.is-in,
.bento article.reveal.is-in,
.use.reveal.is-in {
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.steps li.is-in:hover,
.bento article.is-in:hover,
.use.is-in:hover,
.world.is-in:hover {
  transform: translateY(-6px);
}

@media (max-width: 1040px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open {
    display: flex;
    box-shadow: 0 18px 40px rgba(7, 21, 37, 0.14);
  }
  .nav a { padding: 12px 0; }
  .nav .btn { margin-top: 6px; color: var(--ink-deep); }
  .site-header { position: sticky; }
  .bar { position: relative; }
}

@media (max-width: 900px) {
  :root { --header: 104px; }
  .hero .wrap,
  .worlds,
  .uses,
  .split,
  .cta .wrap,
  .site-footer .wrap {
    grid-template-columns: 1fr;
  }
  .hero .wrap {
    min-height: 0;
    padding: 40px 0 48px;
    gap: 32px;
  }
  .hero h1 { max-width: none; }
  .facts .wrap { grid-template-columns: 1fr 1fr; }
  .fact { padding: 22px 16px; border-left: 0; border-top: 1px solid var(--line); }
  .fact:nth-child(-n + 2) { border-top: 0; }
  .fact:nth-child(odd) { padding-left: 0; }
  .steps,
  .bento { grid-template-columns: 1fr 1fr; }
  .bento article:first-child,
  .bento article:nth-child(4) { grid-column: auto; }
  .cta .wrap { justify-items: start; }
  .cta-actions { justify-content: flex-start; }
  .band,
  .battle { padding: 64px 0; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .event-bar { font-size: 12px; }
  .event-full { display: none; }
  .event-short { display: inline; }
  .event-bar .wrap { align-items: center; min-height: 36px; }
  .steps,
  .bento,
  .facts .wrap,
  .cycle { grid-template-columns: 1fr 1fr; }
  .tab-long { display: none; }
  .tab-short { display: inline; }
  .signs { gap: 8px; }
  .os-title { font-size: 24px; }
  .brand img { height: 44px; }
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(196, 164, 106, 0.55); }
  100% { box-shadow: 0 0 0 8px rgba(196, 164, 106, 0); }
}
@keyframes stage-load {
  from { width: 0%; }
  to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .pulse,
  .live i { animation: none; }
  .btn,
  .os-body,
  .signs span,
  .stock-track span,
  .steps li,
  .bento article,
  .use,
  .world { transition: none; }
}
