/* ============================================================
   Explore in 3D — scroll-driven Pressure Tanker ISO explainer
   (pressure-tanker-iso.html #explore-3d, driven by assets/js/tanker-3d.js)

   Two layouts share one markup:
   · 3D (default when JS runs): a tall scroll track with a sticky,
     full-height stage — WebGL canvas, leader-line labels, chapter copy
     and a chapter rail. Only the active chapter is visible; the others
     stay in the DOM (opacity 0) for screen readers and search engines.
   · Static (no JS, no WebGL, init failure or a bundle that never ran →
     .x3d--static; also print): the same chapters as a list of cards
     with the product photos.
   ============================================================ */

.x3d{
  --x3d-bg:#050c1d;
  --x3d-ink:#f4f7fb;
  --x3d-text:#b3c2d9;
  --x3d-dim:#7f90aa;
  --x3d-line:rgba(255,255,255,.14);
  /* copy column aligned with the site grid (.wrap: 1200px, 24px padding) */
  --x3d-gutter:max(40px, calc((100vw - 1200px) / 2 + 24px));
  --x3d-panel-w:clamp(300px, 29vw, 410px);
  --x3d-ease:cubic-bezier(.2,.7,.15,1);
  /* scroll per chapter: each chapter owns one equal slice of the track. 64vh with a mouse,
     trackpad or keyboard (Space / Page Down step one chapter while the stage is pinned); touch
     screens get more (below), since a flick's momentum carries the page much further */
  --x3d-step:max(64vh, 380px);
  --x3d-layout:side;
  position:relative;
  padding:0;
  scroll-margin-top:-24px; /* anchor links (#explore-3d) land exactly where the stage sticks */
  background:var(--x3d-bg);
  color:var(--x3d-ink);
  isolation:isolate;
}
/* soft hand-over from the page hero into the stage (no hard edge) */
.x3d::before{content:"";position:absolute;left:0;right:0;top:calc(-1 * clamp(56px, 11vw, 150px));height:clamp(56px, 11vw, 150px);z-index:1;pointer-events:none;
  background:linear-gradient(180deg, rgba(7,18,40,0) 0%, rgba(7,18,40,.55) 55%, #071228 100%)}

/* touch: about one ordinary swipe per chapter (a short landscape phone still gets 480 px) */
@media (pointer:coarse){ .x3d{--x3d-step:max(85vh, 480px)} }

/* ---------- 3D layout ---------- */
/* the stage (one screen) plus one --x3d-step of scroll per chapter (--x3d-n, set on the section) */
.x3d-track{position:relative;height:calc(100vh - var(--header-h) + var(--x3d-n, 11) * var(--x3d-step))}
@supports (height:100svh){ .x3d-track{height:calc(100svh - var(--header-h) + var(--x3d-n, 11) * var(--x3d-step))} }
.x3d-stage{
  position:sticky;top:var(--header-h);
  height:calc(100vh - var(--header-h));
  overflow:hidden;
  background:
    radial-gradient(ellipse 70% 62% at 62% 50%, rgba(28,74,160,.30) 0%, rgba(18,49,122,.12) 42%, rgba(5,12,29,0) 72%),
    radial-gradient(ellipse 120% 90% at 60% 110%, #0d2250 0%, rgba(10,27,61,0) 60%),
    linear-gradient(180deg, #071228 0%, #050c1d 55%, #040914 100%);
}
@supports (height:100svh){ .x3d-stage{height:calc(100svh - var(--header-h))} }

.x3d-view{position:absolute;inset:0;opacity:0;transition:opacity 1s ease .1s;
  /* the model dissolves before it reaches the copy column (labels are not masked) */
  -webkit-mask-image:linear-gradient(90deg, transparent calc(var(--x3d-gutter) + var(--x3d-panel-w) * .5), #000 calc(var(--x3d-gutter) + var(--x3d-panel-w) + 48px));
          mask-image:linear-gradient(90deg, transparent calc(var(--x3d-gutter) + var(--x3d-panel-w) * .5), #000 calc(var(--x3d-gutter) + var(--x3d-panel-w) + 48px))}
.x3d.is-ready .x3d-view{opacity:1}
.x3d-view canvas{display:block;width:100%;height:100%;touch-action:pan-y;outline:none}
.x3d.can-orbit .x3d-view canvas{cursor:grab}
.x3d.is-dragging .x3d-view canvas{cursor:grabbing}
.x3d-view canvas:focus-visible{outline:2px solid var(--green);outline-offset:-6px}

/* the stage's bottom edge fades into the section once the last chapter has been read
   (--x3d-exit, 0..1, set by the script), so the floor glow does not end in a hard line as the
   stage scrolls away */
.x3d-view::after{content:"";position:absolute;left:0;right:0;bottom:0;height:170px;pointer-events:none;opacity:var(--x3d-exit,0);
  background:linear-gradient(0deg, #050c1d 0, rgba(5,12,29,.78) 36px, rgba(5,12,29,.42) 84px, rgba(5,12,29,.14) 132px, rgba(5,12,29,0) 170px)}
/* legibility scrim behind the copy column (an eased fall-off, so its edge has no visible corner),
   a soft edge behind the chapter rail, and a short fade under the header (close-ups that run up
   past the top of the stage dissolve there instead of being sliced) */
.x3d-stage::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  --x3d-scrim:calc(var(--x3d-gutter) + var(--x3d-panel-w) - 40px);
  background:
    linear-gradient(180deg, rgba(7,18,40,.94) 0, rgba(7,18,40,.62) 14px, rgba(7,18,40,.22) 32px, rgba(7,18,40,.05) 46px, rgba(7,18,40,0) 56px),
    linear-gradient(90deg, rgba(5,12,29,.92) 0, rgba(5,12,29,.92) var(--x3d-scrim), rgba(5,12,29,.864) calc(var(--x3d-scrim) + 36px), rgba(5,12,29,.721) calc(var(--x3d-scrim) + 72px), rgba(5,12,29,.529) calc(var(--x3d-scrim) + 108px), rgba(5,12,29,.324) calc(var(--x3d-scrim) + 144px), rgba(5,12,29,.144) calc(var(--x3d-scrim) + 180px), rgba(5,12,29,.026) calc(var(--x3d-scrim) + 216px), rgba(5,12,29,0) calc(var(--x3d-scrim) + 240px)),
    linear-gradient(270deg, rgba(5,12,29,.6) 0, rgba(5,12,29,.42) 34px, rgba(5,12,29,.2) 72px, rgba(5,12,29,.07) 110px, rgba(5,12,29,0) 140px)}
/* hairline under the sticky header (not on the opening chapter, which follows on from the hero) */
.x3d-stage::after{content:"";position:absolute;left:0;right:0;top:0;height:1px;z-index:1;transition:opacity .5s ease;background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.08) 30%,rgba(255,255,255,.08) 70%,rgba(255,255,255,0))}
.x3d:not(.is-ready) .x3d-stage::after,.x3d.is-first .x3d-stage::after{opacity:0}

/* loader (only visible if the model is not ready when the stage is in view) */
.x3d-loader{position:absolute;left:62%;top:50%;z-index:2;width:44px;height:44px;margin:-22px 0 0 -22px;transition:opacity .4s ease,visibility 0s linear 0s}
.x3d-loader span{display:block;width:100%;height:100%;border-radius:50%;border:2px solid rgba(255,255,255,.12);border-top-color:var(--green);animation:x3dSpin .9s linear infinite}
.x3d.is-ready .x3d-loader{opacity:0;visibility:hidden;transition:opacity .4s ease,visibility 0s linear .4s}
.x3d.is-ready .x3d-loader span{animation:none}
@keyframes x3dSpin{to{transform:rotate(360deg)}}

/* section heading: small label top-left */
.x3d-heading{position:absolute;z-index:3;left:var(--x3d-gutter);top:26px;margin:0;display:flex;align-items:center;gap:10px;
  font-size:.72rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:rgba(223,232,245,.62);line-height:1.4;transition:opacity .5s ease}
.x3d.is-ready:not(.is-first) .x3d-heading{opacity:0}
.x3d-heading-mark{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px rgba(144,195,31,.18)}

/* skip link: a quiet, always-visible way out of the tour (bottom right, under the rail) */
.x3d-skip{position:absolute;z-index:5;right:18px;bottom:16px;display:inline-flex;align-items:center;gap:6px;padding:.5em .85em;border-radius:999px;
  font-size:.7rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;line-height:1.2;color:rgba(223,232,245,.6);text-decoration:none;
  transition:opacity .4s ease,color .2s ease,background-color .2s ease}
.x3d-skip svg{width:12px;height:12px;opacity:.8}
.x3d-skip:hover{color:#fff}
.x3d-skip:focus-visible{color:var(--navy);background:var(--green);outline:3px solid #fff;outline-offset:2px;opacity:1}
.x3d.is-late .x3d-skip:not(:focus-visible){opacity:0;pointer-events:none}
/* touch screens: a larger invisible hit area around the small skip link (the visuals stay as they are) */
@media (pointer:coarse){.x3d-skip::before{content:"";position:absolute;inset:-4px -6px -8px}}

/* chapter copy: every chapter starts on the same top line (set per chapter by the script so a long
   one can move up just enough); only the body length varies */
.x3d-chapters{list-style:none;margin:0;padding:0;position:absolute;z-index:3;left:var(--x3d-gutter);width:var(--x3d-panel-w);top:0;bottom:0;pointer-events:none}
.x3d-ch{position:absolute;left:0;right:0;top:var(--x3d-ch-top, 22%);
  opacity:0;visibility:visible;transform:translate3d(0,12px,0);
  transition:opacity .2s cubic-bezier(.4,0,1,1),transform .2s cubic-bezier(.4,0,1,1)}
/* the script times the two: the old copy is gone (.2 s) before the new one starts to rise in */
.x3d-ch.is-active{opacity:1;transform:none;transition:opacity .46s cubic-bezier(.25,.6,.3,1),transform .72s var(--x3d-ease)}
.x3d-ch.is-leaving{transform:translate3d(0,-6px,0)}
.x3d-ch.is-active .x3d-cta{pointer-events:auto}
/* a chapter too tall for a short stage drops its secondary chips (never the schematic-parts note) */
.x3d-ch.is-compact .x3d-chips li:nth-child(n+3){display:none}
.x3d-photo{display:none}
.x3d-only-static{display:none}

.x3d-eyebrow{display:flex;align-items:center;gap:12px;margin:0 0 16px;font-size:.76rem;font-weight:700;letter-spacing:.17em;text-transform:uppercase;color:var(--green)}
.x3d-eyebrow::before{content:"";width:28px;height:2px;border-radius:2px;background:var(--green)}
.x3d-ch h3{margin:0 0 18px;color:#fff;font-size:clamp(2rem,3.1vw,3.05rem);line-height:1.04;letter-spacing:-.035em;font-weight:800}
.x3d-text{margin:0;color:var(--x3d-text);font-size:1.02rem;line-height:1.66}
.x3d-chips{list-style:none;margin:22px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.x3d-chips li{font-size:.78rem;font-weight:600;line-height:1.3;color:#dfe8f5;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.14);padding:.42em .85em;border-radius:999px;white-space:nowrap}
.x3d-note{margin:16px 0 0;font-size:.78rem;color:var(--x3d-dim);display:flex;align-items:center;gap:8px}
.x3d-note::before{content:"";width:14px;height:14px;flex:none;border-radius:50%;border:1.5px solid currentColor;background:radial-gradient(circle,currentColor 0 1.5px,transparent 2px)}
.x3d-cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.x3d-cta .btn svg{width:18px;height:18px}
.x3d :focus-visible{outline-color:var(--green)}

/* chapter rail: a counter over a slim progress line. Each step is a button (keyboard and pointer
   jumps); the line travels with the camera move (--x3d-rail-p is set by the script every frame) */
.x3d-rail{--x3d-step-h:24px;position:absolute;z-index:4;right:28px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:flex-end;gap:12px}
/* a faint dark column behind the rail, so its ticks read over a close-up of the unit */
.x3d-rail::before{content:"";position:absolute;z-index:-1;top:-40px;bottom:-40px;right:-26px;width:96px;pointer-events:none;
  background:radial-gradient(closest-side, rgba(5,12,29,.58) 0, rgba(5,12,29,.42) 45%, rgba(5,12,29,.14) 78%, rgba(5,12,29,0) 100%)}
.x3d-rail-count{margin:0;padding-right:3px;display:flex;align-items:baseline;gap:.45em;font:600 .7rem/1 var(--font);letter-spacing:.12em;font-variant-numeric:tabular-nums;color:rgba(223,232,245,.62);white-space:nowrap}
.x3d-rail-cur{display:inline-block;color:#fff;letter-spacing:.06em}
.x3d-rail-cur.is-new{animation:x3dCount .55s var(--x3d-ease)}
@keyframes x3dCount{from{opacity:0;transform:translate3d(0,6px,0)}to{opacity:1;transform:none}}
.x3d-rail-steps{position:relative}
.x3d-rail-line{position:absolute;right:8px;top:calc(var(--x3d-step-h) / 2);bottom:calc(var(--x3d-step-h) / 2);width:1px;background:rgba(255,255,255,.14);pointer-events:none}
.x3d-rail-fill{position:absolute;left:-.5px;top:0;width:2px;height:100%;border-radius:2px;background:var(--green);box-shadow:0 0 10px rgba(144,195,31,.4);
  transform-origin:50% 0;transform:scaleY(var(--x3d-rail-p, 0))}
.x3d-rail ol{list-style:none;margin:0;padding:0;position:relative}
.x3d-rail-btn{position:relative;display:block;width:40px;height:var(--x3d-step-h);padding:0;background:none;border:0;border-radius:6px;cursor:pointer;color:rgba(223,232,245,.6);font:600 .74rem/1 var(--font);letter-spacing:.02em}
/* the step tick: crosses the line; the current step's is longer and white */
.x3d-rail-btn::before{content:"";position:absolute;right:5px;top:50%;width:7px;height:1px;margin-top:-.5px;border-radius:1px;background:rgba(255,255,255,.42);
  transition:width .45s var(--x3d-ease),background-color .35s ease}
.x3d-rail-btn.is-done::before{background:rgba(144,195,31,.6)}
.x3d-rail-btn[aria-current="step"]::before{width:16px;height:2px;margin-top:-1px;background:#fff}
.x3d-rail-lbl{position:absolute;right:30px;top:50%;white-space:nowrap;opacity:0;transform:translate3d(6px,-50%,0);pointer-events:none;transition:opacity .25s ease,transform .35s var(--x3d-ease);
  padding:.42em .7em;border-radius:6px;background:rgba(5,12,29,.72);color:#dfe8f5}
.x3d-rail-btn[aria-current="step"] .x3d-rail-lbl{color:#fff}
.x3d-rail-btn:focus-visible .x3d-rail-lbl{opacity:1;transform:translate3d(0,-50%,0)}
/* hover only where there is a real hover (a tap would leave it stuck, like a second current step) */
@media (hover:hover) and (pointer:fine){
  .x3d-rail-btn:hover .x3d-rail-lbl{opacity:1;transform:translate3d(0,-50%,0)}
  .x3d-rail-btn:hover::before{background:#fff}
}
.x3d-rail-btn:focus-visible{outline:2px solid var(--green);outline-offset:-2px}

/* hints */
.x3d-hint,.x3d-orbit-hint{position:absolute;z-index:3;left:62%;bottom:26px;transform:translateX(-50%);margin:0;display:flex;align-items:center;gap:10px;
  font-size:.7rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:rgba(223,232,245,.62);pointer-events:none;transition:opacity .5s ease}
.x3d-hint-mouse{width:18px;height:28px;border:1.5px solid rgba(223,232,245,.55);border-radius:10px;position:relative}
.x3d-hint-mouse::after{content:"";position:absolute;left:50%;top:6px;width:2px;height:6px;margin-left:-1px;border-radius:2px;background:var(--green);animation:x3dWheel 2.2s ease-in-out infinite}
@keyframes x3dWheel{0%{opacity:0;transform:translateY(-2px)}30%{opacity:1}70%{opacity:1;transform:translateY(6px)}100%{opacity:0;transform:translateY(8px)}}
.x3d.has-scrolled .x3d-hint,.x3d.is-ready:not(.is-first) .x3d-hint{opacity:0}
.x3d.has-scrolled .x3d-hint-mouse::after{animation:none}
.x3d-orbit-hint{opacity:0}
.x3d-orbit-hint::before{content:"";width:22px;height:10px;border:1.5px solid rgba(223,232,245,.55);border-radius:50%;border-top-color:transparent}
.x3d.can-orbit .x3d-orbit-hint{opacity:1}
.x3d.has-orbited .x3d-orbit-hint{opacity:0}

/* hotspot labels + leader lines (positioned every frame by the script) */
.x3d-leaders{position:absolute;inset:0;z-index:2;width:100%;height:100%;pointer-events:none;overflow:visible}
.x3d-leaders path{fill:none;stroke:rgba(236,242,250,.62);stroke-width:1;vector-effect:non-scaling-stroke}
.x3d-hotspots{position:absolute;inset:0;z-index:2;pointer-events:none}
.x3d-hs{position:absolute;left:0;top:0;opacity:0;will-change:opacity}
.x3d-hs[hidden]{display:none}
.x3d-hs-dot{position:absolute;left:0;top:0;width:9px;height:9px;margin:-4.5px 0 0 -4.5px;border-radius:50%;background:var(--green);box-shadow:0 0 0 2px rgba(5,12,29,.7),0 0 14px rgba(144,195,31,.8);will-change:transform}
/* a short pulse each time a chapter's labels appear (restarts when they are shown again) */
.x3d-hs-dot::after{content:"";position:absolute;inset:-7px;border-radius:50%;border:1px solid rgba(144,195,31,.6);opacity:0;animation:x3dPulse 1.6s ease-out .15s 1}
@keyframes x3dPulse{0%{transform:scale(.45);opacity:1}80%,100%{transform:scale(1.35);opacity:0}}
.x3d-hs-label{position:absolute;left:0;top:0;white-space:nowrap;font-size:.8rem;font-weight:600;line-height:1.2;letter-spacing:.005em;color:#fff;
  padding:.5em .85em;border-radius:999px;background:rgba(9,20,44,.78);border:1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 8px 24px rgba(0,0,0,.28);will-change:transform}

/* parts index (after the tour; also part of the static layout) */
.x3d-index{position:relative;z-index:2;max-width:var(--wrap);margin:0 auto;padding:28px 24px 56px;color:var(--x3d-text)}
.x3d-index summary{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 14px;cursor:pointer;list-style:none;padding:16px 20px;border:1px solid rgba(255,255,255,.12);border-radius:var(--radius);background:rgba(255,255,255,.035);transition:background .2s ease,border-color .2s ease}
.x3d-index summary::-webkit-details-marker{display:none}
.x3d-index summary::before{content:"";width:9px;height:9px;flex:none;align-self:center;border-right:2px solid var(--green);border-bottom:2px solid var(--green);transform:rotate(-45deg);transition:transform .25s ease;margin-right:4px}
.x3d-index[open] summary::before{transform:rotate(45deg)}
.x3d-index summary:hover{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.2)}
.x3d-index-title{color:#fff;font-weight:700;font-size:1rem}
.x3d-index-sub{font-size:.86rem;color:var(--x3d-dim)}
.x3d-index-body{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:26px 36px;padding:26px 4px 0}
.x3d-index-group h3{margin:0 0 10px;font-size:.74rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--green)}
.x3d-index-group dl{margin:0}
.x3d-index-group dt{color:#fff;font-weight:600;font-size:.9rem;margin-top:10px}
.x3d-index-group dd{margin:2px 0 0;font-size:.86rem;line-height:1.55}

/* ---------- Stacked layout: phones (portrait) and portrait tablets ---------- */
@media (max-width:899px) and (orientation:portrait), (max-width:899px) and (min-height:541px), (max-aspect-ratio:4/5){
  .x3d{--x3d-layout:bottom}
  /* the model keeps below the rail and skip link (the script reserves that band in its framing);
     close-ups that run up into it dissolve under the band instead of being sliced by the chrome */
  .x3d-view{-webkit-mask-image:linear-gradient(180deg, transparent 0, transparent 26px, rgba(0,0,0,.3) 50px, rgba(0,0,0,.75) 70px, #000 86px);
          mask-image:linear-gradient(180deg, transparent 0, transparent 26px, rgba(0,0,0,.3) 50px, rgba(0,0,0,.75) 70px, #000 86px)}
  /* soft band under the rail and skip link so they read over the backdrop */
  .x3d-stage::before{background:linear-gradient(180deg, rgba(5,12,29,.86) 0, rgba(5,12,29,.7) 30px, rgba(5,12,29,.4) 56px, rgba(5,12,29,.14) 80px, rgba(5,12,29,0) 98px)}
  .x3d-heading{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .x3d-chapters{left:0;right:0;width:auto;top:auto;bottom:0;height:0}
  /* the copy sheet's dark backing: a layer of its own sized to the chapter's copy by the script
     (--x3d-sheet-h), so it stays put while the text cross-fades and only eases to the next height */
  .x3d-chapters::before{content:"";position:absolute;left:0;right:0;bottom:0;height:var(--x3d-sheet-max,0px);pointer-events:none;
    transform:translate3d(0,calc(var(--x3d-sheet-max,0px) - var(--x3d-sheet-h,0px)),0);transition:transform .5s var(--x3d-ease);
    background:linear-gradient(180deg,rgba(5,12,29,0) 0,rgba(5,12,29,.88) 38px,#050c1d 70px)}
  .x3d-chapters.is-instant::before{transition:none}
  .x3d-ch{top:auto;bottom:0;transform:translate3d(0,10px,0);
    padding:44px 20px calc(18px + env(safe-area-inset-bottom,0px))}
  .x3d-ch.is-active{transform:none}
  .x3d-ch.is-leaving{transform:translate3d(0,-5px,0)}
  .x3d-ch-body{max-width:640px}
  .x3d-eyebrow{margin-bottom:10px;font-size:.7rem}
  .x3d-eyebrow::before{width:18px}
  .x3d-ch h3{font-size:clamp(1.5rem,6.2vw,2.1rem);margin-bottom:10px}
  .x3d-text{font-size:.88rem;line-height:1.52}
  .x3d-chips{margin-top:14px;gap:6px}
  .x3d-chips li{font-size:.7rem;padding:.38em .7em}
  .x3d-note{margin-top:10px;font-size:.72rem}
  .x3d-cta{margin-top:18px;gap:10px}
  .x3d-cta .btn{flex:1 1 auto;justify-content:center}

  /* along the top: the counter and the progress line (its steps are the buttons, at least 24 px
     each), with the skip link on a second row below its right end */
  .x3d-rail{left:16px;right:16px;top:10px;transform:none;flex-direction:row;align-items:center;gap:12px}
  .x3d-rail::before{display:none}
  .x3d-rail-count{font-size:.66rem;padding:0}
  .x3d-rail-steps{flex:1 1 auto;min-width:0}
  .x3d-rail ol{display:flex}
  .x3d-rail li{flex:1 1 0}
  .x3d-rail-btn{width:100%;height:24px;border-radius:4px}
  .x3d-rail-btn::after{content:"";position:absolute;inset:-10px 0 -4px}   /* 38px touch target, 24px layout (it stops short of the skip link) */
  .x3d-rail-lbl{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .x3d-rail-line{left:calc(100% / (2 * var(--x3d-n, 11)));right:calc(100% / (2 * var(--x3d-n, 11)));top:50%;bottom:auto;width:auto;height:1px}
  .x3d-rail-fill{left:0;top:-.5px;width:100%;height:2px;transform-origin:0 50%;transform:scaleX(var(--x3d-rail-p, 0))}
  /* steps: small dots on the line; the current one a green dot */
  .x3d-rail-btn::before{right:auto;left:50%;width:3px;height:3px;margin:-1.5px 0 0 -1.5px;border-radius:50%;background:rgba(255,255,255,.4)}
  .x3d-rail-btn.is-done::before{background:rgba(144,195,31,.8)}
  .x3d-rail-btn[aria-current="step"]::before{width:7px;height:7px;margin:-3.5px 0 0 -3.5px;background:var(--green);box-shadow:0 0 0 3px rgba(5,12,29,.8)}

  .x3d-skip{top:42px;bottom:auto;right:8px;font-size:.64rem;padding:.45em .7em}
  .x3d-skip::before{top:0;bottom:-12px}   /* hit area grows down and sideways, never up into the rail */
  .x3d-hint,.x3d-orbit-hint,.x3d-loader{left:50%}
  .x3d-hint{top:48px;bottom:auto;left:16px;transform:none}
  .x3d-orbit-hint{top:70px;bottom:auto}
  .x3d-loader{top:32%}
  .x3d-hs-label{font-size:.72rem;padding:.45em .75em}
}
/* portrait tablets: more room for the copy */
@media (min-width:600px) and (max-width:899px) and (orientation:portrait){
  .x3d-ch{padding-left:32px;padding-right:32px}
  .x3d-text{font-size:1rem}
  .x3d-ch h3{font-size:2.2rem}
}
/* small phones: the copy sheet keeps to about 45 % of the stage so the model stays in view */
@media (max-width:899px) and (orientation:portrait) and (max-height:760px){
  .x3d-note{display:none}
  .x3d-chips li:nth-child(n+3){display:none}
  .x3d-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden}
  .x3d-orbit-hint{display:none}
  .x3d-ch:last-child .x3d-chips{display:none}   /* the summary keeps its buttons instead */
}
@media (max-width:899px) and (orientation:portrait) and (max-height:680px){
  .x3d-ch{padding-top:36px}
  .x3d-ch h3{font-size:1.4rem}
  .x3d-text{-webkit-line-clamp:4}
  .x3d-cta{margin-top:12px}
}
@media (max-width:560px){
  .x3d-chips li:nth-child(n+4){display:none}
}
/* very narrow phones: the counter drops its total so the eleven steps keep 24 px each */
@media (max-width:359px){
  .x3d-rail-of{display:none}
}

/* ---------- Landscape phones (short, wide): copy beside the model, compact type ---------- */
@media (orientation:landscape) and (max-height:540px){
  .x3d{--x3d-panel-w:min(44vw,380px);--x3d-gutter:max(16px, env(safe-area-inset-left, 0px))}
  .x3d-heading,.x3d-hint,.x3d-orbit-hint{display:none}
  .x3d-eyebrow{margin-bottom:8px;font-size:.66rem}
  .x3d-eyebrow::before{width:16px}
  .x3d-ch h3{font-size:1.3rem;margin-bottom:8px}
  .x3d-text{font-size:.8rem;line-height:1.45}
  .x3d-chips{margin-top:10px;gap:5px}
  .x3d-chips li{font-size:.66rem;padding:.32em .6em}
  .x3d-chips li:nth-child(n+3),.x3d-note{display:none}
  .x3d-cta{margin-top:12px;gap:8px}
  .x3d-cta .btn{font-size:.82rem;padding:.6em 1.1em}
  /* 24 px rail targets (the buttons touch, so their hit areas cannot grow into each other), as far
     as the stage height allows; the skip link sits left of the rail, clear of its last button */
  .x3d{--x3d-rail-h:22px}
  .x3d-rail{right:10px;gap:8px;--x3d-step-h:var(--x3d-rail-h)}
  .x3d-rail-count{font-size:.6rem}
  .x3d-skip{right:58px;bottom:6px;font-size:.6rem}
  .x3d-skip::before{top:-4px;bottom:-6px}
  .x3d-hs-label{font-size:.68rem;padding:.4em .7em}
}
@supports (height:100svh){
  @media (orientation:landscape) and (max-height:540px){
    .x3d{--x3d-rail-h:clamp(18px, calc((100svh - var(--header-h) - 40px) / 11), 24px)}
  }
}

/* ---------- Short desktop windows / iPad landscape ---------- */
@media (min-width:900px) and (max-width:1100px){
  .x3d{--x3d-panel-w:clamp(320px,34vw,440px)}
}
/* both summary buttons on one line in the narrower copy columns */
@media (min-width:900px) and (max-width:1320px){
  .x3d-cta{gap:10px}
  .x3d-cta .btn{padding:.72em 1.15em;font-size:.9rem}
}
@media (min-width:900px) and (max-width:1100px){
  .x3d-cta{gap:8px}
  .x3d-cta .btn{padding:.66em .95em;font-size:.84rem}
  .x3d-cta .btn svg{width:15px;height:15px}
}
@media (min-width:900px) and (max-height:780px){
  .x3d-ch h3{font-size:clamp(1.7rem,2.6vw,2.3rem);margin-bottom:12px}
  .x3d-eyebrow{margin-bottom:12px}
  .x3d-text{font-size:.92rem;line-height:1.5}
  .x3d-chips{margin-top:12px}
  .x3d-note{margin-top:12px}
  .x3d-cta{margin-top:18px}
}

/* ---------- Reduced motion: instant chapter changes ---------- */
@media (prefers-reduced-motion:reduce){
  .x3d-ch,.x3d-ch.is-active,.x3d-view,.x3d-rail-lbl,.x3d-rail-btn::before,.x3d-chapters::before{transition:none}
  .x3d-hs-dot::after,.x3d-hint-mouse::after,.x3d-loader span,.x3d-rail-cur.is-new{animation:none}
}

/* ---------- Static layout (no JS / no WebGL / init failure) ---------- */
:is(html:not(.js) .x3d, .x3d.x3d--static){padding:84px 0 0;background:linear-gradient(180deg,#071228 0%,var(--navy) 100%)}
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-track{height:auto}
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-stage{position:static;height:auto;overflow:visible;background:none;max-width:var(--wrap);margin:0 auto;padding:0 24px}
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-stage::before,
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-stage::after,
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-chapters::before,
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-view,
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-leaders,
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-hotspots,
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-loader,
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-rail,
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-hint,
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-orbit-hint,
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-skip,
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-only-3d{display:none}
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-only-static{display:inline}
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-heading{position:static;justify-content:center;margin:0 0 14px;width:auto;height:auto;clip:auto;overflow:visible}
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-chapters{position:static;width:auto;height:auto;max-width:1000px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr);gap:20px;pointer-events:auto}
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-ch{position:static;opacity:1;transform:none;transition:none;padding:0;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.1);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:row-reverse;align-items:stretch}
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-ch-body{flex:1 1 auto;padding:28px 32px 30px;align-self:center}
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-ch h3{font-size:1.5rem;margin-bottom:12px}
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-text{font-size:.98rem;display:block;-webkit-line-clamp:none;overflow:visible}
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-chips li{display:inline-block}
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-note:not(.x3d-only-3d){display:flex}
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-photo{display:block;position:relative;margin:0;flex:0 0 40%;min-height:240px;overflow:hidden;background:#0e2550}
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-ch:first-child,
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-ch:last-child{grid-column:1 / -1;background:none;border:0;text-align:center}
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-ch:first-child .x3d-ch-body,
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-ch:last-child .x3d-ch-body{max-width:760px;margin:0 auto;padding:0}
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-ch:first-child{margin-bottom:18px}
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-ch:last-child{margin-top:26px}
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-ch:first-child h3,
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-ch:last-child h3{font-size:clamp(1.9rem,3.4vw,2.6rem)}
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-ch:first-child .x3d-eyebrow,
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-ch:last-child .x3d-eyebrow,
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-ch:first-child .x3d-chips,
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-ch:last-child .x3d-chips,
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-ch:last-child .x3d-cta{justify-content:center}
:is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-index{max-width:1048px;padding-top:40px;padding-bottom:84px}
@media (max-width:768px){
  :is(html:not(.js) .x3d, .x3d.x3d--static){padding:62px 0 0}
  :is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-chapters{gap:18px}
  :is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-ch{flex-direction:column-reverse}
  :is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-photo{flex:none;min-height:0;aspect-ratio:16/9}
  :is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-ch-body{padding:22px 22px 26px}
  :is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-index{padding-bottom:62px}
}
@media (max-width:560px){
  :is(html:not(.js) .x3d, .x3d.x3d--static) .x3d-stage{padding:0 20px}
  .x3d-index{padding-left:20px;padding-right:20px}
  .x3d-index-body{grid-template-columns:minmax(0,1fr)}
}

/* ---------- Print: the static list, in print colours ---------- */
@media print{
  .x3d{padding:24px 0 0!important;background:#fff!important;color:#000}
  .x3d::before,.x3d-stage::before,.x3d-stage::after,.x3d-chapters::before,.x3d-view,.x3d-leaders,.x3d-hotspots,.x3d-loader,.x3d-rail,.x3d-hint,.x3d-orbit-hint,.x3d-skip,.x3d-only-3d,.x3d-photo{display:none!important}
  .x3d-only-static{display:inline!important}
  .x3d-track{height:auto!important}
  .x3d-stage{position:static!important;height:auto!important;overflow:visible!important;background:none!important;padding:0 24px}
  .x3d-heading{position:static!important;margin:0 0 12px;color:#000!important;width:auto;height:auto;clip:auto;overflow:visible}
  .x3d-chapters{position:static!important;width:auto!important;height:auto!important;display:block}
  .x3d-ch{position:static!important;opacity:1!important;transform:none!important;background:none!important;padding:0 0 14px!important;break-inside:avoid;display:block!important}
  .x3d-ch h3{color:#000!important;font-size:1.2rem!important;margin:0 0 6px}
  .x3d-eyebrow{color:#3f5a0a!important}
  .x3d-text,.x3d-note{color:#222!important;display:block!important;-webkit-line-clamp:none!important;overflow:visible!important}
  .x3d-chips li{display:inline-block!important;color:#000!important;background:none!important;border-color:#999!important}
  .x3d-cta{display:none}
  .x3d-index{color:#222;padding:12px 24px 0}
  .x3d-index-title,.x3d-index-group dt{color:#000}
  .x3d-index-group h3{color:#3f5a0a}
}
