/* ==========================================================================
   Layout — container, grid, section rhythm
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow {
  max-width: 900px;
}

.container--legal {
  max-width: 760px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-md);
}

.section {
  position: relative;
  padding-block: var(--section-pad);
}

.section--tight {
  padding-block: clamp(2.5rem, 2rem + 3vw, 5rem);
}

.section--flush {
  padding-block: 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  max-width: 46rem;
}

/* The flex `gap` above already provides the eyebrow-to-heading space
   (and doesn't collapse with margins) — zero the eyebrow's own margin
   here so it isn't added on top, keeping it identical to every
   eyebrow used outside .section-head. */
.section-head > .eyebrow {
  margin-bottom: 0;
}

.section-head--center {
  align-items: center;
  text-align: center;
  margin-inline: auto;
}

.section-head--split {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  max-width: none;
  gap: var(--space-lg);
}

@media (max-width: 720px) {
  .section-head--split {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---- Full-bleed cinematic media block ---- */
.bleed {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.bleed__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bleed__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.55) 60%,
    rgba(0, 0, 0, 0.92) 100%
  );
}

.bleed__content {
  position: relative;
  z-index: var(--z-content);
}

/* ---- Divider / rule ---- */
.rule {
  height: 1px;
  width: 100%;
  background: var(--border);
  border: 0;
}

/* ---- Responsive helpers ---- */
.hide-mobile {
  display: initial;
}
.show-mobile {
  display: none;
}

@media (max-width: 720px) {
  .hide-mobile {
    display: none !important;
  }
  .show-mobile {
    display: initial !important;
  }
}
