/* ==========================================================================
   Short Fuse Studios
   ========================================================================== */

:root {
  --ink: #0b0a09;
  --ink-2: #141210;
  --ink-3: #1d1a17;
  --line: #2b2622;
  --cream: #f7f2e8;
  --muted: #a8a094;
  --fuse: #fc4601;
  --fuse-hot: #ff7a2e;
  --spark: #ffe2b0;

  --font-display: "Anton", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Base ---------- */

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

html {
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

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

a { color: inherit; }

h1, h2, h3 { margin: 0; line-height: 1.05; }

p { margin: 0 0 1em; }

::selection { background: var(--fuse); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--fuse-hot);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--fuse);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type helpers ---------- */

.display {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: .95;
  transform: skewX(-8deg) rotate(-2deg);
  transform-origin: left bottom;
}
.display--xl { font-size: clamp(3.25rem, 11vw, 8.5rem); }

.hot { color: var(--fuse); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--fuse);
}

.section__intro {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.125rem;
}

/* ---------- Buttons ---------- */

.btn {
  --skew: -8deg;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 4px;
  transform: skewX(var(--skew));
  transition: transform .25s var(--ease-out), background-color .2s, color .2s, border-color .2s, box-shadow .25s;
}
.btn > * { transform: skewX(calc(var(--skew) * -1)); }

.btn--primary {
  background: var(--fuse);
  color: var(--ink);
  box-shadow: 0 0 0 0 rgba(252, 70, 1, 0);
}
.btn--primary:hover {
  background: var(--fuse-hot);
  transform: skewX(var(--skew)) translateY(-2px);
  box-shadow: 0 10px 40px -8px rgba(252, 70, 1, .65);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--cream);
}
.btn--ghost:hover {
  border-color: var(--cream);
  transform: skewX(var(--skew)) translateY(-2px);
}

.btn--disabled {
  gap: 12px;
  background: #24201c;
  border-color: #332d28;
  color: #6f675d;
  cursor: not-allowed;
  user-select: none;
}
.btn--disabled small {
  padding: 3px 7px;
  border-radius: 3px;
  background: rgba(247, 242, 232, .07);
  font-size: .62rem;
  letter-spacing: .14em;
  color: var(--muted);
}

.btn--lg {
  padding: 20px 34px;
  font-size: clamp(.8rem, 2.4vw, 1.05rem);
  letter-spacing: .1em;
  text-transform: none;
  word-break: break-all;
}

/* ---------- Fuse (scroll progress) ---------- */

.fuse {
  --progress: 0;
  position: fixed;
  left: clamp(14px, 2vw, 28px);
  top: 96px;
  bottom: 40px;
  width: 4px;
  z-index: 40;
  pointer-events: none;
  display: none;
}
.fuse__rope,
.fuse__burnt {
  position: absolute;
  left: 0; right: 0;
  border-radius: 4px;
}
.fuse__rope {
  top: 0; bottom: 0;
  background:
    repeating-linear-gradient(135deg, rgba(247, 242, 232, .55) 0 3px, rgba(247, 242, 232, .18) 3px 6px);
}
.fuse__burnt {
  top: 0;
  height: calc(var(--progress) * 100%);
  background: linear-gradient(to bottom, rgba(40, 36, 32, 0), #1a1714 30%, #3a2a20);
}
.fuse__spark {
  position: absolute;
  left: 50%;
  top: calc(var(--progress) * 100%);
  width: 26px; height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 12%, var(--spark) 22%, var(--fuse) 45%, rgba(252, 70, 1, 0) 70%);
  will-change: transform, opacity;
  animation: flicker .35s infinite alternate;
}
@media (min-width: 1100px) {
  .fuse { display: block; }
}

@keyframes flicker {
  from { transform: scale(.85) rotate(0deg); opacity: .85; }
  to   { transform: scale(1.12) rotate(25deg); opacity: 1; }
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 10, 9, .96);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  transform: skewX(-8deg);
}
.nav__brand em { font-style: normal; color: var(--fuse); }
.nav__brand img { width: 40px; transform: skewX(8deg); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
}
.nav__menu a {
  position: relative;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
}
.nav__menu a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--fuse);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav__menu a:not(.nav__cta):hover::after,
.nav__menu a[aria-current="true"]::after { transform: scaleX(1); }

