/* Main page styles. Only the home layout loads this file.
 *
 *   +--------------------------------------------------------+
 *   | hero       sky for the visitor's clock, nav, pitch, stack |
 *   +--------------------------------------------------------+
 *   | catalogue  one feature card per game, then empty slot    |
 *   | devlog     filterable, paginated list of every entry     |
 *   | site-foot  contact desks and legal line                  |
 *   +--------------------------------------------------------+
 */

:root {
    /* Palette: the logo's sky blue and sand, plus a blue-biased ink. */
    --sky: #0083ED;
    --ink: #0E2236;
    --ink-soft: #33485C;
    --muted: #4A6178;
    --paper: #F5F8FB;
    --mist: #E7EFF7;
    --panel: #FFFFFF;
    --rule: #D3DEE8;
    --leader: #9AAEC0;
    --link: #005FB3;
    --sand: #E5B98C;
    --white: #FFFFFF;
    --night-foot: #26405A;
    --blueprint: #123E7C;

    /* Steam store navy and highlight blue. */
    --steam-top: #2A475E;
    --steam-bottom: #171A21;
    --steam-blue: #66C0F4;

    /* Twinstick Arcade's four greens (css/TwinstickArcade.css). */
    --ta-dark: #0F380F;
    --ta-mid: #306230;
    --ta-edge: #5E881F;
    --ta-lit: #8BAC0F;

    --font-body: 'Fira Sans', system-ui, sans-serif;
    --font-mono: 'Fira Mono', ui-monospace, monospace;

    --page: 1160px;
    --gutter: 40px;

    /* Skyline art pixel size (tiles from _tools/skyline.py). The city
       stands on a 25 art pixel street strip along the hero's bottom edge. */
    --city-art: 4px;
    --street: calc(25 * var(--city-art));
}

/* Time of day, set on <html> by js/home-sky.js. */
html[data-sky="dusk"] { --sky: #2B2A6B; }
html[data-sky="night"] { --sky: #050B24; }

html { scroll-behavior: smooth; }
body.home { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--font-body); }
.home a { color: var(--link); }
.home a:hover { color: var(--ink); }
.home :focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; }
.home img { max-width: 100%; }

