/* Yount Studios · design contract v2 "Miniatur-Werkstatt" (see DESIGN.md) */

:root {
  --paper: #f6f3e9;
  --paper-2: #ede6d6;
  --ink: #183f35;
  --muted: #52635a;
  --night: #10261f;
  --night-2: #183229;
  --on-night: #f6f3e9;
  --on-night-soft: #b7c3b6;
  --coral: #f07a5a;
  --coral-hover: #f48d71;
  --coral-deep: #b8452c;
  --butter: #f9cc69;
  --line: rgb(24 63 53 / .16);
  --line-night: rgb(246 243 233 / .16);
  --scrim: 16 38 31;
  --scrim-warm: 34 22 13;

  --display: 'Bricolage Grotesque', Georgia, serif;
  --body: 'DM Sans', system-ui, sans-serif;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --fast: 180ms;
  --reveal: 700ms;
  --press: .98;

  --r-control: 12px;
  --r-media: 28px;

  --container: 1320px;
  --gutter: 60px;
  --s-section: 160px;
  --s-connect: 112px;
  --header-h: 88px;
}

@media (max-width: 1279px) { :root { --gutter: 40px; } }
@media (max-width: 799px) { :root { --gutter: 20px; --s-section: 96px; --s-connect: 72px; --header-h: 76px; } }

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .28em; }
a, summary { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, figure, ul { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.045em; text-wrap: balance; }
h2 { font-size: clamp(38px, 4.4vw, 64px); line-height: 1; }
h3 { font-size: 30px; line-height: 1.1; letter-spacing: -.03em; font-weight: 700; }
p { max-width: 62ch; text-wrap: pretty; }
address { font-style: normal; }
button, input, summary { font: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.chapter-night :focus-visible, .footer :focus-visible, .starts-dark .header :focus-visible { outline-color: var(--butter); }
.wrap { width: min(var(--container), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 50; padding: 12px 20px; background: var(--ink); color: var(--paper); border-radius: var(--r-control); }
.skip:focus { top: 12px; }

.eyebrow { font: 700 13px/1.4 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.lead { font-size: 21px; line-height: 1.5; }
.coral-dot { color: var(--coral-deep); }
.arrow { display: inline-block; transition: transform var(--fast) var(--ease-out); }
.text-link:active, .help-links a:active, .mail-cta:active, .footer a:active, .mobile-menu nav a:active, .desktop-nav a:active, .header-contact:active, .back-link:active, .faq summary:active { opacity: .6; }

.button {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 0 22px 0 26px;
  border-radius: var(--r-control);
  background: var(--coral); color: var(--night);
  font: 700 16px/1.1 var(--body); text-decoration: none;
  transition: background-color var(--fast) var(--ease-out), transform var(--fast) var(--ease-out);
}
.button .arrow { font-size: 20px; }
.button--app { padding-left: 8px; }
.button-icon { width: 40px; height: 40px; border-radius: 22.5%; flex: none; }
.button--app .button-label { margin-right: auto; }
.button:active { transform: scale(var(--press)); }

.text-link {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; font: 700 16px/1.2 var(--body);
  text-decoration: none; border-bottom: 1.5px solid currentColor;
}
.text-link .arrow { font-size: 18px; }

.status { display: inline-flex; align-items: center; gap: 10px; font: 600 14px/1.4 var(--body); }
.status > span { width: 8px; height: 8px; border-radius: 50%; background: var(--butter); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--coral-hover); }
  .button:hover .arrow, .text-link:hover .arrow, .help-links a:hover .arrow, .header-contact:hover .arrow, .footer-cta:hover .arrow { transform: translate(2px, -2px); }
  .text-link:hover { color: var(--muted); }
  .chapter-night .text-link:hover, .footer a:hover { color: var(--butter); }
}

/* ---------- Header ---------- */

.header { position: relative; z-index: 20; }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 40px; }
.home .header { position: absolute; top: 0; left: 0; right: 0; }
.starts-dark .header { background: var(--night); color: var(--on-night); }
.brand { display: block; line-height: .74; text-decoration: none; margin-right: auto; }
.wordmark { display: inline-flex; flex-direction: column; font: 800 38px/1 var(--display); letter-spacing: -.075em; }
.wordmark-bottom { font-size: 26px; line-height: 1.02; letter-spacing: -.05em; }
.wordmark-dot { color: var(--coral); }
.desktop-nav { display: flex; align-items: center; gap: 36px; }
.desktop-nav a, .header-contact { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 600 15px/1 var(--body); text-decoration: none; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--fast) var(--ease-out); }
.desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-contact { border-bottom: 1.5px solid currentColor; min-height: 40px; }
.header-contact .arrow { font-size: 18px; }
.mobile-menu { display: none; }
@media (hover: hover) and (pointer: fine) { .desktop-nav a:hover::after { transform: scaleX(1); } }

