@font-face {
  font-family: "Chakra Petch";
  src: url("assets/fonts/ChakraPetch-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Chakra Petch";
  src: url("assets/fonts/ChakraPetch-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --void: #090411;
  --deep: #12091f;
  --purple: #24153b;
  --purple-light: #33204f;
  --glass: rgba(37, 21, 60, 0.72);
  --text: #f3f5ff;
  --soft: #b8aec8;
  --faint: #746b85;
  --cyan: #63efff;
  --violet: #a66cff;
  --magenta: #ff62d9;
  --gold: #ffd16f;
  --line: rgba(222, 211, 255, 0.16);
  --display: "Chakra Petch", "Segoe UI", sans-serif;
  --shell: min(1180px, calc(100vw - 48px));
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--violet) var(--void);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 15%, rgba(126, 70, 182, 0.14), transparent 34rem),
    linear-gradient(180deg, var(--deep), var(--void));
  font: 400 1rem/1.65 var(--display);
}

body::before {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 19% 22%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 37%, rgba(99, 239, 255, 0.11) 0 1px, transparent 1.5px),
    radial-gradient(circle at 84% 76%, rgba(255, 98, 217, 0.1) 0 1px, transparent 1.5px);
  background-size: 310px 270px, 430px 390px, 520px 480px;
  opacity: 0.36;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

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

::selection {
  color: var(--void);
  background: var(--cyan);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 9px 13px;
  color: var(--void);
  background: var(--gold);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 12px clamp(20px, 4vw, 68px);
  border-bottom: 1px solid transparent;
  transition: min-height 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  min-height: 64px;
  border-color: var(--line);
  background: rgba(15, 7, 26, 0.88);
  backdrop-filter: blur(18px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 42px);
}

.site-nav a,
.header-demo {
  position: relative;
  color: var(--soft);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav a::after {
  position: absolute;
  right: 50%;
  bottom: -9px;
  left: 50%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--magenta), var(--cyan));
  box-shadow: 0 0 10px rgba(255, 98, 217, 0.6);
  transition: right 180ms ease, left 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.header-demo:hover,
.header-demo:focus-visible {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  right: 0;
  left: 0;
}

.header-demo {
  justify-self: end;
  padding: 8px 2px;
  border-bottom: 1px solid var(--gold);
  color: var(--text);
}

.nav-toggle {
  display: none;
}

.game-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  color: #f4f7ff;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.22em;
  text-decoration: none;
  text-shadow: 0 0 5px rgba(232, 242, 255, 0.72), 0 0 14px rgba(125, 167, 255, 0.28);
}

.game-logo__word {
  position: relative;
  z-index: 3;
}

.game-logo__prism {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 0.78em;
  height: 1.02em;
  margin: 0 0.04em 0 -0.13em;
}

.game-logo__prism > span {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(116deg, rgba(255, 255, 255, 0.92) 0 6%, rgba(126, 183, 255, 0.5) 7% 43%, rgba(30, 22, 57, 0.78) 44% 64%, rgba(201, 222, 255, 0.76) 65% 100%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 0 5px rgba(184, 222, 255, 0.85));
}

.game-logo__prism::before {
  position: absolute;
  z-index: 1;
  top: -5.8em;
  left: 48%;
  width: 0.075em;
  height: 6.4em;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.96) 18% 100%);
  box-shadow: 0 0 8px rgba(230, 243, 255, 0.72);
  transform: rotate(-1.5deg);
  transform-origin: bottom;
}

.game-logo__prism::after {
  position: absolute;
  z-index: 1;
  top: 76%;
  left: 65%;
  width: 8.4em;
  height: 0.82em;
  content: "";
  background: linear-gradient(180deg, #8a69ff 0%, #4a9dff 18%, #43eff4 35%, #62e897 50%, #ffe45f 67%, #ff9a3d 82%, #ff5274 100%);
  clip-path: polygon(0 44%, 100% 0, 100% 100%, 0 58%);
  filter: blur(0.025em) drop-shadow(0 0 5px rgba(88, 223, 255, 0.55));
  opacity: 0.95;
  transform: rotate(18deg);
  transform-origin: left center;
  -webkit-mask-image: linear-gradient(90deg, #000 0 54%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0 54%, transparent 100%);
}

.game-logo--small {
  font-size: clamp(0.68rem, 1.1vw, 0.9rem);
  letter-spacing: 0.18em;
}

.game-logo--small .game-logo__prism::before,
.game-logo--small .game-logo__prism::after {
  display: none;
}

.game-logo--hero {
  margin: 0 auto;
  font-size: clamp(2.05rem, 4.55vw, 5rem);
  letter-spacing: 0.235em;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--purple);
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 50%;
  filter: saturate(0.72) contrast(1.03) brightness(0.76);
  transform: scale(1.025);
  animation: hero-breathe 14s ease-in-out infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 16, 48, 0.88) 0%, rgba(30, 17, 50, 0.36) 31%, rgba(18, 9, 31, 0.12) 55%, rgba(9, 4, 17, 0.95) 100%),
    radial-gradient(circle at 50% 46%, transparent 0 18%, rgba(29, 13, 48, 0.18) 47%, rgba(10, 4, 18, 0.8) 100%);
}

