/* The story pages (/pages/about/, /pages/why-atlas/): pairs with atlas-story.js. Colours come from the palette tokens
 * (--xp-c-*, static/atlas-palette.css), so the switcher recolours these pages like the home page. */

.st-body { background: rgb(var(--xp-c-bg)); }
/* overflow-x: hidden on <body> (old site styles, phones) makes it a scroll box and the pinned scenes stop sticking; clip hides
   the sideways overflow without that */
html:has(> body.st-body), html body.st-body { overflow-x: clip !important; overflow-y: visible !important; }
.st { --ink: rgb(var(--xp-c-ink)); --muted: rgba(var(--xp-c-ink), .64); --line: rgba(var(--xp-c-ink), .12); --acc: rgb(var(--xp-c-a));
  --acc2: rgb(var(--xp-c-a2)); --panel: rgb(var(--xp-c-bg2)); position: relative; overflow-x: clip; color: var(--ink);
  font-family: Tajawal, Inter, system-ui, sans-serif; }
html[lang="en"] .st { font-family: Inter, Tajawal, system-ui, sans-serif; }
.st :where(h1, h2, h3, p, b, span, li, small, blockquote) { color: inherit; }
.st-wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
.st-sec { position: relative; padding-block: clamp(80px, 12vw, 160px); }
.st-kicker { display: inline-flex; gap: 10px; align-items: center; padding: 8px 16px; border: 1px solid var(--line); border-radius: 99px;
  background: rgba(var(--xp-c-ink), .04); font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--muted) !important; }
.st-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 0 rgba(var(--xp-c-a), .6); animation: st-ping 2s infinite; }
@keyframes st-ping { 70% { box-shadow: 0 0 0 10px rgba(var(--xp-c-a), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--xp-c-a), 0); } }
.st-n { display: block; margin-bottom: 14px; font: 900 15px Inter, sans-serif; letter-spacing: .2em; color: var(--acc) !important; }
.st-h1 { margin: 26px 0 24px; max-width: 15ch; font-size: clamp(42px, 7.4vw, 104px); font-weight: 900; line-height: 1.06; letter-spacing: -.01em; text-wrap: balance; }
.st-h2 { margin: 0; font-size: clamp(30px, 4.6vw, 60px); font-weight: 900; line-height: 1.12; text-wrap: balance; }
.st-lead { max-width: 640px; margin: 0; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.9; color: var(--muted) !important; }
.st-sub { max-width: 620px; margin: 16px 0 0; font-size: 18px; line-height: 1.8; color: var(--muted) !important; }
.st-head { margin-bottom: clamp(40px, 6vw, 70px); }

/* hero */
.st-hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding-block: 140px 90px; isolation: isolate; }
.st-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(60% 50% at 75% 30%, rgba(var(--xp-c-a), .22), transparent 70%), radial-gradient(40% 40% at 15% 85%, rgba(var(--xp-c-b), .08), transparent 70%); }
.st-hero-bg::after { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent); mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent); }
.st-ghost { position: absolute; top: 12%; inset-inline-end: -4%; font: 900 clamp(120px, 24vw, 360px) Inter, sans-serif; line-height: .8; letter-spacing: -.04em;
  color: transparent !important; -webkit-text-fill-color: transparent; -webkit-text-stroke: 1px rgba(var(--xp-c-ink), .14); transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
html body .st .st-ghost { color: transparent !important; -webkit-text-fill-color: transparent !important; }
.st-ghost-2 { top: auto; bottom: 6%; inset-inline-end: auto; inset-inline-start: -3%; -webkit-text-stroke-color: rgba(var(--xp-c-a), .2); }
.st-scroll { position: absolute; bottom: 34px; inset-inline-start: 50%; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 14px;
  border: 2px solid rgba(var(--xp-c-ink), .35); }
.st-scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--acc); animation: st-wheel 1.8s infinite; }
@keyframes st-wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* word reveal (atlas-story.js splits .st-words into words) */
.st-w { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(2deg); filter: blur(8px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1), filter .8s; transition-delay: calc(var(--w, 0) * 55ms); }
.st-words.in .st-w { opacity: 1; transform: none; filter: none; }
.st-h1 .st-w:last-child { color: var(--acc) !important; }