/* ---------- Portal film (home hero) ---------- */
/* Static layout = no JS / reduced motion. Live layout = .js + no-preference (pinned, scroll-scrubbed). */

.portal { position: relative; background: var(--paper); --arch-w: min(46vw, 700px); }
.portal-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--arch-w);
  grid-template-areas: "hook frame" "studio studio";
  column-gap: 56px; row-gap: var(--s-connect);
  padding: calc(var(--header-h) + 32px) var(--gutter) 0;
}
.portal-frame {
  grid-area: frame;
  position: relative; isolation: isolate;
  height: max(520px, calc(100svh - var(--header-h) - 64px));
  border-radius: calc(var(--arch-w) / 2) calc(var(--arch-w) / 2) var(--r-media) var(--r-media);
  overflow: hidden; background: var(--paper-2);
  animation: frame-in 900ms var(--ease-out) 80ms both;
}
.portal-poster img, .portal-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  transform-origin: var(--media-ox, 50%) var(--media-oy, 50%);
  transform: translate3d(var(--media-x, 0px), var(--media-y, 0px), 0) scale(var(--media-s, 1));
}
.portal-video { opacity: 0; transition: opacity 420ms var(--ease-out); }
.portal-video.is-on { opacity: 1; }
.portal-scrim { display: none; }
.portal-credit {
  grid-area: frame; align-self: end; justify-self: end; position: relative; z-index: 3;
  transform: translateY(calc(100% + 10px));
  font: 500 12px/1.3 var(--body); color: var(--muted);
  transition: color 240ms var(--ease-out), text-shadow 240ms var(--ease-out);
}
.portal-studio-credit { position: absolute; top: calc(100% + 10px); right: 0; font: 500 12px/1.3 var(--body); color: var(--muted); }
.portal-hook { grid-area: hook; align-self: center; padding-bottom: 48px; }
.hero-title { font-size: clamp(52px, min(7vw, 11.6svh), 124px); line-height: .92; letter-spacing: -.05em; margin-bottom: 32px; }
.hero-title span { display: block; }
.hero-title br { display: none; }
.portal-hook-foot .lead { max-width: 30ch; margin-bottom: 36px; }
.portal-studio {
  grid-area: studio; position: relative; isolation: isolate;
  min-height: min(84svh, 760px); border-radius: var(--r-media); margin-bottom: 26px;
  display: flex; align-items: flex-end; color: var(--on-night); background: var(--night);
}
.portal-studio-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-media); }
.portal-studio::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; background: radial-gradient(90% 78% at 0% 100%, rgb(var(--scrim-warm) / .9) 0%, rgb(var(--scrim-warm) / .82) 42%, rgb(var(--scrim-warm) / 0) 78%); }
.portal-studio-copy { position: relative; z-index: 2; padding: 56px; max-width: 640px; }
.portal-studio-copy .eyebrow { color: var(--on-night); }
.portal-studio-copy h2 { font-size: clamp(34px, 3.8vw, 56px); line-height: 1.04; margin-bottom: 20px; }
.portal-studio-copy p:last-child { font-size: 20px; color: var(--on-night); }
.portal-hint { display: none; }

