@font-face {
  font-family: City;
  src: url(assets/font/bricolage.ttf) format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Terminal;
  src: url(assets/font/space-mono.ttf);
  font-display: swap;
}
:root {
  --ink: #141020;
  --paper: #fff0d4;
  --muted: #c7bcc9;
  --orange: #fc3e01; /* Fill sampled from the Mayhem wordmark. */
  --orange-hover: color-mix(in srgb, var(--orange) 80%, white);
  --violet: #9d84dc;
  --rail: clamp(24px, 6vw, 116px);
  color-scheme: dark;
  font:
    17px/1.5 City,
    system-ui,
    sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: 66px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
video:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 5px;
}
button {
  border: 0;
  background: none;
}
button i,
.textplay i {
  display: inline-block;
  border-left: 8px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.skip {
  position: fixed;
  left: 8px;
  top: -60px;
  z-index: 10;
  background: white;
  color: black;
  padding: 8px;
}
.skip:focus {
  top: 8px;
}
header {
  height: 66px;
  padding: 0 var(--rail);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  position: sticky;
  top: 0;
  z-index: 6;
  background: #171320;
  border-bottom: 1px solid #49404c;
}
header nav {
  display: flex;
  gap: clamp(20px, 3vw, 50px);
  height: 100%;
  align-items: center;
}
header nav a { white-space: nowrap; }
header .short-label { display: none; }
@media (max-width: 480px), (min-width: 761px) and (max-width: 900px) {
  header .full-label { display: none; }
  header .short-label { display: inline; }
  header nav a:first-child { text-transform: capitalize; }
}
nav a {
  font-size: 14px;
  font-weight: 700;
}
nav a {
  color: #d1c8ca;
  position: relative;
}
nav a[aria-current="true"] {
  color: var(--paper);
}
nav a[aria-current="true"]:after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 0;
  width: 18px;
  height: 3px;
  background: var(--orange);
}
.studio {
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 22px;
  letter-spacing: -1.3px;
  font-weight: 800;
}
.studio-mark {
  width: 94px;
  height: 36px;
  object-fit: contain;
}
.journey {
  position: relative;
  isolation: isolate;
}
.stage-track {
  position: absolute;
  inset: 0;
  overflow: clip;
  pointer-events: none;
}
.stage {
  height: calc(100svh - 66px);
  min-height: 570px;
  position: sticky;
  top: 66px;
  overflow: hidden;
  background: #211b36;
}
.stage:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    175deg,
    #19172b 9%,
    #382843 44%,
    #934a52 75%,
    #c47561 89%
  );
}
#sky {
  position: absolute;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(20, 15, 31, 0.85) 0%,
    rgba(24, 18, 36, 0.74) 22%,
    rgba(28, 20, 38, 0.1) 56%,
    transparent 72%
  );
  pointer-events: none;
}
#model {
  position: absolute;
  right: -1.5%;
  top: 0;
  width: 65%;
  height: 100%;
}
#model canvas,
.model-backup {
  width: 100%;
  height: 100%;
  display: block;
}
.model-backup {
  position: absolute;
  inset: 0;
  object-fit: contain;
}
.ready .model-backup {
  display: none;
}
.beat {
  height: calc(100svh - 66px);
  min-height: 570px;
  padding: 0 var(--rail);
  display: flex;
  align-items: center;
  position: relative;
  pointer-events: none;
}
.beat a,
.beat button {
  pointer-events: auto;
}
.hero-copy,
.beat-copy {
  width: 43%;
  max-width: 700px;
  padding-bottom: 34px;
}
.kicker {
  font:
    700 11px/1.5 Terminal,
    monospace;
  text-transform: uppercase;
  letter-spacing: 2.1px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--orange);
}
.kicker b {
  width: 20px;
  height: 9px;
  display: inline-block;
  background: repeating-linear-gradient(
    125deg,
    transparent 0 3px,
    currentColor 3px 6px
  );
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1 {
  line-height: 1;
}
.wordmark {
  width: min(100%, 570px);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 0 #160f21);
}
.premise {
  font-size: clamp(22px, 2.25vw, 39px);
  font-weight: 750;
  line-height: 1.13;
  letter-spacing: -0.055em;
  margin: 26px 0 11px;
}
.intro,
:is(.beat-copy > p:not(.kicker), #mode-copy p),
.section-top > p:last-child,
.cast-info p,
.place p,
.arcade-layout p {
  max-width: 44ch;
  color: #e2d6d6;
}
.intro {
  max-width: 34ch;
  font-size: clamp(16px, 1.15vw, 20px);
}
.primary,
.textplay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 800;
}
.primary {
  color: #211322;
  background: var(--orange);
  padding: 13px 20px;
  box-shadow: 0 4px #9b4838;
  margin: 26px 15px 0 0;
}
.primary:hover {
  background: var(--orange-hover);
}
.textplay {
  padding: 10px 0;
}
.hero-foot {
  position: absolute;
  bottom: 25px;
  left: var(--rail);
  right: var(--rail);
  display: flex;
  align-items: center;
  gap: 13px;
  font:
    11px Terminal,
    monospace;
  letter-spacing: 0.5px;
}
.rule {
  height: 1px;
  flex: 1;
  background: #b49baa69;
}
.live-dot {
  background: var(--orange);
  width: 6px;
  height: 6px;
}
.hero-foot b {
  font-size: 16px;
}
.beat-copy h2,
.section-top h2 {
  font-size: clamp(46px, 6.2vw, 102px);
  letter-spacing: -0.068em;
  line-height: 0.92;
  font-weight: 800;
}
:is(.beat-copy > p:not(.kicker), #mode-copy p) {
  margin: 24px 0;
  max-width: 35ch;
}
.chapter {
  position: relative;
  padding: clamp(70px, 7.5vw, 130px) var(--rail);
  scroll-margin-top: 0;
}
.section-top {
  max-width: 1100px;
  margin-bottom: 42px;
}
.section-top h2 {
  font-size: clamp(43px, 5.8vw, 93px);
}
.section-top p:last-child {
  margin-top: 18px;
}
.atlas {
  background: #ede0c8;
  color: #261e31;
}
.atlas .kicker {
  color: #8d392c;
}
.atlas p,
.atlas .section-top > p:last-child,
.atlas .place p {
  color: #4b4350;
}
.atlas-layout,
.life-layout,
.arcade-layout,
.cast-layout {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: clamp(25px, 5vw, 95px);
  align-items: center;
}
.map {
  position: relative;
  background: #302a40;
  box-shadow: 6px 7px 0 #bcaa99;
  line-height: 0;
}
.map > img {
  width: 100%;
  height: auto;
  display: block;
}
.pin {
  position: absolute;
  transform: translate(-50%, -100%);
  background: #fbe9c7;
  color: #151226;
  width: 26px;
  height: 25px;
  border: 2px solid #241b34;
  font: 700 12px Terminal;
  box-shadow: 2px 2px #241b34;
}
.pin:after {
  content: "";
  position: absolute;
  top: 100%;
  left: 7px;
  border-top: 7px solid #241b34;
  border-inline: 4px solid transparent;
}
.pin[aria-pressed="true"] {
  background: var(--orange);
  z-index: 2;
  outline: 2px solid white;
}
.place figure img,
.play-frame img {
  width: 100%;
  display: block;
  image-rendering: pixelated;
}
.place figure img {
  aspect-ratio: 1.94;
  object-fit: cover;
}
.place h3,
.cast-info h3,
.arcade-layout h3 {
  font-size: clamp(30px, 3.5vw, 61px);
  line-height: 1;
  letter-spacing: -0.055em;
  margin: 19px 0 12px;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}
.stepper button {
  border: 1px solid #80716a;
  width: 42px;
  height: 39px;
}
.stepper output {
  font: 12px Terminal;
}
.cast {
  background: #30203c;
}
.cast-layout {
  grid-template-columns: 0.95fr 1.05fr;
}
.portrait {
  background: repeating-linear-gradient(0deg, #4c334c 0 2px, #52374f 2px 4px);
  overflow: hidden;
  position: relative;
  height: clamp(310px, 31vw, 510px);
  border-bottom: 7px solid var(--orange);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.portrait-sun {
  position: absolute;
  bottom: -18%;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-linear-gradient(0deg, #ff9355 0 9px, #dc7760 9px 11px);
}
.portrait img {
  height: 96%;
  width: 92%;
  object-fit: contain;
  object-position: bottom;
  position: relative;
}
.faces,
.cab-games {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.faces button {
  padding: 0;
  background: #4e394f;
  border: 2px solid transparent;
  width: 52px;
  height: 55px;
  overflow: hidden;
}
.faces img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.faces button[aria-pressed="true"],
.cab-games button[aria-pressed="true"] {
  border-color: var(--orange);
}
.sub {
  font: 11px/1.5 Terminal;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
}
.life {
  background: #1c192c;
}
.life-layout {
  grid-template-columns: 0.7fr 1.3fr;
}
.line-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  width: 100%;
  border-bottom: 1px solid #4a4156;
  font-size: clamp(18px, 2vw, 31px);
  font-weight: 750;
  padding: 12px 0;
  color: #bdb2c2;
}
.line-list button[aria-pressed="true"] {
  color: var(--orange);
}
.line-list button[aria-pressed="true"]:after {
  content: "↗";
}
.play-frame img {
  aspect-ratio: 5/3;
  object-fit: contain;
  background: #090910;
}
.play-frame figcaption {
  margin-top: 15px;
  color: #dfd0d4;
}
.arcade {
  background: #352347;
}
.arcade-layout {
  grid-template-columns: 1fr 1fr;
}
.cab {
  background: #261a36;
  padding: 14px 19px 0;
  border-left: 10px solid #7d547e;
  border-right: 10px solid #5d3a64;
  box-shadow: 9px 10px 0 #20172d;
  transform: perspective(1200px) rotateY(6deg);
}
.marquee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #bd84dc;
  color: #321c44;
  box-shadow: inset 0 3px #e1addd;
  font: bold clamp(18px, 2vw, 30px) Terminal;
}
.marquee img {
  width: 32px;
  height: 32px;
}
.glass {
  margin: 12px 0;
  padding: 12px;
  background: #110f1e;
}
.glass img {
  width: 100%;
  aspect-ratio: 5/3;
  object-fit: contain;
  display: block;
  image-rendering: pixelated;
}
.control-deck {
  height: 41px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  background: #594168;
  border-top: 4px solid #906681;
  padding-right: 8%;
}
.control-deck i {
  width: 19px;
  height: 10px;
  border-radius: 50%;
  background: #f7884d;
  box-shadow: 0 3px #a7433a;
}
.stick {
  position: relative;
  margin-right: auto;
  margin-left: 14%;
  height: 17px;
  width: 5px;
  background: #e5c6a0;
}
.stick:before {
  content: "";
  position: absolute;
  top: -5px;
  left: -6px;
  border-radius: 50%;
  width: 16px;
  height: 12px;
  background: #fb7953;
}
.cab-games button {
  border: 1px solid #756480;
  font: 12px Terminal;
  padding: 8px 10px;
}
.cab-games button[aria-pressed="true"] {
  background: var(--orange);
  color: #2a1534;
}
footer {
  padding: 26px var(--rail);
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 14px;
}
footer img {
  width: 95px;
  display: block;
}
footer > a:last-child {
  margin-left: auto;
}
video {
  display: block;
  width: 100%;
  max-height: 75svh;
  background: black;
}
@media (max-height: 635px) and (min-width: 761px) {
  .stage {
    min-height: 0;
  }
  .beat {
    min-height: 530px;
  }
  .hero-copy {
    padding-bottom: 0;
  }
  .wordmark {
    max-width: 370px;
  }
}
@media (max-width: 760px) {
  :root {
    --rail: 22px;
    scroll-padding-top: 92px;
  }
  header {
    height: 92px;
    flex-wrap: wrap;
    gap: 0;
    align-content: space-evenly;
  }
  header nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 4px;
    height: 23px;
  }
  nav a {
    font-size: 12px;
  }
  nav a[aria-current="true"]:after {
    bottom: -3px;
  }
  .studio {
    font-size: 20px;
  }
  .stage {
    top: 92px;
    height: calc(100svh - 92px);
    min-height: 0;
    margin: 0;
  }
  #model {
    top: 0;
    left: -1%;
    width: 102%;
    height: 55%;
  }
  .scrim {
    background: linear-gradient(
      0deg,
      #1a1426 3%,
      #211a2adf 32%,
      transparent 65%
    );
  }
  .beat {
    height: calc(100svh - 92px);
    min-height: 610px;
    align-items: flex-end;
    padding-bottom: 48px;
  }
  .hero-copy,
  .beat-copy {
    width: 100%;
    max-width: 530px;
    padding: 0;
  }
  .hero-copy .kicker {
    margin: 0 0 9px;
  }
  .wordmark {
    width: min(74%, 280px);
  }
  .premise {
    font-size: 24px;
    margin: 12px 0 7px;
  }
  .intro,
  :is(.beat-copy > p:not(.kicker), #mode-copy p) {
    font-size: 15px;
  }
  .hero-foot {
    bottom: 10px;
    font-size: 9px;
    gap: 7px;
  }
  .hero-foot span:last-child {
    font-size: 0;
  }
  .hero-foot b {
    font-size: 14px;
  }
  .primary {
    margin-top: 14px;
    padding: 9px 14px;
  }
  .textplay {
    font-size: 13px;
  }
  .beat-copy h2 {
    font-size: 54px;
  }
  .beat-copy h2 br {
    display: none;
  }
  :is(.beat-copy > p:not(.kicker), #mode-copy p) {
    margin: 15px 0;
  }
  .chapter {
    padding-block: 55px;
  }
  .section-top {
    margin-bottom: 25px;
  }
  .atlas-layout,
  .cast-layout,
  .life-layout,
  .arcade-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .map {
    max-height: 340px;
    width: fit-content;
    max-width: 100%;
    margin: auto;
  }
  .map > img {
    max-height: 340px;
    width: auto;
    max-width: 100%;
  }
  .place figure img {
    max-height: 190px;
  }
  .portrait {
    height: 310px;
  }
  .life-layout .line-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 12px;
  }
  .line-list button {
    width: auto;
    font-size: 16px;
  }
  .line-list button[aria-pressed="true"]:after {
    display: none;
  }
  .faces button {
    width: 44px;
    height: 47px;
  }
  .section-top h2 {
    font-size: 48px;
  }
  .kicker {
    margin-bottom: 13px;
  }
  footer {
    flex-wrap: wrap;
    gap: 12px;
  }
  footer span {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}

.mode-switch {
  display: flex;
  gap: 0;
  margin: 0 0 20px;
  width: max-content;
  border: 1px solid #9c7d87;
}
.mode-switch button {
  padding: 5px 14px;
  color: #f5dedc;
  font:
    12px Terminal,
    monospace;
}
.mode-switch button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
}
@media (min-width: 761px) {
  #model {
    mask-image: linear-gradient(90deg, transparent, #000 14%);
  }
  .wordmark {
    width: min(86%, 515px);
  }
}
@media (max-width: 760px) {
  #model {
    mask-image: linear-gradient(180deg, #000 85%, transparent);
  }
}
@media (max-width: 760px) and (max-height: 740px) {
  #model {
    height: 48%;
  }
  .beat {
    min-height: 570px;
  }
  .wordmark {
    max-width: 205px;
  }
  .hero-copy .kicker {
    margin-bottom: 8px;
  }
  .intro {
    font-size: 14px;
  }
}
@media (max-height: 520px) and (min-width: 600px) {
  .beat {
    min-height: 420px;
  }
  .stage {
    min-height: 0;
  }
  .wordmark {
    max-width: 230px;
  }
  .premise {
    font-size: 19px;
  }
  .hero-copy {
    padding-top: 12px;
  }
  .hero-foot {
    display: none;
  }
}