/* generic reveal */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 90ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* scroll-lit story: words light up as you read */
.st-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(30px, 6vw, 90px); align-items: start; }
.st-split-head { position: sticky; top: 140px; }
.st-lit-wrap { display: grid; gap: 34px; }
.st-lit { margin: 0; font-size: clamp(22px, 2.6vw, 34px); font-weight: 800; line-height: 1.6; }
.st-lw { opacity: .16; transition: opacity .25s linear; }
.st-lw.on { opacity: 1; }

/* numbers */
.st-num-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.st-num { padding: 30px 28px; border-radius: 26px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(var(--xp-c-ink), .05), rgba(var(--xp-c-ink), .01)); }
.st-num b { display: block; font: 900 clamp(46px, 6vw, 76px) Inter, sans-serif; line-height: 1; letter-spacing: -.03em; }
.st-num em { font-style: normal; color: var(--acc) !important; }
.st-num > span { display: block; margin-top: 12px; color: var(--muted) !important; font-size: 15px; font-weight: 700; }

/* the chain (3M -> Atlas -> center -> you): the line draws with the scroll */
.st-chain-track { position: relative; }
.st-chain-line { position: absolute; top: 34px; inset-inline: 12.5%; width: 75%; height: 4px; overflow: visible; }
html[dir="rtl"] .st-chain-line { transform: scaleX(-1); }
.st-chain-line path { fill: none; stroke: var(--acc); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: calc(1000 - var(--p, 0) * 1000);
  vector-effect: non-scaling-stroke; }
.st-chain-line::before { content: ""; }
.st-chain-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.st-chain-steps li { display: grid; justify-items: center; gap: 12px; text-align: center; opacity: .35; transform: translateY(16px); transition: opacity .5s, transform .5s; }
.st-chain-steps li.on { opacity: 1; transform: none; }
.st-dot { position: relative; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line);
  font-size: 24px; color: var(--muted) !important; transition: background .5s, color .5s, box-shadow .5s; }
.st-chain-steps li.on .st-dot { background: var(--acc); color: rgb(var(--xp-c-on-a)) !important; box-shadow: 0 0 0 10px rgba(var(--xp-c-a), .14), 0 20px 50px rgba(var(--xp-c-a), .35); }
.st-chain-steps b { font-size: 22px; font-weight: 900; }
.st-chain-steps p { max-width: 240px; margin: 0; color: var(--muted) !important; line-height: 1.7; font-size: 15px; }

/* vision */
.st-vision { text-align: center; }
.st-quote { max-width: 26ch; margin: 26px auto 0; font-size: clamp(30px, 4.4vw, 58px); font-weight: 900; line-height: 1.3; }

/* timeline */
.st-time-list { position: relative; display: grid; gap: 34px; margin: 0; padding: 0 0 0 0; padding-inline-start: 40px; list-style: none; }
.st-time-list::before, .st-time-fill { content: ""; position: absolute; top: 6px; bottom: 6px; inset-inline-start: 8px; width: 3px; border-radius: 3px; background: var(--line); }
.st-time-fill { background: var(--acc); bottom: auto; height: calc(var(--p, 0) * (100% - 12px)); }
.st-time-list li { position: relative; }
.st-time-list li::before { content: ""; position: absolute; top: 6px; inset-inline-start: -38px; width: 16px; height: 16px; border-radius: 50%; background: var(--panel); border: 3px solid var(--acc); }
.st-time-list b { font: 900 30px Inter, sans-serif; color: var(--acc) !important; }
.st-time-list p { margin: 6px 0 0; font-size: 18px; line-height: 1.7; color: var(--muted) !important; }

/* value cards, tilting under the pointer */
.st-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; perspective: 1000px; }
.st-card { position: relative; padding: 30px 26px 34px; border-radius: 28px; border: 1px solid var(--line); background: var(--panel); overflow: hidden;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .25s ease-out, border-color .3s, opacity .9s, translate .9s; }
[data-reveal].st-card { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); translate: 0 40px; }
[data-reveal].st-card.in { translate: 0 0; }
.st-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--xp-c-a), .2), transparent 60%);
  opacity: 0; transition: opacity .3s; pointer-events: none; }
