/* concerngame.com's front page: one fixed device face, as the app's screen is. The city
   stands in the middle; a tray anchored on the right edge (the app's TrayColumnDialog: its
   home edge bleeds past the screen, its exposed front is inset) carries every word, the
   logo and the motto first; the band is docked at the bottom: NOTIFY ME and the social
   keys. Scrolling drives the build (city.js) and pans the tray. Every value is a token
   from hyperion-tokens.css. A pane is a <section class="pane">: the field's glass is a
   "pane" too (vfd-input.js markup), so the rules below name the section. */

html:has(body.landing) { background: var(--color-bone-200); }
body.landing {
  display: block; min-height: 0; padding: 0;
  background: var(--color-bone-200); color: var(--color-ink-700);
  --dock-h: 64px;                       /* the band's height: what the face keeps clear */
}

/* ── The city: the whole screen, behind everything ──────────────────────────────── */
.stage { position: fixed; inset: 0; pointer-events: none; }
.stage canvas, .stage .still { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage .still { object-fit: contain; }
/* the still is the finished city, only for a page that cannot build it: shown while the live
   city loaded it flashed the whole city before the build began (owner 2026-11-02) */
.stage .still { visibility: hidden; }
.city-flat .stage .still { visibility: visible; }               /* city.js could not run: no WebGL */
@media (scripting: none) { .stage .still { visibility: visible; } }   /* no scripts at all */

/* ── The tray: the app's TrayColumnDialog, anchored on the right edge, riding the scroll.
   Its panes stand in ONE column with ONE gap between them, come up from below (from behind
   the band) and leave through the top as the page scrolls: the tray PANS, as an over-tall
   tray does in the app. The build keeps time by them (city.js: a pane's data-piece has
   landed as its middle crosses --cross, a share of the screen's height); the last pane
   crosses as the last piece lands, and the tail's scroll lets it leave. A pane is a column of JOINED
   raised bars — HyperionShell's `shell_raised` material, exactly: the raised bone
   gradient, the `pop` shadow (the 7 px side wall, the soft contact shadow, the lit top
   edge), `md` corners. */
body.landing {
  --tray-tuck: 18px;        /* TrayColumnDialog.tray_home_tuck: the home edge bleeds past the screen */
  --tray-front: 28px;       /* TrayColumnDialog.tray_front_margin: the exposed side's inset */
  --key-h: 52px;            /* UITheme.KEY_SIZE.y: a title strip is one key tall */
  --cross: 0.5;             /* city.js: where a pane's middle crosses as its piece lands (a share of the height) */
  --lead: 38vh;             /* the first pane's top as the page opens */
  --pane-gap: 90vh;         /* between one pane and the next: one gap for all (the build's pace: owner 2026-10-28) */
  --tail: 65vh;             /* after the last pane crosses: the scroll that lets it leave */
  --city-shift: 0.12;       /* city.js: the lens shift that keeps the city clear of the tray (a share of the width) */
  --city-width: 0.6;        /* city.js: the share of the width the city may stand in */
  --city-rise: 0;           /* city.js: the lens shift that lifts the city above the panes (a share of the height) */
}
.tray {
  position: relative; z-index: 1; pointer-events: none;
  display: flex; flex-direction: column; align-items: flex-end; gap: var(--pane-gap);
  padding: var(--lead) 0 var(--tail);
}
.tray .key { pointer-events: auto; }
section.pane {
  right: calc(-1 * var(--tray-tuck));
  width: min(460px, calc(100vw - var(--tray-front)));
  display: flex; flex-direction: column;
}
.tray > section.pane { position: relative; }
/* the first pane, the logo and the motto: in place near the top as the page opens, and
   carried up with the rest as the build starts; it stands apart from the column */
.tray > section.pane.hero { position: absolute; top: var(--space-8); }
/* the 404: one pane alone, anchored on the right edge, in the middle of the screen */
.lone { position: fixed; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: flex-end; pointer-events: none; }
.lone section.pane { position: relative; right: auto; margin-right: calc(-1 * var(--tray-tuck)); pointer-events: auto; }
section.pane .bar {
  background: var(--gradient-shell-face-raised); box-shadow: var(--shadow-pop);
  border-radius: var(--radius-md);
  /* DialogParts._module: the far (exposed) side content_margin, the home side the same
     plus the tuck, FACE_PAD_Y above and below, VFD_GAP between lines */
  padding: var(--space-3) calc(var(--space-6) + var(--tray-tuck)) var(--space-3) var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-2);
}
section.pane .strip { min-height: calc(var(--key-h) + 2 * var(--space-3)); justify-content: center; align-items: center; }
/* HyperionEngraved: the title strip's word (label, h4, 800, upper case), a section legend
   (label size, label tracking), a plain engraved line (body) — ink.600 with the 1 px
   highlight under it, on every one; the motto is the same ink, cut large */
