/* The scroll-linked story under the hero (visual pass, 8 Oct 2026): "menu to kitchen" on /restaurants and /, "call to booked job" on /trades.
   One pinned stage; scroll progress --p (0..1) is driven by a CSS scroll timeline where the browser has one, and by story.js (one passive scroll
   listener, only while the story is on screen) where it does not. Every scene reads --p through calc(); what moves is transform and opacity.
   One card at a time, all on the scene's left edge: a card is held for more than half of its range, a transition takes at most 0.07 of the
   progress, and the next card starts only once the one before is under 30 percent. No images: HTML, CSS, SVG.
   Reduced motion: story.js turns the stage into a stack of still scenes, one per step. */
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
.story { position: relative; z-index: 2; color: var(--hx-ink); }
.story-track { position: relative; height: 300vh; }
@media (max-width: 959px) { .story-track { height: 220vh; } }
@supports (animation-timeline: view()) {
  .story-track { animation: stp linear both; animation-timeline: view(); animation-range: contain 0% contain 100%; }
  @keyframes stp { to { --p: 1; } }
}
.story-stage { position: sticky; top: 0; height: 100vh; height: 100svh; box-sizing: border-box; overflow: hidden; display: grid; align-items: center; padding: 84px 0 32px; }
.st-aura { position: absolute; left: 50%; top: 50%; width: 1100px; height: 1100px; margin: -550px 0 0 -550px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--hx-blob1), .2), rgba(var(--hx-blob1), 0) 70%); transform: translate(calc(var(--p) * 260px - 130px), calc(var(--p) * -120px + 60px)); }
.st-aura + .st-aura { background: radial-gradient(closest-side, rgba(var(--hx-blob2), .22), rgba(var(--hx-blob2), 0) 70%); transform: translate(calc(var(--p) * -300px + 200px), calc(var(--p) * 140px - 80px)); }
.st-in { position: relative; z-index: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.st-eyebrow { margin: 0 0 14px; font: 700 12px/1.3 var(--hx-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--hx-a2); }
@media (max-width: 959px) { .st-eyebrow { font-size: 11px; letter-spacing: .08em; white-space: nowrap; } }
.st-steps { display: grid; }
.st-step { grid-area: 1 / 1; align-self: start; pointer-events: none; --a: 0; --b: .25; }
.st-step h2 { margin: 0 0 14px; font: 700 clamp(30px, 4.2vw, 56px)/1.04 var(--hx-disp); letter-spacing: -.024em; color: var(--hx-ink); text-wrap: balance; background: none; -webkit-text-fill-color: currentColor; animation: none; }
.st-step p { margin: 0; max-width: 40ch; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: var(--hx-ink2); }
.st-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; --cta-a: .79; opacity: clamp(0, calc((var(--p) - var(--cta-a)) / .04), 1); }
.st-cta .btn { min-height: 52px; padding: 0 20px; border-radius: 16px; font-size: 16px; font-weight: 800; }
.story[data-story="trades"] .st-cta { --cta-a: .83; }
.story .btn.primary { color: var(--hx-btn-ink); background: linear-gradient(180deg, var(--hx-btn-top), var(--hx-btn-mid) 46%, var(--hx-btn-bot)); border: 0; box-shadow: 0 0 0 1px rgba(255, 214, 170, .5) inset, 0 16px 36px -16px rgba(var(--hx-glow), .9); }
.story .btn.ghost { color: var(--hx-ink); border-color: var(--hx-line2); background: rgba(255, 255, 255, .06); }
.st-note { margin: 0; padding: 0 20px 28px; text-align: center; font-size: 13px; line-height: 1.4; color: var(--hx-mute); }
.story :focus-visible { outline: 2px solid var(--hx-a2); outline-offset: 3px; }

