/* The homepage opening is isolated from the existing property Journey. */
#top.mm-hero {
  --mm-navy: #071326;
  --mm-ivory: #f7f5f0;
  --mm-champagne: #d8c09a;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: minmax(min-content, 1fr) auto;
  gap: clamp(38px, 6vh, 80px);
  min-height: var(--viewport-height, 100svh);
  padding: calc(var(--header, 84px) + clamp(46px, 7vh, 90px)) 6.2% max(28px, env(safe-area-inset-bottom));
  background: var(--mm-navy);
  color: var(--mm-ivory);
  font-family: Manrope, NicheSans, Arial, sans-serif;
  scroll-margin: 0;
}

.mm-hero .mm-hero-media,
.mm-hero .mm-hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mm-hero .mm-hero-media {
  z-index: -3;
  overflow: hidden;
  background: var(--mm-navy);
}

.mm-hero #mm-hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 62% center;
  opacity: 1;
  transition: opacity 900ms ease;
}

.mm-hero #mm-hero-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 900ms ease;
}

.mm-hero.is-film-ready #mm-hero-player { opacity: 1; }
.mm-hero.is-film-ready #mm-hero-poster { opacity: 0; }

/* Full-height, edge-to-edge cinema. Only the navigation has a shallow top fade. */
.mm-hero .mm-hero-shade {
  z-index: -2;
  background: linear-gradient(180deg, rgb(3 9 18 / 54%) 0px, rgb(3 9 18 / 30%) 65px, rgb(3 9 18 / 9%) 125px, transparent 190px);
}

.mm-hero .mm-hero-copy {
  position: relative;
  isolation: isolate;
  align-self: center;
  width: min(100%, 970px);
  padding: 0;
  text-shadow: 0 1px 3px rgb(0 0 0 / 65%), 0 3px 12px rgb(0 0 0 / 45%);
}


.mm-hero :is(#mm-hero-player, #mm-hero-poster) { filter: none; }
.mm-hero .mm-hero-actions a { text-shadow: none; }

.mm-hero .mm-hero-eyebrow {
  margin: 0 0 clamp(24px, 3vh, 38px);
  color: var(--mm-champagne);
  font-size: clamp(.875rem, 1vw, 1rem);
  line-height: 1.65;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.mm-hero #hero-title {
  max-width: 12.9em;
  margin: 0;
  font-family: 'Cormorant Garamond', NicheSerif, Georgia, serif;
  font-size: clamp(4.4rem, min(7.1vw, 11.8vh), 8.3rem);
  font-weight: 400;
  line-height: .99;
  letter-spacing: -.035em;
  text-wrap: balance;
  text-shadow: 0 2px 4px rgb(0 0 0 / 55%), 0 6px 24px rgb(0 0 0 / 40%);
}

.mm-hero #hero-title em {
  display: block;
  max-width: 10em;
  padding-top: .06em;
  color: var(--mm-champagne);
  font-weight: 400;
  font-style: italic;
}

.mm-hero .mm-hero-description {
  max-width: 36em;
  margin: clamp(26px, 3.8vh, 42px) 0 0;
  color: var(--mm-ivory);
  font-size: clamp(1rem, 1.28vw, 1.25rem);
  font-weight: 400;
  line-height: 1.7;
  text-wrap: pretty;
}

.mm-hero .mm-hero-actions {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(28px, 4vh, 44px);
}

.mm-hero .mm-hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 15px 24px;
  border: 1px solid var(--mm-champagne);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .015em;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.mm-hero .mm-hero-primary {
  background: var(--mm-champagne);
  color: var(--mm-navy);
}

.mm-hero .mm-hero-secondary {
  background: rgb(7 19 38 / 20%);
  color: var(--mm-ivory);
}

.mm-hero .mm-hero-actions a:hover {
  background: var(--mm-ivory);
  border-color: var(--mm-ivory);
  color: var(--mm-navy);
}

.mm-hero .mm-hero-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-top: 20px;
  border-top: 1px solid rgb(247 245 240 / 45%);
  text-shadow: 0 1px 4px #000, 0 2px 12px rgb(0 0 0 / 80%);
}

.mm-hero .mm-hero-credit {
  margin: 0 auto 0 0;
  color: rgb(247 245 240 / 80%);
  font-size: .8125rem;
  line-height: 1.6;
  letter-spacing: .045em;
}

