:root {
  color-scheme: dark;
  --ink: #0d0620;
  --ink-deep: #080314;
  --ink-soft: #1a1030;
  --surface: #18102b;
  --surface-raised: #23153d;
  --surface-light: #2b1a48;
  --mint: #7de8a5;
  --mint-bright: #9dffc0;
  --cyan: #9ad9ff;
  --violet: #a895ff;
  --text: #eae6f2;
  --muted: #b9b3c9;
  --subtle: #928ba3;
  --line: rgba(234, 230, 242, 0.12);
  --line-strong: rgba(125, 232, 165, 0.28);
  --shadow: 0 28px 80px rgba(3, 0, 10, 0.38);
  --shadow-soft: 0 18px 48px rgba(3, 0, 10, 0.2);
  --radius-xl: 40px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --shell: 1240px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.16, 1.4, .3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  background: var(--ink);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 620px at 82% 4%, rgba(80, 43, 129, 0.26), transparent 68%),
    radial-gradient(780px 540px at 8% 23%, rgba(40, 160, 153, 0.12), transparent 72%),
    var(--ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

body::after {
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  right: -260px;
  bottom: 6vh;
  content: "";
  pointer-events: none;
  border-radius: 50%;
  background: rgba(125, 232, 165, 0.07);
  filter: blur(90px);
}

body.is-paused *,
body.is-paused *::before,
body.is-paused *::after {
  animation-play-state: paused !important;
}

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

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

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

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

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

::selection {
  color: var(--ink);
  background: var(--mint);
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 12px 18px;
  color: var(--ink);
  background: var(--mint);
  border-radius: 999px;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
}

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

.section-shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.ambient-layer {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient-layer span {
  position: absolute;
  width: 5px;
  height: 5px;
  border: 1px solid rgba(125, 232, 165, 0.4);
  border-radius: 50%;
  opacity: 0.24;
  animation: ambient-drift 13s ease-in-out infinite alternate;
}

.ambient-layer span:nth-child(1) { left: 7%; top: 15%; animation-delay: -2s; }
.ambient-layer span:nth-child(2) { left: 18%; top: 68%; width: 8px; height: 8px; animation-delay: -8s; }
.ambient-layer span:nth-child(3) { left: 27%; top: 32%; animation-delay: -5s; }
.ambient-layer span:nth-child(4) { left: 38%; top: 81%; width: 3px; height: 3px; animation-delay: -11s; }
.ambient-layer span:nth-child(5) { left: 46%; top: 12%; width: 7px; height: 7px; animation-delay: -7s; }
.ambient-layer span:nth-child(6) { left: 54%; top: 57%; animation-delay: -3s; }
.ambient-layer span:nth-child(7) { left: 63%; top: 23%; width: 4px; height: 4px; animation-delay: -10s; }
.ambient-layer span:nth-child(8) { left: 71%; top: 76%; width: 9px; height: 9px; animation-delay: -1s; }
.ambient-layer span:nth-child(9) { left: 79%; top: 39%; animation-delay: -6s; }
.ambient-layer span:nth-child(10) { left: 87%; top: 17%; width: 4px; height: 4px; animation-delay: -9s; }
.ambient-layer span:nth-child(11) { left: 92%; top: 66%; width: 7px; height: 7px; animation-delay: -4s; }
.ambient-layer span:nth-child(12) { left: 11%; top: 91%; animation-delay: -12s; }
.ambient-layer span:nth-child(13) { left: 57%; top: 92%; width: 3px; height: 3px; animation-delay: -6s; }
.ambient-layer span:nth-child(14) { left: 96%; top: 88%; width: 4px; height: 4px; animation-delay: -2s; }

@keyframes ambient-drift {
  from { translate: 0 -10px; rotate: 0deg; opacity: 0.1; }
  to { translate: 14px 24px; rotate: 180deg; opacity: 0.34; }
}

/* Navigation */

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  padding: 18px 24px;
  transition: padding 220ms var(--ease-out), background 220ms ease, border-color 220ms ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  padding-block: 10px;
  border-color: rgba(234, 230, 242, 0.08);
  background: rgba(13, 6, 32, 0.78);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
}

.nav-shell {
  display: flex;
  width: min(100%, var(--shell));
  min-height: 60px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(154, 217, 255, 0.24);
  border-radius: 14px;
  background: rgba(35, 21, 61, 0.88);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 10px 30px rgba(0, 0, 0, 0.2);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name strong {
  color: var(--mint);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu > a {
  display: inline-flex;
  min-height: 44px;
  padding: 0 14px;
  align-items: center;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  transition: color 180ms ease, background 180ms ease, transform 180ms var(--ease-out);
}

.nav-menu > a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-menu > a.nav-play {
  min-height: 48px;
  padding-inline: 21px;
  margin-left: 8px;
  color: var(--ink);
  background: var(--mint);
  box-shadow: 0 8px 28px rgba(125, 232, 165, 0.15);
}

.nav-menu > a.nav-play:hover {
  color: var(--ink);
  background: var(--mint-bright);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--text);
  transition: transform 180ms ease;
}

.menu-toggle[aria-expanded="true"] > span:nth-child(2) {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] > span:nth-child(3) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Shared type and controls */

.eyebrow {
  display: flex;
  margin: 0 0 22px;
  align-items: center;
  gap: 9px;
  color: var(--mint);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(125, 232, 165, 0.12), 0 0 20px rgba(125, 232, 165, 0.75);
  animation: live-pulse 2.4s ease-in-out infinite;
}

@keyframes live-pulse {
  50% { box-shadow: 0 0 0 8px rgba(125, 232, 165, 0.02), 0 0 28px rgba(125, 232, 165, 0.9); }
}

.section-heading {
  max-width: 760px;
  margin-bottom: 54px;
}

.section-heading h2,
.showcase-copy h2,
.studio-copy h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5.7vw, 5.6rem);
  font-weight: 850;
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.section-heading h2 span,
.showcase-copy h2 span,
.studio-copy h2 span {
  color: var(--mint);
}

.section-heading > p:last-child {
  max-width: 610px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.75;
}

.button {
  display: inline-flex;
  min-height: 54px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 800;
  transition: transform 200ms var(--ease-out), box-shadow 200ms ease, background 200ms ease, border-color 200ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  color: var(--ink);
  background: var(--mint);
  box-shadow: 0 14px 36px rgba(125, 232, 165, 0.17);
}

.button-primary:hover {
  background: var(--mint-bright);
  box-shadow: 0 18px 44px rgba(125, 232, 165, 0.24);
}

.button-secondary {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.button-secondary:hover {
  border-color: rgba(154, 217, 255, 0.38);
  background: rgba(154, 217, 255, 0.07);
}

.play-triangle {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

/* Hero */

.hero {
  display: grid;
  width: min(calc(100% - 48px), var(--shell));
  min-height: 100svh;
  padding: 134px 0 86px;
  margin-inline: auto;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(470px, 0.87fr);
  gap: clamp(40px, 6vw, 90px);
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(4rem, 7.6vw, 7.2rem);
  font-weight: 880;
  line-height: 0.86;
  letter-spacing: -0.08em;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(95deg, var(--mint) 12%, var(--cyan) 82%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-lede {
  max-width: 650px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.6vw, 1.25rem);
  line-height: 1.72;
}

.hero-lede strong {
  color: var(--text);
  font-weight: 760;
}

.hero-actions {
  display: flex;
  margin-top: 34px;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats {
  display: flex;
  padding: 0;
  margin: 48px 0 0;
  gap: clamp(25px, 4vw, 58px);
}

.hero-stats div {
  position: relative;
}

.hero-stats div + div::before {
  position: absolute;
  top: 5px;
  left: calc(clamp(25px, 4vw, 58px) / -2);
  width: 1px;
  height: 36px;
  content: "";
  background: var(--line);
}

.hero-stats dt {
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 850;
  line-height: 1;
}

.hero-stats dd {
  margin: 7px 0 0;
  color: var(--subtle);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  min-height: 650px;
}

.hero-glow {
  position: absolute;
  width: 82%;
  aspect-ratio: 1;
  top: 8%;
  left: 9%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 232, 165, 0.14), rgba(154, 217, 255, 0.05) 42%, transparent 70%);
  filter: blur(8px);
}

.merge-lab {
  position: absolute;
  z-index: 2;
  inset: 72px 0 0;
  width: min(100%, 520px);
  height: 570px;
  padding: 22px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(154, 217, 255, 0.2);
  border-radius: 42px;
  background:
    radial-gradient(circle at 50% 45%, rgba(125, 232, 165, 0.09), transparent 38%),
    linear-gradient(155deg, rgba(43, 26, 72, 0.78), rgba(16, 8, 35, 0.86));
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.merge-lab::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 23%, transparent 74%, rgba(125, 232, 165, 0.05));
}

.lab-topline {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--subtle);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.lab-topline span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.lab-topline i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 14px var(--mint);
}

.lab-instruction {
  position: relative;
  z-index: 4;
  margin: 12px 0 0;
  color: var(--subtle);
  font-size: 0.78rem;
}

.merge-stage {
  position: relative;
  height: 390px;
  margin-top: 4px;
}

.merge-stage::before {
  position: absolute;
  width: 240px;
  height: 240px;
  top: 76px;
  left: calc(50% - 120px);
  content: "";
  border: 1px solid rgba(125, 232, 165, 0.16);
  border-radius: 50%;
  box-shadow: inset 0 0 70px rgba(125, 232, 165, 0.05);
}

.lab-creature {
  --drag-x: 0px;
  --drag-y: 0px;
  position: absolute;
  z-index: 5;
  width: clamp(125px, 15vw, 170px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: grab;
  touch-action: none;
  transform: translate(var(--drag-x), var(--drag-y));
  transition: transform 480ms var(--ease-spring), opacity 240ms ease, filter 240ms ease;
  will-change: transform;
}

.lab-creature:active {
  cursor: grabbing;
}

.lab-creature.is-dragging {
  z-index: 8;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.36));
  transition: none;
}

