/* Basepoint Works · services.css — What we build. Page-only styles on top of css/site.css (shared tokens, buttons,
   header/menu/footer, the cube, .title*, .feat*, .mq, .job, .cta__*). Base rules = the static page (no JS, Motion off);
   entrance/hidden states live under .eng only. The AI receptionist demo (#inst) is ported from v3 home.css and
   restyled to the v4 look: ink glass panel, amber accents, 28px corners, no backdrop-filter. */

/* ---------- 00 opener ---------- */
.sv-top .stage{isolation:isolate}
.sv-top__glow{position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(48% 52% at 74% 46%,rgba(242,169,59,.11),rgba(242,169,59,0) 70%),
    linear-gradient(var(--hair) 1px,transparent 1px) 0 0/clamp(80px,9vw,128px) clamp(80px,9vw,128px),
    linear-gradient(90deg,var(--hair) 1px,transparent 1px) 0 0/clamp(80px,9vw,128px) clamp(80px,9vw,128px);
  -webkit-mask-image:radial-gradient(70% 70% at 70% 45%,#000 10%,transparent 78%);mask-image:radial-gradient(70% 70% at 70% 45%,#000 10%,transparent 78%);opacity:.75}
.sv-ctas{display:flex;flex-wrap:wrap;gap:10px}
.sv-top__price{font-size:clamp(15px,1.15vw,17px);line-height:1.4;color:var(--body)}
.sv-top__price b{font-weight:500;color:var(--paper)}
/* the price line can sit over the light fibres: a soft ink halo keeps it crisp (as the home product card labels) */
.sv-top__price,.sv-top__hud{text-shadow:0 0 14px var(--ink-0),0 0 5px var(--ink-0),0 0 2px var(--ink-0)}
/* a quiet HUD line under the header: section index, a hairline, the datum */
.sv-top__hud{display:none}
@media (min-width:768px){
  .sv-top__hud{position:absolute;left:var(--gut);right:var(--gut);top:calc(var(--hdr-h) + clamp(16px,3vh,28px));z-index:1;display:flex;align-items:center;gap:14px;color:var(--mist);pointer-events:none}
  .sv-top__hud::before{content:"";order:1;flex:1 1 auto;height:1px;background:linear-gradient(90deg,var(--hair-2),var(--hair) 60%,rgba(244,241,234,.03))}
  .sv-top__hud span:last-child{order:2}
  .sv-top__hud span:first-child::before{content:"";display:inline-block;width:5px;height:5px;margin:0 10px 1px 0;border:1px solid var(--amber);vertical-align:middle}
  .sv-top__hud{transition:opacity .9s var(--ease) .5s}
  .eng.is-loading .sv-top__hud{opacity:0}
}
/* motion off / no JS: the travelling cube does not run, so the opener holds a still of it */
.sv-top__cube{display:none}
html:not(.eng) .sv-top__cube{display:block;position:absolute;z-index:0;pointer-events:none;right:6vw;top:48%;width:min(30vw,58vh);height:auto;transform:translateY(-50%);
  -webkit-mask-image:radial-gradient(closest-side,#000 72%,transparent 99%);mask-image:radial-gradient(closest-side,#000 72%,transparent 99%)}
@media (min-width:1024px){.sv-top .title__row{max-width:calc(100% - 120px)}}
/* short laptops (1280x720): the Scroll cue would share the price line's row; the page is already full there */
@media (min-width:1024px) and (max-height:760px){.sv-top .title__cue{display:none}}
/* round 4: the kicker is plain mono text with the amber square, as on every other opener (the bordered pill read as
   a button) */
@media (max-width:767px){
  html:not(.eng) .sv-top__cube{right:auto;left:50%;top:calc(var(--hdr-h) + 2svh);width:min(62vw,40svh);transform:translateX(-50%)}
  .sv-ctas{width:100%}
  .sv-ctas .btn{flex:1 1 auto}
  .sv-top .title__h{font-size:clamp(50px,15vw,72px)}
  .sv-top__glow{background:radial-gradient(70% 40% at 50% 26%,rgba(242,169,59,.12),rgba(242,169,59,0) 70%)}
}
/* the services line: each item stays whole (never "AI / receptionist"); phones read it at 12px on two lines */
.sv-ks{min-width:0}
.sv-ks .k{white-space:nowrap}
@media (max-width:767px){
  .sv-top .title__kicker{align-items:flex-start;font-size:12px;letter-spacing:.08em;line-height:1.5;color:var(--paper)}
  .sv-top .title__kicker::before{margin-top:.42em}
}
@media (max-width:767px) and (max-height:700px){.sv-top__price{display:none}.sv-top .title__lede{margin-top:12px}.sv-top .title__row{margin-top:16px}}

/* ---------- 01 what we build: head + jump index ---------- */
.sv-build__head{padding:clamp(80px,14vh,170px) var(--gut) 0;max-width:calc(var(--max) + 2 * var(--gut));margin:0 auto}
/* motion on: the opener's copy fades out inside its pin, so the chapter head follows closely (no empty screen) */
.eng .sv-build{position:relative;z-index:2;margin-top:-30vh}
/* the head covers the faded opener copy it slides over (the top 30vh), then turns clear again so the light fibres
   show behind the jump index */
.eng .sv-build__head{padding-top:clamp(48px,9vh,96px);background:linear-gradient(rgba(20,22,24,0),var(--ink-0) clamp(48px,9vh,96px),var(--ink-0) calc(30vh + 40px),rgba(20,22,24,0) calc(30vh + 220px))}
@media (max-width:767px){.eng .sv-build{margin-top:-20vh}}
/* desktop (>=1024): behind the see-through header the opener's copy fades out inside its pin and lifts faster than the
   page, so the chapter head can follow much closer (no empty half screen after the opener) and needs no ink cover: the
   light keeps flowing behind it instead of ending on a hard edge */
@media (min-width:1024px){
  .eng .sv-build{margin-top:-38vh} /* round 4: -45vh landed the "01 / What we build" label on the fading CTAs */
  .eng .sv-build__head{background:none}
}
/* the pulled-up chapter block overlaps the bottom of the opener (desktop -45vh): its head is see-through there, so it
   must not swallow the opener's CTA clicks; only the jump links and the chapters themselves take pointer events
   (main session fix, r4) */
.eng .sv-build{pointer-events:none}
.eng .sv-build > :not(.sv-build__head),.eng .sv-build__head :is(a,button,[tabindex]){pointer-events:auto}
/* one type scale with the home: the same head is the same size on both pages (site.css tokens) */
.sv-build__head h2{font-size:var(--fs-h2);line-height:1;letter-spacing:-.035em;max-width:14ch}
.sv-index{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:clamp(28px,5vh,56px);border-top:1px solid var(--hair)}
@media (min-width:900px){.sv-index{grid-template-columns:repeat(4,minmax(0,1fr))}}
.sv-index a{display:flex;align-items:center;gap:14px;min-height:64px;padding:14px 16px 14px 0;border-bottom:1px solid var(--hair);font-size:clamp(16px,1.5vw,21px);color:var(--paper);letter-spacing:-.01em;transition:color .25s var(--ease)}
/* each number sits in a small dark app chip (Relay: the connected-apps row) */
.sv-index a .mono{display:inline-grid;place-items:center;flex:none;min-width:34px;height:34px;padding:0 6px;border:1px solid var(--hair-2);border-radius:9px;background:#16181b;color:var(--amber);letter-spacing:.06em;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);transition:border-color .25s var(--ease),box-shadow .25s var(--ease)}
@media (hover:hover){.sv-index a:hover{color:var(--amber-hi)}.sv-index a:hover .mono{border-color:var(--amber);box-shadow:0 0 18px -6px rgba(242,169,59,.7)}}
.sv-alias{display:block;height:0}

/* ---------- 01 the four chapters (shared .feat; page polish) ---------- */
.sv-feat .feat__media{border:1px solid var(--hair);box-shadow:0 50px 110px -60px rgba(0,0,0,.95)}
/* a lit top edge on every frame, like the product cards */
.sv-feat .feat__media::after{content:"";position:absolute;left:14%;right:14%;top:0;height:1px;z-index:1;pointer-events:none;background:linear-gradient(90deg,rgba(242,169,59,0),rgba(242,169,59,.8),rgba(242,169,59,0))}
/* the ads loop is square: keep the reticle and the cube in the 5:4 frame */
.sv-feat__vid--ads .vid{object-position:50% 46%}
.sv-feat__tag{position:absolute;left:24px;top:24px;z-index:1;display:flex;align-items:center;gap:8px;padding:7px 12px 7px 10px;border-radius:999px;background:rgba(20,22,24,.78);border:1px solid var(--hair-2);color:var(--paper)}
.sv-feat__tag::before{content:"";width:6px;height:6px;background:var(--amber);box-shadow:0 0 10px rgba(242,169,59,.8)}
.feat__copy h3{font-size:var(--fs-h2);line-height:1;letter-spacing:-.03em;margin:14px 0 18px}
.feat__price .mono{color:var(--mist)}
.sv-feat__link{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-size:15px;font-weight:500}
@media (min-width:768px){.sv-feat__link{margin-left:auto}}
@media (max-width:1023px){.sv-feat{padding-block:clamp(48px,8vh,90px)}}
@media (max-width:767px){.sv-feat .feat__ctas .btn{flex:1 1 auto;white-space:normal;text-align:center;padding-block:12px}}

/* ---------- the amber moment: one full-bleed panel (shared .amb + the amber scene), a line in dark ink, then who we
   work with travelling across ---------- */
.sv-amb .amb{padding-top:clamp(84px,15vh,170px);padding-bottom:clamp(64px,11vh,130px)}
.amb__h{max-width:calc(14em + 2 * var(--gut));margin:0 auto clamp(52px,10vh,120px);padding:0 var(--gut);text-align:center;color:var(--on-amber);
  font-size:var(--fs-display);line-height:1;letter-spacing:-.045em}
.amb__h em{color:var(--on-amber)}
.amb__h .w{display:inline-block;overflow:hidden;overflow:clip;vertical-align:top;padding:0 .04em .12em;margin:0 -.04em -.12em}
.amb__h .w>span{display:inline-block}
/* motion on: each word rises out of its own line as the panel arrives (one transform per word, once) */
.eng .amb__h .w>span{transform:translate3d(0,110%,0);transition:transform 1.1s var(--ease) calc(.12s + var(--i) * 55ms)}
.eng .amb__h.is-in .w>span{transform:none}
.amb__br{display:none}
@media (min-width:900px){.amb__br{display:block}}
.sv-amb .mq{font-size:clamp(36px,6vw,104px);margin-bottom:0}
html:not(.eng) .sv-amb .mq{padding:0 var(--gut);font-size:clamp(28px,4.4vw,64px);max-width:calc(var(--max) + 2 * var(--gut));margin:0 auto}
/* each label carries its own separator, so a wrapped static row never starts a line with a lone square
   (a <b>, not a <span>: site.css hides .mq__row span+span with motion off) */
.mq__it{display:inline-flex;align-items:center;max-width:100%;font-weight:inherit}
@media (max-width:767px){
  .sv-amb .amb{padding-top:clamp(64px,11vh,96px);padding-bottom:clamp(52px,9vh,80px)}
  html:not(.eng) .sv-amb .mq__row--out span{flex-direction:column;align-items:flex-start}
  html:not(.eng) .sv-amb .mq__row--out i{display:none}
  html:not(.eng) .sv-amb .mq{font-size:24px;letter-spacing:-.02em}
}

/* ---------- 03 work ---------- */
/* the home page pulls its work section up over the card burst (site.css .eng .sc--work); here it follows the marquee,
   so it keeps its own top spacing and never slides under the marquee rows */
.eng .sv-work{margin-top:0;padding-top:clamp(56px,10vh,130px)}
/* 'Built for businesses.' is the same display moment as the home burst headline */
.sv-work .work__head h2{font-size:var(--fs-display);line-height:.98;letter-spacing:-.04em}
/* the closing call to action follows the work closely (it sat ~200px below the captions) */
.sv-work + .sc--cta{padding-top:clamp(48px,8vh,96px)}
/* no badge over the client screenshot: the caption below names the client, so nothing covers its text */

/* ---------- small buttons + chips (demo controls; 44px targets) ---------- */
.btn--sm{min-height:44px;padding:0 18px;font-size:14.5px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px;border:1px solid var(--hair-2);border-radius:999px;background:rgba(20,22,24,.55);color:var(--paper);font-size:14px;font-weight:500;line-height:1.1;cursor:pointer;
  transition:background-color .25s var(--ease),border-color .25s var(--ease),color .25s var(--ease),transform .4s var(--ease)}
.chip:hover,.chip:focus-visible{border-color:var(--amber);color:var(--amber-hi)}
.chip:active{transform:scale(.97)}
/* mouse only, Motion on: chips lift a pixel (the shared buttons sweep; chips stay quiet) */
@media (hover:hover) and (pointer:fine){.eng .chip:hover{transform:translate3d(0,-1px,0)}.eng .chip:active{transform:scale(.97)}}
/* the demo waits on a reply: a soft amber ring runs across the chips (transform/opacity only; none with motion off) */
.inst__chips .chip{position:relative}
.inst__chips .chip::after{content:"";position:absolute;inset:-1px;border-radius:inherit;border:1px solid var(--amber);opacity:0;pointer-events:none}
.eng .inst__chips:not([hidden]) .chip::after{animation:sv-chipcue 2.6s var(--ease) .6s infinite}
.eng .inst__chips .chip:nth-child(2)::after{animation-delay:.78s}
.eng .inst__chips .chip:nth-child(3)::after{animation-delay:.96s}
@keyframes sv-chipcue{0%{opacity:0;transform:none}18%{opacity:.75}70%,100%{opacity:0;transform:scale(1.08,1.3)}}
/* the autoplayed demo answers for a passive visitor: the chosen chip lights up first */
.chip.is-auto{border-color:var(--amber);background:var(--amber);color:var(--on-amber);transform:scale(.97)}

/* ---------- 02 the AI receptionist demo (ported from v3 home.css; v4 look) ---------- */
.sv-demo{position:relative;padding:clamp(80px,13vh,160px) var(--gut);max-width:calc(var(--max) + 2 * var(--gut));margin:0 auto}
.demo{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(36px,6vh,56px)}
.demo__head h2{font-size:var(--fs-h2);line-height:1;letter-spacing:-.035em}
.demo__lede{margin-top:clamp(16px,2.6vh,24px);max-width:48ch;font-size:clamp(16px,1.3vw,19px);color:var(--body)}
.steps{margin-top:clamp(26px,4vh,36px);border-left:1px solid var(--hair-2)}
.steps__item{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr);align-items:baseline;padding:12px 0 12px 20px;color:var(--mist);transition:color .4s var(--ease)}
/* the rail fills amber as the call moves down the steps (transform only) */
.steps__item::after{content:"";position:absolute;left:-1px;top:0;bottom:0;width:1px;background:var(--amber);transform:scaleY(0);transform-origin:50% 0;transition:transform .6s var(--ease)}
.steps__item.is-active::after{transform:scaleY(.5)}
.steps__item.is-done::after{transform:none}
html.still .steps__item::after{transition:none}
.steps__sq{position:absolute;z-index:1;left:-4px;top:20px;width:7px;height:7px;background:var(--line);transition:background-color .4s var(--ease),box-shadow .4s var(--ease),transform .4s var(--ease)}
.steps__idx{color:inherit}
.steps__txt{font-size:clamp(15.5px,1.2vw,17px);line-height:1.5}
.steps__item.is-done .steps__sq{background:var(--mist)}
.steps__item.is-active{color:var(--paper)}
.steps__item.is-active .steps__sq{background:var(--amber);box-shadow:0 0 14px var(--amber);transform:scale(1.3)}
.steps__item.is-active .steps__idx{color:var(--amber)}
.sv-demo .howrun{margin-top:clamp(30px,5vh,44px)}
.howrun__lbl{margin-bottom:12px;color:var(--amber)}
.howrun__list{border-top:1px solid var(--hair)}
.sv-demo .howrun__item{padding:16px 0;border-bottom:1px solid var(--hair)}
.howrun__h{display:flex;align-items:center;gap:10px;font-size:17px;font-weight:500;letter-spacing:-.01em;line-height:1.3}
.howrun__h::before{content:"";flex:none;width:6px;height:6px;border:1px solid var(--amber)}
.howrun__p{margin-top:4px;padding-left:16px;font-size:15px;color:var(--body)}
.demo__ctas{display:flex;flex-wrap:wrap;gap:10px;margin-top:clamp(28px,4vh,36px)}
/* below 1024px the instrument comes straight after the steps (copy, steps, demo, how we run it, CTAs) */
@media (max-width:1023px){
  .demo{gap:0}
  .demo__copy{display:contents}
  .demo__head{order:1}.steps{order:2}.demo__side{order:3;margin-top:clamp(32px,5vh,48px)}.sv-demo .howrun{order:4}.demo__ctas{order:5}
}
@media (max-width:767px){.demo__ctas .btn{flex:1 1 auto;white-space:normal;text-align:center;padding-block:12px}}
/* phones: the demo itself comes first, straight under its label (label, instrument, then the headline, lede, steps, how
   we run it, CTAs), so a 'Live demo' landing shows the whole instrument, status bar to reply chips, and a visitor
   scrolling down meets the working product before the explanation. DOM (reading) order is unchanged. */
@media (max-width:767px){
  .demo__head{display:contents}
  .demo__head .eyebrow{order:1;margin-bottom:0}
  .demo__side{order:2;margin-top:14px}
  .demo__head h2{order:3;margin-top:clamp(40px,7vh,60px)}
  .demo__lede{order:4}
  .steps{order:5}
  .sv-demo .howrun{order:6}
  .demo__ctas{order:7}
}

/* the instrument: a dark glass product card like the home receptionist card (no backdrop-filter): a status bar with a
   live chip and a progress rule, a dot-grid line field, node-card bubbles, an amber glow behind it */
.demo__side{position:relative}
.demo__side::before{content:"";position:absolute;left:-8%;right:-8%;top:6%;bottom:6%;z-index:-1;pointer-events:none;background:radial-gradient(50% 50% at 50% 50%,rgba(242,169,59,.16),rgba(242,169,59,0) 70%)}
.inst{--pt:18px;--px:16px;position:relative;display:flex;flex-direction:column;padding:var(--pt) var(--px);border:1px solid rgba(244,241,234,.12);border-radius:22px;
  background:linear-gradient(180deg,rgba(31,34,38,.95),rgba(17,19,21,.96));
  box-shadow:0 60px 120px -50px rgba(0,0,0,.95),0 0 0 1px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.06)}
.inst::before{content:"";position:absolute;left:14%;right:14%;top:-1px;height:1px;pointer-events:none;background:linear-gradient(90deg,rgba(242,169,59,0),rgba(242,169,59,.8),rgba(242,169,59,0))}
.inst:focus-visible{outline-offset:4px;border-radius:22px}
.inst__head{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:calc(-1 * var(--pt)) calc(-1 * var(--px)) 0;padding:12px var(--px);border-bottom:1px solid var(--hair)}
/* progress: an amber rule along the bar fills step by step with the call (transform only; instant with Motion off) */
.inst__head::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:linear-gradient(90deg,var(--amber),var(--amber-hi));transform:scaleX(0);transform-origin:0 50%;transition:transform .8s var(--ease)}
.inst[data-state="ringing"] .inst__head::after{transform:scaleX(.12)}
.inst:is([data-state="answered"],[data-state="missed"]) .inst__head::after{transform:scaleX(.28)}
.inst[data-state="sent"] .inst__head::after{transform:scaleX(.36)}
.inst[data-state="waiting"] .inst__head::after{transform:scaleX(.44)}
.inst[data-state="reply"] .inst__head::after{transform:scaleX(.55)}
.inst[data-state="offer"] .inst__head::after{transform:scaleX(.66)}
.inst[data-state="pick"] .inst__head::after{transform:scaleX(.76)}
.inst[data-state="booked"] .inst__head::after{transform:scaleX(.9)}
.inst[data-state="handoff"] .inst__head::after{transform:none}
html.still .inst__head::after{transition:none}
.inst__lbl{min-width:0;overflow:hidden;font-size:11px;white-space:nowrap;text-overflow:ellipsis;color:var(--paper)}
.inst__lbl::before{content:"";display:inline-block;width:8px;height:8px;margin:0 10px 1px 0;vertical-align:middle;background:var(--amber);box-shadow:0 0 12px rgba(242,169,59,.75)}
/* the status chip keeps one width through every state, sized in CSS to its longest label ('Handed to you', 13 mono
   characters): no script measures it, so fonts arriving or a page landing never make it snap wider */
.inst__chip{--ls:.14em;--cg:7px;--cp:10px;flex:none;display:inline-flex;align-items:center;justify-content:center;gap:var(--cg);padding:5px var(--cp);letter-spacing:var(--ls);min-width:calc(13 * (1ch + var(--ls)) + var(--cg) + 8px + 2 * var(--cp));border:1px solid var(--hair-2);border-radius:999px;background:rgba(20,22,24,.6);font-size:11px;color:var(--mist);transition:color .25s var(--ease),border-color .25s var(--ease),box-shadow .25s var(--ease)}
.inst__chip::before{content:"";width:6px;height:6px;flex:none;border-radius:50%;background:currentColor;opacity:.55}
.eng .inst:not([data-state="idle"]):not([data-state="handoff"]) .inst__chip::before{opacity:1;will-change:opacity;animation:ui-live 1.8s var(--ease-io) infinite}
@media (max-width:399px){.inst__lbl{letter-spacing:.06em}.inst__chip{--ls:.06em;--cp:8px}}
@media (max-width:374px){.inst__lbl{letter-spacing:.03em}.inst__chip{--ls:.03em;--cg:6px;--cp:7px}}
/* narrow phones: the label always takes two lines ("Sped up" under it), so the disclosure is never cut off by the wider
   chip states and the bar keeps one height through the whole demo */
@media (max-width:419px){.inst__lbl{white-space:normal;line-height:1.5}.inst__sep{display:none}.inst__sp{display:block;padding-left:18px}}
.inst[data-state="ringing"] .inst__chip,.inst[data-state="missed"] .inst__chip{color:var(--paper);border-color:rgba(244,241,234,.45)}
.inst:is([data-state="answered"],[data-state="sent"],[data-state="waiting"],[data-state="reply"],[data-state="offer"],[data-state="pick"],[data-state="booked"],[data-state="handoff"]) .inst__chip{color:var(--amber);border-color:rgba(242,169,59,.6);box-shadow:0 0 18px -6px rgba(242,169,59,.6)}

/* the strip: caller -> your business, with the comet travelling the dashed line */
.strip{--mt:16px;--mb:30px;position:relative;height:76px;margin:var(--mt) 0 var(--mb)}
/* the field the call travels across: a dot grid (as on the home product card) and a faint glow at your business */
.strip::before{content:"";position:absolute;left:calc(-1 * var(--px));right:calc(-1 * var(--px));top:calc(-1 * var(--mt));bottom:calc(10px - var(--mb));pointer-events:none;border-bottom:1px solid var(--hair);
  background:radial-gradient(26% 60% at 92% 50%,rgba(242,169,59,.12),rgba(242,169,59,0) 70%),radial-gradient(rgba(244,241,234,.075) 1px,transparent 1.3px) 0 0/18px 18px}
.strip__svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.strip__path{stroke:rgba(244,241,234,.28);stroke-width:1;stroke-dasharray:2 6;fill:none}
.strip__comet{stroke:var(--paper);stroke-width:2.5;stroke-linecap:round;fill:none;opacity:0;transition:opacity .25s,stroke .25s}
.inst[data-state="ringing"] .strip__comet{opacity:1;stroke:var(--paper)}
.inst:is([data-state="answered"],[data-state="missed"],[data-state="reply"],[data-state="pick"]) .strip__comet{opacity:1;stroke:var(--amber)}
.strip__node{position:absolute;top:50%;width:44px;height:44px;margin:-22px 0 0 -22px}
.strip__node--caller{left:7.857%}
.strip__node--biz{left:92.143%}
.strip__ring{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.strip__ring-track{stroke:var(--hair-2);stroke-width:1.5}
.strip__ring-arc{stroke:var(--amber);stroke-width:2.5;stroke-linecap:round}
.strip__dot{position:absolute;left:50%;top:50%;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;background:var(--paper);box-shadow:0 0 0 4px rgba(244,241,234,.1);transition:background-color .25s,box-shadow .25s,border-radius .25s}
.inst:is([data-state="waiting"],[data-state="reply"],[data-state="offer"],[data-state="pick"],[data-state="booked"],[data-state="handoff"]) .strip__dot{background:var(--amber);border-radius:2px;box-shadow:0 0 0 5px rgba(242,169,59,.18),0 0 16px rgba(242,169,59,.6)}
/* your business: the amber Basepoint square; a ripple marks each moment the business acts */
.strip__bp{position:absolute;left:50%;top:50%;width:20px;height:20px;margin:-10px 0 0 -10px;border-radius:4px;background:var(--amber);box-shadow:0 0 0 5px rgba(242,169,59,.14),0 0 22px rgba(242,169,59,.55)}
.strip__bp::after{content:"";position:absolute;inset:-2px;border-radius:6px;border:1px solid var(--amber);opacity:0}
.strip__bp.is-burst::after{animation:sv-burst .9s var(--ease) both}
.strip__bp.is-burst--paper::after{border-color:var(--paper)}
@keyframes sv-burst{0%{transform:scale(1);opacity:.9}100%{transform:scale(3.2);opacity:0}}
.strip__lbl{position:absolute;top:calc(100% + 4px);padding:3px 7px;border:1px solid rgba(244,241,234,.13);border-radius:6px;background:#16181b;font-size:11px;letter-spacing:.08em;white-space:nowrap;color:var(--body)}
.strip__node--biz .strip__lbl{border-color:rgba(242,169,59,.42);color:var(--paper)}
.strip__node--caller .strip__lbl{left:0}
.strip__node--biz .strip__lbl{right:0}

.inst__status{min-height:84px}
.inst__big{font-size:21px;font-weight:300;line-height:1.2;letter-spacing:-.02em;color:var(--paper)}
.inst__count{margin-top:8px;color:var(--amber)}
.inst__count-n{display:inline-block;min-width:1.3em;color:var(--amber);font-weight:500;font-variant-numeric:tabular-nums;text-align:right}
.inst__small{margin-top:6px;font-size:14px;color:var(--mist)}

/* the log: one fixed-height panel at every width (its min-height is the show() budget). New rows scroll the panel
   itself to the newest message, so nothing above or below the instrument ever reflows. Phones can scroll it by touch;
   on desktop the wheel keeps scrolling the page (Lenis) and the panel follows the conversation on its own. */
.logbox{position:relative;margin-top:2px}
/* round 5: the rows paint above the stage overlay (.log__ghosts z-index 0), so a stage still fading out or gliding
   down passes UNDER a new (opaque) bubble instead of crossing its text; the empty panel still shows the stages */
.log{position:relative;z-index:1;display:flex;flex-direction:column;gap:10px;
  height:var(--logh,clamp(230px,36svh,300px));min-height:var(--logh,clamp(230px,36svh,300px));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line) transparent;padding:12px 2px 0 0;
  -webkit-mask-image:linear-gradient(transparent,#000 14px);mask-image:linear-gradient(transparent,#000 14px)}
/* once the conversation scrolls, the row leaving at the top fades out over a deeper edge (no half-cut label) */
.log.is-scrolled{-webkit-mask-image:linear-gradient(transparent,#000 34px);mask-image:linear-gradient(transparent,#000 34px)}
/* idle: nothing to scroll, so the panel is never an empty keyboard stop */
.inst[data-state="idle"] .log{overflow:hidden}
/* touch screens: a swipe that starts on the panel always scrolls the page (round 2: it trapped the thumb). The panel
   still follows the conversation on its own (scrollTop from demo()), it just never takes a gesture. */
@media (max-width:767px),(hover:none){.log{overflow-y:hidden;overscroll-behavior:auto;touch-action:pan-y}}
.log__list{display:flex;flex-direction:column;gap:10px;padding-bottom:6px} /* the newest row never sits on the panel edge */
.log__item{display:flex;flex-direction:column;align-items:flex-start;gap:6px;flex:none}
.log__item--out{align-items:flex-end}
.log__sys{display:inline-flex;align-items:center;gap:8px;color:var(--amber)}
.log__sys::before{content:"";width:6px;height:6px;background:var(--amber)}
.bubble{max-width:88%;padding:11px 14px 12px;border:1px solid rgba(244,241,234,.11);border-radius:14px 14px 14px 4px;background:#16181b;color:var(--body);font-size:14.5px;line-height:1.45;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.bubble__who{display:block;margin-bottom:3px;font-size:11px;letter-spacing:.06em;color:var(--amber)}
.bubble--out{border-color:transparent;border-radius:14px 14px 4px 14px;background:var(--amber);color:var(--on-amber);box-shadow:0 0 30px -10px rgba(242,169,59,.7)}
.bubble--out .bubble__who{color:rgba(26,19,7,.78)}
.log__meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;font-size:12.5px;color:var(--mist)}
.log__ok{color:var(--amber)}
.handoff{width:100%;padding:14px 16px;border:1px solid rgba(242,169,59,.5);border-radius:14px;background:linear-gradient(rgba(242,169,59,.06),rgba(242,169,59,.06)),#16181b;
  box-shadow:0 0 0 4px rgba(242,169,59,.08),0 0 34px -10px rgba(242,169,59,.6)}
.handoff__lbl{display:flex;align-items:center;gap:8px;color:var(--amber)}
.handoff__lbl::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--amber);box-shadow:0 0 10px rgba(242,169,59,.9)}
/* the details sit on an amber rule, like an approval card */
.handoff__dl{display:grid;gap:4px;margin:10px 0;padding-left:12px;border-left:2px solid var(--amber)}
.handoff__row{display:grid;grid-template-columns:6.5em minmax(0,1fr);gap:12px;align-items:baseline;font-size:14.5px;color:var(--paper)}
.handoff__row dt{letter-spacing:.08em}
.handoff__line{font-size:14px;color:var(--body)}
/* the calendar card: a Mon–Fri strip; the booked day is already wide when the card appears (.is-pick, no layout
   animation), then its slot fills amber (scaleY) and "{time} · {need}" fades in */
.dcal{width:100%;padding:12px 14px 14px;border:1px solid rgba(244,241,234,.11);border-radius:14px;background:#16181b}
.dcal__lbl{color:var(--paper)}
.dcal__week{display:flex;gap:6px;margin-top:10px}
.cal__day{display:flex;flex:1 1 0;flex-direction:column;gap:6px;min-width:0}
.cal__day.is-pick{flex-grow:3.6}
.cal__d{font-size:11px;letter-spacing:.08em;color:var(--mist);transition:color .25s}
.cal__slot{position:relative;display:block;min-height:46px;border:1px dashed var(--hair-2);border-radius:8px;overflow:hidden;transition:border-color .25s}
.cal__slot::before{content:"";position:absolute;inset:0;background:var(--amber);transform:scaleY(0);transform-origin:50% 100%;transition:transform 520ms var(--ease) 120ms}
.cal__txt{position:relative;display:block;padding:7px 9px;font-size:12.5px;font-weight:500;line-height:1.3;color:var(--on-amber);opacity:0;transition:opacity 240ms ease 420ms}
.cal__day.is-booked .cal__d{color:var(--amber)}
.cal__day.is-booked .cal__slot{border-style:solid;border-color:var(--amber);box-shadow:0 0 18px -6px rgba(242,169,59,.6)}
.cal__day.is-booked .cal__slot::before{transform:none}
.cal__day.is-booked .cal__txt{opacity:1}
html.still :is(.cal__day,.cal__slot,.cal__txt,.cal__d),html.still .cal__slot::before{transition:none!important}
/* the call flow still to come (round 4: labelled stages, not blank skeleton bars, so the panel reads as a working
   product at rest): Incoming call, Answered (Texted back on the missed path), What they need, Booked on your calendar,
   Handed to you. They sit in an overlay over the panel (outside the scrolling log, so they never add scroll height).
   demo() places each one under the newest message with a transform and fades the stages the call has passed, plus
   any that would run past the panel: no reflow, no layout shift. A dashed rail links them; the next one lights amber. */
.log__ghosts{--gfade:30px;position:absolute;z-index:0;left:0;right:2px;top:0;bottom:0;overflow:hidden;pointer-events:none;
  -webkit-mask-image:linear-gradient(transparent,#000 14px,#000 calc(100% - var(--gfade)),transparent);mask-image:linear-gradient(transparent,#000 14px,#000 calc(100% - var(--gfade)),transparent)}
.log__ghost{--gh:40px;position:absolute;left:0;right:0;top:12px;display:flex;align-items:center;gap:12px;height:var(--gh);padding:0 14px;
  transform:translate3d(0,var(--gy,0px),0);border:1px dashed rgba(244,241,234,.14);border-radius:12px;background:rgba(244,241,234,.018);color:var(--mist)}
.log__ghost b{font-size:14px;font-weight:400;letter-spacing:-.005em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* the node: a hollow dot; the rail: a dashed line up to the stage above (not on the first stage still to come) */
.log__ghost::before{content:"";flex:none;width:7px;height:7px;border-radius:50%;border:1px solid rgba(244,241,234,.34);background:#16181b}
.log__ghost::after{content:"";position:absolute;left:17px;top:-11px;height:10px;border-left:1px dashed rgba(244,241,234,.2)}
.log__ghost:first-child::after,.log__ghost.is-next::after{display:none}
.g-b{display:none}
.inst:not([data-state="idle"])[data-path="b"] .g-a{display:none}
.inst:not([data-state="idle"])[data-path="b"] .g-b{display:inline}
/* the idle stack is placed in CSS (each stage's height + 10px), so the panel is composed from the first frame (a #demo
   landing never shows rows snap apart); demo() takes over once a call starts */
.log__ghost:nth-child(2){--gy:50px}
.log__ghost:nth-child(3){--gy:100px}
.log__ghost:nth-child(4){--gy:150px}
.log__ghost:nth-child(5){--gy:200px}
.log__ghosts.is-set .log__ghost{transition:transform .55s var(--ease),opacity .35s var(--ease),border-color .4s var(--ease),color .4s var(--ease),background-color .4s var(--ease)}
.log__ghosts.is-set .log__ghost::before{transition:background-color .4s var(--ease),border-color .4s var(--ease),box-shadow .4s var(--ease)}
.log__ghost.is-used{opacity:0}
/* once a call runs, the next stage is lit: amber node, paper label, a warm solid edge */
.inst:not([data-state="idle"]) .log__ghost.is-next{border-style:solid;border-color:rgba(242,169,59,.34);background:rgba(242,169,59,.045);color:var(--paper)}
.inst:not([data-state="idle"]) .log__ghost.is-next::before{border-color:var(--amber);background:var(--amber);box-shadow:0 0 10px rgba(242,169,59,.8)}
.eng .inst:not([data-state="idle"]):not([data-state="handoff"]) .log__ghost.is-next::before{will-change:opacity;animation:ui-live 1.8s var(--ease-io) infinite}
/* short phones: five slimmer stages; the ones that run past the shorter panel fade (demo()) */
@media (max-width:767px) and (max-height:700px){
  .log__ghosts{--gfade:14px} /* round 5: a shallower edge fade, so the lit next stage fits whole above it (demo() reads --gfade) */
  .log__ghost{--gh:34px}
  .log__ghost:nth-child(2){--gy:44px}.log__ghost:nth-child(3){--gy:88px}.log__ghost:nth-child(4){--gy:132px}.log__ghost:nth-child(5){--gy:176px}
  .log__ghost::after{top:-11px;height:10px}
}

.inst__ctl{display:flex;flex-wrap:wrap;align-content:flex-start;align-items:center;gap:10px;min-height:98px;margin-top:16px}
.inst__starts{display:flex;flex-wrap:wrap;gap:10px;width:100%}
.inst__start{flex:1 1 auto}
html:not(.js) .inst__start,html:not(.js) .inst__count,html:not(.js) .inst__ctl{display:none}
.inst__foot{margin-top:14px;text-align:center;text-shadow:0 0 14px var(--ink-0),0 0 5px var(--ink-0),0 0 2px var(--ink-0)}
html:not(.still) .log__item:not([hidden]){animation:sv-bubble 240ms var(--ease) both}
/* the control rows rise in like the log rows and ease out before they are hidden (demo() hideEl/showEl; round 4: they
   popped). Motion off: none. */
.eng .inst__ctl > :not([hidden]){animation:sv-bubble 240ms var(--ease) both}
.eng .inst__ctl > .is-out{animation:sv-out 180ms var(--ease) both;pointer-events:none}
@keyframes sv-out{from{opacity:1;transform:none}to{opacity:0;transform:translate3d(0,6px,0)}}
/* the caller's dot pulses while the phone rings and while the caller is asked: a ring on its own layer that scales and
   fades (transform/opacity only; round 3: the old keyframes animated box-shadow, a repaint every frame) */
.strip__dot::after{content:"";position:absolute;inset:-5px;border-radius:inherit;border:1px solid rgba(244,241,234,.5);opacity:0;pointer-events:none}
html:not(.still) .inst[data-state="ringing"] .strip__dot{animation:sv-ringpulse 600ms ease-in-out infinite}
html:not(.still) .inst[data-state="ringing"] .strip__dot::after{animation:sv-ring 600ms ease-out infinite}
html:not(.still) .inst:is([data-state="waiting"],[data-state="offer"]) .strip__dot::after{border-color:rgba(242,169,59,.7);animation:sv-ring 1.2s ease-out infinite}
@keyframes sv-bubble{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes sv-ringpulse{50%{transform:scale(1.3)}}
@keyframes sv-ring{0%{opacity:.8;transform:scale(.7)}100%{opacity:0;transform:scale(1.9)}}

/* no JavaScript: nothing can run, so the panel shows Path A whole as a static transcript (no idle prompt, no
   placeholders, no controls) with Tuesday booked */
html:not(.js) .log{height:auto;min-height:0;overflow:visible;-webkit-mask-image:none;mask-image:none}
html:not(.js) .log__item:is([data-msg="greet"],[data-msg="reply"],[data-msg="offer"],[data-msg="pick"],[data-msg="booked"],[data-msg="cal"],[data-msg="handoff"])[hidden]{display:flex!important}
html:not(.js) :is(.log__ghosts,.inst__status,.inst__chip){display:none!important}
html:not(.js) .cal__day[data-day="Tuesday"]{flex-grow:3.6}
html:not(.js) .cal__day[data-day="Tuesday"] .cal__d{color:var(--amber)}
html:not(.js) .cal__day[data-day="Tuesday"] .cal__slot{border-style:solid;border-color:var(--amber)}
html:not(.js) .cal__day[data-day="Tuesday"] .cal__slot::before{transform:none}
html:not(.js) .cal__day[data-day="Tuesday"] .cal__txt{opacity:1}

/* short phones (360x640): the whole instrument, status and every reply chip, fits under the pinned header */
@media (max-width:767px) and (max-height:700px){
  .inst{--pt:14px;--px:14px;padding-bottom:16px}
  .inst__head{padding-block:10px}
  .strip{--mt:10px;--mb:30px;height:50px}
  .inst__status{min-height:58px}
  .inst__big{font-size:19px}
  .log{--logh:200px} /* round 5: +24px so the lit next stage shows whole while the call waits (the instrument still ends ~40px above the fold) */
  .inst__ctl{min-height:98px;margin-top:10px} /* the two start buttons (44+10+44); the chips fit in it too */
}

@media (min-width:768px){
  .inst{--pt:24px;--px:24px}
  .inst__head{padding-block:14px}
  .strip{--mt:20px;--mb:34px;height:110px}
  .inst__big{font-size:26px}
  .inst__status{min-height:96px}
  .logbox{margin-top:12px}
  .log{--logh:340px;padding-right:0;overscroll-behavior:auto;scrollbar-width:none}
  .log__ghosts{right:0}
  .log::-webkit-scrollbar{display:none}
  .inst__ctl{min-height:48px}
  .inst__starts{width:auto}
  .inst__start{flex:none}
}
@media (min-width:1024px){
  .demo{grid-template-columns:repeat(12,minmax(0,1fr));gap:24px;align-items:start}
  .demo__copy{grid-column:1 / 6}
  .demo__side{grid-column:7 / 13;position:sticky;top:96px}
  .log{--logh:clamp(220px,calc(100svh - 520px),330px)}
  .inst__ctl{min-height:66px;margin-top:auto;padding-top:18px}
}
/* short laptops (1280x720, 1366x768): a tighter instrument, so all of it (status, log and every control) fits
   under the header and it can still stick beside the copy */
@media (min-width:1024px) and (max-height:879px){
  .demo__side{top:80px}
  .inst{--pt:16px;--px:20px}
  .inst__head{padding-block:11px}
  .strip{--mt:12px;--mb:24px;height:76px}
  .inst__big{font-size:22px}
  .inst__status{min-height:64px}
  .logbox{margin-top:4px}
  .log{--logh:clamp(170px,calc(100svh - 470px),300px)}
  .inst__ctl{min-height:56px;padding-top:12px} /* one chip row (44) + its 12 px: the card keeps its height in every state */
  .inst__foot{margin-top:8px}
}
/* 1440x900-class laptops: a #demo landing (menu "Live demo", footer link) shows the whole instrument, the reply
   chips and the start buttons included, under the header (round 2: they sat at 865-909 px in a 900 px viewport) */
@media (min-width:1024px) and (min-height:880px) and (max-height:960px){
  .sv-demo{padding-top:clamp(64px,10vh,96px)}
  .strip{--mb:28px;height:92px}
  .inst__status{min-height:80px}
  .log{--logh:300px}
}
@media (min-width:1024px) and (max-height:640px){.demo__side{position:relative;top:auto}}
/* the narrowest phones wrap the three reply chips onto three rows: the control area keeps that height from idle on,
   so nothing below the instrument moves when the chips appear */
@media (max-width:374px){.inst__chips .chip{padding:0 12px;font-size:13.5px}}
/* 360px phones: slightly tighter reply chips keep the three on two rows, so the whole instrument (status bar to the
   last chip) fits a 360x640 screen; only the narrowest (<340px) need three rows */
@media (max-width:339px){.inst__ctl{min-height:148px}}
@media (max-width:767px){.sv-work{padding-bottom:clamp(36px,6vh,64px)}}
@media (max-width:767px){.sv-demo{padding-top:clamp(20px,3.5vh,36px)}}
/* the glow behind the instrument stays inside the page width on phones and tablets (it reached past the right edge) */
@media (max-width:1023px){.demo__side::before{left:0;right:0}}
/* narrow desktops (1024-1279): the three reply chips wrap onto two rows in the instrument column; the control area keeps
   that height in every state, so the card's bottom edge never moves when the chips come and go */
@media (min-width:1024px) and (max-width:1279px){.inst__ctl{min-height:110px}}

/* ---------- round 4 ---------- */
/* section labels: one quiet rule ending in an amber tick, no second number on the line (the counter repeated the
   label's own number) and no coordinates (the opener's datum is enough) */
.eyebrow__hud:empty::before{margin-right:0}
/* phones: the demo's labels read at 12px, like every other phone label */
@media (max-width:767px){
  .inst__lbl,.inst__chip,.strip__lbl,.bubble__who,.cal__d{font-size:12px}
  .strip__lbl{letter-spacing:.06em}
  .bubble__who{letter-spacing:.02em}
}
/* narrow phones: the status bar shares its row with the chip, so its label stays at 11px there (12px wrapped it onto
   three lines at 360) */
@media (max-width:419px){.inst__lbl{font-size:11px}}
/* phones: the closing call to action is one full-width "Talk to us", then Call and Text side by side (at 430 Text
   was left alone on its own row) */
@media (max-width:767px){
  #talk .cta__row{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:10px}
  #talk .cta__row .btn{justify-content:center;min-width:0;padding-inline:14px;white-space:nowrap}
  #talk .cta__row .btn--amber{grid-column:1 / -1}
}

/* ---------- phones and touch screens: nothing pins, nothing sticks (2026-10-05; same test as site.js BP4.touchy(): no fine pointer) ----------
   The opener is one ordinary screen, so the chapters simply follow it (no pull-up over a pinned opener, no cover band),
   and the demo instrument sits in the flow beside / under its copy */
@media not all and (hover:hover) and (pointer:fine){
  .eng .sv-build{margin-top:0}
  .eng .sv-build__head{background:none}
  @media (min-width:1024px){.eng .demo__side{position:relative;top:auto}} /* (sticky there otherwise; it stays a positioned box; Motion off keeps its old layout) */
}
