/* /day - a day with Olvard: one day from the first coffee to 2 a.m., the sky changing with the hour.
   day.js sets --sky1 / --sky2 / --glow / --accent as you scroll, and --p (0..1) inside each pinned scene. */
:root { --sky1: #141a2e; --sky2: #2a2233; --glow: 240, 170, 110; --accent: #f2c48d; --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
body { background: #0b0c0e; }
main.day { max-width: none; padding: 0; }
.top { position: relative; z-index: 5; }

.sky { position: fixed; inset: 0; z-index: -1; will-change: background; transform: translateZ(0);
  background: radial-gradient(ellipse 80% 60% at 70% 30%, rgba(var(--glow), .14), transparent 70%),
              linear-gradient(180deg, var(--sky1), var(--sky2)); }
.rain { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.rain canvas { width: 100%; height: 100%; display: block; }
.ch { position: relative; z-index: 1; }

.clk { font-family: ui-monospace, Consolas, monospace; font-size: .8rem; letter-spacing: .12em; color: var(--muted);
  text-transform: uppercase; margin: 0 0 14px; }
.clk b { color: var(--accent); font-size: 1rem; margin-right: 10px; letter-spacing: .05em; transition: color .6s; }
main.day h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.12; letter-spacing: -.015em; font-weight: 650; margin: 0 0 22px; }

/* the clock down the side: where in the day you are */
.clock { position: fixed; left: 26px; top: 50%; transform: translateY(-50%); z-index: 4; display: flex; flex-direction: column;
  flex-wrap: nowrap; align-items: flex-start; gap: 4px; font-size: 1rem; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .08); }
.clock a { display: flex; flex-direction: column; text-decoration: none; color: var(--dim); padding: 5px 0; position: relative;
  transition: color .4s; }
.clock a b { font-family: ui-monospace, Consolas, monospace; font-size: .82rem; font-weight: 600; }
.clock a span { font-size: .72rem; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s, opacity .4s; }
.clock a::before { content: ""; position: absolute; left: -18px; top: 11px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--dim); transition: background .4s, box-shadow .4s; }
.clock a:hover, .clock a[aria-current] { color: var(--fg); }
.clock a[aria-current] b { color: var(--accent); }
.clock a[aria-current] span { max-height: 1.4em; opacity: .8; }
.clock a[aria-current]::before { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.buddy { width: 60px; height: 60px; margin: 0 0 12px -36px; opacity: 0; transition: opacity .6s; }
.buddy canvas { width: 100%; height: 100%; display: block; }
.clock.away .buddy { opacity: 1; }

/* 07:00 */
.dawn { min-height: calc(100svh - 70px); display: grid; place-items: center; padding: 20px 24px 60px; text-align: center; }
.dawn-in { max-width: 860px; }
.hero-core { width: min(300px, 62vw); aspect-ratio: 1; margin: 0 auto 6px; }
.hero-core canvas { width: 100%; height: 100%; display: block; }
.greet { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--accent); margin: 0 0 6px; min-height: 1.6em; }
.dawn h1 { font-size: clamp(2.2rem, 5.6vw, 4.1rem); line-height: 1.06; letter-spacing: -.02em; margin: 6px 0 18px; }
.dawn h1 span { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--muted); }
.dawn .lead { margin: 0 auto; max-width: 600px; }
.dawn .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 28px 0 0; }
.scroll-hint { margin: 44px 0 0; color: var(--dim); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint i { width: 1px; height: 38px; background: linear-gradient(var(--dim), transparent); animation: drip 2.2s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* pinned scenes: tall sections, the stage stays put while the conversation plays out with your scrolling */
.scene { height: 280vh; }
.pin { position: sticky; top: 0; height: 100svh; max-width: 1320px; margin: 0 auto; padding: 0 40px 0 170px; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: center; }
.cap { max-width: 480px; }

/* the conversation: You plainly, Olvard in his own (serif) voice, what the app did as a quiet receipt */
.talk { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; --gap: 10px; }
.talk li { opacity: .09; transform: translateY(6px); max-height: 14em; margin-top: var(--gap); overflow: hidden;
  transition: opacity .5s cubic-bezier(.2, .7, .2, 1), transform .5s cubic-bezier(.2, .7, .2, 1), max-height .55s cubic-bezier(.2, .7, .2, 1), margin .55s cubic-bezier(.2, .7, .2, 1); }
.talk li:first-child { margin-top: 0; }
.talk li.shown { opacity: 1; transform: none; }
.talk .me { color: var(--fg); font-weight: 560; }
.talk .me::before { content: "You  "; white-space: pre; color: var(--dim); font-weight: 400; font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; }
.talk .olv { font-family: var(--serif); font-size: 1.14rem; color: var(--accent); line-height: 1.45; transition: color .6s; }
/* R.E.B.E.L's aside: faint, small, under the last line - it takes no room, so nothing moves when it shows */
.talk { position: relative; }
.talk .reb { position: absolute; left: 0; top: 100%; margin-top: 10px; max-height: none; font-family: ui-monospace, Consolas, monospace;
  font-size: .8rem; letter-spacing: .06em; color: #b84a4a; transform: none; transition: opacity 1.6s ease-in; }
.talk .reb.shown { opacity: .5; }
.talk .reb::before { content: "R.E.B.E.L  "; white-space: pre; font-size: .62rem; letter-spacing: .2em; color: #8a3a3a; }
.talk.big li.reb:not(.recent) { max-height: none; margin-top: 10px; transform: none; }
.talk .tool { font-family: ui-monospace, Consolas, monospace; font-size: .76rem; color: var(--muted); padding-left: 16px; position: relative; }
.talk .tool::before { content: "\2713"; position: absolute; left: 0; color: var(--ok); }
.talk li.shown.last.olv { text-shadow: 0 0 18px rgba(var(--glow), .35); }

/* 09:30 - the PC app itself, doing what the conversation says (a live copy of its home screen, sample data) */
.app { --a-bg: #0b1014; --a-panel: #131c22; --a-line: #1f2a31; --a-cy: #4cc9d3; border: 1px solid #1f2a31;
  border-radius: 14px; background: var(--a-bg); box-shadow: 0 40px 80px rgba(0, 0, 0, .5);
  font: 13px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow: hidden; }
.app-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; }
.app-bar b { display: flex; align-items: center; gap: 8px; color: var(--a-cy); letter-spacing: .3em; font-size: 12px; font-weight: 600; }
.app-bar svg { width: 18px; height: 18px; letter-spacing: 0; }
.app-bar span { color: var(--muted); font-size: 11px; }
.app-body { display: grid; grid-template-columns: 1.45fr 1fr; gap: 12px; padding: 0 12px 12px; height: 450px; }
.app-chat { background: var(--a-panel); border: 1px solid var(--a-line); border-radius: 12px; padding: 12px 12px 0; display: flex;
  flex-direction: column; align-items: center; min-height: 0; }
.app-core { width: 108px; height: 108px; transition: width .5s, height .5s; flex: none; }
.app.talking .app-core { width: 62px; height: 62px; }
.app-core canvas { width: 100%; height: 100%; display: block; }
.app-status { margin: 2px 0 8px; text-align: center; display: flex; flex-direction: column; }
.app-status b { font-size: 10px; letter-spacing: .3em; color: var(--muted); font-weight: 600; transition: color .4s; }
.app[data-state="listening"] .app-status b { color: #6fdc8c; }
.app[data-state="thinking"] .app-status b { color: #f0c674; }
.app[data-state="speaking"] .app-status b { color: #7fe6ec; }
.app-status span { font-size: 11px; color: var(--muted); }
.app-msgs { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; min-height: 0; padding-bottom: 10px; }
.app-empty { margin: auto; color: var(--muted); font-size: 12px; text-align: center; }
.app-empty { transition: opacity .4s; }
.app-empty:not(.vis) { opacity: 0; position: absolute; }
.m { margin: 0; max-width: 86%; border-radius: 8px; padding: 0 10px; color: var(--fg); max-height: 0; opacity: 0; overflow: hidden;
  transform: translateY(8px); transition: max-height .5s cubic-bezier(.2, .7, .2, 1), opacity .4s, transform .5s cubic-bezier(.2, .7, .2, 1), padding .5s cubic-bezier(.2, .7, .2, 1), margin .5s cubic-bezier(.2, .7, .2, 1); }
.m.on { max-height: 9em; opacity: 1; transform: none; padding: 6px 10px; margin-top: 8px; }
.m small { display: block; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.m.me { align-self: flex-end; background: #16302b; box-shadow: inset -2px 0 0 #6fdc8c; }
.m.me small { color: #6fdc8c; }
.m.olv { align-self: flex-start; background: #18232a; border: 1px solid var(--a-line); }
.m.olv small { color: var(--a-cy); }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.app-ctl { width: 100%; border-top: 1px solid var(--a-line); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  justify-items: center; padding: 10px 0 12px; }
.app-ctl span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 9px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); }
.app-ctl svg { width: 30px; height: 30px; padding: 7px; border: 1px solid var(--a-line); border-radius: 50%; color: var(--a-cy); }
.app-ctl b { width: 66px; height: 66px; border-radius: 50%; border: 2px solid var(--a-cy); display: grid; place-items: center;
  color: var(--a-cy); font-size: 10px; letter-spacing: .12em; background: #12262b; transition: border-color .4s, color .4s; }
.app[data-state="listening"] .app-ctl b { border-color: #6fdc8c; color: #6fdc8c; font-size: 8px; }
.app-side { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.app-tile { background: var(--a-panel); border: 1px solid var(--a-line); border-radius: 10px; padding: 12px 14px; }
.tile-h { margin: 0 0 8px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.dayh { margin: 8px 0 3px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--a-cy); font-weight: 600; }
.tile-h { color: var(--a-cy) !important; font-weight: 600; }
.ev { margin: 0 0 0 -6px; display: flex; gap: 10px; padding: 3px 6px; border-radius: 6px; transition: background .4s, box-shadow .4s; }
.ev time { color: var(--muted); min-width: 3.2em; position: relative; }
.ev time s { text-decoration: none; display: inline-block; transition: opacity .4s, transform .4s; }
.ev time b { position: absolute; left: 0; top: 0; font-weight: 400; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.ev.hl { background: rgba(76, 201, 211, .1); box-shadow: inset 2px 0 0 var(--a-cy); }
.ev.moved { animation: moved 1.8s ease-out; }
.ev.moved time s { opacity: 0; transform: translateY(-8px); }
.ev.moved time b { opacity: 1; transform: none; color: var(--a-cy); }
@keyframes moved { 0%, 45% { background: rgba(240, 198, 116, .18); box-shadow: inset 2px 0 0 #f0c674; } 100% { background: transparent; } }
.nt { margin: 0 0 8px; display: flex; flex-direction: column; }
.nt span { color: var(--dim); font-size: 11px; }

/* 17:00 - who he talks to: a request travels out along a line, the answer comes back and stays */
.map { position: relative; width: 100%; max-width: 520px; aspect-ratio: 460 / 400; justify-self: center; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.link { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 1.5; stroke-dasharray: 3 6; transition: stroke .5s; }
.link.asking { stroke: var(--accent); stroke-dasharray: 6 10; animation: flow .6s linear infinite; }
.link.done { stroke: rgba(var(--glow), .7); stroke-dasharray: none; }
@keyframes flow { to { stroke-dashoffset: -16; } }
.hub, .svc { position: absolute; transform: translate(-50%, -50%); border: 1px solid rgba(255, 255, 255, .1); background: rgba(12, 16, 21, .92);
  border-radius: 14px; padding: 10px 14px; display: flex; flex-direction: column; transition: border-color .5s, box-shadow .5s; }
.hub { left: 17%; top: 50%; align-items: center; text-align: center; width: 128px; }
.hub i { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--accent); margin-bottom: 6px; position: relative;
  box-shadow: 0 0 14px rgba(var(--glow), .35); }
.hub i::after { content: ""; position: absolute; inset: 9px 11px; border: 1.5px solid var(--accent); transform: rotate(45deg) scale(.8); border-radius: 2px; }
.map.busy .hub i { animation: hubpulse 1s ease-in-out infinite; }
@keyframes hubpulse { 50% { box-shadow: 0 0 26px rgba(var(--glow), .7); } }
.hub b, .svc b { font-size: .95rem; }
.hub span, .svc span { font-size: .72rem; color: var(--dim); }
.hub em { font-style: normal; font-family: ui-monospace, Consolas, monospace; font-size: .7rem; color: var(--accent); margin-top: 6px;
  letter-spacing: .06em; text-transform: uppercase; }
.svc { left: 79%; width: 172px; opacity: .45; }
.svc[data-svc="0"] { top: 17.5%; } .svc[data-svc="1"] { top: 50%; } .svc[data-svc="2"] { top: 82.5%; }
.svc .q, .svc .a { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s, opacity .4s, margin .4s; }
.svc .q { font-family: ui-monospace, Consolas, monospace; font-size: .74rem; color: var(--accent); }
.svc .a { font-weight: 600; font-size: .9rem; color: var(--fg); }
.svc.asking { opacity: 1; border-color: var(--accent); box-shadow: 0 0 22px rgba(var(--glow), .25); }
.svc.asking .q { max-height: 2em; opacity: 1; margin-top: 6px; }
.svc.done { opacity: 1; border-color: rgba(var(--glow), .45); }
.svc.done .a { max-height: 3em; opacity: 1; margin-top: 6px; }
.svc.done .a::before { content: "\2713  "; white-space: pre; color: var(--ok); }

/* simplified screens of what he opens: generic drawings in Olvard's own style, not the real apps */
.out .pin { grid-template-columns: minmax(0, .8fr) minmax(0, 1.45fr); gap: 40px; }
.side-out { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 28px; align-items: center; }
.phone { margin: 0; width: 210px; height: 400px; border-radius: 30px; border: 1px solid rgba(255, 255, 255, .14); background: #0b0e12;
  padding: 14px 12px; position: relative; box-shadow: 0 30px 60px rgba(0, 0, 0, .5), inset 0 0 0 4px #05070a; display: grid; }
.phone::before { content: ""; position: absolute; top: 9px; left: 50%; width: 46px; height: 5px; margin-left: -23px; border-radius: 3px; background: #1c2128; }
.scr { grid-area: 1 / 1; padding-top: 10px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; opacity: 0; transform: translateY(10px);
  transition: opacity .45s, transform .45s; pointer-events: none; }
.scr.vis { opacity: 1; transform: none; }
/* the desk PC, beside the phone: screen on, then dark and locked once the command arrives */
.pcmon { position: absolute; left: 50%; margin-left: -66px; bottom: -150px; width: 132px; display: flex; flex-direction: column; align-items: center;
  transform: translateX(14px) scale(.92); transition: opacity .5s, transform .5s; }
.pcmon.vis { transform: none; }
.scrn { position: relative; width: 132px; height: 82px; border: 4px solid #232a31; border-radius: 7px; overflow: hidden;
  background: radial-gradient(circle at 70% 30%, rgba(43, 196, 207, .35), transparent 60%), linear-gradient(135deg, #16303a, #0f1a24);
  box-shadow: 0 0 24px rgba(43, 196, 207, .25); transition: box-shadow .6s; }
.scrn i { position: absolute; border-radius: 3px; background: rgba(233, 251, 252, .16); border: 1px solid rgba(233, 251, 252, .18); }
.scrn .w1 { left: 8px; top: 8px; width: 62px; height: 40px; }
.scrn .w2 { left: 76px; top: 8px; width: 38px; height: 22px; }
.scrn .w3 { left: 76px; top: 35px; width: 38px; height: 22px; }
.scrn .off { position: absolute; inset: 0; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: #9aa3a8; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; transition: opacity .6s; }
.scrn .off svg { width: 22px; height: 22px; }
.pcmon:has(.off.vis) .scrn { box-shadow: none; }
.pcmon::after { content: ""; width: 34px; height: 12px; background: linear-gradient(#232a31, #1a1f25); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.pcmon p { order: 3; margin: 4px 0 0; font-size: 10px; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; }
.idle { align-items: center; justify-content: center; }
.clock-big { margin: 0; font-size: 48px; font-weight: 300; letter-spacing: .02em; }
.date-s { margin: 0; color: var(--dim); font-size: 12px; }
.scr-top { margin: 0; font-size: 11px; font-weight: 600; color: var(--fg); }
.scr-top span { color: var(--dim); font-weight: 400; }
.phone figcaption { top: -22px; bottom: auto !important; }
.phone figcaption, .navwin figcaption { position: absolute; bottom: -24px; left: 0; right: 0; text-align: center; font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
[data-show-at]:not(.vis), [data-hide-at]:not(.vis) { opacity: 0; }
.scr [data-show-at], .navwin [data-show-at], .navwin [data-hide-at], .scr [data-hide-at] { transition: opacity .5s; }
.tile-map, .nav-map { width: 100%; height: auto; border-radius: 12px; background: #141a20; }
.st { stroke: #222b33; stroke-width: 4; fill: none; }
.rt { stroke: var(--accent); stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 400; stroke-dashoffset: 400;
  transition: stroke-dashoffset 1.6s ease-in-out, opacity .5s; }
.scr.vis .rt.on-1, .rt.vis { stroke-dashoffset: 0; }
.pin-a { fill: #e9fbfc; } .pin-b { fill: var(--accent); }
.field { margin: 0; border: 1px solid #222a31; border-radius: 9px; padding: 6px 9px; display: flex; flex-direction: column; color: var(--muted); }
.field span { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.field b { color: var(--fg); font-weight: 600; min-height: 1.4em; }
.opt { margin: 0; display: flex; justify-content: space-between; padding: 6px 9px; border-radius: 9px; background: #151b21; }
.opt span { color: var(--dim); }
.btn-ph { margin: auto 0 0; text-align: center; background: var(--accent); color: #04181a; font-weight: 650; border-radius: 10px; padding: 8px; }
.wx-now { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; padding: 14px 4px; }
.wx-ico { grid-row: span 2; width: 52px; height: 52px; color: #a9c4dc; }
.wx-ico svg { width: 100%; height: 100%; }
.wx-now b { font-size: 40px; font-weight: 600; line-height: 1; }
.wx-now em { font-style: normal; color: var(--muted); }
.hours { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.hours p { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; border-radius: 9px; background: #151b21; }
.hours span { font-size: 9px; color: var(--dim); }
.hours .wet { background: rgba(140, 170, 200, .16); box-shadow: inset 0 -2px 0 #a9c4dc; }
.wx-note { margin: 4px 0 0; color: #a9c4dc; }
.own .lock-ico { width: 84px; height: 84px; margin: 40px auto 6px; color: var(--accent); filter: drop-shadow(0 0 12px rgba(var(--glow), .5)); }
.own .lock-ico svg { width: 100%; height: 100%; }
.lock-t { margin: 0; text-align: center; font-size: 20px; display: grid; }
.lock-t b, .lock-t span { grid-area: 1 / 1; }
.lock-t span { color: var(--muted); font-size: 15px; }
.lock-s { margin: 0; text-align: center; color: var(--dim); font-size: 11px; }

/* the car: a navigation window + what's playing */
.car .pin { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; }
.navwin { margin: 0; position: relative; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(8, 10, 12, .92);
  padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 30px 60px rgba(0, 0, 0, .6); }
.nav-wait { max-height: 2em; overflow: hidden; transition: max-height .45s cubic-bezier(.2, .7, .2, 1), opacity .4s; }
.nav-wait:not(.vis) { max-height: 0; }
.car-side { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.minimap { width: 330px; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 40px rgba(43, 196, 207, .12), 0 20px 50px rgba(0, 0, 0, .6); }
.minimap canvas { width: 100%; height: 100%; display: block; }
.navwin { width: 100%; }
.nav-wait { margin: 0; color: var(--dim); font-size: 13px; }
.crow { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; border-top: 1px solid #1c2228; padding-top: 10px;
  max-height: 90px; overflow: hidden; transition: max-height .55s cubic-bezier(.2, .7, .2, 1), opacity .45s, padding .55s cubic-bezier(.2, .7, .2, 1), border-color .45s, transform .55s cubic-bezier(.2, .7, .2, 1); }
.crow p { margin: 0; display: flex; flex-direction: column; font-size: 13px; }
.crow span { color: var(--dim); font-size: 11px; }
.crow:not(.vis) { max-height: 0; padding-top: 0; border-color: transparent; transform: translateY(8px); }
.music .art { width: 36px; height: 36px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), #7a5cff); }
.crow .ic { width: 36px; height: 36px; border-radius: 8px; background: #121a1f; display: grid; place-items: center; color: var(--ok); }
.crow .ic svg { width: 18px; height: 18px; }
.navrow b { color: var(--ok); font-size: 18px; }
.ic.pol { position: relative; }
.ic.pol::before, .ic.pol::after { content: ""; position: absolute; top: 13px; width: 9px; height: 9px; border-radius: 50%; }
.ic.pol::before { left: 7px; background: #ff3b3b; animation: blink-r .44s steps(1) infinite; }
.ic.pol::after { right: 7px; background: #3b6bff; animation: blink-b .44s steps(1) infinite; }
@keyframes blink-r { 50% { box-shadow: 0 0 12px #ff3b3b; opacity: 1; } 0% { opacity: .35; box-shadow: none; } }
@keyframes blink-b { 0% { box-shadow: 0 0 12px #3b6bff; opacity: 1; } 50% { opacity: .35; box-shadow: none; } }
.music em { grid-column: 1 / -1; height: 3px; border-radius: 2px; background: #1c2228; overflow: hidden; }
.music em s { display: block; height: 100%; width: 0; background: var(--accent); }
.music.vis em s { animation: song 40s linear infinite; }
@keyframes song { to { width: 100%; } }

/* hands-free: the introduction */
.hf-intro { padding: 18vh 24px 16vh 120px; }
.hf-in { max-width: 920px; margin: 0 auto; text-align: center; }
.hf-new { display: inline-block; margin: 0 0 16px; padding: 4px 14px; border-radius: 999px; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
  color: #04181a; background: var(--accent); box-shadow: 0 0 24px rgba(var(--glow), .45); font-weight: 700; }
.hf-in h2 span { color: var(--accent); }
.hf-in .lead { margin: 0 auto 34px; max-width: 680px; }
.hf-in .lead b { color: var(--fg); font-weight: 600; }
.hf-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; text-align: left; }
.hf-way { position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; align-items: start; padding: 22px 24px;
  border-radius: 18px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .025); color: var(--fg); text-decoration: none;
  transition: border-color .3s, background .3s, transform .3s; }
.hf-way:hover { border-color: var(--accent); background: rgba(var(--glow), .06); transform: translateY(-2px); color: var(--fg); }
.hf-way i { grid-row: span 2; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; color: var(--accent);
  background: rgba(var(--glow), .1); }
.hf-way i svg { width: 32px; height: 32px; }
.hf-way b { font-size: 1.15rem; }
.hf-way span { color: var(--muted); font-size: .95rem; }
.hf-way em { position: absolute; top: 18px; right: 20px; font-style: normal; font-family: ui-monospace, Consolas, monospace; font-size: .8rem; color: var(--dim); }
.hf-fine { margin: 26px 0 0; color: var(--dim); font-size: .85rem; }

/* 17:20 - car mode: the page becomes the dashboard */
.car .pin { padding: 0 40px 0 170px; max-width: none; }
.hud { position: relative; max-width: 900px; }
.hud .clk span { color: var(--accent); }
.talk.big { --gap: 14px; }
.talk.big .me { font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--muted); }
.talk.big .olv { font-family: inherit; font-weight: 650; font-size: clamp(1.6rem, 3.6vw, 2.8rem); line-height: 1.12; padding-bottom: .14em; color: var(--fg); letter-spacing: -.01em; }
.talk.big .tool { font-size: .9rem; color: var(--accent); }
.talk.big li:not(.shown) { opacity: 0; }
.talk.big li:not(.recent) { opacity: 0; max-height: 0; margin-top: 0; transform: translateY(-10px); }
.talk.big li.recent:not(.shown) { max-height: 0; margin-top: 0; }
.hud .hint { color: var(--dim); margin-top: 48px; font-size: .95rem; }

/* 19:00 - the kitchen: a phone on a stand, a timer, a shopping note */
.kit { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1.15; justify-self: center; }
.k-phone { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 36%; display: flex; flex-direction: column; align-items: center; }
.k-scr { width: 100%; aspect-ratio: 9 / 17; border-radius: 26px; border: 1px solid rgba(255, 255, 255, .16); background: #0b1014;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55), inset 0 0 0 4px #05080a; padding: 22px 12px 14px; display: flex; flex-direction: column; align-items: center; }
.k-top { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.k-top svg { width: 14px; height: 14px; }
.k-core { width: 78%; aspect-ratio: 1; margin: auto 0 6px; }
.k-core canvas { width: 100%; height: 100%; display: block; }
.k-state { margin: 0 0 auto; text-align: center; font-size: 12px; color: var(--muted); min-height: 2.6em; }
.k-stand { width: 70%; height: 14px; margin-top: -4px; background: linear-gradient(#2a2420, #1c1815); clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); }
.k-timer { position: absolute; left: 0; top: 6%; width: 30%; aspect-ratio: 1; display: grid; place-items: center; transition: opacity .5s, transform .5s; }
.k-timer svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.k-track { fill: rgba(10, 12, 14, .7); stroke: rgba(255, 255, 255, .08); stroke-width: 5; }
.k-arc { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 213.6; stroke-dashoffset: 0; transition: stroke-dashoffset .4s; }
.k-timer b { position: relative; font-size: clamp(16px, 2.2vw, 24px); font-weight: 600; font-variant-numeric: tabular-nums; margin-top: -8px; }
.k-timer span { position: absolute; bottom: 24%; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.k-timer.done b { color: #6fdc8c; }
.k-timer.done { animation: buzz .5s ease-in-out 3; }
@keyframes buzz { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
.k-note { position: absolute; right: 0; bottom: 8%; width: 32%; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(12, 14, 16, .9);
  padding: 12px 14px; transition: opacity .5s, transform .5s; }
.k-note:not(.vis) { transform: translateY(10px); }
.k-note ul { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
.k-note li::before { content: ""; display: inline-block; width: 9px; height: 9px; border: 1px solid var(--dim); border-radius: 3px; margin-right: 8px; }
.k-add { color: var(--fg); max-height: 1.6em; overflow: hidden; transition: opacity .5s, max-height .5s; }
.k-add:not(.vis) { max-height: 0; }
.k-add.vis { animation: added 1.4s ease-out; }
@keyframes added { 0%, 40% { color: var(--accent); } }
.k-ring { position: absolute; left: 50%; top: 40%; width: 0; height: 0; }
.k-ring i { position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; }
.k-ring.vis i { animation: ring 1.8s ease-out infinite; }
.k-ring.vis i:nth-child(2) { animation-delay: .6s; } .k-ring.vis i:nth-child(3) { animation-delay: 1.2s; }
@keyframes ring { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }

/* 21:00 - personalities, quiet mode */
.eve { max-width: 860px; margin: 0 auto; padding: 22vh 24px 22vh 120px; }
.eve .lead { margin: 0 0 30px; }
.req { color: var(--muted); font-size: 1.05rem; margin: 0 0 14px; }
.who { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.who button { font: inherit; font-size: .92rem; color: var(--muted); background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px; padding: 8px 18px; cursor: pointer; transition: color .3s, border-color .3s, box-shadow .3s; }
.who button[aria-pressed="true"] { color: var(--fg); border-color: var(--accent); box-shadow: 0 0 18px rgba(var(--glow), .25); }
.who .locked { letter-spacing: .25em; color: #5a3a3a; border-style: dashed; }
.who .locked:hover { color: #ff3b3b; border-color: #ff3b3b; }
.reply { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.3; color: var(--accent); min-height: 2.7em;
  margin: 0 0 56px; transition: color .4s; }
.reply.red { color: #ff3b3b; font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; }
/* quiet mode: a sleeping rune, one clap button, two claps wake him */
.quiet2 { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center; border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px; padding: 24px 28px; background: rgba(0, 0, 0, .22); }
.q-core { position: relative; width: 150px; height: 150px; }
.q-core canvas { width: 100%; height: 100%; display: block; filter: brightness(.38) saturate(.35); transition: filter 1s; }
.quiet2.awake .q-core canvas { filter: none; }
.zz { position: absolute; right: 6px; top: 4px; color: var(--muted); font-family: var(--serif); font-style: italic; transition: opacity .6s; }
.zz i { position: absolute; opacity: 0; animation: zz 3.6s ease-in-out infinite; }
.zz i:nth-child(2) { animation-delay: 1.2s; font-size: 1.2em; } .zz i:nth-child(3) { animation-delay: 2.4s; font-size: 1.45em; }
@keyframes zz { 0% { opacity: 0; transform: translate(0, 10px); } 30% { opacity: .8; } 100% { opacity: 0; transform: translate(14px, -26px); } }
.quiet2.awake .zz { opacity: 0; }
.q-h { margin: 0 0 4px; font-size: 1.15rem; font-weight: 650; color: var(--fg); }
.q-s { margin: 0 0 16px; color: var(--muted); }
.q-ctl { display: flex; align-items: center; gap: 16px; }
.q-clap { position: relative; width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04);
  color: var(--accent); cursor: pointer; display: grid; place-items: center; transition: transform .12s, border-color .3s; }
.q-clap svg { width: 32px; height: 32px; }
.q-clap:hover { border-color: var(--accent); }
.q-clap:active { transform: scale(.9); }
.ripple { position: absolute; inset: -1px; border-radius: 50%; border: 2px solid var(--accent); animation: ripple .9s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(2.1); opacity: 0; } }
.q-dots { display: flex; gap: 6px; }
.q-dots i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--dim); transition: background .2s, border-color .2s, box-shadow .2s; }
.quiet2.c1 .q-dots i:first-child, .quiet2.c2 .q-dots i, .quiet2.awake .q-dots i { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 8px var(--accent); }
.q-ctl em { font-style: normal; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); transition: color .4s; }
.quiet2.awake .q-ctl em { color: #6fdc8c; }
.q-wake { margin: 14px 0 0; min-height: 1.6em; display: flex; gap: 14px; flex-wrap: wrap; }
.q-wake span { opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s; }
.w-you { color: var(--fg); } .w-olv { font-family: var(--serif); color: var(--accent); }
.quiet2.awake .w-you { opacity: 1; transform: none; transition-delay: .2s; }
.quiet2.awake .w-olv { opacity: 1; transform: none; transition-delay: 1.3s; }

/* the fifth one */
body.flicker .sky { animation: flick .9s steps(2) 1; }
@keyframes flick { 0%, 40%, 80% { background: #2a0606; } 20%, 60%, 100% { background: #120303; } }

/* 02:00 - the note: written, sealed, carried over our server as noise, opened on your PC */
.night .pin { grid-template-columns: minmax(0, .75fr) minmax(0, 1.45fr); gap: 48px; }
.steps { list-style: none; margin: 8px 0 22px; padding: 0; counter-reset: st; display: flex; flex-direction: column; gap: 10px; }
.steps li { counter-increment: st; display: flex; gap: 12px; align-items: baseline; color: var(--dim); transition: color .5s; }
.steps li::before { content: counter(st); width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1px solid currentColor;
  display: grid; place-items: center; font-size: .72rem; transform: translateY(-1px); }
.steps li.past { color: var(--muted); }
.steps li.on { color: var(--fg); }
.steps li.on::before { color: var(--accent); box-shadow: 0 0 12px rgba(var(--glow), .5); }
.v-fine { text-align: left; color: var(--dim); font-size: .85rem; margin: 0; max-width: 420px; }
.vault { position: relative; width: 100%; aspect-ratio: 2 / 1; }
.v-arc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.v-arc path { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 1.5; stroke-dasharray: 3 7; }
.v-top { margin: 0 0 6px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.v-note { margin: 0; font-family: var(--serif); font-size: 15px; line-height: 1.4; color: var(--fg); word-break: break-word; min-height: 4.2em; }
.v-note.sealed { color: var(--accent); font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.v-phone { position: absolute; left: 4%; bottom: 0; width: 20%; aspect-ratio: 9 / 16; border-radius: 26px; border: 1px solid rgba(255, 255, 255, .16);
  background: #070a12; padding: 26px 14px 14px; box-shadow: 0 30px 60px rgba(0, 0, 0, .55), inset 0 0 0 4px #04060b; display: flex; flex-direction: column; }
.v-sent { margin: auto 0 0; display: flex; align-items: center; gap: 6px; font-size: 11px; color: #6fdc8c; opacity: 0; transition: opacity .5s; }
.v-sent svg { width: 14px; height: 14px; }
.v-sent.vis { opacity: 1; }
.v-srv { position: absolute; left: 50%; top: 4%; transform: translateX(-50%); width: 32%; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .12);
  background: #060912; padding: 12px 14px; transition: border-color .5s, box-shadow .5s; }
.v-srv.busy { border-color: rgba(var(--glow), .55); box-shadow: 0 0 30px rgba(var(--glow), .2); }
.rack { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.rack i { height: 7px; border-radius: 3px; background: #121828; position: relative; }
.rack i::after { content: ""; position: absolute; right: 6px; top: 2px; width: 3px; height: 3px; border-radius: 50%; background: #6fdc8c; animation: led 1.4s steps(2) infinite; }
.rack i:nth-child(2)::after { animation-delay: .5s; } .rack i:nth-child(3)::after { animation-delay: .9s; }
@keyframes led { 50% { opacity: .2; } }
.v-cipher { margin: 0 0 6px; font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: var(--accent); word-break: break-all; min-height: 2.8em; opacity: .9; }
.v-srv small { color: var(--dim); font-size: 11px; }
.v-pc { position: absolute; right: 2%; bottom: 0; width: 34%; display: flex; flex-direction: column; align-items: center; }
.v-scr { width: 100%; aspect-ratio: 16 / 10; border: 5px solid #1b212b; border-radius: 10px; background: linear-gradient(135deg, #0d1626, #0a0f1c);
  padding: 12px 14px; transition: box-shadow .6s; }
.v-pc .v-note { color: var(--muted); }
.v-pc .v-note.done { color: var(--fg); }
.v-pc:has(.done) .v-scr { box-shadow: 0 0 34px rgba(var(--glow), .22); }
.v-stand { width: 26%; height: 16px; background: linear-gradient(#1b212b, #141921); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.v-packet { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; display: grid; place-items: center;
  color: #04181a; background: var(--accent); box-shadow: 0 0 20px var(--accent), 0 0 4px #fff; opacity: 0; transition: opacity .3s; z-index: 2; }
.v-packet svg { width: 16px; height: 16px; }
.v-packet.vis { opacity: 1; }

/* 07:00 the next day */
.dawn2 { padding: 18vh 24px 14vh 120px; }
.dawn2 .waitlist { max-width: 820px; margin: 0 auto; background: rgba(15, 16, 18, .82); }
.dawn2 .clk { text-align: center; }
.more { margin: 22px 0 0; color: var(--dim); font-size: .88rem; }

@media (max-width: 1100px) {
  .clock { display: none; }
  .pin, .car .pin { padding: 0 24px; }
  .eve, .dawn2, .hf-intro { padding-left: 24px; }
}
@media (max-width: 820px) {
  .scene { height: 320vh; }
  .pin { grid-template-columns: 1fr; gap: 22px; align-content: center; padding: 0 16px; }
  .map { max-width: 420px; }
  .hub { width: 104px; padding: 8px; }
  .svc { width: 150px; padding: 8px 10px; left: 76%; }
  .svc span { display: none; }
  .talk { --gap: 6px; }
  .scene .talk li:not(.recent) { opacity: 0; max-height: 0; margin-top: 0; transform: translateY(-8px); }
  .out .pin { grid-template-columns: 1fr; gap: 18px; }
  .side-out { grid-template-columns: 1fr; justify-items: center; }
  .side-out .map { display: none; }
  .phone { width: 190px; height: 330px; }
  .pcmon { left: -76px; margin-left: 0; bottom: -8px; width: 96px; }
  .scrn { width: 96px; height: 60px; border-width: 3px; }
  .scrn i { display: none; }
  .pcmon p { display: none; }
  .phone figcaption { top: auto; bottom: -22px !important; }
  .car .pin { grid-template-columns: 1fr; gap: 16px; }
  .car-side { flex-direction: row; align-items: center; gap: 12px; }
  .minimap { width: 150px; flex: none; }
  .hud .hint { display: none; }
  .navwin { padding: 10px; }
  .app-body { grid-template-columns: 1fr; height: auto; }
  .app-chat, .app-tile.chats { display: none; }
  .talk .olv { font-size: 1.02rem; }
  .night .pin { grid-template-columns: 1fr; gap: 14px; }
  .steps { margin: 0 0 8px; gap: 6px; font-size: .9rem; }
  .v-fine { display: none; }
  .v-note { font-size: 12px; min-height: 3.6em; }
  .v-phone { width: 28%; padding: 18px 9px 9px; border-radius: 18px; }
  .v-sent { font-size: 9px; }
  .v-sent svg { width: 11px; height: 11px; }
  .v-srv { padding: 8px 10px; }
  .rack { display: none; }
  .v-cipher { font-size: 9px; }
  .v-srv small { font-size: 9px; }
  .quiet2 { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 20px; }
  .hf-intro { padding: 12vh 16px 10vh; }
  .hf-ways { grid-template-columns: 1fr; }
  .kitchen .pin { grid-template-columns: 1fr; gap: 10px; }
  .kit { max-width: 320px; }
  .k-scr { padding: 16px 8px 10px; border-radius: 18px; }
  .k-state { font-size: 10px; }
  .k-note ul { font-size: 11px; }
  .q-ctl, .q-wake { justify-content: center; }
  .q-core { width: 120px; height: 120px; }
  main.day h2 { margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene { height: auto; }
  .pin { position: static; height: auto; padding-top: 12vh; padding-bottom: 12vh; }
  .talk li { opacity: 1; transform: none; transition: none; }
  .svc, .svc .q, .svc .a { opacity: 1; max-height: none; transition: none; }
  .talk.big li.shown:not(.recent), .talk.big li:not(.shown) { opacity: 1; }
  .scroll-hint i { animation: none; }
}