.lab-creature img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 18px 16px rgba(0, 0, 0, 0.26));
  animation: creature-float 3.8s ease-in-out infinite;
}

.lab-creature-two img {
  animation-delay: -1.9s;
}

.creature-shadow {
  position: absolute;
  width: 68%;
  height: 17%;
  left: 16%;
  bottom: 5%;
  border-radius: 50%;
  background: rgba(3, 0, 10, 0.36);
  filter: blur(8px);
}

@keyframes creature-float {
  50% { translate: 0 -8px; rotate: 1.5deg; }
}

.lab-creature-one {
  top: 155px;
  left: 22px;
}

.lab-creature-two {
  top: 58px;
  right: 22px;
}

.merge-rings {
  position: absolute;
  z-index: 4;
  width: 190px;
  height: 190px;
  top: 102px;
  left: calc(50% - 95px);
  pointer-events: none;
  opacity: 0;
}

.merge-rings span {
  position: absolute;
  inset: 50%;
  border: 2px solid var(--mint);
  border-radius: 50%;
}

.merge-result {
  position: absolute;
  z-index: 7;
  width: 250px;
  top: 70px;
  left: calc(50% - 125px);
  pointer-events: none;
  text-align: center;
  opacity: 0;
  transform: scale(0.4) translateY(18px);
}

