/* ============================================================
   Wild Rips — editorial scene redesign
   Keeps the existing cards, phone UI, and pack-opening mechanics,
   while replacing the long panel-led layout with immersive scenes.
   ============================================================ */

:root {
  --rift-black: #020809;
  --rift-abyss: #071417;
  --rift-cyan: #59e6ff;
  --rift-ice: #f2fbfd;
  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --maxw: 1440px;
  --nav-h: 78px;
}

html {
  scroll-padding-top: var(--nav-h);
}

body {
  background: var(--rift-black);
  color: var(--rift-ice);
}

.bg-layers,
#bg-particles {
  display: none;
}

main {
  overflow: clip;
}

main > section {
  isolation: isolate;
}

[data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 10px 14px;
  border: 2px solid var(--rift-black);
  background: var(--rift-ice);
  color: var(--rift-black);
  font-weight: 700;
  text-decoration: none;
}

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

.scene-label,
.hero-kicker {
  margin: 0 0 18px;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.section-head,
.section-head.center {
  max-width: 680px;
  margin: 0;
  text-align: left;
}

.section-head h2,
.h2 {
  font-family: var(--font-display);
  font-size: clamp(54px, 6.4vw, 100px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.headline-line {
  display: inline-block;
  white-space: nowrap;
}

.lead {
  max-width: 38rem;
  color: inherit;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.45;
  opacity: 0.72;
}

.btn {
  height: 50px;
  padding-inline: 23px;
  border-radius: 999px;
  box-shadow: none;
}

.btn-primary {
  background: var(--rift-black);
  color: var(--rift-ice);
  box-shadow: none;
}

.btn-primary:hover {
  background: #101c1e;
  box-shadow: none;
}

.btn-ghost {
  border-color: color-mix(in srgb, currentColor 35%, transparent);
  color: inherit;
}

.btn-ghost:hover {
  border-color: currentColor;
  background: transparent;
}

.download-button {
  width: 190px;
  min-width: 0;
  aspect-ratio: 630 / 212;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: 0 14px 30px -16px rgba(2, 8, 9, 0.8);
  transition:
    transform 0.2s var(--ease),
    filter 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.download-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 18px 34px -16px rgba(2, 8, 9, 0.9);
}

.download-button:active {
  transform: translateY(0);
}

.download-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Navigation ------------------------------------------------ */

.nav {
  /* One rhythm for every item on the right: the gap between the links and the
     gap before the CTA both read from this, so nothing is spaced by accident. */
  --nav-item-gap: clamp(26px, 2.9vw, 42px);
  --nav-track: 0.11em;
  height: var(--nav-h);
  border: 0;
}

.nav-inner {
  max-width: none;
  padding-inline: clamp(22px, 3.6vw, 58px);
}

.nav:not(.is-scrolled) .nav-links a,
.nav:not(.is-scrolled) .nav-download {
  color: var(--rift-black);
}

/* Over the cyan hero the lockup reads as a solid black silhouette; once the
   bar goes dark it returns to full colour. */
.nav:not(.is-scrolled) .nav-lockup {
  filter: brightness(0) saturate(100%);
}

.nav.is-scrolled {
  border: 0;
  background: rgba(2, 8, 9, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-brand {
  gap: 0;
}

.nav-lockup {
  display: block;
  width: auto;
  height: clamp(27px, 2.5vw, 35px);
  filter: drop-shadow(0 0 14px rgba(89, 230, 255, 0.32));
  transition: filter 0.3s var(--ease), transform 0.3s var(--ease);
}

.nav-brand:hover .nav-lockup {
  transform: translateY(-1px);
}

.nav-right,
.nav-links {
  gap: var(--nav-item-gap);
}

.nav-links a,
.nav-download {
  height: 32px;
  display: inline-flex;
  align-items: center;
  /* Letter-spacing also lands after the final glyph, which pads every item's
     right edge. Pulling it back makes the measured gaps the optical gaps. */
  margin-inline-end: calc(var(--nav-track) * -1);
  color: var(--rift-ice);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--nav-track);
  text-decoration: none;
  text-transform: uppercase;
}

.nav-download {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}

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

.hero {
  min-height: 100svh;
  padding: var(--nav-h) 0 0;
  background: var(--rift-cyan);
  color: var(--rift-black);
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 16%;
  z-index: 1;
  background: linear-gradient(transparent, rgba(6, 105, 124, 0.16));
  pointer-events: none;
}

.hero-ambient,
.hero-floor {
  display: none;
}

.hero-grid {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  min-height: calc(100svh - var(--nav-h));
  padding-inline: clamp(22px, 3.6vw, 58px);
}

.hero-copy {
  position: absolute;
  top: 45%;
  left: 50%;
  z-index: 3;
  width: min(90vw, 1180px);
  max-width: none;
  text-align: center;
  transform: translate(-50%, -50%);
}

.hero-kicker {
  margin-bottom: clamp(20px, 3vh, 34px);
}

.hero-game-logo {
  width: clamp(158px, 16.5vw, 240px);
  height: auto;
  margin: 0 auto clamp(10px, 1.5vh, 16px);
  filter: drop-shadow(0 8px 12px rgba(2, 8, 9, 0.16));
}

.hero h1 {
  margin: 0;
  color: var(--rift-black);
  font-family: var(--font-display);
  font-size: clamp(60px, 7.45vw, 120px);
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.hero h1 span,
.hero h1 em {
  display: block;
}

.hero h1 em {
  margin-top: 0.15em;
  color: var(--rift-ice);
  font-style: italic;
  letter-spacing: -0.055em;
  transform: skewX(-4deg);
}

.hero-accent {
  background: none;
  color: inherit;
  text-shadow: none;
}

.hero .lead {
  max-width: none;
  margin: clamp(28px, 4vh, 48px) auto 0;
  color: var(--rift-black);
  font-weight: 600;
  opacity: 1;
}

.hero-cta {
  position: relative;
  z-index: 7;
  justify-content: center;
  margin-top: 24px;
  pointer-events: auto;
}

.hero .btn-ghost {
  border-color: rgba(2, 8, 9, 0.42);
}

.hero-badges {
  display: none;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  grid-area: auto;
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 0;
  pointer-events: none;
}

.hero-phone-wrap {
  position: absolute;
  top: 8%;
  right: 3%;
  bottom: auto;
  left: auto;
  z-index: 4;
  width: clamp(210px, 17.2vw, 274px);
  height: auto;
  filter: drop-shadow(0 34px 28px rgba(2, 8, 9, 0.38));
}

.hero .phone {
  position: relative;
  top: auto;
  right: auto;
  z-index: 1;
  width: 100%;
  transform: rotate(7deg);
  box-shadow: 0 36px 60px -28px rgba(2, 8, 9, 0.68);
}

.hero-rift-core {
  position: absolute;
  inset: 8% 12% 5%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-rift-core::before {
  content: '';
  position: absolute;
  inset: 13% 15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 251, 253, 0.22), rgba(242, 251, 253, 0.05) 42%, transparent 69%);
  filter: blur(10px);
}

.hero-rift-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(2, 8, 9, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-9deg);
  animation: hero-rift-orbit 10s var(--ease) infinite;
}

.hero-rift-orbit-1 {
  width: min(74vw, 1040px);
  height: min(57vw, 650px);
}

.hero-rift-orbit-2 {
  width: min(59vw, 830px);
  height: min(43vw, 490px);
  border-color: rgba(242, 251, 253, 0.28);
  animation-direction: reverse;
}

.hero-rift-flare {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(242, 251, 253, 0.68), transparent);
  box-shadow: 0 0 34px rgba(242, 251, 253, 0.72);
  opacity: 0.34;
  transform: translate(-50%, -50%) rotate(-9deg);
  animation: hero-rift-flare 10s var(--ease) infinite;
}

.hero-scene-piece {
  position: absolute;
  z-index: 2;
  will-change: transform;
}

.hero-scene-piece .rc-card,
.hero-scene-piece .booster {
  width: 100%;
}

.hero-scene-piece .rc-card {
  box-shadow: 0 32px 40px -22px rgba(2, 8, 9, 0.72);
}

.hero-scene-piece .booster > img {
  filter: drop-shadow(0 28px 28px rgba(2, 8, 9, 0.48));
}

.hero-piece-motion {
  width: 100%;
  animation: hero-piece-breathe 10s var(--ease) infinite;
  animation-delay: var(--phase, 0s);
  transform: rotate(var(--turn, 0deg));
  transform-origin: 50% 55%;
}

.hero-pack-main {
  top: 17%;
  left: 5%;
  z-index: 5;
  width: clamp(124px, 11vw, 174px);
  --phase: -1s;
  --turn: -4deg;
  --turn-mid: -2deg;
  --drift-x: 5px;
  --drift-y: -12px;
}

.hero-pack-wing {
  right: 20%;
  bottom: 1%;
  z-index: 3;
  width: clamp(88px, 8.4vw, 132px);
  --phase: -4.4s;
  --turn: 13deg;
  --turn-mid: 10deg;
  --drift-x: -7px;
  --drift-y: -9px;
}

.hero-pack-pocket {
  bottom: -5%;
  left: 30%;
  width: clamp(80px, 7.6vw, 118px);
  --phase: -7.2s;
  --turn: 7deg;
  --turn-mid: 9deg;
  --drift-x: 5px;
  --drift-y: -8px;
}

.hero-card-left-high {
  top: 9%;
  left: 16%;
  width: clamp(76px, 7.8vw, 122px);
  --phase: -5.7s;
  --turn: 11deg;
  --turn-mid: 8deg;
  --drift-x: 7px;
  --drift-y: -10px;
}

.hero-card-left-low {
  top: 53%;
  left: -1%;
  z-index: 4;
  width: clamp(96px, 10vw, 156px);
  --phase: -2.2s;
  --turn: -13deg;
  --turn-mid: -10deg;
  --drift-x: 8px;
  --drift-y: -12px;
}

.hero-card-left-front {
  bottom: -7%;
  left: 15%;
  z-index: 5;
  width: clamp(106px, 10.7vw, 168px);
  --phase: -8.1s;
  --turn: 8deg;
  --turn-mid: 5deg;
  --drift-x: -5px;
  --drift-y: -13px;
}

.hero-card-right-high {
  top: 8%;
  right: 19%;
  z-index: 5;
  width: clamp(92px, 9vw, 140px);
  --phase: -3.1s;
  --turn: -10deg;
  --turn-mid: -7deg;
  --drift-x: -8px;
  --drift-y: -12px;
}

.hero-card-right-mid {
  top: 42%;
  right: -1%;
  z-index: 6;
  width: clamp(108px, 10.5vw, 164px);
  --phase: -6.6s;
  --turn: 12deg;
  --turn-mid: 9deg;
  --drift-x: -9px;
  --drift-y: -10px;
}

.hero-card-right-low {
  right: 5%;
  bottom: -7%;
  z-index: 5;
  width: clamp(98px, 10vw, 156px);
  --phase: -9.1s;
  --turn: -6deg;
  --turn-mid: -3deg;
  --drift-x: -6px;
  --drift-y: -13px;
}

.hero-card-right-far {
  right: 27%;
  bottom: 8%;
  width: clamp(78px, 7.4vw, 116px);
  --phase: -1.7s;
  --turn: 9deg;
  --turn-mid: 6deg;
  --drift-x: 7px;
  --drift-y: -8px;
}

@keyframes hero-piece-breathe {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(var(--turn, 0deg));
  }
  42% {
    transform: translate3d(var(--drift-x, 0), var(--drift-y, -10px), 0) rotate(var(--turn-mid, 1deg));
  }
  72% {
    transform: translate3d(0, -3px, 0) rotate(var(--turn, 0deg));
  }
}

@keyframes hero-rift-orbit {
  0%, 100% { opacity: 0.46; transform: translate(-50%, -50%) rotate(-9deg) scale(0.98); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) rotate(-4deg) scale(1.03); }
}

