/* Layout (mobile first): scroll position = time of day.
   Phone: a fixed sky with a cut-away office tower; the hour card docks in one spot above a bottom action bar,
   the tower fills the free area above it and the camera pans along floors to follow what the agents notice.
   Desktop (900px+): the full-bleed office scene; the living group moves into the free side of the active card. */
:root {
  color-scheme: light;
  /* animated sky + scene tokens (JS rewrites these; defaults = 09:00) */
  --sky-top: rgb(191,227,242);
  --sky-bot: rgb(246,247,232);
  --sun: rgb(255,211,77);
  --building: rgb(168,203,212);
  --floor: rgb(220,232,234);
  --stroke: rgb(16,32,42);
  --desk: rgb(255,255,255);
  --screen: rgb(207,232,238);
  --belt: rgb(16,32,42);
  --task: rgb(255,255,255);
  --wall: rgb(246,250,249);
  --night: 0;
  /* static palette */
  --ink: #10202A;
  --ink-soft: #3C5059;
  --paper: #EEF5F6;
  --paper-2: #FFFFFF;
  --rule: #C9DBDF;
  --sunshine: #FFC93C;
  --glow: #9FF5D8;
  --alert: #FFB347;
  --deep: #0B2229;
  --deeper: #06181D;
  --night-ink: #E8F3F0;
  --night-soft: #A9C6C0;
  /* type */
  --display: "Big Shoulders Display", "Oswald", "Arial Narrow", sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --nav-h: 60px;
  --bar-h: 72px;
  --band: var(--sky-top);
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.sheet-lock { overflow: hidden; }
body {
  margin: 0;
  background: var(--sky-bot);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sunshine); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- TOP (phone: two floating pills) ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--band); }
body.is-night { --band: var(--deeper); }
body.past-story { --band: var(--paper); }
.nav {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 20;
  padding: 8px var(--gutter-r) 0 var(--gutter-l);
  pointer-events: none;
}
.nav-inner { width: 100%; max-width: 1240px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; }
.nav-inner > * { pointer-events: auto; }
.pill-bg { background: rgba(255,255,255,.62); border: 1px solid rgba(16,32,42,.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
body.is-night .pill-bg { background: rgba(6,24,29,.6); border-color: rgba(159,245,216,.2); color: var(--night-ink); }
body.past-story .pill-bg { background: rgba(255,255,255,.86); border-color: var(--rule); color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 8px; border-radius: 999px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: .02em; text-transform: uppercase; transition: background .5s ease, color .5s ease; }
.brand svg { flex: none; width: 28px; height: 28px; }
.clock-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; font-family: var(--mono); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1; transition: opacity .4s ease, background .5s ease, color .5s ease; }
.clock-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--sunshine); flex: none; }
.clock-chip small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
body.is-night .clock-chip i { background: var(--glow); box-shadow: 0 0 8px var(--glow); }
body.past-story .clock-chip { opacity: 0; pointer-events: none; }
.links { display: none; }

/* ---------- BOTTOM ACTION BAR (phone) ---------- */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  background: rgba(238,245,246,.9); border-top: 1px solid var(--rule);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background .5s ease, border-color .5s ease;
}
.actionbar-inner { display: flex; gap: 8px; max-width: 600px; margin: 0 auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 16px; line-height: 1.15; text-align: center;
  background: var(--ink); color: var(--paper-2); border: 2px solid var(--ink); cursor: pointer;
  transition: transform .2s ease, background .4s ease, color .4s ease, border-color .4s ease;
}
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--ink); }
.bar-cta { flex: 1 1 auto; min-width: 0; padding-inline: 14px; }
.menu-btn { flex: none; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; }
body.is-night:not(.past-story) .actionbar { background: rgba(6,24,29,.88); border-color: rgba(159,245,216,.18); }
body.is-night:not(.past-story) .bar-cta { background: var(--glow); border-color: var(--glow); color: var(--deeper); }
body.is-night:not(.past-story) .menu-btn { border-color: rgba(232,243,240,.55); color: var(--night-ink); }

