/* aydoo.games. One stylesheet for the landing page, the legal pages and the 404 page.
   The design came as two pages, a phone one (360-430px) and a desktop one (1024px and up); here the phone layout is the
   base and the desktop one starts at 768px. Sizes are the design's own, so box-sizing stays the browser's default
   except where a rule sets it (as the design did). */

:root {
  --navy: #0F1A38;
  --navy-deep: #0A1229;
  --film: #0A1128;
  --raise: #16234A;
  --line: #2A3763;
  --mint: #4FE0C0;
  --teal: #0C9C80;
  --teal-ink: #0A7F69;
  --mist: #C3CCE6;
  --ink-soft: #4A5672;
  --display: 'Geologica', system-ui, sans-serif;
  --text: 'Manrope', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(20px, 4.2vw, 60px);
  /* The height of the bar that stays at the top: a link to a section stops just under it. */
  --bar: 72px;
  color-scheme: dark;
}

html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--bar); }
body { margin: 0; background: var(--navy); color: #FFFFFF; font-family: var(--text); font-size: 16px; line-height: 1.55; }
a { color: var(--mist); }
a:hover { color: #FFFFFF; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.page { overflow-x: clip; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 40; padding: 12px 18px; border-radius: 999px; background: var(--mint); color: var(--navy); font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; color: var(--navy); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; border-radius: 999px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.btn svg { flex: none; }
.btn-cta { background: var(--mint); color: var(--navy); transition: background .2s; }
.btn-cta:hover { background: #FFFFFF; color: var(--navy); }
.btn-ghost { border: 1.5px solid var(--mist); color: #FFFFFF; transition: background .2s, color .2s; }
.btn-ghost:hover { background: #FFFFFF; color: var(--navy); }
.btn-inv { background: var(--mint); color: var(--navy); transition: background .2s, color .2s; }
.btn-inv:hover { background: var(--navy); color: #FFFFFF; }

/* ---------- Sections come up from the bottom of the window small and blurred, then zoom in and sharpen; scrolled back
   down out of the window they return to that (site.js sets --p, from 0 below the window to 1 fully in) ---------- */
.rise {
  transform: scale(calc(.84 + .16 * var(--p, 1))); filter: blur(calc((1 - var(--p, 1)) * 14px)); opacity: calc(.15 + .85 * var(--p, 1));
  transform-origin: 50% 0; transition: transform .55s var(--ease), filter .55s var(--ease), opacity .4s linear;
}
.rise.is-in { transform: none; filter: none; opacity: 1; }

/* ---------- Header ----------
   The bar stays at the top of the window while the page scrolls under it; site.js marks it once the page has moved,
   and it then draws a line under itself. The phone menu opens from it, over the page. */
.bar { position: sticky; top: 0; z-index: 30; background: var(--navy); box-shadow: 0 1px 0 transparent; transition: box-shadow .2s linear; }
.bar.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; }
.logo { flex: none; display: inline-flex; flex-direction: column; gap: 6px; text-decoration: none; white-space: nowrap; }
.logo-word { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -0.03em; line-height: 1; color: #FFFFFF; }
.logo-sub { padding-left: 2px; font-size: 7px; font-weight: 600; letter-spacing: 0.46em; line-height: 1; text-transform: uppercase; color: #FFFFFF; }
.hop-o { display: inline-block; color: var(--mint); transform-origin: 50% 100%; animation: hop 3s linear 1s infinite both; }
@keyframes hop {
  0% { transform: none; animation-timing-function: ease-in-out; }
  8% { transform: scale(1.16, .84); animation-timing-function: cubic-bezier(.3, .7, .4, 1); }
  14% { transform: translateY(-14%) scale(.84, 1.18); animation-timing-function: cubic-bezier(.2, .6, .35, 1); }
  30% { transform: translateY(-50%) scale(.97, 1.04); animation-timing-function: cubic-bezier(.55, 0, .8, .45); }
  44% { transform: translateY(-8%) scale(.85, 1.17); animation-timing-function: cubic-bezier(.55, 0, .8, .45); }
  48% { transform: translateY(0) scale(1.24, .78); animation-timing-function: ease-out; }
  55% { transform: translateY(-9%) scale(.95, 1.06); animation-timing-function: ease-in; }
  61% { transform: translateY(0) scale(1.08, .93); animation-timing-function: ease-out; }
  66%, 100% { transform: none; }
}
.hdr-nav, .hdr-demos { display: none; }
.hdr-actions { flex: none; display: flex; align-items: center; gap: 8px; }
.hdr-cta { min-height: 44px; padding: 0 16px; font-size: 14px; }
.menu-toggle { flex: none; -webkit-tap-highlight-color: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--mist); border-radius: 50%; background: transparent; cursor: pointer; }
.menu-bar { display: block; width: 18px; height: 2px; border-radius: 1px; background: #FFFFFF; transition: transform .3s var(--ease); }
.menu-toggle.is-open .menu-bar:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle.is-open .menu-bar:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - var(--bar)); max-height: calc(100dvh - var(--bar)); overflow-y: auto; overscroll-behavior: contain; background: var(--navy); box-shadow: 0 1px 0 var(--line), 0 28px 40px rgba(4, 8, 22, .55); }
.menu-nav { display: flex; flex-direction: column; padding: 0 20px 20px; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; }
.menu-link { display: flex; align-items: center; min-height: 52px; border-top: 1px solid var(--line); color: #FFFFFF; text-decoration: none; text-transform: lowercase; }
.menu-link:hover { color: var(--mint); }
.menu-link-last { border-bottom: 1px solid var(--line); }
.menu-demos { justify-content: center; min-height: 52px; margin-top: 16px; font-family: var(--text); font-size: 16px; letter-spacing: 0; }

@media (max-width: 359.98px) { .hdr-cta { padding: 0 12px; font-size: 13px; } }

/* ---------- Hero ---------- */
.hero { padding: 14px 20px 0; }
.kicker { display: block; margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); }
.hero-title { margin: 16px 0 0; font-family: var(--display); font-weight: 800; font-size: clamp(44px, 13.6vw, 104px); line-height: 0.92; letter-spacing: -0.045em; }
.hero-line { display: block; }
.hero-line-2 { white-space: nowrap; }
.lens { display: inline-block; position: relative; top: 0.02em; width: 0.58em; height: 0.58em; margin: 0 0.03em; border: 0.062em solid #FFFFFF; border-radius: 50%; box-sizing: border-box; overflow: hidden; vertical-align: baseline; background: var(--navy-deep); }
.lens-mint { border-color: var(--mint); }
/* The letter the picture stands for: read by search engines and screen readers, never seen. */
.lens-o { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: lens-fade 12s linear infinite; }
.lens img:first-of-type { opacity: 1; animation: none; }
.lens img:nth-of-type(2) { animation-delay: -8s; }
.lens img:nth-of-type(3) { animation-delay: -4s; }
@keyframes lens-fade { 0% { opacity: 0; transform: scale(1); } 6%, 39% { opacity: 1; } 45%, 100% { opacity: 0; transform: scale(1.14); } }
.hero-lead { margin: 20px 0 0; font-size: 17px; line-height: 1.5; color: var(--mist); }
.hero-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.hero-cta .btn { justify-content: center; gap: 10px; min-height: 56px; font-size: 17px; }

/* ---------- Film strips ---------- */
.filmwrap { padding: 26px 0; overflow: hidden; }
.film-hero { margin-top: 12px; }
.film-tilt { transform: rotate(-2deg) scale(1.06); padding: 10px 0; background: var(--film); }
.sprockets { height: 10px; background-image: repeating-linear-gradient(90deg, var(--line) 0 14px, transparent 14px 32px); }
.film { display: flex; gap: 10px; width: max-content; padding: 10px 10px 10px 0; animation: film-pan 60s linear infinite; }
.film-rev { animation-direction: reverse; }
@keyframes film-pan { to { transform: translateX(-50%); } }
.frame { flex: 0 0 auto; display: block; position: relative; width: 224px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--raise); color: var(--navy); }
.film-sm .frame { width: 176px; }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.frame-play { position: absolute; left: 10px; top: 10px; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #FFFFFF; transition: transform .35s var(--ease), background .25s, color .25s; }
.frame-play svg { width: 16px; height: 16px; margin-left: 2px; }
.film-sm .frame-play { left: 8px; top: 8px; width: 40px; height: 40px; }
.film-sm .frame-play svg { width: 14px; height: 14px; }
.frame-play::before { content: ""; position: absolute; inset: 0; border: 4px solid var(--mint); border-top-color: #FFFFFF; border-radius: 50%; animation: spin 3.2s linear infinite; }
.frame-play::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--mint); border-radius: 50%; animation: ping 2.4s var(--ease) infinite; }
.frame:nth-child(2n) .frame-play::after { animation-delay: -.8s; }
.frame:nth-child(3n) .frame-play::after { animation-delay: -1.6s; }
.filmwrap.is-away .film, .filmwrap.is-away .frame-play::before, .filmwrap.is-away .frame-play::after { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.75); opacity: 0; } }

/* ---------- Sections and their headings ---------- */
.sec { padding: 44px 20px 0; }
.sec-flush { padding-left: 0; padding-right: 0; }
.sec-flush > .head { padding: 0 20px; }
.sec-light { margin-top: 18px; background: #FFFFFF; color: var(--navy); }
.sec-light-in { padding: 40px 20px; }
.head, .head-main, .head-body { display: flex; flex-direction: column; gap: 14px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist); }
.eyebrow::before { content: ""; width: 11px; height: 11px; border: 3px solid var(--mint); border-radius: 50%; box-sizing: border-box; }
.sec-light .eyebrow { color: var(--ink-soft); }
.sec-light .eyebrow::before { border-color: var(--teal); }
.h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 36px; line-height: 1; letter-spacing: -0.04em; }
.accent { color: var(--mint); }
.br-wide { display: none; }
.head-text { margin: 0; font-size: 15px; color: var(--mist); }
.head-studio .head-text { font-size: inherit; }
.sec-light .head-text { color: var(--ink-soft); }

/* ---------- Studio ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin: 22px 0 0; padding: 0; list-style: none; }
.pillar { display: flex; flex-direction: column; gap: 6px; padding: 16px 0; border-top: 1px solid var(--line); }
.pillar-title { margin: 0; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.03em; line-height: 1.1; }
.pillar-text { margin: 0; font-size: 14px; line-height: 1.45; color: var(--mist); }

/* ---------- Games ---------- */
.games-list { margin: 20px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.game { border-bottom: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; box-sizing: border-box; padding: 7px 4px; color: #FFFFFF; cursor: pointer; list-style: none; transition: background .2s; }
.row::-webkit-details-marker { display: none; }
.game-box[open] > .row { background: var(--raise); }
.row-num, .row-grid, .row-vol, .row-max { display: none; }
.row-thumb { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: var(--navy-deep); }
.row-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.row-title { margin: 0; font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.1; letter-spacing: -0.035em; text-transform: lowercase; }
.row-meta { font-size: 13px; font-weight: 600; color: var(--mist); }
.row-plus { flex: 0 0 38px; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1.5px solid var(--mist); border-radius: 50%; box-sizing: border-box; transition: transform .3s, background .2s; }
.row-plus svg { width: 14px; height: 14px; }
.game-box[open] > .row .row-plus { transform: rotate(45deg); background: var(--mint); color: var(--navy); border-color: var(--mint); }
.panel { display: flex; flex-direction: column; gap: 16px; padding: 6px 4px 26px; }
.panel-art { aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--navy-deep); }
.panel-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.panel-body { display: flex; flex-direction: column; gap: 16px; }
.panel-tagline { margin: 0; font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1.14; letter-spacing: -0.03em; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin: 0; }
.spec { display: flex; flex-direction: column; gap: 2px; }
.spec dt { font-size: 13px; font-weight: 600; color: var(--mist); }
.spec dd { margin: 0; font-size: 15px; font-weight: 800; }
.panel-actions { display: flex; gap: 10px; }
.panel-actions .btn { flex: 1 1 0; justify-content: center; min-height: 52px; }
.panel-actions .btn-cta { gap: 8px; }
.panel-actions .btn-cta svg { width: 16px; height: 16px; }

/* ---------- Production (the light band) ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin: 22px 0 0; padding: 0; list-style: none; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-top: 2px solid var(--navy); }
.stat-num { font-family: var(--display); font-weight: 800; font-size: 38px; line-height: 1; letter-spacing: -0.05em; }
.stat-teal { color: var(--teal); }
.stat-label { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ink-soft); }
/* A row of pills that scrolls sideways on a phone and wraps on a desktop. */
.chips { display: flex; gap: 8px; margin: 0 -20px; padding: 0 20px; list-style: none; overflow-x: auto; font-size: 15px; white-space: nowrap; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; display: flex; align-items: center; min-height: 44px; }
.chips-line { margin-top: 18px; font-weight: 800; }
.chips-line .chip { padding: 0 18px; border: 1.5px solid var(--navy); border-radius: 999px; }
.chips-solid { font-weight: 600; }
.chips-solid .chip { padding: 0 16px; border-radius: 999px; background: var(--raise); }

/* ---------- Crypto ---------- */
.feats { display: flex; flex-direction: column; margin: 18px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.feat { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name badge" "desc desc"; align-items: center; gap: 3px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.feat-name { grid-area: name; font-size: 17px; font-weight: 800; }
.feat-desc { grid-area: desc; font-size: 14px; color: var(--mist); }
.badge { grid-area: badge; display: flex; align-items: center; min-height: 26px; padding: 0 12px; border-radius: 999px; background: var(--mint); color: var(--navy); font-size: 12px; font-weight: 800; }
.badge-soon { box-sizing: border-box; border: 1.5px solid var(--mist); background: none; color: var(--mist); }

/* ---------- Technology ---------- */
.tech { display: flex; flex-direction: column; }
.tech > .head { order: 1; }
.steps { order: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; margin: 22px 0 0; padding: 0; list-style: none; }
.step { display: flex; flex-direction: column; gap: 8px; }
/* An odd number of steps: on a phone the last one takes the whole row instead of sitting alone in the left column. */
.step:last-child:nth-child(odd) { grid-column: 1 / -1; }
.step-num { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border: 5px solid #FFFFFF; border-radius: 50%; box-sizing: border-box; font-family: var(--display); font-weight: 800; font-size: 17px; }
.step:last-child .step-num { border-color: var(--mint); }
.step-title { margin: 0; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.03em; line-height: 1.1; }
.step-text { margin: 0; font-size: 14px; line-height: 1.45; color: var(--mist); }
.proof { order: 3; display: flex; flex-direction: column; margin: 22px 0 0; }
.proof-row { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; border-top: 1px solid var(--line); }
.proof-row dt { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); }
.proof-row dd { margin: 0; font-size: 15px; }

/* ---------- Markets ---------- */
.cards { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 22px; }
.card-now { background: var(--mint); color: var(--navy); }
.card-later { border: 1.5px solid var(--mist); }
.card-kicker, .label { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.card-later .card-kicker, .label { color: var(--mist); }
.card-title { margin: 0; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.04; letter-spacing: -0.04em; }
.card-text { margin: 0; font-size: 15px; }
.card-now .card-text { font-weight: 600; }
.card-later .card-text { color: var(--mist); }
.more { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
.more-text, .models { display: flex; flex-direction: column; gap: 10px; }
.h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.04; letter-spacing: -0.04em; }
.more-text p { margin: 0; font-size: 15px; color: var(--mist); }

/* ---------- Contact ---------- */
.contact-card { display: flex; flex-direction: column; gap: 20px; padding: 26px 22px; border-radius: 28px; background: #FFFFFF; color: var(--navy); }
.contact-title { margin: 0; font-family: var(--display); font-weight: 800; font-size: 29px; line-height: 1.03; letter-spacing: -0.04em; }
.path { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; font-size: 16px; font-weight: 800; }
.path li { display: flex; align-items: center; gap: 14px; min-height: 48px; border-top: 1.5px solid var(--navy); }
.path-num { color: var(--teal-ink); font-variant-numeric: tabular-nums; }
.contact-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.contact-actions .btn { justify-content: center; gap: 10px; width: 100%; min-height: 56px; font-size: 17px; }
.mail { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); font-weight: 800; text-underline-offset: 4px; }
.mail:hover { color: var(--navy); }

/* ---------- Footer ---------- */
.ftr { padding: 44px 20px 28px; }
.lockup { display: flex; flex-direction: column; align-items: flex-start; margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(84px, 27vw, 207px); }
.lockup-slogan { margin-bottom: -0.8em; padding-left: 0.22em; font-size: 0.18em; line-height: 1; letter-spacing: -0.03em; white-space: nowrap; }
.lockup-word { line-height: 0.82; letter-spacing: -0.03em; white-space: nowrap; }
.ftr-bar { display: flex; flex-direction: column; gap: 8px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.ftr-bar-first { margin-top: 0; }
.ftr-tagline { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -0.03em; line-height: 1.2; }
.ftr-nav { display: flex; flex-wrap: wrap; gap: 0 22px; font-size: 15px; font-weight: 600; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--mist); text-decoration: none; }
.nav-link:hover { color: var(--mint); }
.nav-link[aria-current] { color: #FFFFFF; }
.ftr-legal { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: var(--mist); }

/* ---------- Legal pages and the 404 page ---------- */
.doc-hdr .hdr-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 18px; font-size: 14px; font-weight: 600; }
.doc { max-width: 760px; margin: 0 auto; padding: 28px 20px 0; }
.doc h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(36px, 7vw, 64px); line-height: 1; letter-spacing: -0.04em; text-transform: lowercase; }
.doc-updated { margin: 22px 0 28px; font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); }
.doc h2 { margin: 36px 0 10px; font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.1; letter-spacing: -0.03em; }
.doc p, .doc li { color: var(--mist); }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 20px; }
.doc li { margin-bottom: 10px; }
.doc strong { color: #FFFFFF; }
.doc a { color: var(--mint); text-underline-offset: 3px; }
.doc a:hover { color: #FFFFFF; }
.doc-box { margin: 0 0 14px; padding: 18px 20px; border: 1.5px solid var(--line); border-radius: 18px; }
.doc-box p { margin: 0; }
.lost { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 760px; margin: 0 auto; padding: clamp(40px, 10vh, 120px) 20px 0; }
.lost h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 9vw, 88px); line-height: 0.95; letter-spacing: -0.045em; text-transform: lowercase; text-wrap: balance; }
.lost p { margin: 0; font-size: 17px; color: var(--mist); }
.lost .btn { min-height: 56px; padding: 0 30px; font-size: 17px; }

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
  :root { --bar: 99px; }
  .hdr { flex-wrap: wrap; gap: 12px 32px; max-width: 1440px; margin: 0 auto; box-sizing: border-box; padding: 24px var(--gutter); }
  .logo { gap: 7px; }
  .logo-word { font-size: 34px; }
  .logo-sub { font-size: 8px; }
  .hdr-nav { display: flex; flex-wrap: wrap; gap: 0 30px; font-size: 15px; font-weight: 600; }
  .hdr-actions { flex-wrap: wrap; align-items: stretch; gap: 10px; }
  .hdr-demos { display: inline-flex; min-height: 48px; padding: 0 22px; font-size: 15px; }
  .hdr-cta { min-height: 48px; padding: 0 24px; font-size: 15px; }
  .menu-toggle, .menu { display: none; }

  .hero { max-width: 1440px; margin: 0 auto; box-sizing: border-box; padding: clamp(24px, 4vw, 56px) var(--gutter) 0; }
  .kicker { font-size: 13px; letter-spacing: 0.16em; }
  .hero-title { margin: clamp(20px, 3vw, 40px) 0 0; font-size: clamp(50px, 12.6vw, 184px); line-height: 0.9; }
  .hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; margin-top: clamp(28px, 4vw, 52px); }
  .hero-lead { flex: 1 1 380px; max-width: 540px; margin: 0; font-size: clamp(17px, 1.5vw, 21px); }
  .hero-cta { flex-direction: row; flex-wrap: wrap; gap: 12px; margin-top: 0; }
  .hero-cta .btn { min-height: 60px; }
  .hero-cta .btn-cta { padding: 0 32px; }
  .hero-cta .btn-ghost { padding: 0 30px; }

  .filmwrap { padding: 36px 0; }
  .film-hero { margin-top: clamp(20px, 2.6vw, 38px); }
  .film-trailers { margin-top: clamp(0px, 0.8vw, 12px); }
  .film-tilt { transform: rotate(-2deg) scale(1.04); padding: 12px 0; }
  .sprockets { height: 12px; background-image: repeating-linear-gradient(90deg, var(--line) 0 18px, transparent 18px 42px); }
  .film { gap: 14px; padding: 12px 14px 12px 0; animation-duration: 90s; }
  .frame { width: clamp(240px, 26vw, 360px); }
  .film-sm .frame { width: clamp(210px, 21vw, 300px); }
  .frame-play { left: 14px; top: 14px; width: 58px; height: 58px; }
  .frame-play svg { width: 20px; height: 20px; margin-left: 3px; }
  .frame-play::before { border-width: 5px; }
  .film-sm .frame-play { left: 12px; top: 12px; width: 52px; height: 52px; }
  .film-sm .frame-play svg { width: 18px; height: 18px; }

  .sec { max-width: 1440px; margin: 0 auto; box-sizing: border-box; padding: clamp(54px, 5.4vw, 78px) var(--gutter) 0; }
  .sec-flush { max-width: none; padding-left: 0; padding-right: 0; }
  .sec-flush > .head { max-width: 1440px; margin: 0 auto; box-sizing: border-box; padding: 0 var(--gutter); }
  .sec-light { margin-top: clamp(54px, 5.4vw, 78px); }
  .sec-light-in { max-width: 1440px; margin: 0 auto; box-sizing: border-box; padding: clamp(48px, 5vw, 72px) var(--gutter); }
  .eyebrow { gap: 12px; font-size: 13px; }
  .eyebrow::before { width: 12px; height: 12px; }
  .h2 { font-size: clamp(34px, 5vw, 72px); line-height: 0.98; }
  .h2-balance { text-wrap: balance; }
  .br-wide { display: inline; }
  .head-text { font-size: inherit; }
  .head, .head-main { gap: 22px; }
  /* Studio: the label in a narrow column, the heading and text beside it. */
  .head-studio { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 20px 56px; }
  .head-studio .eyebrow { flex: 0 0 180px; padding-top: 14px; }
  .head-studio .head-body { flex: 1 1 560px; gap: 24px; }
  .head-studio .head-text { max-width: 620px; font-size: 18px; }
  /* Games, Trailers, Production: the heading on the left, a short text at the bottom right. */
  .head-split { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 56px; }
  .head-split .head-text { flex: 0 1 400px; }
  .head-games { gap: 24px 56px; }
  .head-games .head-main { flex: 1 1 520px; }

  .pillars { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 0 32px; margin-top: clamp(40px, 5vw, 64px); }
  .pillar { gap: 10px; padding: 26px 0; }
  .pillar-title { font-size: 26px; }
  .pillar-text { font-size: inherit; line-height: inherit; }

  .games-list { margin-top: clamp(32px, 4vw, 52px); }
  .row { flex-wrap: wrap; gap: 8px 24px; min-height: 60px; padding: 8px 12px; }
  .row-num { display: block; flex: 0 0 30px; font-size: 14px; font-weight: 600; color: var(--mist); font-variant-numeric: tabular-nums; }
  .row-thumb { flex: 0 0 44px; width: 44px; height: 44px; transition: transform .35s var(--ease); }
  .game-box[open] > .row .row-thumb { transform: scale(1.2); }
  .row-main { flex: 1 1 300px; min-width: auto; display: block; }
  .row-title { font-size: clamp(22px, 2.6vw, 34px); line-height: 1.05; }
  .row-meta { display: none; }
  .row-grid, .row-vol { display: block; flex: 0 1 150px; font-size: 15px; font-weight: 600; color: var(--mist); }
  .row-max { display: block; flex: 0 0 110px; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; text-align: right; }
  .row-plus { flex: 0 0 44px; width: 44px; height: 44px; }
  .row-plus svg { width: 16px; height: 16px; }
  .panel { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 28px 56px; padding: 12px 12px 40px; }
  .panel-art { flex: 0 1 380px; min-width: min(100%, 260px); border-radius: 22px; }
  .panel-body { flex: 1 1 360px; gap: 24px; }
  .panel-tagline { font-size: clamp(22px, 2.5vw, 34px); line-height: 1.12; text-wrap: balance; }
  .specs { grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); gap: 18px 24px; }
  .spec dd { font-size: inherit; }
  .panel-actions { flex-wrap: wrap; gap: 12px; }
  .panel-actions .btn { flex: 0 0 auto; }
  .panel-actions .btn-cta { gap: 10px; padding: 0 26px; }
  .panel-actions .btn-cta svg { width: 18px; height: 18px; }
  .panel-actions .btn-ghost { padding: 0 24px; }

  .stats { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 0 32px; margin-top: clamp(36px, 5vw, 60px); }
  .stat { gap: 6px; padding: 24px 0; }
  .stat-num { font-size: clamp(46px, 5.4vw, 78px); }
  .stat-label { font-size: inherit; line-height: inherit; }
  .chips { flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; overflow: visible; font-size: inherit; white-space: normal; }
  .chips-line { margin-top: clamp(28px, 4vw, 44px); }
  .chips-line .chip { padding: 0 20px; }
  .chips-solid .chip { padding: 0 18px; }

  .crypto { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 36px 72px; }
  .crypto > .head { flex: 1 1 380px; }
  .crypto .h2 { font-size: clamp(34px, 4.6vw, 66px); }
  .crypto .head-text { max-width: 440px; }
  .feats { flex: 1.5 1 520px; margin: 0; }
  .feat { display: flex; flex-wrap: wrap; gap: 6px 20px; min-height: 72px; }
  .feat-name { flex: 1 1 200px; font-size: 18px; }
  .feat-desc { flex: 2 1 260px; font-size: 15px; }
  .badge { flex: 0 0 96px; justify-content: center; min-height: 30px; padding: 0; font-size: 13px; }

  .tech { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 72px; }
  .tech > .head { order: 0; flex: 1 1 480px; }
  .proof { order: 0; flex: 1 1 420px; max-width: 580px; margin: 0; }
  .proof-row { flex-direction: row; flex-wrap: wrap; gap: 4px 20px; padding: 14px 0; }
  .proof-row dt { flex: 0 0 132px; padding-top: 3px; font-size: 13px; }
  .proof-row dd { flex: 1 1 240px; font-size: inherit; }
  /* The steps take a line of their own under the heading and the evidence; 28px of the gap above is the row gap. */
  .steps { order: 0; flex: 0 0 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: calc(clamp(36px, 5vw, 60px) - 28px); }
  .step { gap: 14px; }
  .step:last-child:nth-child(odd) { grid-column: auto; }
  .step-num { width: 72px; height: 72px; border-width: 6px; font-size: 22px; }
  .step-title { font-size: 26px; }
  .step-text { font-size: inherit; line-height: inherit; }

  .markets .h2 { max-width: 1100px; }
  .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 20px; margin-top: clamp(36px, 5vw, 60px); }
  .card { gap: 14px; padding: clamp(24px, 3vw, 40px); border-radius: 28px; }
  .card-kicker, .label { font-size: 13px; }
  .card-title { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.02; }
  .card-text { font-size: inherit; }
  .more { flex-direction: row; flex-wrap: wrap; gap: 28px 72px; margin-top: clamp(36px, 4vw, 56px); }
  .more-text { flex: 1 1 380px; gap: 14px; }
  .h3 { font-size: clamp(26px, 3vw, 40px); line-height: 1.02; }
  .more-text p { max-width: 460px; font-size: inherit; }
  .models { flex: 1.5 1 520px; gap: 14px; }

  .contact-card { gap: 28px; padding: clamp(28px, 3.4vw, 48px); border-radius: 36px; }
  .contact-title { max-width: 1060px; font-size: clamp(30px, 4.6vw, 66px); line-height: 1; text-wrap: balance; }
  .path { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 0 32px; font-size: 18px; }
  .path li { gap: 16px; min-height: 60px; }
  .contact-actions { flex-direction: row; flex-wrap: wrap; gap: 12px 24px; }
  .contact-actions .btn { width: auto; min-height: 60px; padding: 0 32px; }

  .ftr { max-width: 1440px; margin: 0 auto; box-sizing: border-box; padding: clamp(40px, 4vw, 56px) var(--gutter) 36px; }
  .lockup { font-size: clamp(80px, 22vw, 318px); }
  .ftr-bar { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; margin-top: clamp(32px, 4vw, 56px); padding-top: 24px; }
  .ftr-bar-first { margin-top: 0; }
  .ftr-tagline { font-size: 20px; line-height: inherit; }
  .ftr-nav { gap: 0 26px; }
  .ftr-legal { max-width: 900px; margin-top: 20px; font-size: 13px; line-height: inherit; }

  .doc-hdr .hdr-nav { gap: 0 30px; font-size: 15px; }
  .doc { padding: 40px var(--gutter) 0; }
  .lost { padding-left: var(--gutter); padding-right: var(--gutter); }
}

