/* Hallmark · route: custom (bespoke) · structure: one black stage, globe centre, three chrome dots switch panes
 * idea: "a locked door, not a landing page" · paper: oklch(9% 0.004 265) · accent: oklch(83% 0.11 225) (focus only)
 * display: Bryan's chrome POST art + Grenze Gotisch · body: Geist Mono / Geist · axes: dark / display-heavy / neutral
 * enrichment: Bryan's chrome globe + logo (his files), CSS float, static SVG grain · nav: 3 chrome dots (Bryan's spec)
 * gates: checked · studied: no · context: Bryan, iMessage + email 2026-11-26 ("lofi underground grunge", "DONT POST")
 */
@import url("tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body.post {
  margin: 0; min-height: 100svh;
  background: radial-gradient(55% 50% at 50% 50%, var(--color-haze), transparent 70%), var(--color-void);
  color: var(--color-ink-2); font-family: var(--font-mono); font-size: var(--text-sm); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* grain: static, fixed, never animated */
.grain { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; opacity: var(--grain-opacity); mix-blend-mode: overlay; }

/* ── stage: globe centre, PO$T under it (Bryan's sketch) ── */
.stage { position: relative; min-height: 100svh; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.globe-wrap { position: absolute; inset: calc(var(--space-2xl) + 7svh) 0 var(--space-2xl) 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-xs); z-index: 1; }
.globe {
  position: relative; width: min(84vw, 62svh, 720px); aspect-ratio: 1; cursor: grab; touch-action: pan-y;
  transition: opacity var(--dur-pane) var(--ease-out), transform var(--dur-pane) var(--ease-out);
}
.globe.is-grabbing { cursor: grabbing; }
.globe canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity var(--dur-slow) var(--ease-out); }
.globe.is-3d canvas { opacity: 1; }
.globe-still { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity var(--dur-slow) var(--ease-out); pointer-events: none; }
.globe-still img { width: 100%; height: auto; }
.globe.is-3d .globe-still { opacity: 0; }
body[data-pane]:not([data-pane="home"]) .globe { opacity: 0.14; transform: scale(0.86); pointer-events: none; }

.mark { position: relative; z-index: 3; display: grid; justify-items: center; gap: var(--space-2xs); padding: clamp(var(--space-2xl), 7svh, var(--space-4xl)) var(--gutter) 0; }
.logo { width: clamp(170px, 20vw, 300px); }
.logo img { width: 100%; height: auto; }

/* ── panes ─────────────────────────────────────── */
.panes { position: relative; z-index: 2; display: grid; place-items: center; padding: var(--space-xl) calc(var(--gutter) + 56px); pointer-events: none; }
.pane.is-on { pointer-events: auto; }
.pane { grid-area: 1 / 1; width: min(100%, 560px); text-align: center; }
.pane--home { align-self: end; padding-bottom: var(--space-md); }
.js .pane { opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--dur-pane) var(--ease-out), transform var(--dur-pane) var(--ease-out), visibility 0s linear var(--dur-pane); }
.js .pane.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.pane h2 {
  font-family: var(--font-display); font-weight: 800; font-style: normal; color: var(--color-ink);
  font-size: var(--text-3xl); line-height: 1; margin: 0 0 var(--space-lg); overflow-wrap: anywhere;
}
.pane p { margin: 0 0 var(--space-md); color: var(--color-ink-2); }
.pane .quiet { color: var(--color-muted); }
.whisper { letter-spacing: 0.3em; text-transform: uppercase; color: var(--color-muted); font-size: var(--text-xs); margin: 0; }
.nots { list-style: none; padding: 0; margin: 0 0 var(--space-lg); }
.nots li { padding: var(--space-xs) 0; border-bottom: var(--rule-thin) solid var(--color-rule-2); color: var(--color-ink); }

.chrome-btn {
  display: inline-flex; align-items: center; gap: var(--space-xs); margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-lg); border-radius: var(--radius-pill); white-space: nowrap;
  color: var(--color-void); text-decoration: none; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: var(--text-xs);
  background: linear-gradient(180deg, var(--chrome-hi), var(--chrome-2) 48%, var(--chrome-3) 52%, var(--chrome-5));
  border: var(--rule-thin) solid var(--chrome-edge);
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.chrome-btn:hover { transform: translateY(-2px); }
.chrome-btn:active { transform: none; opacity: 0.85; }

/* ── three chrome dots (Bryan's spec): real chrome, rendered from the globe's material ── */
.dots { position: fixed; right: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 4;
  display: flex; flex-direction: column; gap: var(--space-lg); }
.dot { position: relative; display: block; width: 34px; height: 34px; border-radius: 50%;
  transition: transform var(--dur-fast) var(--ease-out); }
.dot img, .dot .dot-live { width: 100%; height: 100%; display: block; }
.dot .dot-live { position: absolute; inset: 0; }
.dots-live .dot img { visibility: hidden; }
.dot:hover { transform: scale(1.12); }
.dot:active { transform: scale(0.95); }
.dot[aria-current="true"]::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%; border: var(--rule-thin) solid var(--color-ink-2);
}
.dot .tip {
  position: absolute; right: calc(100% + var(--space-sm)); top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-size: var(--text-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted);
  opacity: 0; transition: opacity var(--dur-base) var(--ease-out) 600ms;
}
.dot:hover .tip { opacity: 1; }
.dot:focus-visible .tip { opacity: 1; transition-delay: 0s; }

/* ── bottom line ───────────────────────────────── */
.bottom { position: relative; z-index: 3; display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg);
  padding: 0 var(--gutter) var(--space-lg); font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); }
.bottom nav { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
.bottom a { text-decoration: none; white-space: nowrap; }
.bottom a:hover { color: var(--color-ink); }

@media (max-width: 560px) {
  .dots { gap: var(--space-md); }
  .dot { width: 28px; height: 28px; }
  .pane h2 { font-size: var(--text-2xl); }
}
@media (prefers-reduced-motion: reduce) {
  .globe, .js .pane, .chrome-btn, .dot { transition: opacity 120ms linear; }
  .js .pane { transform: none; }
  body[data-pane]:not([data-pane="home"]) .globe { transform: none; }
  .chrome-btn:hover, .dot:hover { transform: none; }
}
.pane .after-btn { margin-top: var(--space-lg); }
.pane h2[tabindex="-1"]:focus, .pane h2[tabindex="-1"]:focus-visible { outline: none; }

/* touch screens: no hover labels (they stuck on after a tap and covered the pane text) */
@media (hover: none) { .dot .tip { display: none; } }

/* legal links live on the App page now (Bryan: "less is more" on the home page) */
.legal-line { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-xs) var(--space-lg); margin-top: var(--space-2xl);
  font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); }
.legal-line a { text-decoration: none; white-space: nowrap; }
.legal-line a:hover { color: var(--color-ink); }
