/* ============================================================
   ALTERNATIV — SCROLL STORY  ·  dark, vivid, cinematic
   ============================================================ */
:root {
  --bg0: #0a0a0e;
  --bg1: #101016;
  --paper: #15151c;
  --paper-2: #1a1a22;
  --ink: #f4f2ec;
  --ink-2: #c2bfb4;
  --muted: #83817a;
  --faint: #55534e;
  --line: rgba(255,255,255,.09);
  --line-2: rgba(255,255,255,.16);
  --brand: #ff5a2e;
  --brand-soft: rgba(255,90,46,.16);
  --wa: #25c07d;
  --out-bubble: #0e4a34;
  --in-bubble: #1e1f27;
  --c1: #f2a53a;  /* estate */
  --c2: #ff7a9e;  /* retail */
  --c3: #5b93f5;  /* logistics */
  --c4: #2fd4a7;  /* clinic */
  --serif: "Syne", "Bricolage Grotesque", sans-serif;
  --sans: "Schibsted Grotesk", "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease-pop: cubic-bezier(.22,1.4,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg0);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--brand); color: #0a0a0e; }

/* grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 9990; pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxNjAnIGhlaWdodD0nMTYwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC45JyBudW1PY3RhdmVzPScyJyBzdGl0Y2hUaWxlcz0nc3RpdGNoJy8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9JzEwMCUnIGhlaWdodD0nMTAwJScgZmlsdGVyPSd1cmwoI24pJy8+PC9zdmc+");
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(10,10,14,.72); backdrop-filter: blur(14px) saturate(130%); border-bottom-color: var(--line); }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; height: 64px; display: flex; align-items: center; gap: 30px; }
.logo-text { font-family: var(--serif); font-weight: 800; font-size: 16px; letter-spacing: .035em; text-transform: uppercase; color: var(--ink); }
.logo-text .dot-i { color: var(--brand); }
.nav-links { display: flex; gap: 26px; margin-left: 14px; }
.nav-links a { font-size: 13.5px; color: var(--ink-2); font-weight: 500; transition: color .15s; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.nav-signin { font-size: 13.5px; color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.nav-signin:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 10px 18px; border: 1.5px solid transparent; font-family: var(--sans);
  transition: transform .15s, background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-brand { background: var(--brand); color: #16090478; color: #1a0c05; }
.btn-brand:hover { background: #ff6c44; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); background: rgba(255,255,255,.04); }
.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 12px; }

/* ============ STORY WRAPPER ============ */
#story { position: relative; height: 780vh; }
.stage {
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden;
}
.stage::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(120% 92% at 56% 46%, transparent 38%, rgba(4,4,7,.66) 100%); }

/* chapter glows */
.stage-glow { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.glow { position: absolute; inset: -10%; opacity: 0; transition: opacity .5s linear; will-change: opacity; }
.glow.g-hero { background: radial-gradient(1000px 640px at 68% 38%, rgba(255,90,46,.28), transparent 65%), radial-gradient(760px 540px at 18% 78%, rgba(91,147,245,.16), transparent 62%), radial-gradient(900px 500px at 10% 6%, rgba(139,108,255,.13), transparent 60%), linear-gradient(180deg, transparent 40%, rgba(64,28,12,.5) 100%); }
.glow.g-1 { background: radial-gradient(900px 620px at 70% 30%, rgba(242,165,58,.12), transparent 65%), radial-gradient(700px 520px at 15% 75%, rgba(242,165,58,.05), transparent 60%); }
.glow.g-2 { background: radial-gradient(900px 620px at 30% 30%, rgba(255,145,110,.13), transparent 65%), radial-gradient(700px 520px at 80% 75%, rgba(255,122,158,.06), transparent 60%); }
.glow.g-3 { background: radial-gradient(900px 620px at 70% 65%, rgba(91,147,245,.13), transparent 65%), radial-gradient(700px 520px at 20% 25%, rgba(91,147,245,.06), transparent 60%); }
.glow.g-4 { background: radial-gradient(900px 620px at 30% 60%, rgba(47,212,167,.11), transparent 65%), radial-gradient(700px 520px at 78% 25%, rgba(255,180,110,.06), transparent 60%); }
.stage-stars {
  position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image: radial-gradient(rgba(255,255,255,.25) .8px, transparent .8px);
  background-size: 130px 130px;
  -webkit-mask-image: radial-gradient(700px 500px at 70% 20%, #000, transparent 75%);
  mask-image: radial-gradient(700px 500px at 70% 20%, #000, transparent 75%);
}

/* ============ HERO COPY (inside stage) ============ */
.hero-copy {
  position: absolute; left: 7vw; top: 50%; transform: translateY(-50%);
  max-width: 560px; z-index: 6;
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.hero-copy.gone { opacity: 0; transform: translateY(-60%); pointer-events: none; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 22px;
}
.kicker .ln { width: 30px; height: 1.5px; background: var(--brand); }
h1.hero-title {
  font-family: var(--serif); font-optical-sizing: auto; font-weight: 800; font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.02; letter-spacing: -.025em; margin-bottom: 24px; text-wrap: balance;
}
h1.hero-title .it { color: var(--brand); }
.hero-sub { font-size: 17px; color: var(--ink-2); max-width: 440px; line-height: 1.65; margin-bottom: 30px; }
.hero-sub b { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-meta { display: flex; align-items: center; margin-top: 38px; flex-wrap: wrap; row-gap: 12px; }
.hero-meta .hm {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); padding: 0 18px; border-left: 1px solid rgba(255,255,255,.13);
  white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; line-height: 1;
}
.hero-meta .hm:first-child { border-left: 0; padding-left: 0; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 6;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  transition: opacity .4s;
}
.scroll-cue .wheel { width: 20px; height: 32px; border: 1.5px solid var(--faint); border-radius: 10px; position: relative; }
.scroll-cue .wheel::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--brand); animation: wheel 1.6s infinite var(--ease-out); }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }
.scroll-cue.gone { opacity: 0; }

/* ============ CHAPTER COPY ============ */
.ch-copy {
  position: absolute; left: 7vw; top: 50%; width: min(400px, 30vw); z-index: 6;
  opacity: 0; transform: translateY(calc(-50% + 44px));
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
  pointer-events: none;
}
.ch-copy.on { opacity: 1; transform: translateY(-50%); }
.ch-copy .kicker { margin-bottom: 16px; }
.ch-copy .kicker .ln { background: var(--chc, var(--brand)); }
.ch-copy .kicker .t { color: var(--chc, var(--muted)); }
.ch-copy h2 {
  font-family: var(--serif); font-optical-sizing: auto; font-weight: 750; font-size: clamp(27px, 2.6vw, 40px);
  line-height: 1.08; letter-spacing: -.02em; margin-bottom: 16px; text-wrap: balance;
}
.ch-copy p { font-size: 15px; color: var(--ink-2); line-height: 1.65; max-width: 330px; }

/* ============ PROGRESS RAIL ============ */
.rail {
  position: absolute; right: 30px; top: 50%; transform: translateY(-50%); z-index: 7;
  display: flex; flex-direction: column; gap: 18px; align-items: flex-end;
  opacity: 0; transition: opacity .4s;
}
.rail.on { opacity: 1; }
.rail-item { display: flex; align-items: center; gap: 10px; cursor: default; }
.rail-item .lbl {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--faint); opacity: 0; transform: translateX(6px); transition: all .3s; white-space: nowrap;
}
.rail-item .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); transition: all .3s; }
.rail-item.active .dot { background: var(--rc, var(--brand)); box-shadow: 0 0 12px var(--rc, var(--brand)); transform: scale(1.35); }
.rail-item.active .lbl { opacity: 1; transform: none; color: var(--ink-2); }
.rail-item.done .dot { background: var(--ink-2); }