.star-dust {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background:
    radial-gradient(circle at 18% 34%, rgba(100, 239, 255, 0.8) 0 1px, transparent 1.5px),
    radial-gradient(circle at 74% 23%, rgba(255, 209, 111, 0.68) 0 1px, transparent 1.5px),
    radial-gradient(circle at 81% 67%, rgba(255, 98, 217, 0.64) 0 1.5px, transparent 2px),
    radial-gradient(circle at 37% 76%, rgba(166, 108, 255, 0.64) 0 1px, transparent 1.5px);
}

.hero__content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  padding-top: clamp(118px, 15vh, 170px);
  padding-bottom: clamp(60px, 8vh, 92px);
  text-align: center;
}

.hero__identity {
  justify-self: center;
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--cyan);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero__identity .eyebrow {
  color: rgba(239, 246, 255, 0.74);
}

.hero__invitation {
  align-self: end;
  justify-self: center;
  max-width: 680px;
}

.hero__whisper {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.65rem, 3.2vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.hero__intro {
  margin: 17px 0 0;
  color: var(--soft);
  font-size: clamp(0.95rem, 1.35vw, 1.12rem);
  letter-spacing: 0.08em;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.button--primary {
  position: relative;
  flex-direction: column;
  min-width: 270px;
  min-height: 70px;
  padding: 14px 26px;
  border: 1px solid rgba(255, 98, 217, 0.66);
  color: var(--text);
  background: linear-gradient(90deg, rgba(89, 23, 106, 0.68), rgba(36, 21, 59, 0.82));
  box-shadow: 0 0 24px rgba(255, 60, 212, 0.18), inset 0 0 20px rgba(255, 255, 255, 0.025);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.button--primary::before,
.button--primary::after {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  content: "";
  border-top: 1px solid var(--cyan);
  border-right: 1px solid var(--cyan);
}

.button--primary::before {
  left: -18px;
  transform: translateY(-50%) rotate(45deg);
}

.button--primary::after {
  right: -18px;
  transform: translateY(-50%) rotate(225deg);
}

.button--primary:hover,
.button--primary:focus-visible {
  border-color: var(--cyan);
  box-shadow: 0 0 34px rgba(99, 239, 255, 0.24), 0 0 24px rgba(255, 98, 217, 0.22);
  transform: translateY(-2px);
}

.button--primary small {
  margin-top: 4px;
  color: var(--soft);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.text-link {
  color: var(--soft);
  text-decoration: none;
  font-size: 0.73rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.text-link span {
  margin-left: 8px;
  color: var(--cyan);
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--text);
}

.hero__note {
  margin: 24px 0 0;
  color: rgba(209, 201, 221, 0.66);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  z-index: 4;
  right: clamp(24px, 4vw, 66px);
  bottom: 32px;
  display: grid;
  width: 34px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(222, 211, 255, 0.23);
  border-radius: 20px;
}

.scroll-cue span {
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--cyan);
  border-bottom: 1px solid var(--cyan);
  transform: rotate(45deg);
  animation: cue-drop 1.6s ease-in-out infinite;
}

.section {
  position: relative;
  padding-block: clamp(96px, 12vw, 168px);
}

.threshold {
  min-height: min(820px, 82vh);
  overflow: hidden;
}

.threshold h2,
.encounter h2,
.fragments h2,
.demo-section h2 {
  position: relative;
  z-index: 2;
  max-width: 930px;
  margin: 0;
  font-size: clamp(2.65rem, 6vw, 6.4rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.threshold h2 span,
.encounter h2 span,
.fragments h2 span,
.demo-section h2 span {
  color: var(--soft);
}

.threshold__echo {
  position: absolute;
  top: 2%;
  right: 4%;
  color: rgba(166, 108, 255, 0.06);
  font-size: min(50vw, 620px);
  font-weight: 600;
  line-height: 1;
  text-shadow: 0 0 80px rgba(166, 108, 255, 0.16);
}

.threshold__copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: clamp(50px, 7vw, 90px) 0 0 auto;
  color: var(--soft);
  font-size: clamp(1.08rem, 2vw, 1.55rem);
  line-height: 1.55;
}

.encounter {
  min-height: min(900px, 92vh);
  padding: 0;
  overflow: hidden;
  background: var(--purple);
}

.encounter__image,
.encounter__image img,
.encounter__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.encounter__image img {
  object-fit: cover;
  object-position: 57% 50%;
  filter: saturate(0.88) contrast(1.08) brightness(0.74);
}

.encounter__veil {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(9, 4, 17, 0.95) 0%, rgba(17, 8, 29, 0.8) 34%, rgba(17, 8, 29, 0.16) 72%),
    linear-gradient(0deg, rgba(9, 4, 17, 0.9), transparent 52%);
}

.encounter__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(900px, 92vh);
}

.encounter h2 {
  max-width: 820px;
  font-size: clamp(2.55rem, 5.4vw, 5.8rem);
}

.fragments {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 9%, rgba(120, 72, 180, 0.14), transparent 25rem),
    var(--deep);
}

.fragments__heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 42px;
}

