/* "Fits where it's needed." Gateway mounting options: a list of options beside
   one product stage. Without JavaScript every option is shown in turn. */
.mounting-chapter { background: var(--n1); }
.mounting { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 48px; align-items: center; }
.mounting-options { display: grid; gap: 6px; }
.mounting-option { display: grid; gap: 4px; width: 100%; padding: 16px 18px 16px 20px; border: 0; border-radius: 10px; background: transparent; color: var(--n10); text-align: left; font: inherit; cursor: pointer; position: relative; transition: background-color .25s ease; }
.mounting-option::before { content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 2px; border-radius: 2px; background: var(--n4); transition: background-color .25s ease; }
.mounting-option strong { font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.mounting-option span { color: var(--n8); font-size: 15px; line-height: 1.55; }
.mounting-option:hover { background: color-mix(in srgb, var(--n10) 4%, transparent); }
.mounting-option[aria-selected="true"] { background: color-mix(in srgb, var(--n10) 5%, transparent); }
.mounting-option[aria-selected="true"]::before { background: var(--n10); }
.mounting-option:focus-visible { outline: 2px solid var(--n10); outline-offset: 2px; }
.mounting-stage { position: relative; display: grid; aspect-ratio: 4 / 3; }
.mounting-view { grid-area: 1 / 1; display: grid; place-items: center; margin: 0; }
.mounting-view picture, .mounting-view img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* Product and shadow are shown 1.18 times larger than the render's frame (ZOOM in mounting.js),
   and the outer 7 % on every side fades out, so a wide soft shadow never ends in a straight cut.
   The fade sits on the pictures and the canvas, not on the stage, so the loading bar stays clear. */
.mounting.is-interactive .mounting-stage { overflow: hidden; }
.mounting.is-interactive .mounting-view img { transform: scale(1.18); }
.mounting.is-interactive :is(.mounting-view, .mounting-canvas) {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 7%, #000 93%, transparent);
  mask-composite: intersect;
}
/* With JavaScript the views overlap; the chosen one settles in from a slight lift. */
.mounting.is-interactive .mounting-view { opacity: 0; transform: translateY(10px) scale(.985); transition: opacity .45s ease, transform .6s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.mounting.is-interactive .mounting-view.is-active { opacity: 1; transform: none; pointer-events: auto; }
.mounting:not(.is-interactive) .mounting-stage { aspect-ratio: auto; gap: 24px; }
.mounting:not(.is-interactive) .mounting-view { grid-area: auto; }

@media (max-width: 900px) {
  .mounting { grid-template-columns: 1fr; gap: 20px; }
  .mounting-stage { order: -1; }
  .mounting-options { grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .mounting-option { scroll-snap-align: start; padding: 14px 16px; }
  .mounting-option::before { top: auto; left: 16px; right: 16px; bottom: 0; width: auto; height: 2px; }
  .mounting-option span { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .mounting.is-interactive .mounting-view { transition: none; transform: none; }
}

/* With motion: the section holds on screen while the page scrolls past it, and scrolling moves
   from one option to the next (mounting.js plays each motion by itself). The held part fills the
   space under the header and keeps the options and the product in its middle. */
.mounting-canvas { display: none; }
/* Most of a screen of scrolling per option. */
.mounting-track.is-scroll-driven { height: calc(var(--steps, 5) * 75svh + 100svh); }
.mounting-track.is-scroll-driven .mounting { position: sticky; top: var(--site-header-height, 64px); min-height: calc(100svh - var(--site-header-height, 64px)); align-content: center; padding-block: 16px; }
.mounting-track.is-scroll-driven .mounting-stage { width: min(100%, calc((100svh - var(--site-header-height, 64px) - 64px) * 4 / 3)); justify-self: center; }
/* Until all frames are in (scroll-sequence.js) the stage shows only the loading bar, then the
   canvas fades in. The stills are never shown here. */
.mounting-track.is-scroll-driven .mounting-canvas { display: block; grid-area: 1 / 1; width: 100%; height: 100%; opacity: 0; transition: opacity .4s ease; }
.mounting-track.is-scroll-driven .mounting[data-sequence-ready] .mounting-canvas { opacity: 1; }
.mounting-track.is-scroll-driven .mounting-view { visibility: hidden; }
@media (max-width: 900px) {
  .mounting-track.is-scroll-driven .mounting { align-content: center; gap: 12px; }
  .mounting-track.is-scroll-driven .mounting-stage { width: min(100%, calc((100svh - var(--site-header-height, 64px) - 200px) * 4 / 3)); }
}
/* Whole pixels, as for the Gateway frame (product-sequence.css): a stage width that is a multiple
   of 4 px keeps its 4:3 height whole, so Safari does not move the held picture by half pixels. */
@supports (width: round(1.5px, 1px)) {
  .mounting-track.is-scroll-driven .mounting-stage { width: round(down, min(100%, calc((100svh - var(--site-header-height, 64px) - 64px) * 4 / 3)), 4px); }
  @media (max-width: 900px) {
    .mounting-track.is-scroll-driven .mounting-stage { width: round(down, min(100%, calc((100svh - var(--site-header-height, 64px) - 200px) * 4 / 3)), 4px); }
  }
}
/* While another option's first frame is on its way the picture is hidden, so an earlier option's
   picture is never shown under the new option's name (mounting.js, 2026-11-17). */
.mounting-track.is-scroll-driven .mounting.is-switching .mounting-canvas { opacity: 0; transition: none; }
.mounting-track.is-scroll-driven .mounting[data-sequence-ready]:not(.is-switching) .mounting-canvas { transition: opacity .25s ease; }
