.flow-hero-large {
  position: relative;
  overflow: hidden;
  padding: 0;
}

/* === Background Image === */
.flow-hero-large .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.flow-hero-large .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
}

/* === Content Wrapper (mobile/tablet use grid) === */
.flow-hero-large .hero-inner {
  position: relative;
  z-index: 1;
  display: grid; /* CHANGED: grid for small screens */
  grid-template-columns: 1fr;
  grid-template-areas:
    "heading"
    "image"
    "text";
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
  margin: 1.5rem 0 0.5rem;
  min-height: 400px;
}

/* Let hero-content’s children become grid items */
.flow-hero-large .hero-content {
  display: contents; /* CHANGED */
}

/* Map to areas */
.flow-hero-large .hero-heading {
  grid-area: heading;
}
.flow-hero-large .hero-text {
  grid-area: text;
}
.flow-hero-large .hero-media {
  grid-area: image;
}

/* Typography */
.flow-hero-large .hero-heading {
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0;
}
.flow-hero-large .hero-text {
  font-weight: 500;
  color: #fff;
  line-height: 1.875rem;
  margin: 0;
}

/* === Hero Media (image + accents) === */
.flow-hero-large .hero-media {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "accent-bottom image accent-top";
  align-items: center;
  gap: 0;
  margin: 0.5rem 0;
}

.hero-accent-bottom {
  grid-area: accent-bottom;
}
.hero-image {
  grid-area: image;
}
.hero-accent-top {
  grid-area: accent-top;
}

/* Foreground image (mobile first) */
.flow-hero-large .hero-image picture,
.flow-hero-large .hero-image img {
  width: 100%;
  height: auto;
  /* aspect-ratio: 16 / 9; */
  aspect-ratio: 4/3;
  border-radius: 2rem 0;
  object-fit: cover;
  display: block;
}

/* Accent blocks (mobile hidden) */
.hero-accent-top,
.hero-accent-bottom {
  display: none;
}

.hero-accent-top {
  align-self: start;
  justify-self: end;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--block-top);
  border-radius: 0 1.25rem;
}

.hero-accent-bottom {
  align-self: end;
  justify-self: start;
  width: 2rem;
  height: 2rem;
  background-color: var(--block-bottom);
  border-radius: 0 1rem;
}

/* === Tablet Portrait (48–63.9375rem) === */
@media (min-width: 48rem) and (max-width: 63.9375rem) {
  .flow-hero-large .hero-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "image"
      "text";
    gap: 2rem;
    width: 100%;
    min-height: 500px;
    /* padding: 1.5rem 0; */
  }

  .flow-hero-large .hero-image img {
    /* aspect-ratio: 16 / 9; */
    aspect-ratio: 4 / 3;
    border-radius: 3rem 0;
  }

  .hero-accent-top,
  .hero-accent-bottom {
    display: none;
  }

  .hero-accent-top {
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 0 3rem;
  }
  .hero-accent-bottom {
    width: 5rem;
    height: 5rem;
    border-radius: 0 2rem;
  }
}

/* === Desktop (≥64rem) — revert to your original flex layout === */
@media (min-width: 64rem) {
  .flow-hero-large {
    padding: 4rem 0;
  }

  .flow-hero-large .hero-inner {
    display: flex; /* revert to flex */
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 3.75rem;
    gap: 4rem;
    text-align: left;
    margin: 0 auto;
    min-height: 420px;
  }

  .flow-hero-large .hero-content {
    display: block; /* stop 'contents' at desktop */
    order: 0;
    flex: 2;
  }

  .flow-hero-large .hero-media {
    order: 1;
    flex: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "accent-bottom image accent-top";
    align-items: center;
  }

  .flow-hero-large .hero-image img {
    width: auto;
    max-width: 340px;
    aspect-ratio: 1 / 1;
    border-radius: 6rem 0;
  }

  .flow-hero-large .hero-heading {
    line-height: 1.2;
    margin: 0 0 1.75rem 0;
  }

  .flow-hero-large .hero-text {
    line-height: 1.7;
  }

  .hero-accent-top,
  .hero-accent-bottom {
    display: block;
  }

  .hero-accent-top {
    width: 7.75rem;
    height: 7.75rem;
    border-radius: 0 3.5rem;
  }
  .hero-accent-bottom {
    width: 5.0625rem;
    height: 5.0625rem;
    border-radius: 0 2rem;
  }
}

/* === Compact Desktop (1024–1180px) === */
@media (min-width: 64rem) and (max-width: 73.75rem) {
  /* 1024–1180px */
  .flow-hero-large .hero-inner {
    align-items: flex-start;
    gap: 2rem;
  }

  .info-hero-large .hero-content {
    flex: 0 0 calc(65% - 2rem);
  }

  .info-hero-large .hero-media {
    flex: 0 0 calc(35% - 2rem);
  }

  .flow-hero-large .hero-image img {
    max-width: 300px; /* slightly smaller desktop image */
    aspect-ratio: 1 / 1;
  }

  .hero-accent-top,
  .hero-accent-bottom {
    display: none;
  }
}

/* === Ultra-wide (≥90rem) — only deltas needed === */
@media (min-width: 90rem) {
  .flow-hero-large .hero-image img {
    max-width: 400px;
    /* aspect-ratio and border-radius inherited from desktop */
  }
}