/* ---------- Between a tablet and a small laptop ----------
   The design was drawn at 1440px. Narrower than about 1100px its header and game rows would wrap onto a second line,
   and narrower than 1200px its four-column blocks would leave one item alone on a row. */
@media (min-width: 768px) {
  .row { flex-wrap: nowrap; }
  .row-main { min-width: 0; }
}
@media (min-width: 768px) and (max-width: 1099.98px) {
  :root { --bar: 97px; }
  .hdr { flex-wrap: nowrap; gap: 12px 20px; }
  .hdr-nav { flex-wrap: nowrap; gap: 0 clamp(10px, 1.6vw, 30px); font-size: clamp(13px, 1.55vw, 15px); white-space: nowrap; }
  .hdr-demos { display: none; }
  .row { gap: 8px 16px; }
  .row-vol { display: none; }
  .row-max { flex-basis: 90px; }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .pillars, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Pointers that can hover (a touch screen keeps :hover after a tap) ---------- */
@media (hover: hover) {
  .row:hover { background: var(--raise); }
  .frame img { transition: transform .8s var(--ease); }
  .frame:hover img { transform: scale(1.08); }
  .frame:hover .frame-play { transform: scale(1.14); background: var(--mint); color: var(--navy); }
  .frame:hover .frame-play::before { border-color: var(--navy); border-top-color: #FFFFFF; }
}
@media (hover: hover) and (min-width: 768px) {
  .lens { transition: transform .5s var(--ease); }
  .lens:hover { transform: scale(1.55); z-index: 2; }
  .row:hover .row-thumb { transform: scale(1.2); }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  .lens img, .film, .frame-play::before, .frame-play::after, .hop-o { animation: none; }
  .rise { transform: none; filter: none; opacity: 1; transition: none; }
}