.merge-result img {
  width: 220px;
  height: 220px;
  margin-inline: auto;
  object-fit: contain;
  filter: drop-shadow(0 26px 28px rgba(0, 0, 0, 0.34));
}

.merge-result strong {
  display: inline-block;
  padding: 8px 14px;
  margin-top: -4px;
  border: 1px solid rgba(125, 232, 165, 0.34);
  border-radius: 999px;
  color: var(--mint-bright);
  background: rgba(13, 6, 32, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result-rays {
  position: absolute;
  z-index: -1;
  width: 310px;
  height: 310px;
  top: -42px;
  left: -30px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(125, 232, 165, 0.14) 0deg 7deg, transparent 7deg 19deg);
  mask-image: radial-gradient(circle, transparent 0 22%, black 23% 66%, transparent 67%);
}

.merge-lab.is-merging .lab-creature-one {
  transform: translate(122px, -48px) scale(0.62) rotate(12deg);
  opacity: 0;
}

.merge-lab.is-merging .lab-creature-two {
  transform: translate(-122px, 52px) scale(0.62) rotate(-12deg);
  opacity: 0;
}

.merge-lab.is-merging .merge-rings {
  opacity: 1;
}

.merge-lab.is-merging .merge-rings span {
  animation: merge-ring 680ms var(--ease-out) both;
}

.merge-lab.is-merging .merge-rings span:nth-child(2) {
  animation-delay: 90ms;
}

.merge-lab.is-merging .merge-rings span:nth-child(3) {
  animation-delay: 180ms;
}

@keyframes merge-ring {
  from { inset: 50%; opacity: 1; }
  to { inset: 0; opacity: 0; }
}

.merge-lab.is-merged .merge-result {
  pointer-events: auto;
  opacity: 1;
  transform: scale(1) translateY(0);
  transition: opacity 260ms ease, transform 560ms var(--ease-spring);
}

.merge-lab.is-merged .result-rays {
  animation: result-rays 18s linear infinite;
}

@keyframes result-rays {
  to { rotate: 360deg; }
}

.lab-status {
  position: absolute;
  z-index: 5;
  right: 22px;
  bottom: 66px;
  left: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.lab-actions {
  position: absolute;
  z-index: 8;
  right: 22px;
  bottom: 18px;
  left: 22px;
  display: flex;
  justify-content: center;
}

.lab-button,
.lab-reset {
  min-width: 180px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(125, 232, 165, 0.3);
  border-radius: 999px;
  color: var(--mint-bright);
  background: rgba(125, 232, 165, 0.09);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  transition: background 180ms ease, transform 180ms var(--ease-out);
}

.lab-button:hover,
.lab-reset:hover {
  background: rgba(125, 232, 165, 0.16);
  transform: translateY(-2px);
}

/* Reveal */

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

.reveal.is-pending {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms var(--ease-out);
}

.reveal-delay-short {
  transition-delay: 90ms;
}

.reveal-delay {
  transition-delay: 160ms;
}

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

/* Core loop */

.loop-section {
  padding-block: 120px 145px;
}

.loop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.loop-card {
  position: relative;
  min-height: 470px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(155deg, rgba(43, 26, 72, 0.72), rgba(24, 16, 43, 0.86));
  box-shadow: var(--shadow-soft), inset 0 1px rgba(255, 255, 255, 0.05);
  transition: border-color 240ms ease, transform 240ms var(--ease-out);
}

.loop-card:hover {
  border-color: rgba(125, 232, 165, 0.28);
  transform: translateY(-5px);
}

.step-number {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--subtle);
  font-size: 0.72rem;
  font-weight: 800;
}

.loop-card h3 {
  margin: 18px 0 8px;
  font-size: 1.65rem;
  letter-spacing: -0.04em;
}

.loop-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.loop-visual {
  position: relative;
  display: grid;
  height: 245px;
  margin: 10px 0 0;
  place-items: center;
}

.drag-visual img {
  width: 165px;
  z-index: 2;
  filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.3));
  animation: drag-demo 4.2s var(--ease-out) infinite;
}

