/* ==========================================================================
   About + Video block
   ========================================================================== */

.about-video {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 10px auto;
  background: #f6f6f6;
  border: 40px solid #807e7e;
}

.about-video__inner {
  max-width: 1720px;
  margin: 0 auto;
  padding: 96px 40px 120px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* ------------------------------ Header --------------------------------- */

.about-video__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.about-video__eyebrow {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 999px;
  background: #e6e6e2;
  font-family: 'Quattrocento Sans', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #666660;
}

.about-video__heading {
  margin: 0;
  font-family: 'Quattrocento', Georgia, serif;
  font-weight: 400;
  font-size: 120px;
  line-height: 132px;
  letter-spacing: -8.4px;
  color: #1c2125;
}

.about-video__heading em {
  font-style: italic;
  color: #d0202a;
  font-weight: 600;
  font-family: 'Quattrocento Sans';
}

.about-video__heading strong {
  font-weight: 700;
  font-style: italic;
}

/* ------------------------------ Body ----------------------------------- */

.about-video__body {
  display: flex;
  gap: 65px;
}

/* ------------------------------ Media ---------------------------------- */

.about-video__media {
  position: relative;
  width: 100%;
  width: 55%;
}

.about-video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1b1b1b;
  overflow: hidden;
  height: auto;
}

.about-video__player {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.about-video__player--file {
  cursor: default;
  object-fit: cover;
}

.about-video__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-video__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 250ms ease, opacity 250ms ease;
}

.about-video__play svg {
  width: 92px;
  height: auto;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.4));
}

.about-video__player:hover .about-video__play {
  transform: scale(1.06);
}

.about-video__player--empty {
  cursor: default;
}

/* Play button over an uploaded video's poster (removed once it plays). */
.about-video__start {
  z-index: 1;
}

.about-video__start:focus-visible .about-video__play {
  transform: scale(1.06);
}

/* Brand play button (uploaded videos): red disc + white triangle, darkens
   on hover like the site's red buttons. */
.about-video__play--brand svg {
  width: 96px;
}

.about-video__play-bg {
  fill: #f4222d;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 2;
  transition: fill 250ms ease;
}

.about-video__start:hover .about-video__play-bg,
.about-video__start:focus-visible .about-video__play-bg {
  fill: #cc000c;
}

@media (max-width: 767px) {
  .about-video__play--brand svg {
    width: 64px;
  }
}

/* Poster set only for mobile: hidden above phone width (the <picture> serves
   the mobile image at ≤675px, while the frame is the 340px phone crop). */
.about-video__thumb--mobile-only {
  display: none;
}

@media (max-width: 675px) {
  .about-video__thumb--mobile-only {
    display: block;
  }
}

/* Mobile video modal (about-video.js moves the <video> in here). Fills the
   viewport with 16px side gutters. The player box is 4:3, taller than the
   16:9 video, which is letterboxed (contain, nothing cropped) so the native
   controls sit in the black band below the picture. */
.about-video-modal-open {
  overflow: hidden;
}

.about-video__modal {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100svh;
  max-height: none;
  margin: 0;
  padding: 0 16px;
  box-sizing: border-box;
  border: 0;
  background: transparent;
}

.about-video__modal[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-video__modal::backdrop {
  background: rgba(0, 0, 0, 0.9);
}

.about-video__modal .about-video__player--file {
  position: static;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  max-height: 100%;
  object-fit: contain;
  background: #000;
  cursor: default;
}

.about-video__modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
}

.about-video__modal-close svg {
  width: 24px;
  height: 24px;
}

.about-video__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ------------------------------ Text ----------------------------------- */

.about-video__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  width: 45%;
}

.about-video__sub-heading {
  margin-bottom: 0 !important;
}

.about-video__sub-heading,
.about-video__text h3 {
  margin: 0;
  font-family: 'Quattrocento Sans', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 44px;
  letter-spacing: -1.6px;
  color: #7c1b1b;
}

.about-video__text h3 {
  margin-bottom: 24px;
}

.about-video__excerpt,
.about-video__more {
  font-family: 'Quattrocento Sans', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 38px;
  letter-spacing: 0.24px;
  color: #333;
}

.about-video__excerpt p,
.about-video__more p {
  margin: 0 0 16px;
}

.about-video__excerpt p:last-child,
.about-video__more p:last-child {
  margin-bottom: 0;
}

/* ------- Read more/less: animated collapse via max-height ------------- */

.about-video__more {
  max-height: 0;
  overflow: hidden;
  transition: max-height 500ms cubic-bezier(0.2, 0.7, 0.2, 1), margin-top 500ms ease, opacity 300ms ease;
  opacity: 0;
  margin-top: 0;
}

.about-video__more.is-open {
  opacity: 1;
  margin-top: 8px;
}

.about-video__toggle {
  align-self: center;
  --c-btn-radius: 12px;
  min-width: 280px;
  padding: 15px 40px;
  font-size: 18px;
  line-height: 16px;
  gap: 12px;
}

/* ------------------------------ Responsive ----------------------------- */