/* Entrance (once, on load) */
.portal-hook-top .eyebrow, .hero-title span, .portal-hook-foot > * { animation: rise 650ms var(--ease-out) both; }
.hero-title span:nth-of-type(1) { animation-delay: 60ms; }
.hero-title span:nth-of-type(2) { animation-delay: 120ms; }
.hero-title span:nth-of-type(3) { animation-delay: 180ms; }
.hero-title span:nth-of-type(4) { animation-delay: 240ms; }
.portal-hook-foot > :nth-child(1) { animation-delay: 300ms; }
.portal-hook-foot > :nth-child(2) { animation-delay: 360ms; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
@keyframes frame-in { from { opacity: 0; transform: translate3d(0, 24px, 0) scale(.97); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .js .portal:not(.is-static) { height: var(--track, 330svh); }
  .js .portal:not(.is-static) .portal-stage { position: sticky; top: 0; height: 100vh; height: 100lvh; display: block; padding: 0; overflow: hidden; }
  .js .portal:not(.is-static) .portal-frame {
    position: absolute; inset: 0; height: auto; border-radius: 0;
    clip-path: inset(var(--ct, calc(var(--header-h) + 32px)) var(--cr, var(--gutter)) var(--cb, 32px) var(--cl, calc(100% - var(--arch-w) - var(--gutter))) round var(--crt, calc(var(--arch-w) / 2)) var(--crt, calc(var(--arch-w) / 2)) var(--crb, var(--r-media)) var(--crb, var(--r-media)));
  }
  .js .portal:not(.is-static) .portal-credit { position: absolute; z-index: 5; margin: 0; transform: none; align-self: auto; justify-self: auto; right: calc(var(--gutter) + 4px); bottom: max(12px, calc(var(--cb, 32px) - 24px)); bottom: max(calc(12px + 100lvh - 100svh), calc(var(--cb, 32px) - 24px)); }
  /* Once the film is full-bleed, a low warm band keeps the credit legible over any frame. */
  .js .portal:not(.is-static) .portal-frame::after { content: ""; position: absolute; inset: auto 0 0; height: 168px; z-index: 2; pointer-events: none; background: linear-gradient(0deg, rgb(var(--scrim-warm) / .74) 0%, rgb(var(--scrim-warm) / .52) 30%, rgb(var(--scrim-warm) / 0) 100%); opacity: 0; transition: opacity 240ms var(--ease-out); }
  .js .portal.is-open .portal-frame::after { opacity: 1; }
  .js .portal.is-full:not(.is-static) .portal-frame { clip-path: none; }
  .js .portal.is-full:not(.is-static) .portal-poster img, .js .portal.is-full:not(.is-static) .portal-video { transform: none; }
  .js .portal.is-open .portal-credit { color: var(--on-night); text-shadow: 0 1px 8px rgb(var(--scrim-warm) / .9); }
  .js .portal:not(.is-static) .portal-studio-credit { display: none; }
  .js .portal:not(.is-static) .portal-hook {
    position: absolute; inset: 0; z-index: 4; pointer-events: none; align-self: stretch; justify-self: stretch;
    display: flex; flex-direction: column; justify-content: center;
    padding: var(--header-h) calc(var(--arch-w) + var(--gutter) + 56px) 48px var(--gutter);
    opacity: var(--hook-o, 1); transform: translate3d(0, var(--hook-y, 0px), 0);
  }
  .js .portal:not(.is-static) .portal-hook a { pointer-events: auto; }
  .js .portal:not(.is-static) .portal-studio { position: absolute; inset: 0; z-index: 3; min-height: 0; margin: 0; border-radius: 0; background: none; opacity: var(--studio-o, 0); pointer-events: none; }
  .js .portal:not(.is-static) .portal-studio-img { display: none; }
  .js .portal:not(.is-static) .portal-studio::before { background: radial-gradient(64% 72% at 0% 100%, rgb(var(--scrim-warm) / .9) 0%, rgb(var(--scrim-warm) / .82) 46%, rgb(var(--scrim-warm) / 0) 100%); }
  .js .portal:not(.is-static) .portal-studio-copy { position: absolute; left: var(--gutter); bottom: 13svh; bottom: calc(13svh + 100lvh - 100svh); padding: 0; transform: translate3d(0, var(--studio-y, 0px), 0); }
  .js .portal:not(.is-static) .portal-hint {
    display: flex; align-items: center; gap: 14px; position: absolute; left: var(--gutter); bottom: 32px; bottom: calc(32px + 100lvh - 100svh); z-index: 4;
    font: 600 13px/1 var(--body); color: var(--muted); opacity: var(--hint-o, 1);
  }
  .js .portal:not(.is-static) .portal-hint span { width: 1px; height: 28px; background: currentColor; }
}
@media (min-width: 900px) and (max-height: 800px) {
  .portal-hook-foot .lead { font-size: 19px; margin-bottom: 28px; }
  .js .portal:not(.is-static) .portal-hint { display: none; }
}

/* ---------- Story ---------- */

.story { padding-block: var(--s-section); }
.story-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.statement { grid-column: 1 / 11; font-size: clamp(34px, 4vw, 58px); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; }
.story-body { grid-column: 1 / -1; margin-top: 64px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; align-items: start; }
.story-body .signature { grid-column: 2; }
.signature { font: 600 32px/1.2 var(--display); letter-spacing: -.045em; padding-top: 16px; }
.signature span { font-weight: 400; margin-inline: 6px; color: var(--coral-deep); }

/* ---------- Night chapters ---------- */

.chapter-night { background: var(--night); color: var(--on-night); }
.chapter-night .eyebrow { color: var(--on-night-soft); }

.game-chapter { padding-block: var(--s-section) var(--s-connect); overflow: hidden; }
.game-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; align-items: center; }
.game-title { margin: 0 0 28px; }
.game-logo { width: min(400px, 90%); margin-left: -12px; }
.game-intro .lead { margin-bottom: 24px; }
.game-intro .status { margin-bottom: 36px; }
.game-note { grid-column: 1 / -1; margin-top: 56px; font-size: 13px; color: var(--on-night-soft); max-width: none; }


/* Real development screenshots: flat, with the display's own corner radius. One lead, two small, top and bottom flush. */
.screens { --sh: clamp(520px, 44vw, 640px); --sg: 20px; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 28px; row-gap: var(--sg); align-items: end; }
.screen { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; align-items: end; }
.screen img { width: auto; height: calc((var(--sh) - var(--sg)) / 2); aspect-ratio: 620 / 1342; object-fit: cover; border-radius: 11% / 5.1%; }
.screen figcaption { font-size: 14px; line-height: 1.45; color: var(--on-night-soft); max-width: 22ch; }
.screen--lead { grid-row: 1 / 3; display: block; position: relative; }
.screen--lead img { height: var(--sh); }
.screen--lead figcaption { position: absolute; top: calc(100% + 14px); left: 0; right: 0; max-width: none; }
.zooberei .screens { --sh: clamp(520px, 44vw, 640px); }
.game-chapter .screens { --sh: clamp(560px, min(52vw, 84svh), 760px); }
.worlds { margin-top: var(--s-connect); padding-top: 56px; border-top: 1px solid var(--line-night); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
.worlds-title { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; max-width: 14ch; }
.worlds-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.worlds-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-night); font: 700 clamp(20px, 1.8vw, 24px)/1.2 var(--display); letter-spacing: -.03em; }
.worlds-list small { font: 700 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--on-night-soft); white-space: nowrap; }
.worlds-list .is-free small { color: var(--on-night); }

