/* Black Meridian — home page v4.1 (2026-11-04).
   Hero (a8) → Statement → Games (all eight at once, a wall of pictures) → Values (three living figures) → Studio → Contact
   (the circle comes back as a lit sphere) → a full footer. The meridian runs from the hero down to the games and lies
   down as their horizon; below that the page uses its full width.
   Dark (Night Ember) is the default, cream is the option. Type: Manrope throughout (light and tight for display,
   regular for reading, semibold spaced caps for labels and the nav), IBM Plex Mono for metadata. */

/* ---------- Tokens ---------- */
:root {
  --bg: #0E0D0C; --surface: #171513; --ink: #ECE6DC; --ink-2: #B0A89C;
  --line: rgba(236,230,220,.10); --line-2: rgba(236,230,220,.22); --shadow: rgba(0,0,0,.5);
  --accent: #EA5A2C; --on-accent: #120F0C; --accent-text: #EA5A2C;
  --c0: #FFE9C2; --c1: #FFB25A; --c2: #E5552D; --c3: #7A2306;   /* the circle, centre to edge */
  --font-display: "Manrope", system-ui, sans-serif;
  --display-weight: 500; --display-tracking: .02em;   /* C+ (2026-11-06): medium and open, it breathes like the old wide voice */
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --side: 48px;
  --gap-axis: 48px;    /* text ↔ the meridian */
  /* The rhythm: every vertical space on the page is one of these seven steps, and each step has one job.
     s7 between sections (and between a section and the footer) · s6 a headline to what it introduces · s5 between blocks inside a section
     s4 a block to its small print · s3 a label to its headline · s2 a picture to its caption · s1 inside a caption */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 104px; --s7: clamp(128px, 10vw, 160px); --s8: 272px;   /* s7 between sections (top only), s8 the one long pause before Games */
  /* Motion: every duration and curve on the site is one of these (the approved scenes, hero beat, strip, eyes, keep
     their own physics). t-instant a label's colour · t-quick a fill, a fade out · t-base a rule, a crossfade, the nav
     brand · t-move travel from A to B · t-reveal entrances on scroll · t-lean a picture leaning in · t-wave a fill's
     sweep across a button. e-out is the default; e-in only for exits; e-travel only for things that travel A to B;
     e-hand for drawing. stagger between items (at most 4 steps), rise the entrance distance. */
  --t-instant: 120ms; --t-quick: 200ms; --t-base: 320ms; --t-move: 560ms; --t-reveal: 900ms; --t-lean: 1200ms; --t-wave: 300ms; --t-rib-btn: 420ms;
  --e-out: cubic-bezier(.2, .7, .2, 1); --e-lock: cubic-bezier(.34, 1.45, .5, 1); --t-rib: 760ms; --t-sign: 1500ms; --t-pic: 950ms; --pic-step: 26ms; --rib-step: 14ms; --e-in: cubic-bezier(.5, 0, .75, 0); --e-travel: cubic-bezier(.7, 0, .2, 1); --e-hand: cubic-bezier(.45, .05, .35, 1);
  --stagger: 70ms; --rise: 32px;

  --fs-display: clamp(60px, 7.4vw, 119px);    /* Say hello., big game titles */
  --fs-h1: clamp(48px, 5.6vw, 92px);        /* the statement */
  --fs-title: clamp(30px, 3vw, 46px);       /* compact game titles */
  --fs-h2: clamp(30px, 3vw, 44px);          /* game page next, people */
  --fs-letter: clamp(24px, 2.1vw, 32px);
  --fs-lead: clamp(18px, 1.45vw, 21px);
  --fs-stand: clamp(20px, 1.75vw, 27px);      /* a standfirst: the line that answers a headline (stories, Games, a game's hook) */
  --fs-body: 17px;
  --fs-ui: 15px;
  --fs-label: 12.5px; --tr-label: .06em;
  --fs-small: 13px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #EFE8DA; --surface: #F6F1E6; --ink: #1B1712; --ink-2: #544A3E;
  --line: rgba(27,23,18,.18); --line-2: rgba(27,23,18,.30); --shadow: rgba(60,40,20,.22);
  --accent: #D94E1C; --on-accent: #120F0C; --accent-text: #C04417;   /* light: the ember itself (fills, rules, large words: 3.4:1, a dark label on it 4.6:1); small ember text keeps a deeper tone (4.6:1) */
  --c0: #FF9A4A; --c1: #EC5E1A; --c2: #B53A0C; --c3: #6E2006;
  color-scheme: light;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; } .lenis.lenis-smooth { scroll-behavior: auto !important; } .lenis.lenis-stopped { overflow: hidden; }   /* smooth.js */
body { background: var(--bg); font-family: var(--font-sans); font-size: var(--fs-body); line-height: 1.55; overflow-x: clip; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
section, header, footer { position: relative; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.mono { font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 400; line-height: 1.4; letter-spacing: var(--tr-label); text-transform: uppercase; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 8px 12px; }
.skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } :root { --t-quick: 0ms; --t-base: 0ms; --t-move: 0ms; --t-reveal: 0ms; --t-lean: 0ms; --t-wave: 0ms; --t-rib-btn: 0ms; --stagger: 0ms; --rise: 0px; } }
.display { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); }

/* ---------- Buttons and links ---------- */
/* One button: a mono label in a slim ember bar. On hover the fill comes in as the hero's ribs do: thin flutes snap
   in left to right, alternately from above and below (nav.js cuts them to the button's width), and the label turns
   dark; the ghost button is a hairline frame whose flutes are ember. Without nav.js the old wipe still works. */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 26px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1;   /* one label for every button, big or small: 13px, 600 */
  border-radius: 0; text-decoration: none; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); cursor: pointer; white-space: nowrap;
  transition: color var(--t-quick) var(--e-out), border-color var(--t-quick) var(--e-out); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleX(0); transform-origin: right center; transition: transform var(--t-base) var(--e-out); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.btn:hover, .btn:focus-visible { color: var(--bg); border-color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost::before { background: var(--accent); }
.btn.ghost:hover, .btn.ghost:focus-visible { color: var(--on-accent); border-color: var(--accent); }
.btn.ribbed::before { display: none; }
.btn .ribs { position: absolute; inset: 0; z-index: -1; display: flex; pointer-events: none; }
.btn .ribs i { flex: 1 1 0; background: var(--ink); box-shadow: 1px 0 0 currentColor; color: var(--ink); transform: scaleY(0); transform-origin: 50% 0; transition: transform var(--t-rib-btn) var(--e-out) calc(var(--i) / var(--n, 12) * var(--t-wave)); }   /* the button's ribs: a wave you can see (about 0.7 s across) */
.btn .ribs i:nth-child(even) { transform-origin: 50% 100%; }
.btn.ghost .ribs i { background: var(--accent); color: var(--accent); }   /* each rib reaches 1px over its neighbour (the shadow, in its own colour): no hairline seam where two fractional-width ribs meet */
.btn.ribbed:hover .ribs i, .btn.ribbed:focus-visible .ribs i { transform: scaleY(1.02); }
.btn.ribbed { transition: color var(--t-quick) linear 220ms, border-color var(--t-base) var(--e-out); }   /* the label turns as the ribs cover half the button */

/* ---------- No hanging words, at any width: headings, hooks and short lines balance; running text wraps "pretty" ---------- */
h1, h2, h3, .hook, .gp-hook, .post b, .gp-tile b, .gp-updates b, .statement p, .head p, .shead p, .cap h3, .gp-feat b, .gp-cards b, .gp-steps b, .faq summary,
.gp-get b, .gp-steps p, .gp-cards p, .gp-feat p { text-wrap: balance; }
.studio figcaption .mono, .gp-tile b { white-space: nowrap; }           /* a role, a game's name: one unit */
.gp-hl h2.long { font-size: clamp(56px, 6vw, 100px); }                  /* three-word names stay on one line */
p, li, dd, figcaption, blockquote { text-wrap: pretty; }

/* ---------- Dividers: only between the items of a list, never above the first or under the last ---------- */
.gp-facts > div + div, .gp-feat + .gp-feat, .gp-updates a + a, .faq details + details { border-top: 1px solid var(--line); }

/* ---------- One hover system: three kinds of things you can click, one behaviour each ----------
   1. Buttons (.btn): the ribbed fill, above.
   2. Text links (nav, footer, the address, All news, Back, links in text, card and tile titles): the words keep
      their colour (muted ones rise to ink) and a 2px ember rule draws under them from the left.
   3. Cards and tiles (games, apps, posts, the game page's neighbours and updates): the picture leans in (1.04) and the
      title takes the text-link rule. Nothing changes colour, no borders light up.
   Icon controls (the trailer's ×, the theme disc) get a hairline ember ring. */
/* the rule is drawn on an inline span around the words (.ul, wrapped by nav.js; the titles' own spans), never on the
   link's box, and it keeps one optical gap at every size: 3px under the descenders (Manrope's g j p y reach .255em
   under the baseline; the span's box ends at .30em, the padding adds the gap and the rule, the position takes back
   the .045em), so the menu, the footer, the titles and the large address all read the same */
.ul, .post b span, .gp-tile b span, .gp-updates b span, .faq details a, .gp-text a, .gp-facts a, .page-post .body a:not(.btn) {
  --ul-gap: 3px; padding-bottom: calc(var(--ul-gap) + 2px); -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(var(--accent), var(--accent)) 0 calc(100% - .045em) / 0 2px no-repeat; transition: background-size var(--t-base) var(--e-out); }
.nav ul a, .site-foot a:not(.name), .news .more, .contact .mail, .back, .page-post .next b, .faq summary .q { transition: color var(--t-quick) var(--e-out); }
:is(.nav ul a, .site-foot a:not(.name), .news .more, .contact .mail, .back, .page-post .next, .faq summary):is(:hover, :focus-visible) .ul,
.game:hover .cap .ul, .cap h3 .open:focus-visible .ul, :is(.post, .gp-tile, .gp-updates a):is(:hover, :focus-visible) b span,
.faq details a:hover, .gp-text a:hover, .gp-facts a:is(:hover, :focus-visible), .page-post .body a:not(.btn):is(:hover, :focus-visible) { background-size: 100% 2px; }
/* a link inside running text: only the site's own rule, never the browser's underline as well. At rest a hairline in the
   text's dim ink marks it as a link (it must read as one without a hover); the ember rule draws over it on hover */
:is(.faq details, .gp-text, .gp-facts, .page-post .body) a:not(.btn) { text-decoration: none; color: inherit; }   /* a button inside the text keeps its own colours */
:is(.faq details p, .gp-text, .page-post .body p) a:not(.btn) { background-image: linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--ink-2), var(--ink-2));
  background-position: 0 calc(100% - .045em), 0 calc(100% - .045em - .5px); background-size: 0 2px, 100% 1px; background-repeat: no-repeat; }
:is(.faq details p, .gp-text, .page-post .body p) a:not(.btn):is(:hover, :focus-visible) { background-size: 100% 2px, 100% 1px; }
:is(.nav ul a, .site-foot a:not(.name), .news .more, .contact .mail, .back, .page-post .next b, .faq summary .q, .cap h3 .open):is(:hover, :focus-visible),
.page-post .next:is(:hover, :focus-visible) b, .faq summary:is(:hover, :focus-visible) .q { color: var(--ink); outline: none; }
.gp-tile .pic img { transition: scale var(--t-lean) var(--e-out); }
.gp-tile:hover .pic img { scale: 1.04; }
/* ---------- Section labels: one kind everywhere (over a statement, on the game page, over a footer column) ----------
   The nav's voice one step up: Manrope 15px caps, weight 700, letter-spaced, ember. Under the
   headline, over the metadata (dates, stamps, which stay mono). */
.head > .mono, .shead > .mono, .gp-label, .site-foot .cols .mono {
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .24em; line-height: 1.2; text-transform: uppercase; color: var(--accent-text); }
/* icon controls */
.tv .close { transition: box-shadow var(--t-base) var(--e-out); }
.tv .close:hover, .tv .close:focus-visible { box-shadow: 0 0 0 1px var(--accent); outline: none; }

/* ---------- Nav ---------- */
/* Smart-sticky (nav.js): at the top it sits on the page; scrolling down it slides away, scrolling up it comes back
   on a blurred bar of the page colour */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: var(--s3) var(--side);
  border-bottom: 1px solid transparent; transition: transform var(--t-move) var(--e-out), background-color var(--t-base) var(--e-out), border-color var(--t-base) var(--e-out), padding var(--t-base) var(--e-out); }
/* away from the top the bar is a strip of the hero's fluted glass: blurred page behind, 16px flutes (the hero's rib
   width) each lit on one edge and shaded on the other, an ember hairline that fades out at both ends */