section.pane .title { margin: 0; font-size: var(--size-h4); font-weight: var(--weight-black); letter-spacing: 0; text-align: center; }
section.pane .legend { margin: 0; font-size: var(--size-label); }
section.pane .line { margin: 0; font-size: var(--size-body); text-transform: none; letter-spacing: 0; line-height: var(--leading-snug); }
section.pane .bar > .glass { padding: var(--vfd-screen-pad-y) var(--vfd-screen-pad-x); overflow: hidden; }
section.pane h1 { margin: 0; line-height: 0; }
section.pane .logo { display: block; width: 240px; max-width: 100%; height: auto; }
section.pane .headline {
  margin: 0; font-size: var(--size-h2); font-weight: var(--weight-black);
  line-height: var(--leading-tight); letter-spacing: var(--tracking-tight);
}
/* the key figures: a legend over each figure's line, the prospectus's own table */
section.pane .figures { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: var(--space-2) var(--space-4); align-items: baseline; }
section.pane .figures dd { margin: 0; }
section.pane .keys.row { flex-direction: row; justify-content: flex-end; }
section.pane .keys.row .key { align-self: auto; }

/* ── The sign-up tray: the app's tray arrival, brought in from its home edge (the right)
   by NOTIFY ME — UITheme.hardware_slide: the dialog's 0.42 s stretched 1.5x, a quint
   ease-out for 82 % of it to 2 px past rest, then a sine back — and sent home the same way
   with a quint ease-in at 0.42 s. It stands above the band. A manual popover: NOTIFY ME
   brings it in with no script; CLOSE, a tap outside or Escape sends it home (tray.js:
   .leaving, then hidden). */
section.pane.sheet {
  position: fixed; inset: auto; right: calc(-1 * var(--tray-tuck)); bottom: calc(var(--dock-h) + var(--space-4));
  margin: 0; padding: 0; border: 0; background: transparent; color: inherit; overflow: visible;
  max-height: calc(100vh - var(--dock-h) - 2 * var(--space-4));
}
section.pane.sheet:not(:popover-open) { display: none; }
section.pane.sheet:popover-open { display: flex; animation: tray-arrive calc(var(--dur-dialog) * 1.5); }
section.pane.sheet.leaving {
  transform: translateX(calc(100% + var(--tray-front)));
  transition: transform var(--dur-dialog) cubic-bezier(0.64, 0, 0.78, 0);
}
section.pane.sheet::backdrop { background: transparent; }
@keyframes tray-arrive {
  from { transform: translateX(calc(100% + var(--tray-front))); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  82%  { transform: translateX(-2px); animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1); }
  to   { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  section.pane.sheet, section.pane.sheet:popover-open { animation: none; transition: none; }
}

/* ── The scroll hint (owner 2026-11-03: show that the page goes on down) ─────────────
   Above the band, centred: the app's advance glyph turned down, in the engraved ink with its
   1 px highlight, as the band's marks are (owner 2026-11-03: the glass's teal did not show
   on the face), breathing slowly. Once the reader has scrolled (html.scrolled, hint.js) it
   is gone; at the top it is back. It goes and comes in one frame and never moves. On a
   phone it stands above the first pane's strip. */
.scroll-hint {
  --hint-size: 36px;
  position: fixed; z-index: 1; left: 50%; bottom: var(--hint-bottom, calc(var(--dock-h) + var(--space-4)));
  width: var(--hint-size); height: var(--hint-size); margin-left: calc(var(--hint-size) / -2);
  pointer-events: none;
  fill: var(--color-ink-600);
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.55));   /* .key .mark's engraving */
  animation: hint-breathe 1.8s ease-in-out infinite;
}
.scroll-hint svg { display: block; width: 100%; height: 100%; }
html.scrolled .scroll-hint { visibility: hidden; animation: none; }
@keyframes hint-breathe { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scroll-hint { animation: none; } }

