:root {
  --display: "Instrument Serif", serif;
  --interface: system-ui, sans-serif;
  --deep-woods: #182c41;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  margin: 0;
  overflow-x: clip;
  background: #000;
  color: #fff;
  font-family: var(--display);
}

html {
  scroll-behavior: smooth;
}

body.menu-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.cinematic-shell {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

.video-layer,
.video-layer video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-layer {
  z-index: 0;
}

.video-layer::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.26), transparent 32%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.22), transparent 35%);
  content: "";
  pointer-events: none;
}

.video-layer video {
  object-fit: cover;
  opacity: 0;
  transition: opacity 1000ms ease-in-out;
}

.video-layer video.active {
  opacity: 1;
}

.scene-overlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  animation: train-bob 3s ease-in-out infinite;
}

@keyframes train-bob {
  0%,
  100% {
    transform: translateY(0) scale(1.03);
  }

  50% {
    transform: translateY(-6px) scale(1.03);
  }
}

.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0.45) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.content-layer {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 24px 24px 20px;
}

.site-nav {
  position: relative;
  z-index: 60;
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.logo {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-family: var(--display);
  font-size: 24px;
  font-style: italic;
  line-height: 1;
}

.desktop-nav {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  padding: 4px 5px 4px 24px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--interface);
  font-size: 13px;
}

.desktop-nav a:not(.nav-cta) {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  transition: color 180ms ease;
}

.nav-cta {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 20px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
}

.menu-toggle svg {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
  transition:
    opacity 300ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.close-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.75);
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.75);
}

.menu-toggle[aria-expanded="true"] .close-icon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 12px 0;
  color: #fff;
  text-align: center;
  transition: color 700ms ease;
}

.dark-scene .hero-content {
  color: var(--deep-woods);
}

.hero-badge {
  margin: 0 0 22px;
  padding: 9px 17px;
  border-radius: 999px;
  color: inherit;
  font-family: var(--interface);
  font-size: 11px;
  line-height: 1.2;
}

