:root{--bg:#0b0e12;--ink:#f3f0ea;--dim:#a3abb7;--amber:#f4b45a;--accent:#f4b45a;--em:#f4b45a;--btn:#f4b45a;--btnInk:#0b0e12;--line:rgba(255,255,255,.14);
  --scrim:linear-gradient(90deg,rgba(11,14,18,.93) 0%,rgba(11,14,18,.74) 30%,rgba(11,14,18,0) 52%);
  --scrimPh:linear-gradient(0deg,rgba(11,14,18,.97) 0%,rgba(11,14,18,.93) 44%,rgba(11,14,18,0) 60%);color-scheme:dark}
body.light{--bg:#f3f0ea;--ink:#15181d;--dim:#545c68;--accent:#a8630c;--em:#b86c0e;--btn:#15181d;--btnInk:#f7f3ea;--line:rgba(21,24,29,.16);
  --scrim:linear-gradient(90deg,rgba(243,240,234,.95) 0%,rgba(243,240,234,.8) 30%,rgba(243,240,234,0) 52%);
  --scrimPh:linear-gradient(0deg,rgba(243,240,234,.98) 0%,rgba(243,240,234,.94) 44%,rgba(243,240,234,0) 60%);color-scheme:light}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:Sora,system-ui,sans-serif;-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums}
