/* Transparent product frames float directly over the page; no clipping mat. */
.hero { overflow: visible; background: var(--n0); }
.hero-product[data-product-sequence] { width: 100%; max-width: none; height: clamp(330px, 62vw, 820px); margin: 14px auto 0; }
.hero-product[data-product-sequence][data-motion-ready] { height: 420svh; }
.hero-product[data-product-sequence] .hero-model-stage { position: relative; width: 100%; height: 100%; overflow: visible; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.hero-product[data-product-sequence][data-motion-ready] .hero-model-stage { position: sticky; top: calc(var(--site-header-height) + 12px); height: calc(100svh - var(--site-header-height) - 28px); background: transparent; border-radius: 0; overflow: visible; }
.hero-product[data-product-sequence] .hero-model-stage::after { display: none; }
.product-poster, .product-poster img, .product-sequence-canvas { display: block; width: 100%; height: 100%; }
.product-poster img { object-fit: contain; }
.product-poster { pointer-events: none; user-select: none; }
.product-sequence-canvas { position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease; pointer-events: none; filter: drop-shadow(0 25px 22px color-mix(in srgb,var(--c-shadow) 40%,transparent)); }
[data-product-sequence][data-motion-ready] .product-poster,
[data-product-sequence][data-motion-ready] .product-sequence-canvas { position:absolute; top:88px; bottom:22px; height:calc(100% - 110px); }
[data-frame-ready] .product-sequence-canvas { opacity: 1; }
/* The frames leave wide empty margins around Gateway (its parts need the room when they spread
   out), so the frame is drawn as wide as the screen and larger than the stage: only the empty
   margin reaches past the stage, under the captions and the header. Measured over the whole
   sequence, Gateway and its shadow stay between 11 % and 89 % of the frame width and 23 % and
   93 % of its height; the frame's top 21 % sits above the caption line, and the height limit
   keeps its lowest point (72 % below that line) inside the stage on short screens. */
[data-product-sequence][data-motion-ready] .product-sequence-canvas { --hero-frame: min(100vw, calc((100svh - var(--site-header-height) - 138px) * 2.08)); top: 100px; bottom: auto; left: 50%; width: var(--hero-frame); height: auto; aspect-ratio: 3 / 2; transform: translate(-50%, -21%); }
/* With motion, the still picture is never shown and the captions wait: until every frame has
   arrived (product-sequence.js) the stage shows only the loading bar, then the canvas fades in.
   Without motion (reduced motion, very slow connection) the still picture stays. */
[data-product-sequence][data-motion-ready] .product-poster { visibility: hidden; }
[data-product-sequence][data-motion-ready]:not([data-sequence-complete]) :is(.cinematic-copy, .cinematic-meter) { visibility: hidden; }
[data-product-sequence]:not([data-motion-ready]) .cinematic-caption[data-caption='0'] { opacity: 1; transform: none; }
[data-product-sequence] .cinematic-copy { top: 22px; left: max(var(--site-gutter), calc((100vw - 1200px)/2)); width: min(460px,70%); text-align: left; }
[data-product-sequence] .cinematic-caption { transition: opacity .16s ease, transform .24s ease; }
[data-product-sequence][data-scene-step='0'] .cinematic-caption[data-caption='0'],
[data-product-sequence][data-scene-step='1'] .cinematic-caption[data-caption='1'],
[data-product-sequence][data-scene-step='2'] .cinematic-caption[data-caption='2'] { opacity:1; transform:translateY(0); transition: opacity .3s ease .14s, transform .4s var(--site-ease) .14s; }
[data-product-sequence] .cinematic-meter { left: max(var(--site-gutter),calc((100vw - 1200px)/2)); right: max(var(--site-gutter),calc((100vw - 1200px)/2)); bottom: 18px; }
.hero-product[data-product-sequence] .concept-caption { display: none; }
@media(max-width:760px) {
  .hero-product[data-product-sequence] { height: 90vw; margin-top: 32px; }
  .hero-product[data-product-sequence][data-motion-ready] { height: 380svh; }
  .hero-product[data-product-sequence][data-motion-ready] .hero-model-stage { height: calc(100svh - var(--site-header-height) - 24px); top: calc(var(--site-header-height) + 12px); }
  [data-product-sequence] .cinematic-copy { top: 10px; width: 88%; }
  [data-product-sequence] .cinematic-caption strong { font-size: clamp(24px,6.5vw,34px); max-width: 310px; }
}
/* Whole pixels (2026-11-06): with the percentage offsets above, the frame landed on half pixels
   (left -37.5 px on a 375 px phone) and Safari moved the held frame back and forth by a pixel
   while scrolling, so it trembled. The same box, rounded to whole pixels; the width is a multiple
   of 6 px so its height (two thirds) is whole too. Browsers without round() keep the rules above. */
@supports (width: round(1.5px, 1px)) {
  [data-product-sequence][data-motion-ready] .product-sequence-canvas { --hero-w: round(down, min(100vw, calc((100svh - var(--site-header-height) - 138px) * 2.08)), 6px); width: var(--hero-w); height: calc(var(--hero-w) * 2 / 3); aspect-ratio: auto; left: round(calc(50% - var(--hero-w) / 2), 1px); top: round(calc(100px - var(--hero-w) * .14), 1px); transform: none; }
}
/* Phones: the canvas stays inside the screen (nothing reaches past its edges, so nothing has to be
   clipped: a clipped container around the held stage made Safari jerk it while scrolling,
   2026-11-06). The canvas is as wide as the screen and as tall as a frame 120 % of the screen
   wide; the player fills its height (product-sequence.js), so only the frame's empty side margins
   fall outside, and Gateway (11 % to 89 % of the frame) stays inside the screen edges. */
@media(max-width:760px) {
  [data-product-sequence][data-motion-ready] .product-sequence-canvas { left: 0; width: 100%; height: 80vw; aspect-ratio: auto; top: calc(54% - 46.4vw); transform: none; }
  @supports (width: round(1.5px, 1px)) {
    [data-product-sequence][data-motion-ready] .product-sequence-canvas { height: round(down, 80vw, 2px); top: round(calc(54% - 46.4vw), 1px); }
  }
}
@media(prefers-reduced-motion:reduce) { [data-product-sequence] .cinematic-caption { transition:none !important; } }
@media print {
  /* A document gets the real static product picture, without a multi-page
     sticky animation region or overlapping screen-only captions. */
  .hero-product[data-product-sequence],
  .hero-product[data-product-sequence][data-motion-ready] { height: auto !important; margin: 20px auto; break-inside: avoid; animation: none !important; }
  .hero-product[data-product-sequence] .hero-model-stage,
  .hero-product[data-product-sequence][data-motion-ready] .hero-model-stage { position: static !important; height: auto !important; min-height: 0; }
  [data-product-sequence] .product-poster { display: block !important; visibility: visible !important; position:static !important; top:auto !important; bottom:auto !important; height: auto; }
  [data-product-sequence] .product-poster img { height: auto; object-fit: contain; }
  [data-product-sequence] .product-sequence-canvas,
  [data-product-sequence] .cinematic-copy,
  [data-product-sequence] .cinematic-meter { display: none !important; }
}

/* "Skip animation" (2026-11-17): a quiet text button while the Base Station animation is held on
   screen, right above the right end of the progress line, so a reader who does not want to scroll
   through it jumps to the next section. No frame, no fill; product-sequence.js shows it only while
   the animation is held and ready. It sits outside the figure, which is one image (role="img"). */
.sequence-skip { position: fixed; z-index: 3; right: max(var(--site-gutter), calc((100vw - 1200px) / 2)); bottom: calc(16px + 18px + 4px); min-height: 44px; padding: 10px 2px; border: 0; background: none; color: var(--n8); -webkit-text-fill-color: var(--n8); font: inherit; font-size: 16px; cursor: pointer; }
.sequence-skip[hidden] { display: none; }
@media (hover: hover) { .sequence-skip:hover { color: var(--n10); -webkit-text-fill-color: var(--n10); text-decoration: underline; text-underline-offset: 3px; } }
.sequence-skip:focus-visible { outline: 2px solid var(--n10); outline-offset: 2px; }
@media (max-width: 760px) { .sequence-skip { bottom: calc(12px + 20px + 4px + env(safe-area-inset-bottom, 0px)); right: 16px; font-size: 15px; } }
@media print { .sequence-skip { display: none !important; } }