@keyframes hero-rift-flare {
  0%, 100% { opacity: 0.2; transform: translate(-50%, -50%) rotate(-9deg) scaleX(0.72); }
  45% { opacity: 0.48; transform: translate(-50%, -50%) rotate(-6deg) scaleX(1); }
  72% { opacity: 0.3; transform: translate(-50%, -50%) rotate(-9deg) scaleX(0.86); }
}

.scene-next {
  position: absolute;
  bottom: 22px;
  left: 50%;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid rgba(2, 8, 9, 0.42);
  border-radius: 999px;
  color: var(--rift-black);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

/* Interactive demo ----------------------------------------- */

.demo {
  min-height: 0;
  display: grid;
  align-items: center;
  padding-block: clamp(84px, 8vw, 112px) clamp(64px, 6vw, 88px);
  background: var(--rift-ice);
  color: var(--rift-black);
}

.demo > .wrap {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(420px, 1fr);
  align-items: center;
  gap: clamp(44px, 6vw, 96px);
}

.demo .section-head {
  grid-column: 2;
  grid-row: 1;
}

.demo .section-head h2 {
  max-width: 8ch;
}

.demo .section-head .lead {
  max-width: 30rem;
}

.demo-stage {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: clamp(500px, 58svh, 620px);
  min-height: 0;
  margin: 0;
}

.demo-pedestal {
  background: radial-gradient(ellipse at center, rgba(7, 20, 23, 0.23), transparent 66%);
}

.demo-ring {
  border-color: rgba(2, 8, 9, 0.12);
}

.demo-ring.r2 {
  border-color: rgba(2, 8, 9, 0.06);
}

.demo-hint,
.demo-result,
.demo .link-arrow {
  color: var(--rift-black);
}

.demo .link-arrow {
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
}

/* Three-step scene ----------------------------------------- */

.how {
  min-height: 0;
  display: grid;
  align-items: center;
  padding-block: clamp(84px, 8vw, 112px) clamp(64px, 6vw, 88px);
  background: var(--rift-cyan);
  color: var(--rift-black);
}

.how .section-head {
  max-width: 900px;
  margin-bottom: clamp(42px, 5vw, 68px);
}

.how .section-head h2 {
  max-width: none;
  font-size: clamp(62px, 8.2vw, 126px);
}

.how .lead {
  color: var(--rift-black);
  opacity: 0.72;
}

.how-steps {
  gap: 0;
  border-top: 2px solid var(--rift-black);
}

.how-steps::before {
  display: none;
}

.how-step {
  min-width: 0;
  padding: clamp(24px, 2.5vw, 36px) clamp(18px, 2.5vw, 34px) 0;
  border: 0;
  border-right: 1px solid rgba(2, 8, 9, 0.25);
  border-radius: 0;
  background: transparent;
  color: var(--rift-black);
}

.how-step:first-child {
  padding-left: 0;
}

.how-step:last-child {
  padding-right: 0;
  border-right: 0;
}

.how-step:hover,
.how-step.revealed {
  transform: none;
  border-color: rgba(2, 8, 9, 0.25);
}

.how-visual {
  min-height: 150px;
  margin-bottom: 24px;
}

.how-step-num {
  margin: 0 0 14px;
  color: var(--rift-black);
  font-family: var(--font-display);
  font-size: clamp(32px, 3.2vw, 52px);
  font-weight: 400;
  letter-spacing: -0.06em;
  opacity: 0.3;
}

.how-step h3 {
  margin-bottom: 8px;
  color: var(--rift-black);
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.how-step p {
  color: var(--rift-black);
  opacity: 0.67;
}

/* Collection ------------------------------------------------ */

.collection {
  min-height: 0;
  display: grid;
  align-items: center;
  padding-block: clamp(88px, 8vw, 112px) clamp(68px, 6.5vw, 92px);
  background: #000;
  color: var(--rift-ice);
}

.collection-grid {
  grid-template-columns: minmax(480px, 1.05fr) minmax(380px, 0.95fr);
  gap: clamp(44px, 6vw, 96px);
}

.collection-copy {
  grid-column: 2;
  grid-row: 1;
}

.collection-field {
  grid-column: 1;
  grid-row: 1;
}

.collection .section-head {
  max-width: 600px;
  margin: 0;
}

.collection .section-head h2 {
  max-width: none;
  font-size: clamp(58px, 5.8vw, 92px);
}

.collection .lead {
  color: var(--rift-ice);
}

.collection-panel {
  display: none;
}

.collection-field-persp {
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.3vw, 19px);
  transform: rotate(-2deg);
}

.collection .tilt-float {
  width: clamp(92px, 10vw, 146px);
}

.collection-glow {
  background: radial-gradient(circle, rgba(89, 230, 255, 0.34), transparent 62%);
}

/* App scene ------------------------------------------------- */

.showcase {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-block: clamp(110px, 10vw, 150px) clamp(80px, 8vw, 120px);
  background: var(--rift-ice);
  color: var(--rift-black);
}

.showcase > .wrap {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(430px, 0.92fr) minmax(400px, 1fr);
  align-items: center;
  gap: clamp(50px, 9vw, 145px);
}

.showcase .section-head {
  grid-column: 2;
  grid-row: 1;
  max-width: 610px;
}

.showcase .section-head h2 {
  max-width: 8ch;
  font-size: clamp(62px, 7vw, 110px);
}

.showcase-stage {
  grid-column: 1;
  grid-row: 1;
  min-height: min(78svh, 770px);
}

.showcase-phone-side {
  display: none;
}

.showcase-phone-center {
  width: clamp(280px, 26vw, 370px);
  animation: none;
  box-shadow: 0 48px 90px -30px rgba(2, 8, 9, 0.42);
  transform: rotate(-2.5deg);
}

.showcase-floor-glow {
  background: radial-gradient(50% 58% at 50% 45%, rgba(7, 20, 23, 0.16), transparent 70%);
}

.showcase-floor-line {
  background: linear-gradient(90deg, transparent, rgba(2, 8, 9, 0.2), transparent);
}

/* Feature edit --------------------------------------------- */

.feat {
  min-height: 0;
  display: grid;
  align-items: center;
  padding-block: clamp(84px, 8vw, 112px);
  background: var(--rift-abyss);
  color: var(--rift-ice);
}

.feat > .wrap {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(380px, 0.9fr) minmax(480px, 1.1fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: end;
}

.feat .section-head {
  max-width: 600px;
}

.feat .section-head h2 {
  max-width: 9ch;
  font-size: clamp(58px, 6.4vw, 100px);
}

.feat .lead,
.feat-card p {
  color: var(--rift-ice);
  opacity: 0.62;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid rgba(242, 251, 253, 0.55);
}

.feat-card {
  min-height: 150px;
  padding: 24px 24px 20px 0;
  border: 0;
  border-bottom: 1px solid rgba(242, 251, 253, 0.2);
  border-radius: 0;
  background: transparent;
}

.feat-card:nth-child(even) {
  padding-left: 24px;
  border-left: 1px solid rgba(242, 251, 253, 0.2);
}

.feat-card:hover {
  transform: none;
  border-color: rgba(242, 251, 253, 0.2);
  background: transparent;
}

.feat-icon {
  display: none;
}

.feat-card h3 {
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.feat-card p {
  font-size: 15px;
  line-height: 1.55;
}

/* Final scene ---------------------------------------------- */

.cta {
  min-height: 0;
  display: grid;
  align-items: center;
  padding-block: clamp(96px, 9vw, 130px) clamp(72px, 7vw, 96px);
  background: var(--rift-cyan);
  color: var(--rift-black);
}

.cta .wrap {
  width: 100%;
}

.cta-content {
  max-width: 1100px;
  margin-inline: auto;
}

.cta-title {
  max-width: none;
  margin: 0;
  color: var(--rift-black);
  font-family: var(--font-display);
  font-size: clamp(76px, 11vw, 176px);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.085em;
  text-transform: uppercase;
}

.cta-lead {
  margin-top: 34px;
  color: var(--rift-black);
  opacity: 0.72;
}

.cta-actions {
  margin-top: 30px;
}

.cta .download-button {
  border: 0;
  background: transparent;
}

.cta .download-button:hover {
  background: transparent;
}

.cta-note {
  color: var(--rift-black);
  opacity: 0.58;
}

.cta-backlight {
  background: radial-gradient(circle, rgba(242, 251, 253, 0.72), transparent 64%);
}

.cta-decor .rc-card {
  box-shadow: 0 34px 48px -24px rgba(2, 8, 9, 0.64);
}

.cta-decor .booster > img {
  filter: drop-shadow(0 30px 40px rgba(2, 8, 9, 0.5));
}

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

.footer {
  padding-block: 44px;
  background: var(--rift-black);
}

.footer-rule {
  display: none;
}

.footer-word {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-nav a,
.footer-nav button,
.footer-copy,
.footer-legal {
  color: rgba(242, 251, 253, 0.56);
}

.footer-nav a:hover,
.footer-nav button:hover {
  color: var(--rift-ice);
}

/* Dialogs --------------------------------------------------- */

.site-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: min(780px, calc(100svh - 32px));
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: var(--rift-ice);
}

.site-dialog::backdrop {
  background: rgba(2, 8, 9, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dialog-shell {
  max-height: min(780px, calc(100svh - 32px));
  overflow: hidden;
  border: 1px solid rgba(89, 230, 255, 0.22);
  border-radius: 22px;
  background: #071417;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 28px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.dialog-kicker {
  margin: 0 0 7px;
  color: var(--rift-cyan);
  font-size: 12px;
  font-weight: 700;
}

.dialog-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.dialog-close {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: var(--rift-ice);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.dialog-close:hover {
  border-color: rgba(89, 230, 255, 0.5);
  background: rgba(89, 230, 255, 0.08);
}

.dialog-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.dialog-body {
  max-height: calc(100svh - 158px);
  padding: 24px 28px 30px;
  overflow-y: auto;
  color: rgba(242, 251, 253, 0.72);
  font-size: 15px;
  line-height: 1.65;
}

.dialog-body h3 {
  margin: 24px 0 6px;
  color: var(--rift-ice);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
}

.dialog-body a {
  color: var(--rift-cyan);
}

.site-dialog-compact {
  width: min(500px, calc(100vw - 32px));
}

.site-dialog-compact .dialog-body {
  padding-bottom: 32px;
}

body:has(.site-dialog[open]) {
  overflow: hidden;
}

/* Responsive ------------------------------------------------ */

@media (max-width: 1023px) {
  .hero h1 {
    font-size: clamp(66px, 10.4vw, 106px);
  }

  .hero-phone-wrap {
    right: -2%;
    width: clamp(190px, 22vw, 236px);
  }

  .hero-pack-main {
    left: 2%;
  }

  .hero-card-left-high {
    left: 14%;
  }

  .hero-card-right-high {
    right: 17%;
  }

  .hero-card-right-mid {
    right: -4%;
  }

  .demo > .wrap,
  .showcase > .wrap {
    grid-template-columns: minmax(340px, 0.85fr) minmax(340px, 1fr);
    gap: 34px;
  }

  .collection-grid {
    grid-template-columns: minmax(360px, 1fr) minmax(330px, 0.9fr);
    gap: 40px;
  }

  .collection .tilt-float {
    width: clamp(78px, 11vw, 112px);
  }

  .feat > .wrap {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 767px) {
  :root {
    --nav-h: 66px;
    --gutter: 22px;
  }

  .nav-inner {
    padding-inline: 18px;
  }

  .nav-word {
    display: block;
    font-size: 13px;
  }

  .nav-links {
    display: none;
  }

  .nav-download {
    font-size: 11px;
  }

  .hero {
    min-height: 920px;
  }

  .hero-grid {
    min-height: calc(920px - var(--nav-h));
  }

  .hero-copy {
    top: 42.5%;
    width: calc(100vw - 26px);
  }

  .hero-kicker {
    margin-bottom: 20px;
    font-size: 12px;
  }

  .hero-game-logo {
    width: min(210px, 56vw);
    margin-bottom: 12px;
  }

  .hero h1 {
    font-size: clamp(44px, 13.2vw, 56px);
    line-height: 0.86;
    letter-spacing: -0.035em;
  }

  .hero h1 em {
    margin-top: 0.18em;
    letter-spacing: -0.045em;
  }

  .hero .lead {
    max-width: 25ch;
    margin-top: 23px;
    font-size: 14px;
  }

  .hero-cta {
    gap: 8px;
    margin-top: 20px;
  }

  .hero .download-button {
    width: 185px;
    min-width: 0;
    height: auto;
    padding: 0;
  }

  .hero .btn {
    height: 44px;
    padding-inline: 17px;
    font-size: 13px;
  }

  .hero .btn-ghost {
    border-color: var(--rift-black);
    background: var(--rift-cyan);
  }

  .hero .phone {
    top: auto;
    right: auto;
    width: 100%;
    transform: rotate(7deg);
  }

  .hero-phone-wrap {
    top: auto;
    right: -62px;
    bottom: -70px;
    width: 165px;
  }

  .hero-rift-core {
    inset: 7% -34% 0;
  }

  .hero-rift-orbit-1 {
    width: 720px;
    height: 520px;
  }

  .hero-rift-orbit-2 {
    width: 520px;
    height: 360px;
  }

  .hero-pack-main {
    top: auto;
    left: -38px;
    bottom: -30px;
    width: 118px;
  }

  .hero-pack-wing {
    right: 52px;
    bottom: 8px;
    width: 78px;
  }

  .hero-pack-pocket {
    left: 54px;
    bottom: 8px;
    width: 72px;
  }

  .hero-card-left-high {
    top: 8%;
    left: -20px;
    width: 76px;
  }

  .hero-card-right-high {
    top: 8%;
    right: -20px;
    width: 76px;
  }

  .hero-card-left-low {
    top: 53%;
    left: -36px;
    width: 86px;
  }

  .hero-card-left-front {
    left: 106px;
    bottom: -12px;
    width: 78px;
  }

  .hero-card-right-mid {
    top: 51%;
    right: -40px;
    width: 88px;
  }

  .hero-card-right-low {
    right: 6px;
    bottom: -14px;
    width: 76px;
  }

  .hero-card-right-far {
    right: 76px;
    bottom: 98px;
    width: 68px;
  }

  .scene-next {
    bottom: 16px;
  }

  .demo,
  .how,
  .collection,
  .showcase,
  .feat,
  .cta {
    min-height: 0;
    padding-block: 76px 60px;
  }

  .demo > .wrap,
  .showcase > .wrap,
  .collection-grid,
  .feat > .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .demo .section-head,
  .showcase .section-head,
  .collection-copy,
  .collection-field,
  .showcase-stage,
  .demo-stage {
    grid-column: 1;
  }

  .demo .section-head,
  .showcase .section-head,
  .collection-copy {
    grid-row: 1;
  }

  .demo-stage,
  .collection-field,
  .showcase-stage {
    grid-row: 2;
  }

  .demo .section-head h2,
  .showcase .section-head h2,
  .collection .section-head h2,
  .feat .section-head h2 {
    max-width: 9ch;
    font-size: clamp(50px, 15vw, 76px);
  }

  .demo-stage {
    height: 500px;
    min-height: 0;
  }

  .how .section-head h2 {
    font-size: clamp(36px, 11.5vw, 78px);
  }

  .collection .section-head h2 {
    max-width: none;
    font-size: clamp(40px, 13vw, 68px);
  }

  .how-steps {
    grid-template-columns: 1fr;
  }

  .how-step,
  .how-step:first-child,
  .how-step:last-child {
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(2, 8, 9, 0.24);
  }

  .how-step:last-child {
    border-bottom: 0;
  }

  .how-visual {
    min-height: 125px;
    margin-bottom: 20px;
  }

  .collection-field {
    width: calc(100% + 28px);
    margin-left: -14px;
  }

  .collection-field-persp {
    grid-template-columns: repeat(5, 1fr);
    gap: 7px;
  }

  .collection .tilt-float {
    width: 100%;
  }

  .collection-field .tilt-float:nth-child(9),
  .collection-field .tilt-float:nth-child(10) {
    grid-column: auto;
  }

  .showcase-stage {
    min-height: 610px;
  }

  .showcase-phone-center {
    width: min(310px, 82vw);
  }

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

  .feat-card,
  .feat-card:nth-child(even) {
    min-height: 0;
    padding: 25px 0;
    border-left: 0;
  }

  .cta {
    min-height: 620px;
  }

  .cta-title {
    font-size: clamp(68px, 20vw, 104px);
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta .download-button {
    width: min(190px, 100%);
    justify-content: center;
  }

  .cta-float-4,
  .cta-float-5 {
    display: none;
  }

  .dialog-head {
    padding: 22px 20px 18px;
  }

  .dialog-body {
    padding: 20px 20px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-piece-motion,
  .hero-rift-orbit,
  .hero-rift-flare,
  .collection .tilt-float,
  .how-pack,
  .demo-pack {
    animation: none !important;
  }
}
