.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(800px, 100vh);
  padding: 8rem 2rem 4rem;
  overflow: clip;
  background-color: var(--color-surface-inverse);
}

.hero-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-section__video,
.hero-section__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-section__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(20, 38, 63, 0.65) 0%,
    rgba(20, 38, 63, 0.35) 50%,
    rgba(20, 38, 63, 0.75) 100%
  );
}

.hero-section__inner {
  position: relative;
  z-index: 2;
  width: min(800px, calc(100% - 2rem));
  margin: 0 auto;
  text-align: center;
}

.hero-section__title {
  color: var(--color-text-inverse);
  text-wrap: balance;
}

.hero-section__subtitle {
  max-width: 42rem;
  margin: 1.25rem auto 0;
  color: rgba(246, 243, 238, 0.9);
  line-height: 1.7;
}

.hero-section__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.hero-section__actions .button-secondary {
  border-color: rgba(255,255,255,0.4);
}

.hero-section__actions .button-secondary:hover {
  border-color: var(--color-primary);
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 600px;
    padding: 6rem 1.25rem 3rem;
  }

  .hero-section__inner {
    text-align: left;
  }

  .hero-section__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-section__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-section__actions .button {
    width: 100%;
  }
}

.hero-section--about {
  --about-curve-width: min(1045px, 88vw);
  --about-curve-left: 0px;
  --about-curve-content-inset-left: clamp(180px, 14.2vw, 250px);
  --about-curve-content-inset-right: clamp(18px, 3vw, 52px);
  --about-curve-content-bottom: clamp(-4px, 1.1vw, 16px);
  min-height: 550px;
  height: 550px;
  padding: 0;
  border-radius: 0 0 40px 40px;
  background: #fafaf6;
}

.hero-section-wrap--about {
  position: relative;
  background: #fafaf6 !important;
}

.hero-section-wrap--about::before {
  content: "";
  position: absolute;
  left: -2px;
  bottom: -2px;
  width: 54px;
  height: 54px;
  background: #fafaf6;
  border-bottom-left-radius: 42px;
  z-index: 1;
  pointer-events: none;
}

.hero-section-wrap--about::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 5px;
  background: #fafaf6;
  z-index: 1;
  pointer-events: none;
}

.hero-section-wrap--about .hero-section--about {
  background: #fafaf6 !important;
}

.hero-section--about .hero-section__video,
.hero-section--about .hero-section__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  transform: scale(1.22);
}

.hero-section--about .hero-section__overlay {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 100%);
  height: 228px;
  inset: 0 0 auto;
}

.hero-section__curve {
  position: absolute;
  left: var(--about-curve-left);
  bottom: 0;
  width: var(--about-curve-width);
  height: 314px;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero-section__curve::before {
  content: none;
}

.hero-section__curve svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero-section__inner--about {
  position: absolute;
  left: calc(var(--about-curve-left) + var(--about-curve-content-inset-left));
  right: auto;
  bottom: var(--about-curve-content-bottom);
  z-index: 7;
  width: auto;
  max-width: min(
    740px,
    calc(var(--about-curve-width) - var(--about-curve-content-inset-left) - var(--about-curve-content-inset-right))
  );
  margin: 0;
  text-align: left;
}

.hero-section--about .hero-section__title {
  width: 100%;
  margin: 0;
  color: #4f554a;
  font-family: "Fraunces", serif;
  font-size: clamp(2.55rem, 4.2vw, 60px);
  line-height: 1.04;
  font-weight: 400;
}

.hero-section__breadcrumbs {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 8;
}

.hero-section__breadcrumb-link,
.hero-section__breadcrumb-current {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 600;
  text-decoration: none;
}

.hero-section__breadcrumb-link {
  color: #5f7f2e;
}

.hero-section__breadcrumb-current {
  color: #20231f;
}

.hero-section__breadcrumb-icon {
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-section--about .hero-section__subtitle,
.hero-section--about .hero-section__actions {
  display: none;
}

@media (max-width: 991px) {
  .hero-section--about {
    --about-curve-width: min(900px, 95vw);
    --about-curve-left: 0px;
    --about-curve-content-inset-left: clamp(90px, 12vw, 150px);
    --about-curve-content-inset-right: clamp(14px, 2.4vw, 28px);
    --about-curve-content-bottom: 10px;
    min-height: 500px;
    height: 500px;
    border-radius: 0 0 24px 24px;
  }

  .hero-section__curve {
    height: 260px;
  }

  .hero-section__inner--about {
    right: auto;
  }
}

@media (max-width: 860px) {
  .hero-section--about .hero-section__title {
    max-inline-size: 15ch;
  }
}

@media (max-width: 640px) {
  .hero-section-wrap--about::before {
    width: 30px;
    height: 30px;
    border-bottom-left-radius: 22px;
  }

  .hero-section-wrap--about::after {
    height: 4px;
  }

  .hero-section--about {
    --about-curve-width: 100%;
    --about-curve-left: 0px;
    --about-curve-content-inset-left: 1rem;
    --about-curve-content-inset-right: 1rem;
    --about-curve-content-bottom: 6px;
    min-height: 430px;
    height: 430px;
  }

  .hero-section--about .hero-section__video,
  .hero-section--about .hero-section__image {
    object-position: center 56%;
  }

  .hero-section__curve {
    height: 210px;
  }

  .hero-section__inner--about {
    max-width: calc(100% - 2.5rem);
    right: auto;
  }

  .hero-section--about .hero-section__title {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }
}

@media (min-width: 1920px) {
  .hero-section--about {
    --about-curve-width: min(1240px, 72vw);
    --about-curve-content-inset-left: clamp(120px, 8.5vw, 210px);
    --about-curve-content-inset-right: clamp(26px, 2.2vw, 44px);
    min-height: 600px;
    height: 600px;
  }

  .hero-section__curve {
    height: 340px;
  }

  .hero-section__inner--about {
    max-width: min(
      820px,
      calc(var(--about-curve-width) - var(--about-curve-content-inset-left) - var(--about-curve-content-inset-right))
    );
  }
}

@media (min-width: 2560px) {
  .hero-section--about {
    --about-curve-width: min(1360px, 58vw);
    --about-curve-content-inset-left: clamp(150px, 7vw, 230px);
    --about-curve-content-inset-right: clamp(30px, 2vw, 52px);
    min-height: 640px;
    height: 640px;
  }

  .hero-section__curve {
    height: 372px;
  }

  .hero-section__inner--about {
    max-width: min(
      900px,
      calc(var(--about-curve-width) - var(--about-curve-content-inset-left) - var(--about-curve-content-inset-right))
    );
  }
}
