/* ---------------------------------------------------------------------------
   Page hero — media background + H1.

   Not a port: on live these were Elementor containers, so there is no source
   stylesheet to copy. Every number below is measured off the live CSS
   (uploads/elementor/css/post-103326.css, post-103481.css, post-103568.css):

     container   min-height 100vh, flex column, justify-content center,
                 content-width 1600px, overlay #11172D at opacity .5
     spacers     120px above the title, 50px below
     title       DM Serif Display, 60px / 1.1em, weight 500, #FFFFFF, centred
                 <=1024px: 50px   ·   <=767px: 30px / 1.2em

   Divergence: live pulled the container up by -76px (mobile -87px) because the
   Royal header was overlaid. This theme's header is position:sticky and takes
   flow space, so the hero fills the remainder of the first viewport instead.
   --------------------------------------------------------------------------- */

.mp-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--mp-header-h));
  min-height: calc(100svh - var(--mp-header-h));
  padding: 120px var(--mp-gutter) 50px;
  text-align: center;
  color: var(--mp-ink);
  background: var(--mp-blue-dark);
}

/* Flat-colour backgrounds. #3146CB and #11172D are the two live used behind a
   hero image; both are already tokens. */
.mp-hero--blue    { background: var(--mp-surface-blue); }
.mp-hero--blue-ui { background: var(--mp-blue-ui); }
.mp-hero--navy    { background: var(--mp-navy-panel); }
.mp-hero--pink    { background: var(--mp-surface-pink); }

/* media ------------------------------------------------------------------- */
.mp-hero__media { position: absolute; inset: 0; z-index: -2; }

.mp-hero__poster,
.mp-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The click-to-load YouTube frame. A 16:9 iframe cannot object-fit, so it is
   over-sized to cover the box the same way the poster does. */
.mp-hero__frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, 177.7778vh);
  height: max(100%, 56.25vw);
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

/* Overlay: #11172D at .5, verbatim from live. */
.mp-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--mp-navy-panel);
  opacity: .5;
}

/* content ----------------------------------------------------------------- */
.mp-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--mp-wide);
  margin-inline: auto;
}

.mp-hero__eyebrow { margin-bottom: 18px; }

.mp-hero__title {
  margin: 0;
  font-family: var(--mp-font-display);
  font-size: 60px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--mp-ink);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}

/* click-to-load control ---------------------------------------------------- */
.mp-hero__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin-top: 32px;
  padding: 0;
  border: 1px solid var(--mp-outline);
  border-radius: var(--mp-radius-pill);
  background: var(--mp-glass-strong);
  box-shadow: var(--mp-sh-chip);
  color: var(--mp-ink);
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.mp-hero__play:hover,
.mp-hero__play:focus-visible {
  background: var(--mp-pink);
  border-color: var(--mp-pink);
  transform: translateY(-2px);
  box-shadow: var(--mp-sh-btn-h);
}
.mp-hero__play-icon {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 18px solid currentColor;
}
/* Once the frame is in, the button has done its job. */
.mp-hero.is-playing .mp-hero__play { display: none; }

/* responsive --------------------------------------------------------------- */
@media (max-width: 1024px) {
  .mp-hero__title { font-size: 50px; }
}
@media (max-width: 767px) {
  .mp-hero { padding: 90px var(--mp-gutter) 40px; }
  .mp-hero__title { font-size: 30px; line-height: 1.2; }
  .mp-hero__play { width: 56px; height: 56px; margin-top: 24px; }
}

/* Role / strapline lines that live keeps inside the hero. Measured on
   /lheyton-warby/: 60px below the title, then 44px between lines. */
.mp-hero__subtitle {
  margin: 16px 0 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  color: inherit;
}
.mp-hero__subtitle + .mp-hero__subtitle { margin-top: 10px; font-size: 18px; }
@media (max-width: 767px) {
  .mp-hero__subtitle { font-size: 18px; }
  .mp-hero__subtitle + .mp-hero__subtitle { font-size: 16px; }
}

/* ---------------------------------------------------------------------------
   Legacy staff hero (variant "legacy") -- /elliott-bolton/, /nathan-calcutt/,
   /lheyton-warby/, /olivia-horsfield/. From live post-1167.css (Nathan's page,
   the same template as the other three, whose own CSS 404s on live):
     section   height full (100vh), padding 7em 0, 20px below the header
     overlay   linear-gradient(90deg, #253499E6 25%, #0B0E111A 100%), opacity 1
     column    margin-right 50%, padding 2em, left aligned
     title     kit "Big Hero": Plus Jakarta Sans 67px/1em 800, -1.5px, white
     role      H2 35px white
   Tablet: padding 5em, column margin-right 40%. Mobile: padding 1em, full width,
   21px column padding, centred, title 34px.
   --------------------------------------------------------------------------- */