.drag-path {
  position: absolute;
  width: 155px;
  height: 90px;
  border-top: 2px dashed rgba(154, 217, 255, 0.36);
  border-radius: 50%;
  rotate: -18deg;
}

.touch-point {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  translate: 74px 38px;
  animation: touch-ping 2.1s ease-out infinite;
}

@keyframes drag-demo {
  0%, 20%, 100% { translate: -35px 22px; rotate: -3deg; }
  52%, 72% { translate: 35px -17px; rotate: 3deg; }
}

@keyframes touch-ping {
  0% { box-shadow: 0 0 0 0 rgba(154, 217, 255, 0.5); opacity: 0; }
  18% { opacity: 1; }
  70%, 100% { box-shadow: 0 0 0 18px rgba(154, 217, 255, 0); opacity: 0; }
}

.pair-visual {
  grid-template-columns: 1fr auto 1fr;
}

.pair-visual img {
  width: 115px;
  justify-self: center;
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.25));
}

.pair-visual img:first-child {
  animation: pair-left 3.2s var(--ease-out) infinite;
}

.pair-visual img:last-child {
  animation: pair-right 3.2s var(--ease-out) infinite;
}

.mini-burst {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--mint);
  font-size: 1.4rem;
  font-weight: 900;
  box-shadow: 0 0 30px rgba(125, 232, 165, 0.32);
  animation: mini-burst 3.2s ease-in-out infinite;
}

@keyframes pair-left {
  0%, 25%, 100% { translate: -8px 6px; }
  50%, 68% { translate: 17px -3px; }
}

@keyframes pair-right {
  0%, 25%, 100% { translate: 8px -6px; }
  50%, 68% { translate: -17px 3px; }
}

@keyframes mini-burst {
  0%, 28%, 75%, 100% { scale: 0.75; opacity: 0.42; }
  48%, 62% { scale: 1.08; opacity: 1; }
}

.evolve-visual img {
  width: 185px;
  z-index: 2;
  filter: drop-shadow(0 24px 24px rgba(0, 0, 0, 0.3));
  animation: evolve-float 4.2s ease-in-out infinite;
}

.evolve-orbit {
  position: absolute;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(125, 232, 165, 0.25);
  border-radius: 50%;
  box-shadow: inset 0 0 60px rgba(125, 232, 165, 0.06);
}

.evolve-orbit::before,
.evolve-orbit::after {
  position: absolute;
  width: 8px;
  height: 8px;
  top: calc(50% - 4px);
  left: calc(50% - 4px);
  content: "";
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 16px var(--mint);
  animation: orbit-dot 6s linear infinite;
}

.evolve-orbit::after {
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
  animation-delay: -3s;
}

@keyframes orbit-dot {
  from { transform: rotate(0deg) translateX(105px); }
  to { transform: rotate(360deg) translateX(105px); }
}

