/* Jamie Fall Studio — site.css
   Dark, cinematic, quiet. Artwork carries the color; the UI stays out of the way.
   Tokens first, then components in page order. */

:root {
  --ground: #050810;
  --ground-2: #070c18;
  --surface: #0b1121;
  --surface-2: #101831;
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f2f5fb;
  --muted: #a3adc2;
  --faint: #6f7a93;
  --accent: #5aa9ff;
  --accent-soft: rgba(90, 169, 255, 0.16);
  --strong: #ffffff;                              /* brightest text / active dot */
  --ink: 255, 255, 255;                           /* rgb of "ink" for translucent borders, pills, dots */
  --paper: 5, 8, 16;                              /* rgb of the page ground, for glassy bars */
  --header-bg: rgba(5, 8, 16, 0.7);
  --menu-bg: rgba(5, 8, 16, 0.96);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --shadow-big: 0 40px 90px rgba(0, 0, 0, 0.6);
  --btn-solid-bg: var(--text); --btn-solid-fg: var(--ground); --btn-solid-hover: #ffffff;
  --hero-veil: rgba(5, 8, 16, 0.55);
  --display: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --body: "Figtree", "Avenir", "Segoe UI", system-ui, sans-serif;
  --wrap: 1320px;
  --pad: clamp(20px, 4vw, 56px);
  --radius: 8px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

/* ---------- LIGHT THEME (Apple-ish) ----------
   Switched with `theme: 'light'` in src/data/site.js. Only colors change; layout is identical. */
:root[data-theme="light"] {
  --ground: #ffffff;
  --ground-2: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --line: rgba(0, 0, 0, 0.14);
  --line-soft: rgba(0, 0, 0, 0.08);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  --accent: #0071e3;
  --accent-soft: rgba(0, 113, 227, 0.12);
  --strong: #1d1d1f;
  --ink: 29, 29, 31;
  --paper: 255, 255, 255;
  --header-bg: rgba(255, 255, 255, 0.72);
  --menu-bg: rgba(255, 255, 255, 0.97);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  --shadow-big: 0 40px 90px rgba(0, 0, 0, 0.18);
  --btn-solid-bg: #1d1d1f; --btn-solid-fg: #ffffff; --btn-solid-hover: #000000;
  --hero-veil: rgba(255, 255, 255, 0.35);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--strong); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn-solid-bg); color: var(--btn-solid-fg); padding: 10px 14px; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
.img-missing { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--surface-2); color: var(--faint); font-size: 14px; border: 1px dashed var(--line); }