.st-card:hover { border-color: rgba(var(--xp-c-a), .45); }
.st-card:hover::before { opacity: 1; }
.st-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: rgba(var(--xp-c-a), .14); color: var(--acc) !important; font-size: 22px; transform: translateZ(30px); }
.st-card h3 { margin: 22px 0 10px; font-size: 24px; font-weight: 900; transform: translateZ(20px); }
.st-card p { margin: 0; color: var(--muted) !important; line-height: 1.75; font-size: 15px; }

/* why-atlas: the reasons stack up like sheets as you scroll */
.st-reasons { padding-top: 40px; padding-bottom: 40px; }
.st-stack { display: grid; gap: 28px; }
.st-sheet { position: sticky; top: calc(110px + var(--i) * 16px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px);
  align-items: center; min-height: min(560px, 72svh); padding: clamp(28px, 4vw, 56px); border-radius: 34px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgb(var(--xp-c-bg2)), rgb(var(--xp-c-bg))); box-shadow: 0 -20px 60px rgba(0, 0, 0, .35);
  transform: scale(calc(1 - var(--s, 0) * .06)); transform-origin: 50% 0; filter: brightness(calc(1 - var(--s, 0) * .35)); }
.st-sheet-text p { margin: 20px 0 26px; max-width: 520px; font-size: 18px; line-height: 1.85; color: var(--muted) !important; }
.st-sheet-art { display: grid; place-items: center; min-height: 260px; border-radius: 26px; border: 1px solid var(--line);
  background: radial-gradient(70% 70% at 50% 40%, rgba(var(--xp-c-a), .16), transparent 70%), rgba(var(--xp-c-ink), .02); overflow: hidden; }
