/* Homepage-only audience cards; the shared lower frame supplies rails/gutters. */
.f27-homepage .f27-audiences {
  padding: clamp(48px, 6vw, 100px) var(--f27-inner, 1.05rem);
  border-bottom: 1px solid var(--f27-line, #DEDED7);
  color: var(--f27-ink, #292c2b);
  font-family: "DM Sans", sans-serif;
}
.f27-audiences, .f27-audiences *, .f27-audiences *::before, .f27-audiences *::after { box-sizing: border-box; }
.f27-homepage .f27-audiences__eyebrow {
  margin: 0 0 18px;
  color: var(--f27-muted, #636966);
  font: 400 12px/1.5 "DM Sans", sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.f27-homepage .f27-audiences__intro {
  max-width: 32ch;
  margin: 0 0 clamp(28px, 3.2vw, 48px);
  color: var(--f27-ink, #292c2b);
  font: 400 clamp(1.25rem, 1.9vw, 1.8rem)/1.35 "DM Sans", sans-serif;
  letter-spacing: -.025em;
}
.f27-audiences__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--f27-inner, 1.05rem);
}
.f27-audiences__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
}
.f27-audiences__media {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.28;
  border-radius: 8px;
}
/* Only the media surface grows. Illustration and all copy remain fixed. */
.f27-audiences__media::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  border: 1px solid var(--f27-line, #DEDED7);
  border-radius: inherit;
  background: var(--f27-paper, #F9F9F6);
  transition: transform .8s cubic-bezier(.16, 1, .3, 1), border-color .4s ease;
}
.f27-audiences__image {
  display: block;
  width: 60%;
  max-width: 230px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}
.f27-audiences__copy { width: 100%; padding: 22px 0 0; }
.f27-homepage .f27-audiences__title {
  margin: 0 0 6px;
  color: inherit;
  font: 500 clamp(20px, 1.6vw, 24px)/1.2 "DM Sans", sans-serif;
  letter-spacing: -.035em;
}
.f27-homepage .f27-audiences__description {
  margin: 0;
  max-width: 36ch;
  color: var(--f27-muted, #636966);
  font: 400 16px/1.6 "DM Sans", sans-serif;
  letter-spacing: 0;
}
.f27-homepage .f27-audiences__card:focus-visible { outline: 2px solid var(--f27-ink, #292c2b); outline-offset: 5px; }
.f27-audiences__card:focus-visible .f27-audiences__media::before { border-color: var(--f27-ink, #292c2b); }
@media (hover: hover) and (pointer: fine) {
  .f27-audiences__card:hover .f27-audiences__media::before { transform: scale(1.01); border-color: var(--f27-ink, #292c2b); }
}
@media (max-width: 767px) {
  .f27-audiences__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .f27-homepage .f27-audiences__intro { font-size: 1.5rem; }
  .f27-audiences__media { aspect-ratio: 1.5; max-height: 340px; }
  .f27-audiences__image { width: 54%; max-width: 220px; }
  .f27-homepage .f27-audiences__title { font-size: 22px; }
  .f27-audiences__copy { padding-top: 20px; }
}
@media (max-width: 479px) {
  .f27-homepage .f27-audiences__title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .f27-audiences__media::before { transition: none; }
  .f27-audiences__card:hover .f27-audiences__media::before { transform: none; }
}

/* Motion replaces only the decorative image, in the same fixed grid area. */
.f27-audiences__image, .f27-audiences__motion { grid-area: 1 / 1; }
.f27-audiences__motion {
  width: 60%; max-width: 230px; aspect-ratio: 1; pointer-events: none;
  visibility: hidden;
}
.f27-audiences__motion svg { display: block; width: 100%; height: 100%; }
.f27-audiences__media.is-motion-ready .f27-audiences__image { visibility: hidden; }
.f27-audiences__media.is-motion-ready .f27-audiences__motion { visibility: visible; }
@media (max-width: 767px) {
  .f27-audiences__motion { width: 54%; max-width: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .f27-audiences__media.is-motion-ready .f27-audiences__image { visibility: visible; }
  .f27-audiences__media.is-motion-ready .f27-audiences__motion { visibility: hidden; }
}

/* Grey section bleeds to the viewport; the shared content rails stay fixed. */
.f27-homepage .f27-audiences { isolation: isolate; background: var(--f27-surface, #F1F1EC); }
.f27-homepage .f27-audiences::before { content: ""; position: absolute; inset-block: 0; left: 50%; width: 100cqw; transform: translateX(-50%); z-index: -1; pointer-events: none; background: var(--f27-surface, #F1F1EC); }

.f27-homepage .f27-audiences { border-inline: 1px solid var(--f27-line, #DEDED7); margin-inline: -1px; }

/* Paint the rails above the viewport bleed so its background cannot cover them. */
.f27-homepage .f27-audiences::before { border-bottom: 1px solid var(--f27-line, #DEDED7); }
.f27-homepage .f27-rails > .f27-audiences::after {
  left: -1px; bottom: 0; width: calc(100% + 2px); height: 100%; transform: none;
  background: none; border-inline: 1px solid var(--f27-line, #DEDED7);
}
