/* Video components */
.split-hero__media--video {
  background: var(--green-dark);
  position: relative;
}

.split-hero__media--video .video-player-wrap {
  opacity: 1;
  transition: opacity 0.6s ease;
}

.split-hero__media--video.is-hero-playing .video-player-wrap {
  opacity: 1;
}

.split-hero__media--video.is-hero-paused .video-player-wrap {
  opacity: 1;
}

.split-hero__media--video .video-player-wrap__hint {
  display: none;
}

.hero-video__unmute {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 6;
  padding: 0.5rem 0.85rem;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: rgba(13, 40, 13, 0.78);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-video__unmute[hidden] {
  display: none !important;
}

.hero-video__gate {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0;
  padding: 1rem;
  border: 0;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  cursor: pointer;
  font: inherit;
}

.hero-video__gate[hidden] {
  display: none !important;
}

/* Avoid native + custom play controls stacking when the gate is shown */
.split-hero__media--video.is-hero-gated .hero-video::-webkit-media-controls {
  display: none !important;
}

.hero-video__gate-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  background: rgba(13, 40, 13, 0.82);
  border: 2px solid rgba(255, 255, 255, 0.8);
  font-size: 1.55rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.hero-video__gate-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.split-hero__media--video .video-player-wrap video,
.split-hero__media--video .hero-video {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

/* Native controls — pause, volume, scrub (browser standard UI) */
.split-hero__media--video .hero-video::-webkit-media-controls-panel {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}

.hero-video__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    105deg,
    rgba(13, 40, 13, 0.35) 0%,
    transparent 42%,
    rgba(0, 0, 0, 0.08) 100%
  );
  pointer-events: none;
}

/* Hero fills the media slot — override default 16:9 letterboxed player wrap */
.split-hero__media--video .video-player-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  aspect-ratio: unset;
  border-radius: 0;
  z-index: 1;
}

.split-hero--compact .split-hero__media {
  min-height: clamp(220px, 40vh, 360px);
}

.split-hero--compact .split-hero__media--video .video-player-wrap,
.split-hero--compact .split-hero__media--video .hero-video {
  min-height: 100%;
}

.video-showcase {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .video-showcase {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 1.5rem;
  }

  .video-showcase__lead.is-portrait .video-player-wrap,
  .video-showcase__lead .video-player-wrap.is-portrait {
    max-width: 100%;
    max-height: min(85vh, 720px);
  }
}

.video-showcase__lead,
.video-card {
  margin: 0;
}

.video-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d0d0d;
  border-radius: 3px;
  overflow: hidden;
  margin-inline: auto;
}

.video-player-wrap.is-portrait {
  aspect-ratio: 9 / 16;
  width: 100%;
  max-width: min(100%, 420px);
}

.video-player-wrap.is-square {
  aspect-ratio: 1 / 1;
  max-width: min(100%, 480px);
}

.video-player-wrap.is-landscape {
  aspect-ratio: 16 / 9;
  max-width: 100%;
}

.video-player-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #0d0d0d;
}

.video-player-wrap__hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
  transition: opacity 0.25s ease;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* Native controls include their own play affordance — no custom overlay */
.video-player-wrap:has(video[controls]) .video-player-wrap__hint {
  display: none;
}

.video-player-wrap.is-ready .video-player-wrap__hint,
.video-player-wrap.is-playing .video-player-wrap__hint {
  opacity: 0;
}

.video-player-wrap__error {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.7rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.75);
  text-align: center;
}

.video-showcase__player,
.video-card__player,
.video-spot__player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #0d0d0d;
  border-radius: 3px;
}

.video-showcase__lead .video-player-wrap.is-landscape {
  aspect-ratio: 16 / 10;
  max-width: 100%;
}

.video-showcase__lead.is-portrait .video-player-wrap,
.video-showcase__lead .video-player-wrap.is-portrait {
  aspect-ratio: 9 / 16;
  max-width: min(100%, 400px);
  max-height: min(78vh, 680px);
}

.video-showcase__caption,
.video-card__title,
.video-spot__title {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

.video-showcase__side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.video-showcase__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.video-showcase__pair {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  max-width: min(100%, 420px);
  margin-inline: auto;
  width: 100%;
}

@media (min-width: 640px) {
  .video-showcase__pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
  }

  .video-showcase__pair .video-player-wrap.is-portrait {
    max-width: 100%;
  }
}

