.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
}

.section--tight {
  padding: 3.5rem 0;
}

.section--navy {
  background: var(--navy);
  color: #f4efe6;
}

.section--navy h2,
.section--navy h3 {
  color: #fbf9f6;
}

.section--navy p,
.section--navy .lede {
  color: rgba(244, 239, 230, 0.78);
}

.section--ivory {
  background: var(--ivory);
}

.section--aqua-light {
  background: var(--aqua-light);
}

.grid-2 {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.grid-3,
.grid-4,
.card-grid,
.project-grid,
.proof-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .grid-2,
  .card-grid,
  .project-grid,
  .proof-grid {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 980px) {
  .section {
    padding: 7.5rem 0;
  }

  body.is-aqualive-projects-page .page-hero + .section {
    padding-top: clamp(2.5rem, 4vw, 3.5rem);
  }

  .grid-4,
  .card-grid,
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .proof-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.split-copy {
  max-width: 34rem;
}

/* Section headings inside editor content (e.g. the Privacy Policy page). */
.split-copy h2.wp-block-heading {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  margin-top: 2rem;
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.page-hero {
  position: relative;
  margin-top: 0;
  min-height: clamp(22rem, 50vh, 34rem);
  padding: calc(var(--header-h) + 4rem) 0 calc(4rem + var(--page-hero-curve-height, 4.5rem));
  box-sizing: border-box;
  background:
    linear-gradient(180deg, rgba(6, 46, 54, 0.55), rgba(6, 46, 54, 0.55)),
    var(--page-hero, url("../images/hero.jpg")) center / cover no-repeat;
  color: #fff;
  --page-hero-curve-height: clamp(2.75rem, 7vw, 5rem);
}

.page-hero--wave-sand .hero-curve {
  color: var(--sand);
}

.page-hero--projects,
body.is-aqualive-projects-page .page-hero {
  background-image: var(--page-hero, url("../images/hero.jpg"));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: clamp(26rem, 58vh, 40rem);
  padding-bottom: calc(2.25rem + var(--page-hero-curve-height, 4.5rem));
}

body.is-aqualive-projects-page .page-hero + .section {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.page-hero--projects::before,
body.is-aqualive-projects-page .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(4, 8, 18, 0.97) 0%,
    rgba(8, 14, 28, 0.94) 18%,
    rgba(14, 24, 48, 0.86) 36%,
    rgba(22, 35, 68, 0.58) 54%,
    rgba(38, 51, 88, 0.22) 72%,
    rgba(38, 51, 88, 0) 100%
  );
}

.page-hero .hero-curve {
  z-index: 2;
  height: var(--page-hero-curve-height, clamp(2.75rem, 7vw, 5rem));
}

.page-hero .wrap {
  position: relative;
  z-index: 3;
}

.page-hero h1,
.page-hero p {
  color: #fff;
}

.page-hero .wrap > h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

.page-hero .eyebrow {
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.page-hero p {
  max-width: 36rem;
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
  opacity: 0.92;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}