/* ── The scroll's length: the tray's own; the page ends with it ─────────────────── */
/* the panes' bleeding home edge is clipped HERE, not on <body>: a body's clip reaches the
   window as "hidden", which still scrolls sideways by the bleed */
.track { position: relative; overflow-x: clip; }

/* ── The band: docked at the bottom edge, like the app's status band: NOTIFY ME, which
   brings the sign-up tray in, PRIVACY (the policy, on the legal site), and the social keys, each wearing its platform's mark
   engraved in the key's ink (a dead key until its account's address is set). The beta's
   sign-up has no key here: the box's QR code is its way in. */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom));
  background: var(--gradient-shell-face); box-shadow: var(--shadow-shell);
  --band-key: calc(var(--dock-h) - 2 * var(--space-3));   /* a band key fills the band's inner height */
}
.dock .key { height: var(--band-key); }
.dock .key.notify { width: auto; padding-inline: var(--space-6); }
.dock .key.privacy { width: auto; padding-inline: var(--space-4); }
.dock .social { display: flex; gap: var(--space-2); }
.dock .key.social { width: var(--band-key); padding: 0; }
.key .mark { width: 20px; height: 20px; fill: var(--color-ink-600); filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.55)); }
.key.dead .mark { fill: var(--color-ink-500); }

/* a landscape screen without room for thirds: the motto rides the top of the tray, so the
   panes cross a little lower to clear it */
@media (min-aspect-ratio: 1/1) { body.landing { --cross: 0.6; --lead: 48vh; } }

/* ── Room for three thirds: the motto keeps the left third for good (the tray mirrored,
   anchor_side "left": its home edge bleeds past the LEFT side of the screen), the city
   stands in the middle third, the steps ride the right third. Each side under a third,
   so a pane is at most 32vw; below this width the motto rides the tray and leaves. ──── */
@media (min-aspect-ratio: 1/1) and (min-width: 1150px) {
  body.landing { --city-shift: 0.05; --city-width: 0.6; --cross: 0.5; --lead: 38vh; }
  .tray > section.pane { width: min(460px, 32vw); }
  .tray > section.pane.hero {
    position: fixed; left: 0; right: auto; top: var(--space-8);
    margin-right: 0; margin-left: calc(-1 * var(--tray-tuck));
  }
  .tray > section.pane.hero .bar { padding: var(--space-3) var(--space-6) var(--space-3) calc(var(--space-6) + var(--tray-tuck)); }
  /* the wordmark grows with the screen, so a big one does not lose it (owner 2026-10-29):
     a fifth of the width, never under the phone's 240 px nor past what the pane holds */
  section.pane .logo { width: clamp(240px, 20vw, 380px); }
}
/* a third under 1400 px holds the motto one size down, each line still whole */
@media (min-aspect-ratio: 1/1) and (min-width: 1150px) and (max-width: 1399px) {
  section.pane .headline { font-size: var(--size-h3); }
}

/* ── A phone: the motto on top, the pane above the band, NOTIFY ME taking what PRIVACY
   and the four marks leave of the band's width ──────────────────────────────────────────────── */
@media (max-aspect-ratio: 1/1) {
  body.landing { --cross: 0.68; --city-shift: 0; --city-width: 1; --city-rise: 0.2; }   /* the panes below, the city lifted above them */
  /* a phone holds one pane at a time: a wider gap, so the city shows between them; and the
     opening screen is the motto and the Central itself, the first pane's strip showing
     above the band, rising at the first scroll */
  body.landing { --pane-gap: 120vh; --tail: 90vh; --lead: calc(100vh - var(--dock-h) - var(--key-h) - var(--space-3)); }
  .scroll-hint { --hint-bottom: calc(var(--dock-h) + var(--key-h) + 3 * var(--space-3)); }   /* above that strip */
  .tray > section.pane.hero { top: var(--space-6); }
  section.pane .headline { font-size: var(--size-h3); }
  /* five keys in a phone's width: the band's words a size down, the marks' keys a step narrower */
  .dock { gap: var(--space-2); padding-inline: var(--space-3); }
  .dock .key .engraved { font-size: var(--size-label); letter-spacing: var(--tracking-label); white-space: nowrap; }
  .dock .key.notify { flex: 1; min-width: 0; padding-inline: var(--space-1); }
  .dock .key.privacy { padding-inline: var(--space-1); }
  .dock .social { gap: var(--space-1); }
  .dock .key.social { width: calc(var(--band-key) - var(--space-1)); }
}