/* ============ PHONE ============ */
.phone-wrap {
  position: absolute; left: 58%; top: 50%;
  transform: translate(-50%, -50%) scale(var(--phscale, 1));
  z-index: 5;
}
.phone {
  width: clamp(270px, 21vw, 316px); aspect-ratio: 9 / 18.6;
  background: #17171d;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 44px; padding: 10px;
  box-shadow: 0 54px 110px -36px rgba(0,0,0,.92), 0 0 0 6px rgba(255,255,255,.03), 0 0 130px -18px var(--phglow, rgba(255,90,46,.45));
  position: relative;
  transition: box-shadow .6s;
}
.phone .screen {
  position: absolute; inset: 10px; border-radius: 35px; overflow: hidden;
  background: linear-gradient(180deg, #0d0d12, #0b0b0f);
}
.phone .notch {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 24px; border-radius: 14px; background: #17171d; z-index: 40;
}
/* views */
.pv { position: absolute; inset: 0; opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); pointer-events: none; }
.pv.on { opacity: 1; transform: none; }

/* --- lock view --- */
.pv-lock { display: flex; flex-direction: column; align-items: center; padding: 74px 18px 20px; text-align: center; }
.pv-lock .clock { font-size: 56px; font-weight: 300; letter-spacing: -1px; font-family: var(--sans); }
.pv-lock .date { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.lock-notif {
  margin-top: 26px; width: 100%; text-align: left;
  background: rgba(255,255,255,.09); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.10); border-radius: 16px; padding: 11px 12px;
  display: flex; gap: 10px; align-items: flex-start;
  opacity: 0; transform: translateY(-14px) scale(.96);
  transition: all .55s var(--ease-pop);
}
.lock-notif.on { opacity: 1; transform: none; }
.lock-notif .app-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--wa); display: grid; place-items: center; flex-shrink: 0; color: #06281a; }
.lock-notif .app-ic svg { width: 17px; height: 17px; }
.lock-notif .ttl { font-size: 12px; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.lock-notif .ttl .tm { color: var(--muted); font-weight: 400; font-size: 10.5px; }
.lock-notif .txt { font-size: 11.5px; color: var(--ink-2); margin-top: 1px; line-height: 1.4; }
.pv-lock .hint { margin-top: auto; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); line-height: 1.5; }

