.page-hero {
  --page-hero-shell: #131b2f;
  --page-hero-shell-deep: #0a1121;
  --page-hero-glow: rgba(174, 192, 255, 0.22);
  --page-hero-copy: rgba(255, 255, 255, 0.88);
  --page-hero-copy-soft: rgba(216, 226, 255, 0.78);
  --page-hero-figure-width: min(30rem, 42vw);
  --page-hero-bg-image: none;
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 7vw, 6rem) 0 0;
  border-bottom-left-radius: 2.5rem;
  border-bottom-right-radius: 2.5rem;
  background:
    var(--page-hero-bg-image) center center / cover no-repeat,
    radial-gradient(
      circle at 18% 18%,
      rgba(143, 163, 220, 0.16),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      #27314a 0%,
      var(--page-hero-shell) 40%,
      var(--page-hero-shell-deep) 100%
    );
  color: #ffffff;
}

.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-hero::before {
  background:
    linear-gradient(
      105deg,
      rgba(11, 18, 34, 0.34) 0%,
      rgba(11, 18, 34, 0.78) 52%,
      rgba(11, 18, 34, 0.92) 100%
    ),
    linear-gradient(transparent 0 0);
  z-index: 0;
}

.page-hero::after {
  background:
    linear-gradient(
      90deg,
      transparent 0 18%,
      rgba(255, 255, 255, 0.06) 18.2% 18.35%,
      transparent 18.55% 100%
    ),
    linear-gradient(
      130deg,
      transparent 0 64%,
      rgba(255, 255, 255, 0.05) 64.2% 64.35%,
      transparent 64.55% 100%
    ),
    linear-gradient(
      160deg,
      transparent 0 74%,
      rgba(255, 255, 255, 0.05) 74.15% 74.3%,
      transparent 74.45% 100%
    );
  mix-blend-mode: screen;
  opacity: 0.7;
  z-index: 0;
}

.page-hero__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 30%, var(--page-hero-glow), transparent 24%),
    linear-gradient(
      25deg,
      transparent 0 60%,
      rgba(255, 255, 255, 0.04) 60.1% 60.35%,
      transparent 60.45% 100%
    ),
    linear-gradient(
      205deg,
      transparent 0 73%,
      rgba(255, 255, 255, 0.04) 73.1% 73.35%,
      transparent 73.45% 100%
    );
  opacity: 0.95;
}

.page-hero--has-background-image .page-hero__backdrop {
  background:
    radial-gradient(
      circle at 72% 30%,
      rgba(174, 192, 255, 0.18),
      transparent 24%
    ),
    linear-gradient(
      25deg,
      transparent 0 60%,
      rgba(255, 255, 255, 0.06) 60.1% 60.35%,
      transparent 60.45% 100%
    ),
    linear-gradient(
      205deg,
      transparent 0 73%,
      rgba(255, 255, 255, 0.06) 73.1% 73.35%,
      transparent 73.45% 100%
    );
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--page-hero-figure-width));
  align-items: end;
  gap: clamp(2rem, 5vw, 4rem);
}

.page-hero__content {
  max-width: 40rem;
  display: grid;
  margin: auto 0;
  gap: 1.25rem;
  padding: clamp(1rem, 2vw, 1.5rem) 0 clamp(3rem, 5vw, 4.75rem);
}

.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  font-family:
    "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--page-hero-copy-soft);
}

.page-hero__eyebrow-line {
  width: 1.45rem;
  height: 1px;
  background: rgba(216, 226, 255, 0.55);
}

.page-hero__title {
  margin: 0;
  display: grid;
  gap: 0.1em;
  font-family:
    "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.page-hero__title-main,
.page-hero__title-accent {
  display: block;
}

.page-hero__title-accent {
  color: #b2c5f3;
  font-style: italic;
  font-weight: 400;
}

.page-hero__subtitle {
  max-width: 35rem;
  font-size: clamp(1.1rem, 1.7vw, 1.55rem);
  line-height: 1.45;
  color: var(--page-hero-copy);
}

.page-hero__subtitle p + p {
  margin-top: 0.85rem;
}

.page-hero__figure {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  align-self: end;
  min-height: clamp(18rem, 42vw, 34rem);
}

.page-hero__figure-glow {
  position: absolute;
  inset: auto 8% 5% 8%;
  height: 28%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(5, 9, 18, 0.72), transparent 72%);
  filter: blur(20px);
}

.page-hero__image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 28rem;
  max-height: 42rem;
  object-fit: contain;
  object-position: center bottom;
  vertical-align: bottom;
  filter: drop-shadow(0 1.5rem 2rem rgba(0, 0, 0, 0.35));
}

.page-hero--no-image .page-hero__inner {
  grid-template-columns: minmax(0, 1fr);
}

.page-hero--no-image .page-hero__content {
  max-width: 46rem;
}

@media (max-width: 900px) {
  .page-hero {
    padding-top: 3.75rem;
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
  }

  .page-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }

  .page-hero__content {
    max-width: 100%;
    padding-bottom: 2rem;
  }

  .page-hero__figure {
    min-height: 0;
    max-width: min(24rem, 78vw);
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  .page-hero {
    width: calc(100% - 1rem);
    margin: 0 auto;
    border-bottom-left-radius: 1.5rem;
    border-bottom-right-radius: 1.5rem;
  }

  .page-hero__inner {
    width: min(100%, calc(100% - 1.5rem));
  }

  .page-hero__title {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .page-hero__subtitle {
    font-size: 1.05rem;
  }
}

.page-hero__button {
  display: inline-flex;
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  color: #ffffff;
  background: var(--CTA-Default);
  border-radius: 5px;
  font-family: "Neuzeit Grotesk", sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  width: fit-content;
}

.page-hero__button:hover {
  box-shadow: var(--CTA-Shadow);
  transform: translateY(-2px);
}

/* Legal Variant */
.page-hero--legal .page-hero__title-accent {
  color: #cbd5e1;
  font-style: italic;
  font-weight: 400;
}