.st-art-chain { display: flex; align-items: center; gap: 14px; font: 900 22px Inter, sans-serif; }
.st-art-chain > span { display: grid; place-items: center; min-width: 74px; height: 74px; padding: 0 14px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.st-art-chain > span:last-child { background: var(--acc); color: rgb(var(--xp-c-on-a)) !important; }
.st-art-chain > i { width: 34px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--acc), transparent); background-size: 200% 100%; animation: st-flow 1.4s linear infinite; }
@keyframes st-flow { to { background-position: -200% 0; } }
.st-art-count { text-align: center; }
.st-art-count b { display: block; font: 900 clamp(70px, 10vw, 130px) Inter, sans-serif; line-height: 1; color: var(--acc) !important; }
.st-art-count small { color: var(--muted) !important; font-size: 16px; font-weight: 700; }
.st-verify { display: grid; gap: 14px; width: min(340px, 88%); padding: 22px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.st-verify-in { direction: ltr; padding: 14px 16px; border-radius: 14px; background: rgba(var(--xp-c-ink), .05); font: 800 clamp(14px, 4vw, 18px) Inter, monospace; letter-spacing: .04em; white-space: nowrap; }
.st-type::after { content: "|"; margin-inline-start: 2px; color: var(--acc); animation: st-caret 1s steps(1) infinite; }
@keyframes st-caret { 50% { opacity: 0; } }
.st-verify-ok { display: flex; gap: 10px; align-items: center; color: #3ddc84 !important; font-weight: 900; opacity: 0; transform: translateY(8px); transition: .4s; }
.st-verify.ok .st-verify-ok { opacity: 1; transform: none; }
.st-cert { width: min(360px, 90%); padding: 20px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.st-cert-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 900; }
.st-cert-car { display: flex; gap: 8px; align-items: center; }
.st-cert-pill { padding: 5px 12px; border-radius: 99px; background: rgba(61, 220, 132, .14); color: #3ddc84 !important; font-size: 13px; transition: .3s; }
.st-cert-body { display: flex; gap: 16px; align-items: center; margin: 18px 0; }
.st-cert-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--muted) !important; font-size: 14px; font-weight: 700; }
.st-qr { flex: 0 0 104px; height: 104px; padding: 8px; border-radius: 14px; background: #fff; display: grid; grid-template-columns: repeat(13, 1fr); gap: 1px; transition: filter .4s, opacity .4s; }
.st-qr i { background: #0b0c10; border-radius: 1px; }
.st-qr i.o { background: transparent; }
.st-cert-switch { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(var(--xp-c-ink), .04);
  color: var(--ink) !important; font: 800 14px Tajawal, Inter, sans-serif; cursor: pointer; }
.st-sw { position: relative; flex: 0 0 44px; height: 24px; border-radius: 99px; background: #3ddc84; transition: background .3s; }
.st-sw::after { content: ""; position: absolute; top: 3px; inset-inline-start: 23px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: inset-inline-start .3s; }
.st-sw-off { display: none; }
.st-cert.closed .st-sw { background: rgba(var(--xp-c-ink), .25); }
.st-cert.closed .st-sw::after { inset-inline-start: 3px; }
.st-cert.closed .st-sw-on { display: none; }
.st-cert.closed .st-sw-off { display: inline; }
.st-cert.closed .st-qr { filter: blur(6px) grayscale(1); opacity: .4; }
.st-cert.closed .st-cert-pill { opacity: .35; }
.st-art-journey ol { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; width: min(300px, 86%); }
.st-art-journey li { position: relative; padding: 14px 18px; padding-inline-start: 50px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); font-weight: 800; }
.st-art-journey li::before { content: ""; position: absolute; top: 50%; inset-inline-start: 18px; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 3px solid var(--line); }
.st-art-journey li.done::before { background: #3ddc84; border-color: #3ddc84; }
.st-art-journey li.now { border-color: rgba(var(--xp-c-a), .5); }
.st-art-journey li.now::before { border-color: var(--acc); animation: st-ping 2s infinite; }

/* compare */
.st-table { display: grid; border-radius: 28px; border: 1px solid var(--line); overflow: hidden; }
.st-tr { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 12px; padding: 20px 26px; border-top: 1px solid var(--line); }
.st-tr:first-child { border-top: 0; }
.st-th { background: rgba(var(--xp-c-ink), .04); font-weight: 900; color: var(--muted) !important; }
.st-th span:nth-child(2) { color: var(--acc) !important; }
.st-tr span:not(:first-child) { text-align: center; font-weight: 800; }
.st-tr span:first-child { font-size: 17px; font-weight: 700; }
.st-tr .y i { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(var(--xp-c-a), .16); color: var(--acc) !important; }
.st-tr .n { color: var(--muted) !important; }
.st-tr .m { color: var(--muted) !important; font-size: 14px; }
.st-compare .st-tr:not(.st-th) { opacity: 0; transform: translateX(30px); transition: opacity .6s, transform .6s; transition-delay: calc(var(--i, 0) * 110ms + 200ms); }
html[dir="rtl"] .st-compare .st-tr:not(.st-th) { transform: translateX(-30px); }
.st-compare.in .st-tr:not(.st-th) { opacity: 1; transform: none; }

/* the network map section */
.st-net-sec { padding-top: 40px; }

/* CTA */
.st-cta { text-align: center; }
.st-cta::before { content: ""; position: absolute; inset: 10% -10%; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, rgba(var(--xp-c-a), .25), transparent 70%); }
.st-cta .st-h2 { max-width: 18ch; margin: 24px auto 40px; font-size: clamp(36px, 6vw, 84px); }
.st-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.st-btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; border-radius: 99px; font: 900 17px Tajawal, Inter, sans-serif; text-decoration: none !important;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), background .25s, box-shadow .25s; transform: translate(var(--mx, 0), var(--my, 0)); }
.st-btn-main { background: var(--acc); color: rgb(var(--xp-c-on-a)) !important; box-shadow: 0 20px 50px rgba(var(--xp-c-a), .35); }
.st-btn-main:hover { box-shadow: 0 24px 70px rgba(var(--xp-c-a), .5); }
.st-btn-ghost { border: 1px solid var(--line); background: rgba(var(--xp-c-ink), .04); color: var(--ink) !important; }
.st-btn-ghost:hover { border-color: rgba(var(--xp-c-a), .5); }
.st-btn-link { color: var(--muted) !important; padding-inline: 14px; }
.st-btn-link:hover { color: var(--ink) !important; }
html[dir="ltr"] .st-dir { transform: scaleX(-1); }

@media (max-width: 960px) {
  .st-split { grid-template-columns: 1fr; }
  .st-split-head { position: static; }
  .st-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-sheet { grid-template-columns: 1fr; top: calc(84px + var(--i) * 10px); min-height: 0; }
  .st-sheet-art { min-height: 220px; }
  .st-chain-line { display: none; }
  .st-chain-steps { grid-template-columns: 1fr; gap: 26px; }
  .st-chain-steps li { grid-template-columns: 72px 1fr; justify-items: start; text-align: start; column-gap: 18px; }
  .st-chain-steps li .st-dot { grid-row: span 2; }
  .st-chain-steps p { max-width: none; }
}
@media (max-width: 600px) {
  .st-cards { grid-template-columns: 1fr; }
  .st-tr { padding: 16px; gap: 8px; }
  .st-tr span:first-child { font-size: 15px; }
  .st-hero { padding-block: 120px 80px; }
  .st-sheet { position: relative; top: auto; transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .st-w, [data-reveal], .st-chain-steps li, .st-compare .st-tr:not(.st-th) { opacity: 1 !important; transform: none !important; filter: none !important; translate: none !important; transition: none !important; }
  .st-lw { opacity: 1; }
  .st-sheet { transform: none; filter: none; }
  .st-kicker i, .st-scroll span, .st-art-chain > i, .st-type::after { animation: none; }
}

/* ================= pinned scenes: atlas-story.js sets each scene's progress (and the derived values) as variables === */
.st-pin { position: relative; height: calc(var(--len, 200) * 1svh); }
.st-pin-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; isolation: isolate; }
.st-h-track { justify-self: start; }

/* scene 1: the headline lifts away, a sheet of film unrolls over the screen */
.st-film-hero { position: relative; z-index: 1; transform: translate3d(0, calc(var(--a, 0) * -16vh), 0) scale(calc(1 - var(--a, 0) * .08));
  opacity: calc(1 - var(--a, 0) * 1.3); filter: blur(calc(var(--a, 0) * 6px)); will-change: transform, opacity; }
.st-film-hero .st-scroll { position: relative; display: block; inset: auto; transform: none; margin-top: 46px; }
.st-film { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(118deg, rgb(var(--xp-c-a2)) 0%, rgb(var(--xp-c-a)) 55%, rgba(var(--xp-c-a), .82) 100%);
  clip-path: inset(0 0 0 calc((1 - var(--s, 0)) * 100%)); }
html[dir="ltr"] .st-film { clip-path: inset(0 calc((1 - var(--s, 0)) * 100%) 0 0); }
.st-film::before { content: ""; position: absolute; inset: 0; opacity: .18;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .5) 0 1px, transparent 1px 7px); }
.st-film-shine { position: absolute; inset: -20% -40%; background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .38) 50%, transparent 58%);
  transform: translate3d(calc(var(--s, 0) * -60%), 0, 0); }