/* ---------- Parents ---------- */

.parents { padding-block: var(--s-section); }
.parents-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }
.parents-head h2 { margin-bottom: 24px; max-width: 12ch; }
.parents-statement { font: 700 clamp(26px, 2.6vw, 36px)/1.2 var(--display); letter-spacing: -.03em; max-width: 26ch; margin-bottom: 40px; }
.facts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.facts li { padding: 16px 0; border-top: 1px solid var(--line); font-size: 17px; color: var(--muted); }

/* ---------- Closing (Berlin portal) ---------- */

.closing { padding-block: var(--s-section) var(--s-connect); }
.closing-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 88px; align-items: center; }
.closing-portal {
  position: relative; isolation: isolate; aspect-ratio: 3 / 4; overflow: hidden; background: var(--night-2);
  border-radius: 50% 50% var(--r-media) var(--r-media) / 37.5% 37.5% var(--r-media) var(--r-media);
}
.closing-portal img, .closing-portal video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.closing-portal video { opacity: 0; transition: opacity 600ms var(--ease-out); }
.closing-portal video.is-on { opacity: 1; }
.closing-figure { margin: 0; }
.closing-figure figcaption { margin-top: 14px; font: 500 12px/1.3 var(--body); color: var(--on-night-soft); text-align: center; }
.closing-copy h2 { margin-bottom: 28px; }
.closing-copy .lead { color: var(--on-night-soft); margin-bottom: 40px; }
.mail-cta { display: inline-flex; align-items: center; min-height: 44px; font: 700 clamp(22px, 2.2vw, 30px)/1.2 var(--display); letter-spacing: -.03em; color: var(--on-night); text-decoration: none; border-bottom: 2px solid var(--coral); padding-bottom: 2px; overflow-wrap: anywhere; }
.help-links { margin-top: 56px; }
.help-links a { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line-night); text-decoration: none; }
.help-links a:last-child { border-bottom: 1px solid var(--line-night); }
.help-links strong { display: block; font-size: 19px; font-weight: 600; }
.help-links small { display: block; margin-top: 2px; font-size: 14px; color: var(--on-night-soft); }
.help-links .arrow { font-size: 26px; }
@media (hover: hover) and (pointer: fine) { .mail-cta:hover { color: var(--butter); } }

