/* ── Hero Section ──────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background: var(--color-body);
}

.hero .bg-image {
  position: absolute;
}

.hero__bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__bg-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

.hero__bg-vimeo {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 100vw;
  height: 56.25vw;
  min-width: 247.78vh;
  min-height: 100%;
  border: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--overlay, 0.4));
  z-index: 2;
  pointer-events: none;
}

/* Gradient overlay on top of the video */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(281deg, rgba(0, 0, 0, 0.00) 18.35%, #000 94.8%);
  pointer-events: none;
}

/* Keep hero body above the video */
.hero__body {
  position: relative;
  z-index: 4;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(24px, 3vh, 44px);
  padding: clamp(56px, 12vh, 150px) var(--nav-px) clamp(28px, 5vh, 56px);
}

.hero--has-colocated .hero__body {
  justify-content: flex-start;
  gap: 0;
  padding: 0;
}

.hero__screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.hero--has-colocated .hero__screen--intro {
  min-height: 100svh;
  padding: clamp(56px, 12vh, 150px) var(--nav-px) clamp(28px, 5vh, 56px);
}

.hero--has-colocated .hero__screen--colocated {
  justify-content: flex-start;
  min-height: auto;
  padding: 0 var(--nav-px) clamp(56px, 8vh, 100px);
}

/* Subsequent hero blocks on the same page get a smaller top padding */
.wp-block-acf-hero ~ .wp-block-acf-hero .hero__body {
  padding-top: var(--hero-pb);
}

.wp-block-acf-hero ~ .wp-block-acf-hero.hero--has-colocated .hero__body {
  padding-top: 0;
}

/* Event info — headline + CTA */
.hero__event-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(18px, 2.5vh, 32px);
  max-width: 1200px;
}

.hero__headline {
  font-weight: 400;
  font-size: clamp(1.875rem, 1.28rem + 2.54vw, 3.5rem);
  line-height: var(--hero-headline-lh);
  letter-spacing: var(--type-h1-tracking);
  color: var(--color-white);
  margin: 0;
  text-wrap: balance;
  text-transform: uppercase;
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero__colocated {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: min(100%, 720px);
  padding-top: 18px;
  max-width: 100%;
}

.hero--has-colocated .hero__screen--colocated .hero__colocated {
  width: min(100%, 920px);
  padding-top: 0;
}

.hero__colocated-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  color: #EAE9ED;
  font-family: var(--font-brand);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__colocated-heading::before,
.hero__colocated-heading::after {
  content: '';
  height: 1px;
  background: linear-gradient(90deg, rgb(89 81 109), rgba(4, 221, 207, 0));
}

.hero__colocated-heading::before {
  width: 28px;
  flex: 0 0 28px;
}

.hero__colocated-heading::after {
  flex: 1 1 auto;
  background: linear-gradient(90deg, rgb(89 81 109), rgba(4, 221, 207, 0));
}

.hero__colocated-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(20px, 3vw, 40px);
  width: 100%;
  overflow: visible;
}

.hero__colocated-track {
  display: contents;
}

.hero__colocated-item,
.hero__colocated-item a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__colocated-item {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  height: 100%;
}

.hero__colocated-item > a:first-child {
  width: 100%;
  min-height: 70px;
  justify-content: flex-start;
}

.hero__colocated-item img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 70px;
  object-fit: contain;
}

.hero--has-colocated .hero__colocated-item img {
  filter: grayscale(1) brightness(0) invert(1);
}

.hero__colocated-item:first-child img {
  height: 52px;
}

.hero__colocated-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 210px;
  flex: 1 1 auto;
}

.hero__colocated-text {
  margin: 0;
  color: #D1CFD7;
  font-size: 13px;
  line-height: 1.35;
  flex: 1 1 auto;
}

.hero__colocated-more {
  margin-top: auto;
  color: var(--color-turquoise-500);
  font-size: 11px;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero__colocated-more:hover {
  color: var(--color-white);
}

/* Sponsor block */
.hero__sponsor {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.hero__sponsor-label {
  font-family: var(--font-brand);
  font-size: var(--type-label-size);
  font-weight: 400;
  line-height: var(--type-label-lh);
  letter-spacing: var(--type-label-tracking);
  text-transform: capitalize;
  color: var(--color-text-muted);
  margin: 0;
}

.hero__sponsor-logo {
  width: clamp(160px, 11vw, 215px);
  height: auto;
  line-height: 0;
}

.hero__sponsor-logo img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 639px) {
  .hero__body {
    padding-top: clamp(40px, 8vh, 72px);
    padding-bottom: 28px;
  }

  .hero--has-colocated .hero__body {
    padding: 0;
  }

  .hero--has-colocated .hero__screen--intro {
    min-height: 100svh;
    padding: clamp(40px, 8vh, 72px) var(--nav-px) 28px;
  }

  .hero--has-colocated .hero__screen--colocated {
    min-height: auto;
    padding: 0 var(--nav-px) 44px;
  }

  .hero__event-info {
    gap: 18px;
  }

  .hero__headline {
    font-size: clamp(1.75rem, 7.5vw, 2.5rem);
  }

  .hero__colocated {
    gap: 8px;
    padding-top: 10px;
  }

  .hero__colocated-heading {
    gap: 8px;
    font-size: 9px;
  }

  .hero__colocated-heading::before {
    width: 18px;
    flex-basis: 18px;
  }

  .hero__colocated-logos {
    display: block;
    position: relative;
    width: calc(100% + var(--nav-px));
    margin-right: calc(-1 * var(--nav-px));
    padding-right: var(--nav-px);
    overflow: hidden;
  }

  .hero__colocated-track {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: max-content;
    will-change: transform;
  }

  .hero__colocated-item {
    display: flex;
    flex: 0 0 min(66vw, 230px);
    flex-direction: column;
    align-items: center;
    min-height: 138px;
    padding: 11px 13px;
    gap: 10px;
    border: 1px solid rgba(89, 81, 109, 0.55);
    background: rgba(8, 7, 13, 0.72);
  }

  .hero__colocated-item > a:first-child {
    width: 100%;
    min-height: 38px;
    justify-content: center;
  }

  .hero__colocated-item img {
    width: auto;
    height: auto;
    max-width: 145px;
    max-height: 40px;
  }

  .hero__colocated-item:first-child img {
    height: auto;
    max-height: 38px;
  }

  .hero__colocated-details {
    align-items: center;
    justify-content: flex-start;
    gap: 3px;
    max-width: 195px;
    min-height: 62px;
    text-align: center;
  }

  .hero__colocated-text,
  .hero__colocated-more {
    font-size: 10px;
    line-height: 1.45;
  }

  .hero__colocated-text {
    flex: 1 1 auto;
  }

  .hero__colocated-more {
    margin-top: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__colocated-logos {
    overflow: visible;
  }

  .hero__colocated-track {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    transform: none !important;
  }
}