.nav.away { padding-top: var(--s2); padding-bottom: var(--s2); border-bottom-color: transparent; }
.nav::before, .nav::after { content: ""; position: absolute; pointer-events: none; opacity: 0; transition: opacity var(--t-base) var(--e-out); }
.nav::before { inset: 0; z-index: -1;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0, rgba(255,255,255,0) 5px, rgba(0,0,0,0) 10px, rgba(0,0,0,.16) 15px, rgba(255,255,255,.10) 16px),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 52%, transparent), color-mix(in srgb, var(--bg) 74%, transparent));
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); }
[data-theme="light"] .nav::before { background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.45) 0, rgba(255,255,255,0) 5px, rgba(0,0,0,0) 10px, rgba(60,40,20,.07) 15px, rgba(255,255,255,.5) 16px),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 50%, transparent), color-mix(in srgb, var(--bg) 72%, transparent)); }
.nav::after { left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent) 70%, transparent); opacity: 0; }
.nav.away::before { opacity: 1; }
.nav.away::after { opacity: .55; }
.nav.hide { transform: translateY(-100%); }
/* the mark (Torfin's mask, BR-7 bi) spans the wordmark and the line under it; each theme gets its own drawing */
.nav .brand { display: flex; align-items: center; gap: var(--s2); color: var(--ink); text-decoration: none; }
.nav .brand .mark { display: block; width: 46px; height: 46px; }   /* the Half mark (for now): centred in its box */
.nav .brand .mk-l, [data-theme="light"] .nav .brand .mk-d { display: none; }
[data-theme="light"] .nav .brand .mk-l { display: block; }
.nav .brand .bm { display: flex; flex-direction: column; gap: 7px; }
.nav .brand svg { display: block; width: 240px; height: auto; }   /* the name leads; the descriptor stays small under it */
/* on the landing, at the very top (where the hero's own BLACK MERIDIAN is), the nav shows the mark and the descriptor only;
   the name comes in as soon as the bar is away from the top (and is always there on the inner pages) */
:root:has(#track) .nav:not(.away) .brand .bm { opacity: 0; translate: 0 -6px; }
:root:has(#track) .nav.away .brand .solo { opacity: 0; translate: 0 6px; }
/* both states are always laid out (no reflow): the name and its line, and the lone line, crossfade in t-base */
.nav .brand { position: relative; }
.nav .brand .bm, .nav .brand .solo { transition: opacity var(--t-base) var(--e-out), translate var(--t-base) var(--e-out); }
.nav .brand .solo { display: none; }
:root:has(#track) .nav .brand .solo { display: block; position: absolute; left: calc(46px + var(--s2)); top: 50%; margin-top: -.5em; font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .30em; text-transform: uppercase; line-height: 1; color: var(--ink); white-space: nowrap; }
/* the descriptor in the site's caps voice (Manrope, letter-spaced), centred under the name; the trailing letter-space
   is taken back so the centre is true */
/* The lockup, one rule in the nav and the footer: the name leads; the descriptor is its caption: about half the name's
   cap height, a lighter weight, centred under the name and shorter than it (never a second line of equal width) */
.nav .brand .desc { align-self: center; margin-right: -.5em; font-family: var(--font-display); font-weight: 500; font-size: 9px; letter-spacing: .5em; text-transform: uppercase; line-height: 1; color: var(--ink-2); white-space: nowrap; }
/* the links speak the descriptor's language: Manrope semibold, small caps, letter-spaced */
.nav ul { display: flex; gap: var(--s4); list-style: none; }
.nav ul a { position: relative; display: inline-block; padding: var(--s1) 0 var(--s1); font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .30em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: var(--s4); }
/* the theme switch: a half-filled disc that turns half a turn with the theme */
.theme { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -12px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; transition: color var(--t-quick) var(--e-out); }
.theme svg { width: 18px; height: 18px; transition: transform var(--t-move) var(--e-travel); }
.theme svg circle { fill: none; stroke: currentColor; stroke-width: 1.2; }
.theme svg path { fill: currentColor; }
[data-theme="light"] .theme svg { transform: rotate(180deg); }
/* hover: a hairline ring, as for every icon control */
.theme { border-radius: 50%; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow var(--t-base) var(--e-out); }
.theme:hover, .theme:focus-visible { box-shadow: inset 0 0 0 1px var(--accent); outline: none; }

/* ---------- Hero (hero.js, concept a8 "Living glass") ----------
   hero.js sets --mx (the meridian), --wm-x/-top/-w/-h, --wm-cy, --sub-top and --r on :root. */
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; pointer-events: none; }
.track { position: relative; height: 120svh; z-index: 2; }
.hero8 { position: sticky; top: 0; height: 100svh; min-height: 640px; overflow: hidden; }
.hero8 .wm { position: absolute; z-index: 3; left: var(--wm-x, 16px); top: var(--wm-top, 38%); width: var(--wm-w, 90vw); height: var(--wm-h, 60px); color: var(--ink); pointer-events: none; }
.hero8 .wm > svg { display: none; }
.hero8 .wm .strip { position: absolute; top: 0; height: 100%; clip-path: inset(-12px 0 -12px 0); transform-origin: 0 50%; will-change: transform, opacity; }
.hero8 .wm .strip svg { position: absolute; top: 0; height: 100%; width: auto; overflow: visible; }
/* Who we are, in one block under MERIDIAN, read top to bottom: what we do, where to go */
.hero8 .sub { position: absolute; left: calc(var(--mx, 40%) + var(--gap-axis)); top: var(--sub-top, 64%); z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hero8 .say { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.hero8 h1 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(22px, 1.9vw, 30px); line-height: 1.25; max-width: 18em; color: var(--ink); text-wrap: balance; }
.js-arrive .hero8 .sub { opacity: 0; animation: bm-show 0s 2.5s forwards; }   /* if hero.js never runs, the CTA still shows */
@keyframes bm-show { to { opacity: 1; } }
.tagline { display: block; color: var(--ink); letter-spacing: .24em; }
.hero-still .track { height: auto; }
.hero-still .hero8 { position: relative; }
.hero-still #gl { position: absolute; height: 100%; }
.hero-nogl #gl { display: none; }
.hero-nogl .track { height: auto; }
.hero-nogl .hero8 { position: relative; }
.hero-nogl .hero8::before { content: ""; position: absolute; z-index: 1; width: calc(2 * var(--r)); height: calc(2 * var(--r)); left: calc(var(--mx) - var(--r)); top: calc(var(--wm-cy) - var(--r)); border-radius: 50%;
  background: radial-gradient(circle, var(--c0), var(--c1) 22%, var(--c2) 60%, var(--c3) 96%, transparent 100%); }
.hero-nogl .hero8 .sub { opacity: 1 !important; visibility: visible !important; transform: none !important; }

/* ---------- Statement: written by the hero; large on the left, its line beside it on the right ---------- */
.statement .col { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s5); align-items: end; }
/* its line in two lines (…is a place / you'll want to come back to.) wherever it fits beside the phrase; narrower, it wraps on its own */
.statement p .lb { display: none; }
@media (min-width: 1280px) { .statement .col { column-gap: var(--s4); } .statement .col > p { max-width: none; white-space: nowrap; } .statement p .lb { display: inline; } }
.statement { padding-top: 0; }
.statement { --st-fs: clamp(80px, 9.3vw, 160px); }
.statement h2 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: var(--st-fs); line-height: .96; white-space: nowrap; }
.statement h2 em { font-style: normal; color: var(--accent); }
.statement p { justify-self: start; max-width: 15em; padding-bottom: .45em; font-family: var(--font-display); font-weight: 500; font-size: var(--fs-stand); line-height: 1.32; color: var(--ink); }   /* beside the phrase's foot, a step away (s5), not pushed to the page's edge: on a wide screen it stays with the words; the standfirst size like every other */
/* With the WebGL hero (.hero-live): the section overlaps the end of the hero's pin, so the falling lines write the
   phrase where it stands; then this DOM text fades in on top (--hand, --hand2) and the line here takes over (--line-on). */
/* its two lines sit centred in that screen; the margin pulls what follows up to the words' foot */
.hero-live .statement { margin-top: -100svh; margin-bottom: calc((var(--st-fs) * 1.92 - 100svh) / 2); min-height: 100svh; display: grid; align-content: center; pointer-events: none; }
.hero-live .statement.hand-on { pointer-events: auto; }
/* main is pulled up over the hero by that overlap: let the pointer through to the hero (its button) except on real content */
.hero-live main { pointer-events: none; }
.hero-live main > * { pointer-events: auto; }
.hero-live .statement h2 { opacity: var(--hand, 0); }
.hero-live .statement p { opacity: var(--hand2, 0); }
.statement:not(.hero-live *) { padding: var(--s7) var(--side) 0; }


/* ---------- The page frame ---------- */
main { position: relative; z-index: 2; }
main > section { padding: 0 var(--side); }
/* A section head: a mono label, a title in the light, wide voice, one line under it */
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s5); align-items: end; margin-bottom: var(--s6); }
.head .mono { grid-column: 1 / -1; margin-bottom: var(--s3); }
.head h2 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: var(--fs-display); line-height: .98; }
.head p { justify-self: end; max-width: 20em; font-family: var(--font-display); font-weight: 500; font-size: var(--fs-stand); line-height: 1.32; color: var(--ink); padding-bottom: .4em; text-wrap: balance; }
.head:not(:has(p)) h2 { grid-column: 1 / -1; }

/* ---------- Games (after Mersi): a strip of eight small covers under the headline that grows into a 3 · 2 · 3 grid ----------
   site.js lays the strip along the grid's first row and moves each card to its grid slot with the scroll (transform only),
   cropping each cover to an equal cell in the strip. Under each card the name and the hook; the button or the stamp sits on the cover. */
.games { padding-top: max(var(--s8), calc(50svh - 9vw + 64px)); }   /* the long pause: half a screen, so the Statement stands alone while it sits in the middle of the screen, and the next scroll brings Games */
/* Two kinds of section head, one display size. Catalogues (Games, Apps, News) are named by their headline with one
   line under it, a classic stack; stories (Statement, Studio, Contact) keep the headline with its line beside it. */
.head.cat { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); margin-bottom: var(--s5); }   /* the line under the name already leads in: s5 to the content */
.head.cat p { justify-self: auto; max-width: none; padding-bottom: 0; font-size: var(--fs-stand); color: var(--ink); }
/* Games, the studio's main catalogue, takes the ember of "Big worlds." above it: ember, white, ember down the page;
   Apps and News stay ink */
#games-h, #apps-h, #news-h { color: var(--accent); }   /* a section's name is ember: large where the name is the heading (Games, Apps, News), small as the label over a story (Studio, Contact) */
/* News: the name on the left, All news on the right, on the headline's baseline */
.head.news-head { flex-direction: row; justify-content: space-between; align-items: baseline; }
.g-intro .head h2 span { display: block; white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s5) var(--s4); }
.game { position: relative; grid-column: span 2; cursor: pointer; transform-origin: 0 0; }
.game.wide { grid-column: span 3; }
.cover { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg); }
#games .cover, .app-grid .cover { cursor: pointer; }   /* a card's picture opens it, like its name */
.wide .cover { aspect-ratio: 3 / 2; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--p, 50% 50%); transition: scale var(--t-lean) var(--e-out), transform var(--t-reveal) var(--e-out); }
.game:hover .cover img { scale: 1.04; }
@media (min-width: 1024px) { .cover img[data-card] { object-position: var(--pc); } }
/* under the art (fading in as the card lands): the name and one hook line. The name is the card's button; its ::after
   stretches over the whole card, the cover's button sits above it. */
.game:has(.open:focus-visible) { outline: 2px solid var(--accent); outline-offset: 6px; }
.cap { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s2); opacity: var(--e, 1); filter: blur(calc((1 - var(--e, 1)) * 10px)); }   /* out of focus as the card lands */
.cap h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(24px, 2.2vw, 36px); line-height: 1; }
.cap .open { all: unset; cursor: pointer; }
.cap .open::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.cap .hook { color: var(--ink); max-width: 30em; }
/* the one spot on the cover, bottom-right: the button (Play filled, Request access its outline twin, one width) or the
   status stamp; it fades in with the caption as the card lands */