/* ---------- Notice & footer ---------- */

.footer { background: var(--night); color: var(--on-night); padding-top: 56px; padding-bottom: 24px; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.footer-top p { font-size: 19px; line-height: 1.5; }
.footer-cta { display: inline-flex; gap: 16px; font: 700 30px/1.2 var(--display); letter-spacing: -.04em; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 4px; }
.footer-name { font: 800 clamp(30px, 2.6vw, 38px)/1.1 var(--display); letter-spacing: -.06em; white-space: nowrap; margin-bottom: 24px; }
.footer-name span { color: var(--coral); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; border-top: 1px solid var(--line-night); font-size: 13px; color: var(--on-night-soft); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--on-night); }

/* ---------- Inner pages ---------- */

.page-head { padding-top: 48px; padding-bottom: 64px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 40px; font-size: 14px; color: var(--muted); text-decoration: none; }
.chapter-night .back-link { color: var(--on-night-soft); }
.page-head h1 { font-size: clamp(52px, 6.4vw, 92px); line-height: .98; }
.page-head > p:not(.eyebrow), .page-intro { max-width: 640px; margin-top: 28px; font-size: 21px; line-height: 1.5; color: var(--muted); }
.content-section { padding-bottom: var(--s-connect); }

.legal-copy { max-width: 760px; padding-bottom: var(--s-connect); font-size: 17px; }
.legal-copy.wrap { margin-left: max(var(--gutter), calc((100% - var(--container)) / 2)); }
.legal-copy h2 { font: 700 25px/1.35 var(--body); letter-spacing: -.02em; margin: 48px 0 14px; }
.legal-copy p, .legal-copy address { line-height: 1.8; }
.legal-copy p + p { margin-top: 16px; }
.legal-copy a { text-decoration-color: rgb(24 63 53 / .45); }
.legal-draft { background: var(--paper-2); padding: 24px 28px; border-radius: var(--r-control); margin-bottom: 32px; font-size: 15px; line-height: 1.6; }
.legal-draft p { margin-top: 8px; }
.small { font-size: 13px; color: var(--muted); }

.email-link { font-weight: 600; overflow-wrap: anywhere; }
.planned-email { display: block; font-size: 19px; font-weight: 600; overflow-wrap: anywhere; }
.planned-email + small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.contact-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.contact-list article { padding-top: 24px; border-top: 1px solid var(--line); }
.contact-list h2 { font-size: 32px; line-height: 1.1; margin-bottom: 12px; }
.contact-list p { color: var(--muted); font-size: 17px; margin-bottom: 18px; }
.contact-note { max-width: 760px; margin-top: 80px; padding-top: 40px; border-top: 1px solid var(--line); }
.contact-note h2 { font-size: 34px; line-height: 1.1; margin-bottom: 20px; }
.contact-note p { margin-bottom: 20px; }

