/* One shape: the hub card becomes the pill and the Today window. one-shape.js
   writes its box, colors, faces and row states inline, so nothing here
   transitions them. Row parts at rest: source-live-hero-story.css. */

/* The hub card stays for measuring; the shape draws it. */
html:not(.static-home) .unified-scroll:not(.is-static) .partnership-business.is-shape-anchor{visibility:hidden}

/* The shape and its three faces */
html:not(.static-home) .unified-scroll .story__screen{--shape-bg:#fff;--shape-radius:1.3cqw;position:absolute;overflow:hidden;contain:layout paint;background:var(--shape-bg);border-radius:var(--shape-radius)}
/* Faces: card (<b> name, <small> detail), pill (text), window (bar, body, toast). */
html:not(.static-home) .unified-scroll .story__face--card,
html:not(.static-home) .unified-scroll .story__face--pill,
html:not(.static-home) .unified-scroll .story__face--window{position:absolute;left:0;top:0;line-height:normal}
html:not(.static-home) .unified-scroll .story__face--card,
html:not(.static-home) .unified-scroll .story__face--pill{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#fff;text-align:center;white-space:nowrap}
html:not(.static-home) .unified-scroll .story__face--card{flex-direction:column;gap:.42em;font:600 26px/1.08 var(--font-body);letter-spacing:-.045em}
html:not(.static-home) .unified-scroll .story__face--card b{font:inherit}
html:not(.static-home) .unified-scroll .story__face--card small{display:flex;align-items:center;gap:.7em;font:500 .385em/1.5 var(--font-body);letter-spacing:.01em;color:#e4efff}
html:not(.static-home) .unified-scroll .story__face--pill{gap:8px;font:500 14px/1 var(--font-body)}
html:not(.static-home) .unified-scroll .story__face--card small::before,
html:not(.static-home) .unified-scroll .story__face--pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
/* Laid out at the finished window's size (the stack box inside the 1px
   border), so the rows never reflow while the shape grows. */
html:not(.static-home) .unified-scroll .story__face--window{width:calc(56cqw - 2px);height:calc(56cqh - 2px);display:flex;flex-direction:column}
@media(max-width:700px){
  html:not(.static-home) .unified-scroll .story__face--window{width:calc(90cqw - 2px);height:calc(44cqh - 2px)}
}

/* The waiting count hugs its text; the chip keeps today's 10cqw floor (the
   driver adds its 24 px CHIP_PAD), so the count visibly stretches into it. */
html:not(.static-home) .unified-scroll:not(.is-static) .story__count:not(.is-clear){min-width:0;white-space:nowrap}
html:not(.static-home) .unified-scroll:not(.is-static) .story__count-done{min-width:calc(10cqw - 24px)}

/* Row 1's loader ring */
html:not(.static-home) .unified-scroll .story__ring{color:var(--accent);stroke-width:2.2;stroke-dasharray:47 63;transform-origin:50% 50%;overflow:visible}

/* Row controls, beside the age. While the row waits the control is in the flow
   of the meta slot's first column (still positioned, so its knob measures
   against it): the slot widens by it and its fade, and a long waiting line
   truncates instead of running under it. Done, it leaves the flow again and
   the tag sets the slot. */
html:not(.static-home) .unified-scroll .story__ctl{display:flex;align-items:center;background-color:#fdfcfa;color:var(--text-3);font:600 .82cqw/1 var(--font-mono);letter-spacing:.06em;white-space:nowrap}
html:not(.static-home) .unified-scroll .story__row:not(.is-done) .story__ctl{position:relative;right:auto;top:auto;translate:none;margin:0 .6cqw 0 1.2cqw}
html:not(.static-home) .unified-scroll .story__ctl::after{content:"";position:absolute;right:100%;top:0;bottom:0;width:1.2cqw;background:linear-gradient(90deg,#fdfcfa00,#fdfcfa)}
html:not(.static-home) .unified-scroll .story__ctl :is(i,em){font-style:normal}
/* Days: five cells, the <b> thumb */
html:not(.static-home) .unified-scroll .story__ctl--days{height:2.1cqw;padding:0 .16cqw;border-radius:.57cqw;background:#eef2f8;box-shadow:inset 0 0 0 1px var(--rule-strong)}
html:not(.static-home) .unified-scroll .story__ctl--days i{position:relative;z-index:1;display:grid;place-items:center;width:1.6cqw}
html:not(.static-home) .unified-scroll .story__ctl--days b{position:absolute;left:.16cqw;top:.16cqw;bottom:.16cqw;width:1.6cqw;border-radius:.4cqw;background:var(--accent)}
/* Stamps: ten empty rings under dots that grow in */
html:not(.static-home) .unified-scroll .story__ctl--stamps{gap:.33cqw;background:radial-gradient(circle at .37cqw 50%,transparent .28cqw,#c6d2e3 .29cqw .36cqw,transparent .37cqw) 0 0/1.07cqw 100% repeat-x #fdfcfa}
html:not(.static-home) .unified-scroll .story__ctl--stamps i{width:.74cqw;height:.74cqw;border-radius:50%;background:var(--accent);transform:scale(0)}
/* Call: three level bars */
html:not(.static-home) .unified-scroll .story__ctl--call{gap:.57cqw;height:2.1cqw;padding:0 .82cqw;border-radius:999px;background:#e0f2e9;color:#1c7a44}
html:not(.static-home) .unified-scroll .story__ctl--call i{width:.25cqw;height:.66cqw;border-radius:.16cqw;background:currentColor}
/* Toggle: track (--toggle-bg), <b> knob, label */
html:not(.static-home) .unified-scroll .story__ctl--toggle{gap:.66cqw}
html:not(.static-home) .unified-scroll .story__ctl--toggle::before{content:"";width:3.1cqw;height:1.64cqw;border-radius:999px;background:var(--toggle-bg,#cfd8e5)}
html:not(.static-home) .unified-scroll .story__ctl--toggle b{position:absolute;left:.16cqw;top:.16cqw;width:1.32cqw;height:1.32cqw;border-radius:999px;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25)}

/* The "Was:" tooltip and the toast */
html:not(.static-home) .unified-scroll .story__was{padding:.33cqw .65cqw;border-radius:.5cqw;background:#122033;color:#fff;font:500 .82cqw/1.2 var(--font-mono);white-space:nowrap}
@media(hover:hover) and (pointer:fine){
  html:not(.static-home) .unified-scroll .story__row.is-done:hover .story__was{opacity:1}
}
html:not(.static-home) .unified-scroll .story__row.is-tip .story__was{opacity:1}
/* iOS only sends a tap's click to a pointer target */
@media(pointer:coarse){
  html:not(.static-home) .unified-scroll .story__row.is-done{cursor:pointer}
}
/* The toast rises into the bar, the one strip with no row text under it; the
   body, stacked over it, hides it until it has risen into the bar. */
html:not(.static-home) .unified-scroll .story__body{position:relative;z-index:1;background:#fff}
html:not(.static-home) .unified-scroll .story__toast{top:3.2cqh;bottom:auto;translate:0 -50%;display:flex;align-items:center;gap:.65cqw;padding:.75cqw 1.15cqw;border-radius:999px;background:#122033;color:#fff;font:500 1.05cqw/1 var(--font-body);white-space:nowrap;box-shadow:0 .8cqw 1.9cqw -1cqw rgba(0,0,0,.6)}
html:not(.static-home) .unified-scroll .story__toast svg{stroke:#8be0a8;stroke-width:3}

/* Phones */
@container (orientation:portrait){
  html:not(.static-home) .unified-scroll:not(.is-static) .story__count-done{min-width:calc(24cqw - 24px)}
  html:not(.static-home) .unified-scroll .story__ctl{font-size:min(1.9cqw,1.05cqh)}
  html:not(.static-home) .unified-scroll .story__ctl::after{width:2.6cqw}
  html:not(.static-home) .unified-scroll .story__row:not(.is-done) .story__ctl{margin:0 1.4cqw 0 2.6cqw}
  html:not(.static-home) .unified-scroll .story__ctl--days{height:4.8cqw;padding:0 .37cqw;border-radius:1.3cqw}
  html:not(.static-home) .unified-scroll .story__ctl--days i{width:3.7cqw}
  html:not(.static-home) .unified-scroll .story__ctl--days b{left:.37cqw;top:.37cqw;bottom:.37cqw;width:3.7cqw;border-radius:.9cqw}
  html:not(.static-home) .unified-scroll .story__ctl--stamps{gap:.76cqw;background-image:radial-gradient(circle at .85cqw 50%,transparent .66cqw,#c6d2e3 .67cqw .84cqw,transparent .85cqw);background-size:2.46cqw 100%}
  html:not(.static-home) .unified-scroll .story__ctl--stamps i{width:1.7cqw;height:1.7cqw}
  html:not(.static-home) .unified-scroll .story__ctl--call{gap:1.3cqw;height:4.8cqw;padding:0 1.9cqw}
  html:not(.static-home) .unified-scroll .story__ctl--call i{width:.6cqw;height:1.5cqw;border-radius:.4cqw}
  html:not(.static-home) .unified-scroll .story__ctl--toggle{gap:1.5cqw}
  html:not(.static-home) .unified-scroll .story__ctl--toggle::before{width:7.1cqw;height:3.8cqw}
  html:not(.static-home) .unified-scroll .story__ctl--toggle b{left:.4cqw;top:.4cqw;width:3cqw;height:3cqw}
  html:not(.static-home) .unified-scroll .story__was{padding:.8cqw 1.5cqw;border-radius:1cqw;font-size:min(1.9cqw,1.05cqh)}
  html:not(.static-home) .unified-scroll .story__toast{top:2.8cqh;gap:1.5cqw;padding:1.7cqw 2.6cqw;font-size:min(2.6cqw,1.5cqh)}
}

/* A plate lifts under the pointer */
html:not(.static-home) .unified-scroll .story__layer.is-lift{translate:0 -6px}
@media(prefers-reduced-motion:no-preference){
  html:not(.static-home) .unified-scroll:not(.is-static) .story__layer{transition:translate .18s ease-out}
}

/* The progress nav drops "See the work" on phones */
@media(max-width:700px){
  html:not(.static-home) .unified-scroll .unified-progress a{display:none}
}

/* Book button: hover adds 6 px of right padding and moves the arrow 4 px; a
   press dips the blue fill to .97. The padding goes on the arrow because the
   button's own padding differs by breakpoint; the fill sits on ::before so the
   press never scales the text. */
@media(prefers-reduced-motion:no-preference){
  html:not(.static-home) .unified-scroll:not(.is-static) .canvas-actions .button{position:relative;isolation:isolate;background:none}
  html:not(.static-home) .unified-scroll:not(.is-static) .canvas-actions .button::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:var(--blue);transition:transform .15s}
  html:not(.static-home) .unified-scroll:not(.is-static) .canvas-actions .button:hover::before{background:var(--blue-hover)}
  html:not(.static-home) .unified-scroll:not(.is-static) .canvas-actions .button:active::before{transform:scale(.97)}
  html:not(.static-home) .unified-scroll:not(.is-static) .canvas-actions .button span{transition:padding-right .25s cubic-bezier(.2,.8,.2,1),transform .25s cubic-bezier(.2,.8,.2,1)}
}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
  html:not(.static-home) .unified-scroll:not(.is-static) .canvas-actions .button:hover span{padding-right:6px;transform:translateX(4px)}
}

/* Reduced motion: the finished window, no pill, no tooltips */
html:not(.static-home) .unified-scroll.is-static .story__face--window{inset:0;width:auto;height:auto}
html:not(.static-home) .unified-scroll.is-static :is(.story__face--card,.story__face--pill,.story__ctl,.story__ring,.story__toast,.story__was){display:none}
/* Each row prints what it was under what got done */
html:not(.static-home) .unified-scroll.is-static .story__row-text{row-gap:2px}
html:not(.static-home) .unified-scroll.is-static .story__row-wait{grid-area:2/1;opacity:1!important;transform:none!important;filter:none!important}
html:not(.static-home) .unified-scroll.is-static .story__row-wait b{font:500 10px/1.1 var(--font-body);color:var(--text-3)}
html:not(.static-home) .unified-scroll.is-static .story__row-wait small{display:none}
@media(max-width:700px){
  html:not(.static-home) .unified-scroll.is-static .story__row-wait b{font-size:9px}
}
