@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@800&display=swap');

.installbox-scroll-story {
  --story-teal: var(--color-primary, #00bac2);
  --story-brand-yellow: #feb101;
  --story-deep: #013544;
  --story-stage-gray: #3b3f3f;
  --story-white: #fff;
  --story-header-offset: 0px;
  --story-exit-progress: 0;
  position: relative;
  width: 100vw;
  max-width: 100vw;
  height: 360svh;
  margin-left: calc(50% - 50vw);
  overflow-x: clip;
  overflow-y: visible;
  color: var(--story-white);
  background: var(--story-deep);
  font-family: inherit;
}

.installbox-scroll-story *,
.installbox-scroll-story *::before,
.installbox-scroll-story *::after { box-sizing: border-box; }

.installbox-scroll-story__sticky {
  position: sticky;
  /* The media viewport underlaps the global navigation; only story UI uses the safe offset. */
  top: 0;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--story-deep);
}

.installbox-scroll-story__chapters {
  position: absolute;
  z-index: 7;
  top: calc(var(--story-header-offset) + clamp(24px, 4vh, 40px));
  left: 50%;
  display: flex;
  gap: clamp(34px, 5vw, 88px);
  padding: 0 20px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.installbox-scroll-story__chapters button {
  position: relative;
  padding: 0 0 12px;
  border: 0;
  color: rgba(255,255,255,.26);
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.3;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .4s ease, border-color .4s ease;
}

.installbox-scroll-story__chapters button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--story-teal);
  content: '';
  transform: scaleX(var(--chapter-fill, 0));
  transform-origin: left center;
}

.installbox-scroll-story__chapters button span { margin-right: 8px; font-size: 10px; }
.installbox-scroll-story__chapters button.is-active,
.installbox-scroll-story__chapters button:hover { color: var(--story-teal); }
.installbox-scroll-story__chapters button.is-active { color: #fff; }

.installbox-scroll-story__progress {
  position: absolute;
  z-index: 8;
  top: calc(var(--story-header-offset) + 50%);
  right: clamp(16px, 2.6vw, 42px);
  width: 1px;
  height: 70px;
  background: rgba(255,255,255,.2);
}

.installbox-scroll-story__progress span {
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  width: 3px;
  height: 17px;
  border-radius: 99px;
  background: var(--story-teal);
  box-shadow: 0 0 12px rgba(0,186,194,.25);
  transform: translateX(-50%);
  transform-origin: center center;
  will-change: transform;
}

.installbox-scroll-story__scene,
.installbox-scroll-story__stage { position: absolute; inset: 0; }

.installbox-scroll-story__scene { overflow: hidden; }

.installbox-scroll-story__stage--manufacturing { z-index: 1; }

.installbox-scroll-story__stage {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.installbox-scroll-story.is-scroll-controlled .installbox-scroll-story__stage,
.installbox-scroll-story.is-scroll-controlled .installbox-scroll-story__stage2-copy,
.installbox-scroll-story.is-scroll-controlled .installbox-scroll-story__product-media img {
  transition: none;
}

/* Keep the pinned story above the following homepage section until its scroll range ends. */
.installbox-scroll-story.is-scroll-controlled { z-index: 10; }

.installbox-scroll-story__stage-image,
.installbox-scroll-story__stage-image img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
}

.installbox-scroll-story__stage-image img {
  display: block;
  object-fit: cover;
  object-position: center center;
}

/* The two Factory media layers share one 1920 x 800 coordinate plane. The
   occlusion PNG is an alpha-only overlay, so it must never be independently
   cropped, positioned, or contribute to document flow. */
.installbox-scroll-story__stage--manufacturing .factory-poster-frame,
.installbox-scroll-story__stage--manufacturing .factory-poster-frame > .installbox-scroll-story__factory-image,
.installbox-scroll-story__factory-foreground,
.installbox-scroll-story__factory-foreground-image {
  position: absolute;
  inset: 0;
}

.installbox-scroll-story__stage--manufacturing .factory-poster-frame > .installbox-scroll-story__factory-image,
.installbox-scroll-story__factory-foreground-image {
  transform-origin: center center;
}

.installbox-scroll-story__stage--system {
  z-index: 2;
  display: block;
  overflow: hidden;
  background: var(--story-stage-gray);
  clip-path: inset(0 0 0 100%);
  pointer-events: none;
  will-change: clip-path;
}

.installbox-scroll-story__stage--system.is-active { pointer-events: auto; }

.installbox-scroll-story__stage--environment {
  z-index: 3;
  display: block;
  overflow: hidden;
  background: #16320e;
  clip-path: inset(0 0 0 100%);
  pointer-events: none;
  will-change: clip-path;
}

.installbox-scroll-story__stage--environment.is-active { pointer-events: auto; }

.installbox-scroll-story__environment-media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.installbox-scroll-story__environment-artboard {
  position: absolute;
  top: 50%;
  left: 50%;
  height: max(100%, 41.6667vw);
  aspect-ratio: 1920 / 800;
  overflow: hidden;
  container-type: inline-size;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  will-change: transform;
}

.installbox-scroll-story__environment-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: fill;
}

