/* ============================================================
   RipRift — 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: 46%;
  left: 50%;
  z-index: 3;
  width: min(94vw, 1320px);
  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(64px, 8.3vw, 134px);
  font-weight: 400;
  line-height: 0.79;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

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

.hero h1 em {
  margin-top: 0.12em;
  color: var(--rift-ice);
  font-style: italic;
  letter-spacing: -0.09em;
  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;
  min-height: 0;
  pointer-events: none;
}

.hero-phone-wrap {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
}

.hero .phone {
  position: absolute;
  top: 10%;
  right: 7%;
  z-index: 1;
  width: clamp(176px, 18vw, 282px);
  transform: rotate(9deg);
  box-shadow: 0 36px 60px -28px rgba(2, 8, 9, 0.68);
}

.hero-float {
  z-index: 5;
  width: clamp(108px, 12vw, 182px);
}

.hero-float .rc-card {
  box-shadow: 0 34px 42px -24px rgba(2, 8, 9, 0.7);
}

.hero-float-1 {
  top: 8%;
  left: 8%;
}

.hero-float-2 {
  top: auto;
  right: 8%;
  bottom: 2%;
}

.hero-float-3 {
  left: 11%;
  bottom: -2%;
}

/* The top-left float is the booster pack itself, not a card. It is a taller,
   narrower silhouette, so it gets its own width and a warmer floor glow. */
.hero-float-pack {
  width: clamp(116px, 12.8vw, 190px);
}

.hero-float-pack .booster {
  width: 100%;
}

.hero-float-pack .booster > img {
  filter: drop-shadow(0 26px 34px rgba(2, 8, 9, 0.5));
}

.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: 100svh;
  display: grid;
  align-items: center;
  padding-block: clamp(110px, 11vw, 160px) clamp(80px, 8vw, 120px);
  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(50px, 8vw, 130px);
}

.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: min(72svh, 720px);
  min-height: 580px;
  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: 100svh;
  display: grid;
  align-items: center;
  padding-block: clamp(110px, 10vw, 150px) clamp(80px, 8vw, 120px);
  background: var(--rift-cyan);
  color: var(--rift-black);
}

.how .section-head {
  max-width: 900px;
  margin-bottom: clamp(54px, 7vw, 100px);
}

.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(28px, 3vw, 46px) clamp(18px, 3vw, 42px) 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: 170px;
  margin-bottom: 30px;
}

.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: 100svh;
  display: grid;
  align-items: center;
  padding-block: clamp(120px, 11vw, 170px) clamp(90px, 9vw, 140px);
  background: #000;
  color: var(--rift-ice);
}

.collection-grid {
  grid-template-columns: minmax(480px, 1.05fr) minmax(380px, 0.95fr);
  gap: clamp(50px, 8vw, 130px);
}

.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: 76svh;
  display: grid;
  align-items: center;
  padding-block: clamp(110px, 10vw, 160px);
  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(60px, 9vw, 150px);
  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: 170px;
  padding: 28px 24px 24px 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: 100svh;
  display: grid;
  align-items: center;
  padding-block: clamp(120px, 12vw, 180px) clamp(90px, 8vw, 130px);
  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(72px, 12.3vw, 126px);
  }

  .hero .phone {
    right: 1%;
  }

  .hero-float-1 {
    left: 2%;
  }

  .hero-float-2 {
    right: 2%;
  }

  .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: 820px;
  }

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

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

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

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

  .hero h1 {
    font-size: clamp(50px, 14.7vw, 72px);
    line-height: 0.82;
  }

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

  .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: 4%;
    right: -160px;
    width: 158px;
  }

  .hero-float {
    width: 92px;
  }

  .hero-float-1 {
    top: 8%;
    left: -8%;
  }

  .hero-float-2 {
    right: -7%;
    bottom: 4%;
  }

  .hero-float-3 {
    left: -7%;
    bottom: 5%;
  }

  .scene-next {
    bottom: 16px;
  }

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

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

  .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: 590px;
    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: 34px 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: 140px;
  }

  .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: 760px;
  }

  .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-float-inner,
  .collection .tilt-float,
  .how-pack,
  .demo-pack {
    animation: none !important;
  }
}