.wrap { max-width: var(--page); margin: 0 auto; box-sizing: border-box; padding-inline: var(--gutter); }
.mono { font: 500 13px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; box-sizing: border-box; border: 0; background: var(--link); color: var(--white); font: 700 16px var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; }
.home .btn { color: var(--white); }
.home .btn:hover { background: var(--ink); color: var(--white); }
.home .btn-ghost { background: transparent; color: var(--link); box-shadow: inset 0 0 0 2px var(--link); }
.home .btn-ghost:hover { background: var(--link); color: var(--white); }
.home .btn-light { background: var(--white); color: var(--ink); }
.home .btn-light:hover { background: var(--sand); color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.code { display: inline-block; padding: 2px 8px; background: var(--sand); color: var(--ink); font: 500 13px/1.4 var(--font-mono); letter-spacing: .06em; }

/* ------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------ */

/* --px/--py run from -1 to 1 with the pointer (js/home.js); nearer layers travel further. */
.hero { --px: 0; --py: 0; position: relative; overflow: hidden; background: var(--sky); color: var(--white); }

/* Skyline: far, mid, near. Each tile is --w x --h art pixels; the bottom 4 rows
   are ground, tucked behind the street so pointer parallax never shows a gap. */
.band { position: absolute; left: -32px; right: -32px; bottom: calc(var(--street) - 4 * var(--city-art)); height: calc(var(--h) * var(--city-art)); background-repeat: repeat-x; background-size: calc(var(--w) * var(--city-art)) 100%; image-rendering: pixelated; pointer-events: none; transition: transform 350ms ease-out; }

.band-1 { --w: 160; --h: 52; background-image: url('../assets/home/city-day-1.png'); transform: translate3d(calc(var(--px) * -6px), calc(var(--py) * -3px), 0); }
.band-2 { --w: 192; --h: 38; background-image: url('../assets/home/city-day-2.png'); transform: translate3d(calc(var(--px) * -11px), calc(var(--py) * -5px), 0); }
.band-3 { --w: 224; --h: 24; background-image: url('../assets/home/city-day-3.png'); transform: translate3d(calc(var(--px) * -4px), calc(var(--py) * -1px), 0); }
html[data-sky="dusk"] .band-1 { background-image: url('../assets/home/city-dusk-1.png'); }
html[data-sky="dusk"] .band-2 { background-image: url('../assets/home/city-dusk-2.png'); }
html[data-sky="dusk"] .band-3 { background-image: url('../assets/home/city-dusk-3.png'); }
html[data-sky="night"] .band-1 { background-image: url('../assets/home/city-night-1.png'); }
html[data-sky="night"] .band-2 { background-image: url('../assets/home/city-night-2.png'); }
html[data-sky="night"] .band-3 { background-image: url('../assets/home/city-night-3.png'); }

/* Translucent clouds between the city layers. No ground rows: --lift is the
   cloud base in art pixels above the street. Parallax sits between neighbours. */
.cloud { bottom: calc(var(--street) + var(--lift) * var(--city-art)); }
.cloud-1 { --w: 256; --h: 24; --lift: 22; background-image: url('../assets/home/cloud-day-1.png'); transform: translate3d(calc(var(--px) * -8px), calc(var(--py) * -4px), 0); }
.cloud-2 { --w: 288; --h: 18; --lift: 10; background-image: url('../assets/home/cloud-day-2.png'); transform: translate3d(calc(var(--px) * -14px), calc(var(--py) * -6px), 0); }
html[data-sky="dusk"] .cloud-1 { background-image: url('../assets/home/cloud-dusk-1.png'); }
html[data-sky="dusk"] .cloud-2 { background-image: url('../assets/home/cloud-dusk-2.png'); }
html[data-sky="night"] .cloud-1 { background-image: url('../assets/home/cloud-night-1.png'); }
html[data-sky="night"] .cloud-2 { background-image: url('../assets/home/cloud-night-2.png'); }

/* Street: sprite border between hero and page. Fixed, no parallax; its last
   rows dither into the page colour. */
.street { position: absolute; left: 0; right: 0; bottom: 0; height: var(--street); background: url('../assets/home/street-day.png') repeat-x; background-size: calc(32 * var(--city-art)) 100%; image-rendering: pixelated; pointer-events: none; }
html[data-sky="dusk"] .street { background-image: url('../assets/home/street-dusk.png'); }
html[data-sky="night"] .street { background-image: url('../assets/home/street-night.png'); }

.hero-stars { position: absolute; inset: -24px; background: url('../assets/home/stars.png') repeat; background-size: 384px 256px; image-rendering: pixelated; opacity: 0; pointer-events: none; transition: transform 350ms ease-out; transform: translate3d(calc(var(--px) * -3px), calc(var(--py) * -2px), 0); }
html[data-sky="dusk"] .hero-stars { opacity: .35; }
html[data-sky="night"] .hero-stars { opacity: 1; }

.nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; --nav-pad: 22px; padding-block: var(--nav-pad); }
/* White rule under the navbar. It overhangs the content by --nav-pad each
   side, matching the gap between the links and the rule. */
.nav::after { content: ''; position: absolute; left: calc(var(--gutter) - var(--nav-pad)); right: calc(var(--gutter) - var(--nav-pad)); bottom: 0; height: 2px; background: var(--white); pointer-events: none; }
.home .wordmark { display: inline-flex; align-items: center; font: 600 26px/1 var(--font-body); color: var(--white); text-decoration: none; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.home .nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--white); font-weight: 500; text-decoration: none; }
.home .nav-link:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }

/* Phone menu toggle: three bars (span plus ::before/::after) that fold into an X
   when open. The middle bar drops out once the outer two meet at the centre. */