.support-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 80px; align-items: start; }
.support-grid > div > h2 { font-size: 36px; margin-bottom: 28px; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding-block: 18px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 600; line-height: 1.5; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-size: 26px; font-weight: 400; transition: transform var(--fast) var(--ease-out); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq > p { padding: 0 20px 24px 0; font-size: 17px; color: var(--muted); }
.support-aside { background: var(--night); color: var(--on-night); padding: 40px; border-radius: var(--r-media); }
.support-aside .eyebrow { color: var(--on-night-soft); }
.support-aside h2 { font-size: 44px; margin-bottom: 20px; }
.support-aside > p { margin-bottom: 20px; color: var(--on-night-soft); }
.support-aside .email-link { display: block; margin-bottom: 12px; color: var(--on-night); }
.support-aside :focus-visible { outline-color: var(--butter); }

.game-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 56px; align-items: center; padding: 56px; border-radius: var(--r-media); background: var(--night); color: var(--on-night); }
.game-feature .eyebrow { color: var(--on-night-soft); margin-bottom: 10px; }
.game-feature .status { border-color: var(--line-night); }
.game-feature-title { font-size: clamp(48px, 5vw, 72px); line-height: 1; margin: 28px 0 20px; }
.game-feature .coral-dot { color: var(--coral); }
.game-feature-copy > p { color: var(--on-night-soft); margin-bottom: 32px; }
.game-feature-logo { width: 100%; max-width: 520px; justify-self: center; }
.game-feature :focus-visible { outline-color: var(--butter); }
.app-line { display: flex; align-items: center; gap: 20px; }
.app-icon { width: 88px; height: 88px; border-radius: 22.5%; flex: none; box-shadow: 0 0 0 1px rgb(246 243 233 / .14); }
.game-details { display: grid; grid-template-columns: 1.5fr 1fr; gap: 96px; margin-top: 56px; }
.game-details dl { margin: 0; }
.game-details dl > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.game-details dt { font-size: 12px; color: var(--muted); }
.game-details dd { margin: 4px 0 0; font-weight: 600; }
.game-resources { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Zooberei product page */
.z-hero { padding: 24px 0 var(--s-connect); overflow: hidden; }
.z-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.z-hero .app-line { margin-bottom: 28px; }
.z-hero .app-line .eyebrow { margin-bottom: 10px; }
.z-hero h1 { font-size: clamp(48px, 5.4vw, 80px); line-height: 1.02; margin-bottom: 28px; }
.z-hero .lead { margin-bottom: 28px; }
.z-logo { display: block; width: min(280px, 70%); margin: 0 0 20px -8px; }
.z-gallery { justify-self: end; }
.z-hero .game-note { margin-top: 72px; }
.z-games-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 80px; padding-top: var(--s-section); }
.z-games-list h2 { font-size: clamp(40px, 4.2vw, 60px); }
.z-games-list ul { list-style: none; padding: 0; }
.z-games-list li { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.z-games-list li:first-child { padding-top: 0; }
.z-games-list strong { font: 700 24px/1.2 var(--display); letter-spacing: -.03em; }
.z-games-list li span { grid-column: 1; grid-row: 2; font-size: 17px; color: var(--muted); }
.z-games-list small { grid-column: 2; grid-row: 1; align-self: center; font: 700 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.z-games-list .is-free small { color: var(--coral-deep); }
.z-parent-note { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 80px; margin-top: var(--s-section); padding-top: 72px; padding-bottom: var(--s-section); border-top: 1px solid var(--line); }
.z-parent-note h2 { font-size: clamp(40px, 4.2vw, 60px); }
.z-parent-note p + p { margin-top: 20px; }
.z-links { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 32px; }

/* ---------- Reveals (JS adds .reveal-ready to <html>) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity var(--reveal) var(--ease-out), transform var(--reveal) var(--ease-out); }
  .reveal-ready .reveal.is-in { opacity: 1; transform: none; }
  .reveal-ready .facts .reveal:nth-child(2) { transition-delay: 60ms; }
  .reveal-ready .facts .reveal:nth-child(3) { transition-delay: 120ms; }
  .reveal-ready .facts .reveal:nth-child(4) { transition-delay: 180ms; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .game-grid { grid-template-columns: 1fr; row-gap: 72px; }
  .worlds { grid-template-columns: 1fr; gap: 32px; }
  .parents-grid { grid-template-columns: 1fr; gap: 40px; }
  .closing-grid { gap: 56px; }
  .support-grid { gap: 48px; }
  .game-feature { grid-template-columns: 1fr; padding: 40px; }
  .game-feature-logo { grid-row: 1; max-width: 380px; justify-self: start; }
  .z-hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .z-gallery { justify-self: stretch; }
}

@media (max-width: 899px) {
  /* Hero switches to the stacked phone composition */
  .portal { --arch-w: 100%; }
  .portal-stage { grid-template-columns: 1fr; grid-template-areas: "hook" "frame" "studio"; row-gap: 32px; padding-top: calc(var(--header-h) + 12px); }
  .portal-hook { padding-bottom: 0; }
  .portal-frame { height: min(78svh, 720px); border-radius: 46vw 46vw var(--r-media) var(--r-media) / 40vw 40vw var(--r-media) var(--r-media); }
  .hero-title { font-size: clamp(38px, 10.2vw, 66px); line-height: .96; margin-bottom: 20px; }
  .hero-title span { display: inline; }
  .hero-title br { display: inline; }
  .portal-hook-foot .lead { max-width: 36ch; margin-bottom: 24px; }
  .portal-studio { min-height: 76svh; align-items: flex-end; }
  .portal-studio::before { background: linear-gradient(0deg, rgb(var(--scrim-warm) / .9) 0%, rgb(var(--scrim-warm) / .78) 36%, rgb(var(--scrim-warm) / 0) 62%); }
  .portal-studio-copy { padding: 28px; }
}

@media (max-width: 899px) and (prefers-reduced-motion: no-preference) {
  .js .portal:not(.is-static) { height: var(--track, 300svh); }
  .js .portal:not(.is-static) .portal-frame {
    clip-path: inset(var(--ct, 34%) var(--cr, var(--gutter)) var(--cb, 16px) var(--cl, var(--gutter)) round var(--crt, 40vw) var(--crt, 40vw) var(--crb, 24px) var(--crb, 24px));
  }
  .js .portal:not(.is-static) .portal-hook { display: block; padding: calc(var(--header-h) + 8px) var(--gutter) 0; }
  .js .portal:not(.is-static) .portal-hook-foot .lead { margin-bottom: 0; }
  .js .portal:not(.is-static) .portal-hook .cta-row { position: absolute; left: calc(var(--cl, var(--gutter)) + 18px); right: calc(var(--cr, var(--gutter)) + 18px); bottom: calc(var(--cb, 40px) + 18px); }
  .js .portal:not(.is-static) .portal-hook .cta-row .text-link { display: none; }
  .js .portal:not(.is-static) .portal-hook :focus-visible { outline-color: var(--butter); }
  .js .portal:not(.is-static) .portal-scrim { display: block; position: absolute; inset: 0; z-index: 2; opacity: var(--hook-o, 1); background: linear-gradient(0deg, rgb(var(--scrim) / .9) 0%, rgb(var(--scrim) / .62) 22%, rgb(var(--scrim) / 0) 42%); }
  .js .portal:not(.is-static) .portal-credit { left: 50%; right: auto; bottom: max(12px, calc(var(--cb, 40px) - 27px)); bottom: max(calc(12px + 100lvh - 100svh), calc(var(--cb, 40px) - 27px)); transform: translateX(-50%); white-space: nowrap; }
  .js .portal:not(.is-static) .portal-studio::before { background: linear-gradient(0deg, rgb(var(--scrim-warm) / .9) 0%, rgb(var(--scrim-warm) / .78) 24%, rgb(var(--scrim-warm) / 0) 42%); }
  .js .portal:not(.is-static) .portal-studio-copy { left: var(--gutter); right: var(--gutter); bottom: calc(60px + env(safe-area-inset-bottom)); bottom: calc(60px + env(safe-area-inset-bottom) + 100lvh - 100svh); }
  .js .portal:not(.is-static) .portal-studio-copy h2 { font-size: clamp(30px, 8.4vw, 40px); margin-bottom: 12px; }
  .js .portal:not(.is-static) .portal-studio-copy p:last-child { font-size: 17px; }
  .js .portal:not(.is-static) .portal-hint { display: none; }
}


@media (max-width: 800px) {
  .story-grid { display: block; }
  .statement { font-size: clamp(30px, 8vw, 42px); }
  .story-body { margin-top: 48px; grid-template-columns: 1fr; row-gap: 20px; }
  .story-body .signature { grid-column: 1; }
  .facts { grid-template-columns: 1fr; }
  .closing-grid { grid-template-columns: 1fr; }
  .closing-figure { width: min(100%, 460px); }
  .contact-list { grid-template-columns: 1fr; gap: 36px; }
  .support-grid { grid-template-columns: 1fr; }
  .z-hero-grid, .z-games-list, .z-parent-note { grid-template-columns: 1fr; gap: 40px; }
  .z-logo { width: min(240px, 64%); }
  .game-details { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  h2 { font-size: 40px; line-height: 1.02; }
  .lead { font-size: 18px; }
  .eyebrow { font-size: 12px; margin-bottom: 16px; }
  .wordmark { font-size: 33px; }
  .wordmark-bottom { font-size: 23px; }
  .desktop-nav, .header-contact { display: none; }
  .mobile-menu { display: block; font-size: 15px; font-weight: 600; }
  .mobile-menu summary { display: flex; align-items: center; gap: 20px; min-height: 48px; padding-left: 12px; cursor: pointer; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary span { font-size: 24px; font-weight: 400; transition: transform var(--fast) var(--ease-out); }
  .mobile-menu[open] summary span { transform: rotate(45deg); }
  .mobile-menu nav { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(var(--header-h) - 6px); z-index: 30; display: flex; flex-direction: column; padding: 12px 22px; border-radius: var(--r-control); background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -18px rgb(var(--scrim) / .45); }
  .mobile-menu nav a { display: flex; align-items: center; min-height: 48px; text-decoration: none; }
  .mobile-menu nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; }
  .button { width: 100%; justify-content: space-between; }
  .cta-row { gap: 12px 28px; }
  .game-chapter .cta-row .button, .closing .button { width: auto; }
  .game-note { margin-top: 32px; }
  .screens { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; row-gap: 24px; column-gap: 16px; align-items: start; }
  .screen { grid-template-columns: 1fr; row-gap: 10px; }
  .screen img, .screen--lead img { width: 100%; height: auto; }
  .screen--lead { grid-row: auto; grid-column: 1 / -1; justify-self: center; width: 64%; }
  .screen--lead figcaption { position: static; margin-top: 10px; text-align: center; }
  .screen figcaption { font-size: 13px; max-width: none; }
  .worlds-list { grid-template-columns: 1fr; }
  .worlds-list li { font-size: 22px; padding: 15px 0; }
  .closing-figure { width: 100%; }
  .help-links strong { font-size: 17px; }
  .footer-top { flex-direction: column; gap: 20px; }
  .footer-cta { font-size: 26px; }
  .footer-name { font-size: 30px; margin-bottom: 16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; }
  .page-head { padding-top: 16px; padding-bottom: 40px; }
  .page-head h1 { font-size: 46px; }
  .page-head > p:not(.eyebrow), .page-intro { font-size: 18px; }
  .back-link { margin-bottom: 24px; }
  .legal-copy h2 { font-size: 22px; margin-top: 36px; }
  .legal-draft { padding: 20px; font-size: 14px; }
  .support-aside { padding: 28px; }
  .support-aside h2 { font-size: 38px; }
  .game-feature { padding: 28px; gap: 28px; }
  .game-feature .button { width: 100%; }
  .app-icon { width: 72px; height: 72px; }
  .z-hero h1 { font-size: 44px; }
  .z-games-list li { gap: 6px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
