.bh-hero {
  position: relative;
  overflow: clip;
  display: grid;
  box-sizing: border-box;
  min-block-size: var(--bh-hero-min, 92svh);
  padding-block: calc(var(--bh-space-2xl) + 116px) var(--bh-space-2xl);
  background: var(--bh-surface-deep);
  background-image: var(--bh-lagoon), linear-gradient(rgb(3 44 58 / 52%), rgb(3 44 58 / 52%)), var(--bh-tex-planks-turq);
  color: var(--bh-on-brand);
  container-type: inline-size;
  isolation: isolate;
}

.bh-hero--vcenter { align-items: center; }
.bh-hero--vbottom { align-items: end; }

.bh-hero__water,
.bh-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.bh-hero__canvas {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  opacity: 0;
  transition: opacity 1600ms var(--bh-ease-out-quint);
}

.bh-hero__canvas.is-live {
  opacity: 1;
}

.bh-hero__img {
  inline-size: 100%;
  block-size: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.bh-hero--shader .bh-hero__media {
  opacity: 0.74;
  filter: saturate(0.82);
}

.bh-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(6 40 64 / 38%) 0, rgb(6 40 64 / 0%) 150px);
}

.bh-hero::after {
  content: '';
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  z-index: 0;
  block-size: 10%;
  background: linear-gradient(to top, rgb(6 40 64 / 55%), transparent);
  pointer-events: none;
}

.bh-hero__inner {
  position: relative;
  z-index: 2;
  inline-size: min(100% - (var(--bh-space-lg) * 2), var(--bh-container));
  margin-inline: auto;
  isolation: isolate;
}

.bh-hero__inner::before {
  content: '';
  position: absolute;
  inset: -46% -18% -30%;
  z-index: -1;
  background: radial-gradient(closest-side, rgb(5 30 52 / 76%) 0%, rgb(5 30 52 / 72%) 58%, rgb(5 30 52 / 38%) 76%, rgb(5 30 52 / 0%) 100%);
  pointer-events: none;
}

.bh-hero .bh-btn--secondary {
  background-color: rgb(5 30 52 / 72%);
}


.bh-hero--center .bh-hero__inner { text-align: center; }
.bh-hero--center .bh-hero__lede { margin-inline: auto; }
.bh-hero--center .bh-hero__actions { justify-content: center; }

.bh-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  margin: 0 0 var(--bh-space-md);
  color: #fbf4e4;
  font-family: var(--bh-font-body);
  font-size: var(--bh-step--1);
  font-weight: 800;
  text-shadow: 0 1px 2px rgb(3 20 36 / 90%), 0 0 18px rgb(3 20 36 / 60%);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bh-hero__eyebrowtext { display: inline-block; }

.bh-hero__eyebrow::before,
.bh-hero__eyebrow::after {
  content: '';
  inline-size: 1.9em;
  block-size: 0.6em;
  flex: none;
  background: #ffc857;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 12'%3E%3Cpath d='M1 6c3-4 6-4 9 0s6 4 9 0 6-4 9 0 6 4 9 0' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 12'%3E%3Cpath d='M1 6c3-4 6-4 9 0s6 4 9 0 6-4 9 0 6 4 9 0' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.bh-hero__mark {
  margin-inline: auto;
  margin-block-end: var(--bh-space-lg);
  inline-size: min(100%, clamp(220px, 30cqw, 400px));
}

.bh-hero--left .bh-hero__mark { margin-inline: 0; }

.bh-hero__markimg {
  display: block;
  inline-size: 100%;
  block-size: auto;
  filter: drop-shadow(0 18px 30px rgb(0 0 0 / 55%));
}

.bh-hero__title {
  margin: 0;
  color: #f7f1e3;
  font-family: var(--bh-font-tiki);
  font-size: calc(var(--bh-step-5) * 0.8 * var(--bh-hero-scale, 1));
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0.01em;
  text-wrap: balance;
  -webkit-text-stroke: 0.11em #0a2238;
  paint-order: stroke fill;
  text-shadow: 0 0.07em 0 #0a2238, 0 18px 40px rgb(0 0 0 / 45%);
}

.bh-hero--upper .bh-hero__title { text-transform: uppercase; }

.bh-hero__word { display: inline-block; }
.bh-hero__word--solid {
  color: #f7f1e3;
}

.bh-hero__title :is(strong, b),
.bh-hero__word--outline {
  font-weight: 400;
  font-style: normal;
  color: #ffc23a;
}

.bh-hero__lede {
  max-inline-size: 46ch;
  margin: var(--bh-space-lg) 0 0;
  color: #fbf6ea;
  font-family: var(--bh-font-body);
  font-size: calc(var(--bh-step-1) * 1.04);
  font-weight: 600;
  line-height: 1.5;
  text-wrap: balance;
  text-shadow: 0 1px 2px rgb(3 20 36 / 90%), 0 2px 6px rgb(3 20 36 / 70%), 0 0 28px rgb(3 20 36 / 55%);
}

.bh-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--bh-space-lg);
  margin-block-start: var(--bh-space-lg);
}

.bh-hero__actions--button { gap: var(--bh-space-sm); }

