/* ==========================================================================
   Ogo Studio — site shell stylesheet
   Tokens, reset, base type, layout primitives, header, footer, motion.
   Sources: WEBSITE-ARCHITECTURE.md §6, OGO-STUDIO-BRAND.md v0.3 §4/§5/§9.
   Dark-only by design. No light mode (brand rule, ARCH §7.1 #9).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Self-hosted fonts (privacy: ZERO external network requests)
   DM Sans copied from the GeoFlag bundle. Space Grotesk + JetBrains Mono
   pulled from @fontsource (OFL 1.1). Licenses live in assets/fonts/.
   Do NOT re-add a Google Fonts <link> anywhere: it leaks visitor IPs and
   breaks the "entirely offline / no third party" posture.
   -------------------------------------------------------------------------- */

/* DM Sans — variable subset files, one per unicode subset, both weights. */
@font-face{font-family:'DM Sans';font-style:normal;font-weight:400 500;font-display:swap;
  src:url('../fonts/DMSans-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:400 500;font-display:swap;
  src:url('../fonts/DMSans-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* Space Grotesk — display / headings / wordmark, weights 400 / 500 / 600. */
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:400;font-display:swap;
  src:url('../fonts/SpaceGrotesk-latin-400.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:400;font-display:swap;
  src:url('../fonts/SpaceGrotesk-latin-ext-400.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500;font-display:swap;
  src:url('../fonts/SpaceGrotesk-latin-500.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500;font-display:swap;
  src:url('../fonts/SpaceGrotesk-latin-ext-500.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:600;font-display:swap;
  src:url('../fonts/SpaceGrotesk-latin-600.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:600;font-display:swap;
  src:url('../fonts/SpaceGrotesk-latin-ext-600.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* JetBrains Mono — code, hex values, build IDs, timestamps. Weight 400. */
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400;font-display:swap;
  src:url('../fonts/JetBrainsMono-latin-400.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400;font-display:swap;
  src:url('../fonts/JetBrainsMono-latin-ext-400.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* --------------------------------------------------------------------------
   2. Design tokens (:root)
   -------------------------------------------------------------------------- */
:root{
  /* Core palette — Brand Book §4.1 / ARCH §6.1 */
  --ogo-bg:#000000;
  --ogo-bg-deep:#0a0c0e;
  --ogo-glow:#52E2D0;
  --ogo-glow-soft:rgba(82,226,208,0.15);
  --ogo-beet:#95113B;
  --ogo-beet-light:#C2185B;
  --ogo-beet-deep:#6A1040;
  --ogo-leaf:#96D64E;
  --ogo-leaf-deep:#93B83A;
  --ogo-earth:#56441F;
  --ogo-text:#FFFFFF;
  --ogo-text-muted:#9A9EA3;
  --ogo-line:rgba(255,255,255,0.06);

  /* Functional palette — Brand Book §4.2 */
  --ui-success:#6AB07A;
  --ui-warning:#E8A838;
  --ui-danger:#D86A5C;
  --ui-panel:#14171B;
  --ui-panel-2:#1A1E23;

  /* Font families */
  --font-display:'Space Grotesk',system-ui,-apple-system,'Segoe UI',sans-serif;
  --font-body:'DM Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  --font-mono:'JetBrains Mono',ui-monospace,'SF Mono',Menlo,Consolas,monospace;

  /* Type scale — Brand Book §5.2 (font shorthand: weight size/line family) */
  --type-display:500 32px/1.2 var(--font-display);
  --type-h1:500 22px/1.3 var(--font-display);
  --type-h2:500 16px/1.4 var(--font-body);
  --type-body:400 16px/1.55 var(--font-body);
  --type-small:400 14px/1.4 var(--font-body);
  --type-micro:500 11px/1.3 var(--font-body);
  --type-mono:400 14px/1.4 var(--font-mono);

  /* Spacing — 4px base, ARCH §6.3 */
  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:16px;
  --space-5:24px;
  --space-6:32px;
  --space-7:48px;
  --space-8:64px;

  /* Radius — Brand Book §9.3 */
  --radius-tile:6px;
  --radius-panel:8px;
  --radius-card:10px;
  --radius-hero:12px;

  /* Motion — Brand Book §9.4 / ARCH §6.5 */
  --transition-default:200ms ease-out;
  --transition-slow:400ms ease-out;

  /* Layout */
  --container-max:1100px;
}

/* --------------------------------------------------------------------------
   3. Reset (hand-written, minimal)
   -------------------------------------------------------------------------- */
*,*::before,*::after{box-sizing:border-box;}
*{margin:0;}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;}
body{min-height:100vh;line-height:1.55;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}
img,picture,svg,video{display:block;max-width:100%;height:auto;}
button,input,select,textarea{font:inherit;color:inherit;}
button{background:none;border:none;padding:0;cursor:pointer;}
a{color:inherit;text-decoration:none;}
ul[role="list"],ol[role="list"]{list-style:none;padding:0;}
:where(h1,h2,h3,h4){text-wrap:balance;}

/* --------------------------------------------------------------------------
   4. Base typography + canvas
   -------------------------------------------------------------------------- */
body{
  font:var(--type-body);
  color:var(--ogo-text);
  background:var(--ogo-bg);
}
h1{font:var(--type-display);}
h2{font:var(--type-h1);}
h3{font:var(--type-h2);}
p{max-width:68ch;}                              /* line length < 70ch, Brand §5.3 */
strong{font-weight:500;}                         /* never bold for emphasis, Brand §5.3 */
code,kbd,samp{font:var(--type-mono);}

/* All numeric data uses tabular figures (Brand §5.3 / ARCH §6.2) */
body{font-variant-numeric:tabular-nums;}

/* Selection uses the accent at low alpha */
::selection{background:rgba(82,226,208,0.22);color:var(--ogo-text);}

/* Focus rings — accent, ARCH §12 */
:focus-visible{outline:2px solid var(--ogo-glow);outline-offset:2px;border-radius:2px;}

/* Links inside prose */
.prose a,a.link{color:var(--ogo-glow);text-decoration:underline;text-underline-offset:2px;text-decoration-thickness:1px;transition:opacity var(--transition-default);}
.prose a:hover,a.link:hover{opacity:0.75;}

/* --------------------------------------------------------------------------
   5. Layout primitives
   -------------------------------------------------------------------------- */
.container{
  width:100%;
  max-width:var(--container-max);
  margin-inline:auto;
  padding-inline:clamp(var(--space-4),5vw,var(--space-8));
}
.stack{display:flex;flex-direction:column;}
.stack > * + *{margin-top:var(--stack-gap,var(--space-5));}

/* Screen-reader-only / skip link target */
.visually-hidden:not(:focus):not(:focus-within){
  position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

/* Skip-to-content link — first focusable element */
.skip-link{
  position:absolute;top:var(--space-2);left:var(--space-2);z-index:1000;
  background:var(--ui-panel);color:var(--ogo-text);
  padding:var(--space-2) var(--space-4);border-radius:var(--radius-panel);
  border:0.5px solid var(--ogo-line);
  transform:translateY(-150%);transition:transform var(--transition-default);
}
.skip-link:focus{transform:translateY(0);}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn{
  display:inline-flex;align-items:center;gap:var(--space-2);
  font:var(--type-small);font-weight:500;
  padding:var(--space-3) var(--space-5);
  border-radius:var(--radius-panel);
  border:0.5px solid transparent;
  transition:background var(--transition-default),color var(--transition-default),
             border-color var(--transition-default),opacity var(--transition-default);
}
.btn--primary{background:var(--ogo-glow);color:#04201c;border-color:var(--ogo-glow);}
.btn--primary:hover{opacity:0.88;}
.btn--secondary{background:transparent;color:var(--ogo-glow);border-color:var(--ogo-glow);}
.btn--secondary:hover{background:var(--ogo-glow-soft);}

/* --------------------------------------------------------------------------
   7. Site header
   -------------------------------------------------------------------------- */
.site-header{
  position:sticky;top:0;z-index:100;
  background:var(--ogo-bg);
  border-bottom:0.5px solid var(--ogo-line);
}
.site-header__inner{
  display:flex;align-items:center;justify-content:space-between;gap:var(--space-4);
  min-height:64px;
}
.site-header__brand{display:inline-flex;align-items:center;}
/* Readable wordmark size (restored). The square 1024x1024 lockup renders
   160px tall here; a faint edge may show on true black because the asset is
   flattened-to-near-black (not transparent). Readability wins for now; the
   real fix is a transparent-background regeneration (tracked in TODO). */
.site-header__brand img{width:160px;height:auto;}
.site-header__nav{display:flex;align-items:center;gap:var(--space-6);}
.site-header__nav a{
  font:var(--type-small);color:var(--ogo-text-muted);
  transition:color var(--transition-default);
}
.site-header__nav a:hover,.site-header__nav a:focus-visible{color:var(--ogo-text);}

/* Right-side controls cluster (CTA + hamburger) */
.site-header__controls{display:flex;align-items:center;gap:var(--space-4);}

/* Sticky CTA: visible by DEFAULT (no-JS fallback). When JS is present the
   .js flag hides it until .header-cta-visible is toggled by the observer. */
.site-header__cta{white-space:nowrap;}
.js .site-header__cta{
  opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-4px);
  transition:opacity var(--transition-default),transform var(--transition-default),visibility var(--transition-default);
}
.js .site-header.header-cta-visible .site-header__cta{
  opacity:1;visibility:visible;pointer-events:auto;transform:none;
}

/* Hamburger — hidden on desktop */
.site-header__menu{display:none;color:var(--ogo-text);padding:var(--space-2);}
.site-header__menu svg{width:24px;height:24px;}

/* Mobile drawer (collapsed nav) */
@media (max-width:767px){
  .site-header__brand img{width:120px;}
  .site-header__menu{display:inline-flex;}
  .site-header__nav{
    position:absolute;top:100%;left:0;right:0;
    flex-direction:column;align-items:stretch;gap:0;
    background:var(--ogo-bg-deep);
    border-bottom:0.5px solid var(--ogo-line);
    padding:var(--space-2) 0;
    /* collapsed by default */
    display:none;
  }
  .site-header__nav a{padding:var(--space-3) clamp(var(--space-4),5vw,var(--space-8));}
  .site-header[data-menu-open="true"] .site-header__nav{display:flex;}
  /* On mobile the wishlist CTA always shows (conversion-first, no scroll gate) */
  .js .site-header__cta{opacity:1;visibility:visible;pointer-events:auto;transform:none;}
}

/* --------------------------------------------------------------------------
   8. Site footer
   -------------------------------------------------------------------------- */
.site-footer{
  position:relative;
  border-top:0.5px solid var(--ogo-line);
  padding-block:var(--space-6);
}
.site-footer__brand{display:flex;align-items:center;gap:var(--space-3);margin-bottom:var(--space-6);}
.site-footer__brand img{width:32px;height:32px;}
.site-footer__brand span{font:var(--type-h2);font-family:var(--font-display);}
.site-footer__cols{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-6);
  max-width:760px;
}
.site-footer__col h2{
  font:var(--type-micro);text-transform:uppercase;letter-spacing:0.06em;
  color:var(--ogo-text-muted);margin-bottom:var(--space-3);
}
.site-footer__col ul{list-style:none;display:flex;flex-direction:column;gap:var(--space-2);}
.site-footer__col a{
  font:var(--type-small);color:var(--ogo-text-muted);
  transition:color var(--transition-default);
}
.site-footer__col a:hover,.site-footer__col a:focus-visible{color:var(--ogo-text);}
.site-footer__legal{
  margin-top:var(--space-7);font:var(--type-micro);color:var(--ogo-text-muted);
}
/* Sleeping beet easter egg — desktop only, quiet corner */
.site-footer__beet{
  position:absolute;right:clamp(var(--space-4),5vw,var(--space-8));bottom:var(--space-6);
  width:80px;height:auto;opacity:0.5;
  image-rendering:pixelated;pointer-events:none;
}
@media (max-width:767px){
  .site-footer__cols{grid-template-columns:1fr;gap:var(--space-6);}
  .site-footer__beet{display:none;}
}

/* --------------------------------------------------------------------------
   9. Motion system
   -------------------------------------------------------------------------- */

/* Animatable custom property for the wordmark glow pulse (ARCH §7.1 #3). */
@property --glow-alpha{syntax:'<number>';inherits:false;initial-value:0.16;}

.glow-pulse{position:relative;isolation:isolate;}
.glow-pulse::before{
  content:"";position:absolute;inset:-30%;z-index:-1;pointer-events:none;
  background:radial-gradient(closest-side circle,
            rgb(82 226 208 / var(--glow-alpha)) 0%, transparent 72%);
  animation:glow-pulse var(--glow-duration,4s) ease-in-out infinite alternate;
}
@keyframes glow-pulse{
  from{--glow-alpha:0.08;}
  to{--glow-alpha:0.30;}
}

/* --------------------------------------------------------------------------
   10. SVG fractal-noise overlay (tactile printed feel). Inline data URI,
       no network request. feTurbulence baseFrequency 0.9, numOctaves 2.
   -------------------------------------------------------------------------- */
body::before{
  content:"";position:fixed;inset:0;z-index:900;
  pointer-events:none;mix-blend-mode:overlay;opacity:0.05;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   11. Cursor spotlight (hero scope only, CSS-driven by --cursor-x/-y)
   -------------------------------------------------------------------------- */
.hero{position:relative;overflow:hidden;}
.hero > *{position:relative;z-index:1;}      /* lift content above the spotlight */
.hero::after{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:radial-gradient(400px circle at var(--cursor-x,50%) var(--cursor-y,30%),
            rgb(82 226 208 / 0.10) 0%, transparent 60%);
  transition:background var(--transition-default);
}
@media (pointer:coarse){.hero::after{display:none;}}

/* --------------------------------------------------------------------------
   12. Shell-preview helpers (demo page only; removed when shell.html is)
   -------------------------------------------------------------------------- */
.hero{padding-block:var(--space-8);}
.eyebrow{font:var(--type-micro);text-transform:uppercase;letter-spacing:0.06em;color:var(--ogo-glow);}
.lede{color:var(--ogo-text-muted);max-width:60ch;}
.section{padding-block:var(--space-7);border-top:0.5px solid var(--ogo-line);}

.swatch-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:var(--space-3);
  list-style:none;
}
.swatch{
  border:0.5px solid var(--ogo-line);border-radius:var(--radius-card);
  overflow:hidden;background:var(--ui-panel);
}
.swatch__chip{height:64px;}
.swatch__meta{padding:var(--space-3);}
.swatch__name{font:var(--type-small);font-weight:500;}
.swatch__hex{font:var(--type-mono);color:var(--ogo-text-muted);}

.specimen{display:flex;flex-direction:column;gap:var(--space-4);}
.specimen__row{display:flex;flex-direction:column;gap:var(--space-1);}
.specimen__label{font:var(--type-mono);color:var(--ogo-text-muted);}
.t-display{font:var(--type-display);}
.t-h1{font:var(--type-h1);}
.t-h2{font:var(--type-h2);}
.t-body{font:var(--type-body);}
.t-small{font:var(--type-small);}
.t-micro{font:var(--type-micro);text-transform:uppercase;letter-spacing:0.06em;}
.t-mono{font:var(--type-mono);}

.btn-row{display:flex;flex-wrap:wrap;gap:var(--space-4);align-items:center;}
.glow-demo{
  display:inline-flex;align-items:center;justify-content:center;
  padding:var(--space-6) var(--space-7);border-radius:var(--radius-hero);
  border:0.5px solid var(--ogo-line);background:var(--ogo-bg-deep);
  font:var(--type-h1);
}
.filler{color:var(--ogo-text-muted);max-width:68ch;}
.filler + .filler{margin-top:var(--space-4);}

/* --------------------------------------------------------------------------
   13. Reduced motion — disable every animation and transition (ARCH §7.3)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:0.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.001ms !important;
    scroll-behavior:auto !important;
  }
  .glow-pulse::before{animation:none;--glow-alpha:0.16;}
  .hero::after{display:none;}
}

/* ==========================================================================
   === LANDING (index.html) ===
   Styles specific to the rebuilt landing page. Tokens only, no new colors
   or fonts. Scroll reveals + load fade are progressive enhancement: every
   block is fully visible if @supports / JS / motion are unavailable.
   ========================================================================== */

/* ---- Hero (home variant) ---- */
/* No min-height:100vh -- a centered full-viewport hero left ~240px of dead
   space below its content before the next section. Hero is content-sized like
   every other section; it just gets a little more top room under the header.
   Section rhythm: every section pads 32px block (16px mobile), so every
   section-to-section gap is a consistent 64px desktop / 32px mobile. */
.hero--home{
  display:flex;flex-direction:column;align-items:center;
  text-align:center;
  padding-top:var(--space-8);padding-bottom:var(--space-6);
}
.hero--home .hero-sentinel{position:absolute;top:0;left:0;width:1px;height:1px;}
.hero__inner{display:flex;flex-direction:column;align-items:center;gap:var(--space-5);}
.hero h1{
  font:var(--type-display);
  font-size:clamp(34px,6vw,60px);line-height:1.08;letter-spacing:-0.02em;
  max-width:18ch;
}
.hero h1 .line{display:block;}
.hero__subline{
  font:var(--type-body);font-size:clamp(16px,2.2vw,19px);
  color:var(--ogo-text-muted);max-width:48ch;
}
.status-block{
  font:var(--type-mono);color:var(--ogo-text-muted);
  display:flex;flex-direction:column;gap:var(--space-1);align-items:center;
}

/* Cyan tinted headline line with a soft animated halo */
@property --halo-alpha{syntax:'<number>';inherits:false;initial-value:0.18;}
.glow-text{color:var(--ogo-glow);text-shadow:0 0 28px rgb(82 226 208 / var(--halo-alpha,0.18));}
@media (prefers-reduced-motion:no-preference){
  .glow-text{animation:glow-text-pulse 4s ease-in-out infinite alternate;}
}
@keyframes glow-text-pulse{from{--halo-alpha:0.12;}to{--halo-alpha:0.42;}}

/* ---- Shared CTA row ---- */
.cta-row{display:flex;flex-wrap:wrap;gap:var(--space-4);justify-content:center;}
.cta-row .btn{font-size:15px;padding:var(--space-3) var(--space-6);}
@media (max-width:520px){
  .cta-row{flex-direction:column;align-items:stretch;width:100%;max-width:320px;margin-inline:auto;}
  .cta-row .btn{justify-content:center;}
}

/* ---- Page-load fade-in for the hero (JS + motion only; safe fallback) ---- */
@media (prefers-reduced-motion:no-preference){
  html.js .hero__inner > *{opacity:0;transform:translateY(12px);}
  html.js body.loaded .hero__inner > *{
    opacity:1;transform:none;
    transition:opacity .6s ease-out,transform .6s ease-out;
  }
  html.js body.loaded .hero__inner > *:nth-child(2){transition-delay:.08s;}
  html.js body.loaded .hero__inner > *:nth-child(3){transition-delay:.16s;}
  html.js body.loaded .hero__inner > *:nth-child(4){transition-delay:.24s;}
}

/* ---- GeoFlag showcase ---- */
.showcase{padding-block:var(--space-6);border-top:0.5px solid var(--ogo-line);}
.showcase__inner{display:flex;flex-direction:column;gap:var(--space-5);}
.showcase h2{font:var(--type-display);font-size:clamp(28px,4vw,40px);}
.showcase__desc{font:var(--type-body);max-width:60ch;}
/* width:100% is load-bearing: without it WebKit sizes this flex item to the
   image's intrinsic width (1920px) and overflows the viewport on mobile. */
.showcase__shot{width:100%;max-width:880px;border-radius:var(--radius-hero);overflow:hidden;align-self:flex-start;}
.showcase__shot img{display:block;width:100%;height:auto;border-radius:var(--radius-hero);border:0.5px solid var(--ogo-line);}

.mode-chips{display:flex;flex-wrap:wrap;gap:var(--space-2);list-style:none;padding:0;}
.mode-chip{
  font:var(--type-micro);text-transform:uppercase;letter-spacing:0.06em;
  color:var(--ogo-text);border:0.5px solid var(--ogo-line);
  border-radius:var(--radius-tile);padding:var(--space-2) var(--space-3);
}
.mode-chip::before{content:"\25B8";color:var(--ogo-text-muted);margin-right:var(--space-1);}

/* Horizontal scroll-snap gallery. Items are sized by WIDTH (a fixed desktop
   width / a share of the viewport on mobile), never by the image's natural
   width, so they can never overflow. Heights follow each shot's ratio. */
.screenshot-gallery{
  display:flex;gap:var(--space-4);align-items:flex-start;
  overflow-x:auto;scroll-snap-type:x mandatory;
  padding-bottom:var(--space-3);overscroll-behavior-x:contain;
}
.screenshot-gallery > picture{flex:0 0 auto;scroll-snap-align:center;width:480px;max-width:85vw;}
.screenshot-gallery img{
  display:block;width:100%;height:auto;
  border-radius:var(--radius-card);border:0.5px solid var(--ogo-line);
}
@media (max-width:767px){
  .screenshot-gallery > picture{width:85vw;}
}

/* ---- Studio strip ---- */
.studio-strip{padding-block:var(--space-6);border-top:0.5px solid var(--ogo-line);}
.studio-strip__inner{display:grid;grid-template-columns:200px 1fr;gap:var(--space-7);align-items:center;}
.studio-strip__img img{width:200px;height:auto;image-rendering:pixelated;}
.studio-strip__text{display:flex;flex-direction:column;gap:var(--space-4);}
.studio-strip__text p{font:var(--type-body);max-width:54ch;}
@media (max-width:767px){
  .studio-strip__inner{grid-template-columns:1fr;gap:var(--space-5);}
  .studio-strip__img img{width:200px;}
}

/* ---- Soft close ---- */
.close{
  padding-block:var(--space-6);border-top:0.5px solid var(--ogo-line);
  display:flex;flex-direction:column;align-items:center;gap:var(--space-5);text-align:center;
}
.close__lead{font:var(--type-h1);font-family:var(--font-display);font-size:clamp(22px,3vw,30px);max-width:26ch;}
/* Horizontal centering only. The close children are max-width blocks; without
   auto inline-margins they sit left-aligned and text-align:center merely
   centers text inside that left box. margin-inline:auto centers the boxes.
   No vertical effect (inline margins only) -- section rhythm untouched. */
.close .container > *{margin-inline:auto;}

/* ---- Consistent vertical rhythm on mobile: every section pads 16px block
   (hero a touch more on top), giving a uniform 32px section-to-section gap. ---- */
@media (max-width:767px){
  .showcase,.studio-strip,.close,.site-footer{padding-block:var(--space-4);}
  .hero--home{padding-top:var(--space-6);padding-bottom:var(--space-4);}
}

/* ---- Scroll-driven reveals (showcase + studio strip) ----
   PROGRESSIVE ENHANCEMENT, hard rule: content is fully visible at rest. The
   reveal is TRANSFORM-ONLY (a small slide-up); opacity is never touched, so
   nothing here can ever hide a section. Previous version set opacity:0 and
   relied on the view() timeline to animate it back to 1 -- but a below-fold
   element whose timeline never advances (some WebKit builds report
   animation-timeline support via @supports yet never run the animation) stayed
   stuck at opacity:0, making the showcase + studio strip permanently invisible.
   Worst case now: an element sits 16px lower than final. Always readable. */
@keyframes reveal-in{from{transform:translateY(16px);}to{transform:translateY(0);}}
@supports (animation-timeline:view()){
  @media (prefers-reduced-motion:no-preference){
    .reveal{animation:reveal-in linear both;animation-timeline:view();animation-range:entry 0% cover 22%;}
    .reveal.r2{animation-range:entry 6% cover 26%;}
    .reveal.r3{animation-range:entry 12% cover 30%;}
    .reveal.r4{animation-range:entry 18% cover 34%;}
    .reveal.r5{animation-range:entry 24% cover 38%;}
  }
}

/* ==========================================================================
   === ABOUT PAGE (about.html) ===
   Reuses the shell + landing patterns (.container, .cta-row, buttons, .close
   with margin-inline:auto centering, .reveal). Only the intro/why/studio/facts
   need rules. Section rhythm matches the landing: --space-6 desktop / --space-4
   mobile, with the first section getting a little more top room under the header.
   ========================================================================== */
.about-intro{padding-top:var(--space-8);padding-bottom:var(--space-6);}
.about-intro__inner{display:grid;grid-template-columns:200px 1fr;gap:var(--space-7);align-items:center;}
.about-intro__img img{width:200px;height:auto;image-rendering:pixelated;}
.about-intro__text{display:flex;flex-direction:column;gap:var(--space-4);}
.about-intro__text p{max-width:60ch;}

.about-why,.about-studio,.about-facts{padding-block:var(--space-6);border-top:0.5px solid var(--ogo-line);}
.about-why .container,.about-studio .container{display:flex;flex-direction:column;gap:var(--space-4);}
.about-why p,.about-studio p{max-width:62ch;}

/* Quiet key/value facts strip: JetBrains Mono, muted keys, tabular figures.
   Shared by the About facts and the Press fast-facts + contact strips. */
.about-facts dl,.press-facts dl,.press-contact dl{
  display:grid;grid-template-columns:max-content 1fr;
  column-gap:var(--space-7);row-gap:var(--space-2);
  font:var(--type-mono);max-width:max-content;
}
.about-facts dt,.press-facts dt,.press-contact dt{color:var(--ogo-text-muted);}
.about-facts dd,.press-facts dd,.press-contact dd{margin:0;color:var(--ogo-text);}

@media (max-width:767px){
  .about-intro{padding-top:var(--space-6);padding-bottom:var(--space-4);}
  .about-why,.about-studio,.about-facts{padding-block:var(--space-4);}
  .about-intro__inner{grid-template-columns:1fr;gap:var(--space-5);}
  .about-intro__img img{width:160px;}
}

/* ==========================================================================
   === PRESS KIT PAGE (press.html) ===
   Reuses the shell + landing/about patterns (.container, .screenshot-gallery,
   .cta-row, buttons, .reveal, the facts-strip dl above). Section rhythm matches
   the rest of the site: --space-6 desktop / --space-4 mobile, first section
   gets more top room under the header.
   ========================================================================== */
.press-hero{padding-top:var(--space-8);padding-bottom:var(--space-6);}
.press-hero__inner{display:grid;grid-template-columns:200px 1fr;gap:var(--space-7);align-items:center;}
.press-hero__img img{width:200px;height:auto;image-rendering:pixelated;}
.press-hero__text{display:flex;flex-direction:column;gap:var(--space-4);}
.press-hero__text p{max-width:60ch;}

.press-facts,.press-about-game,.press-keyfacts,.press-screenshots,.press-logos,.press-contact{
  padding-block:var(--space-6);border-top:0.5px solid var(--ogo-line);
}
.press-facts .container,.press-about-game .container,.press-keyfacts .container,.press-screenshots .container,.press-logos .container,.press-contact .container{
  display:flex;flex-direction:column;gap:var(--space-4);
}
.press-about-game p{max-width:62ch;}

/* Key facts: simple bulleted list with a cyan triangle marker */
.press-keyfacts ul{list-style:none;padding:0;display:flex;flex-direction:column;gap:var(--space-2);max-width:64ch;}
.press-keyfacts li{position:relative;padding-left:var(--space-5);}
.press-keyfacts li::before{content:"\25B8";position:absolute;left:0;color:var(--ogo-glow);}

.press-note{font:var(--type-small);color:var(--ogo-text-muted);max-width:64ch;}
.press-downloads{display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-5);}

.press-logos__grid{display:flex;flex-wrap:wrap;gap:var(--space-7);align-items:flex-end;}
.press-logo{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-2);}
.press-logo__wordmark{width:200px;height:auto;}
.press-logo__icon{width:64px;height:64px;}

@media (max-width:767px){
  .press-hero{padding-top:var(--space-6);padding-bottom:var(--space-4);}
  .press-facts,.press-about-game,.press-keyfacts,.press-screenshots,.press-logos,.press-contact{padding-block:var(--space-4);}
  .press-hero__inner{grid-template-columns:1fr;gap:var(--space-5);}
  .press-hero__img img{width:160px;}
}

/* ==========================================================================
   === CONTENT PAGES (support, privacy, eula, credits, blog index) ===
   Single readable column in the shell. Reuses tokens + buttons. Prose capped
   near 70ch per Brand Book §5.3.
   ========================================================================== */
.page-main{display:flex;flex-direction:column;gap:var(--space-6);padding-top:var(--space-8);padding-bottom:var(--space-8);}
.prose{max-width:70ch;display:flex;flex-direction:column;gap:var(--space-4);}
.prose h2{margin-top:var(--space-4);}        /* extra separation before a section */
.prose ul{margin:0;padding-left:var(--space-5);display:flex;flex-direction:column;gap:var(--space-2);}
.prose a{color:var(--ogo-glow);text-decoration:underline;text-underline-offset:2px;text-decoration-thickness:1px;}
.prose a:hover{opacity:0.78;}
.prose .fine{font:var(--type-small);color:var(--ogo-text-muted);}
.legal-updated{font:var(--type-small);color:var(--ogo-text-muted);}

/* Support FAQ: native <details> accordion, zero JS */
.faq{display:flex;flex-direction:column;gap:var(--space-2);max-width:70ch;}
.faq details{border:0.5px solid var(--ogo-line);border-radius:var(--radius-panel);background:var(--ui-panel);}
.faq summary{padding:var(--space-3) var(--space-4);font-weight:500;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:var(--space-4);}
.faq summary::-webkit-details-marker{display:none;}
.faq summary::after{content:"+";color:var(--ogo-text-muted);}
.faq details[open] summary::after{content:"\2212";}
.faq details > p{margin:0;padding:0 var(--space-4) var(--space-3);color:var(--ogo-text-muted);}

/* Support contact form */
.support-form{display:flex;flex-direction:column;gap:var(--space-4);max-width:70ch;}
.support-form .field{display:flex;flex-direction:column;gap:var(--space-1);}
.support-form label{font:var(--type-small);color:var(--ogo-text-muted);}
.support-form input,.support-form select,.support-form textarea{
  width:100%;background:var(--ui-panel);color:var(--ogo-text);
  border:0.5px solid var(--ogo-line);border-radius:var(--radius-panel);
  padding:var(--space-3);font:var(--type-body);
}
.support-form textarea{min-height:8rem;resize:vertical;}
.support-form input:focus,.support-form select:focus,.support-form textarea:focus{outline:2px solid var(--ogo-glow);outline-offset:2px;}
.support-form button{align-self:flex-start;}

/* Blog index */
.blog-list{display:flex;flex-direction:column;gap:var(--space-6);max-width:70ch;}
.blog-post__date{font:var(--type-mono);color:var(--ogo-text-muted);}
.blog-post__title{font:var(--type-h1);margin-top:var(--space-1);}
.blog-post__title a{color:var(--ogo-text);text-decoration:none;}
.blog-post__title a:hover{color:var(--ogo-glow);}
.blog-post__excerpt{color:var(--ogo-text-muted);margin-top:var(--space-2);max-width:62ch;}

/* 404 — centered, reuses the .close centering approach (margin-inline:auto) */
.error{
  min-height:60vh;padding-block:var(--space-8);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:var(--space-5);text-align:center;
}
.error .container > *{margin-inline:auto;}
/* img is display:block (reset), so center it within its full-width wrapper */
.error__img img{width:240px;height:auto;image-rendering:pixelated;margin-inline:auto;}
.error__lead{font:var(--type-display);max-width:20ch;}

@media (max-width:767px){
  .page-main{padding-top:var(--space-6);padding-bottom:var(--space-6);}
  .error__img img{width:180px;}
}