a{color:inherit;text-decoration:none}
.nav{position:fixed;top:0;left:0;right:0;z-index:20;display:flex;align-items:center;gap:32px;padding:18px clamp(20px,4vw,56px)}
.brand{display:flex;align-items:center;gap:12px}.brand img{height:40px;width:auto;filter:drop-shadow(0 0 12px rgba(244,180,90,.45))}
body.light .brand img{filter:drop-shadow(0 2px 6px rgba(0,0,0,.18))}
.brand span{display:flex;flex-direction:column;font-family:Montserrat,Sora,sans-serif;font-weight:300;line-height:1.2}
.brand b{font-weight:400;letter-spacing:.38em;font-size:15px}.brand i{font-style:normal;letter-spacing:.26em;font-size:9px;color:var(--accent)}
.links{display:flex;gap:28px;margin-left:auto;font-size:14.5px;color:var(--dim)}
.btn{display:inline-flex;align-items:center;justify-content:center;background:var(--btn);color:var(--btnInk);font-weight:600;font-size:15.5px;padding:14px 24px;border-radius:12px;box-shadow:0 10px 30px -12px rgba(244,180,90,.6);transition:transform .25s,box-shadow .25s}
body.light .btn{box-shadow:0 10px 26px -14px rgba(21,24,29,.6)}
.btn:hover{transform:translateY(-2px)}
.btn.sm{padding:10px 18px;font-size:14px}.btn.ghost{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.story{height:520vh;position:relative}
.stage{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden}
.stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.scrim{position:absolute;inset:0;background:var(--scrim);pointer-events:none}
.copy{position:absolute;left:clamp(24px,5vw,88px);top:0;bottom:0;width:min(500px,34vw)}
.beat{position:absolute;left:0;right:0;top:50%;transform:translateY(-44%);opacity:0;transition:opacity .6s ease,transform .9s cubic-bezier(.16,1,.3,1);pointer-events:none}
.beat.on{opacity:1;transform:translateY(-50%);pointer-events:auto;transition-delay:.12s}
.tag{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--accent);margin-bottom:22px}
.tag::before{content:'';width:22px;height:10px;flex:none;background:repeating-linear-gradient(90deg,currentColor 0 1.5px,transparent 1.5px 5px);opacity:.9;border-bottom:1.5px solid currentColor}
h1,h2{font-family:'Archivo Black',Sora,sans-serif;font-weight:400;font-size:clamp(36px,3.6vw,58px);line-height:1.04;letter-spacing:-.03em;margin:0 0 24px;text-wrap:balance}
h1 em,h2 em{font-style:normal;color:var(--em)}
.beat p{font-size:17.5px;line-height:1.62;color:var(--dim);max-width:44ch;margin:0}
.ctas{display:flex;gap:12px;flex-wrap:wrap;margin-top:32px}
.own{margin-top:22px;font-size:13.5px;color:var(--dim);opacity:.85}
.hint{position:absolute;left:50%;bottom:26px;transform:translateX(-50%);font-size:11px;letter-spacing:.24em;text-transform:uppercase;color:var(--dim);display:flex;flex-direction:column;align-items:center;gap:10px;transition:opacity .5s}
.hint span{width:1px;height:38px;background:linear-gradient(var(--accent),transparent);animation:drop 1.8s ease-in-out infinite}
@keyframes drop{0%{transform:scaleY(0);transform-origin:top}50%{transform:scaleY(1);transform-origin:top}51%{transform-origin:bottom}100%{transform:scaleY(0);transform-origin:bottom}}
.rail{position:absolute;right:clamp(18px,3vw,40px);top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:12px}
.rail i{width:3px;height:26px;border-radius:3px;background:var(--line);transition:background .4s,height .4s}.rail i.on{background:var(--accent);height:42px}
.after{min-height:86vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:120px 24px;position:relative;background:radial-gradient(60% 50% at 50% 40%,rgba(244,180,90,.12),transparent 70%),var(--bg)}
.after .tag{justify-content:center}
.after p{color:var(--dim);font-size:18px;line-height:1.6;max-width:46ch;margin:0 0 32px}
.note{margin-top:64px;font-size:12.5px;color:var(--dim);opacity:.75;max-width:60ch}
.chip{position:fixed;right:18px;bottom:18px;z-index:30;display:flex;align-items:center;gap:2px;padding:4px;border-radius:999px;background:rgba(11,14,18,.84);color:#f3f0ea;backdrop-filter:blur(12px);box-shadow:0 0 0 1px rgba(255,255,255,.14);font-size:13px}
.chip a{padding:8px 12px;border-radius:999px}.chip .nm{font-weight:600}
@media (max-width:760px){
  .links{display:none}.nav{gap:12px;padding:14px 16px}.brand img{height:30px}.brand b{font-size:13px;letter-spacing:.3em}.brand i{font-size:8px;letter-spacing:.2em}.nav .btn.sm{display:none}
  .scrim{background:var(--scrimPh)}
  .copy{left:20px;right:20px;width:auto;top:auto;bottom:0;height:54%}
  .beat{top:auto;bottom:34px;transform:translateY(14px)}.beat.on{transform:none}
  h1,h2{font-size:clamp(29px,8vw,38px);margin-bottom:14px}.tag{margin-bottom:12px;font-size:10.5px;letter-spacing:.14em}
  .beat p{font-size:15px;line-height:1.55}.ctas{margin-top:20px}.ctas .btn{padding:13px 18px;font-size:14.5px}.ctas .btn.ghost{display:none}.own{display:none}
  .rail{display:none}.hint{display:none}
  .chip{top:62px;bottom:auto;right:12px;font-size:12px}
}
@media (prefers-reduced-motion:reduce){.beat,.btn{transition:none}.hint span{animation:none}}

/* one world: a taller story, and the dark dip between acts */
.story{height:1150vh}
.veil{position:absolute;inset:0;background:var(--bg);opacity:0;pointer-events:none}
@media (max-width:760px){.story{height:880vh}}

/* phones: a scroll pill above the words (the rail is hidden here) */
@media (max-width:760px){
  .hint{display:flex!important;top:auto;bottom:calc(46% + 8px);left:50%;padding:10px 16px;border-radius:999px;background:rgba(244,180,90,.95);box-shadow:0 10px 30px -12px rgba(0,0,0,.6);color:#0b0e12;font-weight:600;font-size:11px;letter-spacing:.16em;flex-direction:row;gap:8px;white-space:nowrap;animation:hb 1.6s ease-in-out infinite;transition:opacity .5s}
  .hint span{width:9px;height:9px;border-right:2px solid #0b0e12;border-bottom:2px solid #0b0e12;background:none;transform:rotate(45deg);animation:none;margin-top:-4px}
  @keyframes hb{50%{transform:translate(-50%,6px)}}
}
.hint{transition:opacity .5s}

/* ---- the quote card: one crisp HTML card, lines landing as the parts go in ---- */
.ledger{position:absolute;right:clamp(20px,4vw,64px);top:50%;transform:translateY(-50%);width:340px;padding:22px 22px 18px;border-radius:18px;
  background:linear-gradient(180deg,rgba(26,30,38,.9),rgba(15,18,23,.92));box-shadow:0 0 0 1px rgba(244,180,90,.18),0 30px 80px -30px rgba(0,0,0,.9),inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);opacity:0;pointer-events:none;font-variant-numeric:tabular-nums;z-index:3}
.lg-h{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding-bottom:14px;margin-bottom:6px;border-bottom:1px solid rgba(255,255,255,.08)}
.lg-h b{display:block;font-family:"Archivo Black",Sora,sans-serif;font-weight:400;font-size:21px;letter-spacing:-.01em;color:var(--ink)}
.lg-h span{display:block;margin-top:4px;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--dim)}
.lg-h em{font-style:normal;font-size:10.5px;font-weight:700;letter-spacing:.16em;color:#0b0e12;background:var(--amber);padding:4px 8px;border-radius:6px}
.lg-rows{list-style:none;margin:0;padding:0}
.lg-rows li{--k:0;display:flex;justify-content:space-between;gap:14px;padding:10px 10px;margin:0 -10px;border-radius:9px;font-size:14px;color:var(--ink);
  opacity:calc(.12 + var(--k) * .88);transform:translateX(calc((1 - var(--k)) * 10px));transition:background .35s,box-shadow .35s}
.lg-rows li span{color:#cfd4db}.lg-rows li b{font-weight:600;color:var(--ink);opacity:var(--k)}
.lg-rows li.on{background:rgba(244,180,90,.1);box-shadow:inset 2px 0 0 var(--amber)}.lg-rows li.on span{color:var(--ink)}.lg-rows li.on b{color:var(--amber)}
.lg-tot{display:flex;justify-content:space-between;align-items:baseline;margin-top:10px;padding-top:14px;border-top:2px solid rgba(243,240,234,.85)}
.lg-tot span{font-size:12px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--dim)}
.lg-tot b{font-family:"Archivo Black",Sora,sans-serif;font-weight:400;font-size:30px;letter-spacing:-.01em;color:var(--ink);transition:color .6s,text-shadow .6s}
.ledger.done .lg-tot b{color:var(--amber);text-shadow:0 0 24px rgba(244,180,90,.45)}
.lg-f{display:flex;align-items:center;gap:10px;margin-top:12px;font-size:11.5px;color:var(--dim)}
.lg-f i{flex:none;width:34px;height:8px;background:repeating-linear-gradient(90deg,var(--amber) 0 1px,transparent 1px 5px);opacity:.7}
.lead{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;opacity:0;z-index:2;overflow:visible}
.lead .lp{fill:none;stroke:var(--amber);stroke-width:1.4;stroke-linejoin:round;filter:drop-shadow(0 0 4px rgba(244,180,90,.6))}
.lead .ld{fill:var(--amber);filter:drop-shadow(0 0 6px rgba(244,180,90,.9))}
.lead .lr{fill:none;stroke:var(--amber);stroke-width:1.2;opacity:0;transform-box:fill-box;transform-origin:center}
.lead.hit .lr{animation:ring 1.6s ease-out infinite}
@keyframes ring{0%{opacity:.9;transform:scale(.4)}100%{opacity:0;transform:scale(1.6)}}
@media (max-width:1100px) and (min-width:761px){.ledger{width:290px;padding:18px}.lg-rows li{font-size:13px}}
/* phones: a compact card at the top of the scene */
@media (max-width:760px){
  .ledger{top:calc(64px + env(safe-area-inset-top,0px));right:12px;left:12px;width:auto;transform:none;padding:12px 14px 10px;border-radius:14px}
  .lg-h{padding-bottom:8px;margin-bottom:2px}.lg-h b{font-size:16px}.lg-h span{font-size:10px;margin-top:2px}.lg-h em{font-size:9px;padding:3px 6px}
  .lg-rows li{font-size:11.5px;padding:3px 8px;margin:0 -8px}
  .lg-tot{margin-top:6px;padding-top:7px}.lg-tot b{font-size:19px}.lg-tot span{font-size:10px}.lg-f{display:none}
}

/* phones, pass 2: the card is one compact strip (title, the line being priced, the running total) so the scene stays visible */
@media (max-width:760px){
  .ledger{display:grid;grid-template-columns:1fr auto;grid-template-areas:"h t" "r r";column-gap:12px;row-gap:6px;padding:10px 12px 9px}
  .lg-h{grid-area:h;border:0;padding:0;margin:0;align-items:center}.lg-h em{display:none}
  .lg-tot{grid-area:t;border:0;margin:0;padding:0;align-self:center;gap:8px}.lg-tot span{display:none}
  .lg-rows{grid-area:r;min-height:22px;border-top:1px solid rgba(255,255,255,.08);padding-top:6px}
  .lg-rows li{display:none}.lg-rows li.on{display:flex;padding:3px 8px}
  .ledger.done .lg-rows{display:none}
}

/* the nav keeps a soft backing so it never sits bare over the sections below */
.nav{background:linear-gradient(180deg,rgba(11,14,18,.88),rgba(11,14,18,.55) 70%,rgba(11,14,18,0));backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}

/* the price-book card: each rate with where it came from */
.lg-rows li small{display:block;margin-top:3px;font-size:11px;letter-spacing:.02em;color:var(--dim);opacity:var(--k)}
.ledger.book .lg-rows li{align-items:flex-start;padding:8px 10px}
.ledger.book .lg-rows li b{white-space:nowrap}
.ledger.book.done .lg-tot b{color:var(--amber)}
@media (max-width:760px){.ledger.book .lg-rows li small{display:inline;margin:0 0 0 6px}}

/* phones, design pass: tighter words at the bottom so the scene breathes */
@media (max-width:760px){
  .beat{bottom:calc(18px + env(safe-area-inset-bottom,0px))}
  h1,h2{font-size:clamp(24px,6.6vw,29px);line-height:1.08;margin-bottom:9px}.tag{margin-bottom:8px;font-size:10px}
  .beat p{font-size:13.5px;line-height:1.5;display:block}
  .ctas{margin-top:12px}.ctas .btn{padding:11px 16px;font-size:13.5px}
}

/* QA 09-30: full sentences on phones (the clamp cut words mid-way); the scroll pill sits under the nav, clear of the words */
@media (max-width:760px){
  .beat p{font-size:13px;line-height:1.45}
  .hint{top:calc(64px + env(safe-area-inset-top,0px))!important;bottom:auto!important}
}
@media (max-width:760px) and (max-height:700px){ .beat p{font-size:12.5px;line-height:1.4} h1,h2{font-size:clamp(22px,6.2vw,26px)} }

/* phones, composition pass (10-02): the build and the quote never overlap. The words stay at the bottom; the quote is its
   own card directly above them (shell.js sets --card-b from the chapter's words); the 3D frames itself into the band
   between the nav and the card. The card shows a running window of lines (world.js sets --off) and the total. */
@media (max-width:760px){
  .ledger{top:auto!important;bottom:var(--card-b,46%);left:12px;right:12px;width:auto;transform:none;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"h t" "r r";column-gap:12px;row-gap:0;padding:11px 14px 9px;border-radius:14px}
  .lg-h{grid-area:h;border:0;padding:0 0 9px;margin:0;align-items:center;min-width:0}.lg-h em{display:none}
  .lg-h b{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lg-h span{font-size:10px;margin-top:2px}
  .lg-tot{grid-area:t;border:0;margin:0;padding:0 0 9px;align-self:center;display:flex;flex-direction:column;align-items:flex-end;gap:3px}
  .lg-tot span{display:block;font-size:9px;letter-spacing:.14em}.lg-tot b{font-size:21px;line-height:1}
  .lg-rows{grid-area:r;--row:24px;display:block;height:calc(var(--rows,3) * var(--row));overflow:hidden;border-top:1px solid rgba(255,255,255,.1);padding:0;margin:0}
  .ledger.done .lg-rows{display:block}
  .lg-rows li,.lg-rows li.on{display:flex;align-items:center;gap:12px;height:var(--row);margin:0;padding:0 8px;font-size:13px;white-space:nowrap;
    position:relative;top:calc(var(--off,0) * var(--row) * -1);transition:top .45s cubic-bezier(.2,.7,.2,1),background .35s,box-shadow .35s}
  .lg-rows li span{min-width:0;overflow:hidden;text-overflow:ellipsis}.lg-rows li b{flex:none}
  .ledger.book .lg-rows li{align-items:center;padding:0 8px}.ledger.book .lg-rows li small{display:none}
  .scrim{background:linear-gradient(0deg,rgba(11,14,18,.97) 0,rgba(11,14,18,.93) calc(var(--scrim-h,46%) - 8px),rgba(11,14,18,0) calc(var(--scrim-h,46%) + 36px))}
}
@media (max-width:760px) and (max-height:620px){.lg-rows{--rows:2}}

/* phones, composition pass (10-02): the scroll pill sits at the foot of the 3D band, just above the words (shell.js sets
   --hint-b), never on the copy and never under the nav */
@media (max-width:760px){.hint{top:auto!important;bottom:var(--hint-b,46%)!important}}