@media (min-width: 900px) {
  .video-showcase__side {
    gap: 1.25rem;
  }

  .video-showcase__grid {
    grid-template-columns: 1fr;
  }

  .video-showcase__pair {
    gap: 1.25rem;
    max-width: 100%;
  }
}

.video-gallery-filters,
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 1.5rem 1rem 0;
  max-width: var(--container);
  margin: 0 auto;
}

.video-gallery-filters button {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  border: 2px solid var(--green-dark);
  background: transparent;
  color: var(--green-dark);
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.section--dark .video-gallery-filters button {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.75);
  background: transparent;
}

.section--dark .video-gallery-filters button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  color: var(--white);
}

.video-gallery-filters button.is-active,
.gallery-filters button.is-active {
  background: var(--green-mid);
  color: var(--white);
  border-color: var(--green-mid);
}

.video-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 1.25rem;
  align-items: start;
  padding: 2rem 1rem 3rem;
  max-width: var(--container);
  margin: 0 auto;
}

.video-gallery-grid .video-card--gallery.is-portrait,
.video-gallery-grid .video-card--gallery:has(.is-portrait) {
  max-width: min(100%, 340px);
  justify-self: center;
}

@media (min-width: 700px) {
  .video-gallery-grid .video-card--gallery.is-portrait,
  .video-gallery-grid .video-card--gallery:has(.is-portrait) {
    grid-row: span 2;
  }
}

.video-card--gallery .video-card__player {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.video-spot {
  max-width: 880px;
  margin: 0 auto;
}

.video-spot__frame {
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.video-spot__frame .video-player-wrap {
  width: 100%;
}

.video-spot.is-portrait .video-player-wrap,
.video-spot .video-player-wrap.is-portrait {
  aspect-ratio: 9 / 16;
  max-width: min(100%, 400px);
  max-height: min(75vh, 640px);
}

.video-spot.is-landscape .video-player-wrap,
.video-spot .video-player-wrap.is-landscape {
  aspect-ratio: 16 / 9;
  max-width: 100%;
}

.video-spot.is-square .video-player-wrap,
.video-spot .video-player-wrap.is-square {
  aspect-ratio: 1 / 1;
  max-width: min(100%, 480px);
}

.about-story-block__media .video-spot.is-portrait .video-player-wrap,
.home-intro__inner .video-spot.is-portrait .video-player-wrap {
  max-width: min(100%, 380px);
}

.team-video-spot {
  margin-bottom: 2.5rem;
}

.home-videos .section-head h2 {
  color: var(--white);
}

.video-card__desc {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.section--light .video-card__desc {
  color: rgba(13, 13, 13, 0.55);
}

.video-strip {
  margin-top: 0;
}

.video-strip__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  color: var(--white);
  margin: 0 0 0.5rem;
  text-align: center;
}

.section--light .video-strip__title {
  color: var(--green-dark);
}

.video-strip__lead {
  text-align: center;
  max-width: 42ch;
  margin: 0 auto 1.5rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}

.section--light .video-strip__lead {
  color: rgba(13, 13, 13, 0.65);
}

.video-strip .eyebrow {
  text-align: center;
  display: block;
}

.video-strip__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 1.25rem;
  align-items: start;
}

.video-strip__grid .video-card--strip {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-strip__grid .video-card--strip .video-player-wrap.is-portrait {
  max-width: min(100%, 280px);
}

.video-strip__grid .video-card--strip .video-player-wrap.is-landscape {
  max-width: 100%;
  width: 100%;
}

@media (max-width: 639px) {
  .video-strip__grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .video-strip__grid .video-card--strip {
    flex: 0 0 min(78vw, 300px);
    scroll-snap-align: start;
    max-width: min(78vw, 300px);
  }

  .video-strip__grid .video-card--strip .video-player-wrap.is-portrait {
    max-width: 100%;
    width: 100%;
  }

  .video-strip__grid .video-card--strip .video-player-wrap.is-landscape,
  .video-strip__grid .video-card--strip .video-player-wrap.is-square {
    max-width: 100%;
    width: 100%;
  }
}

/* Homepage barber strip: uniform frames (overrides landscape 16:9 above) */
@media (max-width: 639px) {
  [data-home-moments] .video-strip__grid .video-card--strip .video-player-wrap.is-landscape {
    aspect-ratio: 9 / 16;
  }
}

.video-spot .video-card__title,
.video-spot .video-card__desc {
  text-align: center;
}

[data-home-recap] .video-spot,
[data-video-spot="aboutThankYou"] .video-spot {
  max-width: 720px;
}
