.subpage-page {
  background: var(--snow);
}

.subpage-page h1,
.subpage-page h2,
.subpage-page h3,
.subpage-page h4,
.subpage-page p,
.subpage-page ul,
.subpage-page ol,
.subpage-page dl,
.subpage-page dt,
.subpage-page dd,
.subpage-page figure {
  margin: 0;
}

.subpage-hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--snow);
}

.subpage-hero__media {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 325px;
  overflow: hidden;
  background: var(--navy);
}

.subpage-hero__media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(7, 31, 55, 0.08) 0%, rgba(7, 31, 55, 0.28) 100%);
}

.subpage-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.03);
}

.subpage-hero--business .subpage-hero__media img {
  object-position: 50% 42%;
  transform: scale(1.04);
  filter: saturate(1.02) contrast(1.02) brightness(1.16);
}

.subpage-hero--business .subpage-hero__media::after {
  background: linear-gradient(180deg, rgba(7, 31, 55, 0.03) 0%, rgba(7, 31, 55, 0.18) 100%);
}

.subpage-hero--company .subpage-hero__media img {
  object-position: center 31%;
  transform: rotate(1deg) scale(1.04);
  filter: saturate(0.98) contrast(0.98) brightness(1.16);
}

.subpage-hero--journal .subpage-hero__media img {
  object-position: center 44%;
  transform: translateY(6px) scale(1.08);
  filter: saturate(0.98) contrast(0.98) brightness(1.32);
}

.subpage-hero--journal .subpage-hero__media::after {
  background: linear-gradient(180deg, rgba(7, 31, 55, 0.04) 0%, rgba(7, 31, 55, 0.18) 100%);
}

.subpage-hero__ornament {
  position: absolute;
  z-index: 2;
  top: 229px;
  right: 0;
  left: 0;
  height: 126px;
  overflow: hidden;
  pointer-events: none;
}

.subpage-hero__ornament span {
  position: absolute;
  display: block;
  border-radius: 50%;
  transform: rotate(-12deg);
}

.subpage-hero__ornament span:nth-child(1) {
  right: -142px;
  bottom: -177px;
  left: -180px;
  height: 287px;
  border: 18px solid var(--navy);
}

.subpage-hero__ornament span:nth-child(2) {
  right: -128px;
  bottom: -172px;
  left: -150px;
  height: 270px;
  border: 12px solid var(--blue);
}

.subpage-hero__ornament span:nth-child(3) {
  right: -116px;
  bottom: -168px;
  left: -132px;
  height: 254px;
  border: 9px solid var(--orange-bright);
}

.subpage-hero__title {
  position: absolute;
  z-index: 3;
  top: 250px;
  left: 23px;
  color: var(--snow);
}

.subpage-hero__title p {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.subpage-hero__title h1 {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.96px;
  line-height: 1.25;
}

.subpage-hero__tagline {
  position: absolute;
  right: 20px;
  bottom: 41px;
  left: 20px;
  color: transparent;
  background: var(--blue-gradient);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.8px;
  line-height: 2;
  text-align: center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subpage-hero__tagline small {
  font-size: 16px;
  letter-spacing: 0.64px;
}

.subpage-section {
  width: 100%;
  padding: 80px 20px;
  background: var(--snow);
}

.subpage-section--first {
  padding-top: 0;
}

.subpage-inner {
  width: 100%;
  max-width: 335px;
  margin: 0 auto;
}

.subpage-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.subpage-heading--center {
  align-items: center;
  text-align: center;
}

.subpage-kicker {
  width: max-content;
  color: transparent;
  background: var(--orange-gradient);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subpage-heading h2 {
  color: var(--ink);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.96px;
  line-height: 1.25;
}

.subpage-body {
  color: #373737;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1.6px;
  line-height: 2.2;
}

.subpage-body p + p {
  margin-top: 28px;
}

.subpage-image {
  width: 350px;
  height: 200px;
  overflow: hidden;
  border-radius: 16px;
}

.subpage-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subpage-cta-section {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 80px;
  background: var(--snow);
}

.subpage-page .subpage-cta-section .pill-button {
  width: 295px;
  height: 56px;
  min-height: 56px;
  gap: 10px;
  padding: 8px 20px 8px 14px;
  font-size: 16px;
}

.subpage-page .subpage-cta-section .pill-button__mark {
  --mark-size: 12px;
}

.subpage-page .site-header {
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 8px 22px rgba(8, 40, 66, 0.06);
}

.subpage-page .site-footer {
  border-top-width: 4px;
}

@media (max-width: 360px) {
  .subpage-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .subpage-inner {
    max-width: 328px;
  }

  .subpage-hero__title {
    left: 18px;
  }

  .subpage-hero__tagline {
    right: 16px;
    left: 16px;
  }
}

/* Lower-page hero treatment: the hero artwork sits behind a translucent header,
   while the supplied 526540.ai curves bridge the image and the white content area. */
.subpage-page > .site-header {
  height: 62px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 20px rgba(8, 40, 66, 0.06);
  backdrop-filter: blur(10px);
}

.subpage-page > .site-header .brand {
  width: 96px;
  height: 34px;
}

.subpage-page > .site-header .global-menu {
  top: 62px;
}

.subpage-page > .site-header .menu-toggle span {
  background: #111;
  box-shadow: 0 1px 3px rgba(7, 31, 55, 0.22);
}

.subpage-page > .site-header.is-open .menu-toggle span {
  background: var(--snow);
  box-shadow: none;
}

.subpage-hero {
  height: max(340px, calc(180px + max(121px, 33.6vw) + 16px));
}

.subpage-hero__media {
  height: 255px;
  border-radius: 0 0 50% 50% / 0 0 20% 20%;
  background: var(--snow);
}

.subpage-hero__ornament {
  top: 160px;
  height: max(255px, calc(20px + max(121px, 33.6vw)));
  overflow: hidden;
}

.subpage-hero__ornament::before {
  display: none;
}

.subpage-hero__ornament::after {
  position: absolute;
  z-index: 1;
  top: 20px;
  right: 0;
  left: 0;
  height: max(121px, 33.6vw);
  content: "";
  background: url("images/main_decoration.png") center top / 100% auto no-repeat;
}

.subpage-hero__ornament span:nth-child(1),
.subpage-hero__ornament span:nth-child(2) {
  display: none;
}

.subpage-hero__ornament span:nth-child(3) {
  display: none;
}

.subpage-hero__title {
  top: 205px;
  text-shadow: 0 2px 5px rgba(7, 31, 55, 0.52);
}

.business-page .subpage-hero {
  height: 600px;
}

.business-page .subpage-hero__tagline {
  bottom: 38px;
}

.subpage-page .services--home .service-card__meta h4 {
  margin: 8px 0 0;
}

.subpage-page .services--home .service-description {
  margin: 24px 0 0;
}

@media (max-width: 899px) {
  .subpage-page .subpage-hero__title {
    top: 195px;
  }

  .company-page .subpage-hero__media img {
    transform: translate(10px, 30px) rotate(0.75deg) scale(1.08);
  }

  .company-page .company-message .subpage-heading {
    padding-top: 15px;
  }

  .business-page .subpage-hero {
    height: 530px;
  }

  .business-page .services--home {
    padding-bottom: 80px;
  }

  .business-page .subpage-hero__tagline {
    bottom: 58px;
    width: max-content;
    max-width: calc(100% - 40px);
    margin: 0 auto;
    text-align: left;
  }

  .business-page .services--home .services__inner > .pill-button {
    margin-top: -8px;
  }

  .business-page .business-gallery {
    padding-top: 80px;
  }
}
