/* ---------- Generic 12-col grid ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 2.5rem);
}

section {
  position: relative;
}

.section--roomy { padding-block: var(--space-l); }
.section--tight { padding-block: var(--space-s); }
.section--mid   { padding-block: var(--space-m); }
.section--xl    { padding-block: var(--space-xl); }

.section--surface { background: var(--surface); }
.section--primary { background: var(--primary); color: #fff; }
.section--primary h2,
.section--primary h3,
.section--primary p { color: #fff; }

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 3vw, 3.5rem);
}

.section-head p.lead {
  margin-top: 0.8rem;
}

/* ---------- Hero: offset image bleeding into next section ---------- */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding-bottom: clamp(5rem, 4rem + 8vw, 9rem);
  overflow: visible;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 2.5rem);
  align-items: center;
}

.hero__content {
  grid-column: 1 / span 6;
}

.hero__eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--accent-dark);
  margin-bottom: 0.9rem;
}

.hero__title {
  margin-bottom: 0.7em;
}

.hero__lead {
  margin-bottom: 1.6rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero__media {
  grid-column: 7 / span 6;
  position: relative;
  margin-bottom: calc(-1 * clamp(5rem, 4rem + 8vw, 9rem) - var(--space-s));
  z-index: 20;
}

.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-feature);
  box-shadow: var(--shadow-raised);
}

.hero__media-tag {
  position: absolute;
  left: -1.2rem;
  bottom: 1.6rem;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
  box-shadow: var(--shadow-soft);
  max-width: 220px;
}

.hero__media-tag strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--primary-dark);
}

.hero__media-tag span {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* ---------- Offset grid (asymmetric starting columns) ---------- */
.offset-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 2.5rem);
  row-gap: clamp(2.5rem, 3vw, 4rem);
}

.offset-grid__item-a {
  grid-column: 1 / span 5;
}
.offset-grid__item-b {
  grid-column: 7 / span 6;
  margin-top: clamp(1.5rem, 4vw, 3.5rem);
}
.offset-grid__item-c {
  grid-column: 2 / span 5;
  margin-top: clamp(1rem, 3vw, 2.5rem);
}
.offset-grid__item-d {
  grid-column: 8 / span 5;
}

.offset-grid figure {
  margin: 0;
}

.offset-grid img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* ---------- Full-bleed break section ---------- */
.full-bleed {
  width: 100%;
  background: var(--primary);
  color: #fff;
}

.full-bleed blockquote {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.3rem);
  font-weight: 500;
  line-height: 1.35;
}

.full-bleed cite {
  display: block;
  margin-top: 1.4rem;
  font-style: normal;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--accent);
}

/* ---------- Two-col split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.split img {
  width: 100%;
  border-radius: var(--radius-feature);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 900px) {
  .hero__grid,
  .offset-grid,
  .split {
    display: block;
  }

  .hero__content {
    margin-bottom: 2.5rem;
  }

  .hero__media {
    margin-bottom: 0;
    margin-top: 0;
  }

  .hero__media-tag {
    left: 1rem;
  }

  .offset-grid__item-a,
  .offset-grid__item-b,
  .offset-grid__item-c,
  .offset-grid__item-d {
    margin-top: 0;
    margin-bottom: clamp(2rem, 6vw, 3rem);
  }

  .offset-grid__item-b:last-child,
  .offset-grid__item-d:last-child {
    margin-bottom: 0;
  }

  .split > * + * {
    margin-top: 2rem;
  }
}
