/* godyor landing: one living plan of a recorded check run, the cartouche in the top-left corner. Before launch a poster
   (name, one line, COMING SOON, Docs, X). After launch the same first screen gains a search field, then the replies godyor
   posted and the speed summary below it. */
body.land { background: #0e1520; }
body.land:not([data-state="pre"]) [data-when="pre"], body.land:not([data-state="live"]) [data-when="live"], body.land:not([data-state="unknown"]) [data-when="unknown"] { display: none !important; }
.status-note { margin: 22px 0 0; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--rim-hi); background: rgba(8, 13, 22, .7); font-size: 15px; color: var(--ink); max-width: 30em; }

.first { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
#stage { position: absolute; inset: 0; background: #0e1520 url(/assets/img/poster.webp) center / cover no-repeat; }
#stage::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(52% 86% at 0% 22%, rgba(11, 17, 27, .9) 0%, rgba(11, 17, 27, .6) 50%, rgba(11, 17, 27, 0) 80%); }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 600ms var(--ease-out); touch-action: pan-y; }
#stage.ready #scene { opacity: 1; }
#stage canvas.fallback { position: absolute; left: 62%; top: 56%; width: min(52vw, 760px); height: auto; transform: translate(-50%, -50%); border-radius: 18px; }
#flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 1;
  background: radial-gradient(60% 80% at 82% 18%, rgba(110, 145, 255, .42), rgba(49, 92, 232, .14) 40%, rgba(49, 92, 232, 0) 72%); }
#flash.go { animation: flood 1.7s var(--ease-out) forwards; }
@keyframes flood { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }

/* pins: one tag per check, pinned to the pin head in the plan; out of focus until the check is done */
#pins { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.pin { position: absolute; left: 0; top: 0; opacity: 0; display: flex; align-items: center; gap: 6px; padding: 5px 9px 6px;
  border-radius: 7px; background: rgba(12, 19, 31, .84); border: 1px solid rgba(255, 255, 255, .14); white-space: nowrap;
  filter: blur(8px); transition: filter 520ms var(--ease-state), opacity 300ms linear; will-change: transform, opacity; }
.pin.on { filter: blur(0); }
.pin b { display: block; width: 15px; height: 15px; }
.pin b .g { width: 15px; height: 15px; }
.pin span { font: 600 15px/1.1 var(--f-body); color: var(--ink); }
.pin em { font: 500 13px/1 var(--f-num); font-style: normal; color: var(--ink-3); }
.pin[data-status="na"] span { color: var(--ink-2); }
.pin[data-status="miss"] { border-color: rgba(255, 255, 255, .42); }
.pin.late em { color: var(--blue-hi); }

#clock { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; display: grid; justify-items: center; gap: 2px; opacity: 0; transition: opacity 240ms linear; }
#clock b { font: 800 20px/1 var(--f-title); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
#clock span { font: 500 13px/1.2 var(--f-body); color: var(--blue-hi); }

/* top bar over the scene */
.land-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 5; height: 72px; padding: 0 28px; background: none; border: 0; pointer-events: none; }
.land-bar > * { pointer-events: auto; }
.land-bar::before { content: ""; position: absolute; inset: 0 0 -24px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(11, 17, 27, .82), rgba(11, 17, 27, 0)); }
.land-bar .brand svg { width: 30px; height: 30px; }