.nav-toggle { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; background: none; cursor: pointer; }
.nav-bars { position: relative; width: 24px; height: 3px; background: var(--white); transition: background 0s 100ms; }
.nav-bars::before, .nav-bars::after { content: ''; position: absolute; inset: 0; background: var(--white); transition: transform 200ms ease; }
.nav-bars::before { transform: translateY(-8px); }
.nav-bars::after { transform: translateY(8px); }
.nav-toggle[aria-expanded="true"] .nav-bars { background: transparent; transition-delay: 0s; }
.nav-toggle[aria-expanded="true"] .nav-bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-bars::after { transform: rotate(-45deg); }

.hero-body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; margin-top: 30px; padding-block: 36px 332px; }
.pitch-title { margin: 0 0 18px; max-width: 14ch; font: 800 clamp(38px, 5.4vw, 66px)/1.04 var(--font-body); letter-spacing: -.02em; text-wrap: balance; }
.pitch-lede { margin: 0; max-width: 36ch; font-size: 22px; line-height: 1.4; font-weight: 500; }

/* Logo stack: 46x53 art drawn at --art per pixel. It hovers; on each low point
   the slabs squash, upper ones dropping further (--drop art pixels, lid = 4). */
.stack-spot { position: relative; margin-right: 40px; transition: transform 350ms ease-out; transform: translate3d(calc(var(--px) * -14px), calc(var(--py) * -7px), 0); }
.stack { --art: 4px; position: relative; width: calc(46 * var(--art)); aspect-ratio: 46 / 53; animation: hover 3.2s ease-in-out infinite; }
.slab { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; animation: squash 3.2s ease-in-out infinite; }
@keyframes hover { 50% { translate: 0 -12px; } }
@keyframes squash { 0%, 100% { translate: 0 calc(var(--drop) * var(--art)); } 20%, 80% { translate: 0 0; } }

/* ------------------------------------------------------------------
   Catalogue
   ------------------------------------------------------------------ */
.catalogue { --flow: 20px; display: flex; flex-direction: column; gap: var(--flow); padding-block: 64px 80px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 8px; }
.section-head h2 { margin: 0; font: 800 clamp(32px, 3.6vw, 44px)/1.05 var(--font-body); letter-spacing: -.02em; }
.section-sub { margin: 8px 0 0; max-width: 60ch; color: var(--ink-soft); }

.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--panel); border: 1px solid var(--rule); }
.feature-media { display: flex; flex-direction: column; min-width: 0; background: var(--ink); }
.feature-video { display: block; flex: 1 1 auto; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #0D300D; }
.clip-caption { margin: 0; padding: 10px 12px 2px; color: #D6E6F3; }
.clip-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 8px 12px 12px; }
.clip-thumb { appearance: none; padding: 0; border: 0; background: none; cursor: pointer; opacity: .65; transition: opacity 150ms; }
.clip-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.clip-thumb:hover { opacity: 1; }
.clip-thumb[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--sand); }

/* Unannounced game: hatched 16:9 panel with a stamped label in place of a video. */
.feature-placeholder { display: grid; place-items: center; flex: 1 1 auto; aspect-ratio: 16 / 9; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .05) 0 12px, transparent 12px 24px), var(--ink); }
.feature-placeholder .mono { padding: 8px 16px; border: 2px solid var(--sand); color: var(--sand); font-size: 18px; letter-spacing: .3em; }

/* Twinstick and unannounced cards: blueprint border. The edge lines overshoot every corner
   by --tick, like construction lines on an architect's drawing.

        |              |
     ---+--------------+---
        |              |
        |     card     |
        |              |
     ---+--------------+---
        |              |

   ::before sits --tick outside the border box; eight gradients paint the
   overshoots (two per corner) in line with the border.

   The tips fade out in 2 px pixel dither, one --dither band per step,
   counted inward from the tip: 25% fill, 50% checker, then solid.
   The mask layers clip to border/padding/content box to make the bands. */
