/* Steps told as you scroll (M339, M342). The stage shows only once steps-scroll.js
   holds the section (cms-sst--on, a screen wider than a phone and motion allowed);
   until then, and on phones, the list after it reads down the page. In the
   builder the stage sits still on a step and its dots show each one (cms-sst--still). */
.cms-sst__stage { display: none; }
.cms-sst--on .cms-sst__stage, .cms-sst--still .cms-sst__stage { display: block; }
.cms-sst--on .cms-sst__list, .cms-sst--still .cms-sst__list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cms-sst--on .cms-sst__stage { position: sticky; top: var(--hold-top, 0px); height: calc(100vh - var(--hold-top, 0px)); display: flex; align-items: center; }

/* Beside the steps */
.cms-sst__grid { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.cms-sst--left .cms-sst__copy { order: 2; }
.cms-sst__copy .cms-head { margin: 0; text-align: left; }
.cms-sst__steps { position: relative; list-style: none; margin: 26px 0 0; padding: 0 0 0 22px; }
.cms-sst__steps::before, .cms-sst__steps::after { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: color-mix(in oklab, currentColor 14%, transparent); }
.cms-sst__steps::after { bottom: auto; height: calc((100% - 12px) * var(--sst-p)); background: var(--blue); }
.cms-sst__step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 11px 0; opacity: .6; transition: opacity .35s; }
.cms-sst__step.is-on { opacity: 1; }
.cms-sst__n { font-family: var(--font-display); font-size: 14px; font-weight: 800; line-height: 1.6; color: var(--blue); }
.cms-sst__n svg { width: 20px; height: 20px; }
.cms-sst__t { display: block; font-family: var(--font-display); font-size: 19px; font-weight: 800; line-height: 1.4; color: var(--ink); }
.cms-sst__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.2, .7, .2, 1); }
.cms-sst__more > div { overflow: hidden; }
.cms-sst__step.is-on .cms-sst__more { grid-template-rows: 1fr; }
.cms-sst__more p { margin: 6px 0 0; color: var(--muted); }
.cms-sst small { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.cms-sst__pics { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: 0 30px 60px -36px rgba(17, 34, 64, .5); }
.cms-sst__pic { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(.98); transition: opacity .55s, transform .65s cubic-bezier(.2, .7, .2, 1); }
.cms-sst__pic.is-on { opacity: 1; transform: none; }
.cms-sst__m, .cms-sst__pic picture, .cms-sst__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cms-sst__pic > svg { width: 100%; height: 100%; }
.cms-sst__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.cms-sst__count { font-family: var(--font-display); font-size: 14px; font-weight: 800; color: var(--muted); }
.cms-sst__count b { font-size: 18px; color: var(--ink); }
.cms-sst__dots { display: flex; gap: 7px; }
.cms-sst__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: color-mix(in oklab, currentColor 22%, transparent); cursor: pointer; transition: width .3s, background .3s; }
.cms-sst__dot.is-on { width: 24px; background: var(--blue); }
.cms-sst--on .cms-sst__dots { pointer-events: none; }

