/* ServiceAgent Live Town: one pixel town that moves. People walk, vans drive, and the scroll follows one job from a night call to a paid invoice. Single warm light theme by design; the night chapter darkens the whole stage. */
:root {
  --page: #f5f4f0;
  --paper: #ffffff;
  --ink: #121117;
  --ink-2: #2b2a33;
  --ink-3: #4a4955;
  --line: #e2e0da;
  --brand: #4f46e5;
  --brand-deep: #3730a3;
  --brand-tint: #eceafd;
  --cta: #a3e635;
  --cta-hover: #bef264;
  --on-cta: #121117;
  --green-text: #166534;
  --night-ink: #ffffff;
  --night-ink-2: #dcdbea;
  --sky: 245,244,240;
  --font-display: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", Verdana, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --frame: 0 -2px 0 0 var(--ink), 0 2px 0 0 var(--ink), -2px 0 0 0 var(--ink), 2px 0 0 0 var(--ink);
  --frame3: 0 -3px 0 0 var(--ink), 0 3px 0 0 var(--ink), -3px 0 0 0 var(--ink), 3px 0 0 0 var(--ink);
  --gut-l: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --side: max(40px, var(--gut-l));
  --top: 80px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font-text); font-size: 19px; line-height: 30px; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--page); }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; color: var(--ink); }
p { margin: 0; }
img { display: block; }
.mono { font-family: var(--font-mono); font-weight: 500; font-size: 15px; line-height: 20px; letter-spacing: 0.12em; text-transform: uppercase; }
.fine { font-size: 16px; line-height: 24px; color: var(--ink-3); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; margin: 3px 3px 9px; font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--on-cta); background: var(--cta); text-decoration: none; border: 0; cursor: pointer; box-shadow: var(--frame3), 0 9px 0 0 var(--ink); transition: transform 80ms steps(2), box-shadow 80ms steps(2), background 120ms; }
.btn:hover { background: var(--cta-hover); transform: translateY(-2px); box-shadow: var(--frame3), 0 11px 0 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: var(--frame3), 0 5px 0 0 var(--ink); }
.btn--sm { min-height: 46px; font-size: 16px; padding: 0 18px; margin: 3px 3px 7px; box-shadow: var(--frame3), 0 6px 0 0 var(--ink); }
.btn--sm:hover { box-shadow: var(--frame3), 0 8px 0 0 var(--ink); }
.link { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.link:hover { color: var(--brand); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--brand); outline-offset: 6px; }

/* ---------- top bar ---------- */
.top { position: fixed; z-index: 50; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: var(--top); transition: background 300ms, box-shadow 300ms; }
.top.solid { background: rgba(245,244,240,0.95); box-shadow: 0 1px 0 var(--line); }
.top__in { height: 100%; display: flex; align-items: center; gap: 34px; padding-left: var(--side); padding-right: max(40px, var(--gut-r)); }
.top__logo img { height: 30px; width: auto; }
.top__links { margin-left: auto; display: flex; gap: 32px; }
.top__links a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 17px; }
.top__links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 760px) { .top__links { display: none; } .top .btn { margin-left: auto; } .top__in { padding-left: var(--gut-l); padding-right: var(--gut-r); } }