/* ---------- STAGE ---------- */
.story { position: relative; }
.stage {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bot) 78%);
}
.stars { position: absolute; inset: 0 0 45% 0; opacity: var(--night); }
.stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #F4FFFB; }
.orb { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform, opacity; }
.sun-orb { width: 66px; height: 66px; margin: -33px 0 0 -33px; background: var(--sun); box-shadow: 0 0 44px 12px rgba(255,201,60,.45); }
.moon-orb { width: 48px; height: 48px; margin: -24px 0 0 -24px; background: #EAF5F1; box-shadow: inset -10px -4px 0 0 #C7DCD6, 0 0 34px 8px rgba(234,245,241,.25); opacity: 0; }
#scene { display: none; }
#tower { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }

/* morning lock screen (phone) */
.lock-dim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,32,42,.5), rgba(16,32,42,.15) 70%, rgba(16,32,42,0)); opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.lock {
  position: absolute; left: var(--gutter-l); right: var(--gutter-r);
  top: var(--free-top, 70px); height: var(--free-h, 300px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: #FFFFFF; text-align: center; pointer-events: none;
  opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s;
}
.stage.locked .lock-dim { opacity: 1; }
.stage.locked .lock { opacity: 1; visibility: visible; transition: opacity .5s ease; }
.lock-time { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.lock-time b { font-family: var(--display); font-weight: 800; font-size: clamp(64px, 20vw, 96px); line-height: .85; letter-spacing: .01em; text-shadow: 0 2px 24px rgba(16,32,42,.35); }
.lock-time span { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.nstackmini { position: relative; width: 100%; max-width: 380px; padding-bottom: 14px; }
.notif {
  position: relative; z-index: 3; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 12px 14px; border-radius: 20px; text-align: left; color: var(--ink);
  background: rgba(250,253,252,.95); box-shadow: 0 10px 30px -12px rgba(6,24,29,.5);
  transform: translateY(16px) scale(.96); opacity: 0; transition: transform .55s cubic-bezier(.2,.8,.2,1) .25s, opacity .4s ease .25s;
}
.stage.locked .notif { transform: none; opacity: 1; }
.notif .app { width: 40px; height: 40px; border-radius: 11px; background: var(--deep); display: grid; place-items: center; }
.notif .app i { width: 16px; height: 16px; border-radius: 6px; background: var(--glow); box-shadow: 0 0 10px var(--glow); }
.notif-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.notif-top b { color: var(--ink); font-weight: 700; }
.notif p { font-size: 16px; line-height: 1.35; font-weight: 600; }
.notif-under { position: absolute; left: 50%; bottom: 0; height: 40px; border-radius: 18px; background: rgba(250,253,252,.62); transform: translateX(-50%); opacity: 0; transition: opacity .4s ease .55s; }
.notif-under.u1 { width: 92%; bottom: 6px; z-index: 2; }
.notif-under.u2 { width: 84%; bottom: 0; z-index: 1; background: rgba(250,253,252,.4); }
.stage.locked .notif-under { opacity: 1; }
.lock-note { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; opacity: .85; }

/* ---------- PANELS + CARDS (base = in flow; html.dock = docked above the action bar) ---------- */
.panel { position: relative; z-index: 2; padding: calc(var(--nav-h) + 24px) var(--gutter-r) 32px var(--gutter-l); }
.panel-inner { max-width: 1240px; margin: 0 auto; }
.card {
  padding: 20px 18px; border-radius: 22px;
  background: rgba(255,255,255,.95); border: 1px solid rgba(16,32,42,.12);
  color: var(--ink); box-shadow: 0 18px 40px -26px rgba(6,24,29,.55);
  display: flex; flex-direction: column; gap: 12px;
  transition: background .6s ease, color .6s ease, border-color .6s ease;
}
body.is-night .card { background: rgba(6,24,29,.95); border-color: rgba(159,245,216,.22); color: var(--night-ink); }

.dock .panel { min-height: 100vh; min-height: 100svh; padding: 0; }
.dock .panel.last { min-height: 150vh; min-height: 150svh; }
.dock .panel .card {
  position: fixed; z-index: 4;
  left: max(var(--gutter-l), calc(50% - 300px)); right: max(var(--gutter-r), calc(50% - 300px));
  bottom: calc(var(--bar-h) + 10px);
  max-height: calc(100svh - var(--bar-h) - var(--nav-h) - 120px); overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(32px);
  transition: opacity .25s ease, transform .3s ease, visibility 0s linear .3s, background .6s ease, color .6s ease, border-color .6s ease;
}
.dock .panel .card.on {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .35s ease .12s, transform .5s cubic-bezier(.2,.8,.2,1) .12s, visibility 0s, background .6s ease, color .6s ease, border-color .6s ease;
}
.dock .note { display: none; }

.stamp { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; line-height: 1.3; }
.stamp::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--sunshine); box-shadow: 0 0 0 4px rgba(255,201,60,.25); }
body.is-night .stamp::before { background: var(--glow); box-shadow: 0 0 0 4px rgba(159,245,216,.2), 0 0 14px var(--glow); }
.stamp.alerted::before { background: var(--alert); box-shadow: 0 0 0 4px rgba(255,179,71,.25), 0 0 14px var(--alert); }
.hero h1 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(36px, 10.6vw, 54px); line-height: .9; letter-spacing: 0;
}
.badge { display: inline-block; background: var(--sunshine); color: var(--ink); padding: 0 .12em; border-radius: .08em; transform: rotate(-2deg); }
.lede { font-size: 17px; line-height: 1.45; max-width: 620px; }
.panel h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 8.6vw, 40px); line-height: .94; }
.muted { color: var(--ink-soft); }
body.is-night .muted { color: var(--night-soft); }
.row { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.hint { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.hint i { font-style: normal; display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }
.textlink { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; align-self: flex-start; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-family: var(--mono); font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid currentColor; }
.numrow { display: flex; align-items: flex-end; gap: 14px; }
.big-num { font-family: var(--display); font-weight: 900; font-size: 72px; line-height: .8; color: var(--glow); text-shadow: 0 0 30px rgba(159,245,216,.45); flex: none; }
.numrow h2 { min-width: 0; }
.note { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.trace { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.trace li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid rgba(159,245,216,.18); font-size: 16px; line-height: 1.35; }
.trace li b { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--glow); padding-top: 3px; }
.trace li.wait b { color: var(--alert); }
.morning-msg { font-size: 18px; line-height: 1.5; padding: 16px 18px; border-radius: 16px 16px 16px 4px; background: var(--paper); border: 1px solid var(--rule); }
.report { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.report li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed rgba(16,32,42,.25); font-size: 16px; }
.report li b { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- AFTER (calm daylight) ---------- */
.after { position: relative; z-index: 6; background: var(--paper); color: var(--ink); padding-bottom: var(--bar-h); }
.after-band { scroll-margin-top: 24px; padding-block: 56px; padding-left: var(--gutter-l); padding-right: var(--gutter-r); border-top: 1px solid var(--rule); }
.wrap { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.after h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(34px, 9.6vw, 48px); line-height: .94; max-width: 900px; }
.intro { display: flex; flex-direction: column; gap: 14px; }
.intro p { color: var(--ink-soft); max-width: 60ch; }

/* swipe rows (phone) */
.swipe {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r));
  padding: 4px var(--gutter-r) 8px var(--gutter-l); scroll-padding-inline: var(--gutter-l);
  scrollbar-width: none;
}
.swipe::-webkit-scrollbar { display: none; }
.swipe > * { flex: 0 0 84%; max-width: 360px; scroll-snap-align: start; }
.swipe-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }
.dots { display: flex; gap: 6px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--rule); transition: background .2s ease, width .2s ease; }
.dots i.on { background: var(--ink); width: 18px; border-radius: 4px; }