.eyebrow {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
.section__title {
  font-size: 15px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 14px;
  margin-bottom: 28px;
  position: relative;
}
.section__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 1px; background: var(--line); }
.section__title--sub { margin-top: 36px; font-size: 13px; }
.section__lead { color: var(--muted); max-width: 60ch; margin: -14px 0 32px; }
.section { padding-block: clamp(56px, 7vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.page-title { font-size: clamp(30px, 4.2vw, 54px); font-weight: 300; letter-spacing: 0.02em; max-width: 22ch; }
.page-lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 60ch; margin-top: 18px; }
.page-head { padding: clamp(96px, 12vw, 160px) 0 clamp(20px, 3vw, 40px); }
.page-head .eyebrow { margin-bottom: 18px; }
.page-head--games { padding-top: clamp(56px, 7vw, 96px); padding-bottom: 0; }
.section--games { padding-top: clamp(28px, 4vw, 48px); }
.prose p { color: var(--muted); max-width: 66ch; }
.prose p + p { margin-top: 1.1em; }
.prose h2, .prose h3 { font-size: 22px; font-weight: 400; margin: 2em 0 0.7em; }
.prose a { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 400; font-size: 15px; letter-spacing: 0.06em;
  padding: 13px 26px; border-radius: 999px; border: 1px solid var(--line);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn--outline { color: var(--text); }
.btn--outline:hover { border-color: rgba(var(--ink), 0.5); background: rgba(var(--ink), 0.04); transform: translateY(-1px); }
.btn--solid { background: var(--btn-solid-bg); color: var(--btn-solid-fg); border-color: var(--btn-solid-bg); }
.btn--solid:hover { background: var(--btn-solid-hover); color: var(--btn-solid-fg); transform: translateY(-1px); }
.btn--disabled { color: var(--faint); border-style: dashed; cursor: default; }
.btn--small { padding: 10px 18px; font-size: 13px; }
.btn--soldout { color: var(--faint); border-color: var(--line-soft); cursor: default; font-size: 12px; padding: 9px 14px; letter-spacing: 0.08em; }
.textlink { color: var(--accent); font-weight: 500; font-size: 15px; }
.textlink:hover { color: #8cc4ff; }

/* ---------- header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--header-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line-soft); }
.site-header--banner { position: absolute; left: 0; right: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; }
.site-header__bar { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); height: 72px; display: flex; align-items: center; gap: 24px; }
.brand { font-family: var(--display); font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; font-size: 14px; }
.site-header--banner .brand { opacity: 0; pointer-events: none; }       /* the banner shows the name */
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 6px; }
.site-nav a { display: block; padding: 10px 14px; font-family: var(--display); font-size: 13px; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(var(--ink), 0.78); border-bottom: 1px solid transparent; transition: color 0.2s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--strong); }
.site-nav a[aria-current="page"] { border-bottom-color: rgba(var(--ink), 0.5); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; position: relative; z-index: 60; }
.nav-toggle span { position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--strong); transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 26px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 0; z-index: 50; background: var(--menu-bg); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s; }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 8px; text-align: center; }
  .site-nav a { font-size: 20px; padding: 14px 24px; }
  .site-header__bar { height: 64px; }
}

/* ---------- featured game (full screen) ---------- */
/* Fills the screen edge to edge. Height = a 16:9 slice of the width, capped at the viewport, so 16:9 title art
   is never cropped on a normal monitor; very wide screens crop a little top/bottom. */
.feature { position: relative; height: min(calc(100svh - 72px), 56.25vw); min-height: 440px; background: var(--ground); overflow: hidden; }
.feature__track { position: absolute; inset: 0; }
.feature__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.9s var(--ease), visibility 0.9s; }
.feature__slide.is-active { opacity: 1; visibility: visible; }
.feature__stage { position: absolute; inset: 0; }
.feature__art { position: absolute; inset: 0; }
.feature__art picture { display: contents; }
.feature__art img, .feature__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; background: transparent !important; transition: opacity 1s var(--ease);
  --fade: 5%;   /* dark theme: light edge fade (videos); 0 in the light theme */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%), linear-gradient(180deg, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%), linear-gradient(180deg, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%); mask-composite: intersect; }