/* ---------- hero words ---------- */
.hero { position: relative; z-index: 2; padding: calc(var(--top) + 64px) max(40px, var(--gut-r)) 0 var(--side); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: start; max-width: 1360px; }
.hero__left { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.hero h1 { font-size: clamp(56px, 8.4vw, 132px); line-height: 0.94; font-weight: 600; letter-spacing: -0.055em; }
.hero__right { display: flex; flex-direction: column; gap: 30px; padding-top: 6px; max-width: 470px; min-width: 0; }
.hero__right .lead { font-size: 23px; line-height: 35px; color: var(--ink-2); letter-spacing: -0.005em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
@media (max-width: 900px) {
  .hero { padding-top: calc(var(--top) + 36px); padding-left: var(--gut-l); padding-right: var(--gut-r); }
  .hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .hero__right { max-width: none; gap: 22px; }
  .hero__right .lead { font-size: 20px; line-height: 31px; }
}

/* ---------- the stage: one town, one camera ---------- */
.story { position: relative; height: 1100vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: rgb(var(--sky)); }
.cam { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.world { position: absolute; left: 0; top: 0; width: 2688px; height: 1520px; transform-origin: 0 0; will-change: transform; }
.world img { position: absolute; left: 0; top: 0; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.world .plate { width: 2688px; height: 1520px; }
/* the whole town: the parcel sits in it at the same spot, so the zoom-out reads as one map */
.world .townx { left: -2660.2px; top: -1151.8px; width: 6409.7px; height: 3624.6px; max-width: none; max-height: none; opacity: 0; }
.world.px img { image-rendering: pixelated; }
.spr { will-change: transform; }
.walk { position: absolute; left: 0; top: 0; background-repeat: no-repeat; pointer-events: none; }
.world.px .walk { image-rendering: pixelated; }
.sign { left: 356px !important; top: 92px !important; width: 206px; height: 66px; transform: skewY(-15.4deg); transform-origin: 0 0; z-index: 1; image-rendering: pixelated; }
.night, .gold { position: absolute; inset: 0; pointer-events: none; -webkit-mask: url(assets/town-3.webp) 0 0 / 100% 100% no-repeat; mask: url(assets/town-3.webp) 0 0 / 100% 100% no-repeat; }
.night { background: #1d2150; mix-blend-mode: multiply; opacity: 0; z-index: 9000; }
.gold { background: #ff9d4d; mix-blend-mode: soft-light; opacity: 0; z-index: 9001; }
.glows { position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 9002; mix-blend-mode: screen; }
.glows i { position: absolute; width: var(--d); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2); background: radial-gradient(closest-side, rgba(255,214,128,0.85) 0 30%, rgba(255,200,110,0.32) 30% 62%, transparent 62%); }
.rings { position: absolute; z-index: 9003; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity 200ms steps(2); }
.rings.on { opacity: 1; }
.rings i { position: absolute; left: -130px; top: -70px; width: 260px; height: 140px; border: 10px solid #c6f36b; border-radius: 50%; opacity: 0; animation: ring 1.8s steps(7) infinite; }
.rings i:nth-child(2) { animation-delay: 0.6s; } .rings i:nth-child(3) { animation-delay: 1.2s; }
@keyframes ring { 0% { transform: scale(0.25); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.route { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.route i { position: absolute; left: 0; top: 0; width: 16px; height: 10px; margin: -5px 0 0 -8px; background: var(--brand); box-shadow: 0 0 0 4px #fff; opacity: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pop.tagw > .pill { transform: translate(-50%, 0); }
.hot { position: absolute; pointer-events: none; z-index: 9500; background: transparent; border: 0; padding: 0; cursor: pointer; }
.sky-stars { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.sky-stars i { position: absolute; width: 4px; height: 4px; background: #fff; animation: blink 2.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

/* screen-space layer: tags, bubbles, icons. They stay the same size at every zoom. */
.ui { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.anc { position: absolute; left: 0; top: 0; will-change: transform; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; background: var(--paper); font: 500 15px/20px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); white-space: nowrap; transform: translate(-50%, -100%); box-shadow: 0 -2px 0 0 var(--c, var(--brand)), 0 2px 0 0 var(--c, var(--brand)), -2px 0 0 0 var(--c, var(--brand)), 2px 0 0 0 var(--c, var(--brand)), 3px 4px 0 0 rgba(18,17,23,0.18); margin-top: -16px; }
.tag::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 14px; margin-left: -1px; background: var(--c, var(--brand)); }
.pop { opacity: 0; transition: opacity 160ms steps(3); }
.pop > * { transform: translate(-50%, -100%) scale(0.7); transition: transform 240ms steps(4); }
.pop.tagw > * { transform: translate(-50%, -100%); }
.pop.on { opacity: 1; }
.pop.on > * { transform: translate(-50%, -100%) scale(1); }
.bub { position: relative; display: flex; gap: 12px; align-items: center; width: max-content; max-width: 330px; padding: 10px 14px 10px 10px; margin-top: -22px; background: var(--paper); box-shadow: var(--frame), 4px 5px 0 0 rgba(18,17,23,0.22); transform-origin: 50% 100%; }
.bub::after { content: ""; position: absolute; left: calc(50% + var(--tail, 0px)); top: 100%; width: 14px; height: 14px; margin: 2px 0 0 -7px; background: linear-gradient(var(--ink), var(--ink)) 0 0 / 14px 2px no-repeat, var(--paper); clip-path: polygon(0 0, 100% 0, 50% 100%); box-shadow: none; }
.bub > img { width: 40px; height: 40px; flex: none; image-rendering: pixelated; }
.bub .mono { display: block; font-size: 13px; line-height: 18px; color: var(--brand-deep); font-weight: 700; letter-spacing: 0.08em; }
.bub p { font-size: 17px; line-height: 24px; color: var(--ink); font-weight: 500; }
.ico { width: 44px; height: 44px; transform: translate(-50%, -100%); image-rendering: pixelated; }
.ico.bob { animation: bob 1.2s steps(2) infinite; }
@keyframes bob { 50% { margin-top: -6px; } }
.pill { display: inline-flex; gap: 10px; align-items: center; padding: 8px 14px; background: var(--paper); box-shadow: var(--frame); font-size: 16px; line-height: 22px; color: var(--ink-2); white-space: nowrap; transform: translate(-50%, 0); }
.pill b { width: 10px; height: 10px; background: #16a34a; flex: none; animation: blink 1.6s steps(2) infinite; }
.bracket { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; transition: opacity 120ms steps(2);
  background:
    linear-gradient(var(--brand), var(--brand)) 0 0 / 22px 4px, linear-gradient(var(--brand), var(--brand)) 0 0 / 4px 22px,
    linear-gradient(var(--brand), var(--brand)) 100% 0 / 22px 4px, linear-gradient(var(--brand), var(--brand)) 100% 0 / 4px 22px,
    linear-gradient(var(--brand), var(--brand)) 0 100% / 22px 4px, linear-gradient(var(--brand), var(--brand)) 0 100% / 4px 22px,
    linear-gradient(var(--brand), var(--brand)) 100% 100% / 22px 4px, linear-gradient(var(--brand), var(--brand)) 100% 100% / 4px 22px; background-repeat: no-repeat; }
.bracket.on { opacity: 1; }
.popcard { position: absolute; z-index: 6; left: 0; top: 0; width: 330px; padding: 14px 18px 12px; background: var(--paper); box-shadow: var(--frame), 6px 8px 0 0 var(--brand); pointer-events: auto; }
.popcard .card__head { padding-right: 34px; }
.popcard .r span { flex: none; }
.popcard .x { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border: 0; background: transparent; font: 700 20px/1 var(--font-mono); cursor: pointer; color: var(--ink-3); }

/* inside the office: ServiceAgent on the desk computer, nobody in the chair */
.office { position: absolute; inset: 0; z-index: 2; overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none; }
.office__in { position: absolute; left: 0; top: 0; width: 2688px; height: 1520px; transform-origin: 0 0; will-change: transform; }
.office__in > img { position: absolute; left: 0; top: 0; width: 2688px; height: 1520px; max-width: none; }
.office.px .office__in > img { image-rendering: pixelated; }
.screen { position: absolute; left: 1716px; top: 686px; width: 175px; height: 124px; transform: skewY(11.6deg); transform-origin: 0 0; }
.screen svg { position: absolute; inset: 0; width: 100%; height: 100%; shape-rendering: crispEdges; transition: opacity 160ms steps(2); }
.screen .cal { opacity: 0; }
.screen .cal .hi { animation: blink 0.9s steps(2) infinite; }
.office.booked .screen .bot { opacity: 0; }
.office.booked .screen .cal { opacity: 1; }
.office.booked .slot { opacity: 1; animation: blink 0.9s steps(2) infinite; }
.slot { position: absolute; left: 838px; top: 644px; width: 108px; height: 54px; transform: skewY(-12deg); transform-origin: 0 0; box-shadow: 0 0 0 6px #a3e635, 0 0 0 11px #121117; opacity: 0; }
.bot .eye { transform-box: fill-box; transform-origin: center; animation: eye 3.2s steps(1) infinite; }
@keyframes eye { 0%, 92% { transform: scaleY(1); } 93%, 100% { transform: scaleY(0.2); } }
.bot .mouth { transform-box: fill-box; transform-origin: center; animation: talk 0.5s steps(2) infinite; }
@keyframes talk { 50% { transform: scaleY(2.2); } }
.bot .ant { animation: blink 1s steps(2) infinite; }
.bot .wave { animation: blink 0.7s steps(2) infinite; } .bot .wave.b { animation-delay: 0.35s; }
.chatpos { position: absolute; z-index: 5; left: 0; top: 0; width: 280px; will-change: transform; pointer-events: none; }
.chat { position: relative; width: 280px; background: var(--paper); box-shadow: var(--frame), 6px 8px 0 0 var(--brand), 0 30px 60px -24px rgba(18,17,23,0.35); opacity: 0; transform: translateY(24px); transition: opacity 320ms ease, transform 520ms cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.chat.on { opacity: 1; transform: none; }
.chat::after { content: ""; position: absolute; left: 50%; top: 100%; width: 22px; height: 16px; margin: 2px 0 0 -11px; background: var(--ink); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.chat__head { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 2px solid var(--ink); }
.chat__head svg { width: 30px; height: 25px; flex: none; shape-rendering: crispEdges; }
.chat__head b { display: block; font: 700 15px/19px var(--font-display); }
.chat__head span { display: block; font-size: 13px; line-height: 17px; color: var(--ink-3); }
.chat__head .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 700 12px/16px var(--font-mono); letter-spacing: 0.1em; color: var(--green-text); }
.chat__head .live::before { content: ""; width: 8px; height: 8px; background: #16a34a; animation: blink 1.2s steps(2) infinite; }
.chat__log { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 10px 11px 11px; height: 288px; overflow: hidden; }
.msg { max-width: 88%; padding: 6px 9px; font-size: 15px; line-height: 20px; color: var(--ink); animation: msgin 240ms steps(3); }
.msg small { display: block; font: 700 11px/15px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.msg.c { align-self: flex-start; background: #efeee9; }
.msg.a { align-self: flex-end; background: var(--brand-tint); }
.msg.a small { color: var(--brand-deep); }
.msg .faq { display: inline-block; margin-top: 4px; padding: 0 6px; font: 700 11px/18px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-text); background: #dcfce7; }
.msg.ok { align-self: stretch; max-width: none; display: flex; gap: 10px; align-items: center; background: #f0fdf4; box-shadow: 0 0 0 2px #16a34a; font-weight: 700; }
.msg.ok img { width: 28px; height: 28px; image-rendering: pixelated; }
.msg.crm { align-self: stretch; max-width: none; padding: 8px 12px 6px; background: var(--paper); box-shadow: 0 0 0 2px var(--ink), 4px 4px 0 0 var(--brand); }
.crm__h { display: flex; align-items: center; gap: 8px; padding-bottom: 6px; margin-bottom: 2px; border-bottom: 1px solid var(--line); font: 700 12px/16px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-deep); }
.crm__h img { width: 22px; height: 22px; image-rendering: pixelated; }
.crm__h em { margin-left: auto; font-style: normal; color: var(--ink-3); letter-spacing: 0.04em; }
.cr { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; line-height: 20px; color: var(--ink-2); animation: msgin 240ms steps(3); }
.cr b { font: 700 13px/20px var(--font-mono); color: var(--green-text); }
.cr b::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; background: #16a34a; vertical-align: 2px; }
.msg[hidden], .cr[hidden] { display: none !important; }
@keyframes msgin { from { transform: translateY(8px); opacity: 0; } }
@media (max-height: 760px) { .chat__log { height: 230px; } }
@media (max-width: 900px) {
  .chat__head { padding: 8px 12px; }
  .chat__log { height: 24vh; padding: 8px 10px 10px; gap: 6px; }
  .msg { font-size: 14px; line-height: 19px; padding: 5px 8px; }
}

/* chapter words */
.fade { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; background:
  radial-gradient(120% 92% at 0% 100%, rgba(var(--sky),0.97) 0%, rgba(var(--sky),0.94) 36%, rgba(var(--sky),0.72) 52%, rgba(var(--sky),0) 72%),
  linear-gradient(0deg, rgba(var(--sky),0.85) 0%, rgba(var(--sky),0) 24%); }
.ch { position: absolute; z-index: 5; left: var(--side); bottom: 11vh; width: min(560px, 42vw); display: flex; flex-direction: column; gap: 22px; pointer-events: none; }
.ch.on { pointer-events: auto; }
.ch > * { opacity: 0; transform: translateY(16px); transition: opacity 380ms ease, transform 520ms cubic-bezier(.2,.7,.2,1); }
.ch.on > * { opacity: 1; transform: none; }
.ch.on > *:nth-child(2) { transition-delay: 80ms; } .ch.on > *:nth-child(3) { transition-delay: 160ms; } .ch.on > *:nth-child(4) { transition-delay: 240ms; }
.ch h2 { font-size: clamp(44px, 5vw, 76px); line-height: 0.98; font-weight: 600; letter-spacing: -0.05em; transition: color 300ms; }
.ch p { font-size: 19px; line-height: 29px; color: var(--ink-2); max-width: 470px; font-weight: 500; transition: color 300ms; }
.num { display: block; height: 72px; width: 113px; }
.num rect { fill: var(--ink); }
.num rect.b { fill: var(--brand); }
.stage.dark .ch h2 { color: var(--night-ink); }
.stage.dark .ch p { color: var(--night-ink-2); }
.stage.dark .num rect { fill: var(--night-ink); }
.stage.dark .num rect.b { fill: var(--cta); }
.card { position: absolute; z-index: 5; right: 236px; bottom: 11vh; width: 384px; padding: 16px 20px 14px; background: var(--paper); box-shadow: var(--frame), 6px 8px 0 0 var(--brand), 0 30px 60px -24px rgba(18,17,23,0.35); opacity: 0; transform: translateY(24px); transition: opacity 320ms ease, transform 520ms cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.card.on { opacity: 1; transform: none; pointer-events: auto; transition-delay: 200ms; }
.card .inset { width: calc(100% + 40px); margin: -16px -20px 12px; height: auto; aspect-ratio: 960 / 543; max-width: none; image-rendering: pixelated; border-bottom: 2px solid var(--ink); }
.card__head { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.card__head .mono, .popcard .mono { font-size: 14px; color: var(--brand-deep); font-weight: 700; }
.card__head span:last-child { color: var(--ink-3); font-size: 15px; }
.r { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; line-height: 26px; padding: 2px 0; color: var(--ink-2); }
.r b { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--ink); text-align: right; }
.r.ok b { color: var(--green-text); }
.card__head .ag { display: inline-flex; align-items: center; gap: 8px; }
.card__head .ag img, .ans img { width: 22px; height: 22px; image-rendering: pixelated; }
.act { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 16px; line-height: 23px; padding: 4px 0; color: #8a8893; transition: color 200ms steps(2); }
.act span { display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.act span::before { content: ""; flex: none; width: 10px; height: 10px; box-shadow: inset 0 0 0 2px #c9c6bf; transform: translateY(0); }
.act b { flex: none; font: 600 13px/23px var(--font-mono); color: #a3a1ab; white-space: nowrap; }
.act.done { color: var(--ink); }
.act.done span::before { background: #16a34a; box-shadow: none; animation: tick 260ms steps(3); }
.act.done b { color: var(--green-text); }
.act.warn.done span::before { background: #d97706; }
.act.warn.done b { color: #92400e; }
@keyframes tick { 0% { transform: scale(0.2); } 100% { transform: scale(1); } }
.bub.ag { box-shadow: var(--frame), 4px 5px 0 0 var(--brand); }
.bub.ag .mono { color: var(--brand-deep); }
.bub .ans { display: flex; gap: 8px; align-items: center; margin-top: 4px; color: var(--brand-deep); }
.big { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 28px; letter-spacing: -0.02em; margin-bottom: 4px; }
.bar { height: 8px; background: var(--line); margin: 6px 0; }
.bar i { display: block; height: 100%; background: var(--ink); width: 100%; transform-origin: left; }
.note { position: absolute; z-index: 5; right: 236px; bottom: calc(11vh - 38px); font-size: 14px; color: var(--ink-3); background: rgba(245,244,240,0.9); padding: 0 6px; opacity: 0; transition: opacity 300ms; }
.note.on { opacity: 1; }
@media (max-width: 1180px) { .card, .note { right: 40px; } .card .inset { display: none; } }
@media (max-height: 820px) { .card .inset { display: none; } }
@media (max-width: 900px) {
  .fade { background: linear-gradient(0deg, rgba(var(--sky),1) 0%, rgba(var(--sky),0.97) 38%, rgba(var(--sky),0) 60%); }
  .ch { left: var(--gut-l); right: var(--gut-r); width: auto; bottom: 28px; gap: 12px; }
  .ch h2 { font-size: 34px; }
  .ch p { font-size: 17px; line-height: 26px; }
  .num { height: 34px; width: 54px; }
  .card, .note { display: none; }
  .tag { font-size: 12px; line-height: 16px; padding: 3px 7px; letter-spacing: 0.06em; }
  .bub { max-width: 250px; padding: 8px 10px 8px 8px; gap: 8px; }
  .bub > img { width: 30px; height: 30px; }
  .bub p { font-size: 15px; line-height: 21px; }
  .bub .mono { font-size: 11px; line-height: 15px; }
  .ico { width: 30px; height: 30px; }
  .pill { font-size: 14px; white-space: normal; width: max-content; max-width: calc(100vw - 32px); }
  .popcard { width: min(300px, calc(100vw - 32px)); }
}

/* ---------- chapter rail ---------- */
.rail { position: fixed; z-index: 45; right: max(32px, var(--gut-r)); top: 50%; transform: translateY(-50%); padding: 8px; background: rgba(255,255,255,0); transition: background 300ms, box-shadow 300ms, width 300ms, opacity 300ms; width: 44px; }
.rail.full { background: rgba(255,255,255,0.97); box-shadow: 0 1px 0 rgba(18,17,23,0.06), 0 14px 34px rgba(18,17,23,0.18); width: 170px; }
.rail button { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 36px; padding: 4px 10px; border: 0; background: transparent; cursor: pointer; text-align: left; font: 500 15px/20px var(--font-text); color: var(--ink-3); white-space: nowrap; overflow: hidden; }
.rail button i { width: 7px; height: 7px; background: #c9c6d3; flex: none; }
.rail button span { opacity: 0; transition: opacity 200ms; }
.rail.full button span { opacity: 1; }
.rail button.done i { background: var(--ink); }
.rail button.on { color: var(--ink); font-weight: 700; }
.rail.full button.on { background: var(--brand-tint); }
.rail button.on i { background: var(--brand); }
.rail .next { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 10px; color: var(--ink); font-weight: 700; }
.rail:not(.full) .next { border-top-color: transparent; }
@media (max-width: 900px) { .rail { display: none; } }

/* ---------- pricing, final, footer ---------- */
.band { padding: 140px max(40px, var(--gut-r)) 140px var(--side); }
.band__in { max-width: 1280px; margin: 0 auto; }
.sec-head { display: flex; flex-direction: column; gap: 20px; max-width: 760px; margin-bottom: 56px; }
.h-sec { font-size: clamp(44px, 5.4vw, 84px); line-height: 0.98; font-weight: 600; letter-spacing: -0.05em; }
.lead { font-size: 21px; line-height: 33px; color: var(--ink-2); max-width: 620px; }
.toggle { display: inline-flex; align-self: flex-start; box-shadow: var(--frame); margin: 3px; }
.toggle button { min-height: 48px; padding: 0 18px; border: 0; background: var(--paper); font: 700 14px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.toggle button + button { border-left: 2px solid var(--ink); }
.toggle button[aria-pressed="true"] { background: var(--brand-tint); color: var(--brand-deep); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 24px; background: var(--paper); min-width: 0; box-shadow: 0 1px 0 var(--line); }
.plan.pick { box-shadow: var(--frame), 6px 8px 0 0 var(--brand); }
.plan__tag { position: absolute; top: -14px; left: 22px; padding: 2px 10px; background: var(--brand); color: #fff; font: 700 13px/22px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.plan h3 { font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.02em; }
.plan .who { color: var(--ink-3); font-size: 16px; line-height: 24px; min-height: 48px; }
.plan .price { font-family: var(--font-display); font-weight: 600; font-size: 60px; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 17px; letter-spacing: 0; font-weight: 600; color: var(--ink-3); margin-left: 4px; }
.plan .per { font-size: 15px; line-height: 22px; color: var(--ink-3); min-height: 44px; }
.plan ul { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 24px; color: var(--ink-2); }
.plan li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 6px; }
.plan li::before { content: ""; width: 7px; height: 7px; margin-top: 9px; background: var(--brand); }
.plan .btn, .plan .link { margin-top: auto; align-self: flex-start; }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } .band { padding-top: 88px; padding-bottom: 88px; padding-left: var(--gut-l); padding-right: var(--gut-r); } }
.final { position: relative; padding-top: 72px; padding-bottom: 120px; }
.final__card { position: relative; max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); background: var(--paper); box-shadow: var(--frame3), 10px 12px 0 0 var(--ink); }
.final__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding: 64px 56px 56px; min-width: 0; }
.final h2 { margin: 0; font-family: var(--font-display); font-size: clamp(44px, 5.4vw, 84px); line-height: 0.98; font-weight: 600; letter-spacing: -0.045em; text-wrap: balance; }
.final h2 em { font-style: normal; color: var(--brand); }
.final .lead { margin: 0; max-width: 34ch; }
.final__checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.final__checks li { display: flex; align-items: center; gap: 12px; font-size: 18px; line-height: 26px; color: var(--ink); }
.final__checks img { width: 22px; height: 22px; image-rendering: pixelated; flex: none; }
.final__cta { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 4px; }
.final .fine a { color: var(--ink); font-weight: 700; }
.final__scene { position: relative; overflow: hidden; min-height: 560px; border-left: 3px solid var(--ink); background:
  radial-gradient(rgba(79,70,229,0.16) 1.5px, transparent 1.6px) 0 0 / 22px 22px,
  linear-gradient(180deg, #eceafd 0%, #f5f4f0 100%); }
.final__town { position: absolute; left: 50%; top: 50%; width: 104%; max-width: none; height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 18px 0 rgba(18,17,23,0.10)); }
.final__note { position: absolute; top: 28px; right: 28px; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; background: var(--paper); box-shadow: var(--frame), 5px 6px 0 0 rgba(18,17,23,0.18); }
.final__note .ag { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-deep); margin-bottom: 2px; }
.final__note .ag img { width: 20px; height: 20px; image-rendering: pixelated; }
.final__row { display: flex; align-items: center; gap: 10px; font-size: 16px; line-height: 22px; font-weight: 700; color: var(--ink); }
.final__row img { width: 20px; height: 20px; image-rendering: pixelated; }
.final__cast { position: absolute; left: 28px; bottom: 0; display: flex; align-items: flex-end; gap: 4px; }
.final__cast img { height: 200px; width: auto; max-width: none; image-rendering: pixelated; }
@media (max-width: 980px) { .final__card { grid-template-columns: 1fr; } .final__scene { min-height: 420px; border-left: 0; border-top: 3px solid var(--ink); } .final__copy { padding: 48px 32px 40px; } }
@media (max-width: 620px) { .final { padding-top: 48px; padding-bottom: 88px; } .final__card { box-shadow: var(--frame3), 6px 8px 0 0 var(--ink); } .final__copy { padding: 36px 22px 32px; } .final__scene { min-height: 340px; } .final__scene { min-height: 400px; } .final__town { width: 135%; top: 30%; } .final__note { top: auto; bottom: 16px; right: 12px; padding: 12px 14px; } .final__row { font-size: 14px; } .final__cast img { height: 120px; } .final__cast { left: 8px; } }
.foot { padding: 88px max(40px, var(--gut-r)) 40px var(--side); background: var(--paper); border-top: 3px solid var(--ink); }
.foot__in { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; gap: 48px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.foot__top { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; padding-bottom: 40px; border-bottom: 2px dashed var(--line); }
.foot__logo { height: 34px; width: auto; }
.foot__contact { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.foot__phone, .foot__mail { font: 700 18px/26px var(--font-display); color: var(--ink); text-decoration: none; user-select: all; }
.foot__mail { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.foot__phone:hover, .foot__mail:hover { color: var(--brand); }
.foot__social { display: flex; gap: 12px; }
.foot__social a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; font: 700 13px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: var(--page); text-decoration: none; box-shadow: var(--frame), 3px 4px 0 0 var(--ink); transition: transform 80ms steps(2), box-shadow 80ms steps(2); }
.foot__social a:hover { transform: translate(-1px, -1px); box-shadow: var(--frame), 4px 5px 0 0 var(--brand); color: var(--brand-deep); }
.foot__cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 32px; }
.fcol h3 { margin: 0 0 20px; font: 700 13px/18px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 10px; }
.fcol h3::before { content: ""; width: 9px; height: 9px; background: var(--brand); }
.fcol ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fcol a { font-size: 17px; line-height: 24px; color: var(--ink); text-decoration: none; }
.fcol a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.foot__base { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; padding-top: 32px; border-top: 2px dashed var(--line); }
.foot__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: var(--ink-3); }
.foot__legal a { color: var(--ink-3); text-decoration: none; } .foot__legal a:hover { color: var(--brand); text-decoration: underline; }
.foot__apps { display: flex; flex-wrap: wrap; gap: 12px; }
.foot__apps a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; font: 700 15px/1 var(--font-display); color: var(--paper); background: var(--ink); text-decoration: none; box-shadow: 3px 4px 0 0 var(--brand); }
.foot__apps a:hover { background: var(--brand-deep); }
.foot__soc { width: 96px; height: 96px; border-radius: 50%; }
@media (max-width: 1000px) { .foot__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .foot { padding: 64px var(--gut-r) 32px var(--gut-l); } .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot__contact { gap: 12px 20px; } }
/* ---------- testimonials: a slow wall of pixel-framed cards ---------- */
.tst { padding-bottom: 40px; }
.tst__wall { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; height: 760px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); }
.tst__col { display: flex; flex-direction: column; gap: 24px; padding: 6px 10px 0 4px; min-width: 0; animation: tstup var(--dur, 70s) linear infinite; }
.tst__col:nth-child(2) { animation-name: tstdown; }
.tst__wall:hover .tst__col, .tst__wall:focus-within .tst__col { animation-play-state: paused; }
@keyframes tstup { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes tstdown { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.q { margin: 0; display: flex; flex-direction: column; gap: 18px; padding: 24px 24px 20px; background: var(--paper); box-shadow: var(--frame), 5px 6px 0 0 rgba(18,17,23,0.14); transition: box-shadow 120ms steps(2), transform 120ms steps(2); }
.q:hover { transform: translate(-2px, -2px); box-shadow: var(--frame), 7px 8px 0 0 var(--brand); }
.q__tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font: 700 13px/18px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; }
.q__tag::before { content: ""; width: 9px; height: 9px; background: var(--c); }
.q__tag:hover { color: var(--brand-deep); }
.q blockquote { margin: 0; font-size: 18px; line-height: 29px; color: var(--ink); }
.q blockquote::before { content: "\201C"; } .q blockquote::after { content: "\201D"; }
.q figcaption { display: flex; align-items: center; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.q__av { flex: none; width: 48px; height: 48px; object-fit: cover; background: #eceaf9; box-shadow: var(--frame); }
.q__stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--brand-tint, #eef0ff); box-shadow: inset 4px 0 0 var(--c, var(--brand)); }
.q__stat i { font: 700 12px/16px var(--font-mono); font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-deep); margin-bottom: 4px; }
.q__stat b { font: 700 30px/36px var(--font-display); color: var(--ink); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.q__stat span { font: 600 14px/20px var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.q figcaption > span { display: flex; flex-direction: column; min-width: 0; }
.q figcaption b { font: 700 16px/22px var(--font-display); color: var(--ink); }
.q figcaption > span > span { font-size: 14px; line-height: 20px; color: var(--ink-3); }
.ph { color: #8a8893 !important; font-weight: 600; }
.tst__wall [aria-hidden="true"] .q__tag { pointer-events: none; }
@media (max-width: 1080px) { .tst__wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tst__col:nth-child(3) { display: none; } }
@media (max-width: 760px) {
  .tst__wall { display: flex; gap: 16px; height: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; -webkit-mask-image: none; mask-image: none; }
  .tst__col, .tst__col:nth-child(3) { display: contents; animation: none; }
  .tst__wall .q { flex: none; width: min(300px, 82vw); scroll-snap-align: start; }
  .tst__wall .dup { display: none; }
}
.ind { padding-bottom: 120px; }
.ind .sec-head { margin-bottom: 48px; }
.ind__row { overflow: hidden; padding: 6px 0 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ind__track { display: flex; gap: 24px; width: max-content; padding-left: 24px; animation: indrun 60s linear infinite; }
.ind__row:hover .ind__track, .ind__row:focus-within .ind__track { animation-play-state: paused; }
@keyframes indrun { to { transform: translateX(-50%); } }
.ind__card { flex: none; width: 260px; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: var(--frame), 5px 6px 0 0 rgba(18,17,23,0.14); transition: box-shadow 120ms steps(2), transform 120ms steps(2); }
.ind__card:hover, .ind__card:focus-visible { transform: translate(-2px, -2px); box-shadow: var(--frame), 7px 8px 0 0 var(--brand); outline: none; }
.ind__pic { position: relative; height: 250px; display: flex; align-items: flex-end; justify-content: center; background: linear-gradient(var(--sky) 0 82%, var(--gnd) 82% 100%); overflow: hidden; }
.ind__pic::after { content: ""; position: absolute; left: 0; right: 0; top: 82%; height: 2px; background: rgba(18,17,23,0.12); }
.ind__pic img { position: relative; z-index: 1; height: 220px; width: auto; max-width: none; margin-bottom: 14px; image-rendering: pixelated; }
.ind__txt { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; border-top: 2px solid var(--ink); }
.ind__txt b { font: 700 20px/26px var(--font-display); }
.ind__txt span { font-size: 16px; line-height: 23px; color: var(--ink-3); }
.ind__foot { display: flex; justify-content: center; margin-top: 44px; }
.btn--ghost { background: var(--paper); }
@media (max-width: 760px) { .ind__row { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; padding-left: var(--gut-l); padding-right: var(--gut-r); } .ind__track { animation: none; padding-left: 4px; gap: 16px; } .ind__card { width: min(240px, 72vw); scroll-snap-align: start; } .ind__card.dup { display: none; } }
@media (prefers-reduced-motion: reduce) { .ind__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding: 0 var(--gut-r) 0 var(--gut-l); } .ind__card.dup { display: none; } }
@media (prefers-reduced-motion: reduce) { .tst__col { animation: none; } .tst__wall .dup { display: none; } .tst__wall { height: auto; -webkit-mask-image: none; mask-image: none; } }
@media (prefers-reduced-motion: reduce) {
  .ch > *, .card, .note, .rail, .top, .pop, .pop > *, .btn { transition: none !important; }
  .rings i, .sky-stars i, .ico.bob, .pill b, .bot *, .slot, .cal .hi, .msg, .chat__head .live::before { animation: none !important; }
  .rings i { opacity: 0.6; transform: scale(0.9); }
}
.top__ctas { display: flex; align-items: center; gap: 12px; }
@media (max-width: 760px) { .top__links { display: none; } .top__ctas { margin-left: auto; gap: 6px; } .top .btn--sm { padding: 0 10px; font-size: 14px; white-space: nowrap; min-height: 42px; } .top__logo img { height: 22px; } .top__in { padding-left: var(--gut-l); padding-right: var(--gut-r); } }

/* header: one row at every width, and a menu button below 760px */
.top__logo, .top__ctas, .top__in > .btn { flex: none; }
.top__links a, .top__ctas a, .top__in > .btn { white-space: nowrap; }
.top__menu, .top__links .top__dup { display: none; }
@media (max-width: 960px) and (min-width: 761px) { .top__in { gap: 20px; } .top__links { gap: 20px; } .top__ctas { gap: 8px; } }
@media (max-width: 760px) {
  .top__in { gap: 8px; }
  .top__menu { display: inline-grid; place-items: center; flex: none; width: 42px; height: 42px; margin-left: 0; padding: 0; border: 0; background: var(--paper); box-shadow: var(--frame); color: var(--ink); cursor: pointer; }
  .top__menu i, .top__menu i::before, .top__menu i::after { display: block; width: 18px; height: 2px; background: currentColor; }
  .top__menu i { position: relative; }
  .top__menu i::before, .top__menu i::after { content: ""; position: absolute; left: 0; }
  .top__menu i::before { top: -6px; } .top__menu i::after { top: 6px; }
  .top__menu[aria-expanded="true"] i { background: transparent; }
  .top__menu[aria-expanded="true"] i::before { top: 0; transform: rotate(45deg); }
  .top__menu[aria-expanded="true"] i::after { top: 0; transform: rotate(-45deg); }
  .top__menu:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
  .top.top--open .top__links { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 4px var(--gut-r) 18px var(--gut-l); max-height: calc(100vh - var(--top)); max-height: calc(100dvh - var(--top)); overflow-y: auto; background: var(--page); box-shadow: 0 1px 0 var(--line), 0 18px 30px -12px rgba(18,17,23,0.25); }
  .top.top--open .top__links a:not(.btn) { padding: 14px 2px; font-size: 18px; border-bottom: 1px solid var(--line); }
  .top.top--open .top__links .top__dup { display: inline-flex; justify-content: center; align-self: stretch; width: auto; margin: 14px 0 0; min-height: 48px; font-size: 16px; }
}
@media (max-width: 430px) { .top__ctas > a:first-child:not(:only-child) { display: none; } }

/* in-page links land below the fixed header */
html { scroll-padding-top: calc(var(--top) + 16px); }

/* footer social links as icons */
.foot__social a { width: 44px; min-height: 44px; padding: 0; justify-content: center; }
.foot__social svg { width: 22px; height: 22px; }

/* app store links: colour icons */
.foot__apps a { gap: 10px; }
.foot__apps .app__ic { width: 20px; height: 20px; flex: none; image-rendering: auto; }
.foot__base { column-gap: 16px; } .foot__legal { margin-right: auto; }
@media (max-width: 1100px) { .foot__base { justify-content: flex-start; } .foot__legal { flex-basis: 100%; } }