.installbox-scroll-story__environment-image { z-index: 1; }

.installbox-scroll-story__environment-stat {
  position: absolute;
  z-index: 2;
  /* Pixel-measured against the poster's actual baked-in text (1920x800
     asset): "UP TO" sits at x:[273,386] y:[576,604]. This box's bottom
     edge lands on that same baseline (604px = 63.0% + 12.5% height = top+
     height at the bottom) and its left edge starts just after "UP TO"
     ends (404px = 21.0%), so "77%" reads as "UP TO 77%" on one line --
     the same value works at every breakpoint since the artboard keeps a
     fixed 1920:800 aspect ratio regardless of viewport. */
  top: 63.0%;
  left: 21.0%;
  display: flex;
  align-items: flex-end;
  width: 8.33%;
  height: 12.5%;
  color: #77fe4f;
  font-family: Manrope, Inter, sans-serif;
  font-size: 5.2cqw;
  font-style: normal;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}
.installbox-scroll-story__rolling-digit {
  display: block;
  flex: 0 0 .56em;
  width: .56em;
  /* Keep the visible glyph inside a small paint-safe window. The translate
     preserves the existing baseline while the extra room prevents fractional
     device-pixel clipping on the top and bottom edges. */
  height: .88em;
  transform: translateY(.03em);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.installbox-scroll-story__digit-strip {
  display: flex;
  flex-direction: column;
  width: 100%;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

.installbox-scroll-story__digit-strip > span {
  display: flex;
  flex: 0 0 .82em;
  width: 100%;
  height: .82em;
  align-items: center;
  justify-content: center;
  line-height: .82em;
}

.installbox-scroll-story__digit-strip.is-rolling { filter: blur(.2px); }

.installbox-scroll-story__environment-percent {
  display: block;
  margin: 0 0 .005em -.015em;
  font-size: .59em;
  font-style: normal;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .82em;
}

.installbox-scroll-story__stage--system .installbox-scroll-story__product-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  min-height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--story-stage-gray);
}

/* Stage 02 is a full-bleed visual chapter, matching the factory stage. */
.installbox-product-stage-safe-frame {
  position: absolute;
  /* The supplied poster carries its own heading. Keep that heading below the
     chapter navigation while preserving the full product lineup at the floor. */
  inset: clamp(48px, 7vh, 62px) 0 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: visible;
}

.installbox-product-stage-safe-frame::after {
  display: none;
}

.installbox-product-stage-safe-frame .installbox-scroll-story__product-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0;
  object-fit: cover;
  object-position: center center;
  transform: none;
  will-change: transform, opacity;
}