.hero-content h1 {
  max-width: 896px;
  margin: 0;
  font-family: var(--display);
  font-size: 88px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.hero-subtext {
  max-width: 576px;
  margin: 19px 0 0;
  font-family: var(--interface);
  font-size: 15px;
  line-height: 1.65;
}

.access-form,
.footer-form {
  display: flex;
  width: min(384px, 100%);
  min-height: 50px;
  align-items: center;
  margin-top: 24px;
  padding: 4px;
  border-radius: 999px;
  color: inherit;
  font-family: var(--interface);
}

.access-form input,
.footer-form input {
  min-width: 0;
  flex: 1;
  padding: 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font-size: 13px;
}

.access-form:focus-within,
.footer-form:focus-within {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.access-form input::placeholder,
.footer-form input::placeholder {
  color: currentColor;
  opacity: 0.74;
}

.access-form button,
.footer-form button {
  min-height: 42px;
  padding: 0 19px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.demo-notice {
  width: fit-content;
  max-width: 100%;
  margin: 8px 0 0;
  padding: 4px 8px;
  background: #fff;
  color: var(--deep-woods);
  font-family: var(--interface);
  font-size: 12px;
  line-height: 1.5;
}

.video-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
  gap: 6px 20px;
  font-family: var(--interface);
}

.video-switcher button {
  min-height: 44px;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  font-size: 11px;
  opacity: 0.5;
  transition:
    border-color 180ms ease,
    opacity 180ms ease;
}

.video-switcher button[aria-pressed="true"] {
  border-bottom-color: currentColor;
  opacity: 1;
}

.stats {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 38px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--interface);
  font-size: 13px;
}

.stats i {
  font-style: normal;
  opacity: 0.58;
}

.mobile-menu {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu nav {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  padding: 88px 28px 30px;
}

.mobile-menu a {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  font-size: 32px;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 500ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.is-open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu a:nth-child(1) {
  transition-delay: 100ms;
}

.mobile-menu a:nth-child(2) {
  transition-delay: 150ms;
}

.mobile-menu a:nth-child(3) {
  transition-delay: 200ms;
}

.mobile-menu a:nth-child(4) {
  transition-delay: 250ms;
}

.mobile-menu a:nth-child(5) {
  transition-delay: 300ms;
}

.mobile-menu .mobile-cta {
  min-height: 50px;
  margin-top: 28px;
  padding: 0 28px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-family: var(--interface);
  font-size: 14px;
  font-weight: 650;
  transform: translateY(16px) scale(0.88);
}

.mobile-menu.is-open .mobile-cta {
  transform: translateY(0) scale(1);
}

@media (width < 768px) {
  .content-layer {
    padding: 18px 20px 14px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-content {
    padding: 8px 0 2px;
  }

  .hero-badge {
    max-width: 290px;
    margin-bottom: 14px;
    padding: 8px 14px;
    font-size: 10px;
  }

  .hero-content h1 {
    font-size: 40px;
    line-height: 1.05;
  }

  .hero-subtext {
    max-width: 340px;
    margin-top: 13px;
    font-size: 12px;
    line-height: 1.5;
  }

  .access-form {
    width: min(320px, 100%);
    min-height: 48px;
    margin-top: 17px;
  }

  .access-form input {
    padding: 0 12px;
    font-size: 12px;
  }

  .access-form button {
    min-height: 40px;
    padding: 0 14px;
    font-size: 11px;
  }

  .video-switcher {
    margin-top: 10px;
    gap: 0 14px;
  }

  .video-switcher button {
    min-height: 38px;
    font-size: 9px;
  }

  .stats {
    min-height: 48px;
    gap: 4px 14px;
    font-size: 10px;
  }

  .stats i {
    display: none;
  }
}

@media (min-width: 768px) {
  .content-layer {
    padding: 28px 40px 22px;
  }

  .hero-content h1 {
    font-size: 72px;
  }
}

@media (min-width: 1024px) {
  .content-layer {
    padding: 32px 56px 24px;
  }

  .hero-content h1 {
    font-size: 88px;
  }
}

@media (width < 480px) {
  .hero-content h1 {
    font-size: 36px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .desktop-nav a:not(.nav-cta):hover,
  .desktop-nav a:not(.nav-cta):focus-visible {
    color: #fff;
  }

  .video-switcher button:hover,
  .video-switcher button:focus-visible {
    opacity: 0.8;
  }

  .video-switcher button[aria-pressed="true"]:hover,
  .video-switcher button[aria-pressed="true"]:focus-visible {
    opacity: 1;
  }
}

@media (pointer: coarse) {
  .access-form input,
  .access-form button,
  .footer-form input,
  .footer-form button {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene-overlay {
    animation: none;
    transform: scale(1.03);
  }

  .video-layer video,
  .hero-content,
  .menu-toggle svg,
  .mobile-menu a,
  .video-switcher button {
    transition-duration: 0s;
  }
}

/* ---------- Extended landing page ---------- */

[hidden] {
  display: none !important;
}

[data-reveal] {
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s);
}

.motion-ready [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translateY(32px);
}

/* Hero headline settles in word by word. */
.hw {
  display: inline-block;
  animation: word-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) calc(0.15s + var(--i) * 0.09s) both;
}

@keyframes word-in {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(0.25em);
  }
}

.scroll-cue {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 44px;
  align-items: center;
  align-self: center;
  flex-direction: column;
  gap: 6px;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--interface);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-cue i {
  width: 1px;
  height: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.25);
}

.scroll-cue i::after {
  display: block;
  height: 100%;
  background: #fff;
  content: "";
  animation: cue 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes cue {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(100%);
  }
}

.eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--interface);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-head h2,
.session-copy h2,
.footer-cta h2 {
  margin: 14px 0 0;
  font-family: var(--display);
  font-size: clamp(44px, 6.4vw, 96px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
}

.journey em,
.site-footer em {
  font-style: italic;
}

/* How it works: pinned; scenes and steps crossfade with scroll progress. */
.how {
  height: 320vh;
  height: 320svh;
}

.how-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  --q: clamp(0.5, calc(var(--p, 0) * 3), 2.5);
}

.how-scenes img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: clamp(0, calc((var(--p, 0) * 3 - var(--k)) * 4), 1);
  transform: scale(calc(1.14 - var(--p, 0) * 0.12));
}

