:root { --film-blue: #0a1f3d; }

.heritage-present-panel {
  grid-template-columns: minmax(190px, 0.52fr) minmax(0, 1.48fr);
  grid-template-areas:
    "heading heading"
    "media copy";
  column-gap: clamp(34px, 5vw, 60px);
  row-gap: 34px;
}
.heritage-present-panel > .heritage-present-heading { grid-area: heading; }
.heritage-present-panel > .heritage-present-media { grid-area: media; align-self: start; padding-top: 47px; }
.heritage-present-panel > .heritage-present-copy { grid-area: copy; align-self: start; }
.heritage-present-heading { min-width: 0; }
.brand-film-figure {
  width: min(100%, 220px);
  margin: 0;
}

.brand-film-trigger {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(167, 127, 42, 0.48);
  background: #13283c;
  cursor: pointer;
  box-shadow: 0 18px 48px rgba(16, 35, 52, 0.12);
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.brand-film-trigger:hover,
.brand-film-trigger:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 56px rgba(16, 35, 52, 0.2);
}

.brand-film-trigger:focus-visible { outline: 2px solid #b08a43; outline-offset: 4px; }
.brand-film-poster { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand-film-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 50%;
  background: rgba(14, 31, 47, .7);
  color: white;
  box-shadow: 0 5px 24px rgba(0,0,0,.25);
  transition: background 180ms ease, scale 180ms ease;
}
.brand-film-trigger:hover .brand-film-play { background: #a77f2a; scale: 1.06; }
.brand-film-play svg { width: 19px; height: 22px; margin-left: 4px; fill: currentColor; }

.brand-film-caption {
  margin-top: 12px;
  color: #73777a;
  font-size: .66rem;
  font-weight: 650;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.brand-film-lightbox[hidden] { display: none; }
.brand-film-lightbox {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 5vw, 64px);
  background: rgba(7, 17, 27, .88);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  opacity: 0;
  transition: opacity 220ms ease;
}
.brand-film-lightbox.is-open { opacity: 1; }
.brand-film-dialog {
  position: relative;
  width: min(100%, 1060px);
  transform: translateY(10px) scale(.985);
  transition: transform 240ms ease;
}
.brand-film-lightbox.is-open .brand-film-dialog { transform: translateY(0) scale(1); }
.brand-film-overlays { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.brand-film-opening-card[hidden], .brand-film-ending-card[hidden] { display: none; }
.brand-film-opening-card,
.brand-film-ending-card {
  position: absolute;
  z-index: 3;
  inset: 0 auto 0 27.5%;
  display: block;
  width: 45%;
  height: 100%;
  object-fit: cover;
  background: var(--film-blue);
}
.brand-film-dialog video {
  display: block;
  width: 100%;
  max-height: min(78vh, 760px);
  aspect-ratio: 16 / 9;
  background: #07111b;
  object-fit: contain;
  box-shadow: 0 28px 90px rgba(0,0,0,.42);
}
.brand-film-dialog video::cue {
  color: #f7f3eb;
  background-color: rgba(7, 24, 43, .82);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .78em;
  text-shadow: 0 1px 3px rgba(0,0,0,.55);
}
.brand-film-close {
  position: absolute;
  z-index: 1;
  top: -18px;
  right: -18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 50%;
  background: #a77f2a;
  color: #fff;
  font: 300 27px/1 sans-serif;
  cursor: pointer;
}
.brand-film-close:hover, .brand-film-close:focus-visible { background: #c09a51; outline: 2px solid white; outline-offset: 3px; }
body.brand-film-modal-open { overflow: hidden; }

@media (max-width: 980px) {
  .heritage-present-panel {
    grid-template-columns: minmax(180px, 0.62fr) minmax(0, 1.38fr);
    grid-template-areas: "heading heading" "media copy";
    column-gap: 28px;
    row-gap: 24px;
  }
  .brand-film-figure { width: min(100%, 220px); }
}
@media (max-width: 620px) {
  .heritage-present-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "media" "copy";
    row-gap: 20px;
  }
  .heritage-present-panel > .heritage-present-media { align-self: start; padding-top: 0; }
  .heritage-present-panel > .heritage-present-copy { padding-top: 0;
  }
  .brand-film-figure { width: min(100%, 220px); }
  .brand-film-play { width: 58px; height: 58px; }
  .brand-film-lightbox { padding: 18px; }
  .brand-film-dialog video { max-height: 72vh; }
  .brand-film-close { top: -15px; right: -8px; width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-film-trigger, .brand-film-play, .brand-film-lightbox, .brand-film-dialog { transition: none; }
}