/* copy: one step at a time, line by line (heading, then sentence); step i is on screen between a and b */
.st-step > * { --lg: 0; opacity: min(clamp(0, calc((var(--p) - var(--a) - var(--lg) + .035) / .035), 1), clamp(0, calc((var(--b) + .035 - var(--p)) / .035), 1));
  transform: translateY(calc((1 - clamp(0, calc((var(--p) - var(--a) - var(--lg) + .035) / .05), 1)) * 18px)); }
.st-step > :nth-child(2) { --lg: .016; }
.st-step:first-child { --a: -1; } .st-step:last-child { --b: 2; }
.st-cta[inert] { pointer-events: none; }
.story[data-story="restaurant"] .st-step:nth-child(1) { --b: .24; }
.story[data-story="restaurant"] .st-step:nth-child(2) { --a: .24; --b: .5; }
.story[data-story="restaurant"] .st-step:nth-child(3) { --a: .5; --b: .76; }
.story[data-story="restaurant"] .st-step:nth-child(4) { --a: .76; }
.story[data-story="trades"] .st-step:nth-child(1) { --b: .2; }
.story[data-story="trades"] .st-step:nth-child(2) { --a: .2; --b: .4; }
.story[data-story="trades"] .st-step:nth-child(3) { --a: .4; --b: .6; }
.story[data-story="trades"] .st-step:nth-child(4) { --a: .6; --b: .8; }
.story[data-story="trades"] .st-step:nth-child(5) { --a: .8; }

/* the visual: one scene, scaled to the screen; its cards share the left edge */
.st-vis { --k: .95; position: relative; justify-self: end; width: calc(575px * var(--k)); height: calc(450px * var(--k)); }
@media (min-width: 1200px) { .st-vis { --k: 1.15; } }
.sc { position: absolute; left: 0; top: 0; width: 575px; height: 450px; transform-origin: 0 0; transform: scale(var(--k)); font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.sc > * { position: absolute; left: 0; width: 335px; box-sizing: border-box; }
.sc i { font-style: normal; }
.paper-card { background: linear-gradient(180deg, #f6efe3 0, #fffaf3 6%, #fff6ea 100%); color: #14161c; border-radius: 12px; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .9), 0 8px 18px -10px rgba(0, 0, 0, .6); }
.glass-card { background: linear-gradient(165deg, var(--hx-panel2), var(--hx-panel) 62%); border: 1px solid var(--hx-line2); border-radius: 22px; box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .12); color: var(--hx-ink); }
.sc .lbl, .sc .tag { font: 700 11px/1 var(--hx-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--hx-mute); }
.sc .tag { display: block; margin: 0 0 6px; color: var(--hx-a3); }
.mini-orb { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #ffe6cc 0, var(--hx-a2) 36%, var(--hx-a1) 74%, #8d2f12); box-shadow: inset -4px -6px 10px rgba(60, 12, 2, .4); }
.mini-orb::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--hx-glow), .8), rgba(var(--hx-glow), 0) 68%); opacity: calc(.25 + var(--sp, 0) * .75); transform: scale(calc(.9 + var(--sp, 0) * .5)); }
.bars { display: flex; align-items: center; justify-content: space-between; height: 30px; margin: 12px 0 10px; }
.bars i { width: 3px; height: 100%; border-radius: 2px; background: linear-gradient(var(--hx-a3), var(--hx-a1)); transform: scaleY(calc(.1 + var(--sp, 0) * var(--h, .5))); }
.bars i:nth-child(5n+1) { --h: .45; } .bars i:nth-child(5n+2) { --h: .9; } .bars i:nth-child(5n+3) { --h: .6; } .bars i:nth-child(5n+4) { --h: 1; } .bars i:nth-child(5n) { --h: .3; }

/* ============ restaurants: menu to kitchen ============
   p:  .06 rows lit | .12-.23 chips lift off | .19-.25 menu out | .23-.29 call in | .46-.52 call out | .50-.56 ticket in, prints .54-.68
       .73-.79 ticket out | .77-.83 kitchen in | .85 Accept | .91-.97 text in */