@keyframes evolve-float {
  50% { translate: 0 -9px; rotate: -2deg; }
}

/* Phone showcase */

.showcase-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(600px 500px at 20% 50%, rgba(125, 232, 165, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(8, 3, 20, 0.38), rgba(35, 21, 61, 0.32), rgba(8, 3, 20, 0.3));
  border-block: 1px solid rgba(234, 230, 242, 0.06);
}

.showcase-shell {
  display: grid;
  min-height: 880px;
  padding-block: 110px;
  align-items: center;
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1fr);
  gap: clamp(60px, 8vw, 140px);
}

.phone-column {
  position: relative;
  display: grid;
  place-items: center;
}

.phone-glow {
  position: absolute;
  width: 110%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 232, 165, 0.16), transparent 68%);
  filter: blur(8px);
}

.phone-frame {
  position: relative;
  width: min(100%, 350px);
  aspect-ratio: 9 / 17.7;
  padding: 10px;
  border: 1px solid rgba(234, 230, 242, 0.22);
  border-radius: 48px;
  background: linear-gradient(150deg, #403354, #130c22 42%, #3a2f4b);
  box-shadow: 0 46px 100px rgba(0, 0, 0, 0.48), inset 0 0 0 2px rgba(255, 255, 255, 0.04);
  transform: rotate(-2deg);
}

.phone-speaker {
  position: absolute;
  z-index: 6;
  width: 34%;
  height: 24px;
  top: 17px;
  left: 33%;
  border-radius: 999px;
  background: #0a0610;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 39px;
  background: #111;
}

.screen-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 360ms ease, transform 600ms var(--ease-out);
}

.screen-slide.is-active {
  z-index: 2;
  opacity: 1;
  transform: scale(1);
}

.carousel-arrows {
  position: relative;
  z-index: 3;
  display: flex;
  margin-top: 26px;
  align-items: center;
  gap: 15px;
}

.carousel-arrows button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms var(--ease-out);
}

.carousel-arrows button:hover {
  border-color: var(--line-strong);
  background: var(--surface-raised);
  transform: scale(1.06);
}

.carousel-arrows span {
  min-width: 45px;
  color: var(--subtle);
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}

.showcase-copy h2 {
  max-width: 760px;
}

.showcase-lede {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.screen-picker {
  display: grid;
  margin-top: 38px;
  gap: 10px;
}

.screen-option {
  display: grid;
  width: 100%;
  min-height: 82px;
  padding: 14px 18px;
  align-items: center;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid transparent;
  border-radius: 18px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease, transform 200ms var(--ease-out);
}

.screen-option:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.screen-option.is-active {
  color: var(--text);
  border-color: rgba(125, 232, 165, 0.2);
  background: linear-gradient(90deg, rgba(125, 232, 165, 0.1), rgba(154, 217, 255, 0.025));
  transform: translateX(5px);
}

.screen-option > span:first-child {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--subtle);
  font-size: 0.68rem;
  font-weight: 850;
}

.screen-option.is-active > span:first-child {
  color: var(--ink);
  border-color: var(--mint);
  background: var(--mint);
}

.screen-option > span:last-child {
  display: grid;
  gap: 3px;
}

.screen-option strong {
  color: inherit;
  font-size: 0.96rem;
}

.screen-option small {
  color: var(--subtle);
  font-size: 0.8rem;
  line-height: 1.45;
}

/* Evolution path */

.evolution-section {
  padding-block: 145px;
}

.evolution-heading {
  margin-bottom: 68px;
}

.timeline {
  position: relative;
  display: grid;
  padding: 18px;
  align-items: stretch;
  grid-template-columns: 1fr 30px 1fr 30px 1fr 30px 1fr 30px 1fr;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(24, 16, 43, 0.72);
}

.timeline-stop {
  min-width: 0;
  padding: 17px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.timeline-stop span {
  display: block;
  margin-bottom: 9px;
  color: var(--mint);
  font-size: 0.66rem;
  font-weight: 850;
}

.timeline-stop strong,
.timeline-stop small {
  display: block;
}

.timeline-stop strong {
  overflow: hidden;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-stop small {
  margin-top: 5px;
  color: var(--subtle);
  font-size: 0.67rem;
}

.timeline-choice {
  border: 1px solid rgba(125, 232, 165, 0.2);
  background: rgba(125, 232, 165, 0.07);
}

.timeline > i {
  position: relative;
}

.timeline > i::before {
  position: absolute;
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
  content: "";
  background: linear-gradient(90deg, var(--line), rgba(125, 232, 165, 0.45), var(--line));
}

.branch-explorer {
  display: grid;
  margin-top: 22px;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.55fr);
  gap: 18px;
}

.branch-options {
  display: grid;
  gap: 10px;
}

.branch-option {
  display: grid;
  min-height: 138px;
  padding: 22px;
  align-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--text);
  background: rgba(24, 16, 43, 0.76);
  cursor: pointer;
  text-align: left;
  transition: transform 240ms var(--ease-out), border-color 240ms ease, background 240ms ease;
}