.installbox-scroll-story__stage--system .installbox-scroll-story__stage2-copy {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: min(620px, 43vw);
  min-height: 100%;
  padding: clamp(154px, 19vh, 205px) max(5vw, 56px) 80px 26px;
  background: linear-gradient(270deg, rgba(7,32,36,.58) 0%, rgba(7,32,36,.26) 52%, rgba(7,32,36,0) 100%);
  will-change: transform, opacity;
}

/* Product artwork stays clean so the copy can enter as an independent layer. */
.installbox-scroll-story__stage--system .installbox-scroll-story__stage2-copy {
  display: flex;
  background: none;
  pointer-events: none;
}

.installbox-scroll-story__stage--system.is-active .installbox-scroll-story__stage2-copy {
  pointer-events: auto;
}

.installbox-scroll-story__stage--system .installbox-scroll-story__stage2-copy .installbox-scroll-story__eyebrow {
  color: var(--story-teal);
  text-shadow: 0 1px 8px rgba(0,0,0,.22);
}

.installbox-scroll-story__stage--system .installbox-scroll-story__stage2-copy h2 {
  color: #f2f20a !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.28);
}

/* Each copy element reveals independently, like a vertical text mask rather than a panel slide. */
.installbox-scroll-story .reveal-mask {
  display: block;
  overflow: hidden;
}

.installbox-scroll-story .reveal-inner {
  display: block;
  opacity: 0;
  transform: none;
  will-change: transform, opacity;
}

.installbox-scroll-story h2 .reveal-mask { display: block; }
.installbox-scroll-story h2 .reveal-inner { display: block; }

.installbox-scroll-story__stage--system .installbox-scroll-story__stage2-copy h2 {
  max-width: 560px;
  color: #f2f20a !important;
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1.02;
}

.installbox-scroll-story__stage--system .installbox-scroll-story__stage2-copy h2 .reveal-mask {
  white-space: nowrap;
}

.installbox-scroll-story__stage--system .installbox-scroll-story__body {
  max-width: 380px;
  color: rgba(255,255,255,.9);
  font-size: 14px;
  line-height: 1.45;
}

.installbox-scroll-story__stage--system .installbox-scroll-story__eyebrow { margin-bottom: 9px; }
.installbox-scroll-story__stage--system .installbox-scroll-story__actions { margin-top: 21px; }

.installbox-scroll-story__stage--manufacturing::after,
.installbox-scroll-story__stage--system::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

.installbox-scroll-story__stage--manufacturing::after,
.installbox-scroll-story__stage--system::after { display: none; }

.installbox-scroll-story__stage1-content {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.installbox-scroll-story__factory-copy {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  transform-origin: center center;
  will-change: transform;
}

.installbox-scroll-story__factory-copy-image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  object-position: center center;
}

/* Factory poster layers: background -> PSD stat -> real roof/building pixels -> heading. */
.installbox-scroll-story__factory-foreground {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.installbox-scroll-story__factory-foreground-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  /* Match the background crop exactly; the alpha canvas is pixel-registered. */
  object-fit: cover;
  object-position: center center;
  transform: none;
  will-change: transform;
}

/* Factory poster coordinates are authored against the supplied 1920 x 800 artwork. */
.factory-poster-frame {
  aspect-ratio: 1920 / 800;
  isolation: isolate;
  overflow: hidden;
  background: #cce7fb;
}

.factory-poster-frame::before,
.installbox-scroll-story__environment-media::before { display: none; }

.installbox-scroll-story__stage--manufacturing .factory-poster-frame > .installbox-scroll-story__factory-image,
.installbox-scroll-story__stage--manufacturing .installbox-scroll-story__factory-copy-image,
.installbox-scroll-story__stage--manufacturing .installbox-scroll-story__factory-foreground-image {
  object-fit: cover !important;
  object-position: center center !important;
}

.installbox-scroll-story__stage1-content .installbox-scroll-story__stat-layer {
  position: absolute;
  z-index: 1;
  inset: 0;
  margin: 0;
  overflow: visible;
}