.mp-hero.mp-hero--legacy {
  min-height: 100vh;
  margin-top: 0;   /* the 20px strip above it comes from .mp-header-gap */
  padding: 7em 0;
  align-items: stretch;
  text-align: left;
  background: #fff;
}
.mp-hero--legacy .mp-hero__scrim { background: var(--mp-hero-overlay, var(--mp-navy-panel)); opacity: 1; }
.mp-hero--legacy .mp-hero__inner {
  width: 50%;
  max-width: none;
  margin: 0 50% 0 0;
  padding: 2em;
}
.mp-hero--legacy .mp-hero__title {
  font-family: var(--mp-hero-tff, var(--mp-font-kit));
  font-size: var(--mp-hero-tfs, 67px);
  font-weight: var(--mp-hero-tfw, 800);
  line-height: var(--mp-hero-tlh, 1);
  letter-spacing: var(--mp-hero-tls, -1.5px);
  color: var(--mp-hero-tcolor, #fff);
  text-shadow: none;
}
.mp-hero--legacy .mp-hero__role {
  margin: 20px 0 0;
  font-family: var(--mp-font-kit);
  font-size: 35px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: #fff;
}
.mp-hero--legacy .mp-hero__intro {
  margin: 20px 0 0;
  font-family: var(--mp-font-kit);
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
}
@media (max-width: 1024px) {
  .mp-hero.mp-hero--legacy { padding: 5em 0; }
  .mp-hero--legacy .mp-hero__inner { width: 60%; margin-right: 40%; }
}
@media (max-width: 767px) {
  .mp-hero.mp-hero--legacy { padding: 1em 0; }
  .mp-hero--legacy .mp-hero__inner { width: 100%; margin: 0; padding: 21px; text-align: center; }
  .mp-hero--legacy .mp-hero__title { font-size: 34px; }
  .mp-hero--legacy .mp-hero__role { font-size: 24px; }
}

/* Legacy staff hero on mobile: live does not hold it at full height -- the
   name sits at y=190 (135px header + 20px strip + 1em + 21px column padding),
   the name centred and the role left-aligned. */
@media (max-width: 767px) {
  .mp-hero.mp-hero--legacy { min-height: 0; padding: 1em 0; justify-content: flex-start; }
  .mp-hero--legacy .mp-hero__inner { text-align: left; }
  .mp-hero--legacy .mp-hero__title { text-align: center; }
  .mp-hero--legacy .mp-hero__role { font-size: 24px; }   /* live mobile 'Account Manager' is 24px */
}

/* ---------------------------------------------------------------------------
   Hero pull-up under the header (desktop). Live pulls its first container up by
   80px under a 132px header (112px bar + 20px strip), so the 100vh hero spans
   y 52-952 with the translucent nav over its top. Replaces divergence #3.
   The play button is taken out of flow so it no longer lifts the title (live's
   title sits at y 504-508; it rendered at 459).
   --------------------------------------------------------------------------- */
@media (min-width: 1025px) {
  main#main > .mp-hero:first-child:not(.mp-hero--legacy) {
    margin-top: var(--mp-hero-pull, -80px);
    min-height: 100vh;
  }
}
.mp-hero__play {
  position: absolute;
  left: 50%;
  top: calc(100% + 32px);
  margin: 0;
  transform: translateX(-50%);
}
.mp-hero__play:hover,
.mp-hero__play:focus-visible { transform: translate(-50%, -2px); }

/* The same pull-up below 1025px, from the page's own container margins: the
   desktop value cascades to tablet, phones take margin_mobile (-87px), so the
   100vh hero spans y 68-912 under the 135px phone header as on live. */
@media (max-width: 1024px) {
  main#main > .mp-hero:first-child:not(.mp-hero--legacy) {
    margin-top: var(--mp-hero-pull, -80px);
    min-height: 100vh;
  }
}
@media (max-width: 767px) {
  main#main > .mp-hero:first-child:not(.mp-hero--legacy) { margin-top: var(--mp-hero-pull-m, -87px); }
}

/* Staff hero: live's name, role and strapline lines stack flush (heading
   _margin 0, no widget gap); the role is the kit H2, 37px/1.2 (24px on phones). */
.mp-hero--legacy .mp-hero__role,
.mp-hero--legacy .mp-hero__intro { margin-top: 0; }
.mp-hero--legacy .mp-hero__role:not([style*="font-size"]) { font-size: 37px; line-height: 1.2; }
@media (max-width: 767px) {
  .mp-hero--legacy .mp-hero__role:not([style*="font-size"]) { font-size: 24px; }
}

/* Phones, as on live: the container's 10px side padding and the title set a
   little lower (live's copy centre sits 10px below staging's with 90/40), at
   the widget's own phone size where it sets one. */
@media (max-width: 767px) {
  .mp-hero:not(.mp-hero--legacy) { padding: 100px 10px 30px; }
  .mp-hero:not(.mp-hero--legacy) .mp-hero__title { font-size: var(--mp-hero-tfs-m, 30px); }
}