/* Filling the window: the stage runs edge to edge, the words over a shade. */
.cms-sec:has(.cms-sst--fill) { padding: 0; }
.cms-sec:has(.cms-sst--fill) .cms-in { max-width: none; padding: 0; }
.cms-sst--fill .cms-sst__stage { position: relative; height: 560px; overflow: hidden; color: #fff; background: #0A1630; }
.cms-sst--fill.cms-sst--on .cms-sst__stage { position: sticky; top: 0; height: 100vh; display: block; }
.cms-sst--fill .cms-sst__pics { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; box-shadow: none; background: none; }
.cms-sst--fill .cms-sst__pic { transform: scale(calc(1.07 - .07 * var(--sst-sp))); transform-origin: 60% 40%; transition: opacity .7s; }
.cms-sst--fill .cms-sst__pic:not(.is-on) { transform: scale(1.07); }
.cms-sst__shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(4, 12, 32, .88) 0%, rgba(4, 12, 32, .62) 32%, rgba(4, 12, 32, 0) 60%), linear-gradient(90deg, rgba(4, 12, 32, .55) 0%, rgba(4, 12, 32, .2) 40%, rgba(4, 12, 32, 0) 60%); }
.cms-sst--strong .cms-sst__shade { background: linear-gradient(0deg, rgba(4, 12, 32, .92) 0%, rgba(4, 12, 32, .72) 40%, rgba(4, 12, 32, .2) 75%), linear-gradient(90deg, rgba(4, 12, 32, .65) 0%, rgba(4, 12, 32, .25) 50%, rgba(4, 12, 32, 0) 70%); }
.cms-sst__top { position: absolute; left: max(22px, calc((100% - 1136px) / 2)); right: max(22px, calc((100% - 1136px) / 2)); top: calc(var(--hold-top, 0px) + 28px); display: flex; justify-content: space-between; align-items: center; }
.cms-sst--fill .cms-kick { color: #fff; opacity: .92; }
.cms-sst--fill .cms-sst__count { color: rgba(255, 255, 255, .78); }
.cms-sst--fill .cms-sst__count b { color: #fff; }
.cms-sst__words { position: absolute; left: max(22px, calc((100% - 1136px) / 2)); bottom: 76px; width: min(560px, calc(100% - 44px)); min-height: 200px; }
.cms-sst--middle .cms-sst__words { left: 50%; transform: translateX(-50%); text-align: center; }
.cms-sst__w { position: absolute; left: 0; right: 0; bottom: 0; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .7s cubic-bezier(.2, .7, .2, 1); }
.cms-sst__w.is-on { opacity: 1; transform: none; transition-delay: .12s; }
.cms-sst__k { display: inline-block; margin-bottom: 12px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.cms-sst--fill .cms-sst__t { font-size: clamp(36px, 5vw, 60px); line-height: 1.04; color: #fff; }
.cms-sst__w p { margin: 14px 0 0; font-size: 18px; color: rgba(255, 255, 255, .92); }
.cms-sst__bars { position: absolute; left: max(22px, calc((100% - 1136px) / 2)); right: max(22px, calc((100% - 1136px) / 2)); bottom: 36px; display: flex; gap: 8px; }
.cms-sst__bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.cms-sst__bars b { display: block; height: 100%; width: 0; background: #fff; }
.cms-sst__bars i.is-done b { width: 100%; }
.cms-sst__bars i.is-on b { width: calc(100% * var(--sst-sp)); }
.cms-sst--fill .cms-sst__dots { position: absolute; right: max(22px, calc((100% - 1136px) / 2)); bottom: 50px; }
.cms-sst--fill .cms-sst__dot { background: rgba(255, 255, 255, .4); }
.cms-sst--fill .cms-sst__dot.is-on { background: #fff; }
.cms-sst--fill.cms-sst--on .cms-sst__dots { display: none; }
.cms-sst--still.cms-sst--fill .cms-sst__bars i.is-on b { width: 40%; }

/* Down the page: on phones, without the script and for less motion. */
.cms-sst__list ol { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 30px; }
.cms-sst__list .cms-head { text-align: left; }
.cms-sst__lpic { margin: 0 0 14px; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--surface); }
.cms-sst__lwords h3 { margin: 4px 0 0; font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--ink); }
.cms-sst__lwords p { margin: 6px 0 0; color: var(--muted); }
.cms-sst--fill .cms-sst__list { padding: 56px 22px; }
/* Filling the window, down the page: each step a tall panel, its picture behind its words. */
.cms-sst--fill .cms-sst__item:not(.cms-sst__item--words) { position: relative; display: flex; align-items: flex-end; min-height: min(560px, 82vh); border-radius: 18px; overflow: hidden; color: #fff; background: #0A1630; }
.cms-sst--fill .cms-sst__item:not(.cms-sst__item--words) .cms-sst__lpic { position: absolute; inset: 0; margin: 0; aspect-ratio: auto; border-radius: 0; }
.cms-sst--fill .cms-sst__item:not(.cms-sst__item--words)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4, 12, 32, .86) 0%, rgba(4, 12, 32, .5) 40%, rgba(4, 12, 32, 0) 70%); }
.cms-sst--fill .cms-sst__item:not(.cms-sst__item--words) .cms-sst__lwords { position: relative; z-index: 1; padding: 0 22px 26px; }
.cms-sst--fill .cms-sst__item:not(.cms-sst__item--words) :is(h3, p, small, .cms-sst__n) { color: #fff; }
@media (max-width: 760px) { .cms-sst--fill .cms-sst__list { padding: 40px 16px; } }