.cover .slot { position: absolute; right: var(--s3); bottom: var(--s3); z-index: 2; opacity: var(--e, 1); }
/* a button on a picture keeps the night palette in both themes (the art is the same in both): its hover fills cream with a dark label, never dark on dark */
.cover .slot { --bg: #0E0D0C; --ink: #ECE6DC; --ink-2: #B0A89C; --line-2: rgba(236,230,220,.22); --accent: #EA5A2C; --on-accent: #120F0C; --accent-text: #EA5A2C; color: var(--ink); }
.slot .btn { width: 200px; justify-content: center; }
.slot .btn.ghost { background: color-mix(in srgb, var(--bg) 55%, transparent); border-color: var(--accent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.stamp { display: inline-flex; align-items: center; height: 28px; padding: 0 var(--s2); color: var(--ink); background: color-mix(in srgb, var(--bg) 55%, transparent); border: 1px solid var(--line-2); border-radius: 0; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn.sm { height: 44px; padding: 0 var(--s3); gap: var(--s1); flex: none; }
/* the card's flight into its game page (site.js builds .fly) */
.fly { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.fly > * { position: fixed; left: 0; top: 0; transform-origin: 0 0; }
.fly img { object-fit: cover; }

/* Placeholders until key art arrives: designed, not empty */
.ph-sink { background: radial-gradient(ellipse 60% 22% at 50% 58%, #000 0 60%, transparent 62%), radial-gradient(ellipse 90% 60% at 50% 60%, #4a3a2a, transparent 70%), linear-gradient(#2e2924, #0d0b09); }
.ph-sink .pit { position: absolute; left: 20%; right: 20%; top: 52%; height: 13%; border-radius: 50%; border-top: 1px solid rgba(255,190,120,.7); box-shadow: 0 -10px 40px -10px rgba(255,140,60,.35); }

/* ---------- Studio (spread): headline and who we are, the four of us, the founder's letter ---------- */
.studio { padding-top: var(--s7); }
/* The headline is the loudest thing in the section: left-aligned, two lines */
.shead { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s5); align-items: end; }
.shead > .mono { grid-column: 1 / -1; margin-bottom: var(--s3); }
/* who we are: a standfirst beside the headline, on the baseline of its second line */
.shead p { justify-self: end; max-width: 17em; padding-bottom: .45em; font-family: var(--font-display); font-weight: 500; font-size: var(--fs-stand); line-height: 1.32; color: var(--ink); }
.shead h2 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(80px, 9.3vw, 160px); line-height: .94; }
.shead h2 span { display: block; white-space: nowrap; }
.studio figure { margin: 0; }
.studio .frame { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg); }
/* Chest up: the face point (--fx, --fy, fractions of the photo) sits at the centre, a third of the way down; --z scales it */
.studio .photo { position: absolute; left: 50%; top: 33%; width: calc(var(--z, 1.6) * 100%); max-width: none; height: auto;
  transform: translate(calc(var(--fx, .5) * -100%), calc(var(--fy, .25) * -100%)) scale(var(--zoom, 1)); transform-origin: calc(var(--fx, .5) * 100%) calc(var(--fy, .25) * 100%);
  filter: grayscale(1) contrast(1.12) brightness(1.04); }
.studio figcaption { display: flex; flex-direction: column; gap: var(--s1); margin-top: var(--s2); }
.studio figcaption b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(24px, 2vw, 32px); line-height: 1; }
.studio figcaption .mono { color: var(--ink-2); }
/* The letter: well under the headline in size; signed by hand at its foot on the right */
.studio .letter { margin: 0; }
.studio .letter p { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(28px, 2.6vw, 42px); line-height: 1.24; }
.studio .letter footer { display: flex; flex-direction: column; align-items: flex-end; gap: 0; margin-top: var(--s1); }   /* the name and the role sit together */
.studio .letter footer { --sig-w: clamp(200px, 17vw, 290px); }
.studio .sig { display: block; width: var(--sig-w); aspect-ratio: 1200 / 429; margin: var(--s1) 0 var(--s1); background: var(--ink); -webkit-mask: url(assets/brand/sig-michael-600.png) center / contain no-repeat; mask: url(assets/brand/sig-michael-600.png) center / contain no-repeat; }   /* Michael's own signature (his file), drawn in ink so it follows the theme */
.studio .letter footer .mono { color: var(--accent-text); margin-top: calc(var(--sig-w) * -.05); }   /* the role tucks under the motto (the signature's flourish leaves the right-hand foot of its box empty) */

/* The four of us edge to edge, then the letter in the right-hand two thirds */
.bleed4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: var(--s6) calc(-1 * var(--side)) 0; }
.bleed4 figcaption { padding: 0 var(--side) 0 24px; }
.bleed4 figure:first-child figcaption { padding-left: var(--side); }
.spread .letter { width: calc((100% - 48px) * 8 / 12); margin: var(--s5) 0 0 auto; }

/* ---------- Prefooter: the contact on its own screen ---------- */
/* ---------- Apps: the same cards as the wide games, two across the full width, no strip ---------- */
.apps { padding-top: var(--s7); }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s4); }
.app-grid .game { grid-column: auto; }
.app-grid .cover { aspect-ratio: 3 / 2; }
/* the apps' art is drawn on the dark itself (a glass pill, a hub of light): in the dark theme it has no tile of its own,
   its edges dissolve into the page, so it floats there; in the light theme it keeps a dark tile */
:root:not([data-theme="light"]) :is(.app-grid .cover, .gp-hero.app .gp-shot) { background: transparent; }
:root:not([data-theme="light"]) :is(.app-grid .cover, .gp-hero.app .gp-shot) > :is(img, picture, .cribs) {   /* the mask once on the picture and once on the ribs' frame (never on each rib copy, never on the button) */
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); }
[data-theme="light"] :is(.app-grid .cover, .gp-hero.app .gp-shot) { background: #0E0D0C; }
.app-grid .cover .cribs { background: transparent; }   /* the apps' art lies on its own ground: no surface-coloured stand-in under the ribs */
[data-theme="light"] .app-grid .cover .cribs, [data-theme="light"] .app-grid .cover .crib { background: #0E0D0C; }   /* a transparent art (Steward's SVG) brings its dark tile in with its ribs, not after them */
/* in the news it is a card among cards: its own tile, a deep warm dark lit softly from the hub (both themes) */
:is(.post .pic, .page-post figure).tile, .tile .cribs, .tile .crib { background: radial-gradient(70% 85% at 50% 50%, #4a3424 0%, #261d16 50%, #17130f 100%); box-shadow: inset 0 0 0 1px rgba(236,230,220,.08); }
/* no art yet: the name in outline on the dark */
.ph-app { display: grid; place-items: center; }
.ph-app .ghost-name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(56px, 7vw, 120px); line-height: 1; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--ink) 55%, transparent); }

/* ---------- News: named by its headline, All news beside it, then the three newest posts ---------- */
.news { padding-top: var(--s7); }
.news .more, .post { text-decoration: none; }
.news .more { color: var(--ink); }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.post { display: flex; flex-direction: column; gap: var(--s1); color: var(--ink); }
.post .pic { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg); margin-bottom: var(--s1); }
.post img { width: 100%; height: 100%; object-fit: cover; transition: scale var(--t-lean) var(--e-out), transform var(--t-reveal) var(--e-out); }
.post:hover img { scale: 1.04; }
.post .mono { color: var(--ink-2); }
.post b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(24px, 2.2vw, 36px); line-height: 1.06; }
.contact { padding-top: var(--s7); padding-bottom: var(--s6); }
.contact .head h2 span { display: block; white-space: nowrap; }
.contact .head { grid-template-columns: auto minmax(0, 1fr); margin-bottom: var(--s5); }   /* on purpose a size under the Statement and Studio: here the address is the biggest thing (the call to action), the headline leads to it */
.contact .mail { display: inline-block; font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--fs-h2); color: var(--ink); text-decoration: none; }
.contact .mail { font-size: clamp(40px, 5vw, 80px); line-height: 1.05; }

/* ---------- Footer (C2, Torfin in the dark): the index over his face, then the name and the studio line, then the base ----------
   Dark in both themes. No hairlines anywhere. The face (an SVG in the mark's units, end.js + eyes.js) sits behind the
   columns: a soft dark face lit by the eyes (--lit follows how awake they are), the ears rising faintly behind the
   links, the eyes about 170px each. Links keep ~15:1 on the darkest spot, the ember labels ~5.5:1. */
[data-theme="light"] .site-foot { --bg: #080706; --surface: #171513; --ink: #ECE6DC; --ink-2: #B0A89C; --line: rgba(236,230,220,.10); --line-2: rgba(236,230,220,.22); --accent: #EA5A2C; --on-accent: #120F0C; --accent-text: #EA5A2C; }
/* the footer's night is a step deeper than the page (#080706 against #0E0D0C): the change of tone is its edge, in both themes */
.site-foot { --bg: #080706; position: relative; z-index: 3; isolation: isolate; overflow: hidden; padding: var(--s6) var(--side) 0; background: var(--bg); color: var(--ink); color-scheme: dark; }
.site-foot .face { position: absolute; z-index: 0; left: 50%; top: var(--s5); width: 585px; height: auto; transform: translateX(-50%); overflow: visible; pointer-events: none; }
.site-foot .face .lit { opacity: var(--lit, 0); }
.site-foot .face .spill { opacity: calc(var(--glow, 0) * var(--glow, 0) * var(--glow, 0) * .55); }   /* the irises' light on the face goes out as soon as a lid starts to fall, so a blinking lid never shows a darker almond */
/* the lids are painted with the face's own gradients (the base, and the glow as far as the eyes are awake), and the
   face has no holes under the eyes, so a closing or closed eye has no outline and never looks pasted on */
.site-foot .eyes { --lid-edge: #C14A20; display: block; overflow: visible; }
.site-foot .eyes .socket { fill: none; }
.site-foot .eyes .rim { fill: none; stroke: none; }
.site-foot .eyes .pupil { fill: #0E0D0C; }
.site-foot .eyes .glint { fill: #FFE9C2; opacity: .55; }
.site-foot .eyes .lid { fill: url(#f-base); }
.site-foot .eyes .lid.lit-lid { fill: url(#glowFace); opacity: var(--lit, 0); }
.site-foot .eyes .lidshade { fill: #000; opacity: .5; }
.site-foot .eyes .lidline { fill: none; stroke: var(--lid-edge); stroke-width: 2; stroke-linecap: round; }
.site-foot .eyes .lidline.lo { stroke-width: 1.4; opacity: .7; }
/* the index: the label sits right on its list, the links at s1 */
.site-foot .cols { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.site-foot .cols > * { display: flex; flex-direction: column; align-items: flex-start; }
.site-foot .cols .mono { display: block; margin-bottom: var(--s2); }
.site-foot .list { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s1); }
.site-foot .f-games .list { display: grid; grid-auto-flow: column; grid-template-rows: repeat(4, auto); grid-template-columns: repeat(2, max-content); gap: var(--s1) var(--s6); }
.site-foot a { text-decoration: none; color: var(--ink); font-size: var(--fs-ui); line-height: 1.5; }
.site-foot .stage { height: 260px; }                                      /* room for the face; the eyes end ~40px above the base */
/* the base, one row: © on the left, the name small in the middle, Back to top on the right */
.site-foot .bottom { position: relative; z-index: 2; }
.site-foot .base { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: var(--s4) 0; }
.site-foot .base small { justify-self: start; }
.site-foot .base .top { justify-self: end; }
.site-foot .name { display: inline-flex; flex-direction: column; gap: var(--s1); color: var(--ink); }
.site-foot .name svg { display: block; width: 264px; height: auto; }   /* the sign-off: the largest thing in its row, above the © line in size */
.site-foot .name .desc { align-self: center; margin-right: -.5em; font-family: var(--font-display); font-weight: 500; font-size: 10px; letter-spacing: .5em; text-transform: uppercase; line-height: 1; color: var(--ink-2); white-space: nowrap; }
.site-foot .base .top, .site-foot .base small { color: var(--ink-2); font-size: var(--fs-small); }
.site-foot .where { margin-top: var(--s1); color: var(--ink-2); font-size: var(--fs-ui); line-height: 1.5; }

/* ---------- Game and app page (site.js draws it from games.json) ----------
   The bar: Back and ×, fixed. Games: a full-screen hero, always "night" (the text lies on the art, as in the footer);
   below it the page takes the site's tokens. Apps: the product beside its name. Sections without data simply aren't. */
.gp { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; border: 0; padding: 0; background: var(--bg); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.gp::backdrop { background: var(--bg); }
.gp .night { --bg: #0E0D0C; --surface: #171513; --ink: #ECE6DC; --ink-2: #B0A89C; --line: rgba(236,230,220,.10); --line-2: rgba(236,230,220,.22); --accent: #EA5A2C; --on-accent: #120F0C; --accent-text: #EA5A2C; color: var(--ink); }
.gp-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: var(--s3) var(--side); pointer-events: none; }
.gp-bar > * { pointer-events: auto; }
.gp-page:focus { outline: none; }
.gp-bar .gp-back { background: rgba(14,13,12,.45); color: #ECE6DC; border-color: rgba(236,230,220,.4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.gp.is-app .gp-bar .gp-back, [data-theme="light"] .gp-bar .gp-back { background: color-mix(in srgb, var(--bg) 92%, transparent); color: var(--ink); border-color: var(--line-2); }   /* in the light theme the back button is the page's own cream with ink, never a grey film over cream */
.ph-tag { display: block; width: fit-content; margin: var(--s1) 0 0; padding: 2px var(--s1); background: #F2C94C; color: #1B1712; border-radius: 2px; }   /* its own line: never a hanging word */

/* hero: the art fills the screen; stamp, name, hook and the button bottom-left, the facts bottom-right */
.gp-hero.night { position: relative; height: 100vh; min-height: 640px; overflow: hidden; background: var(--bg); }
.gp-media, .gp-media .gp-img, .gp-media .gp-ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.gp-img { object-fit: cover; }
@media (max-width: 640px) { .gp-media picture .gp-img { object-position: 50% 20% !important; } }   /* the upright art on a phone: from its top (the helmets, the moon) */
.gp-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,13,12,.88) 0, rgba(14,13,12,.35) 38%, rgba(14,13,12,0) 62%), linear-gradient(to bottom, rgba(14,13,12,.45), transparent 22%); }
.gp-hero.night .gp-hero-in { position: absolute; left: var(--side); right: var(--side); bottom: var(--s6); display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s5); }
.gp-hl { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); }
.gp-hl .gp-hook { max-width: 30em; }
.gp-hl h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(64px, 8vw, 132px); line-height: .92; margin-top: var(--s1); }
.gp-hook { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--fs-stand); line-height: 1.3; }
.gp-ctas { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.gp-ctas .btn { min-width: 240px; justify-content: center; }
.gp-hero .btn.ghost { background: color-mix(in srgb, var(--bg) 55%, transparent); border-color: var(--accent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.gp-req { color: var(--ink-2); }
.gp-soon { color: var(--accent-text); }   /* in place of a button until there is one (Coming to macOS): the status vocabulary's mono, in ember */
.gp-hl .gp-soon { margin-top: var(--s3); }
/* apps: name on the left, the product on the right, in the page's own colours */
.gp-hero.app .gp-hl h2 { font-size: clamp(56px, 5.6vw, 96px); }
.gp-hero.app { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5); align-items: center; min-height: 100vh; padding: var(--s6) var(--side) var(--s5); }
.gp-shot { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); }
.gp-shot .gp-img, .gp-shot .gp-ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.gp-ph.ph-app { display: grid; place-items: center; }

/* sections: a mono label on the left, the content on the right */
.gp-sec { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--s4); padding: var(--s6) var(--side) 0; }
.gp-label { padding-top: .5em; }
.gp-text p { max-width: 36em; font-size: var(--fs-lead); line-height: 1.55; }
.gp-text p + p { margin-top: var(--s2); color: var(--ink-2); }
.gp-about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s5); }
.gp-facts { display: flex; flex-direction: column; }
.gp-facts > div { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s2) 0; }
.gp-facts > div:first-child { padding-top: 0; }
.gp-facts dt { flex-shrink: 0; color: var(--ink-2); }
.gp-facts dd { text-align: right; }   /* a long value that wraps keeps to the right edge, like the short ones */
.gp-shots { display: grid; gap: var(--s2); }
.gp-shots.n2 { grid-template-columns: 1fr 1fr; }
.gp-shots.n3 { grid-template-columns: 1fr 1fr; }
.gp-shots.n3 figure:first-child { grid-column: 1 / -1; }
.gp-shots figure { margin: 0; }
.gp-shots img { display: block; width: 100%; height: auto; background: var(--surface); }   /* a screenshot is never cropped: the game's own frame, HUD and all */
.gp-shots.phone { grid-template-columns: repeat(4, minmax(0, 1fr)); }   /* phone screens: upright, side by side, never cropped */
.gp-shots figcaption { margin-top: var(--s1); color: var(--ink-2); font-size: var(--fs-small); }
.gp-feats { display: flex; flex-direction: column; }
.gp-feat { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s4); align-items: center; }
.gp-feat:nth-child(even) img { order: 2; }
.gp-feat img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gp-feat.text { grid-template-columns: minmax(0, 1fr); }
/* features in a row (Misto 1918's four sides): pictures upright, side by side, each with its name and line; no rules
   between them (they stand apart in space, as the portraits do) */
.gp-feats.row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
.gp-feats.row .gp-feat { display: flex; flex-direction: column; align-items: stretch; gap: var(--s2); padding-top: 0; border-top: 0; }
.gp-feats.row .gp-feat img { order: 0; aspect-ratio: 4 / 5; }
.gp-feats.row .gp-feat b { font-size: clamp(24px, 2.2vw, 36px); line-height: 1; }   /* the size of a card's name: these are cards */
.gp-feat + .gp-feat { padding-top: var(--s5); }
.gp-feat > div, .gp-steps li, .gp-cards > div { display: flex; flex-direction: column; gap: var(--s1); }
.gp-feat .mono, .gp-steps .mono { color: var(--accent-text); }
.gp-feat b, .gp-steps b, .gp-cards b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--fs-title); line-height: 1.05; }
.gp-feat p, .gp-steps p, .gp-cards p { max-width: 30em; color: var(--ink-2); }
.gp-steps { grid-column: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s5); list-style: none; }
.gp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.gp-cards b { font-size: clamp(22px, 1.9vw, 30px); }
.gp-video { aspect-ratio: 16 / 9; background: var(--surface); display: grid; place-items: center; }
.gp-video video { width: 100%; height: 100%; }
.gp-updates a { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr) auto; gap: var(--s3); align-items: baseline; padding: var(--s3) 0; color: var(--ink); text-decoration: none; }
.gp-updates a:first-child { padding-top: 0; }
.gp-updates .mono { color: var(--ink-2); }
.gp-updates b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(20px, 1.6vw, 24px); line-height: 1.2; }
.gp-get { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s5); align-items: start; }
.gp-get > div:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); }
.gp-get > div:first-child b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--fs-title); }
.gp-get .ph-tag { grid-column: 2; justify-self: start; }
.gp-sec .faq summary { font-size: clamp(22px, 1.9vw, 30px); }
/* the closing band: the art again, the name and the button */
.gp-band { padding: var(--s6) var(--side); display: flex; flex-direction: column; align-items: center; gap: var(--s4); text-align: center; }   /* the closing call: the name and the button once more, no picture (the key art already opened the page) */
.gp-band h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--fs-display); line-height: .95; }
.gp-band .btn { min-width: 240px; justify-content: center; }
/* Previous / Next: the page ends in two filled halves inside the margins, an s2 apart: the neighbour's art, darkened,
   with the label and its name on it (always night). Within the same kind; one full-width tile when there is only one. */
