/* ============================================================
   Studio 2358 — marketing site
   Palette: midnight ink + molten gold, one aurora/Bifröst ribbon
   Type: Bricolage Grotesque (display) / Inter (body) / Space Mono (data)
   ============================================================ */

:root {
  --ink:    #0A0B14;
  --ink-2:  #10121F;
  --ink-3:  #171A2B;
  --line:   rgba(240, 236, 225, 0.09);
  --bone:   #F0ECE1;
  --muted:  #8E93B4;
  --gold:   #E9B44C;
  --gold-2: #F5D488;

  /* aurora / Bifröst spectrum — used ONLY in the signature ribbon */
  --au-cyan:   #38E0C6;
  --au-indigo: #6C63FF;
  --au-pink:   #FF6B9D;

  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; letter-spacing: -0.02em; }
a { color: inherit; }
em { font-style: normal; color: var(--gold); }
strong { color: var(--bone); font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 100;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
}
.skip:focus { left: 12px; }

/* ---------- shared bits ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--au-cyan);
  margin: 0 0 20px;
  text-transform: lowercase;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.02;
}

.section-lede {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  max-width: 46ch;
  margin: 22px 0 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { border-color: var(--line); color: var(--bone); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-link {
  padding: 13px 0;
  color: var(--muted);
  border-radius: 0;
}
.btn-link:hover { color: var(--gold); transform: none; }

/* ============================== NAV ============================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  background: rgba(10, 11, 20, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-mono);
}
.wordmark-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--bone);
  letter-spacing: 0.06em;
}
.wordmark-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--au-cyan), var(--au-pink));
  align-self: center;
}
.wordmark-kind {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > a:not(.btn) {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links > a:not(.btn):hover { color: var(--bone); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--bone);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px var(--pad) 20px;
  background: rgba(10, 11, 20, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 61px;
  z-index: 49;
}
.mobile-menu a {
  text-decoration: none;
  color: var(--bone);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}
.mobile-menu.open { display: flex; }

/* ============================== HERO ============================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--pad) 90px;
  overflow: hidden;
}

.hero-video,
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video { width: 100%; height: 100%; object-fit: cover; }

/* Signature: the aurora / Bifröst ribbon arcing behind the headline */
.aurora {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 18%;
  height: 60%;
  background:
    radial-gradient(60% 120% at 20% 40%, var(--au-cyan) 0%, transparent 55%),
    radial-gradient(55% 120% at 55% 60%, var(--au-indigo) 0%, transparent 55%),
    radial-gradient(60% 130% at 85% 45%, var(--au-pink) 0%, transparent 55%);
  filter: blur(70px) saturate(1.1);
  opacity: 0.28;
  transform: rotate(-8deg);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: rotate(-8deg) translateX(-3%); }
  to   { transform: rotate(-5deg) translateX(4%); }
}

/* Dark scrim over the hero video: darkens the left for the headline,
   fades top (nav) and bottom (into the page). */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 11, 20, 0.94) 0%, rgba(10, 11, 20, 0.62) 44%, rgba(10, 11, 20, 0.12) 100%),
    linear-gradient(180deg, rgba(10, 11, 20, 0.55) 0%, transparent 20%, transparent 55%, var(--ink) 100%);
}

.hero-inner { position: relative; z-index: 1; max-width: 900px; }

.hero-title {
  font-size: clamp(2.6rem, 8.5vw, 6rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 26px;
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  max-width: 60ch;
  margin: 0 0 34px;
}
.hero-sub strong { color: var(--gold); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: var(--pad);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-scroll-line {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* ============================== sections shell ============================== */
.game, .studio, .operators {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) var(--pad);
}
.section-head { max-width: 720px; margin: 0 0 clamp(48px, 7vw, 80px); }

/* ============================== THE GAME ============================== */
.game-feature {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5vw, 60px);
}

.game-art { margin: 0; }
.game-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -45px rgba(0, 0, 0, 0.9);
}

.game-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.spec {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.spec li {
  background: var(--ink-2);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.spec-k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec-v {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
}

.game-features p { margin: 0 0 14px; color: var(--muted); font-size: 16px; }
.game-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; }

.game-note {
  margin: clamp(56px, 8vw, 90px) 0 0;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* ============================== THE STUDIO ============================== */
.studio { background: linear-gradient(180deg, var(--ink), var(--ink-2), var(--ink)); max-width: none; }
.studio .section-head, .pillars { max-width: var(--maxw); margin-inline: auto; }

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.pillar {
  background: var(--ink);
  padding: 34px 28px 40px;
  transition: background 0.25s ease;
}
.pillar:hover { background: var(--ink-3); }
.pillar-idx {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--au-cyan);
  margin: 0 0 40px;
}
.pillar h3 { font-size: 1.4rem; margin: 0 0 12px; }
.pillar p { margin: 0; color: var(--muted); font-size: 15px; }

/* ============================== OPERATORS ============================== */
.operators { text-align: center; }
.operators-inner { max-width: 720px; margin: 0 auto; }
.operators .eyebrow { color: var(--gold); }
.operators .section-lede { margin-inline: auto; max-width: 52ch; }
.operators-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
}

/* ============================== FOOTER ============================== */
.footer {
  border-top: 1px solid var(--line);
  padding: 60px var(--pad) 48px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 26px; }
.footer-links a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--bone); }

.footer-rg {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.footer-rg a { color: var(--gold); }
.rg-badge {
  flex: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--bone);
  border: 1px solid var(--muted);
  border-radius: 6px;
  padding: 3px 8px;
}
.footer-legal { margin: 16px 0 0; color: rgba(142, 147, 180, 0.6); font-size: 13px; }

/* ============================== reveal on scroll ============================== */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ============================== responsive ============================== */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .game-detail { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .spec { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar-idx { margin-bottom: 20px; }
  .hero { min-height: 88vh; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora { animation: none; }
  .btn:hover, .hero-title { transform: none; }
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}
