/* Stories. One idea: the front door to the stories, shown as one dark stage per story. Today there is one,
   and it is told as a picture that is drawn slowly by hand: three ads go into Jev and come out as tags, with three numbers under it.
   Every word and line stands finished with no script or reduced motion; the drawing, the settling and the travelling dots are motion only. */

.st { overflow-x: clip; }
.st dl, .st dd { margin: 0; }
.st-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- hero: three words, then the story on its own dark stage */
.st-hero { padding-top: 88px; padding-bottom: 40px; text-align: left; }
.st-hero .kit-lead { margin-inline: 0; }
.st-hero .kit-hero-actions { justify-content: flex-start; }
.st-hero .kit-hero-wash { height: 100%; background:
  radial-gradient(46% 50% at 50% 72%, color-mix(in srgb, var(--kit-accent) 18%, transparent), transparent 72%),
  radial-gradient(30% 36% at 84% 60%, rgb(120 90 255 / 10%), transparent 72%); }
.st-stage { margin-top: 56px; }

.st-card { text-align: left; position: relative; border-radius: 32px; padding: 56px 56px 0; overflow: hidden; background: #08080b; color: #fff; isolation: isolate;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 8%), 0 50px 100px -40px rgb(60 70 255 / 42%), 0 30px 60px -30px rgb(0 0 0 / 70%); }
.st-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(48% 56% at 70% 42%, rgb(86 100 255 / 26%), transparent 72%), radial-gradient(34% 40% at 6% 98%, rgb(255 110 80 / 12%), transparent 72%); }
.st-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.st-words { min-width: 0; }
.st-card .kit-h2 { color: #fff; }
.st .st-steps { margin-top: 28px; display: flex; flex-direction: column; gap: 20px; }
.st-steps dt { font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: rgb(255 255 255 / 50%); margin-bottom: 8px; }
.st-steps dd { font: 400 18px/27px var(--font-text); color: rgb(255 255 255 / 86%); max-width: 22em; text-wrap: pretty; }
.st-more { margin-top: 30px; color: #fff; }

/* the three numbers, on the stage floor */
.st .st-scan { margin-top: 44px; padding: 26px 0 36px; border-top: 1px solid rgb(255 255 255 / 12%); }
.st-scan-h { margin: 0 0 22px; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: rgb(255 255 255 / 50%); }
.st .st-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.st-nums dt .num { font: 400 44px/1 var(--mono); letter-spacing: -.02em; color: #fff; }
.st-nums dd { margin-top: 10px; font: 400 16px/22px var(--font-text); color: rgb(255 255 255 / 62%); }

.st-more-row { margin: 32px 0 0; }

/* ---------------------------------------------------------------- the drawing: ads in, Jev, tags out */
.st-flow { display: block; width: 100%; height: auto; overflow: visible; }
.st-flow .soft { stroke: rgb(255 255 255 / 58%); stroke-width: 1.8; }
.st-flow .faint { stroke: rgb(255 255 255 / 26%); stroke-width: 3; }
.st-flow .line { stroke: rgb(255 255 255 / 52%); stroke-width: 1.8; }
.st-flow .ring { stroke: #fff; stroke-width: 2.4; }
.st-flow .tag { stroke: rgb(255 255 255 / 80%); stroke-width: 1.8; }
.st-flow .st-halo { fill: rgb(100 112 255 / 16%); stroke: none; filter: blur(26px); }
.st-flow text { font-family: var(--font-text); font-weight: 500; font-size: 17px; fill: #fff; }
.st-flow .st-jev { font-family: var(--font-display); font-weight: 400; font-size: 36px; }
.st-flow .st-cap { font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; fill: rgb(255 255 255 / 46%); }
.st-flow .st-grey { fill: rgb(255 255 255 / 56%); }
.st-flow rect.st-unsure { fill: none; stroke: rgb(255 255 255 / 46%); stroke-width: 1.6; stroke-dasharray: 3 5; stroke-linecap: round; }
.st-flow .st-dot { fill: #fff; stroke: none; opacity: 0; filter: drop-shadow(0 0 6px rgb(140 150 255 / 90%)); }

@media (prefers-reduced-motion: no-preference) {
  .st-flow .kit-draw.kit-armed.is-in [pathLength] { animation-delay: calc(var(--o, 0ms) + var(--dl, 0) * 1ms); }   /* each part of the drawing starts after the one before it */
  .st-flow .kit-draw.kit-armed .st-late { opacity: 0; }
  .st-flow .kit-draw.kit-armed.is-in .st-late { opacity: 1; transition: opacity .9s var(--kit-ease-soft) var(--late, 0ms); }
  /* the travelling dots wait until the drawing is done, then pass through quietly and keep going */
  @supports (offset-path: path("M0 0")) {
    .st-card.is-in .st-dot { offset-path: var(--path); offset-rotate: 0deg; animation: st-run 4.4s cubic-bezier(.45, .05, .3, 1) infinite; animation-delay: calc(4.2s + var(--k, 0s)); }
    .st-card.is-in .st-out { animation-name: st-run-out; animation-delay: calc(4.9s + var(--k, 0s)); }
    @keyframes st-run { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 34% { offset-distance: 100%; opacity: 1; } 40%, 100% { offset-distance: 100%; opacity: 0; } }
    @keyframes st-run-out { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 34% { offset-distance: 100%; opacity: 1; } 40%, 100% { offset-distance: 100%; opacity: 0; } }
  }
  /* the numbers settle one after another while the drawing is made */
  .st-card.is-in .st-nums > div { animation: st-up .9s var(--kit-ease) backwards; }
  .st-card.is-in .st-nums > div:nth-child(1) { animation-delay: .5s; }
  .st-card.is-in .st-nums > div:nth-child(2) { animation-delay: .65s; }
  .st-card.is-in .st-nums > div:nth-child(3) { animation-delay: .8s; }
  @keyframes st-up { from { opacity: 0; transform: translateY(14px); } }
}

/* ---------------------------------------------------------------- the close */
.st-close-band { position: relative; padding: 24px 0 112px; }
.st-close { position: relative; text-align: left; padding: 64px 56px; border-radius: 28px; background: var(--kit-glass); box-shadow: inset 0 0 0 1px var(--kit-line), var(--kit-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); overflow: hidden; }
.st-close::before { content: ""; position: absolute; inset: -30% -10% auto; height: 90%; pointer-events: none; z-index: -1;
  background: radial-gradient(50% 60% at 30% 40%, rgb(255 120 80 / 14%), transparent 70%), radial-gradient(50% 60% at 72% 50%, color-mix(in srgb, var(--kit-accent) 14%, transparent), transparent 70%); }
.st-close .kit-p { margin-inline: 0; font-size: 19px; line-height: 28px; }
.st-close .kit-hero-actions { margin: 28px 0 24px; justify-content: flex-start; }
.st-close .small { max-width: 34em; margin: 0; color: var(--ink-2); }

/* ---------------------------------------------------------------- tablet and phone */
@media (max-width: 1023px) {
  .st-card { padding: 40px 36px 0; border-radius: 28px; }
  .st-top { grid-template-columns: 1fr; gap: 36px; }
  .st-steps dd { max-width: 30em; }
}
@media (max-width: 767px) {
  .st-hero { padding-top: 48px; padding-bottom: 24px; }
  .st-stage { margin-top: 36px; }
  .st-card { padding: 28px 22px 0; border-radius: 24px; }
  .st .st-steps { margin-top: 20px; }
  .st-steps dd { font-size: 17px; line-height: 25px; }
  .st-more { margin-top: 24px; }
  .st-flow { order: -1; width: calc(100% + 24px); margin: 0 -12px; }
  .st-flow .st-cap { font-size: 20px; }
  .st-flow text { font-size: 28px; }
  .st-flow .st-jev { font-size: 44px; }
  .st .st-scan { margin-top: 28px; padding: 20px 0 26px; }
  .st-scan-h { margin-bottom: 16px; }
  .st .st-nums { gap: 12px; }
  .st-nums dt .num { font-size: 26px; }
  .st-nums dd { font-size: 13px; line-height: 18px; margin-top: 8px; }
  .st-close { padding: 40px 22px; border-radius: 22px; }
  .st-close-band { padding-bottom: 72px; }
}
