/* v5 (preview): one pinned, scrubbed 3D chapter. Phone on the right, copy on the left (desktop); phone above copy (mobile). */
.x3-off .x3-studio{display:none}
.x3-studio{position:relative;height:500vh;background:radial-gradient(120% 75% at 62% 45%,#fbfbfd 0%,#eff0f3 55%,#e5e6ea 100%)}
.x3-stick{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden;contain:layout paint}
.x3-stick .x3-anchor{position:absolute;inset:0}
.x3-cv{position:absolute;inset:0;width:100%;height:100%;display:block}
.x3-copy{position:absolute;left:max(24px,calc((100vw - 1180px)/2));top:0;bottom:0;width:min(42vw,500px);pointer-events:none}
.x3-c{position:absolute;left:0;right:0;top:50%;margin-top:-120px;opacity:0;visibility:hidden;will-change:opacity,transform;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display",Inter,system-ui,sans-serif;color:#1d1d1f}
.x3-c0{top:auto;bottom:9vh;margin:0;left:0;right:0;text-align:center}
.x3-eye{margin:0 0 12px;font:600 15px/1.35 inherit;font-family:inherit;letter-spacing:.01em;color:#86868b}
.x3-c0 .x3-eye{font-size:15px;letter-spacing:.02em}
.x3-h{margin:0;font-family:inherit;font-weight:700;font-size:clamp(32px,3.6vw,52px);line-height:1.07;letter-spacing:-.025em;color:#1d1d1f;text-wrap:balance}
.x3-h.m{font-size:clamp(26px,2.5vw,36px);line-height:1.15;letter-spacing:-.02em}
.x3-s{margin:18px 0 0;font-family:inherit;font-size:clamp(17px,1.35vw,19px);line-height:1.47;letter-spacing:-.01em;color:#6e6e73;max-width:30em;text-wrap:pretty}
.x3-s b{color:#1d1d1f;font-weight:600}
.x3-dots{position:absolute;left:max(24px,calc((100vw - 1180px)/2));bottom:9vh;display:flex;gap:8px}
.x3-dot{width:8px;height:8px;border-radius:50%;background:rgba(0,0,0,.16);transition:background-color .4s,transform .4s cubic-bezier(.22,1,.36,1)}
.x3-dot.on{background:#1d1d1f;transform:scale(1.25)}
.x3-studio::after{content:"";position:absolute;left:0;right:0;bottom:0;height:22vh;background:linear-gradient(rgba(245,245,247,0),#f5f5f7);pointer-events:none}
/* card pictures get a scrubbed, transform-only parallax from x3d.js; the hover zoom would fight it */
.x3-on body.home .tc:hover .tc-vis img{transform:none}
@media (max-width:860px){
  .x3-studio{height:420vh}
  .x3-copy{left:20px;right:20px;width:auto;top:auto;bottom:0;height:42%}
  .x3-c{top:auto;bottom:calc(7vh + 18px);margin:0;text-align:center}
  .x3-c0{left:0;right:0;bottom:7vh}
  .x3-h{font-size:clamp(26px,7.4vw,34px)}
  .x3-h.m{font-size:clamp(20px,5.6vw,24px)}
  .x3-s{margin-top:10px;font-size:15px;line-height:1.42;margin-left:auto;margin-right:auto}
  .x3-dots{left:50%;transform:translateX(-50%);bottom:3.2vh}
}
@media (prefers-color-scheme:dark){
  .x3-studio{background:radial-gradient(120% 75% at 62% 45%,#2a2a2e 0%,#161618 60%,#0b0b0c 100%)}
  .x3-h,.x3-c{color:#f5f5f7}.x3-s{color:#a1a1a6}.x3-s b{color:#f5f5f7}
  .x3-dot{background:rgba(255,255,255,.2)}.x3-dot.on{background:#f5f5f7}
  .x3-studio::after{background:linear-gradient(rgba(0,0,0,0),#000)}
}
/* v5.2: touch = one screen, not pinned; the story autoplays on a clock when it is in view */
@media (hover:none) and (pointer:coarse){.x3-studio{height:100vh;height:100svh}.x3-stick{position:relative}.x3-studio::after{height:12vh}}
.x3-auto .x3-studio{height:100vh;height:100svh}.x3-auto .x3-stick{position:relative}
/* v3.8: after the chapter has played once it stays a single still screen (no pin, no replay on scroll-up) */
.x3-played .x3-studio{height:100vh;height:100svh}.x3-played .x3-stick{position:relative}.x3-played .x3-studio::after{height:12vh}