.installbox-scroll-story__stage1-content .installbox-scroll-story__stat-layer .reveal-inner {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.installbox-scroll-story__stat-image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  /* The PSD stat is a full 1920 x 800 transparent canvas. Contain keeps the
     right edge of the 5 and the plus sign inside the stage. */
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
}

.installbox-scroll-story__stage1-content h2 {
  position: absolute;
  z-index: 3;
  top: 74.38%;
  left: 46.61%;
  width: 31.25%;
  max-width: none;
  margin: 0;
  color: #fff !important;
  font-family: Inter, sans-serif;
  font-size: clamp(32px, 2.604vw, 50px);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: .96;
  white-space: nowrap;
}

.installbox-scroll-story__stage1-content h2 .reveal-mask {
  height: 48px;
  overflow: hidden;
}

.installbox-scroll-story__eyebrow {
  margin: 0 0 13px;
  color: var(--story-teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.installbox-scroll-story__stat {
  margin: 0 0 -.12em 24px;
  padding-bottom: .12em;
  color: var(--story-brand-yellow);
  text-shadow: 0 2px 18px rgba(0,0,0,.24);
  font-size: clamp(108px, 10.5vw, 184px);
  font-weight: 850;
  letter-spacing: -.08em;
  line-height: .86;
}

.installbox-scroll-story h2 {
  margin: 18px 0 0;
  color: #fff !important;
  text-shadow: 0 2px 16px rgba(0,0,0,.22);
  font-size: clamp(34px, 3.2vw, 52px);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: .98;
}

.installbox-scroll-story h2 span { display: block; }

/* Keep the Factory poster heading on the PSD coordinate layer after shared heading defaults. */
.installbox-scroll-story__stage1-content h2 {
  top: 74.375%;
  left: 46.615%;
  width: 31.25%;
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: clamp(32px, 2.604vw, 50px);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 48px;
}

.installbox-scroll-story__stage1-content h2 .reveal-mask { height: 48px; }

/* Use the same editorial callout treatment for the short Stage 02 supporting copy. */
.installbox-scroll-story__stage--system .installbox-scroll-story__stage2-copy .installbox-scroll-story__body {
  max-width: 560px;
  margin: 18px 0 0;
  padding: 0;
  border-left: 0;
  border-radius: 0;
  background: none;
  color: rgba(255,255,255,.76);
  font-size: clamp(18px, 1.25vw, 20px);
  font-weight: 450;
  line-height: 1.5;
  text-shadow: 0 1px 9px rgba(0,0,0,.2);
}

.installbox-scroll-story__body {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.94);
  text-shadow: 0 1px 9px rgba(0,0,0,.2);
  font-size: 18px;
  line-height: 1.55;
}

.installbox-scroll-story__actions { display: flex; margin-top: 24px; }

.installbox-scroll-story__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 19px;
  border: 1px solid var(--story-teal);
  border-radius: 3px;
  background: var(--story-teal);
  color: #07333b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}

.installbox-scroll-story__button:hover { border-color: #73eef0; background: #73eef0; transform: translateY(-1px); }
.installbox-scroll-story__marker { position: absolute; width: 1px; height: 1px; pointer-events: none; }
.installbox-scroll-story__marker[data-story-marker="0"] { top: 42%; }
.installbox-scroll-story__marker[data-story-marker="1"] { top: 56%; }
.installbox-scroll-story__marker[data-story-marker="2"] { top: 78%; }

/* Let the incoming chapter breathe into the final exit range without turning the scene white. */
.installbox-scroll-story__stage--system::before {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 27%;
  background: linear-gradient(180deg, rgba(226,244,242,0), rgba(226,244,242,.2));
  content: '';
  opacity: var(--story-exit-progress, 0);
  pointer-events: none;
}

@media (max-width: 767px) {
  .installbox-scroll-story { height: auto; overflow-x: clip; overflow-y: visible; }
  .installbox-scroll-story__sticky { position: relative; top: auto; height: auto; min-height: 0; overflow: visible; }
  .installbox-scroll-story__chapters { position: relative; top: auto; left: auto; width: 100%; padding: 17px 20px; transform: none; overflow-x: auto; }
  .installbox-scroll-story__progress { display: none; }
  .installbox-scroll-story__scene { position: relative; overflow: visible; }
  .installbox-scroll-story__stage,
  .installbox-scroll-story__stage.is-active { position: relative; inset: auto; display: flex; flex-direction: column; visibility: visible; opacity: 1; transform: none; }
  .installbox-scroll-story__stage::after { display: none; }
  .installbox-scroll-story__stage-image,
  .installbox-scroll-story__stage-image img { position: relative; inset: auto; height: 56vw !important; min-height: 230px; max-height: 330px; }
  .installbox-scroll-story__stage1-content { position: relative; inset: auto; order: 1; width: auto; height: auto; padding: 42px 20px 46px; background: var(--story-deep); pointer-events: auto; }
  .installbox-scroll-story__factory-foreground { display: none; }

  .installbox-scroll-story__stage--manufacturing .factory-poster-frame {
    position: relative;
    inset: auto;
    height: auto !important;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1920 / 800;
    overflow: hidden;
  }

  .installbox-scroll-story__stage--manufacturing .factory-poster-frame > .installbox-scroll-story__factory-image,
  .installbox-scroll-story__stage--manufacturing .installbox-scroll-story__factory-copy,
  .installbox-scroll-story__stage--manufacturing .installbox-scroll-story__factory-copy-image,
  .installbox-scroll-story__stage--manufacturing .installbox-scroll-story__factory-foreground,
  .installbox-scroll-story__stage--manufacturing .installbox-scroll-story__factory-foreground-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
  }
  .installbox-scroll-story__stage1-content .installbox-scroll-story__stat-layer,
  .installbox-scroll-story__stage1-content h2 { position: relative; top: auto; left: auto; width: auto; height: auto; }
  .installbox-scroll-story__stage1-content .installbox-scroll-story__stat-layer { display: none; }
  .installbox-scroll-story__stage1-content h2 { margin-top: 18px; font-size: clamp(34px, 9vw, 46px); white-space: normal; }
  .installbox-scroll-story__stage1-content h2 .reveal-mask { height: auto; }
  .installbox-scroll-story__stage1-content h2 { font-size: clamp(34px, 9vw, 46px); }
  .installbox-scroll-story__stat { font-size: clamp(92px, 24vw, 140px); }
  .installbox-scroll-story__body { font-size: 16px; line-height: 1.5; }
  .installbox-scroll-story__stage1-content .installbox-scroll-story__body {
    margin-left: -8px;
    padding: 7px 12px 8px 10px;
    font-size: 17px;
  }

  .installbox-scroll-story__stage--system {
    position: relative;
    display: block;
    min-height: clamp(470px, 128vw, 560px);
    background: var(--story-stage-gray);
  }

  .installbox-scroll-story__stage--environment {
    position: relative;
    display: block;
    min-height: 0;
    aspect-ratio: 1920 / 800;
    background: #16320e;
  }

  .installbox-scroll-story__environment-media,
  .installbox-scroll-story__environment-artboard,
  .installbox-scroll-story__environment-image {
    position: absolute;
    inset: 0;
  }

  .installbox-scroll-story__environment-artboard {
    width: 100%;
    height: 100%;
    aspect-ratio: 1920 / 800;
    transform: none;
  }

  .installbox-scroll-story__stage--system .installbox-scroll-story__product-media {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100% !important;
    min-height: 0;
  }

  .installbox-product-stage-safe-frame {
    inset: auto 14px 18px;
    height: 64%;
    align-items: flex-end;
  }

  .installbox-product-stage-safe-frame .installbox-scroll-story__product-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
  }

  .installbox-scroll-story__stage--system .installbox-scroll-story__stage2-copy {
    position: absolute;
    z-index: 3;
    inset: 0 0 auto auto;
    order: 1;
    width: min(88vw, 430px);
    min-height: 0;
    padding: clamp(90px, 18vw, 116px) 24px 28px 20px;
    background: linear-gradient(270deg, rgba(7,32,36,.62) 0%, rgba(7,32,36,.24) 72%, rgba(7,32,36,0) 100%);
  }

  .installbox-scroll-story__stage--system .installbox-scroll-story__stage2-copy h2 {
    max-width: 330px;
    font-size: clamp(32px, 9vw, 44px);
    line-height: .98;
  }

  .installbox-scroll-story__stage--system .installbox-scroll-story__stage2-copy .installbox-scroll-story__body {
    max-width: 300px;
    margin-top: 15px;
    font-size: 14px;
  }

  .installbox-scroll-story__stage--system .installbox-scroll-story__stage2-copy .installbox-scroll-story__actions { margin-top: 19px; }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .installbox-product-stage-safe-frame { inset-inline: 4vw; }
  .installbox-scroll-story__stage--system .installbox-scroll-story__stage2-copy { width: min(520px, 48vw); padding-left: 5vw; }
}

