/* ==========================================================
   FULL-SCREEN WEDDING FILM
   ========================================================== */
main {
  position: relative;
  /* MOBILE X-SCROLL FIX: the rotated + scaled ribbon is wider than the screen.
     `clip` (not `hidden`) trims that overflow without breaking the sticky function cards. */
  overflow-x: clip;
}

.banner {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  color: #fff;
  background: #170e0f url("../assets/images/final-poster.webp") center / cover no-repeat;
}

.banner-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(15,8,9,.35), transparent 25%, transparent 68%, rgba(15,8,9,.72)),
    linear-gradient(90deg, rgba(15,8,9,.35), transparent 45%, rgba(15,8,9,.08));
}

.banner-label {
  position: absolute;
  z-index: 3;
  top: 95px;
  left: clamp(24px, 6vw, 90px);
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-royal);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  transition: opacity .35s;
}

.banner-label::before {
  content: "";
  width: 45px;
  height: 1px;
  background: rgba(255,255,255,.65);
}

.banner.is-playing .banner-label { opacity: 0; }

.banner-copy {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: min(820px, calc(100% - 48px));
  text-align: center;
  transform: translate(-50%, -50%);
}

.banner-caption {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  padding: clamp(30px, 5vw, 54px) clamp(22px, 4vw, 48px);
  opacity: 1;
  transform: translate3d(0, -50%, 0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 2px 10px rgba(0,0,0,.6), 0 12px 46px rgba(0,0,0,.5);
  pointer-events: none;
}

.banner-caption::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -22% -16%;
  background: radial-gradient(ellipse at center, rgba(10,4,6,.70) 0%, rgba(10,4,6,.52) 32%, rgba(10,4,6,.26) 55%, rgba(10,4,6,.08) 72%, transparent 85%);
  opacity: 0;
  transform: scale(.96);
  transition: opacity 1.1s ease, transform 1.2s cubic-bezier(.22, .75, .22, 1);
}

.banner-caption > * {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity .75s ease-out,
    transform .9s cubic-bezier(.16, 1, .3, 1);
}

.banner-caption.is-active::before {
  opacity: 1;
  transform: scale(1);
}

.banner-caption.is-active > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.banner-caption.is-active > :nth-child(1) { transition-delay: .25s; }
.banner-caption.is-active > :nth-child(2) { transition-delay: .38s; }
.banner-caption.is-active > :nth-child(3) { transition-delay: .50s; }
.banner-caption.is-active > :nth-child(4) { transition-delay: .62s; }
.banner-caption.is-active > :nth-child(5) { transition-delay: .74s; }
.banner-caption.is-active > :nth-child(6) { transition-delay: .86s; }
.banner-caption.is-active > :nth-child(7) { transition-delay: .98s; }
.banner-caption.is-active > :nth-child(8) { transition-delay: 1.10s; }

.fw-lead {
  margin: 0 0 4px;
  font-family: var(--font-script);
  font-size: clamp(22px,2.9vw,36px);
  line-height: 1.5;
}
.fw-name {
  margin: 2px 0;
  color: #ffd9a1;
  font-family: var(--font-script);
  font-size: clamp(44px,6.6vw,86px);
  font-weight: 400;
  line-height: 1.32;
}
.fw-rel {
  margin: 0 0 2px;
  font-family: var(--font-script);
  font-size: clamp(21px,2.5vw,30px);
}
.fw-parents {
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(18px,2.2vw,28px);
  line-height: 1.5;
}
.fw-with {
  margin: 14px 0 2px;
  font-family: var(--font-script);
  font-size: clamp(21px,2.5vw,30px);
  color: rgba(255,255,255,.9);
}

.banner-progress {
  position: absolute;
  z-index: 4;
  right: clamp(18px,3vw,40px);
  top: 50%;
  width: 2px;
  height: min(42vh, 330px);
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.25);
  transform: translateY(-50%);
}
.banner-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(#ffddae, #e67b9f);
  transform: scaleY(0);
  transform-origin: top;
}
.banner-percent {
  position: absolute;
  z-index: 4;
  right: clamp(14px,3vw,34px);
  top: calc(50% + min(24vh, 185px));
  font-family: var(--font-royal);
  font-size: 12px;
}

.banner-play {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: max(70px, calc(env(safe-area-inset-bottom) + 60px));
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px 10px 10px;
  border: 1px solid rgba(255,217,161,.55);
  border-radius: 999px;
  color: #fff6ea;
  background: rgba(20,10,12,.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  font: 600 12px/1 var(--font-royal);
  letter-spacing: .22em;
  text-transform: uppercase;
  cursor: pointer;
  transform: translateX(-50%);
  transition: opacity .35s ease, transform .35s ease;
}
.banner-play i {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd9a1, #e67b9f);
  animation: film-pulse 1.8s ease-out infinite;
}
.banner-play i::before {
  content: "";
  margin-left: 4px;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #3a1418;
}
.banner-play.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
}
.banner-play:focus-visible { outline: 2px solid #ffd9a1; outline-offset: 4px; }

.banner-scroll-hint {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: max(72px, calc(env(safe-area-inset-bottom) + 62px));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 21px;
  border: 1px solid rgba(255,217,161,.62);
  border-radius: 999px;
  color: #fff6ea;
  background: rgba(20,10,12,.64);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  font: 600 11px/1 var(--font-royal);
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity .35s ease, transform .35s ease;
}

.banner-scroll-hint.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.banner-scroll-hint i {
  width: 9px;
  height: 9px;
  border-right: 2px solid #ffd9a1;
  border-bottom: 2px solid #ffd9a1;
  transform: rotate(45deg) translateY(-2px);
  animation: scroll-hint-bounce 1.35s ease-in-out infinite;
}

.banner-scroll-hint:focus-visible { outline: 2px solid #ffd9a1; outline-offset: 4px; }

@keyframes film-pulse {
  70% { box-shadow: 0 0 0 14px rgba(255,217,161,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,217,161,0); }
}

@keyframes scroll-hint-bounce {
  0%, 100% { transform: rotate(45deg) translate(-1px, -1px); }
  50% { transform: rotate(45deg) translate(3px, 3px); }
}

@media (max-width: 650px) {
  .banner-label { top: 86px; }
  .banner-copy { width: calc(100% - 30px); }
  .fw-name { font-size: 46px; }
  .fw-lead, .fw-parents { font-size: 16px; }
  .fw-rel, .fw-with { font-size: clamp(16px, 4.6vw, 21px); }
  .banner-progress { right: 15px; }
  .banner-percent { right: 10px; }
}