.svc { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 22px; padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.svc-tag { align-self: flex-start; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--rule); }
.svc h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 32px; line-height: .95; }
.svc p { color: var(--ink-soft); flex: 1 1 auto; }
.svc-ex { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 16px; }
.svc-ex b { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.svc.lead { background: var(--sunshine); border-color: var(--sunshine); }
.svc.lead p, .svc.lead .svc-ex b { color: var(--ink); }
.svc.lead .svc-ex { border-color: rgba(16,32,42,.25); }
.svc.lead .svc-tag { background: rgba(255,255,255,.5); border-color: rgba(16,32,42,.2); }

/* this website's agent: notification stack */
.proof { display: flex; flex-direction: column; gap: 28px; }
.proof-copy { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.proof-copy p { color: var(--ink-soft); max-width: 52ch; }
.watch { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.watch li { font-family: var(--mono); font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper-2); }
.nstack { min-width: 0; background: var(--deep); color: var(--night-ink); border-radius: 26px; border: 1px solid rgba(159,245,216,.22); padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.nstack-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 4px 6px 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--night-soft); }
.nlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.n { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 14px; border-radius: 18px; background: rgba(232,243,240,.07); border: 1px solid rgba(159,245,216,.1); }
.n.needs { background: rgba(255,179,71,.09); border-color: rgba(255,179,71,.28); }
.n .app { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--deeper); background: var(--app, var(--glow)); }
.n-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.n-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--night-soft); }
.n-top b { color: var(--night-ink); font-weight: 700; }
.n-top time { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.n p { font-size: 16px; line-height: 1.4; }
.n p i { font-style: normal; color: var(--glow); }
.chip { align-self: flex-start; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; font-weight: 500; }
.chip.ok { background: rgba(159,245,216,.14); color: var(--glow); }
.chip.you { background: var(--alert); color: var(--deeper); }
.feed-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; padding: 10px 8px 2px; font-size: 15px; color: var(--night-soft); }
.feed-sum strong { font-family: var(--display); font-weight: 800; font-size: 36px; line-height: 1; color: var(--night-ink); margin-right: 6px; }
.feed-sum strong.amber { color: var(--alert); }
.feed-foot { padding: 0 8px 4px; font-family: var(--mono); font-size: 12px; color: var(--night-soft); }