.feature__slide--wide .feature__art img { --fade: 10%; }
.feature__art img { object-fit: contain; }              /* title screens are always shown whole — never crop the title; the ground shows at the sides if the window is wider than 16:9 */
:root[data-theme="light"] .feature__art img, :root[data-theme="light"] .feature__video { --fade: 0%; -webkit-mask-image: none; mask-image: none; }
.feature__video { opacity: 0; }
.feature__video--contain { object-fit: contain; }       /* portrait / square captures are shown whole, not cropped */
.feature__slide.is-video .feature__video { opacity: 1; }
.feature__slide.is-video .feature__art img { opacity: 0; }
.gcard--square .gcard__art img, .game__icon img { background: transparent !important; }
.feature__link { position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-end; padding: clamp(20px, 4vw, 48px) clamp(20px, 4vw, 56px); }
.feature__label { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(var(--ink), 0.85); padding: 12px 18px 12px 22px; border: 1px solid rgba(var(--ink), 0.28); border-radius: 999px; background: rgba(var(--paper), 0.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background 0.3s, border-color 0.3s, color 0.3s; }
.feature__label svg { width: 16px; height: 16px; }
.feature__link:hover .feature__label, .feature__link:focus-visible .feature__label { background: rgba(var(--ink), 0.12); border-color: rgba(var(--ink), 0.6); color: var(--strong); }
.feature__link:focus-visible { outline: none; }
.feature__link:focus-visible .feature__label { outline: 2px solid var(--accent); outline-offset: 3px; }
.feature__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 60px; height: 60px; border-radius: 50%; border: 1px solid rgba(var(--ink), 0.25); background: rgba(var(--paper), 0.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; place-items: center; color: var(--strong); transition: background 0.25s, border-color 0.25s; }
.feature__arrow svg { width: 24px; height: 24px; }
.feature__arrow:hover { background: rgba(var(--ink), 0.14); border-color: rgba(var(--ink), 0.6); }
.feature__arrow--prev { left: clamp(14px, 3vw, 48px); }
.feature__arrow--next { right: clamp(14px, 3vw, 48px); }
.feature__dots { position: absolute; left: 0; right: 0; bottom: clamp(18px, 3vw, 34px); z-index: 4; display: flex; justify-content: center; gap: 12px; pointer-events: none; }
.feature__dots button { pointer-events: auto; width: 30px; height: 22px; position: relative; }
.feature__dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; border-radius: 2px; background: rgba(var(--ink), 0.3); transition: background 0.3s; }
.feature__dots button[aria-selected="true"]::before { background: var(--strong); }
.feature__dots button:hover::before { background: rgba(var(--ink), 0.7); }
@media (max-width: 820px) {
  .feature { height: min(calc(100svh - 64px), 72vw); min-height: 260px; }
  .feature__arrow { width: 44px; height: 44px; }
  .feature__arrow svg { width: 20px; height: 20px; }
  .feature__link { padding-bottom: 56px; }
  .feature__label { font-size: 11px; padding: 10px 14px 10px 18px; }
}

/* ---------- game cards (3 across, same family as tabletop cards) ---------- */
.gcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gcard { border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.gcard:hover { transform: translateY(-4px); border-color: rgba(var(--ink), 0.28); box-shadow: var(--shadow); }
.gcard__link { display: grid; grid-template-rows: auto 1fr; height: 100%; color: inherit; }
.gcard__art { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ground-2); }
.gcard__art picture, .gcard__art img { width: 100%; height: 100%; }
.gcard__art img { object-fit: cover; transition: transform 0.6s var(--ease); }
.gcard:hover .gcard__art img { transform: scale(1.03); }
.gcard--square .gcard__art { background: radial-gradient(70% 90% at 50% 50%, var(--surface-2), var(--ground-2) 75%); }
.gcard--square .gcard__art img { object-fit: contain; padding: 10px; }
.gcard__body { display: grid; gap: 8px; align-content: start; padding: 20px 22px 22px; }
.gcard__kind { font-family: var(--display); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--faint); }
.gcard__title { font-family: var(--display); font-size: 22px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
.gcard__text { color: var(--muted); font-size: 15px; }
.gcard__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-family: var(--display); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.gcard__more svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.gcard:hover .gcard__more svg { transform: translateX(4px); }
@media (max-width: 900px) { .gcards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gcards { grid-template-columns: 1fr; } }

/* ---------- tabletop cards ---------- */
.section--tabletop { border-top: 1px solid var(--line-soft); background: var(--ground-2); }
.tcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tcard { border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; background: var(--surface); display: grid; grid-template-rows: auto 1fr; transition: transform 0.35s var(--ease), border-color 0.35s var(--ease); }
.tcard:hover { transform: translateY(-3px); border-color: var(--line); }
.tcard__art { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.tcard__art picture { display: block; height: 100%; }
.tcard__art img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.6s var(--ease); }
.tcard:hover .tcard__art img { transform: scale(1.03); }
.tcard__body { padding: 20px 22px 22px; display: grid; gap: 8px; align-content: start; }
.tcard__kind { font-family: var(--display); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--faint); }
.tcard__title { font-size: 21px; }
.tcard__text { color: var(--muted); font-size: 15px; }
.tcard__links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 8px; }
@media (max-width: 900px) { .tcards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tcards { grid-template-columns: 1fr; } }

