/* COGNIX[WS] landing v4 (proposal). The art is the canvas behind everything
   (world.js); this file lays the words and the staged product scenes over it. */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/geist-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; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/geist-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: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/geist-mono-latin.woff2") format("woff2"); }

:root {
  --blue: #2563EB; --blue-hi: #5B8DEF; --ink: #0A1022; --ink-2: #3A4460; --ink-3: #6B7385;
  --paper: #FFFFFF; --paper-2: #F3F6FC; --rule: rgba(10, 16, 34, .10);
  --app: #080B14; --app-2: #0E1320; --app-3: #151B2C; --app-line: rgba(148, 163, 184, .16); --app-text: #F4F6FA; --app-soft: #A9B1C2; --app-dim: #6B7385;
  --amber: #F59E0B; --amber-hi: #FDE68A; --ok: #34D399;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --pad: clamp(20px, 5.4vw, 96px); --px: 3px;
}
* { box-sizing: border-box; }
html { background: #05070D; scrollbar-width: none; -webkit-text-size-adjust: 100%; overflow-x: clip; }
html::-webkit-scrollbar { display: none; }
body { margin: 0; color: #fff; font: 400 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
button { font: inherit; color: inherit; }
/* the sky is as tall as the screen ever gets (a phone with its bars away); the ground is placed by the screen at its shortest */
#sky { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; overflow: hidden; }
#world { display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
#svh { position: fixed; left: 0; top: 0; width: 1px; height: 100vh; height: 100svh; visibility: hidden; pointer-events: none; }
/* grain: a still sheet of noise over the art, as on a print */
#grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .07; mix-blend-mode: overlay; background-size: 192px 192px; }
main, .nav, .foot { position: relative; z-index: 2; }
main { overflow-x: clip; }
.spr { display: block; width: calc(34 * var(--px)); height: calc(36 * var(--px)); image-rendering: pixelated; image-rendering: crisp-edges; }

/* ---- nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 22px; padding: 18px var(--pad); }
.nav .logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.nav .logo svg { height: 19px; width: auto; display: block; }
.nav .logo svg path { fill: currentColor; }
.chip { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 5px 7px; border-radius: 5px; background: rgba(255, 255, 255, .16); }
.nav .links { display: flex; gap: 26px; margin-left: 18px; font-size: 15px; }
.nav .links a { text-decoration: none; opacity: .86; }
.nav .links a:hover { opacity: 1; }
.nav .right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.clock { display: inline-flex; align-items: center; gap: 9px; padding: 8px 11px; border-radius: 9px; background: rgba(5, 7, 13, .34); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.clock canvas { display: block; image-rendering: pixelated; image-rendering: crisp-edges; height: 15px; width: 57px; }
.clock i { width: 9px; height: 9px; border-radius: 2px; background: #FFE27A; box-shadow: 0 0 0 3px rgba(255, 226, 122, .22); transition: background .6s, box-shadow .6s; }
.clock.night i { background: #E6F0FF; box-shadow: 0 0 0 3px rgba(150, 180, 255, .25); }
.lang { display: inline-flex; padding: 3px; border-radius: 9px; background: rgba(5, 7, 13, .34); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lang button { border: 0; background: none; padding: 6px 9px; border-radius: 6px; font: 500 12px/1 var(--mono); letter-spacing: .08em; cursor: pointer; opacity: .72; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); opacity: 1; }
.btn { display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap; font: 600 16px/1 var(--sans); padding: 17px 22px; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 12px 30px -12px rgba(4, 12, 40, .55); transition: transform .18s ease, box-shadow .18s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 18px 34px -12px rgba(4, 12, 40, .6); }
.btn svg { width: 16px; height: 16px; transition: transform .18s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn.sm { padding: 11px 15px; font-size: 14px; border-radius: 10px; }
.btn.ghost { background: #0A1022; color: #fff; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .55) inset, 0 12px 30px -12px rgba(4, 12, 40, .55); }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 6px; }

/* ---- type */
.display { margin: 0; font-weight: 300; letter-spacing: -.045em; line-height: .98; font-size: clamp(46px, min(6.8vw, 10vh), 100px); text-wrap: balance; }
.display, .h2, .lead { text-shadow: 0 1px 0 rgba(8, 30, 110, .18), 0 6px 34px rgba(8, 30, 110, .34); }
.h2 { margin: 0; font-weight: 300; letter-spacing: -.04em; line-height: 1.02; font-size: clamp(36px, min(4.7vw, 7.6vh), 70px); text-wrap: balance; }
.ln { display: block; }
.lead { margin: 0; font-size: clamp(17px, 1.42vw, 21px); line-height: 1.48; max-width: 34em; color: rgba(255, 255, 255, .92); text-wrap: pretty; }
.lit .w { display: inline-block; white-space: nowrap; }
.lit .c { opacity: 0; }
.lit .c.on { opacity: 1; }
.lit .c.cur { position: relative; }
.lit .c.cur::after { content: ""; position: absolute; left: 100%; bottom: .13em; margin-left: .08em; width: .3em; height: .68em; background: currentColor; opacity: .92; }
.lit.done .c.cur::after { animation: blink 1.1s steps(2) infinite; }
.hour { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin: 0; padding: 4px 11px 4px 4px; border-radius: 9px; background: rgba(10, 16, 34, .78); font: 500 12.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .94); }
.hour b { font-weight: 600; padding: 6px 8px; border-radius: 6px; background: rgba(255, 255, 255, .16); letter-spacing: .1em; }
.promise { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font: 400 12.5px/1.3 var(--mono); letter-spacing: .01em; color: rgba(255, 255, 255, .96); }
.promise span { padding: 7px 10px; border-radius: 8px; background: #0A1022; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16) inset; }

/* ---- the day as a rail: one stop per scene, named by its hour */
.rail { position: fixed; right: 20px; top: 50%; z-index: 15; transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.rail button { all: unset; cursor: pointer; display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 5px 0; }
.rail button i { width: 6px; height: 6px; background: rgba(255, 255, 255, .5); transition: background .25s, box-shadow .25s, transform .25s; }
.rail button span { font: 500 10.5px/1 var(--mono); letter-spacing: .06em; padding: 4px 6px; border-radius: 5px; background: rgba(5, 7, 13, .4); opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; order: -1; }
.rail button:hover span, .rail button:focus-visible span { opacity: 1; transform: none; }
.rail button.on i { background: #fff; transform: scale(1.5); box-shadow: 0 0 0 3px rgba(255, 255, 255, .22); }

/* ---- hero */
.hero { position: relative; min-height: 100svh; padding: clamp(96px, 12.5vh, 124px) var(--pad) 0; display: flex; flex-direction: column; align-items: flex-start; }
/* a breath of sky-blue behind the words, so a passing cloud never takes a letter */
html:not(.ready) .hero::before { opacity: 0; }
.hero::before, .scene .say::before { content: ""; position: absolute; z-index: -1; left: -6%; top: 4%; width: min(74%, 1000px); height: 62%; background: radial-gradient(closest-side, rgb(var(--sky, 37 99 235) / .62), rgb(var(--sky, 37 99 235) / 0)); pointer-events: none; }
.scene .say { position: relative; }
.scene .say::before { left: -12%; top: -16%; width: 112%; height: 132%; }
.hero .hour { padding-right: 14px; }
.hero .hour span { text-transform: none; letter-spacing: 0; font: 500 15.5px/1.35 var(--sans); }
.hero .display { max-width: 9.6em; margin-top: 18px; }
.hero .lead { margin-top: clamp(12px, 2vh, 24px); max-width: 31em; }
.hero .cta { margin-top: clamp(14px, 2.4vh, 28px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.hero .promise { margin-top: clamp(8px, 1.3vh, 12px); }
.rise { opacity: 0; transform: translateY(18px); animation: rise .8s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--d, 0) * 90ms + 120ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
/* the name tags of the roll call follow the mascots (app.js places them) */
.tags { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.tag { position: absolute; left: 0; top: 0; white-space: nowrap; font: 500 11px/1 var(--mono); letter-spacing: .02em; padding: 5px 7px; border-radius: 6px; color: var(--ink); background: #fff; box-shadow: 0 6px 16px -6px rgba(4, 12, 40, .5); opacity: 0; transition: opacity .25s ease; transform-origin: 50% 0; }
.tag::before { content: ""; position: absolute; left: 50%; top: -4px; width: 8px; height: 8px; margin-left: -4px; background: #fff; transform: rotate(45deg); border-radius: 1px; }
.tag.on { opacity: 1; }
.tag.up::before { top: auto; bottom: -4px; }
.tag b { font-weight: 600; }
.tag span { color: var(--ink-3); }

/* ---- scenes: a tall section whose stage stays put while its story plays */
.scene { position: relative; }
.scene .stage { will-change: opacity, transform; position: sticky; top: 0; height: 100svh; padding: clamp(92px, 13vh, 132px) var(--pad) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.scene .say { display: flex; flex-direction: column; gap: clamp(14px, 2vh, 22px); }
.scene .say .h2 { max-width: 10.4em; }
.scene .say .lead { max-width: 30em; }
/* a scene with nothing beside its words sets them across the top: one or two long lines, the world below */
.scene .stage > .say:only-child { grid-column: 1 / -1; }
.scene .stage > .say:only-child .h2 { max-width: calc(100% - 44px); }
.scene .stage > .say:only-child .lead { max-width: 34em; }
#s5 .say .lead { max-width: 46em; }
.scene .stage > .say:only-child::before { left: -8%; width: 80%; }
/* a scene set on the middle of the sky, the world under it */
.scene.mid .stage { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: clamp(16px, 2.4vh, 26px); }
.scene.mid .say { align-items: center; text-align: center; }
.scene.mid .say .h2 { max-width: none; }
.scene.mid .hour { align-self: center; }
.scene.mid .show { width: min(560px, 100%); }
/* a scene that leaves half the screen to the world */
.scene.solo .stage { grid-template-columns: minmax(0, 47%); }
.scene.solo .card { margin-top: 6px; max-width: 620px; }
.scene.solo .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.scene.solo .opt { white-space: nowrap; padding: 10px 11px; gap: 8px; }
.scene.flip .say { order: 2; }
.scene .show { position: relative; min-width: 0; }

/* ---- the app, staged: its own dark look, drawn in HTML so it can act */
.face { width: 18px; height: 18px; flex: none; image-rendering: pixelated; image-rendering: crisp-edges; }
.win { position: relative; border-radius: 14px; background: var(--app); color: var(--app-text); box-shadow: 0 0 0 1px rgba(148, 163, 184, .2), 0 40px 80px -30px rgba(2, 6, 24, .75), 0 14px 30px -18px rgba(2, 6, 24, .6); font-size: 14px; line-height: 1.4; }
.win .bar { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 14px; border-bottom: 1px solid var(--app-line); font: 500 12px/1 var(--mono); color: var(--app-soft); }
.win .bar .dots { display: inline-flex; gap: 6px; margin-right: 4px; }
.win .bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #2A3146; }
.win .bar .ttl { color: var(--app-text); letter-spacing: .02em; }
.win .bar .beta { margin-left: auto; letter-spacing: .14em; font-size: 10px; color: var(--app-dim); }
.win .bar .wl svg { height: 11px; width: auto; display: block; color: #fff; }
.win .bar .wl svg path:last-of-type { fill: var(--blue-hi); }
.win .bar .tab { display: inline-flex; align-items: center; gap: 7px; align-self: stretch; padding: 0 12px; margin-left: 6px; border-left: 1px solid var(--app-line); border-right: 1px solid var(--app-line); color: var(--app-text); }
.win .bar .tab i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-hi); }
.win .bar .tab b { font-weight: 500; color: var(--app-dim); }
.win .bar .who { display: inline-flex; align-items: center; gap: 8px; color: var(--app-text); }
.win .bar .who b { font-weight: 600; font-family: var(--sans); font-size: 13.5px; }
.win .body { padding: 16px; }
code { font-family: var(--mono); font-size: .92em; }
/* s1: the agents of one workspace */
.seats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.seat { display: flex; align-items: center; gap: 7px; padding: 7px 8px; border-radius: 8px; background: var(--app-2); box-shadow: 0 0 0 1px var(--app-line) inset; font: 500 11.5px/1.15 var(--mono); color: var(--app-soft); opacity: .38; transition: opacity .35s, box-shadow .35s, color .35s; overflow: hidden; }
.seat .face { width: 18px; height: 18px; }
.seat.in { opacity: 1; color: var(--app-text); box-shadow: 0 0 0 1px rgba(91, 141, 239, .55) inset; }
.rows { display: grid; gap: 7px; align-content: start; }
.arow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 10px 13px; border-radius: 11px; background: var(--app-2); box-shadow: 0 0 0 1px var(--app-line) inset; opacity: .3; filter: saturate(.3); transition: opacity .4s ease, filter .4s ease; }
.arow .st { visibility: hidden; }
.arow.in { opacity: 1; filter: none; }
.arow.in .st { visibility: visible; }
.arow .face { width: 27px; height: 27px; grid-row: span 2; }
.arow .nm { font-weight: 600; font-size: 14.5px; }
.arow .nm span { margin-left: 8px; font: 400 12px/1 var(--mono); color: var(--app-soft); }
.arow code { grid-column: 2; color: var(--app-dim); font-size: 12px; }
.arow .st { grid-column: 3; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; font-size: 12.5px; color: var(--app-soft); text-align: right; }
.steps { display: inline-flex; gap: 3px; }
.steps i { width: 15px; height: 5px; border-radius: 2px; background: #252C41; transition: background .3s; }
.steps i.on { background: var(--blue-hi); }
.spin { width: 54px; height: 5px; border-radius: 2px; background: #252C41; overflow: hidden; position: relative; }
.spin::after { content: ""; position: absolute; inset: 0 60% 0 0; border-radius: 2px; background: var(--blue-hi); animation: slide 1.3s ease-in-out infinite alternate; }
@keyframes slide { to { transform: translateX(150%); } }
.vault { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 12px 2px 0; border-top: 1px solid var(--app-line); color: var(--app-soft); font-size: 13px; opacity: 0; transition: opacity .6s; }
.vault.in { opacity: 1; }
.vault svg { width: 16px; height: 16px; flex: none; color: var(--ok); }
/* s2: a conversation with an Assistant */
.chat { display: flex; flex-direction: column; gap: 10px; min-height: 250px; }
.msg { max-width: 88%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 10px; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .45s cubic-bezier(.2, .8, .2, 1); }
.msg.in { opacity: 1; transform: none; }
.msg .face { width: 27px; height: 27px; grid-row: span 2; align-self: start; }
.msg .by { font: 500 11px/1 var(--mono); letter-spacing: .06em; color: var(--app-dim); }
.msg .tx { padding: 10px 13px; border-radius: 4px 13px 13px 13px; background: var(--app-3); font-size: 14px; line-height: 1.42; min-height: 40px; }
.msg.you { align-self: flex-end; grid-template-columns: minmax(0, 1fr); }
.msg.you .by { text-align: right; }
.msg.you .tx { background: var(--blue); border-radius: 13px 4px 13px 13px; }
.msg.agent .tx { background: none; box-shadow: 0 0 0 1px var(--app-line) inset; font-family: var(--mono); font-size: 12.5px; }
.msg .tx b { font-weight: 600; color: #BFD3FF; }
.msg.you .tx b { color: #fff; }
.gw { position: relative; display: block; }
.gh { visibility: hidden; }
.ty { position: absolute; left: 0; top: 0; right: 0; }
.typing { display: inline-flex; gap: 4px; padding: 5px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--app-soft); animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
/* s3: the New agent form */
.field { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px 0; }
.field > .lbl { font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--app-dim); }
.input { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; border-radius: 9px; background: var(--app-2); box-shadow: 0 0 0 1px var(--app-line) inset; font-size: 13.5px; }
.input code { margin-left: auto; color: var(--app-soft); }
.input.split { gap: 12px; flex-wrap: wrap; }
.off { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.off::before { content: ""; width: 26px; height: 15px; border-radius: 99px; background: #252C41; box-shadow: 8px 0 0 -4px #6B7385 inset; }
.sandbox { color: var(--app-soft); font-size: 12.5px; padding: 4px 9px; border-radius: 6px; box-shadow: 0 0 0 1px var(--app-line) inset; opacity: 0; transform: translateX(-6px); transition: opacity .35s, transform .35s; }
.sandbox.in { opacity: 1; transform: none; }
.tools { display: flex; flex-wrap: wrap; gap: 7px; }
.tool { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px 7px 8px; border-radius: 8px; background: var(--app-2); box-shadow: 0 0 0 1px var(--app-line) inset; font-size: 12.5px; color: var(--app-soft); transition: color .2s, box-shadow .2s, background .2s; }
.tool i { width: 14px; height: 14px; border-radius: 4px; box-shadow: 0 0 0 1.5px #3A4460 inset; display: grid; place-items: center; transition: background .2s, box-shadow .2s; }
.tool i::after { content: ""; width: 7px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .18s cubic-bezier(.3, 1.6, .5, 1); }
.tool.on { color: var(--app-text); }
.tool.on i { background: var(--blue); box-shadow: none; }
.tool.on i::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.tool.no { color: var(--app-dim); text-decoration: line-through; text-decoration-color: rgba(107, 115, 133, .7); }
.win .foot2 { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--app-line); }
.win .note { font-size: 12.5px; line-height: 1.4; color: var(--app-soft); }
.go { border: 0; padding: 11px 16px; border-radius: 9px; background: var(--blue); color: #fff; font: 600 13px/1 var(--sans); white-space: nowrap; transition: transform .12s, background .2s; }
.go.press { transform: scale(.95); background: #1D4ED8; }
.go.done { background: #15803D; }
.go.wide { width: 100%; padding: 13px 16px; font-size: 14px; }
.ptr { position: absolute; left: 0; top: 0; z-index: 5; width: 22px; height: 22px; pointer-events: none; opacity: 0; transition: transform .55s cubic-bezier(.3, .8, .25, 1), opacity .25s; }
.ptr.on { opacity: 1; }
.ptr svg { width: 22px; height: 22px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
/* things that fly between the page and the world: tool chips, letters */
.fx { position: fixed; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.fly { position: absolute; left: 0; top: 0; will-change: transform; }
.fly.chipf { padding: 5px 8px; border-radius: 7px; background: #fff; color: var(--ink); font: 600 11px/1 var(--mono); box-shadow: 0 8px 18px -8px rgba(4, 12, 40, .6); }
.fly.chipf.no { background: #2A3146; color: #A9B1C2; }
.fly.letter { width: 30px; height: 22px; border-radius: 3px; background: #fff; box-shadow: 0 8px 18px -8px rgba(4, 12, 40, .6); background-image: linear-gradient(35deg, transparent 49%, #9FB2D9 50%, transparent 52%), linear-gradient(-35deg, transparent 49%, #9FB2D9 50%, transparent 52%); }
/* s4: the laptop whose lid closes */
.laptop { perspective: 2600px; perspective-origin: 50% 100%; transition: transform .6s cubic-bezier(.5, 0, .7, .4), opacity .5s .1s; }
.lid { transform-origin: 50% 100%; border-radius: 14px 14px 4px 4px; transition: transform 1s cubic-bezier(.6, 0, .3, 1), filter 1s; }
.laptop .deck { position: relative; height: 16px; margin: 0 -22px; border-radius: 3px 3px 14px 14px; background: linear-gradient(#EEF1F6 0 3px, #C4CADA 3px 6px, #9299AC); box-shadow: 0 18px 30px -14px rgba(2, 6, 24, .7); }
.laptop .deck::after { content: ""; position: absolute; left: 50%; top: 0; width: 92px; height: 5px; margin-left: -46px; border-radius: 0 0 6px 6px; background: #7E869A; }
.laptop.closed .lid { transform: rotateX(-90deg); filter: brightness(.4); }
.laptop.gone { transform: translateY(46px) scale(.82); opacity: 0; }
.msgs { min-height: 0; }
.who-rail { display: flex; gap: 7px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--app-line); }
.who-rail .face { width: 20px; height: 20px; opacity: .4; border-radius: 4px; }
.who-rail .face.on { opacity: 1; box-shadow: 0 0 0 2px var(--app), 0 0 0 3.5px var(--blue-hi); }
.mrow { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 11px; padding: 12px 13px; border-radius: 11px; background: var(--app-2); box-shadow: 0 0 0 1px var(--app-line) inset; text-align: left; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .45s cubic-bezier(.2, .8, .2, 1); }
.mrow.in { opacity: 1; transform: none; }
.mrow .pair { grid-row: span 2; display: inline-flex; align-items: center; gap: 5px; align-self: start; padding-top: 2px; }
.mrow .pair .face { width: 22px; height: 22px; }
.mrow .pair svg { width: 13px; height: 13px; color: var(--app-dim); }
.mrow .by { font: 500 11.5px/1 var(--mono); color: var(--app-soft); letter-spacing: .03em; }
.mrow .tx { font-size: 13.5px; line-height: 1.42; }
/* the same messages, later, as notes that rise from the Station */
.toast { position: absolute; left: 0; top: 0; width: min(330px, 78vw); padding: 11px 13px; border-radius: 12px; background: #fff; color: var(--ink); font-size: 13px; line-height: 1.4; box-shadow: 0 18px 34px -14px rgba(4, 12, 40, .6); opacity: 0; transition: opacity .4s, transform .9s cubic-bezier(.2, .8, .2, 1); }
.toast.in { opacity: 1; }
.toast .by { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font: 600 11px/1 var(--mono); color: var(--ink-2); }
.toast .by .face { width: 18px; height: 18px; }
.toast .by svg { width: 12px; height: 12px; color: var(--ink-3); }
.toast.art { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; align-items: center; }
.toast.art .pg { height: 68px; border-radius: 6px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--rule) inset; padding: 8px 7px; display: flex; align-items: flex-end; gap: 4px; }
.toast.art .pg i { flex: 1; border-radius: 2px 2px 0 0; background: var(--blue); }
.toast.art .pg i:nth-child(1) { height: 92%; } .toast.art .pg i:nth-child(2) { height: 64%; } .toast.art .pg i:nth-child(3) { height: 41%; } .toast.art .pg i:nth-child(4) { height: 26%; background: #9DB8F5; }
/* s5: the question that waits, on a white card with its agent on top */
.card { position: relative; border-radius: 16px; background: #fff; color: var(--ink); padding: 20px; box-shadow: 0 30px 60px -24px rgba(2, 6, 24, .8), 0 0 0 1px rgba(255, 255, 255, .4); }
.card.q { opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .7s cubic-bezier(.2, .8, .2, 1); }
.card.q.in { opacity: 1; transform: none; }
.card .perch, .win .perch, .show > .perch { position: absolute; right: 22px; bottom: calc(100% - 4 * var(--px)); z-index: 1; }
.perch.hop .spr { animation: hop .5s cubic-bezier(.3, 0, .4, 1); }
@keyframes hop { 40% { transform: translateY(calc(-9 * var(--px))); } 100% { transform: none; } }
.card .who { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); letter-spacing: .04em; color: var(--ink-2); }
.card .who b { font: 600 15px/1 var(--sans); color: var(--ink); letter-spacing: 0; }
.card .who .face { width: 22px; height: 22px; }
.card .who .need { padding: 5px 8px; border-radius: 6px; background: #FEF3C7; color: #92400E; font-weight: 600; }
.card .qt { margin: 14px 0 0; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
.card .qt small { display: block; margin-bottom: 5px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.opts { display: grid; gap: 7px; margin-top: 14px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--rule) inset; font-size: 14px; font-weight: 500; transition: background .2s, box-shadow .2s, color .2s; }
.opt i { width: 20px; height: 20px; flex: none; border-radius: 6px; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 1px var(--rule) inset; font: 600 11px/1 var(--mono); font-style: normal; color: var(--ink-3); }
.opt.pick { background: var(--blue); color: #fff; box-shadow: none; }
.opt.pick i { background: rgba(255, 255, 255, .22); color: #fff; box-shadow: none; }
.card .st { display: flex; align-items: center; gap: 9px; margin: 14px 0 0; padding-top: 13px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-2); }
.card .st i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(245, 158, 11, .5); animation: wait 1.8s ease-out infinite; }
@keyframes wait { to { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); } }
/* s6: the phone, and the review that is ready */
.show.duo { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: start; }
#s6 .show { display: flex; justify-content: flex-end; padding-right: clamp(0px, 4vw, 70px); }
.phone { position: relative; width: 248px; padding: 32px 11px 14px; border-radius: 36px; background: var(--app); color: var(--app-text); box-shadow: 0 0 0 2px #2A3146, 0 0 0 8px #0B0F1A, 0 0 0 9px #3A4460, 0 40px 70px -28px rgba(2, 6, 24, .85); }
.phone .notch { position: absolute; left: 50%; top: 11px; width: 74px; height: 16px; margin-left: -37px; border-radius: 99px; background: #000; }
.phone .pbar { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 6px 12px; font: 600 17px/1 var(--sans); }
.phone .ptime { font: 500 11px/1 var(--mono); color: var(--app-dim); }
.pcard { padding: 13px; border-radius: 14px; background: var(--app-2); box-shadow: 0 0 0 1px var(--app-line) inset; }
.pcard .who { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.pcard .who span { font: 400 11px/1 var(--mono); color: var(--app-dim); }
.pcard .qt { margin: 10px 0 0; font-size: 14.5px; line-height: 1.34; font-weight: 500; }
.pcard .opts { margin-top: 11px; gap: 6px; }
.pcard .opt { background: var(--app-3); box-shadow: 0 0 0 1px var(--app-line) inset; font-size: 12.5px; padding: 9px 10px; }
.pcard .opt i { background: var(--app); box-shadow: none; color: var(--app-soft); width: 18px; height: 18px; }
.pcard .opt.pick { background: var(--blue); }
.pcard .opt.fade { opacity: .35; }
.pcard .ans { display: flex; gap: 8px; margin: 11px 0 0; padding-top: 11px; border-top: 1px solid var(--app-line); font-size: 12.5px; line-height: 1.4; color: var(--app-soft); opacity: 0; transition: opacity .4s; }
.pcard .ans.in { opacity: 1; }
.pcard .ans::before { content: ""; flex: none; width: 15px; height: 15px; margin-top: 1px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23052E12' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5'/%3E%3C/svg%3E") center/11px no-repeat; }
.pcard .ans b { color: var(--app-text); font-weight: 600; }
.phone { transition: opacity .35s, transform .35s; }
.phone.away { opacity: 0; transform: scale(.94); visibility: hidden; }
.tap { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(255, 255, 255, .28); box-shadow: 0 0 0 2px rgba(255, 255, 255, .6) inset; opacity: 0; transition: transform .6s cubic-bezier(.3, .8, .25, 1), opacity .25s; pointer-events: none; }
.tap.on { opacity: 1; }
.tap.down { background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 2px #fff inset, 0 0 0 10px rgba(255, 255, 255, .16); }
.merge { opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .6s cubic-bezier(.2, .8, .2, 1); }
.merge.in { opacity: 1; transform: none; }
.merge .bar .ttl { margin-left: auto; color: var(--app-soft); }
.merge .body p { margin: 0; }
.merge .branch { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.merge .branch svg { width: 16px; height: 16px; color: var(--blue-hi); }
.merge .branch code { font-size: 13.5px; }
.merge .facts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px !important; font-size: 12.5px; }
.merge .facts span { padding: 6px 9px; border-radius: 7px; background: var(--app-2); box-shadow: 0 0 0 1px var(--app-line) inset; color: var(--app-soft); }
.merge .facts .ok { color: #86EFAC; }
.merge .review { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px !important; padding: 11px 12px; border-radius: 10px; background: var(--app-2); font-size: 13px; line-height: 1.4; }
.merge .review .face { margin-top: 1px; }
.merge .review b { font-weight: 600; }
.merge .go { margin-top: 14px; }
.merge .fine { margin-top: 9px !important; font-size: 12px; line-height: 1.4; color: var(--app-dim); }
/* s7: the routine, three lines that tick as the day goes round */
.ledger { display: grid; gap: 12px; }
.lrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 16px 18px; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 24px 46px -22px rgba(2, 6, 24, .7); }
.lrow canvas { grid-row: span 2; width: 48px; height: 48px; image-rendering: pixelated; image-rendering: crisp-edges; border-radius: 10px; background: var(--paper-2); }
.lrow b { font-size: 16px; font-weight: 600; }
.lrow b small { margin-left: 8px; font: 500 11.5px/1 var(--mono); color: var(--ink-3); letter-spacing: .02em; }
.lrow span { grid-column: 2; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.lrow em { grid-column: 3; grid-row: 1 / span 2; font: 600 12px/1 var(--mono); font-style: normal; padding: 7px 9px; border-radius: 7px; background: #DCFCE7; color: #166534; opacity: 0; transform: scale(.8); transition: opacity .25s, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.lrow.tick em { opacity: 1; transform: none; }
/* ---- what the world holds: a bubble over a mascot, a card by the Station, a note by the mailbox.
   app.js moves the outer box to its anchor every frame; the inner one fades and carries the tail. */
#held { position: fixed; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.hg { position: absolute; inset: 0; }
.held { position: absolute; left: 0; top: 0; will-change: transform; }
.bub { position: relative; width: max-content; max-width: min(360px, calc(100vw - 32px)); padding: 12px 14px; border-radius: 14px; background: #fff; color: var(--ink); font-size: 14px; line-height: 1.42; text-align: left; box-shadow: 0 20px 40px -18px rgba(2, 6, 24, .7), 0 0 0 1px rgba(10, 16, 34, .06); opacity: 0; transform: translateY(10px) scale(.94); transform-origin: var(--tx, 50%) var(--ty, 100%); transition: opacity .28s ease, transform .42s cubic-bezier(.2, .9, .2, 1); }
.held.in .bub { opacity: 1; transform: none; }
.bub::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 3px; background: inherit; transform: rotate(45deg); }
.held[data-tail="b"] .bub::after { left: calc(var(--tx, 50%) - 7px); bottom: -6px; }
.held[data-tail="r"] .bub::after { right: -6px; top: calc(var(--ty, 50%) - 7px); }
.held[data-tail="l"] .bub::after { left: -6px; top: calc(var(--ty, 50%) - 7px); }
.held[data-tail="n"] .bub::after { display: none; }
.bub .by { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; font: 600 11px/1 var(--mono); letter-spacing: .03em; color: var(--ink-3); }
.bub .by .face { width: 20px; height: 20px; }
.bub .by svg { width: 12px; height: 12px; }
.bub .tx b { font-weight: 600; color: var(--blue); }
.bub.you { background: var(--blue); color: #fff; }
.bub.you .by { color: rgba(255, 255, 255, .82); }
.bub.you .tx b { color: #fff; }
.bub.mono .tx { font-family: var(--mono); font-size: 12.5px; }
.bub .typing i { background: var(--ink-3); }
/* a card: the same white box, wider, with rows */
.bub.wide { max-width: min(420px, calc(100vw - 32px)); width: min(420px, calc(100vw - 32px)); padding: 16px; }
.bub .head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font: 600 12px/1 var(--mono); letter-spacing: .04em; color: var(--ink-2); }
.bub .head .n { margin-left: auto; padding: 4px 7px; border-radius: 6px; background: var(--paper-2); color: var(--blue); }
.bub .rows { gap: 6px; }
.bub .arow { padding: 9px 11px; border-radius: 10px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--rule) inset; gap: 3px 11px; }
.bub .arow .face { width: 24px; height: 24px; }
.bub .arow .nm { font-size: 14px; color: var(--ink); }
.bub .arow .nm span { color: var(--ink-3); }
.bub .arow code { color: var(--ink-3); }
.bub .arow .st { color: var(--ink-2); font-size: 12px; }
.bub .steps i, .bub .spin { background: #D5DCEC; }
.bub .steps i.on, .bub .spin::after { background: var(--blue); }
.bub .vault { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 12.5px; line-height: 1.4; }
.bub .vault svg { color: #15803D; }
/* the New agent form, on paper */
.bub .frow { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 10px; padding: 6px 0; }
.bub .frow > .lbl { font: 500 10.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.bub .val { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13.5px; font-weight: 500; }
.bub .val code { margin-left: auto; color: var(--ink-3); font-weight: 400; }
.bub .tools { gap: 6px; }
.bub .tool { background: var(--paper-2); box-shadow: 0 0 0 1px var(--rule) inset; color: var(--ink-2); padding: 6px 9px 6px 7px; }
.bub .tool i { box-shadow: 0 0 0 1.5px #B4BED6 inset; background: #fff; }
.bub .tool.on { color: var(--ink); }
.bub .tool.on i { background: var(--blue); box-shadow: none; }
.bub .tool.no { color: var(--ink-3); }
.bub .off::before { background: #D5DCEC; box-shadow: 8px 0 0 -4px #fff inset; }
.bub .sandbox { color: var(--ink-2); box-shadow: 0 0 0 1px var(--rule) inset; background: var(--paper-2); }
.bub .foot2 { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--rule); }
.bub .note { font-size: 12px; line-height: 1.4; color: var(--ink-2); }
/* the question, by the mailbox */
.bub .who { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); letter-spacing: .04em; color: var(--ink-2); }
.bub .who b { font: 600 15px/1 var(--sans); color: var(--ink); letter-spacing: 0; }
.bub .who .face { width: 22px; height: 22px; }
.bub .who .need { padding: 5px 8px; border-radius: 6px; background: #FEF3C7; color: #92400E; font-weight: 600; }
.bub .qt { margin: 12px 0 0; font-size: 18px; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
.bub .qt small { display: block; margin-bottom: 5px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.bub .opts { display: grid; gap: 6px; margin-top: 12px; }
.bub .st2 { display: flex; align-items: center; gap: 9px; margin: 12px 0 0; padding-top: 11px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--ink-2); }
.bub .st2 i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--amber); animation: wait 1.8s ease-out infinite; }
/* the review that is ready */
.bub .branch { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; }
.bub .branch svg { width: 16px; height: 16px; color: var(--blue); }
.bub .facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; font-size: 12px; }
.bub .facts span { padding: 5px 8px; border-radius: 7px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--rule) inset; color: var(--ink-2); }
.bub .facts .ok { color: #15803D; }
.bub .review { display: flex; align-items: flex-start; gap: 9px; margin: 10px 0 0; padding: 10px 11px; border-radius: 10px; background: var(--paper-2); font-size: 13px; line-height: 1.4; }
.bub .review .face { margin-top: 1px; }
.bub .go { margin-top: 12px; }
.bub .fine { margin: 8px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--ink-3); }
/* a small caption for something in the world */
.bub.cap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 11px; align-items: center; max-width: min(330px, calc(100vw - 32px)); padding: 11px 13px; }
.bub.cap canvas { grid-row: span 2; width: 36px; height: 36px; border-radius: 8px; background: var(--paper-2); image-rendering: pixelated; image-rendering: crisp-edges; }
.bub.cap b { font-size: 14.5px; font-weight: 600; }
.bub.cap b small { margin-left: 7px; font: 500 11px/1 var(--mono); color: var(--ink-3); }
.bub.cap span { grid-column: 2; font-size: 12.5px; line-height: 1.38; color: var(--ink-2); }
.bub.cap.tick { animation: tick .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes tick { 40% { transform: scale(1.06); box-shadow: 0 20px 40px -18px rgba(2, 6, 24, .7), 0 0 0 3px rgba(37, 99, 235, .55); } }
.bub.art { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; align-items: center; }
.bub.art .pg { height: 64px; border-radius: 6px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--rule) inset; padding: 8px 7px; display: flex; align-items: flex-end; gap: 4px; }
.bub.art .pg i { flex: 1; border-radius: 2px 2px 0 0; background: var(--blue); }
.bub.art .pg i:nth-child(1) { height: 92%; } .bub.art .pg i:nth-child(2) { height: 64%; } .bub.art .pg i:nth-child(3) { height: 41%; } .bub.art .pg i:nth-child(4) { height: 26%; background: #9DB8F5; }
.fly.chipf { background: var(--blue); color: #fff; font-size: 12px; padding: 6px 9px; }

/* ---- the last screen and the foot */
.end { position: relative; min-height: 100svh; padding: clamp(96px, 13vh, 130px) var(--pad) 0; display: flex; flex-direction: column; align-items: flex-start; }
.end .display { max-width: 11em; font-size: clamp(44px, 6.4vw, 94px); }
.end .lead { margin-top: clamp(16px, 2.4vh, 24px); }
.end .cta { margin-top: clamp(20px, 3vh, 30px); display: flex; flex-wrap: wrap; gap: 12px; }
.end .promise { margin-top: 16px; }
.end .lead { max-width: 30em; }
.foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 16px var(--pad); background: rgba(5, 7, 13, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--app-soft); font-size: 13.5px; }
main { position: relative; }
.foot svg { height: 15px; width: auto; display: block; color: #fff; }
.foot svg path:last-of-type { fill: var(--blue-hi); }
.wip { display: none !important; }

/* ---- the corner button: stop and start all motion */
#motion { position: fixed; right: 18px; bottom: 18px; z-index: 30; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: #fff; color: var(--ink); font: 500 13px/1 var(--sans); box-shadow: 0 10px 26px -10px rgba(4, 12, 40, .6); }
#motion i { width: 9px; height: 9px; border-left: 3px solid var(--ink); border-right: 3px solid var(--ink); }
#motion.paused i { border: 0; width: 0; height: 0; border-left: 9px solid var(--ink); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

@media (max-width: 899px) {
  :root { --px: 2px; }
  .nav { gap: 10px; padding: 12px 16px; }
  .nav .logo svg { height: 15px; }
  .nav .chip { display: none; }
  .clock { padding: 7px 8px; }
  .clock i { display: none; }
  .nav .right { gap: 8px; }
  .navcta, .rail { display: none; }
  .hero { padding-top: 84px; }
  .hero .display { font-size: clamp(34px, 10.4vw, 54px); margin-top: 12px; }
  .hero .lead { font-size: 16px; line-height: 1.42; }
  .hero .hour span { font-size: 13.5px; }
  .hour { font-size: 11px; letter-spacing: .08em; align-items: flex-start; }
  .hero .hour span { padding: 3px 0 2px; }
  .scene .hour span { align-self: center; }
  .btn { padding: 15px 18px; font-size: 15px; }
  .promise { font-size: 11px; gap: 5px; }
  .promise span { padding: 6px 8px; }
  .scene .stage { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 72px 16px 0; align-content: start; }
  .scene.flip .say { order: 0; }
  .scene .say { gap: 9px; }
  .h2 { font-size: clamp(30px, 8.6vw, 40px); }
  .scene .lead { font-size: 15px; line-height: 1.4; }
  .win { font-size: 13px; border-radius: 12px; }
  .win .bar { min-height: 36px; padding: 0 11px; }
  .win .body { padding: 10px; }
  .rows { gap: 5px; }
  .seats { gap: 4px; margin-bottom: 7px; }
  .seat { flex-direction: column; gap: 4px; padding: 6px 2px; font-size: 9px; text-align: center; }
  .seat .face { width: 16px; height: 16px; }
  .arow { padding: 7px 9px; gap: 2px 9px; border-radius: 9px; }
  .arow .face { width: 22px; height: 22px; }
  .arow .nm { font-size: 13.5px; }
  .arow .nm span { margin-left: 6px; font-size: 10.5px; }
  .arow code { font-size: 10.5px; }
  .arow .st { font-size: 11px; gap: 5px; max-width: 108px; }
  .steps i { width: 11px; height: 4px; }
  .spin { width: 40px; height: 4px; }
  .vault { margin-top: 8px; padding-top: 9px; font-size: 11.5px; line-height: 1.35; gap: 8px; }
  .chat { gap: 7px; min-height: 0; }
  .msg { max-width: 94%; gap: 2px 8px; }
  .msg .face { width: 22px; height: 22px; }
  .msg .tx { padding: 8px 10px; font-size: 12.5px; min-height: 0; }
  .msg.agent .tx { font-size: 11.5px; }
  .field { grid-template-columns: 1fr; gap: 5px; padding: 5px 0; }
  .field > .lbl { font-size: 10px; }
  .input { min-height: 34px; padding: 6px 10px; font-size: 12.5px; }
  .tool { font-size: 11.5px; padding: 6px 8px 6px 7px; }
  .tools { gap: 5px; }
  .win .foot2 { margin-top: 6px; padding-top: 10px; gap: 10px; }
  .win .note { font-size: 11px; }
  .go { padding: 10px 12px; font-size: 12.5px; }
  .who-rail { gap: 6px; padding-bottom: 9px; margin-bottom: 9px; }
  .who-rail .face { width: 17px; height: 17px; }
  .mrow { padding: 9px 10px; gap: 3px 9px; }
  .mrow .pair .face { width: 18px; height: 18px; }
  .mrow .tx { font-size: 12.5px; }
  .laptop .deck { margin: 0 -10px; height: 12px; }
  .toast { font-size: 12px; padding: 9px 11px; width: min(270px, 74vw); }
  .card { padding: 14px; border-radius: 14px; }
  .card .perch { right: 14px; }
  .card .qt { font-size: 16px; margin-top: 10px; }
  .opts { gap: 5px; margin-top: 10px; }
  .opt { padding: 8px 10px; font-size: 12.5px; }
  .card .st { margin-top: 10px; padding-top: 10px; font-size: 11.5px; }
  .scene.solo .stage { grid-template-columns: minmax(0, 1fr); }
  .scene.solo .opts { display: grid; grid-template-columns: 1fr; }
  .scene.solo .opt { white-space: normal; }
  #s6 .show { justify-content: center; padding: 0; }
  .bub { font-size: 12.5px; padding: 9px 11px; border-radius: 12px; max-width: calc(100vw - 32px); }
  .bub.wide { width: calc(100vw - 32px); max-width: none; padding: 12px; }
  .bub .by { margin-bottom: 4px; font-size: 10.5px; }
  .bub .by .face { width: 17px; height: 17px; }
  .bub.mono .tx { font-size: 11.5px; }
  .bub .arow { padding: 7px 9px; }
  .bub .frow { grid-template-columns: 1fr; gap: 4px; padding: 4px 0; }
  .bub .qt { font-size: 15.5px; margin-top: 9px; }
  .bub .opts { gap: 5px; margin-top: 9px; }
  .bub .st2 { margin-top: 9px; padding-top: 9px; font-size: 11.5px; }
  .bub.cap { max-width: none; width: calc(100vw - 32px); padding: 9px 11px; }
  .bub.cap canvas { width: 30px; height: 30px; }
  .bub.cap b { font-size: 13.5px; }
  .bub.cap span { font-size: 12px; }
  .held[data-tail] .bub::after { display: none; }
  .phone { width: 204px; padding: 26px 8px 10px; border-radius: 28px; }
  .phone .notch { top: 9px; width: 62px; height: 13px; margin-left: -31px; }
  .phone .pbar { font-size: 14.5px; padding: 4px 5px 9px; }
  .pcard { padding: 10px; }
  .pcard { padding: 9px; }
  .pcard .who { font-size: 12.5px; }
  .pcard .qt { font-size: 12px; margin-top: 7px; }
  .pcard .opts { margin-top: 8px; gap: 5px; }
  .pcard .opt { font-size: 10.5px; padding: 6px 7px; gap: 6px; }
  .pcard .ans { margin-top: 8px; padding-top: 8px; }
  .pcard .ans { font-size: 11px; }
  .merge { width: 100%; }
  .merge .body { padding: 9px; }
  .merge .branch code { font-size: 11px; }
  .merge .facts { font-size: 10.5px; gap: 5px; margin-top: 8px !important; }
  .merge .facts span { padding: 4px 6px; }
  .merge .review { font-size: 11px; padding: 8px; margin-top: 8px !important; gap: 7px; }
  .merge .go { margin-top: 9px; padding: 10px; font-size: 12px; }
  .merge .fine { font-size: 10.5px; margin-top: 6px !important; }
  .ledger { gap: 7px; }
  .lrow { padding: 10px 11px; gap: 2px 11px; border-radius: 12px; }
  .lrow canvas { width: 36px; height: 36px; border-radius: 8px; }
  .lrow b { font-size: 14px; }
  .lrow b small { display: block; margin: 4px 0 0; font-size: 10.5px; }
  .lrow span { font-size: 12px; }
  .lrow em { font-size: 10.5px; padding: 5px 7px; }
  .end { padding-top: 96px; }
  .end { align-items: center; text-align: center; }
  .end .cta { flex-direction: column; align-items: center; }
  .end .cta .btn:first-child { order: 2; background: #0A1022; color: #fff; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .55) inset; }
  .end .cta .btn.ghost { background: #fff; color: var(--ink); box-shadow: 0 12px 30px -12px rgba(4, 12, 40, .55); }
  .end .promise { justify-content: center; }
  .end .display { font-size: clamp(40px, 11.6vw, 58px); }
  .foot { font-size: 12px; padding: 12px 16px 14px; }
  /* on a phone the stop button joins the header, so the corner stays with the cast */
  #motion { top: 12px; bottom: auto; right: 14px; padding: 10px; border-radius: 9px; background: rgba(5, 7, 13, .34); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: none; }
  #motion span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #motion i { border-color: #fff; }
  #motion.paused i { border-left-color: #fff; border-top-color: transparent; border-bottom-color: transparent; }
  .nav { padding-right: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; }
  .lit .c { opacity: 1; }
  .lit.done .c.cur::after { animation: none; }
  .ptr, .tap, .lid, .arow, .msg, .mrow, .toast, .merge, .card.q, .rail button i, .rail button span, .bub { transition: none; }
  .bub.cap.tick, .bub .st2 i { animation: none; }
  .perch.hop .spr { animation: none; }
  .input .caret, .typing i, .spin::after, .card .st i { animation: none; }
}

/* a short phone: the opening says its hour only, so the cast stays in view under the words */
@media (max-width: 899px) and (max-height: 720px) {
  .hero .hour { display: none; } /* the clock in the header says the hour */
  .end .promise { display: none; } /* the opening already said it */
}

/* the roll call on a phone: the name on the Station's chin */
.tag.plate::before { display: none; }
.tag.plate { box-shadow: 0 0 0 1px rgba(10, 16, 34, .5); }
/* the five the deck does not list: faces under the rows */
.bub .more { display: flex; gap: 8px; padding: 9px 11px 1px; }
.bub .more .face { width: 22px; height: 22px; opacity: .22; filter: saturate(.2); transition: opacity .4s ease, filter .4s ease; }
.bub .more .face.in { opacity: 1; filter: none; }
/* the opening: what stands under the headline waits until it is typed */
html.dawn .hero .lead.rise { animation-delay: 2s; }
html.dawn .hero .cta.rise { animation-delay: 2.15s; }
html.dawn .hero .promise.rise { animation-delay: 2.3s; }
@media (max-width: 899px) and (max-height: 720px) {
  /* a short phone keeps the coupon and one button, so nothing stands on the Station */
  .hero .promise span:not(:last-child) { display: none; }
  .end .cta .btn:not(.ghost) { display: none; }
  .end { padding-top: 78px; }
  .end .lead { font-size: 14px; line-height: 1.45; }
}

/* the real app inside the Station's screen: a capture that resolves out of pixels */
#cap { position: fixed; z-index: 3; margin: 0; border-radius: 12px; background: #0B0E18; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 30px 80px -20px rgba(0, 0, 0, .7); pointer-events: none; }
#cap[hidden] { display: none; }
#cap canvas, #cap img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 12px; display: block; }
#cap canvas { image-rendering: pixelated; }
#cap img { opacity: 0; }
#cap.sharp img { opacity: 1; }
#cap.sharp canvas { opacity: 0; }
#cap p { position: absolute; left: 0; top: 100%; margin: 10px 0 0; padding: 5px 9px; border-radius: 7px; background: #0A1022; color: rgba(255, 255, 255, .86); font: 500 11.5px/1 var(--mono); letter-spacing: .04em; white-space: nowrap; }
@media (max-width: 899px) {
  #cap, #cap canvas, #cap img { border-radius: 10px; }
  #cap p { font-size: 10.5px; margin-top: 8px; }
  /* cards that hold on to the cast are narrower than the screen */
  .held .bub { max-width: min(340px, calc(100vw - 28px)); }
}

@media (max-width: 899px) and (max-height: 720px) {
  /* a short phone: tighter cards, so whoever holds one stays in view under it */
  .bub.wide { padding: 10px 11px; }
  .bub .qt { font-size: 14.5px; margin-top: 7px; }
  .bub .opts { gap: 4px; margin-top: 7px; }
  .bub .opts .opt { padding-top: 5px; padding-bottom: 5px; }
  .bub .st2 { margin-top: 7px; padding-top: 7px; }
  .bub .frow { margin-top: 6px; }
  .bub .foot2 { margin-top: 8px; padding-top: 8px; }
}