.steps { display: flex; flex-direction: column; gap: 12px; }
.step { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 22px; padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.step-time { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }
.step-time span:last-child { border: 1px solid var(--rule); border-radius: 999px; padding: 3px 10px; }
.step h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 30px; line-height: 1; }
.step p { color: var(--ink-soft); flex: 1 1 auto; }
.price { font-family: var(--mono); font-size: 14px; padding-top: 12px; border-top: 1px solid var(--rule); }
.step.lead { background: var(--sunshine); border-color: var(--sunshine); }
.step.lead p, .step.lead .step-time { color: var(--ink); }
.step.lead .price, .step.lead .step-time span:last-child { border-color: rgba(16,32,42,.3); }
.principles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.principle { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 3px solid var(--ink); }
.principle strong { font-size: 19px; }
.principle span { color: var(--ink-soft); }
.post { display: flex; flex-direction: column; gap: 14px; padding: 22px 20px; border-radius: 20px; background: var(--paper-2); border: 1px solid var(--rule); text-decoration: none; min-height: 210px; }
.post-tag { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.post-title { font-family: var(--display); font-weight: 700; font-size: 27px; line-height: 1.02; text-transform: uppercase; flex: 1 1 auto; }
.post-meta { font-size: 14px; color: var(--ink-soft); }
.cta { background: var(--deep); color: var(--night-ink); }
.cta .eyebrow { color: var(--night-soft); }
.cta h2 { color: var(--night-ink); max-width: 980px; }
.cta .btn { background: var(--glow); border-color: var(--glow); color: var(--deeper); }
.cta .btn.ghost { background: transparent; color: var(--night-ink); border-color: rgba(232,243,240,.5); }
.cta-copy { display: flex; flex-direction: column; gap: 20px; }
.cta-copy p { max-width: 560px; color: var(--night-soft); }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(232,243,240,.18); font-size: 14px; color: var(--night-soft); }
.footer nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer a { color: var(--night-ink); display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- SHEETS (phone: bottom sheet; desktop: centered dialog) ---------- */
.sheet { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(6,24,29,.55); opacity: 0; transition: opacity .3s ease; }
.sheet-panel {
  position: relative; width: 100%; max-width: 600px; max-height: 90vh; max-height: 90svh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper-2); color: var(--ink); border-radius: 26px 26px 0 0;
  padding: 8px var(--gutter-r) calc(24px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  transform: translateY(100%); transition: transform .34s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column; gap: 18px;
}
.sheet.open .sheet-backdrop { opacity: 1; }
.sheet.open .sheet-panel { transform: none; }
.sheet.dragging .sheet-panel { transition: none; }
.sheet-grab { width: 44px; height: 5px; border-radius: 5px; background: var(--rule); margin: 4px auto 0; flex: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sheet-head h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 30px; line-height: 1; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule); background: var(--paper); display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn svg { width: 18px; height: 18px; }
.menu-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.menu-links a { display: flex; justify-content: space-between; align-items: center; min-height: 56px; border-bottom: 1px solid var(--rule); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 28px; text-transform: uppercase; }
.menu-links a span { font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--ink-soft); text-transform: none; }
.jump { display: flex; flex-direction: column; gap: 10px; }
.jump-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.jump-list a { display: flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 6px 10px; border-radius: 14px; border: 1px solid var(--rule); background: var(--paper); text-decoration: none; font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; }
.jump-list a small { font-family: var(--body); font-size: 12px; color: var(--ink-soft); }
.sheet-sub { color: var(--ink-soft); }
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 15px; }
.field input, .field textarea { font: inherit; font-size: 16px; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--rule); background: var(--paper); color: var(--ink); width: 100%; }
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,201,60,.5); }
.form .btn { width: 100%; }
.form-foot { font-size: 14px; color: var(--ink-soft); }
.done { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 18px; background: var(--paper); border: 1px solid var(--rule); }
.done strong { font-family: var(--display); font-weight: 800; font-size: 30px; text-transform: uppercase; line-height: 1; }
.done p { color: var(--ink-soft); }