.feature-twinstick, .feature-secret { --tick: 16px; --line: 4px; --dither: 4px; position: relative; border: var(--line) solid var(--blueprint); }
.feature-twinstick::before, .feature-secret::before {
    --ink-line: linear-gradient(var(--blueprint), var(--blueprint));
    --solid: linear-gradient(#000, #000);
    --checker: conic-gradient(#000 25%, transparent 0 50%, #000 0 75%, transparent 0);
    --sparse: conic-gradient(#000 25%, transparent 0);
    content: "";
    position: absolute;
    inset: calc(-1 * (var(--tick) + var(--line)));
    box-sizing: border-box;
    border: var(--dither) solid transparent;
    padding: var(--dither);
    pointer-events: none;
    background:
        var(--ink-line) left 0 top var(--tick) / var(--tick) var(--line),
        var(--ink-line) right 0 top var(--tick) / var(--tick) var(--line),
        var(--ink-line) left 0 bottom var(--tick) / var(--tick) var(--line),
        var(--ink-line) right 0 bottom var(--tick) / var(--tick) var(--line),
        var(--ink-line) left var(--tick) top 0 / var(--line) var(--tick),
        var(--ink-line) right var(--tick) top 0 / var(--line) var(--tick),
        var(--ink-line) left var(--tick) bottom 0 / var(--line) var(--tick),
        var(--ink-line) right var(--tick) bottom 0 / var(--line) var(--tick);
    background-repeat: no-repeat;
    background-origin: border-box;
    mask: var(--solid) content-box, var(--checker) 0 0 / 4px 4px padding-box, var(--sparse) 0 0 / 4px 4px border-box;
    mask-origin: border-box;
}

/* Stacked cards sit --card-gap apart, border edge to border edge. */
.feature + .feature { --card-gap: 48px; margin-top: calc(var(--card-gap) - var(--flow)); }

/* Stacked framed cards: a solid line bridges each side edge across the gap,
   joining the frames into one ruled column. Only the outer tips dither.

        |  upper card  |
     ---+--------------+---
        |              |      <- bridge, drawn by the lower card
     ---+--------------+---
        |  lower card  |
*/
/* At fractional zoom, border widths snap to whole device pixels but offsets
   like -4px don't, so the bridge is anchored to the card's inner edge (where
   its border starts too) and drawn outward as an outline. The clip keeps the
   outline's sides and drops its top and bottom. It also runs one --line into
   each card's border, so rounding can't leave a hairline seam at the joints. */
:is(.feature-twinstick, .feature-secret) + :is(.feature-twinstick, .feature-secret)::after {
    content: "";
    position: absolute;
    top: calc(-1 * (2 * var(--line) + var(--card-gap)));
    left: 0;
    right: 0;
    height: calc(var(--card-gap) + 2 * var(--line));
    outline: var(--line) solid var(--blueprint);
    clip-path: inset(0 calc(-2 * var(--line)));
    pointer-events: none;
}

.feature-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 32px; }
.feature-body p { margin: 0; color: var(--ink-soft); }
.slot-id { display: flex; align-items: center; gap: 12px; }
.feature-title { margin: 0; font: 800 30px/1.1 var(--font-body); letter-spacing: -.01em; }

/* Store and site buttons: equal halves, pinned to the card's bottom. */
.btns-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: auto; }
.btns-split .btn { gap: 10px; padding: 0 12px; transition: box-shadow 200ms ease; }
.btn-icon { flex: none; }

/* Steam: store navy with the Steam mark, blue glow on hover. */
.home .btn-steam { background: linear-gradient(180deg, var(--steam-top), var(--steam-bottom)); color: var(--white); box-shadow: inset 0 0 0 1px rgba(102, 192, 244, .25); }
.home .btn-steam:hover { background: linear-gradient(180deg, #386485, #1B2838); color: var(--white); box-shadow: inset 0 0 0 1px var(--steam-blue), 0 0 12px rgba(102, 192, 244, .45); }

/* Twinstick Arcade: dark green, lit-green text, CRT scanlines and glow. */
.home .btn-twinstick { background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px), var(--ta-dark); color: var(--ta-lit); text-shadow: 0 0 6px rgba(139, 172, 15, .6); box-shadow: inset 0 0 0 1px var(--ta-edge); }
.home .btn-twinstick:hover { background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px), var(--ta-mid); color: #C4E33A; box-shadow: inset 0 0 0 1px var(--ta-lit), 0 0 12px rgba(139, 172, 15, .45); }

/* Empty slot: the next game, and the mailing-list signup. */
.slot-empty { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 16px 28px; padding: 24px 32px; border: 2px dashed var(--leader); }
.slot-empty .code { justify-self: start; }
.slot-empty h3 { margin: 0; font-size: 22px; }
.slot-empty p { margin: 2px 0 0; color: var(--ink-soft); font-size: 16px; }
.field { display: flex; flex-wrap: wrap; gap: 10px; }
.field input { flex: 1 1 220px; min-width: 0; min-height: 48px; box-sizing: border-box; padding: 0 14px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); font: 400 17px var(--font-body); }
.honeypot { position: absolute; left: -5000px; }

/* ------------------------------------------------------------------
   Devlog
   ------------------------------------------------------------------ */
.devlog { display: flex; flex-direction: column; gap: 20px; padding-block: 0 80px; }
.devlog [hidden] { display: none; }

/* Filter chips: one game or tag at a time; "All" clears. */
.tag-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip { min-height: 36px; padding: 0 14px; border: 1px solid var(--rule); background: var(--panel); color: var(--ink-soft); font: 500 15px var(--font-body); cursor: pointer; }
.tag-chip:hover { border-color: var(--link); color: var(--link); }
.tag-chip[aria-pressed="true"] { border-color: var(--link); background: var(--link); color: var(--white); }

/* Entry list: thumbnail, meta line, title, summary, tags. One rule between rows. */
.log-list { margin: 0; padding: 0; list-style: none; background: var(--panel); border: 1px solid var(--rule); }
.log-row:not([hidden]) ~ .log-row:not([hidden]) { border-top: 1px solid var(--rule); }
.home .log-link { display: grid; grid-template-columns: 192px minmax(0, 1fr); align-items: start; gap: 24px; padding: 20px 24px; color: var(--ink); text-decoration: none; }
.home .log-link:hover { background: var(--mist); color: var(--ink); }
.log-link img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.log-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.log-text h3 { margin: 0; font: 800 22px/1.2 var(--font-body); letter-spacing: -.01em; }
.log-link:hover h3 { color: var(--link); }
.log-text p { margin: 0; color: var(--ink-soft); }
.log-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.log-tags li { padding: 2px 8px; background: var(--mist); color: var(--muted); font: 500 12px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.log-empty { margin: 0; }

/* Pager: previous, page numbers, next, then "7–12 of 30". */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pager-pages { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pager button { min-width: 40px; min-height: 40px; padding: 0 12px; border: 1px solid var(--rule); background: var(--panel); color: var(--link); font: 500 15px var(--font-body); cursor: pointer; }
.pager button:hover:not(:disabled) { border-color: var(--link); }
.pager button:disabled { color: var(--leader); cursor: default; }
.pager button[aria-current="page"] { border-color: var(--link); background: var(--link); color: var(--white); }
.pager-status { margin-left: auto; }

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.site-foot { background: var(--ink); color: #D6E6F3; font-size: 15px; }

/* Strata: sprite border between page and footer, the ground under the
   hero's street (_tools/strata.py). Dithers out of the page, into the ink. */
.site-foot::before { content: ''; display: block; height: calc(24 * var(--city-art)); background: var(--paper) url('../assets/home/strata.png') repeat-x; background-size: calc(32 * var(--city-art)) 100%; image-rendering: pixelated; }
.home .site-foot a { color: var(--white); }
.home .site-foot a:hover { color: var(--sand); }
.contacts { display: flex; justify-content: space-between; gap: 24px 40px; padding-block: 48px 24px; }
.contacts h3 { margin: 0 0 4px; color: var(--leader); }
.contacts p { margin: 0; overflow-wrap: anywhere; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px 28px; border-top: 1px solid var(--night-foot); color: var(--leader); }

/* ------------------------------------------------------------------
   Phone
   ------------------------------------------------------------------ */
@media (max-width: 760px) {
    :root { --gutter: 18px; --city-art: 3px; }

    .home .wordmark { font-size: 18px; }
    /* Links fold into a dropdown under the toggle, right-aligned. Without JS
       the toggle stays hidden and so do the links. */
    .nav { z-index: 1; }
    /* Phone: the gutter is too narrow to overhang, so the rule lines up with the content. */
    .nav::after { left: var(--gutter); right: var(--gutter); }
    .nav-toggle:not([hidden]) { display: inline-flex; margin-right: -12px; }
    .nav-links { display: flex; position: absolute; top: 100%; right: var(--gutter); flex-direction: column; align-items: stretch; gap: 0; min-width: 180px; padding: 8px 0; background: var(--ink); }
    .home .nav-link { padding: 0 20px; }

    /* Open: the panel unrolls downward from under the toggle, then the links
       drop in one after another. Closed, visibility keeps links out of tab order;
       its delay lets the fade finish first. */
    .nav-links { visibility: hidden; opacity: 0; transform: translateY(-6px); clip-path: inset(0 0 100% 0); transition: opacity 160ms ease-out, transform 220ms ease-out, clip-path 220ms ease-out, visibility 0s 220ms; }
    .nav-toggle[aria-expanded="true"] + .nav-links { visibility: visible; opacity: 1; transform: none; clip-path: inset(0); transition-delay: 0s; }
    .home .nav-links .nav-link { opacity: 0; transform: translateY(-4px); transition: opacity 160ms ease-out, transform 160ms ease-out; }
    .home .nav-toggle[aria-expanded="true"] + .nav-links .nav-link { opacity: 1; transform: none; }
    .home .nav-toggle[aria-expanded="true"] + .nav-links .nav-link:nth-child(1) { transition-delay: 60ms; }
    .home .nav-toggle[aria-expanded="true"] + .nav-links .nav-link:nth-child(2) { transition-delay: 100ms; }
    .home .nav-toggle[aria-expanded="true"] + .nav-links .nav-link:nth-child(3) { transition-delay: 140ms; }

    /* Logo and pitch centred; the logo clears the nav. */
    .hero-body { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 0; padding-block: 32px 249px; text-align: center; }
    .stack-spot { order: -1; justify-self: center; margin: 0; }
    .stack { --art: 3px; }
    .pitch-title, .pitch-lede { margin-inline: auto; }
    .pitch-lede { font-size: 19px; }

    .catalogue { padding-block: 40px 56px; }
    .feature { grid-template-columns: minmax(0, 1fr); }
    .feature-body { padding: 20px; }

    /* Ticks shrink to fit the gutter (12 + 4 line < 18), so no tip is clipped. */
    .feature-twinstick, .feature-secret { --tick: 12px; }

    /* Store and site buttons stack: halves are too narrow for icon and label. */
    .btns-split { grid-template-columns: minmax(0, 1fr); }
    .clip-thumbs { gap: 6px; padding: 6px 8px 8px; }
    .slot-empty { grid-template-columns: minmax(0, 1fr); padding: 20px; }

    .devlog { padding-block: 0 56px; }
    /* Thumbnail dropped: text gets the full row width. */
    .home .log-link { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px; }
    .log-link img { display: none; }
    .log-text h3 { font-size: 19px; }
    .log-text p { font-size: 15px; }
    .pager-status { flex-basis: 100%; margin-left: 0; }

    /* Footer: desks and legal lines stacked and centred. */
    .site-foot { text-align: center; }
    .contacts { flex-direction: column; padding-top: 24px; }
    .legal { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .stack, .slab { animation: none; }
    .band, .hero-stars, .stack-spot { transition: none; }
    .nav-links, .home .nav-links .nav-link, .nav-bars, .nav-bars::before, .nav-bars::after { transition: none; }
}
