/* A single scoped product encounter. No global Scroll Craft reset or theme. */
.premium-home .upvc-technology.vastroof-experience {
  --roof-ground: #182227;
  --roof-ink: #fff;
  --roof-soft: #e0e7e3;
  padding: 0;
  overflow: visible;
  /* Do not anchor the viewport to captions as the active beat changes. */
  overflow-anchor: none;
  background: var(--roof-ground);
  color: var(--roof-ink);
  scroll-margin-top: var(--header-height);
}
.vastroof-stage { position: relative; }
.vastroof-film { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #b9c4c5; }
.vastroof-poster, .vastroof-poster img, .vastroof-sequence { display: block; width: 100%; height: 100%; object-fit: cover; }
.vastroof-poster { position: absolute; inset: 0; }
.vastroof-sequence { position: absolute; inset: 0; opacity: 0; }
.vastroof-copy-stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; padding-block: 56px; }
.vastroof-copy h2, .vastroof-copy h3 { font-size: clamp(1.75rem, 2.8vw, 3rem); color: #fff; line-height: 1.09; margin: 0 0 20px; font-weight: 400; letter-spacing: -.04em; }
.vastroof-copy p { max-width: 34ch; color: var(--roof-soft); font-size: 1rem; line-height: 1.65; margin: 0; }
.vastroof-copy .vastroof-label { margin: 0 0 22px; font-size: .6875rem; font-weight: 600; letter-spacing: .14em; color: #fff; }
.vastroof-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 24px; max-width: 520px; margin: 24px 0 0; color: #fff; }
.vastroof-specs > div { min-width: 0; }
.vastroof-specs dt { display: block; font-size: .75rem; line-height: 1.4; color: var(--roof-soft); }
.vastroof-specs dd { margin: 6px 0 0; font-size: 1.75rem; line-height: 1.1; font-weight: 400; letter-spacing: -.035em; white-space: nowrap; }
.vastroof-specs small { font-size: .875rem; letter-spacing: 0; }
.vastroof-spec--wide { grid-column: span 2; }
.vastroof-static-detail { display: block; width: min(100% - 48px, 1280px); height: auto; margin: 0 auto 48px; }
.vastroof-scrim { display: none; }

/* Loading and playback share one geometry: no late layout expansion.
   Without JS, reduced motion or failed delivery, all content stays in flow. */
.vastroof-experience:not([data-roof-layout="enhanced"]) .vastroof-flight { height: auto !important; }
.vastroof-experience[data-roof-layout="enhanced"] .vastroof-flight { height: 380svh !important; }
.vastroof-experience[data-roof-layout="enhanced"] .vastroof-stage { position: sticky; top: var(--header-height); height: calc(100svh - var(--header-height)); min-height: 480px; overflow: hidden; isolation: isolate; }
.vastroof-experience[data-roof-layout="enhanced"] .vastroof-film { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.vastroof-experience[data-roof-state="ready"] .vastroof-sequence { opacity: 1; }
.vastroof-experience[data-roof-layout="enhanced"] .vastroof-copy-stack { position: absolute; inset: 0; display: block; padding: 0; z-index: 2; pointer-events: none; }
.vastroof-experience[data-roof-layout="enhanced"] .vastroof-copy { position: absolute; left: max(var(--page-pad), env(safe-area-inset-left)); bottom: clamp(48px, 7vh, 96px); width: min(48vw, 620px); opacity: var(--roof-opacity, 0); transform: translate3d(0, calc((1 - var(--roof-opacity, 0)) * 12px), 0); }
.vastroof-experience[data-roof-layout="enhanced"] .vastroof-copy h2,
.vastroof-experience[data-roof-layout="enhanced"] .vastroof-copy h3 { font-size: clamp(2.5rem, 4.1vw, 4.25rem); }
.vastroof-experience[data-roof-layout="enhanced"] .vastroof-copy p { max-width: 32ch; }
.vastroof-experience[data-roof-layout="enhanced"] .vastroof-scrim { display: block; position: absolute; left: 0; bottom: 0; width: min(68vw, 960px); height: min(80%, 650px); background: linear-gradient(90deg, rgba(11,24,28,.94), rgba(11,24,28,.82) 55%, transparent); mask-image: linear-gradient(0deg, #000 60%, transparent); -webkit-mask-image: linear-gradient(0deg, #000 60%, transparent); pointer-events: none; z-index: 1; }
.vastroof-experience[data-roof-layout="enhanced"] .vastroof-static-detail { display: none; }

@media (max-width: 860px) {
  .vastroof-copy-stack { grid-template-columns: 1fr; gap: 40px; padding-block: 36px; }
  .vastroof-film { aspect-ratio: 3 / 4; max-height: 68svh; }
  .vastroof-experience[data-roof-layout="enhanced"] .vastroof-flight { height: 340svh !important; }
  /* Only the active caption sizes the bottom row. Short copy gives the film
     more room; the specification list can grow without a fixed-height slot. */
  .vastroof-experience[data-roof-layout="enhanced"] .vastroof-stage { min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
  .vastroof-experience[data-roof-layout="enhanced"] .vastroof-film { position: relative; inset: auto; height: 100%; min-height: 0; max-height: none; }
  .vastroof-experience[data-roof-layout="enhanced"] .vastroof-scrim { display: none; }
  .vastroof-experience[data-roof-layout="enhanced"] .vastroof-copy-stack { position: relative; inset: auto; height: auto; padding-block: 24px; padding-left: max(var(--page-pad), env(safe-area-inset-left)); padding-right: max(var(--page-pad), env(safe-area-inset-right)); }
  .vastroof-experience[data-roof-layout="enhanced"] .vastroof-copy { display: none; position: static; width: 100%; transform: none; }
  .vastroof-experience[data-roof-layout="enhanced"] .vastroof-copy[aria-hidden="false"],
  .vastroof-experience[data-roof-layout="enhanced"] .vastroof-copy:first-child:not([aria-hidden]) { display: block; }
  .vastroof-experience[data-roof-layout="enhanced"] .vastroof-copy h2,
  .vastroof-experience[data-roof-layout="enhanced"] .vastroof-copy h3 { font-size: clamp(1.75rem, 5.8vw, 2.5rem); line-height: 1.08; margin-bottom: 12px; }
  .vastroof-experience[data-roof-layout="enhanced"] .vastroof-copy h3 br { display: none; }
  .vastroof-experience[data-roof-layout="enhanced"] .vastroof-copy p { font-size: .8125rem; line-height: 1.55; max-width: 42ch; }
  .vastroof-experience[data-roof-layout="enhanced"] .vastroof-copy .vastroof-label { font-size: .625rem; margin-bottom: 12px; }
  .vastroof-specs { margin-top: 18px; gap: 14px 12px; }
  .vastroof-specs dt { font-size: .6875rem; }
  .vastroof-specs dd { font-size: 1.5rem; margin-top: 4px; }
  .vastroof-specs small { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .vastroof-experience .vastroof-flight { height: auto !important; }
}
@media (max-height: 480px) {
  .vastroof-experience[data-roof-layout="enhanced"] .vastroof-stage { min-height: 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .vastroof-experience[data-roof-layout="enhanced"] .vastroof-film { position: relative; inset: auto; height: 100%; min-height: 0; max-height: none; }
  .vastroof-experience[data-roof-layout="enhanced"] .vastroof-scrim { display: none; }
  .vastroof-experience[data-roof-layout="enhanced"] .vastroof-copy-stack { position: relative; inset: auto; width: 100%; padding: 16px max(16px, env(safe-area-inset-right)) 16px 20px; align-self: center; }
  .vastroof-experience[data-roof-layout="enhanced"] .vastroof-copy { display: none; position: static; width: 100%; transform: none; }
  .vastroof-experience[data-roof-layout="enhanced"] .vastroof-copy[aria-hidden="false"] { display: block; }
  .vastroof-experience[data-roof-layout="enhanced"] .vastroof-copy h2,
  .vastroof-experience[data-roof-layout="enhanced"] .vastroof-copy h3 { font-size: clamp(1.25rem, 3.2vw, 1.75rem); line-height: 1.08; margin-bottom: 10px; }
  .vastroof-experience[data-roof-layout="enhanced"] .vastroof-copy h3 br { display: none; }
  .vastroof-experience[data-roof-layout="enhanced"] .vastroof-copy p { font-size: .75rem; line-height: 1.45; }
  .vastroof-experience[data-roof-layout="enhanced"] .vastroof-copy .vastroof-label { font-size: .5625rem; margin-bottom: 10px; }
  .vastroof-experience[data-roof-layout="enhanced"] .vastroof-specs { margin-top: 12px; gap: 12px; }
  .vastroof-experience[data-roof-layout="enhanced"] .vastroof-specs dt { font-size: .625rem; }
  .vastroof-experience[data-roof-layout="enhanced"] .vastroof-specs dd { font-size: 1.25rem; }
}