/* the plate: the plan's cartouche, top-left */
.plate { position: absolute; z-index: 4; left: 28px; top: 92px; width: min(500px, calc(100vw - 56px)); }
.plate h1 { margin: 0; font: 900 76px/.92 var(--f-title); letter-spacing: -.035em; color: #fff; }
.plate h1 small { display: block; margin-top: 8px; font: 700 20px/1.15 var(--f-title); letter-spacing: -.005em; color: var(--ink-3); }
.plate .lead { margin: 18px 0 0; max-width: 34em; color: var(--ink-2); font-size: 17px; line-height: 1.55; }

.soon { display: flex; align-items: center; gap: 16px; margin: 26px 0 0; font: 900 clamp(34px, 3.3vw, 50px)/1 var(--f-title); letter-spacing: -.02em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.soon i { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--blue-hi); box-shadow: 0 0 0 6px rgba(127, 155, 255, .16), 0 0 24px 4px rgba(49, 92, 232, .7); animation: beat 2.4s var(--ease-state) infinite; }
@keyframes beat { 0%, 100% { box-shadow: 0 0 0 6px rgba(127, 155, 255, .16), 0 0 24px 4px rgba(49, 92, 232, .7); } 50% { box-shadow: 0 0 0 11px rgba(127, 155, 255, .05), 0 0 36px 8px rgba(49, 92, 232, .45); } }
.go { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.find { margin-top: 24px; }
.find label { display: block; font: 500 14px/1 var(--f-body); color: var(--ink-2); margin-bottom: 8px; }
.find-row { display: flex; gap: 8px; }
.find-row .inp { flex: 1 1 auto; min-width: 0; background: rgba(8, 13, 22, .78); }
.fhint { min-height: 20px; margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.fhint b { color: var(--ink); }

.run { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); max-width: 480px; }
.run-h { margin: 0; font: 500 13px/1.4 var(--f-body); color: var(--ink-3); }
.run-h b { color: var(--ink-2); font-weight: 600; }
.run-say { margin: 6px 0 0; min-height: 1.3em; font: 700 20px/1.3 var(--f-title); letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
#say.typing::after { content: ""; display: inline-block; width: 2px; height: .95em; margin-left: 3px; vertical-align: -2px; background: var(--blue-hi); }
.run-row { margin-top: 12px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.run-row .src { font-size: 13px; color: var(--ink-3); }
.pause { --h: 36px; padding: 0 12px; font-size: 13px; }
.pause svg { width: 12px; height: 12px; }
.pause[aria-pressed="true"] { border-color: var(--blue-hi); color: var(--blue-ink); }

/* frame 0 and script-less: everything shows; motion only under html.js */
html.js .plate > * { opacity: 0; transform: translateY(10px); filter: blur(6px); }
html.js.in .plate > * { opacity: 1; transform: none; filter: blur(0); transition: opacity 900ms var(--ease-long), transform 900ms var(--ease-long), filter 900ms var(--ease-long); }
html.js.in .plate > :nth-child(2) { transition-delay: 90ms; }
html.js.in .plate > :nth-child(3) { transition-delay: 180ms; }
html.js.in .plate > :nth-child(4) { transition-delay: 270ms; }
html.js.in .plate > :nth-child(5) { transition-delay: 360ms; }

/* after launch: what godyor actually posted, and its speed */
.below { position: relative; background:
  linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
  linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 24px 24px, #0e1520; padding-top: 10px; }
.lsec { padding-top: 72px; }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.rc { display: grid; gap: 10px; align-content: start; padding: 14px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--glass); }
.rc img { width: 100%; height: auto; aspect-ratio: 1200 / 675; border-radius: 10px; display: block; background: #0e1520; }
.rc pre { margin: 0; font: 500 14px/1.55 var(--f-body); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.rc .meta { margin: 0; font: 500 13px/1.4 var(--f-num); color: var(--ink-3); }
.rc .links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.rc .links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--blue-ink); text-underline-offset: 3px; text-decoration-color: rgba(127, 155, 255, .5); }
.figs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); }
.figs li { padding: 18px 18px 18px 0; border-right: 1px solid var(--line); }
.figs li + li { padding-left: 18px; }
.figs li:last-child { border-right: 0; }
.figs b { display: block; font: 900 44px/1 var(--f-title); letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.figs span { display: block; margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.speed-go { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cap-note { font: 600 14px/1.4 var(--f-body); color: var(--ink); padding: 6px 10px; border: 1px solid var(--rim-hi); border-radius: 6px; }

/* the report sheet over the scene */
.sheet { position: fixed; inset: 0; z-index: 60; overflow: auto; background: rgba(9, 14, 22, .94); }
.sheet-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; padding: 0 24px; background: rgba(14, 21, 32, .96); border-bottom: 1px solid var(--line); }
.sheet-t { font: 800 17px/1 var(--f-title); color: #fff; }
.sheet .room { padding-top: 16px; }
.sheet .slab { height: calc(100vh - 96px); height: calc(100dvh - 96px); }
body.sheet-open { overflow: hidden; }

@media (max-width: 760px) {
  #stage::after { background: linear-gradient(180deg, rgba(11, 17, 27, .92) 0%, rgba(11, 17, 27, .78) 50%, rgba(11, 17, 27, 0) 72%); }
  .land-bar { height: 64px; padding: 0 16px; }
  .plate { left: 16px; top: 72px; width: calc(100vw - 32px); }
  .plate h1 { font-size: 52px; }
  .plate h1 small { display: none; }
  .plate .lead { font-size: 15px; line-height: 1.5; margin-top: 10px; }
  .soon { margin-top: 16px; gap: 12px; font-size: clamp(30px, 9vw, 44px); }
  .soon i { width: 11px; height: 11px; }
  .go { margin-top: 14px; }
  .find { margin-top: 14px; }
  .run { margin-top: 14px; padding-top: 10px; }
  .run-say { font-size: 16px; }
  .run-row .src { display: none; }
  .pin span { font-size: 13px; }
  .pin em { display: none; }
  .figs { grid-template-columns: minmax(0, 1fr); }
  .figs li { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0 !important; }
  .figs b { font-size: 36px; }
  .sheet-top { padding: 0 16px; }
  .sheet .slab { height: auto; }
  .lsec { padding-top: 56px; }
}
@media (max-height: 760px) and (min-width: 761px) {
  .plate { top: 80px; }
  .plate h1 { font-size: 64px; }
  .plate .lead { margin-top: 12px; }
  .soon { margin-top: 16px; font-size: 44px; }
  .run { margin-top: 16px; }
}
@media (max-height: 640px) and (max-width: 760px) { .run-say { display: none; } .run { margin-top: 10px; } }
@media (prefers-reduced-motion: reduce) {
  html.js .plate > * { opacity: 1; transform: none; filter: none; }
  .pin { transition: none; }
  .soon i { animation: none; }
  .pause { display: none; }
}
