/* Shared scroll narrative. Only .sx-* elements and explicitly marked content change. */
body.expo-theme .sx-story { position: relative; background: var(--ex-surface); border-block: 1px solid var(--ex-border); padding: 0; }
.sx-pin { padding: 80px 0; }
body.expo-theme .sx-layout { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 64px; }
body.expo-theme .sx-eyebrow { display: block; color: var(--ex-text-2) !important; font-size: 10px; font-weight: 600; letter-spacing: .16em; margin-bottom: 22px; }
body.expo-theme .sx-copy h2 { font-size: clamp(28px,3.4vw,48px); letter-spacing: -.05em; line-height: 1.25; text-wrap: balance; color: var(--ex-text); margin: 0 0 36px; }
.sx-steps { list-style: none; padding: 0; margin: 0; }
.sx-step { display: flex; gap: 20px; padding: 18px 0; border-top: 1px solid var(--ex-border); }
body.expo-theme .sx-step-index { font-size: 12px; color: var(--ex-text-2) !important; padding-top: 4px; }
body.expo-theme .sx-step h3 { font-size: 18px; margin: 0 0 8px; color: var(--ex-text); }
body.expo-theme .sx-step p { font-size: 13px; line-height: 1.8; margin: 0; color: var(--ex-text-2); }
.sx-visual { height: 530px; position: relative; perspective: 1400px; min-width: 0; }
.sx-visual-label { position: absolute; inset: 0 0 auto; display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .1em; color: var(--ex-text-2); }
.sx-deck { position: absolute; inset: 115px 45px 110px; transform-style: preserve-3d; transform: rotateX(48deg) rotateY(-8deg) rotateZ(-28deg); }
.sx-plane { position: absolute; inset: 50% 0 auto; height: 200px; margin-top: -100px; background: var(--ex-bg); border: 1px solid var(--ex-border-strong); box-shadow: var(--ex-shadow-2); display: flex; flex-direction: column; justify-content: space-between; }
.sx-plane-0 { transform: translateZ(100px); }
.sx-plane-1 { transform: translateZ(0px); }
.sx-plane-2 { transform: translateZ(-100px); }
.sx-plane-top,.sx-plane-bottom { display: flex; justify-content: space-between; gap: 10px; padding: 14px 18px; font-size: 9px; color: var(--ex-text-2); letter-spacing: .06em; }
.sx-plane-top { border-bottom: 1px solid var(--ex-border); }
.sx-plane-bottom { border-top: 1px solid var(--ex-border); font-size: 8px; }
.sx-plane-center { display: flex; gap: 28px; align-items: center; padding: 24px; }
body.expo-theme .sx-plane-center strong { color: var(--ex-text); font-size: clamp(22px,2.4vw,34px); line-height: 1.25; letter-spacing: -.04em; }
.sx-glyph { position: relative; display: block; flex: 0 0 82px; height: 82px; }
.sx-glyph i { position: absolute; inset: 0; border: 1px solid var(--ex-text-2); }
.sx-glyph-0 i:nth-child(2) { inset: 12px; }
.sx-glyph-0 i:nth-child(3) { inset: 24px; background: var(--ex-text); }
.sx-glyph-1 i { border-radius: 50%; }
.sx-glyph-1 i:nth-child(2) { transform: scaleX(.5); }
.sx-glyph-1 i:nth-child(3) { transform: scaleY(.5); }
.sx-glyph-2 i { inset: 18px; transform: rotate(45deg); }
.sx-glyph-2 i:nth-child(2) { transform: translate(-18px) rotate(45deg); }
.sx-glyph-2 i:nth-child(3) { transform: translate(18px) rotate(45deg); }
.sx-track { position: absolute; inset: auto 0 0; height: 2px; background: var(--ex-border); }
.sx-track span { display: block; height: 100%; background: var(--ex-text); transform-origin: left; transform: scaleX(var(--sx-progress,1)); }
/* Opt in only after observer support, motion preference and viewport checks. */
.sx-enabled .sx-story { height: 230svh; }
.sx-enabled .sx-pin { position: sticky; top: 80px; height: calc(100svh - 80px); min-height: 640px; padding: 28px 0; display: flex; align-items: center; overflow: clip; }
.sx-enabled .sx-layout { width: 100%; }
.sx-enabled .sx-step { transition: background-color 250ms; }
.sx-enabled .sx-step.is-current { background: var(--ex-bg); }
.sx-enabled .sx-step.is-current h3 { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.sx-enhanced .sx-metric { position: relative; }
.sx-enhanced .sx-metric::after { content: ''; display: block; height: 2px; margin-top: 12px; background: var(--ex-text); transform: scaleX(0); transform-origin: left; transition: transform 850ms cubic-bezier(.16,1,.3,1); }
.sx-enhanced .sx-metric.sx-seen::after { transform: scaleX(1); }
@media(max-width: 900px) {
 body.expo-theme .sx-layout { grid-template-columns: 1fr; gap: 26px; }
 .sx-pin { padding: 64px 0; }
 .sx-visual { height: 400px; }
 .sx-deck { inset: 70px max(40px,12%) 90px; }
 .sx-enabled .sx-story { height: 210svh; }
 .sx-enabled .sx-pin { min-height: 660px; top: 74px; height: calc(100svh - 74px); padding: 20px 0; }
 body.expo-theme .sx-copy h2 { font-size: 28px; margin-bottom: 20px; }
 .sx-eyebrow { margin-bottom: 12px !important; }
 .sx-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
 .sx-step { display: block; padding: 12px 0; }
 body.expo-theme .sx-step h3 { font-size: 14px; margin-top: 8px; }
 body.expo-theme .sx-step p { font-size: 11px; line-height: 1.6; }
 .sx-enabled .sx-visual { height: 330px; }
 .sx-enabled .sx-deck { inset: 65px 15% 75px; }
 .sx-plane-center { gap: 16px; padding: 15px; }
 .sx-glyph { flex-basis: 54px; height: 54px; }
 .sx-glyph-0 i:nth-child(3) { inset: 18px; }
 .sx-plane-top,.sx-plane-bottom { font-size: 7px; padding: 10px; }
 body.expo-theme .sx-plane-center strong { font-size: 22px; }
}
@media(max-width: 480px) {
 body.expo-theme .sx-layout { gap: 12px; }
 body.expo-theme .sx-copy h2 { font-size: 25px; }
 .sx-steps { gap: 8px; }
 .sx-plane-bottom { font-size: 6px; }
 .sx-plane-center { gap: 12px; padding: 12px; }
 body.expo-theme .sx-plane-center strong { font-size: 18px; }
 .sx-deck { inset-inline: 30px; }
 .sx-enabled .sx-deck { inset-inline: 35px; }
 .sx-glyph { flex-basis: 40px; height: 40px; }
 .sx-glyph-0 i:nth-child(2) { inset: 7px; }
 .sx-glyph-0 i:nth-child(3) { inset: 14px; }
 .sx-glyph-2 i { inset: 10px; }
}
@media(prefers-reduced-motion: reduce) {
 .sx-story { height: auto !important; }
 .sx-pin { position: relative !important; height: auto !important; min-height: 0 !important; }
 .sx-step,.sx-metric::after { transition: none !important; }
 .sx-track span,.sx-metric::after { transform: none !important; }
}

@media(max-width: 900px) { .sx-plane { height: 160px; margin-top: -80px; } }