.nav__cta {
  padding: 10px 18px;
  border: 2px solid var(--fuse);
  border-radius: 4px;
  transition: background-color .2s, color .2s;
}
.nav__cta:hover { background: var(--fuse); color: var(--ink) !important; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--cream);
  cursor: pointer;
}
.nav__bars,
.nav__bars::before,
.nav__bars::after {
  display: block;
  width: 26px; height: 2px;
  margin: 0 auto;
  background: currentColor;
  transition: transform .3s var(--ease-out), opacity .2s;
}
.nav__bars { position: relative; }
.nav__bars::before,
.nav__bars::after { content: ""; position: absolute; left: 0; }
.nav__bars::before { top: -8px; }
.nav__bars::after { top: 8px; }
.nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    background: rgba(11, 10, 9, .97);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }
  .nav__menu a { font-size: 1.1rem; }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; }
  .nav.is-open { background: transparent; border-bottom-color: transparent; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 110px var(--gutter) 90px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  /* warm glow behind the logo, painted once as part of the background */
  background: radial-gradient(circle at 50% 42%, rgba(252, 70, 1, .16), rgba(252, 70, 1, .04) 28vmax, transparent 46vmax);
}
.embers {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.embers span {
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe7c2 0 20%, #ff8a3d 45%, rgba(252, 70, 1, 0) 70%);
  will-change: transform, opacity;
  animation: ember linear infinite;
}
.embers.is-paused span { animation-play-state: paused; }
@keyframes ember {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  10%  { opacity: .9; }
  70%  { opacity: .6; }
  100% { transform: translate3d(var(--drift), -100vh, 0); opacity: 0; }
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
}
.hero__logo {
  position: relative;
  width: clamp(220px, min(36vw, 50vh), 460px);
  margin-bottom: 26px;
  animation: drop-in 1s var(--ease-out) both;
}
.hero__logo img { position: relative; z-index: 1; width: 100%; }
.hero__flare {
  /* soft glow sitting behind the logo's spark */
  position: absolute;
  left: 77%; top: 16%;
  width: 30%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 140, 60, .35), rgba(252, 70, 1, .15) 35%, transparent 65%);
  pointer-events: none;
}

.hero__tagline {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.05;
  transform: skewX(-8deg);
  animation: rise .9s .25s var(--ease-out) both;
}
.hero__tagline strong { font-weight: 400; color: var(--fuse); }

