/* I Know You're Home: the game's site. The page is the doorbell app, one night long: on a phone the page fills it, on a big screen it is
   the phone in your hand. The camera stays in black and white, a single yellow when the porch light is on, and colour is the reward. */
@font-face {
  font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap;
}
:root {
  --night: #03030f;
  --ink: #0b0d10;
  --warm: #ffd633;
  --hot: #ff6b1a;
  --red: #f2332e;
  --good: #4de06b;
  --deep: #1f9943;
  --paper: #faf7ed;
  --card: #08090f;
  --edge: rgba(255, 214, 51, 0.5);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.9, 0.3, 1.2);
  --reach-top: 0px;
  --reach-bottom: 0px;
  --sw: 100vw;                     /* the width of the phone's screen */
  --u: calc(var(--sw) / 390);      /* the game lays everything out on a phone 390 wide */
  --gutter: 16px;
}
* { box-sizing: border-box; }
html { background: var(--night); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; color: #fff; font: 600 17px/1.5 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
/* the phone only shows once the page in front of it has arrived, or Safari can find it first and paint its bars flat */
.wait .stage { visibility: hidden; }
/* the phone stands behind the page, as the world does in Last Torch: Safari tints its bars from what it finds in front at the edges of the
   screen. So only what can be pressed takes the finger, and the rest of the page lets it through. */
.home { pointer-events: none; }
img, canvas { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--warm); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.16; font-weight: 700; }
h3 { font-size: 21px; line-height: 1.2; font-weight: 700; }
.visually-hidden { position: absolute; left: -9999px; }
a.visually-hidden:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }
.eyebrow { display: block; font: 600 13px/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--warm); }

/* ------------------------------------------------------------ the game's lettering */
.ink { line-height: 1.2; word-spacing: 0.12em; }
.ink .w { display: inline-block; position: relative; height: 1em; }
.ink i { position: absolute; bottom: 0; display: block; background-repeat: no-repeat; transform: rotate(var(--r)); }
.ink.warm i { background-image: url("../ui/letters_warm.webp"); }
.ink.cap i { background-image: url("../ui/letters_cap.webp"); }
.ink.paper i { background-image: url("../ui/letters_paper.webp"); }
.ink.red i { background-image: url("../ui/letters_red.webp"); }
.ink.good i { background-image: url("../ui/letters_good.webp"); }
.reveal.in .ink i, .ink.slam i, .scenes .now .reveal .ink i { animation: slam 0.3s calc(var(--n) * 0.016s) var(--ease) both; }
.scenes .sec:not(.now) .reveal .ink i { animation: none; }
@keyframes slam { from { transform: rotate(var(--r)) scale(2.4); opacity: 0; } 55% { opacity: 1; } to { transform: rotate(var(--r)) scale(1); opacity: 1; } }