.branch-option:hover {
  transform: translateX(4px);
  border-color: rgba(154, 217, 255, 0.28);
}

.branch-option.is-active {
  border-color: rgba(125, 232, 165, 0.4);
  background: linear-gradient(120deg, rgba(125, 232, 165, 0.13), rgba(35, 21, 61, 0.82));
  transform: translateX(8px);
}

.route-label {
  color: var(--mint);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.branch-option strong {
  font-size: 1.18rem;
}

.branch-option small {
  color: var(--subtle);
  font-size: 0.77rem;
}

.path-preview {
  position: relative;
  min-height: 435px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.path-preview > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 240ms ease, transform 700ms var(--ease-out);
}

.path-preview.is-switching > img {
  opacity: 0;
  transform: scale(1.04);
}

.path-preview-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 3, 20, 0.9), rgba(8, 3, 20, 0.46) 55%, rgba(8, 3, 20, 0.08)),
    linear-gradient(0deg, rgba(8, 3, 20, 0.68), transparent 55%);
}

.path-copy {
  position: absolute;
  z-index: 2;
  width: min(430px, calc(100% - 50px));
  left: 30px;
  bottom: 30px;
}

.path-copy > p:first-child {
  margin: 0 0 8px;
  color: var(--mint);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.path-copy h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.path-copy > p:nth-of-type(2) {
  max-width: 390px;
  margin: 14px 0 20px;
  color: rgba(234, 230, 242, 0.82);
  font-size: 0.9rem;
  line-height: 1.6;
}

.path-copy > span {
  display: inline-flex;
  padding: 9px 13px;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(8, 3, 20, 0.52);
  font-size: 0.72rem;
}

.path-copy > span strong {
  color: var(--cyan);
}

/* Worlds */

.worlds-section {
  position: relative;
  padding-block: 145px;
  overflow: hidden;
  border-block: 1px solid rgba(234, 230, 242, 0.06);
  background:
    radial-gradient(800px 560px at 70% 12%, rgba(67, 47, 118, 0.24), transparent 68%),
    rgba(8, 3, 20, 0.34);
}

.worlds-heading {
  margin-bottom: 60px;
}

.world-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.world-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border: 1px solid rgba(234, 230, 242, 0.14);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: border-color 240ms ease, transform 240ms var(--ease-out), box-shadow 240ms ease;
  will-change: transform;
}

.world-card-large {
  grid-column: span 2;
}

.world-card:hover,
.world-card:focus-visible {
  border-color: rgba(125, 232, 165, 0.34);
  box-shadow: 0 28px 70px rgba(3, 0, 10, 0.34);
}

.world-bg {
  position: absolute;
  inset: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  object-fit: cover;
  transform: scale(1.025);
  transition: transform 700ms var(--ease-out), filter 500ms ease;
}

.world-card:hover .world-bg,
.world-card:focus-visible .world-bg {
  transform: scale(1.065);
  filter: saturate(1.08);
}

.world-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 3, 20, 0.03) 20%, rgba(8, 3, 20, 0.84) 100%),
    linear-gradient(90deg, rgba(8, 3, 20, 0.32), transparent 60%);
}

.world-creature {
  position: absolute;
  z-index: 2;
  width: min(35%, 260px);
  right: 7%;
  bottom: 4%;
  filter: drop-shadow(0 24px 22px rgba(0, 0, 0, 0.35));
  transition: transform 500ms var(--ease-out);
}

.world-creature-small {
  width: min(46%, 240px);
  right: -1%;
}

.world-card:hover .world-creature,
.world-card:focus-visible .world-creature {
  transform: translateY(-8px) rotate(2deg);
}

.world-copy {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 24px;
  left: 24px;
}

.world-copy span {
  color: var(--mint-bright);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.world-copy h3 {
  margin: 8px 0 5px;
  font-size: clamp(1.45rem, 2.4vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.05em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.42);
}

.world-copy p {
  max-width: 300px;
  margin: 0;
  color: rgba(234, 230, 242, 0.8);
  font-size: 0.8rem;
}

.final-worlds {
  display: flex;
  min-height: 90px;
  padding: 20px 28px;
  margin-top: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(24, 16, 43, 0.7);
}

.final-worlds span {
  color: var(--subtle);
  font-size: 0.8rem;
}

.final-worlds strong {
  color: var(--cyan);
  font-size: 0.88rem;
}

.final-worlds i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}