.bh-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-block-size: 44px;
  color: #f7f1e3;
  font-family: var(--bh-font-body);
  font-size: var(--bh-step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(#ffc857, #ffc857) no-repeat 0 calc(100% - 8px) / 100% 2px;
  transition: color var(--bh-duration) var(--bh-ease-out-quint), background-size calc(var(--bh-duration) * 1.6) var(--bh-ease-out-expo);
}

.bh-hero__cta:hover {
  color: #ffc857;
  background-size: 0% 1px;
  background-position: 100% calc(100% - 10px);
}

.bh-hero__chev { display: inline-flex; transition: transform calc(var(--bh-duration) * 1.75) var(--bh-ease-spring); }
.bh-hero__cta:hover .bh-hero__chev { transform: translate3d(5px, 0, 0); }

.bh-hero__featured {
  position: absolute;
  inset-block-end: var(--bh-space-xl);
  inset-inline-end: var(--bh-space-xl);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--bh-space-2xs);
  padding: var(--bh-space-sm) var(--bh-space-md);
  border: 1px solid rgb(247 241 227 / 16%);
  border-radius: var(--bh-radius-lg);
  background: rgb(6 40 64 / 60%);
}

.bh-hero__featuredlabel {
  color: rgb(247 241 227 / 70%);
  font-family: var(--bh-font-body);
  font-size: var(--bh-step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bh-hero__featuredimg {
  inline-size: auto;
  max-inline-size: clamp(120px, 14cqw, 180px);
  max-block-size: 56px;
  object-fit: contain;
  object-position: left center;
}

.bh-hero__listenbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-block-start: 2px;
  padding: 0;
  border: 0;
  background: none;
  color: #ffc857;
  font-family: var(--bh-font-body);
  font-size: var(--bh-step--1);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color var(--bh-duration) var(--bh-ease-out-quint);
}

.bh-hero__listenbtn:hover { color: var(--bh-on-brand); }
.bh-hero__listenbtn:focus-visible { outline: 3px solid var(--bh-accent); outline-offset: 3px; }

.bh-hero__listen {
  inline-size: min(92vw, 560px);
  margin: auto;
  padding: 0;
  border: 1px solid rgb(247 241 227 / 14%);
  border-radius: var(--bh-radius-lg);
  overflow: clip;
  background: #063f4d;
}

.bh-hero__listen::backdrop { background: rgb(6 40 64 / 82%); backdrop-filter: blur(6px); }

.bh-hero__listenmedia {
  display: block;
  inline-size: 100%;
  max-block-size: 80dvh;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #063f4d;
}

.bh-hero__listenclose {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  inline-size: 40px;
  block-size: 40px;
  padding: 0;
  border: 1px solid rgb(247 241 227 / 22%);
  border-radius: 50%;
  background: rgb(6 40 64 / 72%);
  color: #fff;
  cursor: pointer;
  transition: background-color var(--bh-duration) var(--bh-ease);
}

.bh-hero__listenclose:hover { background: rgb(247 241 227 / 22%); }

.bh-hero--cue { padding-block-end: calc(var(--bh-space-2xl) + 72px); }

.bh-hero__scroll {
  position: absolute;
  inset-block-end: var(--bh-space-lg);
  inset-inline-start: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  inline-size: 1px;
  block-size: 56px;
  translate: -50% 0;
  background: linear-gradient(to bottom, transparent, rgb(255 200 87 / 75%));
  pointer-events: none;
  animation: bh-hero-drift 2.8s var(--bh-ease) infinite;
}

.bh-hero__scroll svg { display: none; }

@keyframes bh-hero-drift {
  0%, 100% { transform: translateY(0) scaleY(1); opacity: 0.9; }
  50% { transform: translateY(8px) scaleY(1.06); opacity: 0.5; }
}

@container (width < 46rem) {
  .bh-hero { padding-block: calc(var(--bh-space-2xl) + 72px) var(--bh-space-2xl); }
  .bh-hero--cue { padding-block-end: calc(var(--bh-space-2xl) + 72px); }
  .bh-hero__title { font-size: calc(var(--bh-step-4) * var(--bh-hero-scale, 1) * 1.15); }
  .bh-hero__lede { max-inline-size: none; }
  .bh-hero__featured {
    position: static;
    inline-size: fit-content;
    margin-block-start: var(--bh-space-lg);
    padding: var(--bh-space-xs) var(--bh-space-sm);
  }
  .bh-hero__featuredimg { max-inline-size: 110px; max-block-size: 40px; }
  .bh-hero__actions { gap: var(--bh-space-md); }
  .bh-hero__actions--button .bh-btn { inline-size: 100%; }
  .bh-hero--shader .bh-hero__media { opacity: 0.62; }
}

.bh-hero__break { display: block; block-size: 0; }
.bh-hero__title--editing { display: block; }

@media print, (prefers-reduced-motion: reduce) {
  .bh-hero__scroll { animation: none; }
  .bh-hero__canvas { transition: none; }
}

.bh-hero__slides .bh-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale3d(1.06, 1.06, 1);
  transition: opacity 1600ms var(--bh-ease), transform 9000ms linear;
}

.bh-hero__slides .bh-hero__slide.is-on {
  opacity: 1;
  transform: scale3d(1, 1, 1);
}

@media (prefers-reduced-motion: reduce) {
  .bh-hero__slides .bh-hero__slide {
    transition: none;
    transform: none;
  }
}