.st-film-roll { position: absolute; top: 0; bottom: 0; width: 34px; left: calc((1 - var(--s, 0)) * 100% - 17px); opacity: calc(1 - var(--t, 0));
  background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(255, 255, 255, .55) 45%, rgba(0, 0, 0, .35)); box-shadow: 0 0 40px rgba(0, 0, 0, .45); border-radius: 17px; }
html[dir="ltr"] .st-film-roll { left: auto; right: calc((1 - var(--s, 0)) * 100% - 17px); }
.st-film-text { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 20px;
  opacity: var(--t, 0); transform: translate3d(0, calc((1 - var(--t, 0)) * 50px), 0) scale(calc(1.15 - var(--t, 0) * .15)); }
.st-film-text b { font: 900 clamp(110px, 22vw, 320px) Inter, sans-serif; line-height: .85; letter-spacing: -.05em; }
.st-film-text > span { font-size: clamp(22px, 3vw, 40px); font-weight: 900; }
.st-film-text small { font-size: clamp(15px, 1.6vw, 20px); font-weight: 700; opacity: .82; }
html body .st .st-film-text :is(b, span, small) { color: rgb(var(--xp-c-on-a)) !important; }

/* scene 3: the chain, sideways */
.st-h-scene .st-pin-stage { align-items: stretch; grid-template-rows: auto 1fr; padding-top: 110px; }
.st-h-head { position: relative; z-index: 2; }
.st-h-rail { position: relative; height: 3px; margin-top: 22px; border-radius: 3px; background: var(--line); overflow: hidden; width: min(420px, 100%); }
.st-h-rail i { position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(var(--p, 0) * 100%); background: var(--acc); }
.st-h-track { display: flex; align-items: center; gap: 4vw; width: max-content; padding-inline: max(20px, calc((100vw - 1180px) / 2 + 20px)) 18vw;
  transform: translate3d(var(--x, 0px), 0, 0); will-change: transform; }