/* ------------------------------------------------------------ the phone */
.stage { position: fixed; inset: calc(-1 * var(--reach-top)) 0 auto 0; height: 100vh; height: calc(100lvh + var(--reach-top) + var(--reach-bottom)); z-index: -1; overflow: hidden; background: var(--night); }
.room { display: none; }
.device { position: absolute; inset: 0; }
.screen { position: absolute; inset: 0; overflow: hidden; background: var(--night); isolation: isolate; }
.hand { display: none; }
.cover { position: absolute; left: 50%; bottom: var(--reach-bottom); width: 126%; aspect-ratio: 2 / 3; transform: translateX(-50%); transition: opacity 0.4s; }
.cover img { width: 100%; height: 100%; max-width: none; }
.cover .glow { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 247, 178, 0.9), rgba(255, 247, 178, 0)); animation: flicker 3.1s steps(1) infinite; }
.cover .e1, .cover .e2 { width: 8%; aspect-ratio: 1; top: 56.4%; transform: translate(-50%, -50%); }
.cover .e1 { left: 44.2%; }
.cover .e2 { left: 54%; animation-delay: 0.13s; }
.cover .torch { width: 17%; aspect-ratio: 1; left: 46%; top: 76.5%; transform: translate(-50%, -50%); animation: pulse 1.7s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { opacity: 0.75; } 11% { opacity: 0.2; } 13% { opacity: 0.9; } 41% { opacity: 0.6; } 43% { opacity: 0.15; } 45% { opacity: 0.85; } 71% { opacity: 0.7; } }
@keyframes pulse { 50% { opacity: 0.6; } }
#feed { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.screen.camera #feed { opacity: 1; }
.screen.camera .cover, .screen.flat .cover { opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0s 0.2s; }
.lock { position: absolute; left: 0; right: 0; top: calc(var(--reach-top) + var(--u) * 72); display: grid; justify-items: center; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.lock-date { font-size: calc(var(--u) * 17); color: rgba(255, 255, 255, 0.8); }
.lock-time { font-size: calc(var(--u) * 82); line-height: 1.12; color: rgba(255, 255, 255, 0.92); letter-spacing: -0.02em; }
.screen.locked .lock { opacity: 1; }
.screen.locked { background: #000; }
.screen.alerting { animation: redalert 0.63s ease-in-out infinite; }
.screen.alerting .cover { opacity: 0; }
@keyframes redalert { from, to { background-color: #2a0202; } 50% { background-color: #7c0606; } }
.sheet-panels { position: absolute; inset: 0; pointer-events: none; }
.sheet-panels img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.sheet-panels img.in { animation: panel-in 0.34s var(--ease) both; }
@keyframes panel-in { from { transform: translateX(105%) rotate(-5deg); } to { transform: none; } }
.folks { position: absolute; left: 0; right: 0; top: var(--reach-top); bottom: calc(var(--sheet, 0px) + var(--reach-bottom)); }
.sheet-panels .who-here { position: absolute; inset: auto; height: 74%; width: auto; max-width: none; object-fit: contain; }
/* while something is being explained the picture fades into the dark behind the words, so that only one thing talks at a time */
.dim { position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s; pointer-events: none; background: linear-gradient(to top, rgba(3, 3, 15, 0.98) calc(var(--sheet, 0px) + var(--reach-bottom) + 14px), rgba(3, 3, 15, 0) calc(var(--sheet, 0px) + var(--reach-bottom) + 220px)); }
.phone .screen.reading .dim { opacity: 1; }
.phone .screen.deep .dim { background: rgba(3, 3, 15, 0.66); }
.hud { --lift: 0px; position: absolute; left: 0; right: 0; top: var(--reach-top); height: 100vh; height: 100svh; pointer-events: none; overflow: hidden; }
.phone .hud.tour { --lift: max(0px, calc(var(--sheet, 0px) + 14px - var(--u) * 112)); }
.phone .hud.tour .h-slider, .phone .hud.tour .h-fuse { visibility: hidden; }

/* ------------------------------------------------------------ the page over the phone */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); pointer-events: none; }
.site-header > * { pointer-events: auto; }
.brand { display: none; margin-right: auto; }
.brand img { height: 52px; width: auto; }
.page .brand { display: block; }
.home .lang { margin-left: auto; }
.lang { display: inline-flex; border: 1px solid var(--edge); border-radius: 999px; overflow: hidden; background: rgba(5, 5, 12, 0.6); flex: none; }
.lang a { font: 600 12px/1 var(--sans); padding: 8px 9px; color: #fff; text-decoration: none; }
.lang a[aria-current="true"] { background: var(--warm); color: #1a1405; }
.sound {
  position: absolute; left: calc(var(--u) * 12); top: calc(var(--u) * 10); width: calc(var(--u) * 40); height: calc(var(--u) * 40); padding: calc(var(--u) * 9); border: 0; cursor: pointer; color: #fff;
  background: rgba(5, 5, 12, 0.6); border-radius: 50%; box-shadow: inset 0 0 0 1px var(--edge); pointer-events: auto; z-index: 5;
}
.hud.bars .sound { top: calc(var(--u) * 84); }
.sound svg { display: block; }
.sound .waves { display: none; }
.sound[aria-pressed="true"] .waves { display: block; }
.sound[aria-pressed="true"] .mute { display: none; }

main { position: relative; z-index: 1; overflow-x: clip; }
main a, main button, main .rail, .sheet, .card-alert, .caption { pointer-events: auto; }
.sec { position: relative; min-height: 92vh; min-height: 92svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px var(--gutter) 12px; }
.reveal { opacity: 0; transform: translateY(26px) scale(0.98); transition: opacity 0.3s, transform 0.36s var(--ease); }
.reveal.in, .scenes .now .reveal { opacity: 1; transform: none; }
.scenes .sec:not(.now) .reveal { opacity: 0; transform: none; pointer-events: none; transition-duration: 0.16s; }
/* the words always live in the same solid box, the game's own comic caption: on a drawing this busy, anything see-through gets lost */
.sheet, .caption { position: relative; background: var(--card); border-radius: 14px; box-shadow: inset 0 0 0 2px var(--warm), 0 5px 0 var(--hot), 0 14px 30px rgba(0, 0, 0, 0.6); }
.sheet { padding: 16px 16px 26px; display: grid; gap: 8px; max-width: 560px; }
.sheet h2 { margin-top: 2px; }
.sheet p { color: #fff; font-size: 16.5px; line-height: 1.42; }
/* on a phone each box waits at the foot of the screen, one at a time, and a small arrow says there is more below */
.phone .dock { position: sticky; bottom: 12px; }
.dock::after, .card-alert::after { content: ""; position: absolute; left: 50%; bottom: 10px; width: 9px; height: 9px; margin-left: -5px; border: solid var(--warm); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); animation: chev 1.7s ease-in-out infinite; }
@keyframes chev { 50% { transform: translateY(4px) rotate(45deg); } }

/* the first screen: the game's cover */
.hero { min-height: 100vh; min-height: 100svh; justify-content: flex-start; align-items: center; padding-top: max(52px, calc(env(safe-area-inset-top) + 44px)); padding-bottom: 8px; text-align: center; }
/* only its pieces go: Safari reads what stands at the edges of the screen, and it must keep finding the page there and not the phone behind it */
.scenes .hero:not(.now) > * { visibility: hidden; }
.hero .logo { width: min(74vw, 34svh); filter: drop-shadow(0 8px 26px rgba(0, 0, 0, 0.7)); animation: drop 0.5s 0.05s var(--ease) both; transform-origin: 50% 40%; }
@keyframes drop { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: none; } }
.notice {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; width: min(100%, 370px); margin-top: 8px; padding: 9px 12px 9px 9px; border-radius: 20px;
  text-align: left; color: #fff; text-decoration: none; background: rgba(16, 17, 22, 0.96);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 8px 26px rgba(0, 0, 0, 0.55); animation: banner 0.46s 1.25s var(--ease) both;
}
.notice img { width: 44px; height: 44px; }
.notice > span { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; font-size: 14px; line-height: 1.28; }
.notice b { font-weight: 700; }
.notice i { font-style: normal; color: rgba(255, 255, 255, 0.62); font-size: 12.5px; }
.notice span span { grid-column: 1 / -1; color: rgba(255, 255, 255, 0.9); }
@keyframes banner { from { opacity: 0; transform: translateY(-46px) scale(0.92); } to { opacity: 1; transform: none; } }
.ding { position: relative; display: block; height: 0; width: 100%; font-size: clamp(30px, 10vw, 46px); pointer-events: none; }
.ding .ink { position: absolute; left: 0; right: 0; top: 8px; text-align: center; animation: ding 2.1s 1.25s both; transform: rotate(-5deg); }
@keyframes ding { 0% { opacity: 0; transform: rotate(-5deg) scale(2); } 8% { opacity: 1; transform: rotate(-5deg) scale(1); } 76% { opacity: 1; transform: rotate(-5deg) scale(1.02); } 100% { opacity: 0; transform: rotate(-5deg) scale(1.5); } }
.hero-foot { margin-top: auto; display: grid; justify-items: center; gap: 10px; width: min(100%, 420px); }
.pitch { width: 100%; padding: 10px 14px 12px; border-radius: 14px; font-size: 16px; line-height: 1.34; color: #fff; background: var(--card); box-shadow: inset 0 0 0 2px var(--warm), 0 5px 0 var(--hot); }
.pitch span { display: block; }
.go {
  position: relative; display: flex; align-items: center; justify-content: center; width: min(100%, 320px); min-height: 72px; padding: 10px 22px 16px; border-radius: 26px; text-decoration: none; cursor: pointer; border: 3px solid #000;
  font-size: 30px; line-height: 1; background: linear-gradient(#ffd633, #ff9a1f 72%); box-shadow: 0 7px 0 #9e3803, 0 7px 0 3px #000, 0 14px 26px rgba(0, 0, 0, 0.5); transition: transform 0.1s, box-shadow 0.1s; overflow: hidden;
}
.go .ink { filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.25)); }
.go::after { content: ""; position: absolute; top: -20%; bottom: -20%; width: 34px; left: -60px; background: rgba(255, 255, 255, 0.55); transform: skewX(-18deg); animation: shine 3.4s 1.6s infinite; }
@keyframes shine { 0% { left: -60px; } 26%, 100% { left: 120%; } }
.go:active { transform: translateY(5px); box-shadow: 0 2px 0 #9e3803, 0 2px 0 3px #000, 0 6px 14px rgba(0, 0, 0, 0.5); }
.breathe { animation: breathe 2.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.025); } }
.go.small { display: inline-flex; width: auto; min-height: 0; padding: 12px 22px; font: 700 17px/1.1 var(--sans); color: #1a1405; }
.under { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; align-items: center; font-size: 12.5px; color: rgba(255, 255, 255, 0.92); margin-top: 6px; }
.hint { padding: 5px 11px; border-radius: 999px; background: rgba(0, 0, 0, 0.66); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; color: #fff; text-decoration: none; background: rgba(4, 4, 10, 0.78); box-shadow: inset 0 0 0 1px var(--edge); font: 600 13px/1.2 var(--sans); }
.pill .dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px rgba(242, 51, 46, 0.9); animation: liveb 1.4s steps(1) infinite; }
@keyframes liveb { 50% { opacity: 0.25; } }
.keep { display: grid; justify-items: center; gap: 2px; color: #fff; text-decoration: none; font: 600 12.5px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; text-shadow: 0 1px 8px #000; white-space: nowrap; margin-top: 4px; }
.keep svg { width: 26px; height: 26px; color: var(--warm); filter: drop-shadow(0 1px 3px #000); animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(6px); } }

/* the alert */
.alert { justify-content: flex-start; }
.phone .card-alert { position: sticky; top: 34svh; }
.card-alert { position: relative; display: grid; gap: 8px; width: min(100%, 372px); margin-inline: auto; padding: 14px 18px 28px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 2px var(--red), 0 5px 0 #7c0606, 0 14px 30px rgba(0, 0, 0, 0.6); }
.card-alert p { font-size: 19px; line-height: 1.32; }
.alert-top { display: flex; align-items: center; gap: 8px; }
.alert-top img { width: 54px; height: 54px; flex: none; }
.alert-top h2 { font-size: 21px; }

/* the comic */
.caption { width: min(100%, 372px); margin-inline: auto; padding: 12px 14px 26px; text-align: center; font-size: min(25px, calc((100vw - 72px) / var(--fit, 14))); }
.caption .ink { white-space: nowrap; }

/* the door */
.doorway { min-height: 130vh; min-height: 130svh; scroll-margin-top: -90px; }
.door-copy { display: none; }
.hints { display: grid; gap: 8px; margin-top: 4px; }
.hints li { display: flex; align-items: center; gap: 10px; line-height: 1.25; }
.hints img { width: 40px; height: 40px; flex: none; }
.hints b { color: #fff; }

.tool .sheet { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; }
.chip { position: relative; display: grid; justify-items: center; }
.chip img { width: 64px; height: 64px; }
.chip b { margin-top: -6px; padding: 1px 8px; border-radius: 999px; background: #000; color: var(--warm); font-size: 12px; line-height: 1.5; white-space: nowrap; }
.tool h3 { margin-bottom: 3px; }
.tool p { font-size: 16px; line-height: 1.4; }
.more { display: flex !important; gap: 12px; align-items: center; }
.more img { width: 56px; height: 56px; flex: none; }

/* what is at stake */
.stakes { display: grid; gap: 10px; margin-top: 2px; }
.verdict { font-size: 24px; }

/* the street */
.street { justify-content: flex-start; padding-inline: 0; padding-top: 14px; padding-bottom: 20px; gap: 14px; }
.street > .sheet { margin-inline: var(--gutter); }
.rail { display: flex; gap: 8px; overflow-x: auto; padding: 8px var(--gutter) 10px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; transition: opacity 0.16s; }
.scenes .street:not(.now) .rail { opacity: 0; pointer-events: none; }
.rail::-webkit-scrollbar { display: none; }
.who { flex: none; scroll-snap-align: center; }
.who button {
  position: relative; display: grid; justify-items: center; gap: 6px; width: 172px; height: 100%; min-height: 330px; padding: 10px 10px 12px; border: 0; cursor: pointer; color: #fff; font: inherit; align-content: end;
  border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 2px var(--warm), 0 5px 0 var(--hot); transition: transform 0.14s var(--ease);
}
.who button:hover { transform: translateY(-3px); }
.who button:active { transform: scale(0.97); }
.who img { height: 210px; width: auto; max-width: 150px; object-fit: contain; object-position: bottom; }
.tag { padding: 1px 10px; border-radius: 8px; background: var(--warm); color: var(--ink); font-size: 13px; line-height: 1.6; box-shadow: 0 0 0 2px #000; transform: rotate(2deg); }
.say { font-size: 13.5px; line-height: 1.3; color: rgba(255, 255, 255, 0.92); text-align: center; }

/* the house */
.knacks { display: grid; gap: 6px; margin-top: 4px; font-size: 15.5px; line-height: 1.36; }
.knacks b { color: var(--warm); }

/* the nights */
.hards { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.hards li { padding: 4px 11px; border-radius: 999px; background: rgba(242, 51, 46, 0.24); box-shadow: inset 0 0 0 1px rgba(242, 51, 46, 0.7); font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
.stat { display: grid; justify-items: center; text-align: center; font-size: 12px; line-height: 1.2; color: rgba(255, 255, 255, 0.86); }
.stat b { font-size: 26px; line-height: 1.2; color: var(--warm); font-weight: 700; }

/* the dawn */
.dawn { align-items: center; text-align: center; padding-bottom: 20px; }
.dawn-card { justify-items: center; gap: 8px; width: min(100%, 420px); padding-bottom: 18px; }
.dawn-card::after { display: none; }
.dawn-card h2 { font-size: clamp(36px, 10vw, 50px); }
.stars { display: flex; gap: 6px; }
.stars img { width: 60px; height: 60px; }
.now .dawn-card .stars img, .dawn-card.in .stars img { animation: star 0.42s calc(var(--i) * 0.14s + 0.26s) var(--ease) both; }
.phone .logo-end { display: none; }
@keyframes star { from { transform: scale(0) rotate(-40deg); opacity: 0; } to { transform: none; opacity: 1; } }
.logo-end { width: min(70%, 260px); }

.site-footer { position: relative; z-index: 2; pointer-events: auto; background: #07070f; border-top: 1px solid rgba(255, 214, 51, 0.3); padding: 22px var(--gutter) max(22px, env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.site-footer .row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.site-footer img { height: 58px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-left: auto; font-size: 15px; }
.site-footer nav a { color: #fff; text-decoration: none; }
.site-footer nav a:hover { color: var(--warm); }
.site-footer small { color: rgba(255, 255, 255, 0.66); font-size: 12.5px; line-height: 1.5; }

/* ------------------------------------------------------------ the doorbell app: laid out like the game, in units of its 390 wide phone */
.h { position: absolute; }
.h-top { left: 0; right: 0; top: 0; height: calc(var(--u) * 150); background: linear-gradient(rgba(0, 0, 0, 0.72), transparent); opacity: 0; transition: opacity 0.25s; }
.h-foot { left: 0; right: 0; bottom: 0; height: calc(var(--u) * 310); background: linear-gradient(transparent, rgba(0, 0, 0, 0.86)); opacity: 0; transition: opacity 0.25s; }
.hud.bars .h-top, .hud.bars .h-foot { opacity: 1; }
.h-group { position: absolute; inset: 0; opacity: 0; transition: opacity 0.2s; visibility: hidden; }
.hud.bars .h-group.bars-only, .hud.door .h-group.door-only { opacity: 1; visibility: visible; }
.pillb { position: absolute; display: flex; align-items: center; border-radius: 999px; background: rgba(5, 5, 10, 0.78); box-shadow: inset 0 0 0 calc(var(--u) * 1.5) var(--tone, var(--warm)); }
.h-night { left: calc(var(--u) * 12); top: calc(var(--u) * 10); width: calc(var(--u) * 156); height: calc(var(--u) * 34); padding-left: calc(var(--u) * 42); font-size: calc(var(--u) * 19); }
.h-night img { position: absolute; left: calc(var(--u) * -4); top: calc(var(--u) * -4); width: calc(var(--u) * 42); height: calc(var(--u) * 42); }
.h-goal { --tone: var(--good); left: calc(var(--u) * 12); top: calc(var(--u) * 48); width: calc(var(--u) * 156); height: calc(var(--u) * 30); padding-left: calc(var(--u) * 12); font-size: calc(var(--u) * 13); color: #fff; gap: calc(var(--u) * 2); }
.h-goal img { width: calc(var(--u) * 26); height: calc(var(--u) * 26); filter: brightness(0.4) saturate(0.5); transition: filter 0.2s; }
.h-goal img:first-of-type { margin-left: calc(var(--u) * 6); }
.h-goal img.got { filter: none; animation: star 0.3s var(--ease) both; }
.h-clock { position: absolute; left: calc(var(--u) * 174); top: calc(var(--u) * 16); display: flex; align-items: center; gap: calc(var(--u) * 5); font-size: calc(var(--u) * 12.5); line-height: 1; color: rgba(255, 255, 255, 0.92); }
.h-clock b { width: calc(var(--u) * 8); height: calc(var(--u) * 8); border-radius: 50%; background: var(--red); animation: liveb 1.2s steps(1) infinite; }
.h-bat { position: absolute; right: calc(var(--u) * 12); top: calc(var(--u) * 10); width: calc(var(--u) * 122); height: calc(var(--u) * 34); border-radius: calc(var(--u) * 11); background: #000; box-shadow: inset 0 0 0 calc(var(--u) * 2) #fff; padding: calc(var(--u) * 4); }
.h-bat::after { content: ""; position: absolute; right: calc(var(--u) * -6); top: calc(var(--u) * 11); width: calc(var(--u) * 4); height: calc(var(--u) * 12); border-radius: 0 calc(var(--u) * 3) calc(var(--u) * 3) 0; background: #fff; }
.h-bat .ghost, .h-bat .fill { position: absolute; left: calc(var(--u) * 4); top: calc(var(--u) * 4); bottom: calc(var(--u) * 4); width: calc((100% - var(--u) * 8) * var(--v, 1)); border-radius: calc(var(--u) * 7); }
.h-bat .ghost { background: var(--red); transition: width 0.5s 0.25s; }
.h-bat .fill { background: linear-gradient(#6df08a, #2fc558); transition: width 0.12s; }
.h-bat.low .fill { background: linear-gradient(#ff8a6a, var(--red)); }
.h-bat img { position: absolute; left: calc(var(--u) * 5); top: calc(var(--u) * 3); width: calc(var(--u) * 28); height: calc(var(--u) * 28); }
.h-bat .pct { position: absolute; right: calc(var(--u) * 8); top: calc(var(--u) * 7); font-size: calc(var(--u) * 20); }
.h-bat.hit { animation: shake 0.24s; }
.h-cans { right: calc(var(--u) * 12); top: calc(var(--u) * 48); width: calc(var(--u) * 92); height: calc(var(--u) * 30); justify-content: flex-end; padding-right: calc(var(--u) * 10); font-size: calc(var(--u) * 18); }
.h-cans img { position: absolute; left: calc(var(--u) * -6); top: calc(var(--u) * -6); width: calc(var(--u) * 40); height: calc(var(--u) * 40); }
.h-house { position: absolute; right: calc(var(--u) * 112); top: calc(var(--u) * 48); display: flex; gap: calc(var(--u) * 3); }
.h-house span { width: calc(var(--u) * 30); height: calc(var(--u) * 30); border-radius: 50%; background-size: 330%; box-shadow: 0 0 0 calc(var(--u) * 1) rgba(255, 255, 255, 0.5); animation: star 0.34s var(--ease) both; }
@keyframes shake { 20% { transform: translateX(calc(var(--u) * -4)); } 40% { transform: translateX(calc(var(--u) * 4)); } 60% { transform: translateX(calc(var(--u) * -3)); } 80% { transform: translateX(calc(var(--u) * 2)); } }

.h-saw { left: 50%; bottom: calc(var(--u) * 340 + var(--lift)); transform: translateX(-50%) rotate(-1.2deg); display: flex; align-items: center; justify-content: center; padding: calc(var(--u) * 7) calc(var(--u) * 16); border-radius: 999px; background: rgba(5, 5, 10, 0.86); box-shadow: inset 0 0 0 calc(var(--u) * 2) var(--tone, var(--warm)); font-size: calc(var(--u) * 21); white-space: nowrap; }
.h-saw.pop { animation: sawpop 0.26s var(--ease) both; }
@keyframes sawpop { from { transform: translateX(-50%) rotate(-1.2deg) scale(0.4); opacity: 0; } to { transform: translateX(-50%) rotate(-1.2deg) scale(1); opacity: 1; } }
.h-coach { left: 50%; bottom: calc(var(--u) * 396 + var(--lift)); transform: translateX(-50%); width: calc(var(--u) * 330); padding: calc(var(--u) * 9) calc(var(--u) * 14); border-radius: calc(var(--u) * 22); background: rgba(8, 9, 15, 0.95); box-shadow: inset 0 0 0 calc(var(--u) * 1.5) var(--edge); font-size: calc(var(--u) * 15); line-height: 1.3; text-align: center; opacity: 0; transition: opacity 0.2s; }
.h-coach.on { opacity: 1; }
.h-balloon { left: calc(var(--u) * 18); right: calc(var(--u) * 18); bottom: calc(var(--u) * 228 + var(--lift)); padding: calc(var(--u) * 16) calc(var(--u) * 16) calc(var(--u) * 12); border-radius: calc(var(--u) * 18); background: var(--paper); color: var(--ink); box-shadow: 0 0 0 calc(var(--u) * 3) #000; font-size: calc(var(--u) * 17); line-height: 1.26; opacity: 0; transform: translateY(calc(var(--u) * 10)) scale(0.96); transition: opacity 0.16s, transform 0.2s var(--ease); }
.h-balloon.on { opacity: 1; transform: none; }
.h-balloon b { position: absolute; left: calc(var(--u) * 12); top: calc(var(--u) * -13); padding: 0 calc(var(--u) * 12); border-radius: calc(var(--u) * 8); background: var(--warm); box-shadow: 0 0 0 calc(var(--u) * 2) #000; font-size: calc(var(--u) * 13); line-height: calc(var(--u) * 24); transform: rotate(2deg); font-weight: 600; }
.h-balloon::after { content: ""; position: absolute; left: 50%; top: calc(var(--u) * -8); width: calc(var(--u) * 16); height: calc(var(--u) * 16); margin-left: calc(var(--u) * -8); background: var(--paper); transform: rotate(45deg); box-shadow: calc(var(--u) * -3) calc(var(--u) * -3) 0 0 #000; }
.h-tools { left: 0; right: 0; bottom: calc(var(--u) * 112 + var(--lift)); display: flex; justify-content: center; gap: calc(var(--u) * 2); pointer-events: none; }
.tool-b { position: relative; width: calc(var(--u) * 76); height: calc(var(--u) * 104); padding: 0; border: 0; background: none; color: #fff; cursor: pointer; pointer-events: auto; touch-action: manipulation; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.tool-b.gone { display: none; }
.tool-b .disc { position: absolute; left: calc(var(--u) * 4); top: 0; width: calc(var(--u) * 68); height: calc(var(--u) * 68); border-radius: 50%; background: conic-gradient(var(--tone, var(--warm)) calc(var(--p, 0) * 1turn), rgba(255, 255, 255, 0.34) 0); box-shadow: 0 calc(var(--u) * 4) 0 #000, 0 0 0 calc(var(--u) * 2) #000; transition: transform 0.08s; }
.tool-b .disc::before { content: ""; position: absolute; inset: calc(var(--u) * 4); border-radius: 50%; background: rgba(32, 34, 42, 0.92); }
.tool-b.down .disc { transform: translateY(calc(var(--u) * 3)); box-shadow: 0 calc(var(--u) * 1) 0 #000, 0 0 0 calc(var(--u) * 2) #000; }
.tool-b img { position: absolute; left: calc(var(--u) * 14); top: calc(var(--u) * 10); width: calc(var(--u) * 48); height: calc(var(--u) * 48); pointer-events: none; }
.tool-b .cost { position: absolute; left: 50%; top: calc(var(--u) * 60); transform: translateX(-50%); padding: 0 calc(var(--u) * 7); border-radius: 999px; background: #000; color: var(--warm); font-size: calc(var(--u) * 11); line-height: calc(var(--u) * 17); white-space: nowrap; }
.tool-b .name { position: absolute; left: calc(var(--u) * -6); right: calc(var(--u) * -6); top: calc(var(--u) * 79); font-size: calc(var(--u) * 13); line-height: 1.2; text-align: center; text-shadow: 0 1px 3px #000; }
.tool-b .mark { position: absolute; right: 0; top: calc(var(--u) * -4); width: calc(var(--u) * 28); height: calc(var(--u) * 28); border-radius: 50%; display: none; align-items: center; justify-content: center; box-shadow: 0 0 0 calc(var(--u) * 2) #000; }
.tool-b .mark img { position: static; width: calc(var(--u) * 16); height: calc(var(--u) * 16); }
.tool-b.ok { --tone: var(--good); --p: 1; }
.tool-b.bad { --tone: var(--red); --p: 1; }
.tool-b.ok .mark { display: flex; background: var(--good); animation: star 0.26s var(--ease) both; }
.tool-b.bad .mark { display: flex; background: var(--red); animation: star 0.26s var(--ease) both; }
.tool-b.new .disc { animation: toolglow 1s ease-in-out infinite; }
@keyframes toolglow { 50% { box-shadow: 0 calc(var(--u) * 4) 0 #000, 0 0 0 calc(var(--u) * 2) #000, 0 0 calc(var(--u) * 18) calc(var(--u) * 4) rgba(255, 214, 51, 0.8); } }
.tool-b.empty img { opacity: 0.4; }
.h-fuse { left: calc(var(--u) * 22); right: calc(var(--u) * 22); bottom: calc(var(--u) * 94); height: calc(var(--u) * 8); border-radius: 999px; background: rgba(0, 0, 0, 0.7); overflow: visible; }
.h-fuse i { display: block; height: 100%; width: calc(var(--v, 1) * 100%); margin-inline: auto; border-radius: 999px; background: var(--warm); box-shadow: 0 0 calc(var(--u) * 8) rgba(255, 214, 51, 0.7); }
.h-fuse.short i { background: var(--red); box-shadow: 0 0 calc(var(--u) * 8) rgba(242, 51, 46, 0.8); }
.h-slider { left: calc(var(--u) * 19); right: calc(var(--u) * 19); bottom: calc(var(--u) * 20); height: calc(var(--u) * 68); border-radius: 999px; background: #000; padding: calc(var(--u) * 3); pointer-events: auto; touch-action: none; -webkit-user-select: none; user-select: none; cursor: grab; }
.h-slider .track { position: absolute; inset: calc(var(--u) * 3); border-radius: 999px; overflow: hidden; background: linear-gradient(90deg, #5c0d0f 0 50%, #0d4d21 50%); }
.h-slider .track::before, .h-slider .track::after { content: ""; position: absolute; top: 0; bottom: 0; width: 50%; opacity: var(--a, 0); }
.h-slider .track::before { left: 0; background: linear-gradient(90deg, var(--red), rgba(242, 51, 46, 0.3)); opacity: var(--l, 0); }
.h-slider .track::after { right: 0; background: linear-gradient(270deg, var(--good), rgba(77, 224, 107, 0.3)); opacity: var(--r, 0); }
.h-slider .lw, .h-slider .rw { position: absolute; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: calc(var(--u) * 4); font-size: calc(var(--u) * 20); }
.h-slider .lw { left: calc(var(--u) * 8); font-size: calc(var(--u) * 15); }
.h-slider .rw { right: calc(var(--u) * 8); }
.h-slider .lw img, .h-slider .rw img { width: calc(var(--u) * 40); height: calc(var(--u) * 40); }
.h-knob { position: absolute; left: 50%; top: calc(var(--u) * 4); width: calc(var(--u) * 60); height: calc(var(--u) * 60); margin-left: calc(var(--u) * -30); border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 calc(var(--u) * 3) #000; transform: translateX(calc(var(--x, 0) * var(--u) * 142)); }
.h-knob img { position: absolute; inset: calc(var(--u) * 7); width: calc(var(--u) * 46); height: calc(var(--u) * 46); pointer-events: none; }
.h-slider.lean-open .h-knob { animation: nudger 1s ease-in-out infinite; }
.h-slider.lean-leave .h-knob { animation: nudgel 1s ease-in-out infinite; }
@keyframes nudger { 50% { margin-left: calc(var(--u) * -20); } }
@keyframes nudgel { 50% { margin-left: calc(var(--u) * -40); } }
.h-edge { inset: 0; box-shadow: inset 0 0 calc(var(--u) * 46) calc(var(--u) * 10) rgba(204, 10, 10, 0.86); opacity: 0; transition: opacity 0.3s; }
.h-edge.on { opacity: 1; }
.h-call { z-index: 6; left: calc(var(--u) * 12); right: calc(var(--u) * 12); top: calc(var(--u) * 8); padding: calc(var(--u) * 12); border-radius: calc(var(--u) * 24); background: rgba(10, 11, 15, 0.94); box-shadow: inset 0 0 0 calc(var(--u) * 2) var(--tone, var(--good)); display: grid; grid-template-columns: calc(var(--u) * 84) minmax(0, 1fr); column-gap: calc(var(--u) * 12); align-items: center; opacity: 0; transform: translateY(calc(var(--u) * -30)); transition: opacity 0.2s, transform 0.28s var(--ease); }
.h-call.on { opacity: 1; transform: none; }
.h-call .face { width: calc(var(--u) * 84); height: calc(var(--u) * 84); border-radius: 50%; box-shadow: 0 0 0 calc(var(--u) * 3) var(--tone, var(--good)); background-size: 320%; background-position: 50% 50%; }
.h-call .txt { display: grid; gap: calc(var(--u) * 2); font-size: calc(var(--u) * 14); line-height: 1.3; }
.h-call .nm { font-size: calc(var(--u) * 18); font-weight: 700; }
.h-call .st { color: var(--tone, var(--good)); font-size: calc(var(--u) * 16); font-weight: 700; }
.h-banner { left: calc(var(--u) * 12); right: calc(var(--u) * 12); top: calc(var(--u) * 8); display: grid; grid-template-columns: calc(var(--u) * 52) minmax(0, 1fr); column-gap: calc(var(--u) * 8); align-items: center; padding: calc(var(--u) * 10); border-radius: calc(var(--u) * 20); background: rgba(16, 17, 22, 0.97); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); transform: translateY(-140%); transition: transform 0.34s var(--ease); z-index: 6; }
.h-banner.on { transform: none; }
.h-banner img { width: calc(var(--u) * 52); height: calc(var(--u) * 52); }
.h-banner .ft { font-size: calc(var(--u) * 14); font-weight: 700; }
.h-banner .bd { font-size: calc(var(--u) * 14); line-height: 1.28; color: rgba(255, 255, 255, 0.9); }
.h-bang { position: absolute; font-size: calc(var(--u) * 44); line-height: 1; white-space: nowrap; transform: translate(-50%, -50%) rotate(var(--turn, -5deg)); z-index: 7; animation: bang var(--life, 1.2s) both; }
@keyframes bang { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--turn, -5deg)) scale(2); } 10% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--turn, -5deg)) scale(1); } 82% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--turn, -5deg)) scale(1.12); } }
.h-float { position: absolute; font-size: calc(var(--u) * 22); line-height: 1; transform: translate(-50%, -50%); animation: floatup 0.9s ease-out both; z-index: 7; }
@keyframes floatup { from { opacity: 1; margin-top: 0; } 70% { opacity: 1; } to { opacity: 0; margin-top: calc(var(--u) * -52); } }
.h-fly { position: absolute; width: calc(var(--u) * 30); height: calc(var(--u) * 30); transition: left 0.5s cubic-bezier(0.5, 0, 0.8, 0.5), top 0.5s cubic-bezier(0.2, 0.3, 0.5, 1), transform 0.5s; z-index: 7; }
.h-verdict { left: 0; right: 0; top: 50%; display: grid; justify-items: center; transform: translateY(-58%); opacity: 0; visibility: hidden; z-index: 6; }
.h-verdict.on { opacity: 1; visibility: visible; animation: verdict 0.18s ease-in both; }
@keyframes verdict { from { transform: translateY(-58%) scale(2.2); } to { transform: translateY(-58%) scale(1); } }
.h-verdict .burst { position: relative; width: calc(var(--u) * 404); height: calc(var(--u) * 270); display: grid; place-items: center; }
.h-verdict .burst::before { content: ""; position: absolute; inset: 0; background: var(--tone, var(--warm)); -webkit-mask: url("../ui/burst.webp") center / 100% 100% no-repeat; mask: url("../ui/burst.webp") center / 100% 100% no-repeat; }
.h-verdict .burst::after { content: ""; position: absolute; inset: 0; background: url("../ui/burst.webp") center / 100% 100% no-repeat; mix-blend-mode: multiply; }
.h-verdict .big { position: relative; z-index: 2; font-size: calc(var(--u) * 44); text-align: center; line-height: 1.12; transform: rotate(-3deg); }
.h-verdict .small { margin-top: calc(var(--u) * -22); max-width: calc(var(--u) * 340); padding: calc(var(--u) * 9) calc(var(--u) * 18); border-radius: calc(var(--u) * 22); background: rgba(0, 0, 0, 0.84); font-size: calc(var(--u) * 16); line-height: 1.28; text-align: center; }
.h-card { left: 50%; top: 50%; width: calc(var(--u) * 348); transform: translate(-50%, -50%); padding: calc(var(--u) * 18) calc(var(--u) * 18) calc(var(--u) * 18); border-radius: calc(var(--u) * 14); background: var(--card); box-shadow: inset 0 0 0 calc(var(--u) * 2) var(--warm), 0 calc(var(--u) * 5) 0 var(--hot), 0 14px 30px rgba(0, 0, 0, 0.6); display: grid; justify-items: center; gap: calc(var(--u) * 8); opacity: 0; visibility: hidden; pointer-events: auto; z-index: 6; transition: opacity 0.2s, transform 0.26s var(--ease); }
.h-card.on { opacity: 1; visibility: visible; }
.h-card .t1 { font-size: calc(var(--u) * 42); line-height: 1.1; text-align: center; }
.h-card .t2 { font-size: calc(var(--u) * 24); line-height: 1.1; }
.h-card .t3 { font-size: calc(var(--u) * 19); line-height: 1.1; margin-top: calc(var(--u) * 6); }
.h-card .body { font-size: calc(var(--u) * 16); line-height: 1.34; text-align: center; color: rgba(255, 255, 255, 0.92); }
.h-card .rule { display: flex; align-items: center; gap: calc(var(--u) * 10); width: 100%; font-size: calc(var(--u) * 16); line-height: 1.25; }
.h-card .rule img { width: calc(var(--u) * 44); height: calc(var(--u) * 44); flex: none; }
.h-card .stars { gap: calc(var(--u) * 6); }
.h-card .stars img { width: calc(var(--u) * 72); height: calc(var(--u) * 72); animation: star 0.42s calc(var(--i) * 0.14s + 0.2s) var(--ease) both; }
.h-card .tally { display: flex; gap: calc(var(--u) * 8); }
.h-card .tally .pillb { position: relative; height: calc(var(--u) * 34); padding: 0 calc(var(--u) * 12) 0 calc(var(--u) * 40); font-size: calc(var(--u) * 19); }
.h-card .tally img { position: absolute; left: calc(var(--u) * -4); top: calc(var(--u) * -5); width: calc(var(--u) * 44); height: calc(var(--u) * 44); }
.h-card .msg { width: 100%; padding: calc(var(--u) * 8) calc(var(--u) * 12); border-radius: calc(var(--u) * 12); background: var(--paper); color: var(--ink); font-size: calc(var(--u) * 15); line-height: 1.28; }
.h-card .msg small { display: block; color: #666; font-size: calc(var(--u) * 13); }
.h-card .go { width: 100%; min-height: calc(var(--u) * 62); padding: calc(var(--u) * 8) calc(var(--u) * 14) calc(var(--u) * 12); font-size: calc(var(--u) * 26); border-radius: calc(var(--u) * 20); }
.h-card .ghostb { margin-top: calc(var(--u) * 2); padding: calc(var(--u) * 8) calc(var(--u) * 16); border: 0; border-radius: 999px; color: #fff; background: rgba(255, 255, 255, 0.14); font: 600 calc(var(--u) * 15) / 1.2 var(--sans); cursor: pointer; }
.h-meter { left: 50%; bottom: calc(var(--u) * 348 + var(--lift)); transform: translateX(-50%); display: flex; align-items: center; gap: calc(var(--u) * 3); height: calc(var(--u) * 44); opacity: 0; transition: opacity 0.2s; }
.h-meter.on { opacity: 1; }
.h-meter i { width: calc(var(--u) * 3.4); height: calc(var(--u) * 4); border-radius: calc(var(--u) * 2); background: var(--good); }
.h-pointer { position: absolute; width: calc(var(--u) * 58); height: calc(var(--u) * 58); pointer-events: none; z-index: 7; animation: pointing 0.9s ease-in-out infinite; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7)); }
@keyframes pointing { 50% { transform: translateY(calc(var(--u) * 12)); } }
.black { position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity 0.2s; pointer-events: none; z-index: 4; }
.black.on { opacity: 1; }

/* ------------------------------------------------------------ the privacy policy, the support page */
.page { background: #07070f; }
.page .site-header { position: sticky; top: 0; background: rgba(7, 7, 15, 0.92); box-shadow: 0 1px 0 rgba(255, 214, 51, 0.3); }
.page main { pointer-events: auto; }
.prose { width: min(760px, 100% - 32px); margin: 0 auto; padding: 36px 0 64px; font-weight: 500; }
.prose h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.14; margin-bottom: 10px; }
.prose h2 { font-size: 22px; margin: 30px 0 8px; }
.prose p, .prose ul { color: rgba(255, 255, 255, 0.88); margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose b { color: #fff; }
.updated { color: rgba(255, 255, 255, 0.6) !important; font-size: 14px; }
.faq { display: grid; gap: 8px; margin-top: 18px; }
.faq details { border-radius: 14px; background: rgba(255, 255, 255, 0.06); padding: 12px 16px; }
.faq summary { cursor: pointer; font-weight: 600; color: #fff; }
.faq details p { margin: 8px 0 2px; }
.contact { margin-top: 28px; padding: 16px 18px; border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--edge); }
.contact h2 { margin-top: 0; }
.nowhere { text-align: center; display: grid; justify-items: center; gap: 12px; padding-top: 12vh; }
.nowhere p { margin: 0; }
.nowhere span { display: block; }

/* ------------------------------------------------------------ a big screen: the phone in your hand, and the page beside it */
@media (min-width: 900px) and (min-aspect-ratio: 1 / 1) {
  :root { --sh: min(calc(100vh - 150px), 760px); --sw: calc(var(--sh) / 1.838); --left: max(40px, calc(50vw - 590px)); }
  .home .stage { background: radial-gradient(ellipse at 70% 50%, #11101f, #04040c 70%); }
  /* your street, wide and very dark behind the phone: the same houses from the first scroll to the last, and what happens on them follows the page */
  .room { display: block; position: absolute; inset: 0; overflow: hidden; }
  .street-layers { position: absolute; inset: -4% -6%; transform: translate3d(calc(var(--drift, 0) * -2.4%), calc(var(--drift, 0) * 1.6%), 0) scale(calc(1.02 + var(--drift, 0) * 0.16)); transform-origin: 38% 60%; will-change: transform; }
  .street-layers img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 62%; opacity: 0; }
  .street-layers img:first-child { opacity: 1; }
  #ambient { position: absolute; inset: -10%; width: 120%; height: 120%; max-width: none; filter: blur(70px) saturate(1.2); opacity: 0.2; mix-blend-mode: screen; }
  /* the words and the phone keep the light: the street only shows at the edges */
  .scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3, 3, 15, 0.4), rgba(3, 3, 15, 0.1) 46%, rgba(3, 3, 15, 0) 72%), radial-gradient(ellipse 34% 62% at calc(100% - max(150px, 50vw - 500px) - var(--sw) / 2) 50%, rgba(3, 3, 15, 0.6), rgba(3, 3, 15, 0)); }
  .device { inset: auto; top: calc(50% - var(--sh) / 2 - 12px); right: max(150px, calc(50vw - 500px)); width: var(--sw); height: var(--sh); }
  .screen { border-radius: calc(var(--u) * 34); background: #000; }
  .hand { display: block; position: absolute; max-width: none; left: calc(var(--sw) * var(--hx) * -1); top: calc(var(--sw) * var(--hy) * -1); width: calc(var(--sw) * var(--hw)); height: auto; pointer-events: none; }
  .cover { width: 116%; }
  .hud { top: 0; height: 100%; }
  .site-header { padding: 10px 20px; }
  .home .brand { display: block; opacity: 0; transition: opacity 0.3s; }
  .home .site-header.solid .brand { opacity: 1; }
  .sec { padding: 0 0 0 var(--left); min-height: 112vh; justify-content: center; }
  .sec > *, .doorway .door-copy { max-width: min(500px, calc(100vw - var(--sw) * 1.34 - var(--left) - 174px)); }
  .hero { min-height: 100vh; align-items: flex-start; text-align: left; padding-top: 56px; padding-bottom: 20px; justify-content: center; gap: 10px; }
  .hero .logo { width: min(460px, calc((100vh - 505px) * 1.15)); max-width: 100%; }
  .hero-foot { margin-top: 10px; justify-items: start; width: 100%; }
  .pitch { padding: 14px 18px 16px; font-size: 21px; line-height: 1.32; }
  .under { justify-content: flex-start; font-size: 13px; }
  .ding { font-size: 42px; }
  .ding .ink { text-align: left; left: 16px; }
  .keep { justify-items: start; margin-top: 10px; }
  .alert { justify-content: center; }
  .card-alert { margin-inline: 0; }
  .panel { min-height: 100vh; }
  .caption { margin: 0; font-size: min(28px, calc(400px / var(--fit, 14))); width: 100%; max-width: 440px; }
  .doorway { min-height: 150vh; justify-content: flex-start; padding-top: 18vh; }
  .door-copy { display: grid; position: sticky; top: 18vh; }
  .tool { min-height: 100vh; }
  .street { padding-inline: 0; padding-left: var(--left); }
  .street { min-height: 112vh; padding-block: 90px 60px; }
  .street > .sheet { margin-inline: 0; }
  .rail { padding-inline: 0; flex-wrap: wrap; overflow: visible; }
  .who button { width: 150px; min-height: 280px; }
  .who img { height: 170px; }
  .dawn { align-items: flex-start; text-align: left; }
  .dawn-card { justify-items: start; }
  .site-footer { padding-inline: var(--left); }
}

/* a tablet standing up: the camera fills it, and the app keeps a phone's proportions in the middle */
@media (min-width: 600px) and (max-width: 899px), (min-width: 900px) and (max-aspect-ratio: 1 / 1) {
  :root { --sw: min(100vw, 58vh); }
  .hud { left: 50%; right: auto; width: var(--sw); transform: translateX(-50%); }
  .sec { align-items: center; }
  .sec > *, .rail { width: 100%; max-width: 560px; }
  .street .rail { max-width: none; }
}

/* lying down, on a phone: the phone on the screen is small, and the words stand beside it */
@media (orientation: landscape) and (max-height: 520px) {
  :root { --sh: calc(100vh - 12px); --sw: calc(var(--sh) / 1.83); --left: 24px; }
  .device { inset: auto; top: 6px; right: 24px; width: var(--sw); height: var(--sh); }
  .screen { border-radius: 14px; }
  .sec { padding: 12px calc(var(--sw) + 60px) 12px var(--left); }
  .room { display: block; position: absolute; inset: 0; overflow: hidden; }
  .street-layers { position: absolute; inset: 0; }
  .street-layers img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 62%; opacity: 0; }
  .street-layers img:first-child { opacity: 1; }
  .scrim { position: absolute; inset: 0; background: rgba(3, 3, 15, 0.5); }
  #ambient { display: none; }
  .hud { top: 0; height: 100%; }
  .hero .logo { width: min(36vw, 62vh); }
  .door-copy { display: grid; }
  .doorway { min-height: 120vh; justify-content: center; }
}

/* ------------------------------------------------------------ a small phone */
@media (max-width: 899px) {
  .home .site-header { justify-content: flex-end; }
}
@media (max-width: 899px) and (max-height: 640px) {
  .ding { display: none; }
}
@media (max-width: 360px) {
  .pitch { font-size: 14.5px; }
  .go { font-size: 26px; min-height: 62px; }
}
@media (max-width: 899px) {
  .hint { display: none; }
  .home .site-header { position: absolute; }
  .cover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 52%; background: linear-gradient(rgba(3, 3, 15, 0), rgba(3, 3, 15, 0.94) 56%); }
  .screen.flat .cover::after, .screen.camera .cover::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .logo, .notice, .ding .ink, .breathe, .go::after, .cover .glow, .keep svg, .pill .dot, .dock::after, .card-alert::after { animation: none; }
  .ding .ink { opacity: 0; }
  .screen.alerting { animation: none; background-color: #5a0404; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal.in .ink i, .ink.slam i, .scenes .now .reveal .ink i { animation: none; }
}

/* ------------------------------------------------------------ Safari on an iPhone */
/* It lays out what is fixed between the status bar and its own address bar, and paints nothing above the top of the document. And while a
   page loads it can take anything fixed for a bar of the page and paint the status bar in the page's background colour, for good. So
   here nothing is fixed: the phone is sticky and reaches past both bars, the header stays at the top of the page, and the page rests a
   little below its top, with the status bar over the picture. That stretch is padding of main, so that the page stands in front of the
   phone there too. The resting place is the same lying down, so that turning the phone moves nothing. */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 520px), (max-height: 520px) {
    .home main { padding-top: 72px; }
    .home .site-header { position: absolute; }
  }
  @media (orientation: portrait) and (max-width: 520px) {
    :root { --reach-top: 72px; --reach-bottom: 64px; }
    .stage { position: sticky; margin-bottom: calc(-100lvh - var(--reach-top) - var(--reach-bottom)); }
    .home .site-header { position: absolute; top: var(--reach-top); }
  }
}