@media (min-width: 768px) and (max-aspect-ratio: 2/1) {
  .installbox-scroll-story__environment-media::before {
    position: absolute;
    z-index: 0;
    inset: -24px;
    display: block;
    background-position: center center;
    background-size: cover;
    content: '';
    filter: blur(18px) saturate(.92);
    transform: scale(1.04);
  }

  .installbox-scroll-story__environment-media::before {
    background-image: url('../images/environment-poster.webp?ver=20260915.3');
  }

  .installbox-scroll-story__environment-artboard {
    z-index: 1;
    width: 100%;
    height: auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .installbox-scroll-story *,
  .installbox-scroll-story *::before,
  .installbox-scroll-story *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .installbox-scroll-story__factory-copy { transform: none !important; }
  .installbox-scroll-story__digit-strip { filter: none !important; }
}


/* Shared editorial motion controls. They sit inside the story viewport and do not add flow space. */
.installbox-motion-controls {
  position: absolute;
  z-index: 12;
  right: clamp(24px, 2.4vw, 32px);
  bottom: clamp(24px, 3.2vh, 32px);
  display: inline-flex;
  gap: 10px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.installbox-motion-controls.is-active { opacity: 1; pointer-events: auto; transform: none; }
.installbox-motion-control {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 2px;
  background: rgba(7,32,36,.42);
  color: rgba(255,255,255,.9);
  font: 600 14px/1.1 Inter, Manrope, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: .04em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}
.installbox-motion-control:hover,
.installbox-motion-control:focus-visible { border-color: rgba(255,255,255,.8); background: rgba(7,32,36,.7); color: #fff; }
.installbox-motion-control:focus-visible { outline: 2px solid rgba(0,186,194,.8); outline-offset: 3px; }
.installbox-motion-control:disabled { cursor: default; opacity: .55; }
.installbox-scroll-story.is-motion-skipped { height: 100svh; overflow: visible; }
.installbox-scroll-story.is-motion-skipped .installbox-scroll-story__sticky { position: relative; top: auto; height: 100svh; }
.installbox-scroll-story.is-motion-skipped .installbox-scroll-story__stage--environment { clip-path: inset(0); pointer-events: auto; }
.installbox-scroll-story.is-motion-skipped .installbox-motion-controls { display: none; }
@media (max-width: 767px) {
  .installbox-motion-controls { position: fixed; right: 16px; bottom: 16px; }
  .installbox-motion-control { min-height: 42px; padding-inline: 13px; font-size: 14px; }
  .installbox-scroll-story.is-motion-skipped { height: auto; }
  .installbox-scroll-story.is-motion-skipped .installbox-scroll-story__sticky { position: relative; height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .installbox-motion-controls { display: none; }
}