.st-h-panel { position: relative; flex: 0 0 auto; display: grid; align-content: end; gap: 14px; width: min(72vw, 820px); height: min(58svh, 520px);
  padding: clamp(26px, 4vw, 54px); border-radius: 36px; border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(80% 90% at 85% 10%, rgba(var(--xp-c-a), calc(.08 + var(--f, 0) * .22)), transparent 70%), rgb(var(--xp-c-bg2));
  transform: scale(calc(.88 + var(--f, 0) * .12)); opacity: calc(.4 + var(--f, 0) * .6); transition: border-color .3s; }
.st-h-panel.on { border-color: rgba(var(--xp-c-a), .5); }
.st-h-big { position: absolute; top: -.12em; inset-inline-end: -.04em; font: 900 clamp(120px, 20vw, 300px) Inter, sans-serif; line-height: 1; letter-spacing: -.05em;
  color: transparent !important; -webkit-text-fill-color: transparent; -webkit-text-stroke: 1px rgba(var(--xp-c-ink), .16);
  transform: translate3d(calc((var(--f, 0) - 1) * 60px), 0, 0); }
html body .st .st-h-big { -webkit-text-fill-color: transparent !important; }
.st-h-ic { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 22px; background: var(--acc); color: rgb(var(--xp-c-on-a)) !important; font-size: 28px;
  box-shadow: 0 20px 50px rgba(var(--xp-c-a), .35); transform: scale(calc(.8 + var(--f, 0) * .2)); }
.st-h-panel h3 { margin: 6px 0 0; font-size: clamp(34px, 4.6vw, 64px); font-weight: 900; line-height: 1.05; }
.st-h-panel p { max-width: 520px; margin: 0; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.8; color: var(--muted) !important; }
.st-h-you { background: linear-gradient(140deg, rgb(var(--xp-c-a2)), rgb(var(--xp-c-a))); border-color: transparent; }
html body .st .st-h-you :is(h3, p) { color: rgb(var(--xp-c-on-a)) !important; }
.st-h-you .st-h-ic { background: rgb(var(--xp-c-on-a)); color: var(--acc) !important; }

/* scene 4: numbers counted by the scroll, each in a filling ring */
.st-num-ring { position: relative; overflow: hidden; }
.st-num-ring svg { position: absolute; top: 18px; inset-inline-end: 18px; width: 64px; height: 64px; transform: rotate(-90deg); }
.st-num-ring circle { fill: none; stroke: var(--line); stroke-width: 8; }
.st-num-ring .st-ring-fill { stroke: var(--acc); stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: calc(339.3 * (1 - var(--q, 0))); }
.st-num-scene .st-num { transform: translate3d(0, calc((1 - var(--q, 0)) * (40px + var(--i) * 24px)), 0); opacity: calc(.3 + var(--q, 0) * .7); }

/* scene 5: the values on a turning ring */
.st-ring-scene .st-pin-stage { grid-template-rows: auto 1fr; align-items: stretch; padding-top: 110px; }
.st-ring { --R: min(360px, 46vw); display: grid; place-items: center; perspective: 1500px; }
.st-ring-spin { position: relative; width: min(380px, 74vw); height: min(400px, 50svh); transform-style: preserve-3d;
  transform: translateZ(calc(var(--R) * -1)) rotateY(calc(var(--rot, 0) * -1deg)); will-change: transform; }
html[dir="ltr"] .st-ring-spin { transform: translateZ(calc(var(--R) * -1)) rotateY(calc(var(--rot, 0) * 1deg)); }
.st-ring-card { position: absolute; inset: 0; display: grid; align-content: end; gap: 12px; padding: 32px; border-radius: 32px; border: 1px solid var(--line);
  background: radial-gradient(90% 80% at 80% 0%, rgba(var(--xp-c-a), .2), transparent 70%), rgb(var(--xp-c-bg2));
  transform: rotateY(calc(var(--k) * 90deg)) translateZ(var(--R)); -webkit-backface-visibility: hidden; backface-visibility: hidden; transition: border-color .4s, box-shadow .4s; }