/* --- chat view --- */
.pv-chat { display: flex; flex-direction: column; }
.chat-head {
  display: flex; align-items: center; gap: 10px; padding: 54px 14px 10px;
  background: rgba(255,255,255,.035); border-bottom: 1px solid var(--line);
  position: relative; z-index: 30;
}
.chat-head .avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #0d0d11; background: var(--avc, var(--c1));
  transition: background .4s; flex-shrink: 0;
}
.chat-head .who { min-width: 0; flex: 1; }
.chat-head .nm { font-size: 13.5px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head .st { font-size: 10.5px; color: var(--wa); display: flex; align-items: center; gap: 5px; }
.chat-head .st .pulse { width: 5px; height: 5px; border-radius: 50%; background: var(--wa); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.chat-head .alt-chip {
  margin-left: auto; font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em;
  color: var(--brand); border: 1px solid rgba(255,90,46,.4); background: rgba(255,90,46,.08);
  padding: 3px 7px; border-radius: 999px; white-space: nowrap; flex-shrink: 0;
}
.threads { position: relative; flex: 1; overflow: hidden; contain: layout paint; }
.convo {
  position: absolute; inset: 0; padding: 12px 12px 14px;
  display: flex; flex-direction: column; justify-content: flex-end;
  opacity: 0; transform: translateY(26px); transition: opacity .45s var(--ease-out), transform .5s var(--ease-out);
  pointer-events: none;
}
.convo.on { opacity: 1; transform: none; }
.convo.bye { opacity: 0; transform: translateY(-30px); }

/* message rows — grid trick animates height both directions */
.msg { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .42s var(--ease-out), opacity .38s var(--ease-out), transform .42s var(--ease-out); transform: translateY(14px) scale(.97); }
.msg.on { grid-template-rows: 1fr; opacity: 1; transform: none; }
.msg > .mi { overflow: hidden; min-height: 0; display: flex; }
.msg.in > .mi { justify-content: flex-start; }
.msg.out > .mi { justify-content: flex-end; }
.bubble {
  max-width: 82%; margin-top: 9px; padding: 8px 11px 6px; border-radius: 14px;
  font-size: 12.3px; line-height: 1.45; position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.msg.in .bubble { background: var(--in-bubble); border-bottom-left-radius: 5px; color: var(--ink); }
.msg.out .bubble { background: var(--out-bubble); border-bottom-right-radius: 5px; color: #e8f5ee; }
.bubble .meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 3px; font-size: 9px; color: rgba(255,255,255,.45); }
.bubble .meta .alt-sig { font-family: var(--mono); font-size: 8px; color: var(--brand); letter-spacing: .06em; margin-right: auto; }
.bubble .ticks { color: #53bdeb; letter-spacing: -2px; }
.sys { display: grid; grid-template-rows: 0fr; opacity: 0; transition: all .4s var(--ease-out); }
.sys.on { grid-template-rows: 1fr; opacity: 1; }
.sys > .mi { overflow: hidden; min-height: 0; display: flex; justify-content: center; }
.sys .chip { margin-top: 10px; font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,.05); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
/* typing indicator */
.typing { display: grid; grid-template-rows: 0fr; opacity: 0; transition: all .3s var(--ease-out); }
.typing.on { grid-template-rows: 1fr; opacity: 1; }
.typing > .mi { overflow: hidden; min-height: 0; display: flex; justify-content: flex-end; }
.typing .tb { margin-top: 9px; background: var(--out-bubble); border-radius: 14px; border-bottom-right-radius: 5px; padding: 10px 13px; display: flex; gap: 4px; align-items: center; }
.typing .tb i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.55); animation: tdot 1.1s infinite; }
.typing .tb i:nth-child(2) { animation-delay: .15s; }
.typing .tb i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 0%,60%,100% { transform: none; opacity: .4; } 30% { transform: translateY(-3px); opacity: 1; } }
/* product strip inside bubble */
.prod-strip { display: flex; gap: 6px; margin: 4px 0 5px; }
.prod-strip .p { width: 62px; border-radius: 8px; overflow: hidden; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.prod-strip .p .ph { height: 46px; background: repeating-linear-gradient(45deg, rgba(255,255,255,.10) 0 4px, rgba(255,255,255,.03) 4px 8px); }
.prod-strip .p .pn { font-size: 7.5px; padding: 3px 5px; color: var(--ink-2); font-family: var(--mono); letter-spacing: .02em; }
.pay-inline { margin: 4px 0 5px; border: 1px dashed rgba(255,255,255,.3); border-radius: 9px; padding: 7px 9px; font-family: var(--mono); font-size: 10px; color: #b7f5cf; display: flex; align-items: center; gap: 7px; }
.pay-inline svg { width: 12px; height: 12px; }
.composer { display: flex; align-items: center; gap: 8px; padding: 9px 12px 13px; }
.composer .field { flex: 1; height: 34px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); display: flex; align-items: center; padding: 0 13px; font-size: 11.5px; color: var(--faint); }
.composer .send { width: 34px; height: 34px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; color: #06281a; flex-shrink: 0; }
.composer .send svg { width: 15px; height: 15px; }

/* --- call view --- */
.pv-call { display: flex; flex-direction: column; align-items: center; padding: 70px 20px 24px; text-align: center; background: linear-gradient(180deg, #0e1a15, #0b0b0f 65%); }
.pv-call .cavatar { width: 74px; height: 74px; border-radius: 50%; background: var(--c4); color: #062a1f; display: grid; place-items: center; font-size: 24px; font-weight: 700; position: relative; }
.pv-call .cavatar::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1.5px solid rgba(47,212,167,.4); animation: ring 2s infinite var(--ease-out); }
@keyframes ring { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
.pv-call .cname { margin-top: 14px; font-size: 17px; font-weight: 600; }
.pv-call .cstat { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--c4); margin-top: 4px; display: flex; gap: 8px; align-items: center; }
.pv-call .ctime { font-variant-numeric: tabular-nums; }
.wave { display: flex; gap: 3px; align-items: center; height: 34px; margin: 18px 0 6px; }
.wave i { width: 3px; border-radius: 2px; background: var(--c4); height: 6px; }
.pv.on .wave i { animation: wv .9s infinite var(--ease-out); }
@keyframes wv { 0%,100% { height: 5px; opacity: .55; } 50% { height: 26px; opacity: 1; } }
.transcript { width: 100%; margin-top: 8px; display: flex; flex-direction: column; text-align: left; }
.tline { display: grid; grid-template-rows: 0fr; opacity: 0; transition: all .4s var(--ease-out); transform: translateY(10px); }
.tline.on { grid-template-rows: 1fr; opacity: 1; transform: none; }
.tline > .mi { overflow: hidden; min-height: 0; }
.tline .tl { margin-top: 9px; font-size: 11.5px; line-height: 1.5; color: var(--ink-2); display: flex; gap: 8px; }
.tline .spk { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; padding-top: 2px; flex-shrink: 0; width: 34px; }
.tline.alt .spk { color: var(--brand); }
.tline.cust .spk { color: var(--c4); }
.pv-call .end { margin-top: auto; width: 52px; height: 52px; border-radius: 50%; background: #e5484d; display: grid; place-items: center; color: #fff; }
.pv-call .end svg { width: 22px; height: 22px; transform: rotate(135deg); }

/* ============ ARTIFACT CARDS ============ */
.arts { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.art {
  position: absolute; background: linear-gradient(180deg, var(--paper-2), var(--paper));
  border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.65);
  padding: 14px 15px; width: 250px;
  opacity: 0; transform: translateY(26px) scale(.92) rotate(var(--tilt, 0deg));
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-pop);
}
.art.on { opacity: 1; transform: translateY(0) scale(1) rotate(var(--tilt, 0deg)); }
.art .a-k { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
.art .a-k .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ac, var(--brand)); box-shadow: 0 0 8px var(--ac, var(--brand)); }
.art .a-t { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.art .a-s { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.art .a-row { display: flex; align-items: center; gap: 9px; }
.art .a-badge { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(37,192,125,.13); color: var(--wa); border: 1px solid rgba(37,192,125,.3); }
.art .a-badge svg { width: 11px; height: 11px; }

/* visit card */
.art .cal-strip { display: flex; gap: 5px; margin-top: 11px; }
.art .cal-d { flex: 1; text-align: center; border: 1px solid var(--line); border-radius: 9px; padding: 6px 0 7px; }
.art .cal-d .dw { font-family: var(--mono); font-size: 8px; letter-spacing: .1em; color: var(--faint); text-transform: uppercase; }
.art .cal-d .dn { font-size: 14px; font-weight: 600; margin-top: 1px; }
.art .cal-d.sel { background: rgba(242,165,58,.14); border-color: rgba(242,165,58,.5); }
.art .cal-d.sel .dn { color: var(--c1); }
/* crm row */
.art .crm-line { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.art .crm-av { width: 30px; height: 30px; border-radius: 50%; background: var(--c1); color: #12100c; font-size: 11px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.art .stage-pill { font-family: var(--mono); font-size: 8.5px; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); position: relative; overflow: hidden; }
.art .stage-pill .new { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(37,192,125,.15); color: var(--wa); opacity: 0; transition: opacity .4s; }
.art.flip .stage-pill .new { opacity: 1; }
/* catalog */
.art.a-catalog { width: 268px; }
.art .cat-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7px; margin-top: 4px; }
.art .cat-p { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.art .cat-p .ph { height: 56px; background: repeating-linear-gradient(45deg, rgba(255,255,255,.09) 0 5px, rgba(255,255,255,.02) 5px 10px); }
.art .cat-p .pi { padding: 5px 6px 6px; }
.art .cat-p .pn { font-size: 8.5px; font-family: var(--mono); color: var(--ink-2); letter-spacing: .02em; }
.art .cat-p .pp { font-size: 10px; font-weight: 600; margin-top: 1px; }
.art .cat-p.pick { border-color: rgba(255,122,158,.65); box-shadow: 0 0 0 1px rgba(255,122,158,.35), 0 6px 18px -8px rgba(255,122,158,.4); }
/* pay card */
.art .pay-amt { font-size: 26px; font-weight: 600; letter-spacing: -.5px; margin-top: 2px; }
.art .pay-link { margin-top: 8px; font-family: var(--mono); font-size: 10px; color: var(--ink-2); border: 1px dashed var(--line-2); border-radius: 8px; padding: 7px 9px; }
.art .paid-stamp {
  position: absolute; right: 12px; top: 12px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em;
  color: var(--wa); border: 1.5px solid var(--wa); border-radius: 8px; padding: 4px 9px; text-transform: uppercase;
  transform: rotate(8deg) scale(1.6); opacity: 0; transition: all .45s var(--ease-pop);
}
.art.flip .paid-stamp { opacity: 1; transform: rotate(-6deg) scale(1); }
/* map */
.art.a-map { width: 300px; padding: 0; overflow: hidden; }
.art.a-map .map-top { padding: 12px 14px 8px; display: flex; justify-content: space-between; align-items: center; }
.art.a-map .eta { font-family: var(--mono); font-size: 9.5px; color: var(--c3); border: 1px solid rgba(91,147,245,.4); background: rgba(91,147,245,.1); border-radius: 999px; padding: 3px 9px; position: relative; overflow: hidden; height: 22px; width: 96px; }
.art.a-map .eta span { position: absolute; inset: 0; display: grid; place-items: center; transition: all .4s var(--ease-out); }
.art.a-map .eta .e2 { transform: translateY(110%); }
.art.a-map.flip .eta .e1 { transform: translateY(-110%); }
.art.a-map.flip .eta .e2 { transform: none; }
.map-canvas { position: relative; height: 128px; background: linear-gradient(180deg, #101720, #0d1118); border-top: 1px solid var(--line); }
.map-canvas .grid-l { position: absolute; inset: 0; background-image: linear-gradient(rgba(91,147,245,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(91,147,245,.07) 1px, transparent 1px); background-size: 26px 26px; }
.map-canvas svg.route { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-canvas .city { position: absolute; font-family: var(--mono); font-size: 8px; letter-spacing: .12em; color: var(--muted); }
.truck {
  position: absolute; width: 26px; height: 16px; z-index: 3;
  offset-path: path("M 26 96 C 90 88, 130 46, 170 40 S 250 30, 276 26");
  offset-distance: var(--trip, 0%); offset-rotate: auto;
}
.truck .cab { position: absolute; right: 0; top: 2px; width: 8px; height: 9px; border-radius: 3px 4px 2px 2px; background: var(--c3); }
.truck .box { position: absolute; left: 0; top: 0; width: 17px; height: 11px; border-radius: 2.5px; background: #dfe6f2; }
.truck .w1, .truck .w2 { position: absolute; bottom: 0; width: 5px; height: 5px; border-radius: 50%; background: #2a2f3a; border: 1px solid #555c6b; }
.truck .w1 { left: 3px; } .truck .w2 { right: 1px; }
/* toast / sms */
.art.a-toast { width: 258px; }
.art .sms { font-size: 11.5px; line-height: 1.5; color: var(--ink-2); border-left: 2px solid var(--c3); padding-left: 10px; margin-top: 3px; }
/* ops row */
.art .ops-line { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10px; color: var(--ink-2); margin-top: 3px; }
.art .ops-line .ok { color: var(--wa); }
/* schedule */
.art .sch { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.art .sch .srow { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 9px; padding: 6px 9px; font-size: 11px; }
.art .sch .tm { font-family: var(--mono); font-size: 9.5px; color: var(--muted); width: 40px; flex-shrink: 0; }
.art .sch .srow.hot { border-color: rgba(47,212,167,.5); background: rgba(47,212,167,.07); }
.art .sch .srow .tag { margin-left: auto; font-family: var(--mono); font-size: 8px; letter-spacing: .08em; color: var(--c4); }
/* reschedule swap */
.art .swap { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.art .swap .slot { flex: 1; text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 4px; }
.art .swap .slot .t { font-size: 15px; font-weight: 600; }
.art .swap .slot .l { font-family: var(--mono); font-size: 8px; letter-spacing: .1em; color: var(--faint); text-transform: uppercase; margin-top: 1px; }
.art .swap .arrow { color: var(--muted); flex-shrink: 0; }
.art .swap .old { opacity: .5; }
.art .swap .old .t { text-decoration: line-through; text-decoration-color: var(--brand); }
.art .swap .new-s { border-color: rgba(47,212,167,.55); background: rgba(47,212,167,.08); }
.art .swap .new-s .t { color: var(--c4); }

/* artifact slot positions */
.art[data-slot="r1"] { right: 9vw; top: 16vh; --tilt: 2deg; }
.art[data-slot="r2"] { right: 7vw; bottom: 15vh; --tilt: -2deg; }
.art[data-slot="l1"] { left: 36vw; bottom: 12vh; --tilt: -1.5deg; }
.art[data-slot="r3"] { right: 10vw; top: 42vh; --tilt: 1.5deg; }

/* ============ FINALE ============ */
#finale { position: relative; height: 260vh; }
.finale-stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.finale-glow { position: absolute; inset: 0; background: radial-gradient(800px 540px at 50% 46%, rgba(255,90,46,.10), transparent 65%); }
.finale-inner { position: relative; text-align: center; width: min(920px, 92vw); z-index: 3; }
.finale-inner .kicker { justify-content: center; }
.finale-inner h2 { font-family: var(--serif); font-optical-sizing: auto; font-weight: 750; font-size: clamp(29px, 3.5vw, 50px); letter-spacing: -.022em; line-height: 1.04; margin-bottom: 14px; }
.finale-inner h2 .it { color: var(--brand); }
.finale-inner .fsub { color: var(--ink-2); font-size: 16px; max-width: 520px; margin: 0 auto 34px; }
.prompt-card {
  width: min(640px, 90vw); margin: 0 auto; text-align: left;
  background: #101014; border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 70px -20px rgba(255,90,46,.18);
  overflow: hidden;
}
.prompt-card .pc-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.prompt-card .pc-bar .d { width: 9px; height: 9px; border-radius: 50%; background: #2c2c34; }
.prompt-card .pc-bar .d.r { background: #e5484d55; } .prompt-card .pc-bar .d.y { background: #f2a53a55; } .prompt-card .pc-bar .d.g { background: #25c07d55; }
.prompt-card .pc-bar .pc-t { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--muted); margin-left: 4px; }
.prompt-card .pc-bar .pc-live { margin-left: auto; font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em; color: var(--wa); text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.prompt-card .pc-bar .pc-live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--wa); animation: pulse 1.6s infinite; }
.prompt-card .pc-body { padding: 18px 20px 20px; font-family: var(--mono); font-size: 12.8px; line-height: 1.75; color: var(--ink-2); min-height: 128px; }
.prompt-card .pc-body .cmt { color: var(--faint); }
.prompt-card .pc-body .hl { color: var(--brand); }
.pc-caret { display: inline-block; width: 7px; height: 15px; background: var(--brand); vertical-align: -2px; margin-left: 2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
/* four channel chips around */
.mini-net { position: absolute; inset: 0; pointer-events: none; }
.mini {
  position: absolute; display: flex; align-items: center; gap: 8px;
  background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 8px 14px 8px 9px; font-size: 12px; font-weight: 600;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(18px) scale(.9);
  transition: opacity .5s var(--ease-out), transform .55s var(--ease-pop);
}
.mini.on { opacity: 1; transform: none; }
.mini .mic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #0d0d11; flex-shrink: 0; }
.mini .mic svg { width: 13px; height: 13px; }
.mini small { display: block; font-family: var(--mono); font-size: 8.5px; font-weight: 400; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.mini[data-m="1"] { left: 7%; top: 22%; } 
.mini[data-m="2"] { right: 8%; top: 27%; }
.mini[data-m="3"] { left: 10%; bottom: 21%; }
.mini[data-m="4"] { right: 9%; bottom: 17%; }
.finale-cta { margin-top: 32px; display: flex; gap: 14px; justify-content: center; opacity: 0; transform: translateY(14px); transition: all .5s var(--ease-out); }
.finale-cta.on { opacity: 1; transform: none; }

/* ============ PROOF ============ */
#proof { position: relative; padding: 110px 0 90px; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg0), #0d0d12); }
.proof-inner { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.proof-lead { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 40px; }
.proof-lead .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wa); animation: pulse 1.8s infinite; }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pstat .v { font-family: var(--serif); font-optical-sizing: auto; font-weight: 800; font-size: clamp(40px, 4.6vw, 64px); line-height: 1; letter-spacing: -.03em; }
.pstat .v .u { color: var(--brand); }
.pstat .k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.proof-foot { margin-top: 46px; font-size: 14px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.proof-foot b { color: var(--ink); }

/* ============ PACK ============ */
#pack { position: relative; padding: 130px 0 120px; border-top: 1px solid var(--line); text-align: center; overflow: hidden; }
#pack::before { content: ""; position: absolute; inset: 0; background: radial-gradient(640px 420px at 50% 32%, rgba(255,90,46,.09), transparent 65%); pointer-events: none; }
.pack-inner { position: relative; max-width: 720px; margin: 0 auto; padding: 0 32px; }
.pack-inner .kicker { justify-content: center; }
.pack-inner h2 { font-family: var(--serif); font-optical-sizing: auto; font-weight: 750; font-size: clamp(26px, 3.2vw, 44px); letter-spacing: -.022em; line-height: 1.06; margin-bottom: 16px; }
.pack-inner h2 .hl { color: var(--brand); }
.pack-sub { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; max-width: 480px; margin: 0 auto 36px; }
.pack-avatars { display: flex; justify-content: center; align-items: center; margin-bottom: 36px; }
.pack-avatars .pa {
  width: 46px; height: 46px; margin: 0 -7px; position: relative; border-radius: 15px;
  background: var(--paper); border: 1px solid var(--line-2);
  box-shadow: 0 12px 28px -12px rgba(0,0,0,.7);
  display: grid; place-items: center;
  transition: transform .3s var(--ease-pop), border-color .3s;
}
.pack-avatars .pa svg { width: 34px; height: 34px; }
.pack-avatars .pa:nth-child(odd) { transform: rotate(-4deg); }
.pack-avatars .pa:nth-child(even) { transform: rotate(3deg) translateY(-5px); }
.pack-avatars .pa:hover { transform: translateY(-7px); border-color: rgba(255,255,255,.3); z-index: 2; }
.pack-avatars .pa.more { font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; color: var(--brand); border-style: dashed; border-color: rgba(255,90,46,.5); background: rgba(255,90,46,.06); }
.pack-cta { margin-bottom: 28px; }
.pack-meta { display: flex; justify-content: center; align-items: center; gap: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.pack-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }

/* ============ CTA ============ */
#cta { position: relative; padding: 130px 0 150px; text-align: center; overflow: hidden; }
#cta .cta-glow { position: absolute; inset: 0; background: radial-gradient(700px 460px at 50% 62%, rgba(255,90,46,.14), transparent 65%); }
.cta-inner { position: relative; max-width: 780px; margin: 0 auto; padding: 0 32px; }
.cta-inner h2 { font-family: var(--serif); font-optical-sizing: auto; font-weight: 800; font-size: clamp(34px, 4.4vw, 64px); letter-spacing: -.025em; line-height: 1.02; margin-bottom: 18px; }
.cta-inner h2 .it { color: var(--brand); }
.cta-inner p { color: var(--ink-2); font-size: 16px; max-width: 460px; margin: 0 auto 36px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============ FOOTER ============ */
footer { border-top: 1px solid var(--line); padding: 34px 0; }
.foot-inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.foot-inner .logo-text { font-size: 22px; }
.foot-links { display: flex; gap: 22px; margin-left: auto; }
.foot-links a { font-size: 13px; color: var(--muted); white-space: nowrap; }
.foot-links a:hover { color: var(--ink); }
.foot-copy { font-family: var(--mono); font-size: 10.5px; color: var(--faint); width: 100%; margin-top: 6px; }

/* linen product swatches */
.ph.cw { display: grid; place-items: center; position: relative; overflow: hidden; }
.ph.cw::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 3px), repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 1px, transparent 1px 3px); }
.ph.cw svg { position: relative; width: 62%; height: 76%; filter: drop-shadow(0 1px 1px rgba(0,0,0,.16)); }
.ph.cw-sand { background: linear-gradient(160deg, #dfc9a6, #c8b18c) !important; }
.ph.cw-ivory { background: linear-gradient(160deg, #f3ecdd, #dcd3bf) !important; }
.ph.cw-sage { background: linear-gradient(160deg, #c6d1b6, #a8b797) !important; }

/* ============ MASCOT ============ */
#alt-bot {
  position: fixed; left: 0; top: 0; z-index: 200; width: 64px; height: 72px;
  pointer-events: none; will-change: transform;
}
#alt-bot .bot-say {
  position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, 2px) scale(.85);
  background: var(--ink); color: #16161a; font-family: var(--mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: .04em; padding: 4px 9px; border-radius: 999px; white-space: nowrap;
  opacity: 0; transition: all .3s var(--ease-pop); margin-bottom: calc(6px + (var(--bots, 1) - 1) * 46px);
}
#alt-bot .bot-say::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -3px; border: 3px solid transparent; border-top-color: var(--ink); }
#alt-bot.saying .bot-say { opacity: 1; transform: translate(-50%, 0) scale(1); }
#alt-bot .zz { position: absolute; left: 72%; bottom: 92%; font-family: var(--mono); font-size: 11px; color: var(--muted); opacity: 0; }
#alt-bot[data-state="sleep"] .zz { opacity: 1; animation: zz 2.4s infinite; }
@keyframes zz { 0% { transform: translate(0,0); opacity: 0; } 30% { opacity: .9; } 100% { transform: translate(7px,-10px); opacity: 0; } }
#alt-bot svg { overflow: visible; }
#alt-bot .bot-inner { width: 100%; height: 100%; will-change: transform; }
/* parts */
.bot-arm { transition: transform .3s var(--ease-pop); }
#alt-bot[data-state="wave"] .arm-r { animation: wavearm .55s ease-in-out infinite alternate; }
@keyframes wavearm { from { transform: rotate(-70deg); } to { transform: rotate(-130deg); } }
#alt-bot[data-state="cheer"] .arm-r { transform: rotate(-150deg); }
#alt-bot[data-state="cheer"] .arm-l { transform: rotate(150deg); }
#alt-bot[data-state="cheer"] .bot-inner { animation: hop .5s var(--ease-pop) infinite alternate; }
@keyframes hop { from { transform: translateY(0); } to { transform: translateY(-7px); } }
.bot-eye-open, .bot-eye-happy, .bot-eye-sleep, .bot-mouth-smile, .bot-mouth-o, .bot-mouth-flat { transition: opacity .15s; }
.antenna-tip { transition: fill .3s; }
#alt-bot[data-state="call"] .antenna-tip, #alt-bot.busy .antenna-tip { animation: blinktip .7s infinite; }
@keyframes blinktip { 50% { fill: #fff; } }
/* costumes */
#alt-bot .costume { opacity: 0; transition: opacity .32s; }
#alt-bot .antenna { transition: opacity .32s; }
#alt-bot[data-role="agent"] .c-agent { opacity: 1; }
#alt-bot[data-role="shop"] .c-shop { opacity: 1; }
#alt-bot[data-role="driver"] .c-driver { opacity: 1; }
#alt-bot[data-role="doctor"] .c-doctor { opacity: 1; }
#alt-bot[data-role="shop"] .antenna, #alt-bot[data-role="driver"] .antenna, #alt-bot[data-role="doctor"] .antenna { opacity: 0; }
#alt-bot svg.rolepop { animation: rolepop .55s var(--ease-pop); }
@keyframes rolepop { 0% { transform: scale(1); } 35% { transform: scale(.8) rotate(-7deg); } 70% { transform: scale(1.12) rotate(3deg); } 100% { transform: scale(1); } }

/* ============ REDUCED MOTION ============ */
/* The story is scroll-driven (user-controlled), so it stays. Only
   self-playing / looping decoration is disabled. */
@media (prefers-reduced-motion: reduce) {
  .scroll-cue .wheel::after, .chat-head .st .pulse, .pv-call .cavatar::after,
  .wave i, .typing .tb i, .pc-caret, .proof-lead .dot, .prompt-card .pc-bar .pc-live::before,
  #alt-bot .zz { animation: none !important; }
  #alt-bot[data-state="wave"] .arm-r, #alt-bot[data-state="cheer"] .bot-inner, #alt-bot svg.rolepop { animation: none !important; }
  .shimmer, .hm-live .ld { animation: none !important; }
  .scene .blink, .scene .win-f, .scene .neon, .scene .trail-dash, .scene .ekg-run { animation: none !important; }
  .ambient .ab { animation: none !important; display: none; }
  #cur-ring { display: none !important; }
  .cf { display: none !important; }
}

/* ============ SEXY LAYER ============ */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg0); }
::-webkit-scrollbar-thumb { background: #26262e; border-radius: 5px; border: 2px solid var(--bg0); }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

#wake { position: fixed; inset: 0; z-index: 150; background: var(--bg0); display: grid; place-items: center; transition: opacity .65s var(--ease-out); }
#wake.off { opacity: 0; pointer-events: none; }
#wake .wake-mark { font-family: var(--serif); font-weight: 800; font-size: 25px; letter-spacing: .055em; text-transform: uppercase; color: var(--ink); transform: translateY(-86px); opacity: 0; animation: wakeIn .7s var(--ease-out) .25s forwards; }
#wake .wake-mark span { color: var(--brand); display: inline-block; transform-origin: 50% 60%; }
#wake.pop .wake-mark span { animation: dotPop .55s var(--ease-pop); }
@keyframes dotPop { 0% { transform: scale(1); } 35% { transform: scale(1.75); } 100% { transform: scale(1); } }
@keyframes wakeIn { from { opacity: 0; transform: translateY(-72px); } to { opacity: 1; transform: translateY(-86px); } }

.shimmer { background: linear-gradient(100deg, var(--brand) 46%, #ffcfb5 50%, var(--brand) 54%); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 5.5s linear infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }

.hm-live { color: var(--ink-2); }
.hm-live .ld { width: 6px; height: 6px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 9px var(--wa); animation: pulse 1.8s infinite; }

.scene-bgs { position: absolute; inset: 0; z-index: 0; pointer-events: none; will-change: transform; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: translateY(26px) scale(1.012); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.scene.on { opacity: .78; transform: none; }
.scene > svg { filter: blur(2px) saturate(.9) brightness(.88); transform: scale(1.03); }
/* scene composition layers */
.scene .atm { position: absolute; inset: 0; }
.scene > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.atm-1 { background: radial-gradient(70% 55% at 70% 82%, rgba(255,130,50,.24), transparent 66%), radial-gradient(46% 40% at 14% 16%, rgba(139,108,255,.1), transparent 64%), linear-gradient(180deg, transparent 26%, rgba(58,30,12,.6) 74%, rgba(88,42,16,.68) 100%); }
.atm-2 { background: radial-gradient(56% 48% at 74% 44%, rgba(255,150,105,.24), transparent 66%), radial-gradient(50% 45% at 14% 26%, rgba(255,140,175,.13), transparent 70%), linear-gradient(180deg, transparent 26%, rgba(70,30,22,.6) 76%, rgba(92,40,28,.66) 100%); }
.atm-3 { background: radial-gradient(64% 50% at 72% 62%, rgba(90,145,245,.22), transparent 68%), radial-gradient(44% 40% at 12% 18%, rgba(47,212,178,.09), transparent 62%), linear-gradient(180deg, transparent 22%, rgba(14,28,62,.62) 72%, rgba(18,36,80,.68) 100%); }
.atm-4 { background: radial-gradient(58% 46% at 74% 40%, rgba(47,212,167,.16), transparent 66%), radial-gradient(48% 42% at 78% 64%, rgba(255,180,110,.15), transparent 62%), linear-gradient(180deg, transparent 28%, rgba(12,44,36,.55) 78%, rgba(18,56,46,.6) 100%); }
/* scene life — paused unless the chapter is active */
.scene .blink { animation: scBlink 2.4s steps(1) infinite; }
@keyframes scBlink { 0%, 62% { opacity: .8; } 63%, 100% { opacity: .15; } }
.scene .win-f { animation: winF 5s infinite; }
@keyframes winF { 0%, 90% { opacity: 1; } 92% { opacity: .15; } 94%, 100% { opacity: 1; } }
.scene .neon { animation: neonF 7s infinite; }
@keyframes neonF { 0%, 86%, 90%, 100% { opacity: 1; } 88% { opacity: .35; } 89% { opacity: .8; } }
.scene .trail-dash { animation: trailRun 2.4s linear infinite; }
@keyframes trailRun { to { stroke-dashoffset: -400; } }
.scene .trail-dash.t2 { animation: trailRun2 3.1s linear infinite; }
@keyframes trailRun2 { to { stroke-dashoffset: 400; } }
.scene .ekg-run { animation: ekgRun 4.6s linear infinite; }
@keyframes ekgRun { to { stroke-dashoffset: -1890; } }
.scene .blink, .scene .win-f, .scene .neon, .scene .trail-dash, .scene .ekg-run { animation-play-state: paused; }
.scene.on .blink, .scene.on .win-f, .scene.on .neon, .scene.on .trail-dash, .scene.on .ekg-run { animation-play-state: running; }

.phone-wrap { perspective: 1100px; }

/* cursor ring + ambient hero bubbles */
#cur-ring { position: fixed; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.28); z-index: 300; pointer-events: none; opacity: 0; transition: opacity .4s, border-color .4s; will-change: transform; }
.ambient { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .8s; }
.ambient.on { opacity: 1; }
.ambient .ab {
  position: absolute; bottom: -60px; width: 38px; height: 25px;
  border: 1.5px solid rgba(255,255,255,.09); border-radius: 12px 12px 12px 3px;
  background:
    radial-gradient(circle 2px at 11px 12px, rgba(255,255,255,.16) 2px, transparent 2.6px),
    radial-gradient(circle 2px at 19px 12px, rgba(255,255,255,.16) 2px, transparent 2.6px),
    radial-gradient(circle 2px at 27px 12px, rgba(255,255,255,.16) 2px, transparent 2.6px);
  animation: abRise 24s linear infinite; animation-delay: var(--d, 0s);
}
.ambient .ab.ab2 { width: 28px; height: 19px; border-radius: 9px 9px 3px 9px; animation-duration: 30s; background: radial-gradient(circle 1.6px at 9px 9px, rgba(255,255,255,.14) 1.6px, transparent 2.2px), radial-gradient(circle 1.6px at 15px 9px, rgba(255,255,255,.14) 1.6px, transparent 2.2px), radial-gradient(circle 1.6px at 21px 9px, rgba(255,255,255,.14) 1.6px, transparent 2.2px); }
@keyframes abRise {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: 1; }
  85% { opacity: .6; }
  100% { transform: translateY(-108vh); opacity: 0; }
}
.ambient:not(.on) .ab { animation-play-state: paused; }

.ch-copy .kicker, .ch-copy h2, .ch-copy p { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease-out), transform .55s var(--ease-out); }
.ch-copy.on .kicker { opacity: 1; transform: none; transition-delay: .02s; }
.ch-copy.on h2 { opacity: 1; transform: none; transition-delay: .09s; }
.ch-copy.on p { opacity: 1; transform: none; transition-delay: .17s; }

.cf { position: fixed; left: 0; top: 0; width: 5px; height: 5px; border-radius: 1.5px; z-index: 210; pointer-events: none; transform: translate(var(--x), var(--y)); animation: cffly .95s var(--ease-out) forwards; }
@keyframes cffly { from { transform: translate(var(--x), var(--y)) rotate(0deg); opacity: 1; } to { transform: translate(calc(var(--x) + var(--dx)), calc(var(--y) + var(--dy))) rotate(var(--r)); opacity: 0; } }

.cta-word { font-family: var(--serif); font-optical-sizing: auto; font-weight: 800; font-size: clamp(28px, 7.2vw, 66px); line-height: .96; letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; margin: 12px 0 18px; }
.cta-word .dot-i { color: var(--brand); }

@media (max-width: 1024px) {
  .hero-meta { gap: 10px 0; }
  .hero-meta .hm { padding: 0 14px; }
  .hero-meta .hm:first-child { padding-left: 0; }
}

@media (max-width: 560px) {
  .hero-meta .hm { padding: 0 12px; font-size: 9.5px; letter-spacing: .12em; }
}

@media (max-height: 720px) {
  .hero-copy { top: 54%; }
  h1.hero-title { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 18px; }
  .hero-copy .kicker { margin-bottom: 14px; }
  .hero-sub { margin-bottom: 22px; }
  .hero-meta { margin-top: 22px; }
  .scroll-cue { display: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .phone-wrap { left: 62%; }
  .ch-copy { width: 36vw; }
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .hero-copy { left: 6vw; right: 6vw; max-width: none; top: 16vh; transform: none; }
  .hero-copy.gone { transform: translateY(-40px); }
  h1.hero-title { font-size: clamp(30px, 7.6vw, 44px); }
  .hero-sub { font-size: 15px; }
  .phone-wrap { left: 50%; top: auto; bottom: -4vh; transform: translateX(-50%) scale(calc(var(--phscale, 1) * .88)); transform-origin: bottom center; }
  .ch-copy { left: 6vw; right: 6vw; width: auto; top: 68px; transform: translateY(20px); }
  .ch-copy.on { transform: none; }
  .ch-copy h2 { font-size: 30px; }
  .ch-copy p { font-size: 13.5px; max-width: none; }
  .art { display: none; }
  .scene-bgs, .ambient { display: none; }
  .art[data-slot="r1"] { display: block; right: 4vw; top: auto; bottom: 46vh; width: 210px; padding: 11px 12px; }
  .rail { right: 12px; }
  .rail-item .lbl { display: none; }
  .mini[data-m="1"] { left: 4%; top: 13%; }
  .mini[data-m="2"] { right: 4%; top: 19%; }
  .mini[data-m="3"] { left: 6%; bottom: 26%; }
  .mini[data-m="4"] { right: 5%; bottom: 21%; }
  .proof-grid { grid-template-columns: 1fr; gap: 34px; }
  #alt-bot { transform-origin: bottom right; }
}


/* ---- perf: do not animate what nobody can see ---- */
/* The four .scene backdrops each carry `filter: blur(2px)` and contain looping
   SVG animations (blink, neon, trails, ekg). An animation inside a blurred
   element re-rasterises that blur every frame, and all four scenes were doing
   it simultaneously while three of them were off-screen and invisible.
   Pausing the ones that are not `.on` is the single biggest win on this page. */
.scene:not(.on),
.scene:not(.on) * { animation-play-state: paused !important; }

/* Same idea for the phone: chapters that have scrolled past keep their typing
   dots and pulses running behind an opacity:0 layer. */
.convo:not(.on) .typing .tb i,
.pv:not(.on) .wave i,
.pv:not(.on) .cavatar::after { animation-play-state: paused !important; }

/* `transition: all` makes the browser watch every animatable property on
   elements whose classes are toggled on scroll. These three are toggled the
   most, so name the two properties that actually move. */
.sys   { transition: grid-template-rows .4s var(--ease-out), opacity .4s var(--ease-out); }
.typing { transition: grid-template-rows .3s var(--ease-out), opacity .3s var(--ease-out); }
.tline { transition: grid-template-rows .4s var(--ease-out), opacity .4s var(--ease-out), transform .4s var(--ease-out); }

/* Respect the OS setting - the engine already checks it, the CSS did not. */
@media (prefers-reduced-motion: reduce) {
  .scene *, .shimmer, .scroll-cue .wheel::after { animation: none !important; }
}
