/* Who we serve — aligned icon cover + entrance motion */

.home-audience {
  --ha-ink: #111;
  --ha-muted: #6a6a70;
  --ha-line: rgba(17, 17, 17, 0.1);
  --ha-accent: var(--ayenyx-secondary, #fbaa25);
  --ha-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  z-index: 1;
  overflow: hidden;
  color: var(--ha-ink);
  background: #fff !important;
  background-image: none !important;
  border: none !important;
  font-family: var(--ayenyx-font, 'Outfit', Verdana, sans-serif);
}

.home-audience__container {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: clamp(1.75rem, 3.5vw, 3.25rem);
  align-items: stretch;
  box-sizing: border-box;
  width: min(var(--ayenyx-container, 1120px), calc(100% - (2 * var(--ayenyx-gutter))));
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(2.75rem, 5vw, 4.25rem) 0;
}

.home-audience__header {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1.75rem;
  min-height: 100%;
  align-self: stretch;
}

.home-audience__intro {
  max-width: none;
}

.home-audience__title {
  margin: 0 0 0.85rem;
  color: var(--ha-ink) !important;
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.home-audience__lead {
  margin: 0;
  color: var(--ha-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.home-audience__mark-frame {
  position: relative;
  width: 100%;
  min-height: 220px;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.home-audience__mark {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: contain;
  object-position: center center;
  transform-origin: center center;
}

.home-audience__board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
  align-self: stretch;
}

.home-audience__item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 12rem;
  padding: 2.1rem 1.85rem;
  transition: background 0.3s var(--ha-ease);
}

.home-audience__item:nth-child(odd) {
  border-right: 1px solid var(--ha-line);
}

.home-audience__item:nth-child(-n + 2) {
  border-bottom: 1px solid var(--ha-line);
}

.home-audience__item-title {
  margin: 0 0 0.75rem;
  color: var(--ha-ink) !important;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
  transition: color 0.25s ease;
}

.home-audience__item-text {
  margin: 0;
  max-width: 34ch;
  color: var(--ha-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.home-audience__item:hover,
.home-audience__item:focus-within {
  background: #f7f7f8;
}

.home-audience__item:hover .home-audience__item-title,
.home-audience__item:focus-within .home-audience__item-title {
  color: var(--ha-accent, var(--ayenyx-secondary, #fbaa25)) !important;
}

/* Entrance animations */
.home-audience.is-armed:not(.is-live) .home-audience__title,
.home-audience.is-armed:not(.is-live) .home-audience__lead,
.home-audience.is-armed:not(.is-live) .home-audience__mark-frame,
.home-audience.is-armed:not(.is-live) .home-audience__item {
  opacity: 0;
}

.home-audience.is-armed:not(.is-live) .home-audience__title,
.home-audience.is-armed:not(.is-live) .home-audience__lead {
  transform: translateY(16px);
}

.home-audience.is-armed:not(.is-live) .home-audience__mark-frame {
  transform: translateY(22px) scale(0.94);
}

.home-audience.is-armed:not(.is-live) .home-audience__item {
  transform: translateY(18px);
}

.home-audience.is-live .home-audience__title {
  animation: haFadeUp 0.75s var(--ha-ease) both;
}

.home-audience.is-live .home-audience__lead {
  animation: haFadeUp 0.75s var(--ha-ease) 0.1s both;
}

.home-audience.is-live .home-audience__mark-frame {
  animation: haMarkIn 0.9s var(--ha-ease) 0.18s both;
}

.home-audience.is-live .home-audience__mark {
  animation: haMarkPulse 1.1s var(--ha-ease) 0.28s both;
}

.home-audience.is-live .home-audience__item {
  animation: haFadeUp 0.7s var(--ha-ease) both;
}

.home-audience.is-live .home-audience__item:nth-child(1) { animation-delay: 0.22s; }
.home-audience.is-live .home-audience__item:nth-child(2) { animation-delay: 0.3s; }
.home-audience.is-live .home-audience__item:nth-child(3) { animation-delay: 0.38s; }
.home-audience.is-live .home-audience__item:nth-child(4) { animation-delay: 0.46s; }

@keyframes haFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes haMarkIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes haMarkPulse {
  0% {
    filter: saturate(0.85);
    transform: scale(0.98);
  }
  100% {
    filter: none;
    transform: scale(1);
  }
}

@media (max-width: 991px) {
  .home-audience__container {
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding-left: var(--ayenyx-gutter, 1.25rem);
    padding-right: var(--ayenyx-gutter, 1.25rem);
  }

  .home-audience__header {
    grid-template-rows: auto auto;
  }

  .home-audience__intro {
    max-width: none;
  }

  .home-audience__mark-frame {
    width: 100%;
    max-width: 280px;
    min-height: 180px;
    height: 200px;
    margin-inline: auto;
  }

  .home-audience__item {
    min-height: 9.5rem;
    padding: 1.6rem 0;
  }
}

@media (max-width: 575px) {
  .home-audience__board {
    grid-template-columns: 1fr;
  }

  .home-audience__item,
  .home-audience__item:nth-child(odd) {
    min-height: 0;
    padding: 1.5rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--ha-line);
  }

  .home-audience__item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .home-audience__item-text {
    max-width: none;
  }

  .home-audience__item:hover,
  .home-audience__item:focus-within {
    background: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-audience.is-armed:not(.is-live) .home-audience__title,
  .home-audience.is-armed:not(.is-live) .home-audience__lead,
  .home-audience.is-armed:not(.is-live) .home-audience__mark-frame,
  .home-audience.is-armed:not(.is-live) .home-audience__item,
  .home-audience.is-live .home-audience__title,
  .home-audience.is-live .home-audience__lead,
  .home-audience.is-live .home-audience__mark-frame,
  .home-audience.is-live .home-audience__mark,
  .home-audience.is-live .home-audience__item {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    filter: none !important;
  }
}
