.scroll-story {
  position: relative;
  min-height: 175vh;
  background: #0c0e0c;
  color: #f2eee5;
}

/* The opening film plays normally; scrolling only moves to the next section. */
.scroll-story--ambient { min-height: 100svh; }
.scroll-story--ambient .scroll-story__sticky { position: relative; }
.scroll-story--ambient .scroll-story__media video { opacity: 1; transition: none; }


.scroll-story__sticky {
  position: sticky;
  top: 0;
  display: grid;
  min-height: 100svh;
  place-items: end start;
  overflow: hidden;
}

.scroll-story__media,
.scroll-story__media video,
.scroll-story__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scroll-story__media {
  margin: 0;
  background: #11140f;
}

.scroll-story__media video,
.scroll-story__fallback {
  object-fit: cover;
}

.scroll-story__media video {
  z-index: 1;
  opacity: 0;
  transition: opacity 280ms ease;
}

.scroll-story.is-video-ready .scroll-story__media video {
  opacity: 1;
}

.scroll-story.is-static .scroll-story__media video {
  display: none;
}

.scroll-story__veil {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 9, 7, .86) 0%, rgba(7, 9, 7, .46) 48%, rgba(7, 9, 7, .08) 78%), linear-gradient(0deg, rgba(7, 9, 7, .62), transparent 55%);
  pointer-events: none;
}

.scroll-story__copy {
  position: relative;
  z-index: 3;
  width: min(44rem, calc(100% - 2rem));
  margin: 0 max(1rem, calc((100vw - 1180px) / 2)) clamp(3rem, 9vh, 7rem);
}

.scroll-story__copy h2 {
  max-width: 12ch;
  margin: .55rem 0 1rem;
  color: inherit;
  font-size: clamp(2.6rem, 7vw, 6.8rem);
  line-height: .92;
}

.scroll-story__copy p:last-child {
  max-width: 38rem;
  color: rgba(242, 238, 229, .82);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

/* The VEIO screen film belongs to the opening block, behind its primary copy. */
.scroll-story--lead .scroll-story__sticky {
  min-height: 100svh;
  place-items: center start;
}

.scroll-story--lead .scroll-story__media video,
.scroll-story--lead .scroll-story__fallback {
  object-position: center;
}

.scroll-story--lead .scroll-story__veil {
  background: linear-gradient(90deg, rgba(7, 9, 7, .94) 0%, rgba(7, 9, 7, .84) 28%, rgba(7, 9, 7, .48) 53%, rgba(7, 9, 7, .08) 100%),
    linear-gradient(0deg, rgba(7, 9, 7, .58), transparent 38%);
}

.scroll-story__lead-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-block: 4rem 6rem;
}

.scroll-story--lead h1 {
  max-width: 12ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 7vw, 6.8rem);
}

.scroll-story--lead .hero-copy,
.scroll-story--lead .service-intro { max-width: 660px; }
.scroll-story--lead .hero-lede,
.scroll-story--lead .service-lede { color: rgba(242, 238, 229, .88); }

.scroll-story__lead-footer {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 1.4rem;
  left: 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(242, 238, 229, .78);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Siti Web and Rebranding use films with important detail and on-frame text. */
.scroll-story--framed .scroll-story__sticky {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(.8rem, 2svh, 1.5rem);
  box-sizing: border-box;
  padding: clamp(1rem, 3svh, 2rem) 1.25rem;
}

.scroll-story--framed .scroll-story__copy {
  order: -1;
  width: min(56rem, 100%);
  margin: 0;
  text-align: center;
}

.scroll-story--framed .scroll-story__copy h2 {
  max-width: 22ch;
  margin: .4rem auto .75rem;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1;
}

.scroll-story--framed .scroll-story__copy p:last-child {
  max-width: 43rem;
  margin-inline: auto;
  font-size: clamp(.95rem, 1.3vw, 1.1rem);
}

.scroll-story--framed .scroll-story__media {
  position: relative;
  inset: auto;
  flex: none;
  width: min(960px, 100%, 97.78svh);
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(212, 173, 102, .35);
  box-shadow: 0 1rem 4rem rgba(0, 0, 0, .38);
}

.scroll-story--framed .scroll-story__media video,
.scroll-story--framed .scroll-story__fallback { object-fit: contain; }
.scroll-story--framed .scroll-story__veil { display: none; }

html.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity 520ms ease, transform 620ms cubic-bezier(.2, .75, .25, 1);
}

html.motion-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (max-width: 699px) {
  .scroll-story { min-height: 150vh; }
  .scroll-story--ambient { min-height: 100svh; }
  .scroll-story__sticky { min-height: 88svh; }
  .scroll-story__veil { background: linear-gradient(0deg, rgba(7, 9, 7, .9) 5%, rgba(7, 9, 7, .18) 78%); }
  .scroll-story__copy { margin-bottom: 2.2rem; }
  .scroll-story__copy h2 { font-size: clamp(2.35rem, 13vw, 4.2rem); }
  .scroll-story--framed .scroll-story__copy h2 { font-size: clamp(1.95rem, 8vw, 2.65rem); }
  .scroll-story--lead .scroll-story__sticky,
  .scroll-story__lead-content { min-height: 100svh; }
  .scroll-story--lead .scroll-story__media video,
  .scroll-story--lead .scroll-story__fallback { object-position: 65% center; }
  .scroll-story--lead .scroll-story__veil {
    background: linear-gradient(0deg, rgba(7, 9, 7, .96) 0%, rgba(7, 9, 7, .83) 48%, rgba(7, 9, 7, .22) 100%);
  }
  .scroll-story__lead-content { align-items: end; padding-block: 4rem 6.5rem; }
  .scroll-story--lead h1 { font-size: clamp(2.8rem, 11vw, 4.2rem); }
  .scroll-story__lead-footer { bottom: 1.1rem; }
  .scroll-story__lead-footer span:last-child { display: none; }
}

@media (max-width: 699px) and (max-height: 650px) {
  .scroll-story__lead-content { padding-block: 1rem 6rem; }
  .scroll-story__lead-footer { bottom: .25rem; font-size: .58rem; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-story { min-height: auto; }
  .scroll-story__sticky { position: relative; min-height: min(82svh, 46rem); }
  .scroll-story__media video { display: none; }
  html.motion-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
}
