/* GameScene Studio showcase. One typeface: Goeist (SIL OFL, fonts/OFL.txt). */
@font-face {
  font-family: "Goeist";
  src: url("fonts/Goeist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Goeist";
  src: url("fonts/Goeist-Italic-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* Colours come from the app itself: its night-blue panels, the amber of its
   active buttons and the red of Record. */
:root {
  --bg: #10131c;
  --bg-2: #161a26;
  --surface: #1c2231;
  --raised: #252c3f;
  --line: #2e3750;
  --ink: #f1f3f8;
  --muted: #a4aec4;
  --accent: #f5bf42;
  --accent-hi: #ffd166;
  --accent-text: #f5bf42;
  --on-accent: #1b1403;
  --rec: #ef4f4f;
  --shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.75);
  --radius: 14px;
  --radius-s: 9px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 64px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f3ec;
    --bg-2: #ece9df;
    --surface: #ffffff;
    --raised: #f2efe6;
    --line: #d9d4c5;
    --ink: #151925;
    --muted: #525b70;
    --accent: #f5bf42;
    --accent-hi: #ffcf5c;
    --accent-text: #8a5a00;
    --shadow: 0 30px 60px -30px rgba(40, 34, 10, 0.4);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f5f3ec;
  --bg-2: #ece9df;
  --surface: #ffffff;
  --raised: #f2efe6;
  --line: #d9d4c5;
  --ink: #151925;
  --muted: #525b70;
  --accent: #f5bf42;
  --accent-hi: #ffcf5c;
  --accent-text: #8a5a00;
  --shadow: 0 30px 60px -30px rgba(40, 34, 10, 0.4);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Goeist", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 4.6vw, 4.1rem); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.2; }
p { text-wrap: pretty; }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.3rem); color: var(--muted); max-width: 34em; }
.muted { color: var(--muted); }
.kicker {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent-text); display: flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rec); }
.num { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: var(--radius-s); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 600; letter-spacing: -0.02em; font-size: 1.08rem; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: #171b28; border: 1px solid #2e3750; display: grid; place-items: center; flex: none; }
.brand-mark img { width: 20px; height: auto; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.96rem;
  padding: 9px 13px; border-radius: 8px; transition: color 0.16s, background 0.16s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 -2px 0 var(--accent); }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; transition: transform 0.14s, border-color 0.16s;
}
.icon-btn:hover { transform: translateY(-1px); border-color: var(--muted); }
.icon-btn:active { transform: translateY(1px); }
.icon-btn svg { width: 19px; height: 19px; }
.menu-btn { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px; border-radius: 11px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.98rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.14s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 2px 0 color-mix(in srgb, var(--accent) 55%, #000); }
.btn-primary:hover { background: var(--accent-hi); transform: translateY(-2px); box-shadow: 0 4px 0 color-mix(in srgb, var(--accent) 55%, #000); }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 0 0 transparent; }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--muted); transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(1px); }
.btn-small { min-height: 40px; padding: 0 15px; font-size: 0.93rem; }
.btn .rec { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link { color: var(--accent-text); font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; padding-bottom: 3px; transition: background-size 0.25s ease; }
.text-link:hover { background-size: 100% 2px; }
.text-link::after { content: " \2192"; }

/* -------------------------------------------------------------- sections */
main > section { padding: clamp(64px, 9vw, 112px) 0; }
.band { background: var(--bg-2); border-block: 1px solid var(--line); }
.head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4.5vw, 56px); max-width: 46rem; }

/* App screenshots: a plain frame, shown as they come out of the app. */
.shot {
  display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow); aspect-ratio: 16 / 9;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
a.shot:hover img { transform: scale(1.025); }

/* ------------------------------------------------------------------ hero */
.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.facts li {
  font-size: 0.88rem; font-weight: 500; color: var(--muted); padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
[data-enter] > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
[data-enter] > *:nth-child(2) { animation-delay: 0.07s; }
[data-enter] > *:nth-child(3) { animation-delay: 0.14s; }
[data-enter] > *:nth-child(4) { animation-delay: 0.21s; }
[data-enter] > *:nth-child(5) { animation-delay: 0.28s; }
.hero-shot { animation: rise 0.9s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); }
.page-hero .wrap { display: grid; gap: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips a {
  text-decoration: none; font-weight: 500; font-size: 0.93rem; padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: transform 0.14s, border-color 0.16s, background 0.16s;
}
.chips a:hover { transform: translateY(-2px); border-color: var(--accent-text); }
.chips a:active { transform: translateY(1px); }

/* ---------------------------------------------------------------- styles */
.looks { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 3.5vw, 48px); align-items: start; }
.look-tabs { display: grid; gap: 8px; }
.look-tabs button {
  text-align: left; background: transparent; border: 1px solid transparent; border-radius: var(--radius-s);
  padding: 14px 16px; cursor: pointer; display: grid; gap: 3px;
  transition: background 0.16s, border-color 0.16s, transform 0.14s;
}
.look-tabs button:hover { background: var(--surface); transform: translateX(3px); }
.look-tabs button:active { transform: translateX(1px); }
.look-tabs button[aria-selected="true"] { background: var(--surface); border-color: var(--line); box-shadow: inset 3px 0 0 var(--accent); }
.look-tabs strong { font-weight: 600; font-size: 1.08rem; letter-spacing: -0.01em; }
.look-tabs span { color: var(--muted); font-size: 0.93rem; line-height: 1.4; }
.look-stage { position: relative; }
.look-stage .shot[hidden] { display: none; }

/* ----------------------------------------------------------------- cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.card {
  display: grid; grid-template-rows: auto 1fr; text-decoration: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent-text) 60%, var(--line)); box-shadow: var(--shadow); }
.card:active { transform: translateY(0); }
.card-img { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { padding: 22px 24px 24px; display: grid; gap: 8px; align-content: start; }
.card-body p { color: var(--muted); font-size: 0.98rem; }

/* ----------------------------------------------------------------- split */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.split.flip > .split-copy { order: 2; }
.split.wide-first { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split-copy { display: grid; gap: 18px; align-content: center; }
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 22px; color: var(--muted); font-size: 0.99rem; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.ticks strong { color: var(--ink); font-weight: 600; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stack { display: grid; gap: 14px; }

/* ----------------------------------------------------------------- steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 28px; display: grid; gap: 10px; align-content: start; }
.steps li::before {
  content: counter(step); width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: 6px;
}
.steps p { color: var(--muted); font-size: 0.98rem; }

.walk { counter-reset: walk; }
.walk > section { counter-increment: walk; }
.walk .step-no { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent-text); }
.walk .step-no::after { content: " " counter(walk) " of 6"; }

/* ------------------------------------------------------------- fact grid */
.grid-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.grid-facts li { background: var(--surface); padding: 26px 24px; display: grid; gap: 6px; align-content: start; }
.grid-facts strong { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.015em; }
.grid-facts span { color: var(--muted); font-size: 0.95rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
th, td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-weight: 600; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--raised); }
td:first-child { font-weight: 600; width: 30%; }
td { color: var(--muted); }
td:first-child { color: var(--ink); }

/* ----------------------------------------------------------------- close */
.close .wrap { display: grid; gap: 26px; justify-items: start; }
.close h2 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.035em; max-width: 14em; }

.prose { max-width: 44rem; display: grid; gap: 16px; }
.prose h2 { font-size: 1.5rem; margin-top: 20px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }

/* ---------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 48px 0 36px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 2fr)); gap: 32px; }
.footer-grid p { color: var(--muted); max-width: 30em; margin-top: 14px; }
.footer .credits { color: var(--muted); }
.footer h3 { font-size: 0.82rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.footer ul { display: grid; gap: 4px; }
.footer li a { text-decoration: none; display: inline-block; padding: 5px 0; color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 90% / 0 1px no-repeat; transition: background-size 0.25s ease; }
.footer li a:hover { background-size: 100% 1px; }
.credits { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; }
.credits a { color: inherit; }

/* ------------------------------------------------------------ responsive */
@media (min-width: 1000px) and (min-height: 700px) {
  .hero { min-height: calc(100svh - var(--nav-h)); display: grid; align-items: center; }
  main > section.screen { min-height: 100svh; display: grid; align-items: center; }
}
@media (max-width: 999px) {
  .hero-grid, .looks, .split, .split.wide-first { grid-template-columns: minmax(0, 1fr); }
  .split.flip > .split-copy { order: 0; }
  .look-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .look-tabs span { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .grid-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-btn { display: grid; }
  .nav .wrap { gap: 12px; }
  .nav-tools { margin-left: auto; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 0 0; margin: 0; background: var(--bg); flex-direction: column; gap: 0;
    padding: 20px var(--gutter); display: none; overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.35rem; font-weight: 600; color: var(--ink); padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"] { background: none; box-shadow: none; color: var(--accent-text); }
  .cards, .pair { grid-template-columns: minmax(0, 1fr); }
  .btn-row .btn { width: 100%; }
  .footer li a { padding: 11px 0; }
}
@media (max-width: 480px) {
  .grid-facts { grid-template-columns: minmax(0, 1fr); }
  .look-tabs button { padding: 12px; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 760px) {
  .chips a, .look-tabs button { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ------------------------------------------------------------------- faq */
.faq { display: grid; gap: 10px; max-width: 56rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); transition: border-color 0.16s; }
.faq details:hover, .faq details[open] { border-color: color-mix(in srgb, var(--accent-text) 55%, var(--line)); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.08rem; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: rotate(45deg); transition: transform 0.2s ease; margin-right: 4px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); max-width: 46rem; }

/* -------------------------------------------------------------- lightbox */
a.shot { cursor: zoom-in; }
.lightbox {
  border: 0; padding: 0; margin: 0; background: transparent; color: #f1f3f8;
  width: 100vw; height: 100dvh; max-width: none; max-height: none; overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; animation: lb-in 0.18s ease both; }
.lightbox::backdrop { background: rgba(7, 9, 14, 0.9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: min(94vw, 1600px); max-height: calc(100dvh - 112px); width: auto; height: auto;
  border-radius: 12px; border: 1px solid #2e3750; box-shadow: 0 40px 80px -30px #000; background: #1c2231;
}
.lightbox button {
  position: fixed; width: 48px; height: 48px; border-radius: 12px; border: 1px solid #3a4460; background: #1c2231; color: #f1f3f8;
  display: grid; place-items: center; cursor: pointer; transition: transform 0.14s, background 0.16s, border-color 0.16s;
}
.lightbox button:hover { background: #252c3f; border-color: #a4aec4; transform: translateY(-1px); }
.lightbox button:active { transform: translateY(1px); }
.lightbox button:focus-visible { outline: 2px solid #f5bf42; outline-offset: 3px; }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; margin-top: -24px; }
.lightbox-next { right: 16px; top: 50%; margin-top: -24px; }
.lightbox-count { position: fixed; top: 28px; left: 24px; font-size: 0.9rem; font-weight: 500; color: #a4aec4; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .lightbox img { max-width: 100vw; border-radius: 0; border-inline: 0; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 16px; margin-top: 0; }
}
.lightbox button[hidden] { display: none; }