.gp-walk { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin-top: var(--s6); padding: 0 var(--side) var(--s6); }   /* air around: the band, then the two halves inside the margins */
.gp-walk::before { content: ""; grid-column: 1 / -1; border-top: 1px solid var(--line); }   /* one rule across both, like the footer's: never broken by the gap */
.gp-walk.one { grid-template-columns: 1fr 1fr; }
.gp-walk.one .gp-tile { grid-column: 2; }   /* only one other (apps): it keeps a half, on the Next side */

/* Previous / Next: a low strip like a row, with the art beside the name as a whole 16:9 thumbnail (never cut, never
   a background); the label and the name sit by the picture, on the side the arrow points */
.gp-tile { position: relative; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-rows: auto auto; align-content: center; column-gap: var(--s4); row-gap: var(--s1); padding: var(--s3) 0; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.gp-tile .pic { grid-row: 1 / 3; grid-column: 1; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg); }
.gp-tile .pic img, .gp-tile .pic .gp-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gp-tile > .mono { grid-column: 2; align-self: end; color: var(--ink-2); }
.gp-tile b { grid-column: 2; align-self: start; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(28px, 2.6vw, 40px); line-height: 1.05; }
.gp-tile.next { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); text-align: right; }
.gp-tile.next .pic { grid-column: 2; }
.gp-tile.next > .mono, .gp-tile.next b { grid-column: 1; justify-self: end; }
.gp-tile:focus-visible { outline: none; }
/* the trailer lightbox */
.tv { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; border: 0; padding: var(--s6) var(--side); background: rgba(8,7,6,.94); }
.tv::backdrop { background: rgba(8,7,6,.94); }
.tv .close { position: fixed; top: var(--s3); right: var(--side); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(236,230,220,.4); background: none; color: #ECE6DC; cursor: pointer; }
.tv-frame { width: 100%; height: 100%; display: grid; place-items: center; }
.tv-frame iframe, .tv-frame video { width: min(100%, calc((100vh - 208px) * 16 / 9)); aspect-ratio: 16 / 9; border: 0; background: #000; }

/* ---------- Notes page (the Journal) ---------- */
.page .page-top { height: 96px; }   /* the bar's own height: the way back follows right under it */
.page-notes h1 { margin: var(--s3) 0 var(--s5); font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--fs-display); line-height: .95; }


/* ---------- Motion on scroll (line.js adds .motion; with reduced motion none of this applies) ----------
   One entrance system, played once, when a thing is 12% into the screen. One behaviour per kind of text:
   - a label is typed, letter by letter, with an ember caret;
   - a headline assembles from its ribs: cut into flute-wide strips (the hero's glass, the wordmark, the circle), they
     fly in from above and below, alternately, left to right, and lock with a small overshoot;
   - the line under it comes out of focus, word after word, once the headline is landing;
   - Michael's letter reads itself: each word lights as you scroll to it (and stays lit);
   - rv: a block rises (rise) and fades in, t-reveal on e-out;
   - cards (apps, portraits, news, and the games' strip): each picture arrives in ribs, card after card, and its
     caption comes out of focus as it lands;
   - rv-items: the items of a list rise one after another, stagger apart (at most 4 steps). */
.motion .rv { opacity: 0; translate: 0 var(--rise); transition: opacity var(--t-reveal) var(--e-out), translate var(--t-reveal) var(--e-out); }
.motion .rv.in { opacity: 1; translate: 0; }
/* the strip's covers arrive in ribs (site.js): the cover's art, cut into strips, slides in from above and below */
.cribs { position: absolute; inset: 0; z-index: 1; background: var(--bg); pointer-events: none; }
.cribs .crib { position: absolute; inset: 0; translate: 0 calc(var(--s) * 101%); }
.cribs.go .crib { translate: 0 0; transition: translate var(--t-pic) var(--e-lock) var(--d); }
/* typed label */
.motion .tx .tc { opacity: 0; }
.motion .tx .tc.on { opacity: 1; }
.motion .tx.typing::after { content: ""; display: inline-block; width: .5em; height: .86em; margin-left: .12em; vertical-align: -.06em; background: currentColor; animation: caret 900ms steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
/* ribs */
.motion .hribs { position: relative; display: inline-block; vertical-align: top; }
.motion .hribs > .src { display: block; opacity: 0; }
.motion .hribs > .rib { position: absolute; inset: 0; display: block; pointer-events: none; opacity: 0; translate: 0 calc(var(--s) * 70%); }
.motion .in .hribs > .rib { opacity: 1; translate: 0 0; transition: translate var(--t-rib) var(--e-lock) calc(var(--i) * var(--rib-step)), opacity var(--t-quick) linear calc(var(--i) * var(--rib-step)); }
.motion .hribs.done > .src { opacity: 1; }
.motion .hribs.done > .rib { display: none; }
/* out of focus */
.motion .fz .wd { display: inline-block; opacity: 0; filter: blur(12px); translate: 0 .25em; }
.motion .in .fz .wd { opacity: 1; filter: none; translate: 0 0; transition: opacity var(--t-reveal) var(--e-out) calc(var(--d) + var(--i) * 60ms), filter var(--t-reveal) var(--e-out) calc(var(--d) + var(--i) * 60ms), translate var(--t-reveal) var(--e-out) calc(var(--d) + var(--i) * 60ms); }
.motion .head > .more { opacity: 0; transition: opacity var(--t-reveal) var(--e-out) 520ms; }
.motion .head.in > .more { opacity: 1; }
/* the letter reads itself: each word appears warm and cools to ink; then Michael signs and his role is typed */
.motion .reads .wd { opacity: 0; color: var(--accent); transition: opacity var(--t-quick) linear, color var(--t-lean) var(--e-out) 120ms; }
.motion .reads .wd.lit { opacity: 1; color: var(--ink); }
/* on cream the warm ink needs a moment to be seen (on the dark the ember glows at once): each word holds its ember ~0.45 s, then cools slowly */
[data-theme="light"] .motion .reads .wd { transition: opacity 80ms linear, color 1600ms cubic-bezier(.6, 0, .4, 1) 450ms; }   /* the word lands at full ember, like a stamp (a fade would leave it a pale salmon on cream) */
.motion .letter.unsigned .sig { clip-path: inset(-30% 100% -30% -10%); }
.motion .letter.signed .sig { clip-path: inset(-30% -10% -30% -10%); transition: clip-path var(--t-sign) var(--e-hand); }
/* the hero's line out of focus: hero.js adds .on when it shows the line */
.motion .hero8 .sub.on .fz .wd { opacity: 1; filter: none; translate: 0 0; transition: opacity var(--t-reveal) var(--e-out) calc(var(--i) * 60ms), filter var(--t-reveal) var(--e-out) calc(var(--i) * 60ms), translate var(--t-reveal) var(--e-out) calc(var(--i) * 60ms); }
/* cards hold their pictures back until their ribs arrive */
.motion .cards > :not(.in) :is(.cover, .pic, .frame) > * { visibility: hidden; }
.motion .cards :is(.pic, .frame) { position: relative; overflow: hidden; }   /* the ribs stay inside the picture */
.motion .rv-items > * { opacity: 0; translate: 0 var(--rise); transition: opacity var(--t-reveal) var(--e-out) calc(var(--i) * var(--stagger)), translate var(--t-reveal) var(--e-out) calc(var(--i) * var(--stagger)); }
.motion .rv-items.in > * { opacity: 1; translate: 0; }
.motion .cards .fzi { opacity: 0; filter: blur(10px); translate: 0 .3em; }
.motion .cards > .in .fzi { opacity: 1; filter: none; translate: 0 0; transition: opacity var(--t-reveal) var(--e-out) var(--d), filter var(--t-reveal) var(--e-out) var(--d), translate var(--t-reveal) var(--e-out) var(--d); }

.nw { white-space: nowrap; }

/* ---------- FAQ page: one question to a row, the answer opens under it ---------- */
.page-faq h1 { margin-top: var(--s3); font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--fs-display); line-height: .95; margin-bottom: var(--s6); }

.faq summary { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); padding: var(--s3) 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(24px, 2.2vw, 36px); line-height: 1.1; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--font-mono); font-size: 24px; color: var(--accent); transition: transform var(--t-base) var(--e-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 40em; padding-bottom: var(--s4); font-size: var(--fs-lead); color: var(--ink-2); }
.faq details a { color: var(--ink); }

/* ---------- News list and one post ---------- */
.page-post, .page-notes, .page-faq { padding: var(--s2) var(--side) var(--s7); }   /* inner pages: the way back sits right under the bar */
.back { display: inline-block; color: var(--ink-2); text-decoration: none; }   /* every inner page: one way back, in the same place */
.page-post header { margin-top: var(--s5); }
.page-post header .lead { max-width: 30em; }
.page-post header .mono { color: var(--accent-text); }
.page-post h1 { margin-top: var(--s3); font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--fs-h1); line-height: 1; text-wrap: balance; max-width: 16em; }   /* a post's title: under its picture, a size below a page's name */
.page-post .lead { margin-top: var(--s3); font-size: var(--fs-lead); color: var(--ink-2); }
.page-post figure { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg); }   /* the picture whole, never a strip */
.page-post .post-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s5); align-items: start; margin-top: var(--s3); }   /* a post is one screen: its picture left; date, title, line, text and button right, from the top */
.page-post .post-top header { margin-top: 0; }
.page-post > header h1 { font-size: var(--fs-display); line-height: .95; }
.page-post > header { margin-top: var(--s3); }   /* the page's name where FAQ's and News' stand */
.page-post > header .updated { display: block; margin-top: var(--s3); color: var(--ink-2); }   /* a page (Privacy) is named like FAQ and News, a post a size below */
.page-post .post-top h1 { margin-top: var(--s2); font-size: clamp(32px, 3vw, 52px); }
.page-post .post-text .lead { margin-top: var(--s2); }
.page-post .post-text .body { max-width: none; margin: var(--s4) 0 0; font-size: var(--fs-body); gap: var(--s2); }
.page-post .post-text .btn { margin-top: var(--s2); }
.page-post figure img { width: 100%; height: 100%; object-fit: cover; }
.page-post .body { max-width: 40em; margin: var(--s5) 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); font-size: var(--fs-lead); }
.page-post .next { display: flex; justify-content: flex-end; align-items: baseline; gap: var(--s2); margin-top: var(--s6); padding-top: var(--s3); border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.page-post .next b { width: fit-content; font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--fs-h2); }
.page-post .next .mono { color: var(--ink-2); }