/* Features */

.features-section {
  padding-block: 145px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-height: 275px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(35, 21, 61, 0.74), rgba(24, 16, 43, 0.82));
  transition: border-color 220ms ease, transform 220ms var(--ease-out);
}

.feature-card:hover {
  border-color: rgba(154, 217, 255, 0.26);
  transform: translateY(-4px);
}

.feature-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(125, 232, 165, 0.26);
  border-radius: 18px;
  color: var(--mint);
  background: rgba(125, 232, 165, 0.08);
  font-size: 1.55rem;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

.feature-card h3 {
  margin: 34px 0 10px;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Studio */

.studio-section {
  padding-bottom: 145px;
}

.studio-card {
  position: relative;
  display: grid;
  min-height: 600px;
  padding: clamp(34px, 6vw, 76px);
  align-items: center;
  overflow: hidden;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 90px);
  border: 1px solid rgba(154, 217, 255, 0.18);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(500px 450px at 20% 50%, rgba(125, 232, 165, 0.09), transparent 70%),
    linear-gradient(135deg, rgba(43, 26, 72, 0.88), rgba(16, 8, 35, 0.92));
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.07);
}

.studio-card::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.07), transparent 25%, transparent 78%, rgba(125, 232, 165, 0.05));
}

.studio-art {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
}

.studio-art img {
  position: relative;
  z-index: 2;
  width: 88%;
  opacity: 0.78;
  filter: saturate(1.13) drop-shadow(0 0 40px rgba(53, 220, 232, 0.25));
  animation: studio-dna 10s ease-in-out infinite alternate;
}

.studio-orbit {
  position: absolute;
  width: 94%;
  height: 94%;
  border: 1px solid rgba(154, 217, 255, 0.16);
  border-radius: 50%;
  box-shadow: inset 0 0 80px rgba(125, 232, 165, 0.05);
}

.studio-orbit::before {
  position: absolute;
  width: 12px;
  height: 12px;
  top: calc(50% - 6px);
  left: calc(50% - 6px);
  content: "";
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 20px var(--cyan);
  animation: studio-orbit 12s linear infinite;
}

@keyframes studio-dna {
  50% { translate: 0 -10px; rotate: 1.5deg; }
}

@keyframes studio-orbit {
  from { transform: rotate(0deg) translateX(calc(clamp(130px, 17vw, 210px))); }
  to { transform: rotate(360deg) translateX(calc(clamp(130px, 17vw, 210px))); }
}

.studio-copy {
  position: relative;
  z-index: 2;
}

.studio-copy > p:not(.eyebrow) {
  max-width: 600px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.78;
}

.studio-actions {
  display: flex;
  margin-top: 34px;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 0.9rem;
  font-weight: 750;
}

.text-link span {
  transition: transform 180ms var(--ease-out);
}

.text-link:hover span {
  transform: translateX(5px);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(234, 230, 242, 0.08);
  background: rgba(8, 3, 20, 0.58);
}

.footer-shell {
  display: grid;
  min-height: 180px;
  padding-block: 42px;
  align-items: center;
  grid-template-columns: 1fr auto;
  gap: 26px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.footer-brand > span:last-child {
  display: grid;
  gap: 4px;
}

.footer-brand strong {
  font-size: 0.94rem;
}

.footer-brand small {
  color: var(--subtle);
  font-size: 0.74rem;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: var(--mint);
}

.footer-shell > p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--subtle);
  font-size: 0.75rem;
}

