/* Ample Studio: hero prompt stack v2 (17 Nov 2026). Tokens from the theme; fallbacks shown. */
/* DIALS. Change these values here, or override them in Appearance > Editor > Styles > Additional CSS
   (selector .as-hero-stack .as-stack). Defaults = Pierre's settings of 17 Nov 07:52.
   --as-card-w      card width, outer edge (coloured frame included); each card varies +/- 6 % around it
   --as-card-h      card height, outer edge (coloured frame included)
   --as-card-frame  thickness of the coloured frame; a thicker frame grows inward, the card keeps its size
   --as-card-text   size of the question text
   --as-card-zoom   how much bigger the newest card is while its question is typed (1 = no zoom)
   --as-card-dim    how much the card just under the top one fades into the background (0 = not at all, 1 = fully);
                    older cards fade more, the oldest almost disappears before it leaves
   --as-card-align  question alignment: left or center (it always sits in the middle of the free space, top to bottom)
   --as-card-every  pause, in milliseconds, once a question is fully typed, before the next card arrives
                    (no unit; lower = faster; minimum 200). The typing itself follows the length of the question.
   The phone values (below 600 px wide) are in the media query underneath. */
.as-stack{--as-card-w:410px;--as-card-h:200px;--as-card-frame:3px;--as-card-text:1.25rem;--as-card-zoom:1.15;--as-card-dim:.45;--as-card-align:left;--as-card-every:1400}
@media (max-width:599px){.as-stack{--as-card-w:251px;--as-card-h:134px;--as-card-text:1.0625rem;--as-card-zoom:1.08;--as-card-every:1600}}
/* Clip sideways only (no horizontal scroll); vertically the zoomed card's shadow may run past the stage. */
.as-stack{position:relative;height:clamp(380px,36vw,520px);margin-block:clamp(16px,3vw,40px);overflow-x:clip;overflow-y:visible}
.as-stack-field{position:absolute;inset:0}
.as-sc{position:absolute;padding:var(--as-card-frame);border-radius:10px;background:var(--c,#424B54);height:var(--as-card-h);box-sizing:border-box;
  opacity:0;scale:.92;transition:opacity .35s ease,scale .7s cubic-bezier(.22,1,.36,1),box-shadow .7s ease;will-change:opacity,scale}
.as-sc.is-in{opacity:1;scale:1}
.as-sc.is-in.is-front{scale:var(--as-card-zoom);box-shadow:0 14px 30px rgb(22 27 46 / .16)}
/* The veil that dims the cards behind (set per card by the script). Opacity only: cheap to animate. */
.as-sc::after{content:'';position:absolute;inset:0;border-radius:inherit;background:var(--as-veil-colour,var(--wp--preset--color--oat,#EAE6E1));opacity:var(--veil,0);transition:opacity .7s ease;pointer-events:none}
.as-sc.is-out{opacity:0;scale:.96;transition-duration:.6s}
.as-sc-in{background:#F3F0EC;color:var(--wp--preset--color--navy,#161B2E);height:100%;box-sizing:border-box;border-radius:max(2px,calc(10px - var(--as-card-frame) / 2));padding:11px 14px 10px;display:flex;flex-direction:column;gap:3px}
.as-sc-top{display:flex;align-items:center;gap:7px;font-family:var(--wp--preset--font-family--sans-sc,'Benton Sans SC',sans-serif);font-weight:500;font-size:.75rem;letter-spacing:.04em}
.as-sc-top img{width:16px;height:16px;display:block}
/* The question sits in the middle of the free space between the name and the toolbar (Pierre, 08:23).
   Two lines are reserved, so the text does not jump when it wraps while being typed. */
.as-sc p{margin:auto 0;padding-block:6px;font-weight:500;font-size:var(--as-card-text);line-height:1.25;min-height:2.5em;text-align:var(--as-card-align,left)}
/* The typing caret */
.as-sc-q.is-typing::after{content:'';display:inline-block;width:2px;height:.95em;margin-left:2px;vertical-align:-.1em;background:currentColor;animation:as-caret .8s step-end infinite}
@keyframes as-caret{0%,49%{opacity:1}50%,100%{opacity:0}}
.as-sc-bar{display:flex;align-items:center;gap:12px;opacity:.38}
.as-sc-bar .as-sp{flex:1}
.as-sc-ic{display:block}
@media (max-width:599px){.as-stack{height:360px}}
@media (prefers-reduced-motion:reduce){.as-sc,.as-sc::after{transition:none}.as-sc-q.is-typing::after{animation:none}}