.how-scenes img:first-child {
  opacity: 1;
}

.how-scenes::after {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  content: "";
}

.how-title {
  position: absolute;
  top: 96px;
  left: 56px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--interface);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.how-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-step {
  position: absolute;
  bottom: 14vh;
  left: 56px;
  max-width: 640px;
  /* 1 at the centre of this step's third of the scroll, 0 at its edges. */
  opacity: clamp(0, calc((1 - max(var(--q) - var(--k) - 0.5, var(--k) + 0.5 - var(--q)) * 2) * 3), 1);
  transform: translateY(calc((var(--q) - var(--k) - 1) * -40px));
}

.how-num {
  display: block;
  font-family: var(--display);
  font-size: clamp(96px, 14vw, 200px);
  font-style: italic;
  line-height: 0.8;
}

.how-step h3 {
  margin: 18px 0 0;
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 400;
  line-height: 1;
}

.how-step p {
  max-width: 440px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--interface);
  font-size: 15px;
  line-height: 1.6;
}

.how-rail {
  position: absolute;
  right: 56px;
  bottom: 14vh;
  width: 2px;
  height: 180px;
  background: rgba(255, 255, 255, 0.2);
}

.how-rail span {
  display: block;
  height: 100%;
  background: #fff;
  transform: scaleY(var(--p, 0));
  transform-origin: top;
}

/* Worlds */
.worlds,
.pricing,
.community {
  max-width: 1440px;
  margin: 0 auto;
  padding: 140px 56px 0;
}

.world-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.world {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 24px;
}

.world img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.world-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.28);
}

.world-label h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
}

.world-label p {
  margin: 4px 0 12px;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--interface);
  font-size: 13px;
}

.world-label button,
.presets button,
.billing button,
.timer-reset {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: var(--interface);
  font-size: 12px;
  cursor: pointer;
  transition:
    background-color 200ms ease,
    color 200ms ease;
}

.presets button[aria-pressed="true"],
.billing button[aria-pressed="true"] {
  background: #fff;
  color: #111;
}

/* Session timer */
.session {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  margin-top: 140px;
  place-items: center;
  padding: 80px 24px;
  overflow: hidden;
}

.session-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}

.session-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  width: min(1100px, 100%);
  align-items: center;
  padding: 48px;
  border-radius: 32px;
  background: rgba(0, 0, 0, 0.25);
}

.session-copy > p:not(.eyebrow) {
  max-width: 380px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--interface);
  font-size: 15px;
  line-height: 1.6;
}

.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.timer {
  display: grid;
  justify-items: center;
}

.timer-ring,
.timer-face {
  grid-area: 1 / 1;
}

.timer-ring {
  width: min(320px, 70vw);
  transform: rotate(-90deg);
}

.timer-ring circle {
  fill: none;
  stroke-width: 3;
}

.timer-track {
  stroke: rgba(255, 255, 255, 0.18);
}

.timer-fill {
  stroke: #fff;
  stroke-dasharray: 1;
  stroke-dashoffset: var(--elapsed, 0);
  stroke-linecap: round;
  transition: stroke-dashoffset 400ms linear;
}

.timer-face {
  display: flex;
  align-self: center;
  flex-direction: column;
  align-items: center;
}

