@font-face {
  font-family: "Oxanium";
  src: url("/assets/fonts/Oxanium-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #05070d;
  --bg-2: #0a0f1c;
  --panel: rgba(14, 22, 38, 0.72);
  --line: rgba(120, 180, 230, 0.16);
  --line-strong: rgba(120, 190, 240, 0.38);
  --text: #dbe6f2;
  --muted: #8a9bb0;
  --cyan: #5acaff;
  --cyan-deep: #246c9d;
  --gold: #d5a35b;
  --gold-soft: #fff3d4;
  --display: "Oxanium", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "IBM Plex Mono", Menlo, Consolas, monospace;
  --wrap: 1200px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }

/* starfield behind everything below the hero */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(1px 1px at 12% 18%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 34%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 38% 72%, #fff5 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 86% 82%, #bfe6ff88 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 9%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 52%, #fff4 50%, transparent 51%),
    radial-gradient(ellipse at 70% 0%, #12234080, transparent 60%),
    var(--bg);
  background-size: 420px 420px, 380px 380px, 460px 460px, 520px 520px, 300px 300px, 340px 340px, 100% 100%, auto;
}

/* nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 40px);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(5, 7, 13, .82); backdrop-filter: blur(12px); border-color: var(--line); }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 600 1rem var(--display); letter-spacing: .28em; text-transform: uppercase; }
.nav nav { display: flex; gap: clamp(12px, 2.4vw, 32px); }
.nav nav a { color: var(--muted); text-decoration: none; font: 500 .8rem var(--display); letter-spacing: .18em; text-transform: uppercase; transition: color .2s; }
.nav nav a:hover, .nav nav a:focus-visible { color: var(--text); }
@media (max-width: 720px) { .nav nav { display: none; } }

/* hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.1) translate(-1.2%, -1%); } }
@media (prefers-reduced-motion: reduce) { .hero__bg img { animation: none; } }
.hero__shade { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 70% 55% at 50% 42%, rgba(5,7,13,.62), rgba(5,7,13,.2) 70%),
  linear-gradient(to bottom, rgba(5,7,13,.55) 0%, transparent 22%, transparent 60%, var(--bg) 100%); }
.hero__content { text-align: center; padding: calc(var(--nav-h) + 24px) 24px 96px; max-width: 980px; }
.hero__logo { width: min(860px, 92vw); height: auto; margin: 8px auto 18px; filter: drop-shadow(0 6px 30px rgba(0,0,0,.6)); }
.hero__lede { font: 400 clamp(1.1rem, .9rem + .8vw, 1.45rem)/1.5 var(--display); color: #e8f1fa; max-width: 34ch; margin: 0 auto 32px; text-shadow: 0 2px 16px rgba(0,0,0,.8); }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__scroll { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 1px solid var(--line-strong); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; translate: -50% 0; border-radius: 2px; background: var(--cyan); animation: scroll 2s ease-in-out infinite; }
@keyframes scroll { 50% { transform: translateY(12px); opacity: .3; } }

.tag { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(5,7,13,.55); font: 500 .75rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.btn { display: inline-block; padding: 13px 26px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--text); text-decoration: none; font: 600 .82rem var(--display); letter-spacing: .2em; text-transform: uppercase; background: rgba(8, 14, 26, .6); backdrop-filter: blur(6px); transition: border-color .2s, background .2s, box-shadow .2s; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.btn:hover, .btn:focus-visible { border-color: var(--cyan); background: rgba(36, 108, 157, .3); }
.btn--primary { background: linear-gradient(135deg, #2b7fb8, #164a73); border-color: #6fd0ff; box-shadow: 0 0 28px rgba(90, 202, 255, .25); }
.btn--primary:hover, .btn--primary:focus-visible { background: linear-gradient(135deg, #3793d1, #1c5a8a); box-shadow: 0 0 36px rgba(90, 202, 255, .4); }

/* sections */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section__head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.section__lede { color: var(--muted); font-size: 1.08rem; margin-top: 16px; }
.eyebrow { font: 500 .75rem var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan)); }

/* teaser */
.video { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(90,202,255,.05); }
.video video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 16px; background: var(--bg-2); border-top: 1px solid var(--line); }
.note { margin: 0; font-size: .85rem; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; }
.seg button { all: unset; cursor: pointer; padding: 6px 14px; font: 500 .75rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.seg button[aria-pressed="true"] { background: rgba(90, 202, 255, .16); color: var(--text); }
.seg button:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }

