.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;

  display: flex;
  align-items: center;

  padding-top: 5rem;

  background: var(--donkerblauw);
}

/* volledige achtergrondfoto */
.hero__image {
  position: absolute;
  inset: 0;

  background-image: url("../images/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  z-index: 1;
}

/* zachte film over foto */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;

  background:
    linear-gradient(
      90deg,
      rgba(25, 41, 49, 0.38) 0%,
      rgba(25, 41, 49, 0.08) 42%,
      rgba(25, 41, 49, 0.02) 100%
    );

  pointer-events: none;
}

.hero__veil {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(48vw, 680px);
  z-index: 3;

  background:
    radial-gradient(
      circle at 20% 45%,
      rgba(141, 100, 170, 0.45),
      transparent 42%
    ),
    linear-gradient(
      90deg,
      rgba(51, 34, 67, 0.58),
      rgba(51, 34, 67, 0.22) 55%,
      transparent
    );

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(90deg, black 0%, black 58%, transparent 100%);
  mask-image: linear-gradient(90deg, black 0%, black 58%, transparent 100%);
}

/* paars venster */
.hero__panel {
  position: relative;
  z-index: 4;

  width: min(600px, 58vw);
  min-height: 390px;

  margin-left: -3.8rem;
  margin-top: 4.5rem;

  padding: 4.2rem 4.4rem 4.2rem 7.4rem;

  display: flex;
  flex-direction: column;
  justify-content: center;

  color: var(--wit);
  background: var(--donkerpaars);

  /*
    Vensterachtige vorm:
    links valt buiten beeld,
    rechts heeft subtiele inkepingen.
  */
  border-radius: 0 2.2rem 2.2rem 0;

  clip-path: polygon(
    0 0,
    92% 0,
    92% 7%,
    96% 7%,
    96% 18%,
    100% 18%,
    100% 82%,
    96% 82%,
    96% 93%,
    92% 93%,
    92% 100%,
    0 100%
  );

  box-shadow: 0 30px 80px rgba(25, 41, 49, 0.28);
}



.hero__label {
  font-family: var(--font-subtitle);
  font-size: clamp(1.3rem, 2.6vw, 2.4rem);
  line-height: 0.95;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--roze);
}

.hero h1 {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 4.2vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: 0.005rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero__title{
    display:flex;
    flex-direction:column;
    gap: 0.05rem;
}

.hero__title-light{
    font-weight:300;
}

.hero__subtitle {
  font-family: var(--font-subtitle);
  font-size: clamp(1.15rem, 1.7vw, 1.8rem);
  line-height: 1.08;
  font-weight: 500;
  margin-bottom: 1.7rem;
}

.hero__text {
  max-width: 25rem;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1vw, 1.05rem);
  line-height: 1.75;
  margin-bottom: 1.9rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}


/* mobile */
@media (max-width: 820px) {
  .hero {
    align-items: flex-end;
    padding-bottom: 2rem;
    padding-top: 7rem;
  }

  .hero__veil {
    width: 78vw;
    backdrop-filter: blur(6px);
  }

  .hero__panel {
    width: min(94vw, 500px);
    min-height: auto;
    margin-left: -2.2rem;
    margin-top: 0;

    padding: 3rem 2.3rem 3rem 4.7rem;
  }
}

@media (max-width: 30rem) {
  .hero__panel {
    width: calc(100vw - 1rem);
    margin-left: 0;
    padding: 2.5rem 2rem;
    clip-path: none;
    border-radius: 0 2rem 2rem 0;
  }
}