.machine-view {
  perspective: 1000px;
  padding: 5px 4% 12px 11%;
  background: radial-gradient(ellipse at 50% 48%, #61406b, transparent 69%);
}
.cab {
  position: relative;
  transform: rotateY(var(--angle, 12deg));
  transform-style: preserve-3d;
  border-top: 6px solid #99749b;
  border-radius: 5px 5px 0 0;
}
.cab-side {
  position: absolute;
  display: grid;
  place-items: center;
  right: 100%;
  top: -6px;
  bottom: 0;
  width: 78px;
  background: linear-gradient(
    155deg,
    #453450 15%,
    #b1678e 15% 19%,
    #6a4370 19% 66%,
    #a06385 66% 73%,
    #4c325b 73%
  );
  border: 4px solid #9e779e;
  transform-origin: right;
  transform: translateX(-9px) rotateY(-90deg);
}
.cab-side img {
  width: 125%;
  transform: rotate(-20deg);
}
.marquee {
  height: clamp(50px, 4.7vw, 74px);
  background: linear-gradient(#49435b, #29283a);
  border: 3px solid #1b1425;
  box-shadow:
    inset 0 3px #79677b,
    inset 0 -3px #5c4e63;
}
.marquee img {
  width: 76%;
  height: 74%;
  object-fit: contain;
  image-rendering: pixelated;
}
.control-deck {
  position: relative;
  transform-origin: top;
  box-shadow: 0 5px #423247;
  border-top-color: #aa80a2;
}
.coin-panel {
  height: clamp(50px, 6.5vw, 85px);
  display: flex;
  align-items: center;
  gap: 10%;
  padding: 0 16%;
  background: linear-gradient(
    167deg,
    #34283d 65%,
    #694469 65% 69%,
    #3e3048 69%
  );
  border-bottom: 8px solid #201724;
}
.coin-door {
  width: 28%;
  height: 68%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  border: 2px solid #5d4e5c;
  background: #231e29;
}
.coin-door i {
  width: 22%;
  height: 45%;
  background: #1a111f;
  border: 3px solid #fa8a54;
  box-shadow: 0 0 5px #e96f4f;
}
.speaker {
  width: 20%;
  height: 38%;
  background: repeating-linear-gradient(0deg, #231e2d 0 2px, #58475c 2px 4px);
}

@media (max-width: 760px) {
  .studio-mark {
    width: 75px;
    height: 30px;
  }
}
#model:not(.ready) canvas {
  visibility: hidden;
}

.woodland {
  --forest: #112322;
  --water: #a1d7c9;
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse at 88% 50%, #264344, transparent 64%), var(--forest);
}
.wood-stop {
  position: relative;
  min-height: max(550px, calc(100svh - 66px));
  padding: 48px var(--rail);
  display: grid;
  grid-template-columns: 36% 1fr;
  gap: 5%;
  align-items: center;
}
.wood-copy { grid-column: 1; grid-row: 1; }
.wood-copy .kicker { color: var(--water); }
.wood-copy h2 {
  font-size: clamp(58px, 7.4vw, 124px);
  line-height: .89;
  font-weight: 800;
  letter-spacing: -.074em;
}
.wood-copy > p:not(.kicker) {
  color: #d5dfd6;
  max-width: 33ch;
  margin: 25px 0;
}
.wood-view {
  grid-column: 2;
  position: relative;
  aspect-ratio: 5 / 3;
  overflow: clip;
  background: #35574f;
}
.wood-view .terrain, .wood-view video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  transform-origin: 55% 55%;
  transform: scale(var(--zoom, 1));
}
.wood-view video {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.moving .wood-view video.has-frame { opacity: 1; }
.wood-hero {
  position: absolute;
  right: 2%;
  bottom: -4%;
  height: 61%;
  width: auto;
  filter: drop-shadow(3px 4px 0 #101a1d78);
}
.wood-track { display: none; }
.woodland.guided .wood-track {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.wood-stage {
  position: sticky;
  top: 66px;
  height: calc(100svh - 66px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 43%;
  margin-right: var(--rail);
}
.wood-views {
  position: relative;
  aspect-ratio: 5 / 3;
  background: #172d2b;
  border: 1px solid #71918461;
  box-shadow: 0 24px 70px -35px #07131d;
}
.wood-views .wood-view {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  opacity: 0;
}
.wood-view.current { opacity: 1; }
.guided.moving .wood-view { transition: opacity .24s ease-out; }
.wood-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.water-toggle {
  pointer-events: auto;
  flex-shrink: 0;
  color: var(--water);
  font: 11px Terminal, monospace;
  padding: 12px 0 12px 8px;
}
.water-toggle:hover { color: var(--paper); }
.trail-links {
  display: flex;
  align-items: center;
  pointer-events: auto;
  width: fit-content;
  max-width: 100%;
}
.trail-links a {
  display: flex;
  align-items: center;
  position: relative;
  gap: 8px;
  padding: 10px 0;
  color: #afc6bc;
  font: 11px/1.35 Terminal, monospace;
}
.trail-links a + a::before {
  content: "";
  display: inline-block;
  width: clamp(15px, 2.4vw, 42px);
  height: 1px;
  margin-left: 9px;
  background: #587469;
}
.trail-links a[aria-current] { color: #ffc6a0; }
.guided .wood-stop { pointer-events: none; }
.guided .wood-copy a { pointer-events: auto; }
@media (min-width: 761px) and (max-width: 950px) {
  header nav { gap: 15px; }
}
@media (max-width: 760px) {
  .woodland { --wood-art-height: min(46svh, calc(60vw + 45px)); }
  .wood-stop {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    padding: 32px var(--rail);
    min-height: 0;
  }
  .guided .wood-stop {
    min-height: max(600px, calc(100svh - 92px));
    padding-top: calc(var(--wood-art-height) + 24px);
    padding-bottom: 30px;
  }
  .wood-stage {
    top: 92px;
    height: var(--wood-art-height);
    margin: 0;
    z-index: 1;
    justify-content: flex-start;
    background: var(--forest);
  }
  .guided .wood-track { z-index: 1; }
  .wood-views {
    flex: none;
    align-self: center;
    height: calc(var(--wood-art-height) - 45px);
    max-width: 100%;
    border: 0;
    box-shadow: none;
  }
  .wood-copy h2 { font-size: clamp(48px, 15vw, 89px); }
  .wood-copy h2 br { display: none; }
  .wood-copy .kicker { margin-bottom: 16px; }
  .wood-copy > p:not(.kicker) { margin: 18px 0; max-width: 36ch; }
  .wood-controls {
    margin: 0;
    min-height: 45px;
    padding: 0 var(--rail);
    border-bottom: 1px solid #4c635945;
  }
  .trail-links a { padding: 12px 0; }
  .water-toggle { font-size: 10px; }
}
@media (max-height: 530px) and (min-width: 761px) {
  .wood-views { max-height: calc(100svh - 140px); }
}
@media (max-width: 365px) {
  .wood-controls { padding: 0 12px; }
  .trail-links a + a::before { width: 8px; margin-left: 4px; }
}

/* Native Neon Market footage between the two illustrated casts. */
.cover {
  position: relative;
  isolation: isolate;
  height: calc(100svh - 66px);
  min-height: 490px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #201a32;
}
.cover-film, .cover::before, .cover::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.cover-film { display: block; z-index: -3; }
.cover-film img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.cover::before {
  content: "";
  z-index: -2;
  background: radial-gradient(ellipse at 50% 52%, #191527b8 0%, #201a376b 60%),
    linear-gradient(0deg, #1a1427e6, #22203f52 67%);
}
.cover::after {
  content: "";
  background: linear-gradient(0deg, #171221, #17122169 7%, transparent 19%);
  z-index: 1;
}
/* Keep both casts on the same baseline as the viewport changes shape. */
.cover-cast {
  position: absolute;
  bottom: 0;
  width: min(36vw, 67svh);
  aspect-ratio: 1 / 1.14;
  pointer-events: none;
  z-index: -1;
}
.cover-left { left: 0; }
.cover-right { right: 0; }
.cover-cast img {
  display: block;
  position: absolute;
  height: auto;
  max-width: none;
  filter: brightness(.78) saturate(.88) drop-shadow(0 3px 2px #161021b0);
}
.cover-left .brassknuckles { width: 64%; left: -13%; bottom: 25%; }
.cover-left .slasher { width: 61%; left: 22%; bottom: 24%; }
.cover-left .tofu-rin { width: 46%; left: 55%; bottom: -1%; z-index: 1; }
.cover-left .player1 { width: 86%; left: -11%; bottom: -12%; z-index: 2; }

/* All nine source portraits face right. Mirror just the opposing cast. */
.cover-right img { transform: scaleX(-1); }
.cover-right .empress { width: 55%; right: -11%; bottom: 34%; }
.cover-right .velocity { width: 54%; right: 26%; bottom: 35%; }
.cover-right .riptide { width: 53%; right: 41%; bottom: 12%; }
.cover-right .blackout { width: 49%; right: -9%; bottom: -2%; }
.cover-right .fatherland { width: 81%; right: 9%; bottom: -13%; }
.cover-cast img:not(.player1):not(.fatherland) {
  mask-image: linear-gradient(#000 85%, transparent);
}
.cover-cast .player1, .cover-cast .fatherland {
  filter: drop-shadow(0 5px 2px #100d19ab);
}
.cover-title {
  position: relative;
  width: 37%;
  z-index: 2;
  text-align: center;
  color: #fff1dd;
}
.cover-title h1 img { display: block; width: 100%; height: auto; }
.cover-description {
  max-width: 34ch;
  margin: 20px auto 0;
  font-size: clamp(16px, 1.48vw, 25px);
  line-height: 1.34;
  font-weight: 750;
  text-wrap: pretty;
  text-shadow: 0 2px 7px #140e23;
}
.cover-explore {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 46px;
  margin-top: 24px;
  padding: 10px 23px;
  background: var(--orange);
  color: #231722;
  font: bold 14px Terminal, monospace;
  box-shadow: 0 4px #8c2608;
}
.cover-explore:hover { background: var(--orange-hover); }
@media (max-width: 760px) {
  .cover {
    height: calc(100svh - 92px);
    min-height: clamp(490px, 105vw, 700px);
    padding-bottom: min(48vw, 40svh);
  }
  .cover-title { width: min(90%, 440px); margin-top: 0; }
  .cover-title h1 img { width: min(78%, 318px); margin: auto; }
  .cover-description { margin-top: 12px; max-width: 32ch; font-size: 16px; }
  .cover-explore { margin-top: 14px; }
  .cover-cast { width: 50%; }
  .cover::after { background: linear-gradient(0deg, #110e1ed4, transparent 9%); }
}

/* The same visible wordmark serves the cover and the navigation. */
.guided-opening header {
  position: fixed;
  inset: 0 0 auto;
  background: transparent;
  border-color: transparent;
  pointer-events: none;
  isolation: isolate;
}
.guided-opening header::before {
  content: "";
  position: absolute;
  inset: 0 0 -1px;
  z-index: -1;
  background: #171320;
  border-bottom: 1px solid #49404c;
  opacity: var(--nav-reveal, 0);
}
.guided-opening header nav { opacity: var(--nav-reveal, 0); }
.guided-opening header:not(.nav-ready) nav { visibility: hidden; }
.guided-opening header.nav-ready :is(nav,.studio) { pointer-events: auto; }
.guided-opening header .studio-mark {
  display: block;
  height: auto;
  transform-origin: top left;
  visibility: hidden;
}
.logo-measured header .studio-mark { visibility: visible; }
.logo-measured .cover-title h1 img { opacity: 0; }
.guided-opening .cover { height: 100svh; }
@keyframes cast-arrives {
  from { opacity: 0; transform: translate(var(--enter-x), 14px); }
  to { opacity: 1; transform: translate(0,0); }
}
@keyframes opening-copy {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes opening-ink { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .opening-intro .cover-left { --enter-x: -6%; }
  .opening-intro .cover-right { --enter-x: 6%; }
  .opening-intro .cover-cast { animation: cast-arrives 850ms cubic-bezier(.2,.7,.2,1) both; }
  .opening-intro .studio-mark { animation: opening-ink 550ms ease-out both; }
  .opening-intro .cover-description { animation: opening-copy 560ms 130ms ease-out both; }
  .opening-intro .cover-explore { animation: opening-copy 520ms 220ms ease-out both; }
}

.mayhem-invitation {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #181526;
  border-top: 2px solid #40344e;
}
.mayhem-invitation::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #17131fed 5%, #19131ed9 32%, #24182d70 65%, #16132094),
    url(assets/invitation/market-at-night.webp) center 46% / cover;
}
.invitation-layout {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding: clamp(52px, 8vh, 104px) var(--rail);
  min-height: calc(100svh - 66px);
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  align-items: center;
  gap: clamp(28px, 6vw, 96px);
}
.invitation-copy h2 {
  font: 800 clamp(44px, 5.4vw, 84px)/.96 City, sans-serif;
  letter-spacing: -.065em;
  color: var(--paper);
}
.invitation-copy strong {
  position: relative;
  display: block;
  width: max-content;
  margin: .06em 0 .15em;
  font-size: 1.64em;
  line-height: .91;
  font-weight: inherit;
  letter-spacing: -.08em;
  color: var(--orange);
  transform: skewX(-9deg);
  transform-origin: bottom left;
  text-shadow: .025em .045em #110e19;
}
.invitation-copy strong::after {
  content: "";
  display: block;
  height: .052em;
  width: 84%;
  margin: .06em 0 0 .04em;
  background: var(--orange);
  clip-path: polygon(0 76%, 100% 0, 96% 90%, 22% 100%);
}
.invitation-copy p {
  margin: 1.55rem 0 1.6rem;
  font-size: clamp(17px, 1.65vw, 24px);
}
.release-cabinet {
  position: relative;
  isolation: isolate;
  width: min(100%, 58svh, 520px);
  justify-self: center;
  text-align: center;
}
.release-cabinet::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -14% 5%;
  background: radial-gradient(ellipse, #ac83ff65 0%, #8864cc40 34%, transparent 71%);
  pointer-events: none;
}
.cabinet-turntable {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 352 / 420;
  padding: 0;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.cabinet-turntable:active { cursor: grabbing; }
.cabinet-turntable::after {
  content: "";
  position: absolute;
  bottom: 0; left: 18%; right: 18%; height: 5%;
  background: radial-gradient(ellipse, #09060dc9, transparent 70%);
  pointer-events: none;
}
.cabinet-float, .cabinet-views, .cabinet-turntable canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}
.cabinet-views { background: url(assets/invitation/cabinet-views.webp) 0 0 / 600% 400% no-repeat; }
.cabinet-display {
  position: absolute; top: 0; left: 0;
  width: 400px; height: 240px; max-width: none;
  max-height: none;
  transform-origin: 0 0; visibility: hidden;
}
.cabinet-display.is-projected { visibility: visible; }
.is-live .cabinet-display {
  visibility: visible; top: 50%; left: 50%; width: 1px; height: 1px;
  opacity: 0; transform: none;
}
.cabinet-turntable canvas { visibility: hidden; }
.cabinet-turntable.is-live canvas { visibility: visible; }
.cabinet-turntable.is-live .cabinet-views { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .cabinet-float { animation: cabinet-hover 4.8s ease-in-out infinite alternate; }
  @keyframes cabinet-hover { from { transform: translateY(0); } to { transform: translateY(-6px); } }
}
@media (max-width: 650px) {
  .invitation-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: center;
    min-height: calc(100svh - 92px);
    padding: 38px 22px 35px;
    gap: 28px;
  }
  .invitation-copy { text-align: center; }
  .invitation-copy h2 { font-size: clamp(29px, 7.2vw, 42px); }
  .invitation-copy h2 br { display: none; }
  .invitation-copy strong { margin-inline: auto; font-size: 1.92em; }
  .invitation-copy p { margin: 1rem 0 .75rem; }
  .release-cabinet { width: min(94%, 45svh, 365px); }
  .mayhem-invitation::before {
    background-image: linear-gradient(#16121ee8, #21182999 54%, #17132094), url(assets/invitation/market-at-night.webp);
  }
}
@media (max-width: 650px) and (max-height: 740px) {
  .invitation-layout { padding-block: 20px; gap: 12px; }
  .release-cabinet { width: min(94%, 40svh); }
}
