/* Apex Theory Game
   Look: brand navy lit by a soft blue horizon glow, the logo's cyan -> blue -> purple gradient as accent,
   heavy uppercase Manrope headlines paired with an italic serif, pill controls, hairline rules. */
:root {
  color-scheme: dark;
  --bg: #020c22;
  --bg-2: #061433;
  --card: #0a1a3c;
  --line: rgba(245, 245, 242, .1);
  --line-2: rgba(245, 245, 242, .2);
  --text: #f5f5f2;
  --muted: rgba(245, 245, 242, .58);
  --blue: #2f8cf3;
  --blue-ink: #45d6fb;      /* brand cyan: small accent text on navy */
  --violet: #7a6af5;
  --lavender: #a9c4ff;
  --glow: #1f3fa8;
  --grad: linear-gradient(120deg, #45d6fb, #2f8cf3 50%, #7a6af5);
  --display: "Manrope", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --body: "Manrope", system-ui, sans-serif;
  --ui: "Manrope", system-ui, sans-serif;
  --nav-h: 80px;
  --radius: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .4em; font-weight: 800; text-wrap: balance; }
h2 { font: 800 clamp(2.4rem, 5.4vw, 4.6rem)/.98 var(--display); text-transform: uppercase; letter-spacing: -.04em; }
h3 { font: 800 1.2rem/1.2 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 3px; }
::selection { background: var(--blue); color: #fff; }

.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 8px; }

/* Utilities */
.lime { color: var(--blue-ink); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* the italic-serif accent word inside a heavy uppercase heading */
.outline { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.01em; color: var(--lavender); }
.outline--dark { color: #fff; }
.kicker, .eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font: 700 .74rem/1 var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.kicker--dark { color: rgba(255, 255, 255, .75); }
.section-head { margin-bottom: 48px; }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-sub { color: var(--muted); max-width: 560px; font-size: 1.08rem; }
.tag { display: inline-block; padding: 6px 12px; border-radius: 999px; font: 700 .68rem/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--accent, var(--blue-ink)); border: 1px solid color-mix(in srgb, currentColor 45%, transparent); }
.gridlines { display: none; }

/* IDo-style pixel cluster, drawn with box-shadows on one square */
.pixels { position: absolute; width: 14px; height: 14px; pointer-events: none; z-index: 1; opacity: .9; }
.pixels::before { content: ""; position: absolute; inset: 0; background: var(--blue);
  box-shadow: 14px 0 var(--blue), 28px 0 var(--violet), 14px 14px var(--violet), 42px 14px var(--blue), 0 28px var(--glow), 28px 28px var(--blue), 56px 28px var(--violet), 42px 42px var(--glow); }
.pixels--flip { transform: scaleX(-1); }

/* Buttons: pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border: 1px solid transparent; border-radius: 999px; cursor: pointer; white-space: nowrap; text-decoration: none;
  font: 700 .82rem/1.2 var(--ui); letter-spacing: .06em; text-transform: uppercase;
  transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 16px 30px; font-size: .9rem; }
.btn--sm { padding: 10px 18px; font-size: .76rem; }
.btn--lime, .btn--grad { background: var(--grad); background-size: 150% 100%; color: #fff; box-shadow: 0 12px 34px -12px rgba(47, 140, 243, .8); }
.btn--lime:hover, .btn--grad:hover { background-position: 100% 0; box-shadow: 0 16px 40px -10px rgba(122, 106, 245, .7); }
.btn--lg.btn--lime::after { content: "→"; font-weight: 600; transition: transform .2s; }
.btn--lg.btn--lime:hover::after { transform: translateX(4px); }
.btn--outline, .btn--ghost { background: rgba(245, 245, 242, .03); color: var(--text); border-color: var(--line-2); }
.btn--outline:hover, .btn--ghost:hover { border-color: var(--blue-ink); color: #fff; background: rgba(47, 140, 243, .12); }
.btn--play { background: #000; color: #fff; border-color: var(--line-2); padding: 9px 22px 9px 16px; text-align: left; text-transform: none; letter-spacing: 0; }
.btn--play svg { width: 24px; height: 24px; color: var(--blue-ink); }
.btn--play span { display: flex; flex-direction: column; font: 700 1rem/1.1 var(--body); }
.btn--play small { font: 700 .58rem var(--ui); text-transform: uppercase; letter-spacing: .14em; opacity: .7; }
.btn--play:hover { border-color: var(--blue-ink); }

/* Nav: full width at the top, condenses into a floating capsule on scroll */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); pointer-events: none; }
.nav__bar, .nav__inner { pointer-events: auto; height: 100%; width: min(1340px, 100% - 32px); margin-inline: auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; border: 1px solid transparent; border-radius: 999px; transition: width .45s cubic-bezier(.2, .8, .2, 1), height .45s, margin .45s, background .3s, border-color .3s, padding .45s; }
.nav__inner { display: flex; justify-content: space-between; }
.nav.is-scrolled .nav__bar, .nav.is-scrolled .nav__inner, .nav.menu-open .nav__bar { width: min(1060px, 100% - 24px); height: 62px; margin-top: 12px; padding: 0 8px 0 20px; background: rgba(6, 20, 51, .82); border-color: var(--line); backdrop-filter: blur(16px); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); }
.nav__links { display: flex; justify-content: center; gap: 2px; }
.nav__links a:not(.btn) { padding: 9px 14px; border-radius: 999px; text-decoration: none; font: 700 .74rem var(--ui); letter-spacing: .1em; text-transform: uppercase; color: rgba(245, 245, 242, .72); transition: color .2s, background .2s; }
.nav__links a:not(.btn):hover { color: #fff; background: rgba(245, 245, 242, .06); }
.nav__links a.is-active { color: #fff; background: rgba(47, 140, 243, .2); box-shadow: inset 0 0 0 1px rgba(69, 214, 251, .4); }
.nav__cta--menu { display: none; }
.brand { display: inline-flex; align-items: center; gap: 12px; padding-block: 6px; text-decoration: none; }
.brand b { font-weight: 400; }
.wordmark { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; margin: 0; }
.wordmark b { margin: 0; font: 700 1.4rem/1 "Syncopate", var(--ui); letter-spacing: .02em; color: #fff; }
.wordmark small { margin-top: 5px; font: 600 .52rem/1 var(--body); letter-spacing: .42em; text-transform: uppercase; color: rgba(245, 245, 242, .7); padding-left: .42em; }
.wordmark--left { align-items: flex-start; }
.wordmark--left small { padding-left: 0; letter-spacing: .5em; }
.wordmark--lg b { font-size: clamp(2.4rem, 6vw, 4rem); }
.wordmark--lg small { font-size: clamp(.8rem, 1.6vw, 1.05rem); margin-top: 10px; }
.nav__right { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.nav__burger { display: none; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 0 12px; background: rgba(245, 245, 242, .06); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.nav__burger i { height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .2s; }
.nav__burger i:nth-child(2) { width: 70%; align-self: flex-end; }
.nav__burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Scroll rail: one dot per menu section down the left edge (wide screens) */
.rail { position: fixed; left: 26px; top: 50%; z-index: 40; translate: 0 -50%; display: none; flex-direction: column; gap: 22px; padding: 10px 0; transition: opacity .4s; }
.rail.is-idle { opacity: 0; pointer-events: none; }
.rail::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; margin-left: -.5px; background: var(--line-2); }
.rail i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #1f3566; transition: background .3s, box-shadow .3s, transform .3s; }
.rail i.is-on { background: var(--blue-ink); box-shadow: 0 0 0 4px rgba(47, 140, 243, .25), 0 0 16px var(--blue); transform: scale(1.3); }
@media (min-width: 1360px) { .rail { display: flex; } }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--nav-h) + 64px) 0 80px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-a__copy .hero__actions { justify-content: center; }
.lead { color: var(--muted); max-width: 540px; font-size: 1.12rem; margin-bottom: 32px; }
.hero h1 { font: 800 clamp(3rem, 8.4vw, 7.8rem)/.9 var(--display); text-transform: uppercase; letter-spacing: -.05em; margin-bottom: 24px; }
.hero h1 .grad-text { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.02em; padding-right: .06em; }

.hero--fan { text-align: center; padding-bottom: 30px; }
/* hero backdrop: brand-colour light pools over a vertical wash, so the navy never reads flat */
.hero__glow { position: absolute; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(70% 55% at 50% -5%, rgba(47, 140, 243, .38), transparent 70%),
    linear-gradient(180deg, #06205a 0%, #04153f 35%, #020c22 75%); }
/* slow-drifting aurora: cyan left, purple right, blue centre */
.hero__glow::after { content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(28% 30% at 22% 28%, rgba(69, 214, 251, .22), transparent 70%),
    radial-gradient(30% 34% at 80% 34%, rgba(122, 106, 245, .30), transparent 70%),
    radial-gradient(34% 26% at 50% 62%, rgba(47, 140, 243, .20), transparent 72%);
  filter: blur(30px); animation: aurora 18s ease-in-out infinite alternate; }
@keyframes aurora { 50% { transform: translate(3%, -2%) scale(1.06); } 100% { transform: translate(-3%, 2%) scale(1.02); } }
/* soft horizon light rising behind the phones: pure glow, no hard edge */
.planet { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: min(1100px, 92%); pointer-events: none;
  /* anchored to the hero's bottom and fully faded by ~82% of its height, so it never reaches an edge */
  background: radial-gradient(50% 36% at 50% 55%, rgba(47, 140, 243, .30), rgba(122, 106, 245, .13) 45%, transparent 72%), radial-gradient(26% 18% at 50% 55%, rgba(69, 214, 251, .14), transparent 70%); }
.hero .pixels--a { top: calc(var(--nav-h) + 40px); right: 8%; }
.hero .pixels--b { top: 30%; left: 9%; }
.hero-a__copy { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-a__copy .lead { margin-inline: auto; }
/* Phones spread like a product launch: one hero phone, two pairs receding to the sides */
.fan { position: relative; width: min(1100px, 100%); height: clamp(420px, 46vw, 620px); margin: 60px auto 0; }
.fan::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -6px; height: 60px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .75), transparent); filter: blur(6px); z-index: 0; }
.fan__card { position: absolute; left: 50%; bottom: 20px; width: clamp(170px, 19vw, 250px); padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 100%; transform: translateX(calc(-50% + var(--x) * var(--spread, 100%))) rotate(var(--rot)) scale(var(--sc)); filter: brightness(var(--lit)); transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .4s; animation: fanIn 1.1s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: var(--d); }
.fan__card .device { animation: drift 7s ease-in-out infinite; animation-delay: var(--f); }
.fan__card:hover, .fan__card:focus-visible { z-index: 20 !important; filter: brightness(1); transform: translateX(calc(-50% + var(--x) * var(--spread, 100%))) rotate(calc(var(--rot) * .5)) scale(calc(var(--sc) + .04)) translateY(-16px); }
.fan__card:focus-visible { outline: none; }
.fan__card:focus-visible .device { box-shadow: 0 0 0 3px var(--blue-ink), 0 30px 60px rgba(0, 0, 0, .55); }
@keyframes fanIn { from { opacity: 0; transform: translateX(-50%) translateY(80px) scale(.9); } }
@keyframes drift { 50% { transform: translateY(-10px); } }

/* Game strip */
.strip { position: relative; margin-top: 30px; padding: 22px 0; border-block: 1px solid var(--line); background: rgba(6, 20, 51, .6); overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.strip__track { display: flex; width: max-content; animation: tape 45s linear infinite; }
.strip:hover .strip__track { animation-play-state: paused; }
.strip__item { display: flex; align-items: center; gap: 14px; margin-right: 56px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; opacity: .8; transition: opacity .2s; }
.strip__item:hover, .strip__item:focus-visible { opacity: 1; }
.strip__item img { width: 46px; height: 46px; border-radius: 12px; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
.strip__item b { display: block; font: 800 1.15rem/1 var(--display); text-transform: uppercase; letter-spacing: -.02em; color: #fff; }
.strip__item small { font: 700 .64rem var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@keyframes tape { to { transform: translateX(-50%); } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-block: 100px 140px; }
.stat { position: relative; display: flex; flex-direction: column; min-height: 280px; padding: 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.stat b { font: 800 clamp(3rem, 5vw, 4.4rem)/1 var(--display); letter-spacing: -.05em; }
.stat span { font-weight: 600; margin-top: 8px; }
.stat__rule { display: block; height: 1px; background: currentColor; opacity: .25; margin: auto 0 14px; }
.stat small { opacity: .7; font: 700 .7rem var(--ui); letter-spacing: .12em; text-transform: uppercase; }
.stat--dark { background: var(--card); }
.stat--violet { background: radial-gradient(120% 90% at 100% 0%, #7a6af5, #2b2f9a 70%); border-color: rgba(169, 196, 255, .25); }
.stat--lime { background: radial-gradient(120% 90% at 0% 0%, #45d6fb, #2f8cf3 50%, #2a5bd0); color: #fff; border-color: rgba(69, 214, 251, .35); }
.stat--img { padding: 0; justify-content: flex-end; }
.stat--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stat--img span { position: relative; padding: 60px 28px 26px; font: 800 1.8rem/1 var(--display); letter-spacing: -.03em; text-transform: uppercase; background: linear-gradient(transparent, rgba(2, 12, 34, .9)); }

/* Spotlight */
.spotlight { padding-bottom: 140px; }
.spot { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; min-height: 560px; padding: 56px; overflow: hidden; isolation: isolate; border-radius: 36px; border: 1px solid var(--line); background: var(--card); --accent: var(--blue-ink); }
.spot__bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; filter: blur(30px) saturate(1.2) brightness(.35); transform: scale(1.2); }
.spot::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(2, 12, 34, .95) 22%, rgba(2, 12, 34, .35)), radial-gradient(circle at 80% 50%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%); }
.spot__info h3 { font: 800 clamp(2.4rem, 4.6vw, 4rem)/.95 var(--display); letter-spacing: -.045em; margin: 18px 0 8px; }
.spot__sub { font: 700 .82rem var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.spot__info p:not(.spot__sub) { color: rgba(245, 245, 242, .78); max-width: 460px; }
.spot__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.spot__visual { position: relative; display: grid; place-items: center; min-height: 440px; }
/* iPhone 17 Pro mockup, Deep Blue finish. --s is 1% of the phone's short side, so every detail scales with it.
   Real proportions: ~1% metal frame, ~2% black bezel, Dynamic Island ~29% x 8% of the width, home bar ~34% x 1.2%. */
.device { --s: 1cqw; position: relative; display: block; aspect-ratio: 9 / 19.5; container-type: inline-size; border-radius: 17% / 7.85%;
  background: linear-gradient(90deg, #8fa2c8 0%, #2e3b57 1.6%, #1b2335 6%, #1b2335 94%, #2e3b57 98.4%, #8fa2c8 100%), #1b2335;
  box-shadow: inset 0 0 0 calc(.35 * var(--s)) rgba(190, 205, 235, .55), inset 0 calc(.6 * var(--s)) calc(.8 * var(--s)) rgba(255, 255, 255, .25), 0 1px 0 rgba(255, 255, 255, .06), 0 24px 40px -16px rgba(0, 0, 0, .65), 0 50px 90px -30px rgba(0, 0, 0, .7); }
.device__glass { position: absolute; inset: calc(1.05 * var(--s)); display: block; padding: calc(2.1 * var(--s)); border-radius: calc(15.9 * var(--s)); background: #000; box-shadow: 0 0 0 calc(.25 * var(--s)) #0a0e18; }
.device__screen { position: relative; display: block; width: 100%; height: 100%; border-radius: calc(13.8 * var(--s)); overflow: hidden; background: #000; }
.device__screen img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.device__status { position: absolute; z-index: 4; top: 0; left: 0; right: 0; height: calc(13.4 * var(--s)); display: flex; align-items: center; justify-content: space-between; padding: 0 calc(7.2 * var(--s)) 0 calc(10.5 * var(--s)); color: #fff; pointer-events: none; }
.device__status b { font: 600 calc(4.2 * var(--s))/1 -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif; letter-spacing: -.02em; }
.device__status i { display: flex; align-items: center; gap: calc(1.3 * var(--s)); }
.device__status svg { display: block; height: calc(3 * var(--s)); width: auto; fill: currentColor; }
.device__status svg:last-child { height: calc(3.3 * var(--s)); }
/* soft scrim so the status bar reads over busy game art, like iOS over full-bleed content */
.device__status::before { content: ""; position: absolute; inset: 0 0 calc(-4 * var(--s)); z-index: -1; background: linear-gradient(rgba(0, 0, 0, .32), transparent); }
.device--dark .device__status::before { background: linear-gradient(rgba(255, 255, 255, .45), transparent); }
.device__home { position: absolute; z-index: 4; left: 50%; bottom: calc(2 * var(--s)); width: calc(34 * var(--s)); height: calc(1.2 * var(--s)); margin-left: calc(-17 * var(--s)); border-radius: 999px; background: rgba(255, 255, 255, .78); pointer-events: none; }
.device--dark .device__status { color: #0b0b0f; }
.device--dark .device__home { background: rgba(0, 0, 0, .75); }
.device.landscape .device__status { display: none; }
.device__screen::before { content: ""; position: absolute; z-index: 5; top: calc(2.5 * var(--s)); left: 50%; width: calc(27 * var(--s)); height: calc(7.9 * var(--s)); margin-left: calc(-13.5 * var(--s)); border-radius: 999px; background: #000; }
.device__screen::after { content: ""; position: absolute; z-index: 3; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(118deg, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, .04) 22%, transparent 40%); box-shadow: inset 0 0 0 calc(.2 * var(--s)) rgba(255, 255, 255, .05); }
.device__btns { position: absolute; inset: 0; display: block; pointer-events: none; }
.device__btns b { position: absolute; width: calc(.9 * var(--s)); border-radius: calc(.5 * var(--s)); background: linear-gradient(90deg, #22304c, #8fa2c8 70%, #44547a); }
.device__btns b:nth-child(1) { left: calc(-.8 * var(--s)); top: calc(40 * var(--s)); height: calc(8 * var(--s)); }   /* Action button */
.device__btns b:nth-child(2) { left: calc(-.8 * var(--s)); top: calc(55 * var(--s)); height: calc(15 * var(--s)); }  /* Volume up */
.device__btns b:nth-child(3) { left: calc(-.8 * var(--s)); top: calc(74 * var(--s)); height: calc(15 * var(--s)); }  /* Volume down */
.device__btns b:nth-child(4) { right: calc(-.8 * var(--s)); top: calc(62 * var(--s)); height: calc(24 * var(--s)); background: linear-gradient(90deg, #44547a, #8fa2c8 30%, #22304c); } /* Side button */
.device__btns b:nth-child(5) { right: calc(-.55 * var(--s)); top: calc(126 * var(--s)); height: calc(13 * var(--s)); width: calc(.7 * var(--s)); background: #10172a; } /* Camera Control */
/* Landscape: same phone turned on its side */
.device.landscape { --s: .4615cqw; aspect-ratio: 19.5 / 9; border-radius: 7.85% / 17%; }
.device.landscape .device__screen::before { top: 50%; left: calc(2.5 * var(--s)); width: calc(7.9 * var(--s)); height: calc(27 * var(--s)); margin: calc(-13.5 * var(--s)) 0 0; }
.device.landscape .device__btns b { width: auto; height: calc(.9 * var(--s)); }
.device.landscape .device__btns b:nth-child(-n+3) { left: auto; top: auto; bottom: calc(-1 * var(--s)); }
.device.landscape .device__btns b:nth-child(1) { left: calc(40 * var(--s)); width: calc(9 * var(--s)); }
.device.landscape .device__btns b:nth-child(2) { left: calc(56 * var(--s)); width: calc(17 * var(--s)); }
.device.landscape .device__btns b:nth-child(3) { left: calc(77 * var(--s)); width: calc(17 * var(--s)); }
.device.landscape .device__btns b:nth-child(4) { right: auto; top: calc(-1 * var(--s)); left: calc(64 * var(--s)); width: calc(27 * var(--s)); }
.device.landscape .device__btns b:nth-child(5) { right: auto; top: calc(-.8 * var(--s)); left: calc(128 * var(--s)); width: calc(15 * var(--s)); height: calc(1 * var(--s)); }
.phone { width: 230px; transform: rotate(-6deg); transition: transform .5s; filter: drop-shadow(0 0 60px color-mix(in srgb, var(--accent) 35%, transparent)); }
.phone.landscape { width: min(100%, 460px); transform: rotate(-3deg); }
.spot__icon { position: absolute; width: 110px; right: 8%; bottom: 8%; border-radius: 26px; border: 3px solid rgba(245, 245, 242, .2); box-shadow: 0 20px 40px rgba(0, 0, 0, .5); animation: floaty 4s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
.spot__info, .spot__visual { transition: opacity .35s, transform .35s; }
.spot.is-switching .spot__info, .spot.is-switching .spot__visual { opacity: 0; transform: translateY(10px); }
.spot__thumbs { grid-column: 1 / -1; display: flex; gap: 12px; flex-wrap: wrap; }
.spot__thumb { position: relative; width: 60px; height: 60px; padding: 0; border-radius: 16px; overflow: hidden; border: 2px solid transparent; background: none; cursor: pointer; opacity: .45; transition: opacity .2s, border-color .2s, transform .2s; }
.spot__thumb img { width: 100%; height: 100%; object-fit: cover; }
.spot__thumb:hover { opacity: 1; transform: translateY(-3px); }
.spot__thumb[aria-selected="true"] { opacity: 1; border-color: var(--blue-ink); }
.spot__thumb i { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--grad); }
.spot__thumb[aria-selected="true"] i { animation: fill var(--dur, 6s) linear forwards; }
.spot.is-paused .spot__thumb i { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }

/* Games grid */
.games { padding-bottom: 140px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; background: transparent; font: 700 .74rem var(--ui); letter-spacing: .1em; text-transform: uppercase; transition: background .2s, color .2s, border-color .2s; }
.chip span { opacity: .55; margin-left: 6px; }
.chip:hover { border-color: var(--blue-ink); color: #fff; }
.chip[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: #fff; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { --mx: 50%; --my: 50%; position: relative; cursor: pointer; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); overflow: hidden; transition: border-color .3s, transform .3s, box-shadow .3s; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); transform: translateY(-6px); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--accent) 55%, transparent); }
.card.is-hidden { display: none; }
.card__inner { position: relative; height: 100%; }
.card__inner::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(380px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 16%, transparent), transparent 50%); }
.card:hover .card__inner::before { opacity: 1; }
.card__banner { position: relative; aspect-ratio: 1024 / 500; overflow: hidden; }
.card__banner img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card__banner img { transform: scale(1.06); }
.card__body { position: relative; padding: 0 22px 24px; }
.card__top { display: flex; justify-content: space-between; align-items: flex-end; }
.card__icon { width: 76px; height: 76px; border-radius: 20px; margin-top: -38px; border: 3px solid var(--card); box-shadow: 0 10px 24px rgba(0, 0, 0, .5); position: relative; z-index: 1; }
.card h3 { font: 800 1.5rem/1 var(--display); letter-spacing: -.03em; margin: 16px 0 6px; }
.card__sub { font: 700 .7rem var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.card__desc { color: var(--muted); min-height: 3.2em; }
/* actions stacked full-width (play in browser, then download app) with a quiet details link underneath */
.card__actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 16px; position: relative; z-index: 3; }
.card__actions .btn { min-width: 0; min-height: 50px; padding: 8px 16px; font-size: .8rem; letter-spacing: .06em; }
.card__actions .btn--play { padding: 8px 16px; }
/* one-line labels: the store button's text matches the web button's style */
.card__actions .btn--play span, #mPlay span { font: 700 .8rem/1.2 var(--ui); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
#mPlay span { font-size: .82rem; }
.card__actions .btn, .card__actions .btn--play svg { flex: none; }
.card__actions .btn--play svg { width: 18px; height: 18px; }

.btn-web svg { width: 17px; height: 17px; }
.btn-web.is-soon { background: transparent; color: var(--muted); border: 1px dashed var(--line-2); box-shadow: none; cursor: default; white-space: nowrap; text-align: center; }
.btn-web.is-soon:hover { transform: none; }
.card__details { justify-self: center; padding: 6px 12px; border: 0; background: none; cursor: pointer; font: 700 .7rem var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.card__details:hover, .card__details:focus-visible { color: var(--blue-ink); }
/* Picker */
.picker { padding-bottom: 140px; text-align: center; }
.picker .section-head { display: flex; flex-direction: column; align-items: center; }
.machine { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.machine__window { position: relative; width: min(100%, 800px); height: 180px; overflow: hidden; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.machine__window::before, .machine__window::after { content: ""; position: absolute; top: 0; bottom: 0; width: 22%; z-index: 1; pointer-events: none; }
.machine__window::before { left: 0; background: linear-gradient(90deg, var(--card), transparent); }
.machine__window::after { right: 0; background: linear-gradient(-90deg, var(--card), transparent); }
.machine__reel { display: flex; gap: 20px; height: 100%; align-items: center; will-change: transform; }
.machine__reel img { width: 124px; height: 124px; flex: none; border-radius: 28px; }
.machine__marker { position: absolute; left: 50%; top: 14px; bottom: 14px; width: 144px; margin-left: -72px; border: 2px solid var(--blue-ink); border-radius: 34px; box-shadow: 0 0 40px rgba(47, 140, 243, .55); pointer-events: none; z-index: 2; }
#spinBtn svg { width: 22px; height: 22px; }
#spinBtn.is-spinning svg { animation: spin .6s linear infinite; }
#spinBtn:disabled { opacity: .7; cursor: wait; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.machine__result { min-height: 90px; }
.result { display: inline-flex; align-items: center; gap: 18px; padding: 12px 14px 12px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-align: left; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.result img { width: 60px; height: 60px; border-radius: 50%; }
.result b { font: 800 1.2rem/1.1 var(--display); letter-spacing: -.02em; text-transform: uppercase; display: block; }
.result small { color: var(--blue-ink); font: 700 .66rem var(--ui); letter-spacing: .14em; text-transform: uppercase; }
.result .btn { margin-left: 8px; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }

/* Studio */
.studio { padding-bottom: 140px; }
.studio__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 70px; align-items: center; }
.studio__visual { position: relative; height: 620px; }
.studio__visual::before { content: ""; position: absolute; inset: 10% 0; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(31, 63, 168, .55), transparent); }
.sv { position: absolute; }
.sv--1 { width: min(46%, 250px); left: 6%; top: 0; transform: rotate(-6deg); }
.sv--2 { width: min(42%, 230px); right: 10%; bottom: 0; transform: rotate(5deg); filter: brightness(.9); }
.sv--3 { z-index: 2; width: 110px; left: 44%; top: 44%; border-radius: 28px; border: 3px solid rgba(245, 245, 242, .25); animation: floaty 5s ease-in-out infinite; }
.studio__copy h2 { margin-bottom: 26px; }
.glass { padding: 28px; border-radius: 24px; background: rgba(245, 245, 242, .03); border: 1px solid var(--line); backdrop-filter: blur(10px); color: rgba(245, 245, 242, .78); font-size: 1.06rem; }
.glass p:last-child { margin: 0; }
/* numbered rows, like an index */
.pillars { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 22px; }
.pillar { display: grid; grid-template-columns: 56px 150px 1fr; align-items: baseline; gap: 16px; padding: 20px 4px; border-top: 1px solid var(--line); transition: background .3s; }
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar span { font: italic 400 1.6rem/1 var(--serif); color: var(--lavender); }
.pillar h3 { margin: 0; font-size: 1rem; }
.pillar p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Process: a full purple band with a dotted timeline */
.process { padding: 0 16px 140px; }
.process__panel { max-width: 1400px; margin-inline: auto; padding: 100px 0 96px; border-radius: 48px; color: #fff; overflow: hidden; position: relative; isolation: isolate;
  background: radial-gradient(80% 120% at 50% 0%, #3f8ff0 0%, #4d4fc9 42%, #0d1d5a 100%); }
.process__panel::after { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 80%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(47, 140, 243, .45), transparent); }
.process .section-sub { color: rgba(255, 255, 255, .78); }
.process h2 .outline { color: #fff; }
.steps { position: relative; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 27px; height: 1px; background: rgba(255, 255, 255, .3); }
.step { position: relative; padding: 0 10px; text-align: center; transition: transform .3s; }
.step:hover { transform: translateY(-6px); }
.step__n { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 22px; border-radius: 50%; background: #061433; border: 1px solid rgba(255, 255, 255, .35); color: #fff; font: italic 400 1.5rem var(--serif); transition: background .3s, box-shadow .3s; }
.step:hover .step__n { background: var(--blue); box-shadow: 0 0 0 6px rgba(47, 140, 243, .25), 0 0 30px var(--blue); }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: rgba(255, 255, 255, .75); }

/* CTA */
.cta { position: relative; overflow: hidden; padding: 80px 0 160px; text-align: center; isolation: isolate; }
/* glow is drawn inside the section's own box and fades to nothing before every edge, so no seam shows */
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(42% 38% at 50% 46%, rgba(31, 63, 168, .6), rgba(31, 63, 168, .18) 55%, transparent 80%); }
.cta__inner { position: relative; }
.cta__title { font: 800 clamp(2.8rem, 7.6vw, 8rem)/.9 var(--display); letter-spacing: -.05em; text-transform: uppercase; margin-bottom: 30px; }
.cta__icons { position: absolute; inset: 0; pointer-events: none; }
.cta__icons img { position: absolute; width: clamp(64px, 9vw, 120px); border-radius: 26%; box-shadow: 0 20px 40px rgba(0, 0, 0, .6); animation: floaty 5s ease-in-out infinite; }
.cta p { color: var(--muted); font-size: 1.12rem; position: relative; }
.cta .btn { position: relative; }
.cta__title, .cta p, .cta .btn { position: relative; z-index: 1; }

/* Contact */
.contact { padding-bottom: 140px; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.contact__list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; }
.contact__list li { display: flex; gap: 16px; align-items: center; padding: 14px 20px 14px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.contact__list div { min-width: 0; }
.contact__list small { display: block; color: var(--muted); font: 700 .66rem var(--ui); letter-spacing: .14em; text-transform: uppercase; }
.contact__list a { text-decoration: none; font-weight: 700; overflow-wrap: break-word; }
.contact__list a:hover { color: var(--blue-ink); }
.ci { flex: none; width: 46px; height: 46px; display: grid; place-items: center; background: var(--grad); color: #fff; border-radius: 50%; }
.ci svg { width: 20px; height: 20px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 34px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font: 700 .7rem var(--ui); letter-spacing: .14em; text-transform: uppercase; color: rgba(245, 245, 242, .78); }
.field em { color: var(--muted); font-style: normal; text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 18px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(2, 12, 34, .6); color: var(--text); font: inherit; resize: vertical; transition: border-color .2s, box-shadow .2s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--blue-ink) 50%), linear-gradient(135deg, var(--blue-ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { background: var(--bg-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-ink); box-shadow: 0 0 0 4px rgba(47, 140, 243, .2); }
.field .err { display: none; color: #ff8a9a; font-size: .85rem; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff8a9a; }
.field.is-invalid .err { display: block; }
.form__note { margin: 0; color: var(--muted); font-size: .92rem; text-align: center; }

/* Footer with a giant wordmark */
.footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); padding: 70px 0 36px; background: #010817; isolation: isolate; }
.footer::before { content: ""; position: absolute; left: 50%; bottom: -30%; z-index: -1; width: 120%; height: 70%; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(31, 63, 168, .55), transparent); }
.footer__grid { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 40px; align-items: center; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { text-decoration: none; font: 700 .74rem var(--ui); letter-spacing: .12em; text-transform: uppercase; color: rgba(245, 245, 242, .7); }
.footer ul a:hover { color: #fff; }
.footer__games { text-align: right; }
.footer__brand { text-align: center; }
.footer__brand img { margin: 0 auto 6px; width: 110px; height: auto; }
.footer__brand p:last-child { color: var(--muted); max-width: 420px; margin: 16px auto 0; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
/* Modal */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(1, 6, 18, .82); backdrop-filter: blur(8px); animation: fade .3s; }
.modal__panel { position: relative; width: min(880px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 32px; border: 1px solid var(--line); background: var(--bg-2); animation: rise .4s cubic-bezier(.2, .9, .3, 1.1); overscroll-behavior: contain; }
.modal__panel:focus { outline: none; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.modal__close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(2, 12, 34, .7); backdrop-filter: blur(8px); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.modal__close:hover { background: var(--blue); border-color: var(--blue); }
.modal__hero { aspect-ratio: 1024 / 500; position: relative; }
.modal__hero img { width: 100%; height: 100%; object-fit: cover; }
.modal__hero::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, var(--bg-2)); }
.modal__body { padding: 0 34px 34px; margin-top: -60px; position: relative; }
.modal__head { display: flex; gap: 22px; align-items: flex-end; margin-bottom: 22px; }
.modal__icon { width: 110px; height: 110px; border-radius: 28px; border: 3px solid var(--bg-2); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); flex: none; }
.modal__head h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin: 10px 0 4px; }
.modal__sub { color: var(--accent); margin: 0; font: 700 .78rem var(--ui); letter-spacing: .14em; text-transform: uppercase; }
.modal__body > p { color: rgba(245, 245, 242, .78); font-size: 1.05rem; }
.modal__features { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal__features li { padding-left: 26px; position: relative; }
.modal__features li::before { content: "→"; position: absolute; left: 2px; color: var(--accent); }
.modal__shots { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; margin-bottom: 26px; }
.modal__shots button { flex: none; padding: 0; border: 0; background: none; cursor: zoom-in; scroll-snap-align: start; border-radius: 16px; overflow: hidden; }
.modal__shots img { height: 300px; width: auto; transition: transform .3s; }
.modal__shots.landscape img { height: 200px; }
.modal__shots button:hover img { transform: scale(1.03); }
.modal__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.modal__web { display: contents; }
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(0, 0, 0, .94); padding: 30px; cursor: zoom-out; animation: fade .2s; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; max-width: 100%; border-radius: 18px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; translate: -50% 0; padding: 12px 22px; border-radius: 999px; background: var(--blue); color: #fff; font: 700 .86rem var(--ui); letter-spacing: .04em; opacity: 0; transform: translateY(20px); transition: opacity .3s, transform .3s; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.is-on { opacity: 1; transform: none; }

/* Reveal */
.reveal { opacity: 1; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.card.is-done { transition: border-color .3s, transform .3s, box-shadow .3s; }
.step.is-done { transition: transform .3s; }

/* Legal & 404 */
.legal { padding: calc(var(--nav-h) + 60px) 0 100px; }
.legal__layout { display: grid; grid-template-columns: 250px 1fr; gap: 50px; align-items: start; }
.legal__toc { position: sticky; top: calc(var(--nav-h) + 20px); padding: 22px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); }
.legal__toc h4 { margin: 0 0 12px; font: 700 .72rem var(--ui); letter-spacing: .15em; text-transform: uppercase; color: var(--blue-ink); }
.legal__toc ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: .92rem; }
.legal__toc a { text-decoration: none; color: rgba(245, 245, 242, .75); }
.legal__toc a:hover { color: #fff; }
.legal h1 { font: 800 clamp(2.8rem, 7vw, 5rem)/1 var(--display); letter-spacing: -.05em; text-transform: uppercase; }
.legal h2 { font: 800 1.2rem var(--display); text-transform: uppercase; letter-spacing: -.01em; margin-top: 2.2em; color: #fff; }
.legal article { color: rgba(245, 245, 242, .75); max-width: 760px; }
.legal article a { color: var(--blue-ink); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 4px; }
.legal .meta { color: var(--muted); }
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.notfound h1 { font: 800 clamp(7rem, 26vw, 16rem)/1 var(--display); letter-spacing: -.06em; margin: 0; }

/* Responsive */
@media (max-width: 1100px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed; inset: calc(var(--nav-h) + 4px) 12px auto; flex-direction: column; gap: 0; padding: 10px 18px 22px;
    border-radius: 28px; background: rgba(6, 20, 51, .97); border: 1px solid var(--line); backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a:not(.btn) { padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
  .nav__links a:not(.btn)::before { display: none; }
  .nav__cta--menu { display: inline-flex; margin-top: 18px; }
  .nav__bar { grid-template-columns: auto 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .spot { grid-template-columns: 1fr; padding: 40px 30px; }
  .spot__visual { min-height: 380px; order: -1; }
  .studio__grid, .contact__grid { grid-template-columns: 1fr; gap: 50px; }
  /* tall enough for both phones so they never run into the heading below */
  .studio__visual { height: 600px; width: 100%; max-width: 560px; margin-inline: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .steps::before { display: none; }
  .fan__card { --spread: 112%; }
  /* CTA: icons sit in a row above the headline instead of floating over the text */
  .cta__inner { display: flex; flex-direction: column; align-items: center; }
  .cta__icons { order: -1; position: static; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
  .cta__icons img { position: static; width: 60px; border-radius: 16px; }
  .legal__layout { grid-template-columns: 1fr; }
  .legal__toc { position: static; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  :root { --nav-h: 70px; --radius: 22px; }
  .nav.is-scrolled .nav__bar, .nav.menu-open .nav__bar { height: 58px; margin-top: 8px; padding: 0 6px 0 16px; }
  .nav__right .nav__cta { display: none; }
  .brand img { width: 34px; }
  .wordmark--left b { font-size: 1.15rem; }
  .hero { padding-top: calc(var(--nav-h) + 38px); }
  .hero h1 { font-size: clamp(2.8rem, 14.5vw, 4.4rem); }
  .hero .pixels--a { display: none; }
  .hero .pixels--b { display: none; }
  .planet { height: 88%; }
  .hero__actions { flex-direction: column; align-items: stretch; width: min(100%, 320px); }
  .fan { height: 372px; margin-top: 28px; }
  .fan__card { width: 160px; --spread: 62%; }
  .fan__card:nth-child(1), .fan__card:nth-child(5) { display: none; }
  .grid { grid-template-columns: 1fr; }
  /* stats as a compact 2 x 2 grid instead of four tall cards */
  .stats { gap: 12px; margin-block: 56px 90px; }
  .stat { min-height: 168px; padding: 18px; }
  .stat b { font-size: 2.5rem; }
  .stat span { font-size: .9rem; line-height: 1.3; }
  .stat small { font-size: .6rem; }
  .stat--img span { padding: 40px 18px 16px; font-size: 1.25rem; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .chip { text-align: center; }
  .pillar { grid-template-columns: 40px 1fr; row-gap: 6px; }
  .pillar p { grid-column: 2; }
  /* process: compact 2 x 2 steps */
  .steps { gap: 30px 12px; }
  .step { padding: 0 4px; }
  .step__n { width: 46px; height: 46px; margin-bottom: 14px; font-size: 1.25rem; }
  .step h3 { font-size: .95rem; }
  .step p { font-size: .85rem; line-height: 1.45; }
  .cta__icons { gap: 8px; }
  .cta__icons img { width: 46px; border-radius: 13px; }
  .spot { padding: 28px 20px; border-radius: 26px; }
  .spot__visual { min-height: 320px; }
  .phone { width: 180px; }
  .spot__icon { width: 76px; border-radius: 18px; right: 2%; }
  .studio__visual { height: 440px; }
  .sv--3 { width: 90px; }
  .process { padding-inline: 10px; }
  .process__panel { padding: 70px 0 60px; border-radius: 30px; }
  .form { grid-template-columns: 1fr; padding: 22px; }
  .contact__list li { border-radius: 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; order: -1; }
  .modal { padding: 0; align-items: end; }
  .modal__panel { max-height: 92vh; border-radius: 26px 26px 0 0; }
  .modal__body { padding: 0 20px 24px; margin-top: -40px; }
  .modal__icon { width: 80px; height: 80px; border-radius: 20px; }
  .modal__features { grid-template-columns: 1fr; }
  .modal__shots img { height: 240px; }
  .modal__shots.landscape img { height: 160px; }
  .machine__window { height: 136px; }
  .machine__reel img { width: 92px; height: 92px; border-radius: 22px; }
  .machine__marker { width: 110px; margin-left: -55px; top: 10px; bottom: 10px; }
  .result { flex-wrap: wrap; justify-content: center; text-align: center; border-radius: 26px; }
  .result .btn { margin-left: 0; }
  .cta { padding-bottom: 90px; }
  .contact__list a { font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