/* Responsive */

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.84fr);
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 7.5vw, 6rem);
  }

  .timeline {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }

  .timeline > i {
    display: none;
  }

  .timeline-stop {
    padding: 14px;
  }

  .world-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    padding-inline: 18px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 18px;
    left: 18px;
    display: grid;
    padding: 12px;
    gap: 3px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(18, 10, 37, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top;
    transition: opacity 180ms ease, transform 180ms var(--ease-out), visibility 0s linear 180ms;
    backdrop-filter: blur(20px);
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
  }

  .nav-menu > a {
    justify-content: center;
  }

  .nav-menu > a.nav-play {
    margin: 5px 0 0;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 138px;
    text-align: center;
  }

  .hero-copy {
    display: grid;
    justify-items: center;
  }

  .hero-lede {
    max-width: 650px;
  }

  .hero-visual {
    width: min(100%, 570px);
    min-height: 630px;
    margin-inline: auto;
  }

  .showcase-shell {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .phone-column {
    order: 2;
  }

  .showcase-copy {
    order: 1;
    text-align: center;
  }

  .showcase-copy .eyebrow {
    justify-content: center;
  }

  .showcase-lede {
    margin-inline: auto;
  }

  .screen-option {
    max-width: 620px;
    margin-inline: auto;
  }

  .branch-explorer {
    grid-template-columns: 1fr;
  }

  .branch-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .branch-option {
    min-height: 150px;
  }

  .branch-option:hover,
  .branch-option.is-active {
    transform: translateY(-4px);
  }

  .loop-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .loop-card {
    display: grid;
    min-height: 320px;
    grid-template-columns: 64px minmax(220px, 0.8fr) 1fr;
    align-items: center;
    column-gap: 20px;
  }

  .loop-card .step-number {
    align-self: start;
  }

  .loop-card .loop-visual {
    grid-row: 1 / 3;
    grid-column: 2;
  }

  .loop-card h3,
  .loop-card > p {
    grid-column: 3;
  }

  .loop-card h3 {
    align-self: end;
  }

  .loop-card > p {
    align-self: start;
  }

  .feature-card {
    min-height: 0;
  }

  .studio-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .studio-art {
    width: min(100%, 430px);
    margin-inline: auto;
  }

  .studio-copy .eyebrow,
  .studio-actions {
    justify-content: center;
  }

  .studio-copy > p:not(.eyebrow) {
    margin-inline: auto;
  }
}

@media (max-width: 680px) {
  .section-shell,
  .hero {
    width: min(calc(100% - 32px), var(--shell));
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .hero {
    padding-bottom: 58px;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 16vw, 5rem);
  }

  .hero-lede {
    font-size: 1rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-stats {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .hero-stats div + div::before {
    left: -9px;
  }

  .hero-stats dt {
    font-size: 1.25rem;
  }

  .hero-stats dd {
    font-size: 0.62rem;
  }

  .hero-visual {
    min-height: 560px;
  }

  .merge-lab {
    height: 510px;
    padding: 18px;
    border-radius: 32px;
  }

  .lab-creature {
    width: 128px;
  }

  .lab-creature-one {
    top: 144px;
    left: 5px;
  }

  .lab-creature-two {
    top: 62px;
    right: 5px;
  }

  .merge-stage {
    height: 335px;
  }

  .merge-stage::before {
    width: 190px;
    height: 190px;
    top: 78px;
    left: calc(50% - 95px);
  }

  .merge-result {
    top: 54px;
  }

  .lab-status {
    bottom: 63px;
  }

  .section-heading h2,
  .showcase-copy h2,
  .studio-copy h2 {
    font-size: clamp(2.6rem, 14vw, 4.3rem);
  }

  .loop-section,
  .evolution-section,
  .features-section,
  .worlds-section {
    padding-block: 100px;
  }

  .loop-card {
    display: block;
    min-height: 440px;
  }

  .loop-card .loop-visual {
    height: 230px;
  }

  .showcase-shell {
    padding-block: 90px;
  }

  .phone-frame {
    width: min(90%, 320px);
  }

  .timeline {
    padding: 12px;
    overflow-x: auto;
    grid-template-columns: repeat(5, 150px);
    scrollbar-width: thin;
  }

  .branch-options {
    grid-template-columns: 1fr;
  }

  .branch-option {
    min-height: 112px;
  }

  .path-preview {
    min-height: 430px;
  }

  .path-preview-shade {
    background:
      linear-gradient(0deg, rgba(8, 3, 20, 0.93), rgba(8, 3, 20, 0.24) 78%),
      linear-gradient(90deg, rgba(8, 3, 20, 0.2), transparent);
  }

  .path-copy {
    right: 24px;
    bottom: 24px;
    left: 24px;
    width: auto;
  }

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

  .world-card-large {
    grid-column: auto;
  }

  .world-card {
    min-height: 390px;
  }

  .final-worlds {
    gap: 12px;
  }

  .final-worlds span {
    flex-basis: 100%;
    text-align: center;
  }

  .studio-card {
    padding: 34px 22px;
    border-radius: 30px;
  }

  .studio-actions .button,
  .studio-actions .text-link {
    width: 100%;
    justify-content: center;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand,
  .footer-links {
    justify-content: center;
  }

  .footer-shell > p {
    grid-column: auto;
  }
}

@media (pointer: coarse) {
  .world-card {
    transform: none !important;
  }

  .lab-creature {
    cursor: pointer;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .world-card,
  .world-bg {
    transform: none !important;
  }
}