/* The text pages (src/docs/: support, privacy, credits). Long legal texts read at body size in one column; the name
   is smaller than a story's so a long title ("Barrelborne — Политика конфиденциальности") stays on two lines. */
.page-doc { box-sizing: content-box; max-width: 52rem; margin-inline: auto; }   /* one centred column: the way back, the bar, the name and the text share its edges */
.page-doc > header h1 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.05; overflow-wrap: anywhere; hyphens: auto; }
.page-post.page-doc > .body { display: block; max-width: none; margin: var(--s4) 0 0; font-size: 18px; line-height: 1.65; color: var(--ink); }
.page-doc .body > * + * { margin-top: var(--s2); }
.page-doc .body h2 { margin-top: var(--s5); font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--fs-h2); line-height: 1.1; }
.page-doc .body h3 { margin-top: var(--s4); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lead); }
.page-doc .body h2 + *, .page-doc .body h3 + * { margin-top: var(--s2); }
.page-doc .body ul { padding-left: 1.2em; }
.page-doc .body li + li { margin-top: var(--s1); }
.page-doc .body li::marker { color: var(--accent-text); }
.page-doc .body strong { font-weight: 600; }
.page-doc .body code { font-family: var(--font-mono); font-size: .9em; }
.page-doc .body a { overflow-wrap: anywhere; }   /* long addresses wrap; the underline is the site's own link style */
.page-doc .body :is(p, li) { overflow-wrap: break-word; }   /* an address written as plain text wraps on a phone instead of running off the screen */
.page-doc .body a:is(:hover, :focus-visible) { color: var(--accent-text); }
.doc-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s2) var(--s4); margin-top: var(--s4); padding-top: var(--s2); border-top: 1px solid var(--line); }
.doc-bar nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s3); }
.doc-bar a { color: var(--ink-2); text-decoration: none; }
.doc-bar a:is(:hover, :focus-visible), .doc-bar a[aria-current="page"] { color: var(--ink); }
.doc-bar a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent-text); text-underline-offset: .3em; }
.doc-bar .doc-name { color: var(--accent-text); }

/* ======================================================================================================================
   Tablet and phone (2026-11-07). One layout, two steps: up to 1024px (tablet) and up to 640px (phone). The same type,
   motion and hover systems; the rhythm steps (s4–s8) and the side margin shrink, stories stack (headline, then its
   line), catalogues go to two columns, then one. The games' strip flight is a desktop scene: here the grid stands and
   its pictures arrive in ribs like every card. The links move behind a menu button, in a full-screen sheet.
   ====================================================================================================================== */
.nav .menu { display: none; }
@media (max-width: 1024px) {
  :root { --side: 32px; --s7: 112px; --s8: 200px; --s6: 88px; }
  /* stories stack: the headline, then its line under it */
  .shead, .contact .head, .statement .col { grid-template-columns: minmax(0, 1fr); row-gap: var(--s3); }
  .shead p, .contact .head p, .statement p { justify-self: start; max-width: 30em; padding-bottom: 0; }
  /* the games: no strip, two across; every cover one shape so the rows line up */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s3); }
  .game, .game.wide { grid-column: auto; }
  .grid .cover, .grid .wide .cover { aspect-ratio: 4 / 3; }
  .grid .game:first-child { grid-column: 1 / -1; }                          /* the flagship across, so seven cards make even rows */
  .grid .game:first-child .cover { aspect-ratio: 16 / 9; }
  .games { padding-top: max(var(--s7), calc(50svh - 9vw + 48px)); }
  .spread .letter { width: auto; margin-left: 12%; }
  .site-foot .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s5); }
  .site-foot .f-games { grid-column: 1 / -1; }
  .site-foot .face { top: auto; bottom: 120px; width: min(585px, 82vw); }   /* under the index, so no link sits on an eye */
  .site-foot .stage { height: 300px; }
}
/* the menu: from 900px down the five links sit behind a button, in a sheet over the page */
@media (max-width: 900px) {
  .nav .menu { display: grid; place-items: center; align-content: center; gap: 7px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; position: relative; z-index: 2; }
  .nav .menu i { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform var(--t-base) var(--e-out); }
  .nav.open .menu i:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav.open .menu i:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .nav .menu:focus-visible { box-shadow: inset 0 0 0 1px var(--accent); outline: none; }
  .nav-right { gap: var(--s1); }
  .nav ul { position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: var(--s3); padding: 0 var(--side); background: var(--bg);
    opacity: 0; visibility: hidden; transition: opacity var(--t-base) var(--e-out), visibility 0s linear var(--t-base); }
  .nav.open ul { opacity: 1; visibility: visible; transition: opacity var(--t-base) var(--e-out); }
  .nav ul a { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); text-transform: none; font-size: clamp(40px, 9vw, 64px); line-height: 1.1; padding: 0; }
  .nav ul li { opacity: 0; translate: 0 .4em; filter: blur(8px); }
  .nav.open ul li { opacity: 1; translate: 0; filter: none; transition: opacity var(--t-reveal) var(--e-out), translate var(--t-reveal) var(--e-out), filter var(--t-reveal) var(--e-out); }
  .nav.open ul li:nth-child(2) { transition-delay: 60ms; } .nav.open ul li:nth-child(3) { transition-delay: 120ms; }
  .nav.open ul li:nth-child(4) { transition-delay: 180ms; } .nav.open ul li:nth-child(5) { transition-delay: 240ms; }
  .nav.open { transform: none; }
  .nav.open::before, .nav.open::after { opacity: 0; }
  .nav .brand, .nav .theme { position: relative; z-index: 2; }
  html.menu-open { overflow: hidden; }
}
@media (max-width: 640px) {
  :root { --side: 20px; --s4: 32px; --s5: 48px; --s6: 56px; --s7: 80px; --s8: 96px; --fs-label: 13px; }   /* a phone: one tight rhythm (sections 80px apart), no label under 13px */
  /* the nav: the mark and a smaller name */
  .nav .brand svg { width: 156px; }
  .nav .brand .desc { font-size: 7.5px; letter-spacing: .42em; margin-right: -.42em; }
  .nav .brand .mark { width: 38px; height: 38px; }
  /* the hero: the line and the button under MERIDIAN, across the screen */
  .hero8 .sub { left: var(--side); right: var(--side); }
  .hero8 h1 { font-size: 17px; line-height: 1.4; max-width: 19em; }   /* the name leads on a phone: the line under it a step smaller than its letters */
  .hero8 .say { gap: var(--s3); }
  .hero8 .say .btn { height: 44px; padding: 0 var(--s3); }   /* 44px is the touch floor; no taller than that */
  :root:has(#track) .nav .brand .solo { left: calc(38px + var(--s2)); font-size: 9px; letter-spacing: .26em; }   /* the descriptor at the top of a phone: clear of the menu button */
  /* the Statement and the story headlines: two lines that fit the screen */
  /* the three stories (Statement, Studio, Contact) one size, so their longest line fits */
  .statement { --st-fs: clamp(40px, 11vw, 72px); }
  :root { --fs-display: clamp(40px, 11vw, 72px); --fs-stand: 18px; }   /* on a phone one display size for every big title (the width, not the rank, sets it) */
  .shead h2, .contact .head h2 { font-size: var(--fs-display); }
  .games { padding-top: max(var(--s7), calc(50svh - 12vw + 40px)); }
  /* one across */
  .grid, .app-grid, .posts { grid-template-columns: minmax(0, 1fr); }
  .grid .game:first-child .cover { aspect-ratio: 4 / 3; }
  .head.news-head { flex-direction: column; align-items: flex-start; }
  /* the four of us: two by two, edge to edge */
  .bleed4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s4); }
  .bleed4 figcaption, .bleed4 figure:first-child figcaption { padding: 0 var(--s2); }
  .bleed4 figure:nth-child(odd) figcaption { padding-left: var(--side); }
  .spread .letter { margin-left: 0; }
  .studio .letter p { font-size: 24px; }
  .studio .letter footer { --sig-w: 180px; }
  /* the address: as large as the screen allows, on one line */
  .contact .mail { font-size: min(clamp(40px, 5vw, 80px), calc((100vw - 2 * var(--side)) / 15.4)); }
  /* the footer: the index in two columns over the face, the base stacked */
  .site-foot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot .f-contact { grid-column: 1 / -1; }
  .site-foot .f-games .list { gap: var(--s1) var(--s4); }
  .site-foot .face { top: auto; bottom: 150px; width: 112vw; }
  .site-foot .stage { height: 230px; }
  .site-foot .base { grid-template-columns: minmax(0, 1fr); justify-items: center; row-gap: var(--s3); text-align: center; }   /* the name, then ©, then Back to top: one centred column, the © line never broken */
  .site-foot .base .name { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .site-foot .base small, .site-foot .base .top { justify-self: center; }
}

/* the game and app page on a tablet and a phone: every section stacks (its label over its content), the facts under
   the text, lists one under the other; the hero keeps its picture with the name on it */