html[dir="ltr"] .st-ring-card { transform: rotateY(calc(var(--k) * -90deg)) translateZ(var(--R)); }
.st-ring-card.front { border-color: rgba(var(--xp-c-a), .6); box-shadow: 0 40px 100px rgba(var(--xp-c-a), .25); }
.st-ring-card .st-ic { width: 66px; height: 66px; font-size: 26px; }
.st-ring-card h3 { margin: 10px 0 0; font-size: clamp(34px, 4vw, 52px); font-weight: 900; }
.st-ring-card p { margin: 0; color: var(--muted) !important; font-size: 17px; line-height: 1.75; }

/* the ending: the accent floods the screen */
.st-cta { text-align: center; }
.st-cta::before { display: none; }
.st-cta .st-pin-stage { place-items: center; }
.st-flood { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 50%, rgb(var(--xp-c-a)), rgb(var(--xp-c-a2)));
  clip-path: circle(calc(var(--f, 0) * 80%) at 50% 55%); }
.st-orbit { position: absolute; inset-inline: 0; bottom: 6svh; z-index: -1; white-space: nowrap; overflow: hidden; direction: ltr; pointer-events: none; }
.st-orbit span { display: inline-block; font: 900 clamp(70px, 11vw, 170px) Inter, sans-serif; letter-spacing: -.03em; color: transparent !important;
  -webkit-text-fill-color: transparent; -webkit-text-stroke: 1px rgba(var(--xp-c-ink), .22); transform: translate3d(calc(var(--p, 0) * -40%), 0, 0); }
html body .st .st-orbit span { -webkit-text-fill-color: transparent !important; }
.st-cta-in { opacity: var(--t, 0); transform: translate3d(0, calc((1 - var(--t, 0)) * 60px), 0) scale(calc(.92 + var(--t, 0) * .08)); }
.st-cta .st-h2 { max-width: 16ch; margin: 24px auto 40px; font-size: clamp(40px, 7vw, 110px); line-height: 1.05; }
.st-cta.flooded .st-kicker { border-color: rgba(var(--xp-c-on-a), .3); background: rgba(var(--xp-c-on-a), .1); }
html body .st .st-cta.flooded :is(.st-h2, .st-kicker, .st-btn-link) { color: rgb(var(--xp-c-on-a)) !important; }
.st-cta.flooded .st-kicker i { background: rgb(var(--xp-c-on-a)); }
.st-cta.flooded .st-orbit span { -webkit-text-stroke-color: rgba(var(--xp-c-on-a), .3); }
html body .st .st-cta.flooded .st-btn-main { background: rgb(var(--xp-c-bg)); color: rgb(var(--xp-c-ink)) !important; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
html body .st .st-cta.flooded .st-btn-ghost { border-color: rgba(var(--xp-c-on-a), .45); background: rgba(var(--xp-c-on-a), .08); color: rgb(var(--xp-c-on-a)) !important; }

@media (max-width: 760px) {
  .st-h-panel { width: 84vw; height: min(62svh, 520px); }
  .st-ring { --R: 56vw; }
  .st-ring-spin { width: 78vw; height: min(380px, 52svh); }
  .st-h-scene .st-pin-stage, .st-ring-scene .st-pin-stage { padding-top: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .st-pin { height: auto; }
  .st-pin-stage { position: relative; height: auto; min-height: 100svh; padding-block: 120px 80px; }
  .st-film { display: none; }
  .st-film-hero, .st-cta-in, .st-num-scene .st-num { opacity: 1; transform: none; filter: none; }
  .st-h-track { flex-direction: column; width: auto; padding-inline: 20px; transform: none; }
  .st-h-panel { width: 100%; transform: none; opacity: 1; }
  .st-ring-spin { transform: none; width: 100%; height: auto; display: grid; gap: 16px; }
  .st-ring-card { position: relative; transform: none; }
  .st-flood { clip-path: none; }
  .st-num-ring .st-ring-fill { stroke-dashoffset: 0; }
}
.st-table--2 .st-tr { grid-template-columns: minmax(0, 1fr) 64px; }