.mm-hero .mm-hero-buyer,
.mm-hero .mm-hero-film-controls a,
.mm-hero .mm-hero-film-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: var(--mm-ivory);
  font-family: inherit;
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  background: transparent;
}

.mm-hero .mm-hero-film-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.mm-hero #mm-hero-toggle {
  min-width: 99px;
  padding: 8px 16px;
  border: 1px solid rgb(247 245 240 / 42%);
}

.mm-hero .mm-hero-buyer:hover,
.mm-hero #mm-hero-film-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.mm-hero #mm-hero-toggle:hover {
  background: rgb(247 245 240 / 12%);
  border-color: var(--mm-ivory);
}

.mm-hero :is(a, button):focus-visible {
  outline: 2px solid var(--mm-ivory);
  outline-offset: 5px;
}

@media (min-width: 1500px) {
  .mm-hero .mm-hero-copy { width: min(76%, 1150px); }
}

@media (max-width: 900px) {
  #top.mm-hero {
    gap: 44px;
    padding: calc(var(--header, 72px) + 54px) 6% max(24px, env(safe-area-inset-bottom));
  }
  .mm-hero .mm-hero-copy { width: 100%; }
  .mm-hero #hero-title { font-size: clamp(3.75rem, 9.4vw, 6.5rem); }
  .mm-hero #hero-title em { max-width: 8.9em; }
  .mm-hero .mm-hero-description { max-width: 34em; font-size: 1.0625rem; }
}

@media (max-width: 600px) {
  #top.mm-hero {
    gap: 38px;
    padding-top: calc(var(--header, 72px) + 42px);
  }
  .mm-hero .mm-hero-eyebrow {
    max-width: 27em;
    margin-bottom: 24px;
    font-size: .875rem;
    letter-spacing: .11em;
  }
  .mm-hero #hero-title { font-size: clamp(3.2rem, 12.4vw, 4.7rem); line-height: 1.02; }
  .mm-hero #hero-title em { max-width: 8.3em; padding-top: .1em; }
  .mm-hero .mm-hero-description { margin-top: 24px; font-size: 1rem; line-height: 1.65; }
  .mm-hero .mm-hero-actions { gap: 12px; margin-top: 28px; }
  .mm-hero .mm-hero-actions a { flex: 1 1 100%; min-height: 52px; padding: 14px 18px; }
  .mm-hero .mm-hero-bottom { gap: 10px 22px; padding-top: 16px; }
  .mm-hero .mm-hero-credit { flex: 1 1 100%; margin: 0; }
  .mm-hero .mm-hero-buyer { margin-right: auto; }
  .mm-hero .mm-hero-film-controls { gap: 14px; }
  .mm-hero #mm-hero-toggle { min-width: 90px; padding-right: 12px; padding-left: 12px; }
}

@media (max-width: 380px) {
  .mm-hero .mm-hero-film-controls { width: 100%; justify-content: space-between; }
  .mm-hero .mm-hero-buyer { justify-content: flex-start; }
}

@media (max-height: 650px) and (min-width: 901px) {
  #top.mm-hero { gap: 28px; padding-top: calc(var(--header, 84px) + 30px); padding-bottom: 20px; }
  .mm-hero .mm-hero-eyebrow { margin-bottom: 16px; }
  .mm-hero #hero-title { font-size: clamp(3.5rem, 9vh, 5rem); }
  .mm-hero #hero-title em { max-width: none; }
  .mm-hero .mm-hero-description { margin-top: 20px; max-width: 42em; font-size: 1rem; }
  .mm-hero .mm-hero-actions { margin-top: 22px; }
  .mm-hero .mm-hero-bottom { padding-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .mm-hero #mm-hero-poster,
  .mm-hero #mm-hero-player,
  .mm-hero .mm-hero-actions a { transition: none; }
}

body.motion-off .mm-hero #mm-hero-poster,
body.motion-off .mm-hero #mm-hero-player { transition: none; }

/* Video fills the entire opening, including the area behind the navigation. */
.mm-hero :is(#mm-hero-player,#mm-hero-poster){top:0;height:100%;object-position:center}

body.approved-hero-page .site-header.is-over-hero {
  background:transparent!important;
  border-color:transparent;
  box-shadow:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