/* ---------- game page ---------- */
.game__hero { position: relative; background: var(--ground-2); }
.game__hero-art { position: relative; height: clamp(300px, 52vw, 720px); overflow: hidden; }
.game__hero-art picture, .game__hero-art img { width: 100%; height: 100%; }
.game__hero-art img { object-fit: cover; object-position: center 30%; }
.game__hero-art::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, var(--hero-veil) 0%, rgba(var(--paper), 0) 28%, rgba(var(--paper), 0) 45%, rgba(var(--paper), 0.85) 85%, var(--ground) 100%); }
.game__hero-copy { position: relative; z-index: 2; margin-top: clamp(-96px, -6vw, -40px); padding-bottom: clamp(24px, 3vw, 40px); display: grid; gap: 16px; justify-items: start; }
.game__title { font-size: clamp(40px, 6vw, 88px); font-weight: 300; letter-spacing: 0.12em; text-transform: uppercase; color: var(--strong); }
/* Light theme: no fade over the art (it only worked on black); the art keeps its top edge (the title) and
   the copy sits below it, with a smaller page title so it does not compete with the logo in the artwork. */
:root[data-theme="light"] .game__hero-art::before { background: none; }
:root[data-theme="light"] .game__hero-art { height: min(56.25vw, calc(100svh - 72px)); }
:root[data-theme="light"] .game__hero-art img { object-fit: contain; object-position: center; }   /* whole picture, never cropped */
/* the info card straddles the bottom edge of the art: part of it is on screen right away, so the page reads as scrollable */
:root[data-theme="light"] .game__hero-copywrap { position: relative; z-index: 2; margin-top: clamp(-120px, -7vw, -56px); padding-bottom: clamp(24px, 3vw, 40px); }
:root[data-theme="light"] .game__hero-copy { margin-top: 0; padding: clamp(24px, 3vw, 40px); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); width: fit-content; max-width: 720px; }
:root[data-theme="light"] .game__title { font-size: clamp(28px, 3.4vw, 52px); }
.game__summary { color: var(--muted); max-width: 56ch; font-size: clamp(16px, 1.4vw, 19px); }
.game__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.game__video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line-soft); }
.game__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game__video--portrait video { object-fit: contain; }
.game__video--portrait { background: radial-gradient(60% 90% at 50% 50%, var(--surface-2), var(--ground)); }
.game__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); }
.game__about p { color: var(--muted); max-width: 60ch; }
.game__about p + p { margin-top: 1em; }
.game__features ul { display: grid; gap: 10px; }
.game__features li { padding-left: 18px; position: relative; color: var(--muted); }
.game__features li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 6px; height: 1px; background: var(--accent); }
.shots { columns: 2; column-gap: 18px; }
.shots__item { break-inside: avoid; margin-bottom: 18px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); background: var(--surface); }
@media (max-width: 900px) {
  .game__grid { grid-template-columns: 1fr; }
  .game__hero-art { height: clamp(240px, 60vw, 480px); }
  .game__hero-copy { margin-top: -24px; }
  :root[data-theme="light"] .game__hero-art { height: 56.25vw; }
  :root[data-theme="light"] .game__hero-copywrap { margin-top: -28px; }
  :root[data-theme="light"] .game__hero-copy { padding: 22px; max-width: none; }
}
@media (max-width: 600px) { .shots { columns: 1; } }

