/* ═══════════════════════════════════════════════════════════════
   Tokens
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg:        #07080c;
  --bg-alt:    #0b0d13;
  --panel:     #10131c;
  --line:      #1e2331;
  --line-soft: #161b26;

  --text:      #e9edf5;
  --text-dim:  #9aa3b8;
  --text-mute: #6b748a;

  --fire:      #ff5d2e;
  --ice:       #46c8f5;
  --lightning: #b58cff;
  --earth:     #d9a441;

  --accent:    var(--fire);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --wrap: 1120px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #000; padding: .7rem 1.1rem;
  font-weight: 600; border-radius: 0 0 6px 0;
}
.skip:focus { left: 0; }

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

/* ═══════════════════════════════════════════════════════════════
   Nav
   ═══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-stuck {
  border-bottom-color: var(--line-soft);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}
.nav__inner {
  width: min(var(--wrap), calc(100% - 3rem));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; height: 68px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  font-size: .92rem; text-decoration: none;
}
.wordmark__glyph {
  width: 12px; height: 12px; flex: none;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--fire), var(--lightning));
  box-shadow: 0 0 14px color-mix(in srgb, var(--fire) 60%, transparent);
}
.nav nav { display: flex; gap: 1.9rem; }
.nav nav a {
  text-decoration: none; font-size: .88rem; font-weight: 500;
  color: var(--text-dim); letter-spacing: .02em;
  transition: color .2s var(--ease);
}
.nav nav a:hover { color: var(--text); }

@media (max-width: 560px) {
  .nav nav { gap: 1.1rem; }
  .nav nav a { font-size: .8rem; }
}

/* ═══════════════════════════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: 8rem 0 6rem;
  overflow: hidden;
  isolation: isolate;
}
#embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }

.hero__veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 45% at 22% 18%, color-mix(in srgb, var(--fire) 13%, transparent), transparent 70%),
    radial-gradient(55% 45% at 82% 30%, color-mix(in srgb, var(--ice) 11%, transparent), transparent 70%),
    radial-gradient(70% 50% at 50% 100%, color-mix(in srgb, var(--lightning) 9%, transparent), transparent 70%),
    linear-gradient(to bottom, transparent 45%, var(--bg) 96%);
}

.hero__inner {
  width: min(var(--wrap), calc(100% - 3rem));
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1.4rem;
  font-family: var(--font-display);
  font-size: .76rem; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--text-mute);
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 9.5vw, 6.2rem);
  line-height: .92;
  letter-spacing: -.02em;
  text-transform: uppercase;
  background: linear-gradient(178deg, #fff 8%, #cdd5e6 52%, #767f96 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.hero__lede {
  margin: 1.8rem auto 0;
  max-width: 47ch;
  font-size: clamp(1rem, 2.3vw, 1.2rem);
  color: var(--text-dim);
}

.hero__cta {
  margin-top: 2.6rem;
  display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center;
}

.hero__scroll {
  position: absolute; bottom: 2.2rem; left: 50%; translate: -50% 0;
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, transparent, var(--line));
  overflow: hidden;
}
.hero__scroll span {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: trickle 2.6s var(--ease) infinite;
}
@keyframes trickle {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ═══════════════════════════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .82rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: .84rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  transition: border-color .22s var(--ease), background .22s var(--ease),
              transform .22s var(--ease), color .22s var(--ease);
}
.btn:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  transform: translateY(-2px);
}
.btn--primary {
  background: linear-gradient(135deg, var(--fire), #ff8a4c);
  border-color: transparent;
  color: #12060a;
}
.btn--primary:hover {
  box-shadow: 0 10px 34px -12px color-mix(in srgb, var(--fire) 80%, transparent);
  color: #12060a;
}

/* ═══════════════════════════════════════════════════════════════
   Sections
   ═══════════════════════════════════════════════════════════════ */
.section { padding: clamp(4.5rem, 11vw, 8.5rem) 0; }
.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line-soft);
}

.section__title {
  display: flex; align-items: center; gap: 1rem;
  margin: 0 0 2.8rem;
  font-family: var(--font-display);
  font-size: .82rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--text-mute);
}
.rule {
  width: 34px; height: 1px; flex: none;
  background: linear-gradient(to right, var(--accent), transparent);
}

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

/* ═══════════════════════════════════════════════════════════════
   Game card
   ═══════════════════════════════════════════════════════════════ */
.game {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.8rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--lightning) 7%, transparent), transparent 60%),
    var(--panel);
  position: relative;
  overflow: hidden;
}
.game::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(to right, var(--fire), var(--ice), var(--lightning), var(--earth));
  opacity: .75;
}

