.motion-section {
  --motion-film-width: clamp(430px, 64vw, 920px);
  position: relative;
  isolation: isolate;
  padding: 0;
  overflow: hidden;
  background: #171314;
  color: var(--ivory);
}

.motion-ambient {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  opacity: 1;
  pointer-events: none;
}

.motion-ambient__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.92;
  filter: blur(42px) brightness(0.46) saturate(0.88);
  transform: scale(1.08);
}

.motion-shell {
  position: relative;
  z-index: 2;
  width: min(100%, 1760px);
  margin-inline: auto;
  padding: clamp(72px, 9vw, 132px) clamp(24px, 7.2vw, 112px) clamp(84px, 10vw, 148px);
}

.motion-heading {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(26px, 3.4vw, 48px);
}

.motion-heading h2 {
  margin: 0 0 -0.08em;
  color: var(--ivory);
  font-family: var(--display);
  font-size: clamp(58px, 9.1vw, 140px);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.78;
  text-transform: uppercase;
}

.motion-runway {
  position: absolute;
  right: calc((100% - var(--motion-film-width)) / 2);
  bottom: 0.2em;
  margin: 0;
  padding: 0;
  color: rgba(244, 236, 231, 0.76);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.21em;
  line-height: 1;
  text-transform: uppercase;
}

.motion-film {
  position: relative;
  width: var(--motion-film-width);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  overflow: hidden;
  background: #431018;
}

.motion-film__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  transform: scale(1);
  transition: opacity 150ms ease-in-out;
  user-select: none;
}

.motion-film__video.is-loop-transition {
  opacity: 0.12;
}

.motion-controls {
  display: flex;
  width: var(--motion-film-width);
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
  margin: 0 auto;
  padding-top: 19px;
}

.motion-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.17em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease;
}

.motion-toggle:hover {
  color: rgba(244, 236, 231, 0.76);
}

.motion-toggle:focus-visible {
  outline: 1px solid rgba(244, 236, 231, 0.76);
  outline-offset: 5px;
}

.motion-toggle__icon {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.motion-toggle__play {
  fill: currentColor;
  stroke: none;
}

.motion-toggle__pause {
  display: none;
}

.motion-section.is-playing .motion-toggle__play {
  display: none;
}

.motion-section.is-playing .motion-toggle__pause {
  display: block;
}

.motion-progress {
  position: relative;
  width: 100%;
  height: 1px;
  overflow: hidden;
  background: rgba(244, 236, 231, 0.3);
}

.motion-progress__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: rgba(244, 236, 231, 0.86);
  transition: width 100ms linear;
}

@media (max-width: 900px) {
  .motion-section {
    --motion-film-width: min(90vw, 560px);
  }

  .motion-shell {
    padding: 74px 5vw 86px;
  }

  .motion-ambient__video {
    filter: blur(28px) brightness(0.42) saturate(0.88);
  }

  .motion-heading {
    margin-bottom: 26px;
  }

  .motion-heading h2 {
    font-size: clamp(56px, 14.4vw, 88px);
  }

  .motion-runway {
    padding-bottom: 0.14em;
    font-size: 9px;
  }

  .motion-controls {
    gap: 22px;
    padding-top: 16px;
  }
}

@media (max-width: 420px) {
  .motion-section {
    --motion-film-width: 90vw;
  }

  .motion-heading {
    gap: 12px;
  }

  .motion-heading h2 {
    font-size: clamp(52px, 14vw, 62px);
  }

  .motion-runway {
    font-size: 8px;
    letter-spacing: 0.19em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-toggle {
    transition: none;
  }

  .motion-progress__fill {
    transition: none;
  }

  .motion-film__video {
    transition: none;
  }
}
