/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  overflow: clip;
}


.hero__inner {
  max-width: var(--ds-content-max-width);
  margin-inline: auto;

  padding:
    var(--ds-space-24)
    var(--ds-space-6)
    var(--ds-space-16);

  display: grid;
  grid-template-columns: 1fr 1.1fr;

  align-items: center;

  gap: var(--ds-space-16);

  position: relative;
  z-index: 1;
}


/* ============================================================
   CONTENT
   ============================================================ */

.hero__content {
  position: relative;
  z-index: 2;
}


/* ============================================================
   HEADLINE
   ============================================================ */

.hero__headline {
  font-family: var(--ds-font-heading);

  font-weight: 700;
  font-variation-settings: "wght" 700;

  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.1;

  letter-spacing: -0.02em;

  color: var(--ds-foreground);

  margin-bottom: var(--ds-space-5);

  will-change: transform, opacity;
}


/* ============================================================
   SUBTITLE
   ============================================================ */

.hero__subtitle {
  font-size: 1.125rem;
  line-height: 1.6;

  color: var(--ds-muted-foreground);

  max-width: 38ch;

  margin-bottom: var(--ds-space-8);

  will-change: transform, opacity;
}


/* ============================================================
   ACTIONS
   ============================================================ */

.hero__actions {
  display: flex;

  align-items: center;

  gap: var(--ds-space-6);

  will-change: transform, opacity;
}


/* ============================================================
   PRIMARY CTA
   ============================================================ */

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;

  background-color: var(--ds-primary);
  color: var(--ds-primary-foreground);

  font-weight: 500;
  font-size: 1rem;

  padding:
    var(--ds-space-3)
    var(--ds-space-6);

  border-radius: var(--ds-radius-lg);

  white-space: nowrap;

  transition:
    opacity
      var(--ds-duration-fast)
      var(--ds-ease-standard);

  will-change: opacity;
}


.hero__cta:hover {
  opacity: 0.9;
}


/* ============================================================
   SECONDARY LINK
   ============================================================ */

.hero__secondary-link {
  text-decoration: none;

  color: var(--ds-foreground);

  font-size: 1rem;

  border-bottom:
    1px solid
    var(--ds-border);

  padding-bottom: 2px;

  transition:
    color
      var(--ds-duration-fast)
      var(--ds-ease-standard),
    border-color
      var(--ds-duration-fast)
      var(--ds-ease-standard);
}


.hero__secondary-link:hover {
  color: var(--ds-primary);
  border-color: var(--ds-primary);
}


/* ============================================================
   FOCUS
   ============================================================ */

.hero__cta:focus-visible,
.hero__secondary-link:focus-visible {
  outline:
    2px solid
    var(--ds-ring);

  outline-offset: 3px;

  border-radius: var(--ds-radius-sm);
}


/* ============================================================
   VISUAL
   ============================================================ */

.hero__visual {
  position: relative;
}


/* ============================================================
   IMAGE WRAPPER
   ============================================================ */

.hero__image-wrapper {
  will-change: transform, opacity;
}

.hero__image-frame {
  transform: rotate(-2deg);
}

/* ============================================================
   IMAGE
   ============================================================ */

.hero__image {
  display: block;
  width: 100%;
  height: auto;

  border-radius: var(--ds-radius-xl);
  border: 1px solid var(--ds-border);

  box-shadow:
    0 30px 70px -25px rgb(0 0 0 / 65%);
}


/* ============================================================
   SPOTLIGHT REVEAL
   ============================================================ */

.page-spotlight {
  position: fixed;

  inset: 0;

  z-index: 100;

  background-color: var(--ds-background);

  pointer-events: none;

  --reveal-x: 0px;
  --reveal-y: 0px;
  --reveal-radius: 0px;

  -webkit-mask-image:
    radial-gradient(
      circle at
        var(--reveal-x)
        var(--reveal-y),
      transparent
        var(--reveal-radius),
      black
        calc(var(--reveal-radius) + 1px)
    );

  mask-image:
    radial-gradient(
      circle at
        var(--reveal-x)
        var(--reveal-y),
      transparent
        var(--reveal-radius),
      black
        calc(var(--reveal-radius) + 1px)
    );
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {

  .hero__inner {
    grid-template-columns: 1fr;

    padding-top: var(--ds-space-16);

    text-align: left;
  }


  .hero__image {
    transform: rotate(0deg);
  }
}


@media (max-width: 640px) {

  .hero__inner {
    padding-inline: var(--ds-space-4);
  }


  .hero__headline {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }


  .hero__subtitle {
    font-size: 1rem;
  }


 .hero__actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--ds-space-3);
    width: 100%;
  }

  .hero__cta,
  .hero__secondary-link {
    flex: 1;
  }


  .hero__cta {
    justify-content: center;
    text-align: center;
  }


  .hero__secondary-link {
    text-align: center;
    white-space: nowrap;
  }

}

@media (max-width: 380px) {
  .hero__actions {
    gap: var(--ds-space-2);
  }

  .hero__cta,
  .hero__secondary-link {
    font-size: 0.9rem;
  }
}