.status {
  display: inline-flex; align-items: center; gap: .55rem;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-mute);
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ice) 70%, transparent);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .dot, .hero__scroll span { animation: none; }
}

.game__title {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.2vw, 2.7rem);
  font-weight: 700; line-height: 1.08;
  letter-spacing: -.015em;
}
.game__pitch { margin: 0 0 1.9rem; color: var(--text-dim); max-width: 58ch; }

.features { list-style: none; margin: 0 0 2.2rem; padding: 0; display: grid; gap: .95rem; }
.features li {
  position: relative;
  padding-left: 1.5rem;
  font-size: .95rem;
  color: var(--text-dim);
}
.features li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; transform: rotate(45deg);
  background: var(--accent); opacity: .85;
}
.features strong { color: var(--text); font-weight: 600; }

.game__cta { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ── Element column ───────────────────────────────────────────── */
.game__side {
  border-left: 1px solid var(--line-soft);
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
}
.side__label {
  margin: 0 0 1.4rem;
  font-family: var(--font-display);
  font-size: .7rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-mute);
}
.elements { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.el {
  display: flex; align-items: center; gap: .95rem;
  padding: .7rem .9rem;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  font-family: var(--font-display);
  font-size: .84rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  transition: border-color .25s var(--ease), transform .25s var(--ease),
              background .25s var(--ease);
}
.el img {
  width: 38px; height: 38px; flex: none;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--el, var(--fire)) 55%, transparent));
}
.el:hover {
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--el) 45%, var(--line));
  background: color-mix(in srgb, var(--el) 7%, var(--panel));
}
.el--fire      { --el: var(--fire); }
.el--ice       { --el: var(--ice); }
.el--lightning { --el: var(--lightning); }
.el--earth     { --el: var(--earth); }

/* "More in the forge" — deliberately unfinished-looking, so the list
   never reads as a complete roster. */
.el--more {
  border-style: dashed;
  color: var(--text-mute);
  background: transparent;
}
.el--more:hover { transform: none; border-color: var(--line); background: transparent; }
.el__dots {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border: 1px dashed var(--line);
  border-radius: 4px;
  font-size: 1.1rem; font-weight: 500;
  color: var(--text-mute);
}

.side__note {
  margin: 1.1rem 0 0;
  font-size: .8rem;
  line-height: 1.5;
  color: var(--text-mute);
}

@media (max-width: 860px) {
  .game { grid-template-columns: 1fr; }
  .game__side {
    border-left: 0; padding-left: 0;
    border-top: 1px solid var(--line-soft); padding-top: 2rem;
  }
  .elements { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

/* ═══════════════════════════════════════════════════════════════
   Studio
   ═══════════════════════════════════════════════════════════════ */
.studio {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.studio__lede {
  margin: 0 0 1.3rem;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  line-height: 1.5;
  font-family: var(--font-display);
  font-weight: 500;
  max-width: 30ch;
}
.studio__body { margin: 0; color: var(--text-dim); max-width: 56ch; }

.facts { margin: 0; display: grid; gap: 0; }
.facts > div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .95rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.facts > div:first-child { border-top: 1px solid var(--line-soft); }
.facts dt {
  font-family: var(--font-display);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-mute);
}
.facts dd { margin: 0; font-size: .95rem; font-weight: 500; }

@media (max-width: 800px) { .studio { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════════
   Contact
   ═══════════════════════════════════════════════════════════════ */
.contact { text-align: center; }
.contact .section__title { justify-content: center; }
.contact__lede { margin: 0 auto 2rem; max-width: 44ch; color: var(--text-dim); }

.mail {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  padding-bottom: .25rem;
  background: linear-gradient(to right, var(--fire), var(--lightning)) no-repeat left bottom / 0 1px;
  transition: background-size .4s var(--ease);
  word-break: break-word;
}
.mail:hover { background-size: 100% 1px; }

.social {
  list-style: none; margin: 2.6rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center;
}
.social a {
  display: inline-block;
  padding: .5rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .82rem; font-weight: 500;
  text-decoration: none; color: var(--text-dim);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.social a:hover { color: var(--text); border-color: var(--text-mute); }

/* ═══════════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════════ */
.foot {
  border-top: 1px solid var(--line-soft);
  padding: 2.4rem 0;
  font-size: .82rem;
  color: var(--text-mute);
}
.foot__inner {
  display: flex; flex-wrap: wrap; gap: .8rem 2rem;
  justify-content: space-between; align-items: center;
}
.foot__note { max-width: 46ch; }
