/* AI Buddy · the sections after the film: shared sizes, type and entrance.
   Each section adds its own file (assets/sec-*.css) and marks its <section> with data-sec="name".

   Sizes     --u is the fluid unit: 1% of the page width, capped by the window height, so a short window still fits
   Rhythm    --sec-y is the space above and below a section's content
   Type      .s-lab label · .s-h headline · .s-h3 second headline · .s-sub lead paragraph · em / .s-vi the violet word
   Entrance  assets/kit.js adds .is-armed to a [data-scene] and .is-in to each [data-u] part the first time it is seen.
             The hidden state exists only under .is-armed; without the script, or with motion off, the page is complete. */

.s5 .after{
  --dvh:var(--vh,100vh);
  --u:min(1cqw,calc(var(--dvh) * .0185));
  --sec-y:clamp(64px,calc(var(--dvh) * .12),132px);
  --fs-h2:clamp(34px,calc(var(--u) * 4.4),84px);
  --fs-h3:clamp(26px,calc(var(--u) * 2.9),56px);
  --fs-sub:clamp(16px,calc(var(--u) * 1.16),21px);
  --fs-body:clamp(15px,calc(var(--u) * .94),18px);
  --fs-small:clamp(13px,calc(var(--u) * .76),15px);
  --ink-hi:#f2f2f6;                 /* headlines and answers */
  --ink-mid:#a6a6b1;                /* lead paragraphs: 8 to 1 on the dark page */
  --ink-low:#9a9aa5;                /* labels and small print: 7 to 1 */
  --accent:var(--v2);
  --line:rgba(255,255,255,.11);
  --ease:cubic-bezier(.19,1,.22,1);
}
/* narrow pages (phones, tablets held upright, the phone preview): the space around a section follows the page width,
   not the window height, so two sections sit about 100px apart on a phone instead of a quarter of the screen */
@container (max-width:900px){
  .s5 .after{--sec-y:clamp(48px,13.3cqw,72px)}
}
/* a light section (prices) flips the inks */
.s5 .after .sec[data-lt]{--ink-hi:#111113;--ink-mid:#5f5c57;--ink-low:#68655f;--accent:var(--v);--line:rgba(17,17,19,.12)}

/* rhythm: only sections that have been rebuilt carry data-sec */
.s5 .after>.sec[data-sec]{padding-block:var(--sec-y);color:var(--ink-hi)}
.s5 .after>.sec[data-sec]>.wrap{padding-block:0}

/* type */
.s-lab{display:flex;align-items:center;gap:14px;margin:0 0 clamp(18px,calc(var(--u) * 2),36px);font-family:'Inter Tight','Helvetica Neue',Arial,sans-serif;font-size:11px;line-height:1.4;letter-spacing:.42em;font-weight:500;text-transform:uppercase;color:var(--ink-low)}
.s-lab::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--v)}
.s-h,.s-h3{margin:0;font-family:var(--serif);font-weight:300;line-height:1.02;letter-spacing:-.045em;text-wrap:balance;color:var(--ink-hi)}
.s-h{font-size:var(--fs-h2)}
.s-h3{font-size:var(--fs-h3)}
.s-h em,.s-h3 em,.s-vi{font-style:normal;color:var(--accent)}
.s-sub{margin:clamp(14px,calc(var(--u) * 1.5),30px) 0 0;max-width:34em;font-family:'Inter Tight','Helvetica Neue',Arial,sans-serif;font-weight:400;font-size:var(--fs-sub);line-height:1.55;color:var(--ink-mid);text-wrap:pretty}
.s-w{display:inline-block;white-space:nowrap}
.s-w>span{display:inline-block}

/* entrance: once per part. [data-u] rises; [data-u="fade"] only fades; a [data-words] headline enters word by word */
.is-armed [data-u]{opacity:0;transform:translate3d(0,14px,0)}
.is-armed [data-u="fade"]{transform:none}
.is-armed [data-u].is-in{opacity:1;transform:none;transition:opacity .6s var(--ease),transform .8s var(--ease)}
.is-armed [data-words] .s-w>span{opacity:0;filter:blur(10px);transform:translate3d(0,.28em,0)}
.is-armed .is-in [data-words] .s-w>span,.is-armed [data-words].is-in .s-w>span{opacity:1;filter:none;transform:none;transition:opacity .55s var(--ease),filter .55s var(--ease),transform .75s var(--ease);transition-delay:calc(var(--k) * 38ms)}

/* motion off (the page's own switch, or the system setting): final state, no movement */
html.calm .s5 .after [data-sec] *,html.calm .s5 .after [data-sec] *::before,html.calm .s5 .after [data-sec] *::after{transition:none !important;animation:none !important}
@media (prefers-reduced-motion:reduce){.s5 .after [data-sec] *,.s5 .after [data-sec] *::before,.s5 .after [data-sec] *::after{transition:none !important;animation:none !important}}