/* get-the-game block */
.game__cta { background: var(--ground-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.game__cta-inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.game__cta-icon { width: clamp(120px, 16vw, 200px); border-radius: 22%; overflow: hidden; box-shadow: var(--shadow), 0 0 0 1px var(--line-soft); }
.game__cta-icon { aspect-ratio: 1; }
.game__cta-icon img { width: 100%; height: 100%; object-fit: cover; background: transparent !important; }
.game__cta-copy { display: grid; gap: 14px; justify-items: start; }
.game__cta-title { font-size: clamp(30px, 4vw, 52px); font-weight: 300; letter-spacing: 0.1em; text-transform: uppercase; }
.game__cta-text { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); }
.game__buttons--big .btn { font-size: 16px; padding: 16px 30px; }
.game__buttons--big .btn svg { width: 20px; height: 20px; }
@media (max-width: 600px) { .game__cta-inner { grid-template-columns: 1fr; } .game__cta-icon { width: 120px; } }

/* square key art (app icon) gets a two-column hero instead of a full-bleed image */
.game__hero--square { background: radial-gradient(70% 80% at 70% 40%, var(--surface-2), var(--ground-2) 70%); }
.game__hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(40px, 6vw, 80px); }
.game__hero--square .game__hero-copy { margin-top: 0; padding-bottom: 0; }
.game__icon { width: min(100%, 460px); justify-self: end; border-radius: 22%; overflow: hidden; box-shadow: var(--shadow-big), 0 0 0 1px var(--line-soft); }
@media (max-width: 900px) {
  .game__hero-grid { grid-template-columns: 1fr; padding-top: 32px; }
  .game__icon { order: -1; width: min(70%, 320px); justify-self: center; }
  .game__hero--square .game__hero-copy { justify-items: center; text-align: center; }
  .game__hero--square .game__buttons { justify-content: center; }
}

/* ---------- studio: about ---------- */
.about { display: grid; grid-template-columns: minmax(260px, 2fr) 3fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.about__portrait { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); position: sticky; top: 96px; }
.about__facts { display: grid; border-top: 1px solid var(--line-soft); margin: 36px 0 0; max-width: 66ch; }
.about__facts div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.about__facts dt { font-family: var(--display); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); margin: 0; padding-top: 3px; }
.about__facts dd { margin: 0; color: var(--text); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .about__portrait { position: static; max-width: 520px; } }
.page-head--studio { padding-top: clamp(18px, 2.2vw, 32px); padding-bottom: 6px; }
.page-head--studio .page-title { font-size: clamp(28px, 3vw, 40px); }
.page-head--studio .eyebrow { margin-bottom: 6px; }
.section--about { padding-top: 4px; padding-bottom: clamp(32px, 4vw, 56px); }
.section--about .about { grid-template-columns: minmax(240px, 1.6fr) 3fr; }
.section--about .prose p { font-size: 16px; line-height: 1.55; }
/* Follow the Journey: sits right under the about text so it is on screen without scrolling */
.follow { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); max-width: 66ch; }
.follow__title { font-size: clamp(22px, 2.2vw, 28px); font-weight: 400; letter-spacing: 0.01em; }
.follow__text { color: var(--muted); margin-top: 8px; font-size: 16px; line-height: 1.55; }
.follow__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn--follow, .prose .btn--follow { padding: 12px 20px 12px 16px; gap: 9px; color: var(--text); border-color: var(--line); background: var(--surface); }
.btn--follow svg { width: 20px; height: 20px; color: var(--muted); transition: color 0.25s; }
.btn--follow:hover { border-color: rgba(var(--ink), 0.6); background: var(--surface); transform: translateY(-1px); }
.btn--follow:hover svg { color: var(--text); }

