.container {
  width: min(var(--container), calc(100% - 3rem));
  margin-inline: auto;
}

.section {
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
}

.section--soft {
  background: var(--surface);
}

.section--navy {
  background: var(--primary);
  color: var(--white);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.7fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-heading__title {
  max-width: 18ch;
  color: var(--primary);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.section-heading__copy {
  max-width: 48ch;
  color: var(--text-muted);
}

.section--navy .section-heading__title,
.section--navy .section-heading__copy {
  color: var(--white);
}

.section--navy .section-heading__copy {
  color: rgb(255 255 255 / 72%);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
}

.split-layout--reverse > :first-child {
  order: 2;
}

.split-layout--reverse > :last-child {
  order: 1;
}

.content-stack > * + * {
  margin-top: 1.25rem;
}

.content-stack--tight > * + * {
  margin-top: 0.75rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

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

.grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-rule {
  border-top: 1px solid var(--border);
}

.section--navy .section-rule {
  border-color: rgb(255 255 255 / 20%);
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-strong);
}

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

.media-frame--portrait {
  aspect-ratio: 5 / 6;
}

.media-frame--landscape {
  aspect-ratio: 16 / 10;
}