.fragments h2 {
  font-size: clamp(2.45rem, 5.3vw, 5.6rem);
}

.fragments__heading > p {
  margin: 0 0 9px;
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-top: clamp(52px, 7vw, 88px);
}

.gallery-card {
  position: relative;
  grid-column: span 5;
  min-height: 360px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--purple);
  cursor: zoom-in;
  text-align: left;
}

.gallery-card:nth-child(1),
.gallery-card:nth-child(4) {
  grid-column: span 7;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.04) brightness(0.86);
  transition: filter 500ms ease, transform 700ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.gallery-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  box-shadow: inset 0 0 60px rgba(13, 5, 23, 0.38);
}

.gallery-card:hover img,
.gallery-card:focus-visible img {
  filter: saturate(1) contrast(1.06) brightness(0.96);
  transform: scale(1.025);
}

.gallery-card > span {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 58px 22px 18px;
  color: rgba(248, 247, 255, 0.88);
  background: linear-gradient(transparent, rgba(8, 3, 15, 0.88));
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.demo-section {
  min-height: 760px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--deep), #1e1132);
  text-align: center;
}

.demo-section__prism {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(66vw, 660px);
  aspect-ratio: 1.1;
  border: 1px solid rgba(179, 141, 255, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(99, 239, 255, 0.025));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 0 70px rgba(166, 108, 255, 0.12));
  transform: translate(-50%, -50%);
}

.demo-section__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.demo-section h2 {
  max-width: 820px;
  font-size: clamp(2.7rem, 6vw, 6rem);
}

.button--download {
  margin-top: 48px;
}

.demo-section__note {
  max-width: 540px;
  margin: 24px 0 0;
  color: var(--faint);
  font-size: 0.72rem;
}

.demo-section__note code {
  color: var(--gold);
}

.site-footer {
  padding-block: 42px;
  border-top: 1px solid var(--line);
  background: #06020c;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr auto;
  align-items: center;
  gap: 42px;
}

.site-footer p {
  margin: 0;
  color: var(--faint);
  font-size: 0.73rem;
}

.site-footer__credits p + p {
  margin-top: 3px;
  font-size: 0.66rem;
}

.error-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 50% 38%, rgba(166, 108, 255, 0.2), transparent 28rem),
    linear-gradient(180deg, var(--deep), var(--void));
}

.error-page__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding-block: 72px;
  text-align: center;
}

.error-page__content .game-logo {
  margin-bottom: clamp(72px, 12vh, 130px);
}

.error-page__content h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 6.4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
}

.error-page__content > p:not(.eyebrow) {
  margin: 28px 0 0;
  color: var(--soft);
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.error-page__content .button {
  margin-top: 44px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--faint);
  font-size: 0.7rem;
}

.footer-links a {
  color: var(--soft);
  text-underline-offset: 4px;
}

.lightbox {
  width: min(1200px, calc(100vw - 40px));
  max-width: none;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(174, 137, 255, 0.48);
  color: var(--text);
  background: #06020c;
  box-shadow: 0 0 100px rgba(0, 0, 0, 0.82), 0 0 44px rgba(166, 108, 255, 0.16);
}