.timer-time {
  font-family: var(--display);
  font-size: clamp(56px, 7vw, 88px);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.timer-state {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--interface);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timer-controls {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.timer-main {
  min-width: 120px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-family: var(--interface);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

/* Pricing */
.billing {
  display: inline-flex;
  gap: 4px;
  margin-top: 28px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.billing button {
  border: 0;
}

.billing span {
  margin-left: 4px;
  opacity: 0.6;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  font-family: var(--interface);
}

.plan-featured {
  background: #fff;
  color: #111;
}

.plan-flag {
  position: absolute;
  top: 36px;
  right: 32px;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 11px;
}

.plan h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 40px;
  font-weight: 400;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 18px 0 0;
  overflow: hidden;
}

.plan-price span {
  display: inline-block;
  font-family: var(--display);
  font-size: 72px;
  line-height: 1;
}

.plan-price small {
  opacity: 0.6;
}

.plan-copy {
  margin: 12px 0 0;
  opacity: 0.75;
  font-size: 14px;
  line-height: 1.5;
}

.plan-list {
  flex: 1;
  margin: 24px 0 28px;
  padding: 20px 0 0;
  border-top: 1px solid currentColor;
  border-top-color: rgba(127, 127, 127, 0.3);
  list-style: none;
  font-size: 14px;
  line-height: 2;
}

.plan-cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
}

.plan-featured .plan-cta {
  border-color: #111;
  background: #111;
  color: #fff;
}

.plan-note {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--interface);
  font-size: 12px;
}

/* Community */
.manifesto {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(44px, 7vw, 112px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
}

.manifesto span {
  display: block;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 80px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--interface);
}

.facts strong {
  display: block;
  font-family: var(--display);
  font-size: 72px;
  font-weight: 400;
  line-height: 1;
}

.facts li > span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

/* Footer */
.site-footer {
  margin-top: 160px;
  padding: 0 56px 28px;
  overflow: hidden;
}

.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-form {
  margin-top: 32px;
  color: #fff;
}

.footer-word {
  margin: 100px 0 0;
  font-family: var(--display);
  font-size: 30vw;
  font-style: italic;
  line-height: 0.8;
  text-align: center;
  letter-spacing: -0.04em;
}

.motion-ready .footer-word[data-reveal]:not(.is-in) {
  transform: translateY(18%);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--interface);
  font-size: 12px;
}

.footer-base a {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
}

@media (hover: hover) and (pointer: fine) {
  .world:hover img {
    transform: scale(1.08);
  }

  .world-label button:hover,
  .presets button:hover,
  .billing button:hover,
  .timer-reset:hover {
    background: rgba(255, 255, 255, 0.15);
  }

  .presets button[aria-pressed="true"]:hover,
  .billing button[aria-pressed="true"]:hover {
    background: #fff;
  }
}

@media (width < 1024px) {
  .world-row {
    display: flex;
    margin-right: -56px;
    padding-right: 56px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .world {
    flex: 0 0 min(320px, 72vw);
    scroll-snap-align: start;
  }

  .plans {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .session-panel {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px;
  }

  .facts {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 32px;
  }
}

@media (width < 768px) {
  .worlds,
  .pricing,
  .community {
    padding: 100px 20px 0;
  }

  .world-row {
    margin-right: -20px;
    padding-right: 20px;
  }

  .how-title,
  .how-step {
    left: 20px;
  }

  .how-step {
    right: 20px;
  }

  .how-rail {
    right: 20px;
    height: 120px;
  }

  .session {
    margin-top: 100px;
    padding: 60px 16px;
  }

  .session-panel {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .site-footer {
    margin-top: 120px;
    padding: 0 20px 24px;
  }

  .facts strong,
  .plan-price span {
    font-size: 56px;
  }
}

/* Reduced motion: the pinned story becomes a plain stacked list. */
@media (prefers-reduced-motion: reduce) {
  .how {
    height: auto;
  }

  .how-sticky {
    position: relative;
    height: auto;
    padding: 96px 20px 80px;
  }

  .how-scenes img:not(:first-child) {
    display: none;
  }

  .how-scenes img {
    transform: none;
  }

  .how-title,
  .how-step {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    opacity: 1;
    transform: none;
  }

  .how-step {
    margin-top: 48px;
  }

  .how-rail {
    display: none;
  }
}
