body.subpage {
  min-height: 100svh;
  background: var(--cream);
}

.subpage .site-header {
  top: 18px;
  width: min(1500px, calc(100% - 40px));
  min-height: 76px;
  padding: 9px 16px;
  transform: translateX(-50%);
  border: 1px solid rgba(40, 42, 42, 0.08);
  border-radius: 999px;
  background: rgba(251, 248, 243, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 46px rgba(42, 32, 24, 0.08);
}

.subpage .site-header.is-hidden {
  transform: translate(-50%, calc(-100% - 36px));
}

.subpage .brand {
  min-width: 190px;
}

.subpage .page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(440px, 0.96fr);
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.95), transparent 34%),
    linear-gradient(125deg, var(--linen), var(--cream) 58%, #fff 100%);
}

.subpage .page-hero-media {
  min-height: 100svh;
  overflow: hidden;
  background: var(--linen);
}

.subpage .page-hero-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.subpage .page-hero-content {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 156px clamp(42px, 5vw, 94px) 96px;
}

.subpage .page-hero-content h1 {
  max-width: 760px;
  font-size: clamp(3rem, 4.4vw, 5.1rem);
  line-height: 0.98;
  text-wrap: balance;
}

.subpage .page-hero-content > p:not(.eyebrow) {
  max-width: 690px;
  margin-top: 26px;
  font-size: 1.04rem;
  line-height: 1.72;
}

.subpage .page-hero-content .button-row {
  max-width: 680px;
}

.subpage .subpage-section {
  min-height: calc(100svh - 180px);
  padding-top: 170px;
}

.subpage .contact-grid > * {
  min-width: 0;
}

.subpage .site-footer {
  position: relative;
  z-index: 1;
}

@media (max-width: 1040px) {
  .subpage .site-header {
    grid-template-columns: auto 1fr auto;
    width: calc(100% - 28px);
  }

  .subpage .page-hero {
    grid-template-areas:
      "content"
      "media";
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }

  .subpage .page-hero-content {
    grid-area: content;
    padding: 150px 40px 72px;
    text-align: center;
    justify-items: center;
  }

  .subpage .page-hero-media {
    grid-area: media;
    min-height: 560px;
  }

  .subpage .page-hero-content .eyebrow {
    justify-content: center;
  }

  .subpage .page-hero-content .button-row {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .subpage .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 66px;
    padding: 8px 10px;
    border-radius: 20px;
  }

  .subpage .brand {
    min-width: 0;
  }

  .subpage .page-hero-content {
    padding: 126px 20px 58px;
  }

  .subpage .page-hero-content h1 {
    width: min(100%, 620px);
    font-size: clamp(2.45rem, 11vw, 3.45rem);
  }

  .subpage .page-hero-content > p:not(.eyebrow) {
    font-size: 0.98rem;
  }

  .subpage .page-hero-media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .subpage .page-hero-content .button-row {
    width: 100%;
  }

  .subpage .subpage-section {
    min-height: auto;
    padding-top: 118px;
  }
}

@media (max-width: 430px) {
  .subpage .page-hero-content {
    padding-inline: 16px;
  }

  .subpage .page-hero-content h1 {
    font-size: clamp(2.2rem, 10.5vw, 2.85rem);
  }

  .subpage.contact-page .contact-panel {
    padding-inline: 16px;
  }

  .subpage.contact-page .contact-panel > a:not(.button) {
    overflow-wrap: anywhere;
    font-size: clamp(1.55rem, 9vw, 2rem);
  }

  .subpage.contact-page .contact-panel .button {
    min-width: 0;
    padding-inline: 14px;
    white-space: normal;
  }
}
