/* Home — "Two initiatives" section, with the family photograph beside the copy.
   Layered on top of the compiled Astro bundle; uses the site's own tokens only.

   The intro paragraph and the photograph share one two-column band. The photo
   sits in a soft-cornered frame with the same brass hairline, coal glow and
   bottom grounding fade the hero portrait uses, so it reads as part of the page
   rather than as a picture dropped onto it. The photo itself is left in full
   colour — the warmth comes from the frame, never from a tint over their faces.

   The media well is an auto-fit grid: one photograph fills it, a second sits
   beside the first with no markup change beyond adding the figure. */

/* The copy column is sized so it lands just shy of the .intro 46rem measure at
   the widest shell — that way the photograph starts one gutter after the text
   ends instead of drifting off toward the right edge on its own. */
#initiatives .initiatives__head {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

/* the band owns the spacing now */
#initiatives .initiatives__head .intro {
  margin-bottom: 0;
}

/* Fills its column rather than sitting at a fixed width shoved against the
   right edge: the photo's right edge then lines up with the section rule and
   the pair column below it, and the only space between copy and photo is the
   grid gutter. */
.initiatives__media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: start;
  width: 100%;
}

.photo-card {
  margin: 0;
  position: relative;
  isolation: isolate;
}

/* the same banked-coal warmth behind the frame that the hero portrait has,
   dialled well down so two of them side by side never compete with the type */
.photo-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -9%;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(200, 162, 74, 0.18),
    transparent 66%
  );
  pointer-events: none;
}

.photo-card__frame {
  position: relative;
  overflow: hidden;
  border-radius: clamp(14px, 1.5vw, 22px);
  background: #0a0806;
  box-shadow: 0 1.4rem 3.4rem rgba(0, 0, 0, 0.55);
}

.photo-card__frame img {
  display: block;
  width: 100%;
  /* height:auto is required — the img's height attribute is a presentational
     hint that otherwise beats any aspect handling */
  height: auto;
  filter: saturate(1.08) contrast(1.02);
}

/* hairline + grounding fade, clipped to the rounded corners */
.photo-card__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(200, 162, 74, 0.5);
  box-shadow:
    inset 0 0 0 4px rgba(20, 17, 15, 0.32),
    inset 0 -2.6rem 3.2rem rgba(20, 17, 15, 0.45);
}

.photo-card figcaption {
  margin-top: 0.9rem;
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--brass-lo);
}

/* stack under the copy on narrow screens, left-aligned like everything else */
@media (max-width: 58rem) {
  #initiatives .initiatives__head {
    grid-template-columns: 1fr;
    gap: clamp(1.75rem, 5vw, 2.5rem);
  }

  .initiatives__media {
    max-width: 26rem;
  }
}