.hero__lede {
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  animation: rise .9s .35s var(--ease-out) both;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  animation: rise .9s .45s var(--ease-out) both;
}

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 26px;
  width: 26px; height: 42px;
  margin-left: -13px;
  border: 2px solid rgba(247, 242, 232, .35);
  border-radius: 14px;
}
.hero__scroll span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--fuse);
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@media (max-height: 940px) { .hero__scroll { display: none; } }
@keyframes scroll-dot {
  0%   { transform: translateY(0); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

@keyframes drop-in {
  from { opacity: 0; transform: translateY(-24px) scale(.96) rotate(-3deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px) skewX(var(--rise-skew, 0deg)); }
  to   { opacity: 1; }
}
.hero__tagline { --rise-skew: -8deg; }

/* ---------- Marquee ---------- */

.marquee {
  position: relative;
  z-index: 2;
  margin: 0 -2vw;
  padding: 16px 0;
  background: var(--fuse);
  color: var(--ink);
  transform: rotate(-2deg);
  overflow: hidden;
}
/* Two identical groups; sliding the track by exactly one group (-50%) loops seamlessly.
   Each group carries its own trailing gap so both halves are the same width. */
.marquee__track {
  display: flex;
  width: max-content;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  text-transform: uppercase;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 84s linear infinite;
}
.marquee__group {
  --gap: 28px;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-around;
  gap: var(--gap);
  padding-right: var(--gap);
}
.marquee .marquee__group { min-width: 100vw; }
.marquee__track i { font-style: normal; font-size: .7em; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */

.section { padding: clamp(90px, 13vw, 170px) 0; }

.section__head { margin-bottom: clamp(40px, 6vw, 70px); }
.section__head .display { margin-bottom: 22px; }

/* ---------- Games ---------- */

.game {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  transition: border-color .3s;
}
.game:hover { border-color: #3d342d; }

/* --- Poster: stand-in key art until there's a real one --- */
.game__poster {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
  overflow: hidden;
  object-fit: cover;
  isolation: isolate;
  background:
    repeating-linear-gradient(0deg, rgba(247, 242, 232, .03) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 54% 42%, rgba(252, 70, 1, .38) 0%, rgba(252, 70, 1, .08) 34%, transparent 60%),
    linear-gradient(160deg, #1d140f 0%, #0d0b0a 70%);
  border-right: 1px solid var(--line);
}
.game__no {
  position: absolute;
  top: 22px; left: 24px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}
.game__ghost {
  position: absolute;
  z-index: -1;
  left: 50%; top: 42%;
  font-family: var(--font-display);
  font-size: clamp(5rem, 11vw, 9.5rem);
  line-height: .82;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(247, 242, 232, .14);
  transform: translate(-50%, -50%) skewX(-8deg) rotate(-6deg);
}
.game__bomb {
  position: absolute;
  left: 50%; top: 42%;
  width: clamp(150px, 42%, 240px);
  height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .6));
  animation: bob 4s ease-in-out infinite;
}
.game__spark {
  transform-box: fill-box;
  transform-origin: center;
  animation: flicker .35s infinite alternate;
}
@keyframes bob {
  50% { transform: translate(-50%, calc(-50% - 10px)) rotate(-3deg); }
}

/* caution tape */
.game__tape {
  position: absolute;
  left: -10%; right: -10%;
  bottom: 17%;
  padding: 12px 0;
  background: var(--fuse);
  color: var(--ink);
  transform: rotate(-6deg);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .7);
  overflow: hidden;
}
.game__tape-track {
  display: flex;
  width: max-content;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  text-transform: uppercase;
  white-space: nowrap;
  animation: marquee 18s linear infinite;
}
.game__tape-track .marquee__group { --gap: 20px; }
.game__tape-track i { font-style: normal; font-size: .7em; }

/* --- Body --- */
.game__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(28px, 4.5vw, 60px);
}
.game__body .tag { margin-bottom: 26px; }
.game__kicker {
  margin: 0 0 6px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
}
.game__title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.25rem, 7vw, 6rem);
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: .01em;
  transform: skewX(-8deg);
  transform-origin: left bottom;
}
.game__desc {
  max-width: 26rem;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* --- Roadmap: a fuse burning down toward launch --- */
.roadmap {
  align-self: stretch;
  margin: 40px 0 0;
  padding: 30px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.roadmap__step {
  --dot: 18px;
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 14px;
  align-items: baseline;
  padding-bottom: 20px;
}
.roadmap__step:last-child { padding-bottom: 0; }
/* fuse segment from this step to the next */
.roadmap__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 14px;
  bottom: -6px;
  width: 4px;
  border-radius: 4px;
  background: repeating-linear-gradient(135deg, rgba(247, 242, 232, .45) 0 3px, rgba(247, 242, 232, .14) 3px 6px);
}
.roadmap__step.is-done::after {
  background: linear-gradient(180deg, #4a2414, #8a3410 60%, var(--fuse));
}

.roadmap__dot {
  position: relative;
  z-index: 1;
  grid-row: 1 / 3;
  align-self: start;
  justify-self: center;
  display: grid;
  place-items: center;
  width: var(--dot);
  height: var(--dot);
  margin-top: 1px;
  border-radius: 50%;
  border: 2px solid rgba(247, 242, 232, .35);
  background: var(--ink-2);
}
.is-done .roadmap__dot {
  border-color: var(--fuse);
  background: var(--fuse);
}
.is-done .roadmap__dot::before {
  /* tick */
  content: "";
  width: 5px; height: 9px;
  margin-top: -2px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.is-current .roadmap__dot {
  --dot: 26px;
  margin-top: -3px;
  border: 0;
  background: radial-gradient(circle, #fff 0 14%, var(--spark) 26%, var(--fuse) 50%, rgba(252, 70, 1, 0) 72%);
  animation: flicker .35s infinite alternate;
}
.roadmap__step--boom .roadmap__dot {
  border-style: dashed;
}

.roadmap__label {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #cfc7bb;
}
.roadmap__sub {
  margin-top: 2px;
  font-size: .85rem;
  color: var(--muted);
}
.is-done .roadmap__label { color: var(--cream); }
.is-current .roadmap__label { color: var(--fuse); }

@media (max-width: 860px) {
  .game { grid-template-columns: minmax(0, 1fr); }
  .game__poster {
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .game__ghost { font-size: clamp(4rem, 20vw, 8rem); }
}

.tag {
  align-self: flex-start;
  margin: 0;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream);
}
.tag--hot {
  border-color: rgba(252, 70, 1, .5);
  background: rgba(252, 70, 1, .12);
  color: var(--fuse-hot);
}
.tag--hot::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--fuse);
  box-shadow: 0 0 8px var(--fuse);
  vertical-align: 1px;
  animation: pulse 1.4s ease-in-out infinite;
}
.tag--dim { color: var(--muted); }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Studio ---------- */

.studio {
  position: relative;
  background: var(--ink-2);
  border-block: 1px solid var(--line);
}
.studio__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}
@media (max-width: 900px) { .studio__grid { grid-template-columns: 1fr; } }

.studio__copy .display { margin-bottom: 30px; }
.studio__copy p { max-width: 36rem; color: #d6cfc3; font-size: 1.1rem; }

.pillars {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pillar {
  position: relative;
  padding: 26px 26px 22px 92px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .3s, transform .35s var(--ease-out);
}
.pillar:hover { border-color: rgba(252, 70, 1, .5); transform: translateX(6px); }
.pillar__num {
  position: absolute;
  left: 24px; top: 20px;
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--fuse);
  transform: skewX(-8deg);
}
.pillar h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pillar p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- Contact ---------- */

.contact {
  position: relative;
  overflow: hidden;
  text-align: center;
}
.contact::before {
  content: "";
  position: absolute;
  left: 50%; bottom: -55%;
  width: min(1200px, 160vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(252, 70, 1, .22), transparent 60%);
  pointer-events: none;
}
.contact__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact .eyebrow::after {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--fuse);
}
.contact .display { margin-bottom: 26px; transform-origin: center; }
.contact .section__intro { margin-bottom: 38px; }

.boom { isolation: isolate; }
.burst {
  position: absolute;
  left: 50%; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--spark);
  pointer-events: none;
  z-index: -1;
  animation: burst .7s var(--ease-out) forwards;
}
@keyframes burst {
  from { transform: translate(-50%, -50%); opacity: 1; }
  to   { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.3); opacity: 0; }
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
}
.footer__brand img { width: 48px; transition: transform .3s var(--ease-out); }
.footer__brand:hover img { transform: rotate(-12deg) scale(1.08); }
.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__social a {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color .2s;
}
.footer__social a:hover { color: var(--fuse); }
.footer__legal { margin: 0; font-size: .85rem; color: var(--muted); }

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .pillars .reveal:nth-child(2) { transition-delay: .1s; }
.js .pillars .reveal:nth-child(3) { transition-delay: .2s; }

/* ---------- 404 ---------- */

.lost {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 40px var(--gutter);
  text-align: center;
}
.lost img { width: 140px; margin: 0 auto 28px; }
.lost .display { margin-bottom: 18px; transform-origin: center; }
.lost p { color: var(--muted); margin-bottom: 30px; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .marquee__track,
  .game__tape-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}
