/* video-teaser – silent background clip + film lightbox */

.video-teaser { padding: var(--ag-sp-50) 0 var(--ag-sp-70); }

.video-teaser__frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: min(82vh, 760px);
  border-radius: var(--ag-radius);   /* 10px, same as the photos above */
  background: #1a1a1a;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .45);
}
.video-teaser__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.6s cubic-bezier(.2, .8, .2, 1);
}
.video-teaser.is-visible .video-teaser__bg { transform: scale(1); }
.video-teaser__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 12, 10, .82) 0%, rgba(20, 12, 10, .45) 45%, rgba(20, 12, 10, .05) 75%),
    linear-gradient(0deg, rgba(20, 12, 10, .55) 0%, transparent 45%);
}

.video-teaser__content {
  max-width: 760px;
  padding: clamp(28px, 6vw, 80px);
  color: #fff;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease .2s, transform .9s cubic-bezier(.2, .8, .2, 1) .2s;
}
.video-teaser.is-visible .video-teaser__content { opacity: 1; transform: none; }

.video-teaser__kicker {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.1rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
}
.video-teaser__kicker span { width: 32px; height: 2px; background: var(--ag-primary); border-radius: 2px; }
.video-teaser__heading {
  color: #fff;
  font-size: clamp(2.2rem, 2.2rem + ((1vw - .2rem) * 2.6), 4.25rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.02;
  margin: 0 0 1.1rem;
}
.video-teaser__text {
  color: rgba(255, 255, 255, .88);
  font-size: var(--ag-fs-medium);
  line-height: 1.6;
  margin: 0 0 2rem;
  max-width: 480px;
}

/* Play button */
.video-teaser__play {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: .45rem 1.6rem .45rem .45rem;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-family: var(--ag-font);
  cursor: pointer;
  transition: background-color .3s ease, color .3s ease, transform .3s ease, border-color .3s ease;
}
.video-teaser__play-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--ag-primary);
  font-size: 1.7rem;
  padding-left: 3px;
  transition: transform .3s ease, background-color .3s ease;
}
.video-teaser__play-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--ag-primary);
  animation: teaserPulse 2.2s ease-out infinite;
}
@keyframes teaserPulse {
  0% { transform: scale(1); opacity: .9; }
  100% { transform: scale(1.7); opacity: 0; }
}
.video-teaser__play-label { display: flex; flex-direction: column; align-items: flex-start; font-size: 1rem; font-weight: 700; line-height: 1.25; }
.video-teaser__play-label small { font-size: .75rem; font-weight: 500; opacity: .8; }
.video-teaser__play:hover, .video-teaser__play:focus-visible {
  background: #fff;
  border-color: #fff;
  color: var(--ag-text);
  transform: translateY(-2px);
}
.video-teaser__play:hover .video-teaser__play-icon { transform: scale(1.08); background: var(--ag-primary-dark); color: #fff; }
.video-teaser__play:focus-visible { outline: 3px solid rgba(255, 255, 255, .6); outline-offset: 4px; }

/* Pause/play for the background clip */
.video-teaser__toggle {
  position: absolute;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(0, 0, 0, .25);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color .2s ease;
}
.video-teaser__toggle:hover { background: rgba(0, 0, 0, .5); }

@media (max-width: 600px) {
  .video-teaser__frame { min-height: 78vh; }
  .video-teaser__shade { background: linear-gradient(0deg, rgba(20, 12, 10, .9) 0%, rgba(20, 12, 10, .5) 55%, rgba(20, 12, 10, .15) 100%); }
}

/* ---------- Lightbox ---------- */
.film-lightbox {
  width: min(1200px, 92vw);
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.film-lightbox::backdrop { background: rgba(10, 8, 8, .88); backdrop-filter: blur(6px); }
.film-lightbox[open] { animation: filmIn .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes filmIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.film-lightbox__frame { border-radius: var(--ag-radius); overflow: hidden; background: #000; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); }
.film-lightbox video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 82vh; background: #000; }
.film-lightbox__close {
  position: absolute;
  top: -52px;
  right: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.film-lightbox__close:hover { background: #fff; color: var(--ag-text); transform: rotate(90deg); }

@media (prefers-reduced-motion: reduce) {
  .video-teaser__bg, .video-teaser__content { transition: none; transform: none; opacity: 1; }
  .video-teaser__play-icon::before { animation: none; }
}

/* Lightbox: always centred, close button inside the frame */
.film-lightbox[open] { position: fixed; inset: 0; margin: auto; height: fit-content; max-height: 92vh; }
.film-lightbox__frame { position: relative; }
.film-lightbox__close { top: 14px; right: 14px; z-index: 2; background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px); }
