.museline-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --hero-header-offset: calc(32px + 76px + 48px + 1px);
  min-height: min(var(--hero-max-height, 624px), calc(100svh - var(--hero-header-offset)));
  background:
    color-mix(in srgb, var(--bg, #ffffff) 4%, #f1f3f2 96%)
    image-set(
      url("../../images/optimized/museline-hero-key-visual-v7-1774.avif") type("image/avif"),
      url("../../images/optimized/museline-hero-key-visual-v7-1774.webp") type("image/webp"),
      url("../../images/museline-hero-key-visual-v7.png") type("image/png")
    ) 56% center / cover no-repeat;
  color: #ffffff;
}

.museline-hero__content {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  min-height: inherit;
  width: min(1100px, 61.5vw);
  flex-direction: column;
  justify-content: flex-start;
  padding:
    clamp(132px, 9.4vw, 160px)
    clamp(24px, 3vw, 48px)
    clamp(72px, 4.8vw, 92px)
    clamp(72px, 7.2vw, 118px);
}

.museline-hero__content > * {
  position: relative;
  z-index: 1;
}

.museline-hero__eyebrow {
  margin: 0;
  color: var(--accent, #f58220);
  font-size: clamp(20px, 1.24vw, 24px);
  font-weight: 570;
  letter-spacing: 0.108em;
  line-height: 1.16;
  text-transform: uppercase;
  max-width: 28ch;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.museline-hero__title {
  max-width: 19.8ch;
  margin: 18px 0 16px;
  font-family: var(--font-display, var(--display, "Lexend", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif));
  font-size: clamp(68px, 7.25vw, 132px);
  font-weight: 550;
  letter-spacing: -0.038em;
  line-height: 0.85;
  text-wrap: balance;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.museline-hero__lead {
  max-width: 52ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.62;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.museline-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.museline-hero__signature {
  margin-top: clamp(24px, 3.2vw, 44px);
  height: 0;
  padding: 0;
  border-top: var(--border-thin, 1px) solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.js .museline-hero__content > *,
.js .museline-hero__signature {
  opacity: 0;
  transform: translateY(12px);
}

.js .museline-hero.is-ready .museline-hero__content > *,
.js .museline-hero.is-ready .museline-hero__signature {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 360ms var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
    transform 360ms var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}

.js .museline-hero.is-ready .museline-hero__content > :nth-child(2) {
  transition-delay: 40ms;
}

.js .museline-hero.is-ready .museline-hero__content > :nth-child(3) {
  transition-delay: 80ms;
}

.js .museline-hero.is-ready .museline-hero__content > :nth-child(4),
.js .museline-hero.is-ready .museline-hero__signature {
  transition-delay: 120ms;
}

@media (max-width: 1000px) {
  .museline-hero {
    --hero-header-offset: calc(32px + 76px + 48px + 1px);
    min-height: min(588px, calc(100svh - var(--hero-header-offset)));
  }

  .museline-hero__content {
    width: min(100%, 800px);
    padding:
      clamp(108px, 9.2vw, 132px)
      36px
      clamp(64px, 5.2vw, 84px)
      38px;
  }

  .museline-hero__eyebrow {
    font-size: 18px;
  }

  .museline-hero__title {
    margin-top: 18px;
    margin-bottom: 16px;
    max-width: 19.8ch;
  }

  .museline-hero__actions {
    margin-top: 30px;
  }
}

@media (max-width: 620px) {
  .museline-hero {
    min-height: auto;
    background-position: 58% center;
  }

  .museline-hero__content {
    width: 100%;
    min-height: auto;
    padding:
      62px 20px 62px 24px;
  }

  .museline-hero__eyebrow {
    margin-bottom: 22px;
    font-size: 16px;
    letter-spacing: 0.11em;
  }

  .museline-hero__title {
    margin-top: 0;
    margin-bottom: 18px;
    max-width: 13.4ch;
    font-size: 52px;
    line-height: 0.92;
  }

  .museline-hero__lead {
    max-width: 28ch;
    font-size: 16px;
    line-height: 1.6;
  }

  .museline-hero__actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 26px;
  }

  .museline-hero__actions .button,
  .museline-hero__actions .cta {
    width: 100%;
  }

  .museline-hero__signature {
    margin-top: 36px;
  }
}

@media (max-width: 390px) {
  .museline-hero__title {
    font-size: clamp(44px, 13.3vw, 52px);
  }
}