.only-dk { display: none !important; }

/* ---------- REDUCED MOTION / short screens: static stacked panels ---------- */
body.rm .stage { display: none; }
body.rm .clock { display: none; }
body.rm .panel { min-height: auto; padding-top: calc(var(--nav-h) + 24px); padding-bottom: 40px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .post, .card, .sheet-panel, .notif, .lock { transition: none !important; }
  .hint i { animation: none; }
}

/* =================== DESKTOP (900px+) =================== */
@media (min-width: 900px) {
  body { font-size: 17px; line-height: 1.55; }
  .only-dk { display: revert !important; }
  .row.only-dk, .chips.only-dk { display: flex !important; }
  .only-ph { display: none !important; }
  .nav {
    pointer-events: auto; padding: 12px var(--gutter-r) 12px var(--gutter-l);
    background: var(--sky-top); background: color-mix(in srgb, var(--sky-top) 86%, transparent);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transition: color .5s ease, background-color .5s ease;
  }
  .nav .pill-bg, body.is-night .nav .pill-bg, body.past-story .nav .pill-bg { background: none; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: inherit; }
  .brand { font-size: 26px; padding: 0; gap: 10px; }
  .brand svg { width: 30px; height: 30px; }
  .clock-chip { display: none; }
  .links { display: flex; align-items: center; gap: 4px clamp(14px, 2.2vw, 28px); font-size: 15px; font-weight: 600; }
  .links a { text-decoration: none; padding: 10px 0; }
  .links a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
  .links .btn { padding: 10px 18px; min-height: 46px; font-size: 15px; }
  body.is-night .nav { color: var(--night-ink); }
  body.is-night .nav .btn { background: var(--glow); color: var(--deeper); border-color: var(--glow); }
  body.past-story .nav { color: var(--ink); background: var(--paper); background: color-mix(in srgb, var(--paper) 92%, transparent); }
  body.past-story .nav .btn { background: var(--ink); color: var(--paper-2); border-color: var(--ink); }
  .btn:hover { transform: translateY(-2px); }
  .actionbar { display: none; }

  .clock {
    position: fixed; z-index: 15; right: var(--gutter-r); top: calc(env(safe-area-inset-top, 0px) + 92px);
    display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
    font-family: var(--mono); color: var(--ink); transition: color .5s ease, opacity .4s ease; pointer-events: none;
  }
  .clock-time { font-size: clamp(30px, 4vw, 46px); font-weight: 500; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
  .clock-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
  .clock-bar { width: 150px; height: 4px; border-radius: 4px; background: rgba(16,32,42,.18); overflow: hidden; }
  .clock-bar span { display: block; height: 100%; width: 0%; background: currentColor; border-radius: 4px; }
  body.is-night .clock { color: var(--night-ink); }
  body.is-night .clock-bar { background: rgba(232,243,240,.2); }
  body.past-story .clock { opacity: 0; }

  .stage { position: sticky; inset: auto; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; }
  .sun-orb { width: 110px; height: 110px; margin: -55px 0 0 -55px; box-shadow: 0 0 60px 18px rgba(255,201,60,.45); }
  .moon-orb { width: 74px; height: 74px; margin: -37px 0 0 -37px; box-shadow: inset -16px -6px 0 0 #C7DCD6, 0 0 50px 10px rgba(234,245,241,.25); }
  .stars { inset: 0 0 40% 0; }
  #scene { display: block; position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; overflow: visible; }
  #tower, .lock, .lock-dim { display: none; }

  .panel { min-height: 100vh; min-height: 100svh; padding: calc(env(safe-area-inset-top, 0px) + 150px) var(--gutter-r) 48px var(--gutter-l); }
  body.rm .panel { padding-top: calc(env(safe-area-inset-top, 0px) + 110px); padding-bottom: 72px; }
  .card { max-width: 580px; padding: clamp(24px, 3vw, 36px); background: rgba(255,255,255,.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); gap: 18px; box-shadow: none; }
  body.is-night .card { background: rgba(6,24,29,.78); }
  .hero .card { max-width: min(760px, 54vw); background: rgba(255,255,255,.66); }
  .stamp { font-size: 13px; letter-spacing: .12em; }
  .hero h1 { font-size: clamp(56px, 6.6vw, 104px); line-height: .88; }
  .lede { font-size: clamp(18px, 1.6vw, 21px); }
  .panel h2 { font-size: clamp(42px, 5vw, 72px); line-height: .92; }
  .row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
  .numrow { flex-direction: column; align-items: flex-start; gap: 16px; }
  .big-num { font-size: clamp(110px, 14vw, 200px); }
  .trace li { grid-template-columns: 96px minmax(0, 1fr); padding: 10px 0; }
  .morning-msg { font-size: clamp(18px, 1.6vw, 21px); }
  .align-right .card { margin-left: auto; }

  .after { padding-bottom: 0; }
  .after-band { padding-block: clamp(72px, 9vw, 120px); }
  .wrap { gap: 40px; }
  .after h2 { font-size: clamp(48px, 5.6vw, 76px); line-height: .92; }
  .swipe { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; overflow: visible; margin: 0; padding: 0; }
  .swipe > * { max-width: none; }
  .swipe-meta { display: none; }
  .svc { padding: 26px; }
  .proof { flex-direction: row; gap: 56px; align-items: flex-start; }
  .proof-copy { flex: 1 1 340px; position: sticky; top: 120px; }
  .nstack { flex: 1.4 1 520px; padding: 18px 16px; }
  .n { padding: 16px 18px; }
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .step { padding: 26px; }
  .step h3 { font-size: 34px; }
  .principles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 36px; }
  .post { min-height: 230px; transition: transform .2s ease, border-color .2s ease; }
  .post:hover { transform: translateY(-3px); border-color: var(--ink); }
  .post-title { font-size: 30px; }
  .cta-copy { align-items: flex-start; }

  .sheet { align-items: center; padding: 24px; }
  .sheet-panel { max-width: 540px; border-radius: 26px; padding: 28px; transform: translateY(20px) scale(.98); opacity: 0; transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .25s ease; }
  .sheet.open .sheet-panel { opacity: 1; }
  .sheet-grab { display: none; }
}
@media (max-width: 899.98px) { .clock { display: none; } }
@media (max-width: 359px) {
  .brand { font-size: 17px; }
  .clock-chip small { display: none; }
  .menu-btn span { display: none; }
}

/* ---- site-wide additions (server-rendered site) ---- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 14px; border-radius: 10px; background: #111; color: #fff; text-decoration: none; font-weight: 600 }
.skip:focus { top: 12px }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden }
.consent { position: fixed; z-index: 900; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); max-width: 560px; margin: 0 auto; padding: 14px 16px; border-radius: 16px; background: #111; color: #f4f4f0; font-size: 14px; line-height: 1.45; box-shadow: 0 10px 30px rgba(0,0,0,.25); display: grid; gap: 10px }
.consent[hidden] { display: none }
.consent a { color: inherit }
.consent div { display: flex; gap: 8px; flex-wrap: wrap }
.consent button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer }
.consent button[data-consent="granted"] { background: #f4f4f0; color: #111 }
.home-faq .faq-list { display: grid; gap: 10px; margin-top: 18px; max-width: 820px }
.home-faq details { border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 22%, transparent); border-radius: 14px; padding: 14px 16px }
.home-faq summary { cursor: pointer; font-weight: 600 }
.home-faq details p { margin: 10px 0 0 }
@media (min-width: 900px) { .consent { bottom: 20px } }
.hint::before { content: "Scroll through a day" }
.form-err { margin: 0; color: #B3261E; font-size: 14px }
.form-foot a { color: inherit }