/* ---------- studio: follow the journey ---------- */
.journey { border-top: 1px solid var(--line-soft); background: var(--ground-2); }
.journey__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.journey__head .eyebrow { margin-bottom: 14px; color: var(--accent); }
.journey__head .page-title { font-size: clamp(24px, 3vw, 38px); max-width: 26ch; }
.journey__social { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- community ---------- */
.page-head--community { padding-top: clamp(18px, 2.2vw, 32px); padding-bottom: 6px; }
.page-head--community .page-title { font-size: clamp(28px, 3vw, 40px); max-width: 40ch; }
.page-head--community .eyebrow { margin-bottom: 6px; }
.section--community { padding-top: 8px; padding-bottom: 14px; }
.community { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.community__intro p { font-size: clamp(17px, 1.4vw, 19px); max-width: 60ch; }
.community__lead { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.community__lead li { border-radius: 6px; overflow: hidden; background: var(--surface); }
.community__lead img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.section--gallery { padding-top: 0; }
@media (max-width: 900px) { .community { grid-template-columns: 1fr; } }
.events { display: grid; gap: 14px; }
.event { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px 22px; background: var(--surface); display: grid; gap: 6px; }
.event__date { font-family: var(--display); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.event--past .event__date { color: var(--faint); }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin-bottom: 40px; }
.story__image { border-radius: var(--radius); overflow: hidden; }
.gallery { columns: 3; column-gap: 14px; }
.gallery li { break-inside: avoid; margin-bottom: 14px; border-radius: 6px; overflow: hidden; background: var(--surface); }
.gallery img { transition: transform 0.6s var(--ease); }
.gallery li:hover img { transform: scale(1.02); }
@media (max-width: 900px) { .gallery { columns: 2; } .story { grid-template-columns: 1fr; } }

/* ---------- journal ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter { font-family: var(--display); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-soft); color: var(--muted); transition: all 0.25s; }
.filter:hover { color: var(--strong); border-color: var(--line); }
.filter.is-active { color: var(--btn-solid-fg); background: var(--btn-solid-bg); border-color: var(--btn-solid-bg); }
.entries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.entry { border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: transform 0.35s var(--ease), border-color 0.35s; }
.entry:hover { transform: translateY(-3px); border-color: var(--line); }
.entry.is-hidden { display: none; }
.entry__image { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); }
.entry__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.entry:hover .entry__image img { transform: scale(1.03); }
.entry__body { padding: 20px 22px 24px; display: grid; gap: 10px; }
.entry__meta { font-family: var(--display); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.entry__cat { color: var(--accent); }
.entry__title { font-size: 21px; }
.entry__preview { color: var(--muted); font-size: 15px; }
.tag { display: inline-block; font-size: 10px; letter-spacing: 0.16em; padding: 3px 8px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); }
.tag--example { border-color: rgba(246, 196, 83, 0.5); color: #f0cf7a; }
.empty { color: var(--muted); }
.post__head { padding-top: clamp(96px, 12vw, 160px); padding-bottom: 32px; display: grid; gap: 16px; }
.post__hero { max-width: 1000px; margin: 0 auto; padding-inline: var(--pad); }
.post__hero img { border-radius: var(--radius); }
.post__body { padding-top: 40px; padding-bottom: 40px; max-width: calc(66ch + var(--pad) * 2); }
.post__nav { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line-soft); max-width: 1000px; }
.post__nav a { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.post__nav a:hover { color: var(--strong); }
.post__nav svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 900px) { .entries { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .entries { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--display); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-soft); border-radius: 6px; padding: 12px 14px; transition: border-color 0.2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(var(--ink), 0.5); }
.field textarea { resize: vertical; min-height: 140px; }
.field--submit { justify-items: start; }
.contact__note { color: var(--faint); font-size: 14px; }
.contact__aside p { color: var(--muted); }
.contact__social { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.contact__social a { color: var(--accent); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding: clamp(40px, 5vw, 64px) 0 40px; color: var(--faint); font-size: 14px; background: var(--ground-2); }
.site-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; align-items: start; }
.brand--footer { color: var(--text); }
.site-footer__tag { font-family: var(--display); letter-spacing: 0.3em; text-transform: uppercase; font-size: 11px; margin-top: 8px; }
.site-footer__links, .site-footer__social { display: grid; gap: 8px; }
.site-footer__links a, .site-footer__social a { color: var(--muted); font-family: var(--display); letter-spacing: 0.16em; text-transform: uppercase; font-size: 12px; }
.site-footer__links a:hover, .site-footer__social a:hover { color: var(--strong); }
.site-footer__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
@media (max-width: 700px) { .site-footer__top { grid-template-columns: 1fr; } }

/* ---------- reveal on scroll (JS adds .js) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