/* world */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split__text h2 { margin-bottom: 24px; font-size: clamp(1.7rem, 1.1rem + 2vw, 2.6rem); }
.split__text p { color: #b9c7d6; }
.split__media { margin: 0; }
.split__media img { border-radius: 6px; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0,0,0,.55); }
.split__media figcaption { margin-top: 10px; font: .75rem var(--mono); letter-spacing: .08em; color: var(--muted); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.factions { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.factions li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 16px; border-left: 2px solid var(--cyan-deep); background: linear-gradient(90deg, rgba(36,108,157,.14), transparent); font-size: .95rem; }
.factions li:nth-child(2) { border-color: #6d8ca8; }
.factions li:nth-child(3) { border-color: #a5523f; }
.factions b { font: 600 .82rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--text); padding-top: 2px; }
.factions span { color: var(--muted); }
@media (max-width: 520px) { .factions li { grid-template-columns: 1fr; gap: 2px; } }

/* gameplay cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.card { position: relative; padding: 28px 24px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; backdrop-filter: blur(6px); transition: border-color .25s, transform .25s; }
.card::before { content: ""; position: absolute; top: -1px; left: 24px; width: 48px; height: 2px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card__icon { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 18px; border: 1px solid var(--line-strong); border-radius: 4px; }
.card__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* band */
.band { position: relative; height: clamp(320px, 52vw, 620px); overflow: hidden; display: grid; place-items: center; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--bg), transparent 25%, transparent 75%, var(--bg)), rgba(5,7,13,.35); }
.band__quote { position: relative; z-index: 1; max-width: 26ch; margin: 0 24px; text-align: center; font: 500 clamp(1.3rem, .9rem + 1.8vw, 2.2rem)/1.35 var(--display); color: #f3f8fd; text-shadow: 0 2px 24px rgba(0,0,0,.9); }

/* gallery */
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gallery a { display: block; position: relative; overflow: hidden; border-radius: 4px; border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s, filter .4s; filter: saturate(.9); }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.04); filter: saturate(1.1); }
.gallery a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100%; max-height: 100%; width: 100%; height: 100%; overflow: hidden; color: var(--text); }
.lightbox::backdrop { background: rgba(2, 4, 8, .92); backdrop-filter: blur(4px); }
.lightbox[open] { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; grid-template-areas: "prev fig next"; align-items: center; }
.lightbox form { position: fixed; top: 16px; right: 16px; z-index: 1; }
@media (max-width: 640px) { .lightbox[open] { grid-template-columns: 40px minmax(0, 1fr) 40px; } }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; grid-area: fig; }
.lightbox img { max-height: 84vh; max-width: 100%; width: auto; border-radius: 4px; border: 1px solid var(--line); }
.lightbox figcaption { font: .85rem var(--mono); color: var(--muted); }
.lightbox__nav, .lightbox__close { all: unset; cursor: pointer; display: grid; place-items: center; width: 48px; height: 48px; font-size: 2rem; color: var(--muted); border-radius: 50%; justify-self: center; }
.lightbox__nav:hover, .lightbox__close:hover, .lightbox__nav:focus-visible, .lightbox__close:focus-visible { color: var(--text); background: rgba(90,202,255,.12); }
.lightbox__nav--prev { grid-area: prev; }
.lightbox__nav--next { grid-area: next; }

/* status timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--cyan), var(--line-strong) 60%, transparent); }
.timeline li { position: relative; padding: 36px 24px 0 0; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); }
.timeline li.is-done::before { background: var(--cyan-deep); border-color: var(--cyan); }
.timeline li.is-active::before { background: var(--gold); border-color: var(--gold-soft); box-shadow: 0 0 14px var(--gold); }
.timeline__k { font: 500 .72rem var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.is-done .timeline__k { color: var(--cyan); }
.is-active .timeline__k { color: var(--gold); }
.timeline h3 { margin: 6px 0 8px; }
.timeline p { color: var(--muted); font-size: .94rem; }
@media (max-width: 720px) {
  .timeline { grid-template-columns: 1fr; padding-left: 28px; }
  .timeline::before { top: 0; bottom: 0; left: 6px; right: auto; width: 1px; height: auto; background: linear-gradient(var(--cyan), var(--line-strong) 60%, transparent); }
  .timeline li { padding: 0 0 28px; }
  .timeline li::before { left: -28px; top: 4px; }
}

/* footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; background: rgba(5,7,13,.8); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 18px; }
.footer__brand img { width: 72px; height: auto; }
.footer__brand p, .footer__fine { margin: 0; font-size: .88rem; color: var(--muted); }
.footer__brand b { color: var(--text); }
.footer__fine { text-align: right; }
@media (max-width: 640px) { .footer__fine { text-align: left; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