.lightbox::backdrop {
  background: rgba(5, 2, 10, 0.92);
  backdrop-filter: blur(12px);
}

.lightbox figure {
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
}

.lightbox figcaption {
  padding: 12px 18px;
  color: var(--soft);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.lightbox__close {
  position: absolute;
  z-index: 2;
  top: -44px;
  right: 0;
  padding: 8px 0;
  border: 0;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lightbox__close span {
  margin-left: 8px;
  color: var(--cyan);
  font-size: 1.3rem;
}

.lightbox__arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 44px;
  height: 66px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(16, 8, 27, 0.84);
  cursor: pointer;
  font-size: 1.8rem;
  transform: translateY(-50%);
}

.lightbox__arrow:hover,
.lightbox__arrow:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

.lightbox__arrow--prev {
  left: 12px;
}

.lightbox__arrow--next {
  right: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 760ms ease, transform 760ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-breathe {
  from { transform: scale(1.025); }
  to { transform: scale(1.055); }
}

@keyframes cue-drop {
  0%, 100% { opacity: 0.28; transform: translateY(-4px) rotate(45deg); }
  50% { opacity: 1; transform: translateY(4px) rotate(45deg); }
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px;
    border: 1px solid var(--line);
    background: rgba(15, 7, 26, 0.96);
    backdrop-filter: blur(18px);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after {
    display: none;
  }

  .header-demo {
    margin-right: 54px;
  }

  .nav-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle span:first-child,
  .nav-toggle span:first-child::before,
  .nav-toggle span:first-child::after {
    display: block;
    width: 16px;
    height: 1px;
    content: "";
    background: var(--cyan);
  }

  .nav-toggle span:first-child::before { transform: translateY(-5px); }
  .nav-toggle span:first-child::after { transform: translateY(4px); }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__credits {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: min(100% - 32px, 1180px);
  }

  .site-header {
    min-height: 66px;
    padding: 12px 16px;
  }

  .site-header .game-logo--small {
    font-size: 0.62rem;
    letter-spacing: 0.13em;
  }

  .header-demo {
    display: none;
  }

  .nav-toggle {
    top: 14px;
    right: 16px;
  }

  .hero__content {
    padding-top: 112px;
    padding-bottom: 52px;
  }

  .hero__image {
    object-position: 54% 50%;
  }

  .game-logo--hero {
    font-size: clamp(1.42rem, 7.1vw, 2.4rem);
    letter-spacing: 0.15em;
  }

  .game-logo--hero .game-logo__prism::before {
    top: -6.8em;
    height: 7.4em;
  }

  .game-logo--hero .game-logo__prism::after {
    width: 4.2em;
  }

  .hero__invitation {
    width: 100%;
  }

  .hero__whisper {
    font-size: clamp(1.55rem, 7vw, 2.15rem);
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .button--primary {
    width: calc(100% - 36px);
    min-width: 0;
    margin-inline: auto;
  }

  .hero__note {
    line-height: 1.6;
  }

  .scroll-cue {
    display: none;
  }

  .threshold {
    min-height: 680px;
  }

  .threshold__echo {
    top: 17%;
    right: -5%;
    font-size: 78vw;
  }

  .threshold__copy {
    margin-top: 64px;
  }

  .encounter,
  .encounter__copy {
    min-height: 760px;
  }

  .encounter__image img {
    object-position: 65% 50%;
  }

  .encounter__veil {
    background: linear-gradient(0deg, rgba(9, 4, 17, 0.94) 0%, rgba(18, 8, 30, 0.48) 68%, rgba(9, 4, 17, 0.52) 100%);
  }

  .encounter__copy {
    justify-content: flex-end;
    padding-bottom: 76px;
  }

  .fragments__heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-card,
  .gallery-card:nth-child(1),
  .gallery-card:nth-child(4) {
    grid-column: 1;
    min-height: 250px;
  }

  .gallery-card img {
    min-height: 250px;
  }

  .demo-section {
    min-height: 700px;
  }

  .demo-section__prism {
    width: 112vw;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-footer__credits {
    grid-column: auto;
    grid-row: auto;
  }

  .footer-links {
    align-items: flex-start;
  }

  .lightbox__arrow {
    top: auto;
    bottom: 47px;
    width: 42px;
    height: 52px;
    transform: none;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