.story-stage {
  --th: clamp(0, calc((var(--p) - .06) / .06), 1); --sh: calc(var(--th) * var(--th) * (3 - 2 * var(--th)));
  --tmo: clamp(0, calc((var(--p) - .19) / .06), 1); --smo: calc(var(--tmo) * var(--tmo) * (3 - 2 * var(--tmo)));
  --tci: clamp(0, calc((var(--p) - .23) / .06), 1); --sci: calc(var(--tci) * var(--tci) * (3 - 2 * var(--tci)));
  --tco: clamp(0, calc((var(--p) - .46) / .06), 1); --sco: calc(var(--tco) * var(--tco) * (3 - 2 * var(--tco)));
  --tti: clamp(0, calc((var(--p) - .5) / .06), 1);  --sti: calc(var(--tti) * var(--tti) * (3 - 2 * var(--tti)));
  --tpr: clamp(0, calc((var(--p) - .54) / .14), 1);
  --tto: clamp(0, calc((var(--p) - .73) / .06), 1); --sto: calc(var(--tto) * var(--tto) * (3 - 2 * var(--tto)));
  --tki: clamp(0, calc((var(--p) - .77) / .06), 1); --ski: calc(var(--tki) * var(--tki) * (3 - 2 * var(--tki)));
  --tac: clamp(0, calc((var(--p) - .85) / .04), 1); --tdn: clamp(0, calc((var(--p) - .89) / .03), 1);
  --tsm: clamp(0, calc((var(--p) - .91) / .06), 1); --ssm: calc(var(--tsm) * var(--tsm) * (3 - 2 * var(--tsm)));
  --sp: calc(var(--sci) * (1 - var(--sco)));
}
.mn { top: 0; padding: 18px 20px 14px; background: linear-gradient(180deg, #f6efe3 0, #fffaf3 8%, #fff6ea 100%); color: #14161c; border-radius: 14px;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .95), 0 10px 22px -12px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(120, 90, 50, .12);
  transform: translateY(calc(var(--smo) * -20px)) scale(calc(1 - var(--smo) * .04)); opacity: calc(1 - var(--smo)); isolation: isolate; }
.mn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #2a1f14; opacity: calc(var(--smo) * .35); pointer-events: none; }
.mn-h { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 10px; border-bottom: 2px solid #14161c; }
.mn-h b { font: 700 23px/1 var(--hx-disp); letter-spacing: -.02em; }
.mn-h span { font: 700 11px/1 var(--hx-mono); letter-spacing: .14em; color: #5d616b; }
.mn-s { margin: 10px 0 0; font: 700 11px/1 var(--hx-mono); letter-spacing: .16em; text-transform: uppercase; color: #7c2a0c; }
.mn-r { position: relative; display: flex; align-items: baseline; gap: 8px; padding: 6px 0 5px; border-bottom: 1px dotted #cdbfa5; font: 600 15px/1.2 var(--hx-disp); }
.mn-r > span { flex: 1; min-width: 0; }
.mn-r i { margin-left: 6px; font: 600 12px/1 var(--hx-ind); color: #5d616b; }
.mn-r em { font: 700 13px/1 'Plus Jakarta Sans', system-ui, sans-serif; font-style: normal; font-variant-numeric: tabular-nums; }
.mn-r small { display: block; margin-top: 3px; font: 500 12px/1.2 'Plus Jakarta Sans', system-ui, sans-serif; color: #3f434d; }
.mn-r small b { padding: 1px 6px; border-radius: 5px; background: rgba(255, 176, 46, .6); font-weight: 800; color: #14161c; }
.mn-r[data-o]::before { content: ""; position: absolute; left: -7px; right: -7px; top: 2px; bottom: 1px; z-index: -1; border-radius: 6px; background: rgba(255, 176, 46, .42); transform-origin: 0 50%; transform: scaleX(var(--sh)); }
.cl { top: 0; height: 306px; padding: 16px; opacity: calc(var(--sci) * (1 - var(--sco))); transform: translateY(calc((1 - var(--sci)) * 24px + var(--sco) * -16px)); }
.cl-h { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--hx-line); }
.cl-h b { display: block; font-size: 15px; font-weight: 800; }
.cl-h small { display: block; margin-top: 4px; font: 600 11px/1 var(--hx-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--hx-a3); }
.cl-w { position: relative; height: 100px; }  /* the tag, two lines of Punjabi and two of English, exactly */
.cl-l { position: absolute; inset: 0; margin: 0; font: 600 15px/1.4 var(--hx-ind); color: var(--hx-ink); }
.cl-l small { display: block; margin-top: 4px; font: 500 12.5px/1.4 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--hx-mute); text-wrap: balance; }
.cl-l.l1 { opacity: calc(clamp(0, calc((var(--p) - .27) / .04), 1) * (1 - clamp(0, calc((var(--p) - .36) / .03), 1))); }
.cl-l.l2 { opacity: clamp(0, calc((var(--p) - .37) / .03), 1); }
.tray { top: 229px;  /* its own band under the caption (the caption ends at 219), two rows of chips, then the card's padding */ left: 16px; width: 303px; display: flex; flex-wrap: wrap; gap: 8px; z-index: 2; pointer-events: none; }
.fl { flex: none; padding: 7px 11px; border-radius: 99px; font: 800 12.5px/1 'Plus Jakarta Sans', system-ui, sans-serif; white-space: nowrap; color: var(--hx-btn-ink);
  background: linear-gradient(180deg, var(--hx-btn-top), var(--hx-btn-bot)); box-shadow: 0 10px 22px -10px rgba(var(--hx-glow), .9); --f: clamp(0, calc((var(--p) - var(--f0)) / .07), 1);
  opacity: calc(min(var(--f) * 8, 1) * (1 - var(--sco))); transform: translate(calc((1 - var(--f)) * var(--dx)), calc((1 - var(--f)) * var(--dy))) scale(calc(.92 + var(--f) * .08)); }
.fl.q1 { --f0: .12; --dx: 12px; --dy: -120px; }
.fl.q2 { --f0: .14; --dx: -130px; --dy: -1px; }
.fl.q3 { --f0: .16; --dx: 12px; --dy: 46px; }
.tkw { top: 0; overflow: hidden; padding-bottom: 16px; border-radius: 12px; opacity: calc(var(--sti) * (1 - var(--sto))); transform: translateY(calc((1 - var(--sti)) * 20px + var(--sto) * -18px)); }
.tkw::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; border-radius: 7px; background: linear-gradient(180deg, #030a0c, #12262b); box-shadow: inset 0 2px 4px #000, 0 1px 0 rgba(255, 255, 255, .1); }
.tkp { position: relative; margin: 0 24px; padding: 16px 16px 22px; font: 500 12.5px/1.3 var(--hx-mono); border-radius: 10px 10px 2px 2px;
  -webkit-mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0/13px 100% repeat-x; mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0/13px 100% repeat-x;
  transform: translateY(calc((1 - var(--tpr)) * 104%)); }
.tl { display: flex; gap: .6em; padding: .4em 0; border-bottom: 1px dashed #e0d6c3; }
.tl b { color: #b23a14; min-width: 1.1em; font-weight: 700; }
.tl u { margin-left: auto; padding-left: .8em; text-decoration: none; font-variant-numeric: tabular-nums; }
.tl small { display: block; margin-top: .15em; font-weight: 500; color: #3f434d; font-size: .88em; }
.tl.hd { padding-top: 0; font-weight: 700; font-size: 1.1em; }
.tl.hd .nw { margin-left: .5em; padding: .15em .5em; border-radius: .5em; font-size: max(11px, .72em); letter-spacing: .08em; background: #d6f3e3; color: #0a5a33; align-self: center; }
.tl.hd .t { margin-left: auto; font-size: .8em; font-weight: 500; color: #3f434d; align-self: center; }
.tl.sm { color: #3f434d; }
.tl.sm span:last-child { margin-left: auto; font-variant-numeric: tabular-nums; }
.tl.tt { font-weight: 700; font-size: 1.08em; border-bottom: 0; border-top: 2px solid #14161c; margin-top: .3em; }
.tl.tt span:last-child { margin-left: auto; }
.tl.ok { visibility: hidden; justify-content: center; border: 0; margin-top: .4em; border-radius: .5em; background: #d6f3e3; color: #0a5a33; font-weight: 700; letter-spacing: .07em; }
.ks { top: 0; padding: 16px; opacity: var(--ski); transform: translateY(calc((1 - var(--ski)) * 20px)); }
.ks-h { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--hx-line); }
.ks-h b { font-size: 15px; }
.ks-t { margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: #fffaf3; color: #14161c; font: 500 12.5px/1.45 var(--hx-mono); }
.ks-t b { display: flex; justify-content: space-between; font: 800 15px/1 'Plus Jakarta Sans', system-ui, sans-serif; margin-bottom: 8px; }
.ks-t b span { font-size: 11px; padding: 3px 7px; border-radius: 6px; background: #d6f3e3; color: #0a5a33; }
.ks-t div { padding: 2px 0; }
.ks-t .tot { display: flex; justify-content: space-between; margin-top: 4px; padding-top: 6px; border-top: 1px dashed #d8cfbf; font-weight: 700; }
.acc { position: relative; display: block; width: 100%; padding: 14px 0; border-radius: 12px; text-align: center; font: 800 16px/1 'Plus Jakarta Sans', system-ui, sans-serif; color: #fff; background: #167e4a; }
.acc::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #5fe3a1; opacity: calc(var(--tac) * (1 - var(--tdn))); transform: scale(calc(1 + var(--tac) * .12)); }
.acc span { display: block; }
.acc .done { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; background: #0f6b3d; opacity: var(--tdn); }
.ph { top: 316px; width: 335px; padding: 12px; border-radius: 22px; background: #0b1a1e; border: 2px solid rgba(220, 255, 250, .2); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .95);
  opacity: var(--ssm); transform: translateY(calc((1 - var(--ssm)) * 24px)); }
.ph .lbl { display: block; margin: 0 0 10px; white-space: nowrap; }
.sms { padding: 10px 12px; border-radius: 16px 16px 16px 4px; background: #2a3b40; color: #f1f5f4; font-size: 12.5px; line-height: 1.4; }
.sms-t { margin: 6px 4px 0; font-size: 11px; color: var(--hx-mute); }
@media (min-width: 960px) { .ph { left: 355px; top: 0; width: 200px; } }

/* ============ trades: call to booked job ============
   scenes of 0.2 each: a card is in for 0.05, held for 0.14, out for 0.05, and the next starts once it is under 30 percent */
.story[data-story="trades"] .story-stage {
  --w1: clamp(0, calc((var(--p) - .17) / .05), 1);  --o1: calc(1 - var(--w1));
  --w2: clamp(0, calc((var(--p) - .21) / .05), 1);  --x2: clamp(0, calc((var(--p) - .37) / .05), 1);
  --w3: clamp(0, calc((var(--p) - .41) / .05), 1);  --x3: clamp(0, calc((var(--p) - .57) / .05), 1);
  --w4: clamp(0, calc((var(--p) - .61) / .05), 1);  --x4: clamp(0, calc((var(--p) - .77) / .05), 1);
  --w5: clamp(0, calc((var(--p) - .81) / .05), 1);
  --sel: clamp(0, calc((var(--p) - .5) / .05), 1);
  --sp: calc((1 - var(--w1)) * .9 + .1);
}
.tc { top: 0; padding: 18px; opacity: var(--o1); transform: translateY(calc(var(--w1) * -16px)); }
.tc-h { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--hx-line); }
.tc-h b { display: block; font-size: 16px; font-weight: 800; }
.tc-h small { display: block; margin-top: 4px; font: 600 11px/1 var(--hx-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--hx-a3); }
.ring { position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(var(--hx-glow), .2); color: var(--hx-a3); }
.ring svg { width: 20px; height: 20px; }
.ring::before, .ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(var(--hx-glow), .6); animation: stg-ring 2.2s var(--hx-ease) 3; }
.ring::after { animation-delay: 1.1s; }
@keyframes stg-ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
.tc .cl-line { margin: 4px 0 0; font: 600 20px/1.4 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--hx-ink); }
.tm { top: 0; padding: 14px; opacity: calc(var(--w2) * (1 - var(--x2))); transform: translateY(calc((1 - var(--w2)) * 20px + var(--x2) * -16px)); }
.tm svg.map { display: block; width: 100%; height: 190px; border-radius: 12px; background: #0b2127; }
.tm .pc { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.tm .pc b { font: 700 18px/1 var(--hx-mono); letter-spacing: .06em; }
.chk { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 800; color: #0a5a33; background: #bff0d6; opacity: clamp(0, calc((var(--p) - .27) / .03), 1); }
.chk svg { width: 14px; height: 14px; }
.tm .pin { transform-box: fill-box; transform-origin: 50% 100%; transform: translateY(calc((1 - clamp(0, calc((var(--p) - .24) / .04), 1)) * -26px)); opacity: clamp(0, calc((var(--p) - .24) / .02), 1); }
.tw { padding: 16px 18px; border-radius: 18px; font-weight: 800; font-size: 17px; background: rgba(255, 255, 255, .07); border: 1px solid var(--hx-line2); color: var(--hx-ink);
  opacity: calc(var(--w3) * (1 - var(--x3))); transform: translateY(calc((1 - var(--w3)) * 20px + var(--x3) * -16px)); }
.tw small { display: block; margin-top: 5px; font: 600 11px/1 var(--hx-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--hx-mute); }
.tw.w1 { top: 56px; isolation: isolate; }
.tw.w1::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: linear-gradient(180deg, var(--hx-btn-top), var(--hx-btn-bot)); opacity: var(--sel); z-index: -1; }
.tw.w1 span, .tw.w1 small { color: color-mix(in srgb, var(--hx-btn-ink) calc(var(--sel) * 100%), var(--hx-ink)); }
.tw.w2 { top: 152px; opacity: calc(var(--w3) * (1 - var(--x3)) * (1 - var(--sel) * .5)); }
.cal { top: 0; padding: 16px 16px 8px; opacity: calc(var(--w4) * (1 - var(--x4))); transform: translateY(calc((1 - var(--w4)) * 20px + var(--x4) * -16px)); }
.cal-h { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--hx-line); }
.cal-h b { font: 700 22px/1 var(--hx-disp); }
.cal-b { position: relative; }
.cal-r { position: relative; display: flex; align-items: flex-start; height: 84px; border-bottom: 1px solid var(--hx-line); font: 600 12px/1 var(--hx-mono); color: var(--hx-ink2); padding-top: 8px; box-sizing: border-box; }
.cal-r:last-child { border-bottom: 0; }
.slot2 { position: absolute; left: 52px; right: 0; top: 4px; height: 76px; border-radius: 12px; border: 1.5px dashed rgba(var(--hx-glow), .7); background: rgba(var(--hx-glow), .08); }
.job { position: absolute; left: 52px; top: 4px; right: 0; height: 76px; padding: 9px 12px; opacity: clamp(0, calc((var(--p) - .66) / .04), 1); transform: translateY(calc((1 - clamp(0, calc((var(--p) - .66) / .06), 1)) * -40px)); z-index: 2; font-size: 13px; line-height: 1.4; }
.job b { display: block; font-size: 14.5px; margin-bottom: 1px; }
.job span { color: #3f434d; }
.job .nw { display: inline-block; margin-top: 4px; padding: 3px 8px; border-radius: 6px; font: 700 11px/1 var(--hx-mono); letter-spacing: .08em; background: #d6f3e3; color: #0a5a33; }
.em { top: 0; padding: 22px 18px; text-align: center; opacity: var(--w5); transform: translateY(calc((1 - var(--w5)) * 20px)); }
.em .ring { width: 72px; height: 72px; margin: 6px auto 14px; }
.em .ring svg { width: 32px; height: 32px; }
.em b { display: block; font-size: 17px; }
.em small { display: block; margin-top: 8px; font: 600 11px/1.3 var(--hx-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--hx-a3); }

/* ============ phones: a short copy block on top, the scene anchored to the bottom, the buttons of the last step in a bottom row ============ */
@media (max-width: 959px) {
  .story-stage { align-items: stretch; padding: 70px 0 86px; }
  .st-in { position: static; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 6px; padding: 0 20px; height: 100%; }
  .st-steps { min-height: 108px; }
  .st-step h2 { font-size: 28px; margin-bottom: 8px; }
  .st-step p { font-size: 15.5px; line-height: 1.45; }
  .st-eyebrow { margin-bottom: 10px; }
  .sc { width: 335px; }
  .st-vis { --kw: 1; --kh: 1; --k: calc(var(--kw) * var(--kh)); width: calc(335px * var(--k)); height: calc(450px * var(--k)); justify-self: start; align-self: end; }
  .st-cta { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 3; margin: 0; flex-wrap: nowrap; }
  .st-cta .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; }
  body.story-cta .sticky-bar, body.story-cta .nav-talk { display: none !important; }
}
@media (max-width: 959px) and (min-width: 400px) { .st-vis { --kw: 1.06; } }
@media (max-width: 959px) and (max-width: 389px) { .st-vis { --kw: .97; } }
@media (max-width: 959px) and (max-width: 369px) { .st-vis { --kw: .92; } }
@media (max-width: 959px) and (max-width: 349px) { .st-vis { --kw: .86; } }
@media (max-width: 959px) and (max-width: 329px) { .st-vis { --kw: .8; } }
@media (max-width: 959px) and (max-height: 760px) { .st-vis { --kh: .88; } .st-steps { min-height: 96px; } }
@media (max-width: 959px) and (max-height: 690px) { .st-vis { --kh: .74; } .st-step p { font-size: 15px; } }
@media (max-width: 959px) and (max-height: 600px) { .st-vis { --kh: .62; } }
@media (min-width: 960px) and (max-width: 1199px) { .st-in { gap: 32px; } .st-vis { --k: .86; } }

/* ============ reduced motion: the steps as a still, stacked sequence (story.js makes one stage per step) ============ */
@media (prefers-reduced-motion: reduce) {
  .story-track { height: auto; animation: none; }
  .story-stage { position: relative; height: auto; }
  .ring::before, .ring::after, .st-aura { animation: none; }
}
.story-track.still { height: auto; animation: none; }
.story-track.still .story-stage { position: relative; height: auto; min-height: 0; padding: 72px 0 32px; scroll-margin-top: 72px; }
.story-track.still .st-step > * { opacity: 1 !important; transform: none !important; }
.story-track.still .st-step:not(.on) { display: none; }
.story-track.still .st-aura { display: none; }
.story-track.still .st-eyebrow { margin-bottom: 8px; }
.story-track.still .st-in { height: auto; }
.story-track.still .st-cta { position: static; opacity: 1; margin-top: 16px; }
.story-track.still .st-vis { align-self: start; }
.story-track.still .story-stage[data-at="0"] .fl { display: none; }