@media (max-width: 1200px) {
  .about-video__heading {
    font-size: 70px;
    line-height: 1;
    letter-spacing: -2px;
  }

  .about-video__body {
    gap: 40px;
  }
}

@media (max-width: 1024px) {
  .about-video {
    border-width: 20px;
  }

  .about-video__inner {
    padding: 60px 0;
    gap: 40px;
    max-width: none;
  }

  .about-video__header {
    gap: 24px;
    padding: 0 20px;
  }

  .about-video__eyebrow {
    display: none;
  }

  /* Heading — Quattrocento 400 / 52px / 1.04 / -0.08em / #0C171C */
  .about-video__heading {
    font-size: 52px;
    line-height: 1.04;
    letter-spacing: -0.08em;
    color: #0c171c;
  }

  .about-video__heading em {
    font-family: 'Quattrocento Sans', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    font-style: italic;
    color: #f4222d;
  }

  .about-video__body {
    flex-direction: column;
    gap: 40px;
    align-items: center;
    padding: 0 16px;
  }

  /* Video: full-width frame, never shorter than 340px.
     676–1024px (foldables, tablets): 16:9 with the desktop poster, so the
     frame never turns into a letterbox that crops the speaker at the chin.
     ≤675px: the mobile-poster frame below. 675px is where the frame is
     604px wide (viewport − 2×20px border − 2×16px padding), i.e. 16:9 = 340px. */
  .about-video__media {
    width: 100%;
  }

  .about-video__frame {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 340px;
  }

  /* ≤675px, mobile poster: keep the design's 361×340 proportion instead of a
     fixed 340px, so on wider phones/foldables the frame grows with the width
     and the whole head stays in (only the jacket is trimmed). */
  @media (max-width: 675px) {
    .about-video__frame {
      aspect-ratio: 361 / 340;
    }
  }

  /* The frame is taller than a 16:9 poster, so cover crops it. Anchor the
     crop to the top so the speaker's head is never cut (as in the design). */
  .about-video__frame .about-video__thumb,
  .about-video__frame .about-video__player--file {
    object-position: center top;
  }

  /* Play button in the bottom-right corner, off the speaker's face. */
  .about-video__play--brand {
    align-items: flex-end;
    justify-content: flex-end;
    padding: 16px;
    transform-origin: right bottom;
  }

  .about-video__text {
    width: 100%;
    gap: 28px;
    position: relative;
  }

  /* Fade the last part of the copy behind the Read More button. */
  .about-video__text::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 60px;
    height: 120px;
    background: linear-gradient(180deg, rgba(246, 246, 246, 0) 0%, rgba(246, 246, 246, 0.92) 70%, #f6f6f6 100%);
    pointer-events: none;
    z-index: 1;
    transition: opacity 300ms ease;
  }

  /* Once the "more" block is open, the fade is no longer needed. */
  .about-video__text:has(.about-video__more.is-open)::after {
    opacity: 0;
  }

  /* Expanded state: just drop the overlap — keep the red outline. */
  .about-video__text:has(.about-video__more.is-open) .about-video__toggle {
    margin-top: 0;
  }

  /* Sub-heading (h3) — Quattrocento Sans 700 / 28px / 1.1 / -0.04em / #6D1016 */
  .about-video__sub-heading,
  .about-video__text h3 {
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #6d1016;
  }

  .about-video__sub-heading br {
    display: none;
  }

  /* Body copy — Quattrocento Sans 400 / 16px / 1.7 / #000 */
  .about-video__excerpt,
  .about-video__more {
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: 0;
    color: #000;
  }

  .about-video__excerpt p,
  .about-video__more p {
    margin: 0 0 18px;
  }

  /* Read more/less — 195×40 outline pill, Q Sans 700 16px, radius 5.54px.
     Sits above the fade with a solid white background so text underneath
     is masked by the button itself. */
  .about-video__toggle {
    align-self: center;
    position: relative;
    z-index: 2;
    min-width: 195px;
    min-height: 40px;
    padding: 12px 30px;
    font-size: 16px;
    line-height: 0.92;
    letter-spacing: -0.04em;
    --c-btn-radius: 5.54px;
    gap: 8px;
    background: transparent;
    margin-top: -40px;
  }

  /* Keep the toggle outlined (never solid red) after click/tap on mobile —
     :focus-visible on .c-btn--outline-red would otherwise fill it red. */
  .about-video__toggle:focus,
  .about-video__toggle:focus-visible,
  .about-video__toggle:active {
    background: transparent;
    color: #ff1111;
  }
}

/* ------------------------------ Editor preview ------------------------- */

.about-video--is-preview {
  zoom: 0.55;
}

/* ------------------------------ Editor preview ------------------------- */

.about-video--is-preview {
  zoom: 0.55;
}

/* Keep the toggle outlined (never solid red) after click/tap on mobile —
     :focus-visible on .c-btn--outline-red would otherwise fill it red. */
.about-video__toggle:focus,
.about-video__toggle:focus-visible,
.about-video__toggle:active {
  background: transparent;
  color: #ff1111;
}

/* ------------------------------ Editor preview ------------------------- */

.about-video--is-preview {
  zoom: 0.55;
}