@media (max-width: 1024px) {
  .gp-sec { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .gp-steps { grid-column: 1; }
  .gp-about, .gp-get, .gp-feat { grid-template-columns: minmax(0, 1fr); }
  .gp-feat:nth-child(even) img { order: 0; }
  .page-post .post-top { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
    .gp-feats.row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s4); }
  .gp-get .ph-tag { grid-column: 1; }
  .gp-hero.app { grid-template-columns: minmax(0, 1fr); padding-top: calc(var(--s6) + var(--s4)); }
  .gp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .gp-hero.night { height: 100svh; min-height: 560px; }
  .gp-hero.night .gp-hero-in { flex-direction: column; align-items: flex-start; bottom: var(--s5); }
  .gp-hl h2, .gp-hl h2.long, .gp-hero.app .gp-hl h2 { font-size: clamp(40px, 12vw, 64px); }
  .gp-ctas { width: 100%; }
  .gp-ctas .btn, .gp-band .btn { min-width: 0; width: 100%; }
  .gp-steps, .gp-cards, .gp-shots.n2, .gp-shots.n3 { grid-template-columns: minmax(0, 1fr); }
  .gp-shots.phone { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gp-updates a { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
  .gp-walk, .gp-walk.one { grid-template-columns: minmax(0, 1fr); }
  .gp-walk.one .gp-tile { grid-column: 1; }
  .gp-walk .gp-tile + .gp-tile { border-top: 1px solid var(--line); }   /* stacked: a divider between the two, as in a list */
}

/* News with only two posts: two across, as the apps are (never an empty third column) */
@media (min-width: 641px) { .posts:has(> .post:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Phone pass: the rhythm, the buttons, the cards ---------- */
@media (max-width: 640px) {
  /* no half-screen pause before Games: the same step as between every other section */
  .games { padding-top: var(--s7); }
  .hero-live .games { padding-top: calc(var(--s7) + 36px); }   /* the Statement's screen already leaves ~36px under its line: the gap to Games is s7, like every section */
  /* buttons that close a block or a page run the full width: one clear tap, one edge */
  .hero8 .say .btn, .gp-band .btn, .page-post .body .btn, .gp-get .btn { width: 100%; justify-content: center; }
  /* a button on a picture stays small (it labels the picture, it does not compete with it); its tap area still 44px */
  .slot .btn { width: auto; height: 36px; padding: 0 var(--s2); }
  .slot .btn::after { content: ""; position: absolute; inset: -4px; }
  .cover .slot { right: var(--s2); bottom: var(--s2); }
  .slot .stamp { height: 28px; }
}
@media (max-width: 640px) {
  /* the phone hero is a centred column on the meridian: the name above and below the circle, the line and the button
     at the foot of the screen, centred too (one axis, nothing hanging off to one side) */

  .hero8 .say { align-items: stretch; text-align: center; }
  .hero8 h1 { margin: 0 auto; }
}
@media (max-width: 640px) {
  /* a phone has no half-screen pause to hide Games behind: they wait, unseen, until the Statement has been written */
  .hero-live .games { transition: opacity var(--t-base) var(--e-out); }
  .hero-live .statement:not(.hand-on) ~ .games { opacity: 0; }
}
/* Cards on a phone: the button leaves the picture and runs full width under the caption (one tap, one edge, like
   See the games); the status is a quiet tag in the picture's top corner, no frame in a frame */
.slot-m { display: none; }
@media (max-width: 640px) {
  .cover .slot:has(.btn) { display: none; }
  .slot-m { display: block; margin-top: var(--s2); }
  .slot-m .btn { width: 100%; justify-content: center; height: 44px; }
  .slot-m .btn.ghost { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }   /* Request access filled like the rest: an outline in ember read as noise on a phone */
  .slot-m .btn.ghost .ribs i { background: var(--ink); color: var(--ink); }
  .slot-m .btn.ghost:hover, .slot-m .btn.ghost:focus-visible { color: var(--bg); border-color: var(--ink); }
  .cover .slot:has(.stamp) { top: var(--s2); left: var(--s2); right: auto; bottom: auto; }
  .cover .slot .stamp { height: 24px; padding: 0 var(--s1); border: 0; background: rgba(14,13,12,.72); color: #ECE6DC; }
}

/* ---------- Phone audit (2026-11-11): one system for every block ---------- */
.cap .status { display: none; }
@media (max-width: 640px) {
  /* cards end in a full-width button: their caption is centred above it; picture → title s2, title → hook s1, hook → button s3 */
  .cap { display: flex; flex-direction: column; align-items: center; gap: var(--s1); text-align: center; }
  .cap .hook { text-wrap: balance; }
  .slot-m { margin-top: var(--s3); }
  /* a status is metadata, not an action: a quiet line above the title, off the picture (ember means a button) */
  .cover .slot:has(.stamp) { display: none; }
  .cap .status { display: block; color: var(--ink-2); }
  /* portraits: name and role centred under each, the role on its own lines */
  .bleed4 figcaption, .bleed4 figure:first-child figcaption, .bleed4 figure:nth-child(odd) figcaption { padding: 0 var(--s1); text-align: center; }
  .studio figcaption .mono { white-space: normal; display: block; }
  .studio figcaption .mono > span { display: block; }
  .studio figcaption .mono > i { display: none; }
  /* news is an editorial list: left, the title a step smaller */
  .post b { font-size: 20px; line-height: 1.2; }
  /* game page: the hero button full width; Previous / Next as two left-aligned rows; four sides in one column */
  .gp-hero.night .gp-hero-in { align-items: stretch; }
  .gp-ctas .btn { flex: 1 1 100%; }
  .gp-tile, .gp-tile.next { grid-template-columns: 120px minmax(0, 1fr); column-gap: var(--s2); text-align: left; }
  .gp-tile.next .pic { grid-column: 1; }
  .gp-tile.next > .mono, .gp-tile.next b { grid-column: 2; justify-self: start; }
  .gp-tile b { white-space: normal; font-size: 24px; }
  .gp-feats.row { grid-template-columns: minmax(0, 1fr); }
  .gp-facts > div { align-items: baseline; }
  .gp-req { font: 400 14px/1.5 var(--font-sans); text-transform: none; letter-spacing: 0; }
  .gp-hero.app { min-height: 0; gap: var(--s5); }
  /* the back bar is a solid band: content never shows through it */
  .gp-bar { background: var(--bg); padding-block: var(--s1); border-bottom: 1px solid var(--line); }
  /* every link a finger can hit: 44px tall, the visual size unchanged */
  :is(.site-foot .list a, .contact .mail, .back, .site-foot .top, .gp-facts a, .faq details p a) { display: inline-block; padding-block: 10px; margin-block: -10px; }
  .gp-updates a { grid-template-columns: minmax(0, 1fr); gap: var(--s1); padding: var(--s2) 0; min-height: 44px; }   /* a news row: date, then title, then Read, one under another */
  .gp-hero.night .gp-hl { align-items: stretch; }
  .gp-hero.night .gp-hl > :not(.gp-ctas) { align-self: flex-start; }
}
/* hover is for a mouse: on a touch screen a tap must not leave a rule or a zoom behind */
@media (hover: none) {
  :is(.ul, .post b span, .gp-tile b span, .gp-updates b span) { background-size: 0 2px !important; }
  .game:hover .cover img, .gp-tile:hover .pic img { scale: 1; }
}
p { text-wrap: pretty; }
@media (max-width: 640px) {
  /* the name a weight heavier on a phone: its strokes thickened in its own units (the letters stay as drawn) */
  .hero8 .strip svg { stroke: currentColor; stroke-width: 5; stroke-linejoin: round; overflow: visible; }
  /* the Statement is a poster on a phone too: its longest line runs the width of the screen */
  .statement { --st-fs: clamp(44px, 13.4vw, 96px); }
  /* one rhythm for every head: title → its line s2 (16px), the head → its content s5 (48px), section → section s7 (80px) */
  .head, .head.cat, .shead, .contact .head, .statement .col { row-gap: var(--s2); gap: var(--s2); }
  .head, .head.cat { margin-bottom: var(--s5); }
  .head p, .head.cat p { padding-bottom: 0; }
  .head > .mono, .shead > .mono { margin-bottom: 0; }
}
@media (max-width: 640px) {
  /* the closing button → Previous / Next: one step (the band's own s6 below the button), not two stacked */
  .gp-band { padding-bottom: var(--s5); }
  .gp-walk { margin-top: 0; }
  .gp-tile { padding: var(--s3) 0; }
}
/* The phone header (after a look at twelve studios' phone headers): the mark, one line beside it and the burger,
   nothing else in the bar. The name stands alone (its caption under it at 7px was unreadable); at the top of the
   landing the bar's line is the descriptor, since the hero writes the name. The theme switch and the descriptor move
   into the menu sheet. */
@media (max-width: 640px) {
  .nav .brand { gap: calc(var(--s1)); }   /* the name sits close to its mark: one lockup, not two things */
  .nav .brand .mark { width: 32px; height: 32px; }
  .nav .brand .desc { display: none; }
  .nav .brand .bm { gap: 0; }
  .nav .brand svg { width: 200px; }
  :root:has(#track) .nav .brand .solo { left: calc(32px + var(--s1)); font-size: 11px; letter-spacing: .2em; font-weight: 500; }
  .nav:not(.open) .theme { display: none; }
  .nav.open .theme { position: fixed; z-index: 3; left: var(--side); bottom: calc(var(--s5) + env(safe-area-inset-bottom, 0px)); margin: 0; box-shadow: inset 0 0 0 1px var(--line-2); }
  .nav.open ul::after { content: "Theme"; position: absolute; left: calc(var(--side) + 44px + var(--s2)); bottom: calc(var(--s5) + 14px + env(safe-area-inset-bottom, 0px)); font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
}
/* ---------- Phone, round 3 ---------- */
@media (max-width: 640px) {
  /* no hover on a phone at all (a narrow window with a mouse included): no rule under titles, no zoom on pictures */
  :is(.ul, .post b span, .gp-tile b span, .gp-updates b span) { background-size: 0 2px !important; }
  .game:hover .cover img, .gp-tile:hover .pic img, .post:hover img { scale: 1 !important; }
  /* every button is an action, so every button is ember (Request access too): no outlined twin on a phone */
  .btn.ghost, .gp-hero .btn.ghost, .slot .btn.ghost { background: var(--accent); color: var(--on-accent); border-color: var(--accent); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .btn.ghost .ribs i, .btn.ghost::before { background: var(--ink); color: var(--ink); }
  /* the game page opens on its art whole, at its own shape (never stretched to the screen's height), the words under it */
  .gp-hero.night { height: auto; min-height: 0; overflow: visible; padding-top: 61px; }
  .gp-hero.night .gp-media { position: relative; inset: auto; height: auto; aspect-ratio: 16 / 9; }
  .gp-hero.night .gp-media:has(picture) { aspect-ratio: 1122 / 1402; }
  .gp-hero.night .gp-media::after { display: none; }
  .gp-hero.night .gp-media .gp-img { object-position: 50% 50% !important; }
  .gp-hero.night .gp-hero-in { position: static; padding: var(--s4) var(--side) 0; }
  /* the back link is text in the solid bar, not a framed chip */
  .gp-bar .gp-back, .gp.is-app .gp-bar .gp-back, [data-theme="light"] .gp-bar .gp-back { height: 44px; padding: 0; border: 0; background: none; color: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .gp-bar .gp-back .ribs, .gp-bar .gp-back::before { display: none; }
  /* Previous / Next: air above them (no rule), one rule between the two */
  .gp-walk::before { display: none; }
}
@media (max-width: 640px) { .btn { height: 44px; } }   /* one button height on a phone: the touch floor */
@media (max-width: 640px) {
  /* the menu sheet: the links start under the bar (no empty top half), the theme switch at the foot; the descriptor
     stays in the bar only, never twice */
  .nav ul { justify-content: flex-start; padding-top: calc(96px + var(--s4)); }
  .nav.open .brand .bm { opacity: 0; }
  :root .nav.open .brand .solo { display: block; position: absolute; left: calc(32px + var(--s1)); top: 50%; margin-top: -.5em; opacity: 1; translate: 0; font-family: var(--font-display); font-weight: 500; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; line-height: 1; white-space: nowrap; color: var(--ink); }
}
@media (max-width: 640px) {
  .hero8 h1 { font-size: 20px; line-height: 1.35; }
  /* the Statement on a phone: "Big worlds." runs the width of the screen, "A small team." a size smaller (big / small) */
  #goal-h em { font-size: 1.24em; line-height: 1; display: inline-block; }
}
@media (max-width: 900px) {
  /* the menu sheet carries the meridian: a thin ember line drawn top to bottom down the middle as the sheet opens */
  .nav ul { background-image: linear-gradient(to bottom, transparent, var(--accent) 70%, #FFD9B8 96%, transparent); background-repeat: no-repeat; background-size: 1px 55%; background-position: 82% -60%; }   /* right of the longest link, never across a word */
  .nav.open ul { animation: bolt 2600ms cubic-bezier(.45, 0, .25, 1) 150ms both; }   /* the meridian strikes through once, top to bottom, and is gone */
}
@keyframes bolt { from { background-position: 82% -60%; } to { background-position: 82% 220%; } }   /* the meridian flows down the sheet at the hero's own slow pace, once */
@media (prefers-reduced-motion: reduce) { .nav.open ul { animation: none; } }
@media (max-width: 640px) {
  /* a section head sits closer to what it introduces: s4 (32px) to the first card */
  .head, .head.cat { margin-bottom: var(--s4); }
  /* a card: the name clearly leads its line (size and tone, not a colour): 28px name, 15px line in the quiet ink */
  .cap h3 { font-size: 28px; line-height: 1.1; }
  .cap .hook { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
}
/* ---------- The footer on a phone: one two-column grid for every group, one rhythm ----------
   Games across the full width (its list in the same two columns), Apps | About side by side on those columns,
   Contact across the width: the address first, then the links in the two columns, the city last. Labels 13px,
   label → list s2, link → link 16px (each link a 44px target), group → group s5. */
@media (max-width: 640px) {
  .site-foot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s3); row-gap: var(--s5); }
  .site-foot .f-games, .site-foot .f-contact { grid-column: 1 / -1; }
  .site-foot .cols .mono { font-size: 13px; letter-spacing: .2em; margin-bottom: var(--s2); }
  .site-foot .list, .site-foot .f-games .list, .site-foot .f-contact .list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; grid-template-rows: none; column-gap: var(--s3); row-gap: var(--s2); width: 100%; }
  .site-foot .cols > :not(.f-games):not(.f-contact) .list { grid-template-columns: minmax(0, 1fr); }
  .site-foot .f-games .list { grid-auto-flow: column; grid-template-rows: repeat(4, auto); }
  .site-foot .list > * { font-size: 15px; line-height: 24px; white-space: nowrap; }
  .site-foot .f-contact .list > :nth-child(-n+2) { grid-column: 1 / -1; }   /* the address and Press on their own lines, the four socials two by two */
  .site-foot .f-contact .where { grid-column: 1 / -1; margin-top: var(--s2); font: 400 13px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
}
@media (max-width: 640px) {
  /* the Statement's line a step over a section's line (it answers the manifesto, not a list) */
  .statement p { font-size: 21px; line-height: 1.32; }
  /* a card is one unit: picture → name 16, name → line 8, line → button 24; card → card 56, clearly apart */
  #games .grid, .app-grid { row-gap: var(--s6); }
  .cap { padding-top: 4px; }
  /* buttons stay still on a phone: no ribbed fill on a tap (a tap shows the pressed state only) */
  .btn .ribs, .btn::before { display: none !important; }
  .btn:hover, .btn:focus-visible { color: var(--on-accent); border-color: var(--accent); }
  .btn:active { filter: brightness(.88); }
}
@media (max-width: 640px) {
  /* a game or app page opens like its card: name, line and button centred, the same steps (name → line 8, line → button 24) */
  .gp-hl, .gp-hero.night .gp-hl { align-items: center; text-align: center; gap: 0; }
  .gp-hl > * { align-self: center !important; }
  .gp-hl h2 { margin-top: 0; }
  .gp-hl .gp-hook { margin-top: 15px; }   /* the display face's tight line box: 15 gives the same air between name and line as on a card */
  .gp-hl .gp-ctas, .gp-hl .gp-soon { margin-top: var(--s2); align-self: stretch !important; }   /* line → button ~18px of air, as on a card */
  .gp-hl .gp-req { margin-top: var(--s2); }
  .gp-hero.app .gp-hero-in { text-align: center; }
  /* the closing band repeats the hero: the name at the hero's size, ~18px of air to the button */
  .gp-band { gap: var(--s3); }
  .gp-band h3 { font-size: clamp(40px, 12vw, 64px); }
  /* a game with no closing band (in development): Previous / Next keeps the same air above it as after a band */
  .gp-sec + .gp-walk { margin-top: var(--s5); }
}
@media (max-width: 640px) {
  /* the back link is text: a tap never turns it dark on dark */
  .gp-bar .gp-back:is(:hover, :focus-visible, :active) { color: var(--ink); border: 0; background: none; filter: none; }
  /* the address is the call to action of Contact: on a phone its ember rule is always drawn (no hover to reveal it) */
  .contact .mail .ul { background-size: 100% 2px !important; }
}
@media (max-width: 640px) {
  /* a card on a phone (tried on Barrelborne, 2026-11-11): line → button 18, button → next card 44 (the button belongs to its game) */
  .slot-m { margin-top: 17px; }
  #games .grid, .app-grid { row-gap: 44px; }
}
@media (max-width: 640px) { .posts { row-gap: 50px; } }   /* news cards on a phone: 48px of air from a title to the next picture (the title's rule padding takes 6) */
/* A button's arrow says where it goes: ↗ leaves the site (a store, a game's own site), → another page, ↓ down this one.
   Drawn in the display face at the label's cap height, a little heavier, so it reads as a sign, not a speck */
.btn .arr { font-style: normal; font-family: var(--font-display); font-weight: 600; font-size: 1.35em; line-height: 0; margin-left: .1em; translate: 0 .02em; }
/* ---------- Phone type scale, one rule per role ----------
   story headline (Big worlds / Founder-led / Tell us what) --st-fs  >  section name (Games, Apps, News) --fs-display
   story line 21px  >  section line 18px;  a story's label 13px */
@media (max-width: 640px) {
  :root { --st-fs: clamp(44px, 13.4vw, 96px); }
  .shead h2, .contact .head h2 { font-size: var(--st-fs); line-height: .98; }
  .contact .head h2 { font-size: min(var(--st-fs), calc((100vw - 2 * var(--side)) / 8)); }   /* its longest line fits the screen; a size under the stories, as on a desktop (the address leads here) */
  .shead p, .contact .head p, .statement p { font-size: 21px; line-height: 1.32; }
}

/* the pen is quicker on a phone: the letter is one screen there and the reader scrolls on sooner */
@media (max-width: 640px) { :root { --t-sign: 1100ms; } }

/* Phone menu sheet: the descriptor stays in the bar whether the sheet was opened at the top or after a scroll (the
   scrolled bar's rule hid it); the theme reads as two words, Dark | Light, the current one in ink on an ember rule */
.theme-seg { display: none; }
@media (max-width: 640px) {
  :root:has(#track) .nav.open.away .brand .solo { opacity: 1; translate: 0; }
  .nav.open .theme { display: none; }
  .nav.open ul::after { content: none; }
  .nav.open .theme-seg { display: flex; gap: var(--s3); position: fixed; z-index: 3; left: var(--side); bottom: calc(var(--s5) + env(safe-area-inset-bottom, 0px)); }
  .theme-seg button { min-height: 44px; padding: 0; border: 0; background: none; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; }
  :root:not([data-theme="light"]) .theme-seg [data-mode="dark"], :root[data-theme="light"] .theme-seg [data-mode="light"] { color: var(--ink); text-decoration: underline 1px var(--accent); text-underline-offset: 6px; }
}
/* Phone, light theme: the game hero's words stand under the art, not on it, so they take the page's cream; a dark
   band in the middle of a cream page read as a stray block. The art keeps its own colours. */
@media (max-width: 640px) {
  :root[data-theme="light"] .gp .gp-hero.night { --bg: #EFE8DA; --surface: #F6F1E6; --ink: #1B1712; --ink-2: #544A3E; --line: rgba(27,23,18,.18); --line-2: rgba(27,23,18,.30); --accent: #D94E1C; --on-accent: #120F0C; --accent-text: #C04417; }
}
/* Phone game and app page: one rhythm. Block to block 48 (s5): hero → first section, section → section, last
   section → closing band, band → Previous / Next (their tile's own 24 counted). A news row is two lines, the date
   and the title; the title carries the text link's ember rule (the whole row is the link; "Read" was a third line). Previous / Next: a 4:3 picture and the words
   centred beside it, so the air to the rule is the same above and below whatever the name's length. */
@media (max-width: 640px) {
  .gp-sec { padding-top: var(--s5); }
  .gp-hero.app { padding-bottom: 0; }
  .gp-band { padding-top: var(--s5); }
  .gp-updates a:last-child { padding-bottom: 0; }
  .gp-sec .faq details:first-child summary { padding-top: 0; }   /* a list starts at its label's s3 and ends at the block's edge, as Updates */
  .gp-sec .faq details:last-child:not([open]) summary { padding-bottom: 0; }
  .gp-sec .faq details:last-child[open] > :last-child { padding-bottom: 0; margin-bottom: 0; }
  .gp-updates .go { display: none; }
  .gp-updates b span { background-size: 100% 2px !important; }   /* the title is the link: its ember rule at rest, as every text link on a phone */
  .gp-band { padding-bottom: var(--s3); }
  .gp-band + .gp-walk { margin-top: 0; }
  .gp-sec + .gp-walk { margin-top: var(--s3); }   /* with the tile's own 24 above its picture (and the band's 24 below its button): 48 */
  .gp-tile, .gp-tile.next { grid-template-columns: 144px minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr; row-gap: var(--s1); }
  .gp-walk { row-gap: var(--s1); }
  .gp-walk .gp-tile + .gp-tile { border-top: 0; padding-top: 0; }   /* Previous over Next: 32 of air between them, no rule */
  .gp-tile .pic { grid-row: 1 / 5; aspect-ratio: 4 / 3; }
  .gp-tile > .mono { grid-row: 2; }
  .gp-tile > b { grid-row: 3; }
}
/* Desktop and tablet: the closing band hands straight over to Previous / Next (one s6 between the button and the rule,
   not two), so the next game shows on the screen with the button */
@media (min-width: 641px) { .gp-band { padding-bottom: 0; } }
/* Phone: a list of features is numbered, the air between them is enough: no rules, 32 between (a step under the
   48 between blocks). Four sides: each side's number, name and line come first, then its picture, so a picture is
   never read as the next side's. A link in running text or facts shows its ember rule at rest: a phone has no hover. */
@media (max-width: 640px) {
  .gp-feats:not(.row) .gp-feat + .gp-feat { border-top: 0; padding-top: var(--s4); }
  .gp-feats.row { row-gap: var(--s5); }
  .gp-feats.row .gp-feat > div { order: 0; }
  .gp-feats.row .gp-feat img { order: 1; }
  :is(.gp-facts a, .gp-text a, .faq details a, .page-post .body a:not(.btn)) { background-size: 100% 2px !important; }
}
/* Every width: a numbered feature list needs no rules; its numbers and the air (s4) separate the items */
.gp-feats:not(.row) .gp-feat + .gp-feat { border-top: 0; padding-top: var(--s4); }
/* A rule only stands between two items of a list. A lone rule before the last block (a post's Next, a game page's
   Previous / Next) separated nothing: the air does it */
.page-post .next { border-top: 0; padding-top: 0; }
.gp-walk::before { content: none; }
@media (min-width: 641px) { .gp-band + .gp-walk, .gp-sec + .gp-walk { margin-top: calc(var(--s6) - var(--s3)); } }   /* with the tile's own s3 above its picture: one s6 */
@media (max-width: 640px) { .page-post .next { margin-top: var(--s5); } }   /* the button → Next: 48, the phone's block step */
/* Every width: a list on a game page ends at its block's edge (its last row keeps no padding under it) */
.gp-updates a:last-child { padding-bottom: 0; }
.gp-sec .faq details:last-child:not([open]) summary { padding-bottom: 0; }

/* Light theme: a hairline on cream needs more ink than on dark (at .10 it vanished); an app's live picture (Steward's
   orbit) keeps its dark tile in Previous / Next too, as on its card and its page */
[data-theme="light"] .gp-tile .pic:has(img[src$=".svg"]) { background: #0E0D0C; }
/* Desktop and tablet: an app's hero is as tall as its content, not a full screen: the next section follows one s6 below */
@media (min-width: 641px) { .gp-hero.app { min-height: 0; padding-bottom: 0; } }
/* The steps under "What it does": as far from the text as one step from the next (40 desktop, 32 phone), not a block apart */
.gp-steps { margin-top: 0; }
@media (max-width: 640px) { .gp-steps { margin-top: var(--s1); } }
/* Every width: an update reads as a news card's words, the date over the title (the title is the link; no third
   "Read" column leaving holes across the row) */
.gp-updates a { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
.gp-updates .go { display: none; }
/* Desktop footer: four equal columns, Games in one column like the others (two columns there left a hole before Apps) */
@media (min-width: 1025px) {
  .site-foot .cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-foot .f-games .list { display: flex; flex-direction: column; }
}
/* Desktop: the Statement is a poster, alone on its screen (Games comes with the next scroll, after the long pause):
   the phrase at 12.5vw fills the width, its line goes under it instead of beside it */
@media (min-width: 1025px) {
  /* the phrase, then its line at a quarter of its size (a second voice, not a caption lost under a poster), two lines;
     --st-h is the whole poster's height: centred on its screen, and Games starts just under the fold, so the first
     scroll after the poster brings it */
  :root, .statement { --st-fs: clamp(128px, 12.5vw, 220px); --st-sub: calc(var(--st-fs) * .25); --st-h: calc(var(--st-fs) * .96 * 2 + var(--s4) + var(--st-sub) * 1.2 * 2); }   /* on :root too: Games reads --st-h */
  .statement .col { grid-template-columns: minmax(0, 1fr); row-gap: var(--s4); }
  .statement .col > p { padding-bottom: 0; max-width: 17em; font-size: var(--st-sub); line-height: 1.2; }
  .hero-live .statement { margin-bottom: calc((var(--st-h) - 100svh) / 2); }
  .games, .hero-live .games { padding-top: calc((100svh - var(--st-h)) / 2 + var(--s3)); }
}
/* Desktop and tablet, light theme: over a game's key art the back button is the same night glass as in the dark theme
   (a cream box was the loudest thing on the art); past the art, on the cream page, it takes the cream */
@media (min-width: 641px) {
  [data-theme="light"] .gp:not(.is-app):not(.past) .gp-bar .gp-back { background: rgba(14,13,12,.45); color: #ECE6DC; border-color: rgba(236,230,220,.4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
/* Desktop: the steps between sections read the same to the eye as Games → Apps (s7 + the air inside the type, ~165 at
   1440, measured baseline to cap): a section that opens with a small label (Studio, Contact) gets the air a big title
   carries inside its line; News stands closer under the letter, whose signature hangs below its text on the right */
@media (min-width: 1025px) {
  #studio { padding-top: calc(var(--s7) + 14px); }
  #contact { padding-top: calc(var(--s7) + 32px); }
  #news { padding-top: calc(var(--s7) - 48px); }
}
/* FAQ: a question is not a link, so it takes no underline (with the row's rules it was noise); its sign answers instead:
   the + turns a quarter on hover and becomes × when open, the answer slides open. The rules stay neutral: ember is for
   what you can act on. The list sits a step (s5) under its title, as tight as Back sits above it */
.faq summary:is(:hover, :focus-visible) .ul, .faq summary .q .ul { background-size: 0 2px !important; }
.faq details:not([open]) summary:is(:hover, :focus-visible)::after { transform: rotate(90deg); }
.faq details { interpolate-size: allow-keywords; }
.faq details::details-content { height: 0; overflow: clip; transition: height var(--t-move) var(--e-out), content-visibility var(--t-move) allow-discrete; }
.faq details[open]::details-content { height: auto; }
.page-faq h1 { margin-bottom: var(--s5); }
@media (prefers-reduced-motion: reduce) { .faq details::details-content { transition: none; } }
/* One pattern wherever words stand beside a picture: the words on the left (they are read first, the button with
   them), the picture on the right, in a 5 : 7 split. An app's hero did it; a news post had it the other way round.
   On an app page the sections below share the hero's split, so What it does starts where the picture does */
@media (min-width: 901px) {
  .page-post .post-top { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .page-post .post-top > figure { order: 2; }
}
@media (min-width: 1025px) { .gp.is-app .gp-sec { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5); } }   /* where the app's hero stands in two columns */
/* Phone: the team's photos stand under the Studio head at the head → content step (s4), like Games and Apps.
   Previous / Next: Next first (it is where you are going), Previous under it */
@media (max-width: 640px) {
  .bleed4 { margin-top: var(--s4); }
  .gp-walk .gp-tile.next { order: -1; padding-top: var(--s3); }
  .gp-walk .gp-tile.prev:has(+ .gp-tile.next) { padding-top: 0; }   /* the lower tile of the pair takes no top padding: 32 between them */
}
/* Phone: the Statement is written high on its screen, just under the bar (centred, it stood in the lower half under
   an empty half screen); Games follows one section step under its line */
@media (max-width: 640px) {
  .hero-live .statement { align-content: start; padding-top: calc(72px + var(--s5)); margin-bottom: calc(var(--st-ch, 300px) + 72px + var(--s5) - 100svh); }
  .hero-live .games { padding-top: var(--s7); }
}
/* Phone: one scale, as on desktop: the Statement and Studio (stories) at --st-fs, the section names (Games, Apps,
   News) a step under, Contact a step under that */
@media (max-width: 640px) {
  :is(#games-h, #apps-h, #news-h) { font-size: calc(var(--st-fs) * .92); line-height: .95; }   /* under the Statement and Studio (the width caps the Statement at --st-fs), over Contact */
}
/* The theme at the foot of every page, beside Back to top: Dark | Light, the current one in ink on an ember rule */
.site-foot .base .end { justify-self: end; display: flex; align-items: center; gap: var(--s4); }
.site-foot .theme-seg { display: flex; gap: var(--s2); }
.site-foot .theme-seg button { min-height: 44px; padding: 0; border: 0; background: none; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; transition: color var(--t-quick) var(--e-out); }
.site-foot .theme-seg button:is(:hover, :focus-visible) { color: var(--ink); }
:root:not([data-theme="light"]) .site-foot .theme-seg [data-mode="dark"], :root[data-theme="light"] .site-foot .theme-seg [data-mode="light"] { color: var(--ink); text-decoration: underline 1px var(--accent); text-underline-offset: 6px; }
@media (max-width: 900px) { .site-foot .base .end { justify-self: center; flex-direction: column; gap: var(--s2); } }
/* Phone: News stands closer under the letter (its signature hangs on the right), as on desktop: s7 less 32 */
@media (max-width: 640px) { #news { padding-top: calc(var(--s7) - 32px); } }
/* One column (phone, tablet): a post reads date, title and line, then its picture, then its text and the button,
   like an app page (name, line, picture) and as on desktop, where the words come first */
@media (max-width: 900px) {
  .page-post .post-text { display: contents; }
  .page-post .post-top > .post-text > header { order: 1; }
  .page-post .post-top > figure { order: 2; }
  .page-post .post-top > .post-text > .body { order: 3; margin-top: 0; }
}
/* Phone app hero: the name stands a step (s4) under the back bar, not pressed to it; the picture belongs to the hero,
   s4 under its words; the first section follows a block step (s5) below */
@media (max-width: 640px) {
  .gp-hero.app { padding-top: calc(61px + var(--s4)); row-gap: var(--s4); }
}
/* Phone post: one screen from the date to the button. Back sits right under the bar (its tap area is kept by its own
   padding); the steps inside the post are the card's (s3), the picture a little wider than tall-ish 2:1 */
@media (max-width: 640px) {
  .page-post { padding-top: 0; }
  .page-post .post-top { margin-top: var(--s2); row-gap: var(--s3); }
  .page-post .post-text .body { font-size: 16px; line-height: 1.5; }
}
/* Small mono text (dates, Previous / Next, numbers, facts) at 500: at 13px the 400 cut is too thin to read in grey */
.mono { font-weight: 500; }
/* Phone: an app's price stands whole on its own line under the requirements */
@media (max-width: 640px) { .gp-req .sep { display: none; } .gp-req .price { display: block; white-space: nowrap; } }
/* One rule for an app's live art wherever it stands (Apps, its page, News, a post, Previous / Next): in the dark theme
   it dissolves into the page like on Apps (no brown tile, no frame); in the light theme it keeps the plain dark tile */
:root:not([data-theme="light"]) :is(.post .pic, .page-post figure).tile, :root:not([data-theme="light"]) .tile :is(.cribs, .crib) { background: transparent; box-shadow: none; }
:root:not([data-theme="light"]) :is(.post .pic, .page-post figure).tile > :is(img, picture, .cribs) { -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); }
[data-theme="light"] :is(.post .pic, .page-post figure).tile, [data-theme="light"] .tile :is(.cribs, .crib) { background: #0E0D0C; box-shadow: none; }
/* A post: its first paragraph is the lede, a step larger and in full ink; on a phone the line under the title breaks
   after its comma, and Next reads as a game page's Previous / Next: the label
   with its arrow, then the title at a card's size */
.page-post .post-text .body > p:first-child { font-size: var(--fs-lead); color: var(--ink); }   /* the lede: the subtitle's size, told apart by ink */
@media (max-width: 640px) {
  .page-post .lead .cl { display: block; }
  .page-post .next { display: block; }
  .page-post .next .mono { display: block; margin-bottom: var(--s1); }
  .page-post .next b { display: block; font-size: 24px; line-height: 1.2; }   /* as Previous / Next on a game page: the label carries the arrow, the title at a card's size, no rule */
}
@media (max-width: 640px) {
}
/* Phone: a two-sentence hook ("Something small just changed. / Did you notice?") gives its second sentence its own line */
@media (max-width: 640px) { :is(.hook, .gp-hook) .s2 { display: block; } }
/* a post's picture is always whole (16:9, never cropped to a band): the key art must keep its hero */
/* Phone: the foot grew by the theme switch: the cat sits that much higher, so the name stands under its face again */
@media (max-width: 640px) { .site-foot .face { bottom: 230px; } }
/* One column (phone, tablet): the name, then what you can press (theme, Back to top), and the © line closes the page */
@media (max-width: 900px) {
  .site-foot .base .name { grid-row: 1; }
  .site-foot .base .end { grid-row: 2; }
  .site-foot .base small { grid-row: 3; }
}
@media (min-width: 641px) and (max-width: 900px) { .site-foot .face { bottom: 190px; } }   /* the tablet's foot carries the theme switch too */
/* Phone: a fling from the hero stops at the Statement (the browser's own scroll snap, no script fighting the
   momentum): it rests with the phrase just under the bar while the rain writes it; past it the page scrolls free */
@media (max-width: 640px) {
  html.hero-live { scroll-snap-type: y proximity; }
  .hero-live .hero8 { scroll-snap-align: none; }
  .hero-live .track { scroll-snap-align: start; }   /* the page's top is a snap point (the sticky hero's own would sit at its stuck offset) */
  .hero-live .statement { scroll-snap-align: start; scroll-snap-stop: always; }
}
/* Portraits, one tone in both themes: grey, a touch warm, the shadows lifted (a black jumper no longer swallows the
   face) and the studio white held down. Light theme: the white becomes the page's cream (multiply on the cream);
   dark theme: the white is a warm paper grey, not a lamp in the night */
.studio .photo { filter: grayscale(1) contrast(.92) brightness(1.08); }
[data-theme="light"] .studio .photo { filter: grayscale(1) contrast(1.12) brightness(1.04); }   /* light theme: the crisp print (multiplied into the cream it read as a faded, muddy page) */
:root:not([data-theme="light"]) .studio .photo { filter: grayscale(1) contrast(.88) brightness(.84); }
/* Phone: a link inside running text stays inline (the tap padding pushed its rule onto the next line) */
@media (max-width: 640px) { :is(.faq details p, .gp-text, .page-post .body p) a:not(.btn) { display: inline; padding-block: 0 calc(var(--ul-gap, 3px) + 2px); margin-block: 0; } }
/* Phone: a link in running text shows one rule, the ember one (the grey hairline under it is for hover screens) */
@media (max-width: 640px) { :is(.faq details p, .gp-text, .page-post .body p) a:not(.btn) { background-size: 100% 2px, 0 0 !important; text-decoration: none; } }

/* ---------- Final pass (audit) ---------- */
/* the veiled Games never catches a tap meant for See the games */
@media (max-width: 640px) { .hero-live .statement:not(.hand-on) ~ .games { pointer-events: none; } }
/* FAQ lives in the menu sheet only (the desktop bar keeps its five sections) */
@media (min-width: 901px) { .nav .sheet-only { display: none; } }
/* portrait captions: one inset for all four, the page's margin from their picture's edge */
@media (min-width: 1025px) { .bleed4 figcaption, .bleed4 figure:first-child figcaption { padding-left: var(--side); } }
/* the sticky back button: once past the art it is solid, so text scrolling under it never shows through */
@media (min-width: 641px) { .gp.past .gp-bar .gp-back { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }
/* a page of running text (Privacy): ~64 characters a line */
.page-post > .body { max-width: 34em; }
/* phone touch targets: 44px at least */
@media (max-width: 640px) {
  .site-foot .list a, .site-foot .base .top { min-height: 44px; display: inline-flex; align-items: center; }
  .site-foot .base .name, .nav .brand { min-height: 44px; }
  .site-foot .list a { padding-block: 0; margin-block: -6px; }
  .theme-seg button { min-width: 44px; }
}
/* Phone menu sheet: the links never run under the theme switch at its foot, whatever length a translation gives them */
@media (max-width: 900px) { .nav.open ul { padding-bottom: calc(var(--s5) + 44px + var(--s5) + env(safe-area-inset-bottom, 0px)); overflow-y: auto; } }
@media (max-width: 640px) {
  /* on a short screen the list scrolls under the theme switch: the switch keeps a band of the sheet's own ground */
  .nav.open .theme-seg { left: 0; right: 0; bottom: 0; padding: var(--s3) var(--side) calc(var(--s5) + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to bottom, transparent, var(--bg) var(--s3)); }
}
/* See the games was tapped: the games show at once, the Statement need not be waited for */
.cta-go .hero-live .games, html.cta-go .games { opacity: 1 !important; pointer-events: auto !important; }
/* a post's Next is a way on, a step under the post's own title (the size of a news title on the home page) */
@media (min-width: 641px) { .page-post .next b { font-size: clamp(24px, 2.1vw, 32px); } }
/* Back stands at one height on every inner page on a phone */
@media (max-width: 640px) { .page-notes, .page-faq { padding-top: 0; } }
/* Studio's and Contact's lines start on one column (desktop) */
@media (min-width: 1025px) { #studio .shead, .contact .head { grid-template-columns: minmax(auto, 1fr) 28.8vw; } }
/* the footer's place line is meta: mono caps at every width */
.site-foot .where { font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
/* a news title under Updates behaves as in News: its rule on hover (a phone shows none, as the News cards) */
@media (max-width: 640px) { .gp-updates b span { background-size: 0 2px !important; } }
/* keyboard focus on a link in running text stands clear of its rule */
:is(.faq details p, .gp-text, .page-post .body p) a:focus-visible { outline-offset: 4px; }
/* phone: the price stands apart from the requirements, in ink */
@media (max-width: 640px) { .gp-req .price { margin-top: var(--s1); color: var(--ink); } }
/* phone card names: 44px tall to tap */
@media (max-width: 640px) { .cap h3 .open { min-height: 44px; } }
/* the founder's letter starts on the cards' second column (desktop) */
@media (min-width: 1025px) { .spread .letter { width: auto; margin-left: calc(50% + 19px); } }
/* ---------- Audit round 3 ---------- */
/* a section label beside a picture stands on the picture's top edge (beside text it keeps its cap offset) */
@media (min-width: 901px) { .gp-sec:has(> .gp-shots, > .gp-feats.row) > .gp-label { padding-top: 0; } }
/* Misto's two book spreads at one height */
.gp-shots.n2 img { aspect-ratio: 1020 / 999; object-fit: cover; }
/* a post's date is meta like every date on the site: grey */
.page-post header .mono { color: var(--ink-2); }
/* an app's frameless art (dark theme, desktop): its button stands centred under the art, not in an empty corner */
@media (min-width: 641px) { :root:not([data-theme="light"]) .app-grid .cover .slot { right: auto; left: 50%; translate: -50% 0; } }
/* a picture opened full screen on a phone (an app's screenshots) */
.shot-view { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: var(--s3); border: 0; background: #0A0908; display: grid; place-items: center; overflow: auto; }
.shot-view img { width: 100%; height: auto; }   /* the full picture, the full width: pinch to read it closer */
.shot-view::backdrop { background: #0A0908; }
.shot-view .x { position: fixed; top: var(--s2); right: var(--s2); width: 44px; height: 44px; border: 0; background: none; color: #ECE6DC; font-size: 28px; }
@media (max-width: 640px) { .gp-shots img { cursor: zoom-in; } }
/* a phone card says it opens: a quiet Details under the name */
@media (max-width: 640px) { .game .cap h3 .open::after { content: "Details →"; display: block; margin-top: var(--s1); font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); } }
/* print: the words on white, no motion layers */
@media print {
  #gl, .nav, .fly, .cribs, .site-foot .face, .theme-seg, .gp-bar { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; }
  * { color: #000 !important; text-shadow: none !important; }
  .hero8, .track { height: auto !important; min-height: 0 !important; position: static !important; }
  .statement h2, .statement p, .fz, .fzi, .wd { opacity: 1 !important; filter: none !important; transform: none !important; }
  .hero-live .statement { margin: 0 !important; min-height: 0 !important; }
}
@media (max-width: 640px) { .game .cap h3 .open { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; } }
/* phone cards: a quiet Details cue under the line (the whole caption opens the game, site.js) */
@media (max-width: 640px) {
  .game .cap h3 .open::after { content: none; }
  .game .cap .hook::after { content: "Details →"; display: block; margin-top: var(--s1); font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
  .game .cap { cursor: pointer; }
}
/* Light theme: small ember text a shade deeper than the big ember (same hue, reads on cream) and a step heavier */
[data-theme="light"] :is(.studio .letter footer .mono, .gp-soon, .gp-feat .mono, .gp-steps .mono) { font-weight: 600; }
/* the current theme word: its ember rule drawn as a line under the word (Safari ignored the text-decoration shorthand) */
.theme-seg button { position: relative; text-decoration: none !important; }
:root:not([data-theme="light"]) .theme-seg [data-mode="dark"]::after, :root[data-theme="light"] .theme-seg [data-mode="light"]::after { content: ""; position: absolute; left: 0; right: .12em; bottom: 8px; height: 1px; background: var(--accent); }
@media (max-width: 640px) { :root { --t-pic: 520ms; } }   /* a phone: pictures settle quicker (the desktop keeps the approved 950 ms) */
/* Safari: no live backdrop blur (it repaints on every scroll frame there): the same surfaces, solid */
.is-safari * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.is-safari .nav.away { background: color-mix(in srgb, var(--bg) 94%, transparent); }
/* a picture arriving in ribs shows the page's own ground between them (the lighter surface read as a white sheet on cream) */
/* desktop and phone: the face's own light waits for the face (the eyes alone in the dark first, then the whole face, ears and all) */
.site-foot .face .lit { opacity: calc(var(--lit, 0) * var(--face, 1)); }
.site-foot .face .spill { opacity: calc(var(--glow, 0) * var(--glow, 0) * var(--glow, 0) * .55 * var(--face, 1)); }
