/* =========================================================
   AAC "Who We Are" section
   ========================================================= */
.aac-who {
  --wh-green: #007d45;
  --wh-deep: #063a33;
  --wh-gold: #ffcd00;
  --wh-ink: #10210f;
  --wh-ease: cubic-bezier(.22, 1, .36, 1);

  position: relative;
  overflow: hidden;
  padding: clamp(80px, 9vw, 130px) 0 clamp(60px, 7vw, 100px);
  background:
    radial-gradient(ellipse 50% 40% at 0% 30%, rgba(0, 125, 69, .07), transparent 70%),
    radial-gradient(ellipse 45% 35% at 100% 75%, rgba(255, 205, 0, .1), transparent 70%),
    #f7f7f3;
  color: var(--wh-ink);
}

/* ---------- Header ---------- */
.aac-who__head {
  max-width: 720px;
  margin: 0 auto clamp(56px, 7vw, 90px);
  text-align: center;
}

.aac-who__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(0, 125, 69, .1);
  color: var(--wh-green);
  font-family: var(--font-secondary, "Poppins", sans-serif);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.aac-who__eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--wh-green);
  animation: aacWhoPulse 2s ease-out infinite;
}

@keyframes aacWhoPulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 125, 69, .55); }
  100% { box-shadow: 0 0 0 12px rgba(0, 125, 69, 0); }
}

.aac-who__heading {
  margin: 0 0 16px;
  font-family: var(--font-secondary, "Poppins", sans-serif);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -.03em;
  line-height: 1.05;
  color: var(--wh-ink);
}

.aac-who__accent { color: var(--wh-green); position: relative; }

.aac-who__intro {
  margin: 0;
  font-family: var(--font-secondary, "Poppins", sans-serif);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  font-weight: 300;
  line-height: 1.7;
  color: #3c4a3b;
}

/* ---------- Rows ---------- */
.aac-who__row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  margin-bottom: clamp(80px, 9vw, 130px);
}
.aac-who__row:last-child { margin-bottom: 0; }

.aac-who__row--flip { grid-template-columns: 1fr 1.05fr; }
.aac-who__row--flip .aac-who__media { order: 2; }

/* ---------- Media ---------- */
.aac-who__media {
  position: relative;
  --wy: 0;            /* scroll progress −1 … 1, set by JS */
}

.aac-who__img {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 30px 60px -30px rgba(16, 33, 15, .45);
}

.aac-who__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.14) translate3d(0, calc(var(--wy) * -4%), 0);
  transition: filter .8s var(--wh-ease);
}

.aac-who__media:hover .aac-who__img img { filter: saturate(1.12) brightness(1.03); }

/* coloured offset frame behind the photo */
.aac-who__frame {
  position: absolute;
  z-index: 0;
  inset: 26px -26px -26px 26px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--wh-green), #0b5e3a 55%, var(--wh-gold));
  transform: translate3d(0, calc(var(--wy) * 18px), 0);
  transition: inset .7s var(--wh-ease);
}
.aac-who__row--flip .aac-who__frame { inset: 26px 26px -26px -26px; }

.aac-who__media:hover .aac-who__frame { inset: 34px -34px -34px 34px; }
.aac-who__row--flip .aac-who__media:hover .aac-who__frame { inset: 34px 34px -34px -34px; }

/* dotted grid decoration */
.aac-who__dots {
  position: absolute;
  z-index: 2;
  top: -28px;
  left: -28px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--wh-gold) 2px, transparent 2.5px) 0 0 / 16px 16px;
  opacity: .9;
  transform: translate3d(0, calc(var(--wy) * -26px), 0);
  pointer-events: none;
}
.aac-who__row--flip .aac-who__dots { left: auto; right: -28px; }

/* floating glass badge */
.aac-who__badge {
  position: absolute;
  z-index: 3;
  left: -22px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -18px rgba(16, 33, 15, .4);
  font-family: var(--font-secondary, "Poppins", sans-serif);
  font-weight: 600;
  font-size: .95rem;
  color: var(--wh-ink);
  animation: aacWhoFloat 5s ease-in-out infinite;
}
.aac-who__row--flip .aac-who__badge { left: auto; right: -22px; animation-delay: -2.5s; }

.aac-who__badge-icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--wh-gold), #f0a800);
  color: var(--wh-ink);
  font-size: 1.25rem;
}

@keyframes aacWhoFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}

/* ---------- Content ---------- */
.aac-who__content { position: relative; }

.aac-who__num {
  position: absolute;
  top: -.62em;
  left: -.08em;
  z-index: 0;
  font-family: var(--font-secondary, "Poppins", sans-serif);
  font-weight: 800;
  font-size: clamp(6rem, 11vw, 9rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0, 125, 69, .16);
  pointer-events: none;
  user-select: none;
}

.aac-who__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-secondary, "Poppins", sans-serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -.015em;
  color: var(--wh-ink);
}

.aac-who__line {
  display: block;
  width: 80px;
  height: 4px;
  margin: 20px 0 22px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--wh-green), var(--wh-gold));
  transform-origin: left;
}

.aac-who__text {
  position: relative;
  z-index: 1;
  margin: 0 0 30px;
  font-family: var(--font-secondary, "Poppins", sans-serif);
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.85;
  color: #3c4a3b;
}

/* lists coming from the CMS text */
.aac-who__text ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 20px 0 0;
  padding: 0;
}

.aac-who__text li {
  position: relative;
  padding: 12px 14px 12px 46px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px -16px rgba(16, 33, 15, .35);
  font-weight: 500;
  font-size: .95rem;
  color: var(--wh-ink);
  transition: transform .45s var(--wh-ease), box-shadow .45s var(--wh-ease);
}

.aac-who__text li::before {          /* round green tick */
  content: "";
  position: absolute;
  left: 14px; top: 50%;
  width: 22px; height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--wh-green);
}
.aac-who__text li::after {
  content: "";
  position: absolute;
  left: 21px; top: 50%;
  width: 6px; height: 11px;
  margin-top: -7px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.aac-who__text li:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -18px rgba(0, 125, 69, .55);
}

/* ---------- Button ---------- */
.aac-who__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--wh-green);
  color: #fff !important;
  font-family: var(--font-secondary, "Poppins", sans-serif);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 14px 30px -16px rgba(0, 125, 69, .8);
  transition: transform .45s var(--wh-ease), background-color .45s, color .45s, box-shadow .45s, gap .45s var(--wh-ease);
}
.aac-who__btn:hover {
  transform: translateY(-3px);
  background: var(--wh-gold);
  color: var(--wh-ink) !important;
  box-shadow: 0 18px 36px -16px rgba(255, 205, 0, .85);
  gap: 16px;
}

/* ---------- Scroll-in choreography ---------- */
.aac-who.is-ready .aac-who-reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity .9s var(--wh-ease), transform .9s var(--wh-ease), background-color .45s, color .45s, box-shadow .45s, gap .45s var(--wh-ease);
}
.aac-who.is-ready .aac-who__line { transform: scaleX(0); opacity: 1; }

.aac-who.is-ready [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.aac-who.is-ready [data-split] .w-in { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform .9s var(--wh-ease); }

/* header */
.aac-who.is-ready .aac-who__head.is-in .aac-who__eyebrow   { opacity: 1; transform: none; }
.aac-who.is-ready .aac-who__head.is-in .w-in               { transform: none; transition-delay: calc(.1s + var(--i) * 70ms); }
.aac-who.is-ready .aac-who__head.is-in .aac-who__intro     { opacity: 1; transform: none; transition-delay: .45s; }

/* rows: photo wipes open from its side, frame + badge follow */
.aac-who.is-ready .aac-who__img { clip-path: inset(0 100% 0 0 round 28px); transition: clip-path 1.3s var(--wh-ease); }
.aac-who.is-ready .aac-who__row--flip .aac-who__img { clip-path: inset(0 0 0 100% round 28px); }
.aac-who.is-ready .aac-who__frame { opacity: 0; scale: .85; transition: opacity 1s var(--wh-ease), scale 1.2s var(--wh-ease), inset .7s var(--wh-ease); }
.aac-who.is-ready .aac-who__dots { opacity: 0; transition: opacity 1s var(--wh-ease); }
.aac-who.is-ready .aac-who__badge { opacity: 0; scale: .6; transition: opacity .7s var(--wh-ease), scale .8s cubic-bezier(.34, 1.56, .64, 1); }
.aac-who.is-ready .aac-who__num { opacity: 0; translate: -30px 0; transition: opacity 1.2s var(--wh-ease), translate 1.2s var(--wh-ease); }
.aac-who.is-ready .aac-who__text li { opacity: 0; translate: 0 16px; transition: opacity .6s var(--wh-ease), translate .6s var(--wh-ease), transform .45s var(--wh-ease), box-shadow .45s var(--wh-ease); }

.aac-who.is-ready .aac-who__row.is-in .aac-who__img   { clip-path: inset(0 0 0 0 round 28px); }
.aac-who.is-ready .aac-who__row.is-in .aac-who__frame { opacity: 1; scale: 1; transition-delay: .35s, .35s, 0s; }
.aac-who.is-ready .aac-who__row.is-in .aac-who__dots  { opacity: .9; transition-delay: .6s; }
.aac-who.is-ready .aac-who__row.is-in .aac-who__badge { opacity: 1; scale: 1; transition-delay: .9s; }
.aac-who.is-ready .aac-who__row.is-in .aac-who__num   { opacity: 1; translate: 0 0; transition-delay: .2s; }
.aac-who.is-ready .aac-who__row.is-in .w-in           { transform: none; transition-delay: calc(.3s + var(--i) * 40ms); }
.aac-who.is-ready .aac-who__row.is-in .aac-who__line  { transform: scaleX(1); transition: transform 1s var(--wh-ease) calc(.5s + var(--words, 8) * 40ms); }
.aac-who.is-ready .aac-who__row.is-in .aac-who__text  { opacity: 1; transform: none; transition-delay: calc(.6s + var(--words, 8) * 40ms); }
.aac-who.is-ready .aac-who__row.is-in .aac-who__text li { opacity: 1; translate: 0 0; transition-delay: calc(.8s + var(--words, 8) * 40ms + var(--li, 0) * 90ms), calc(.8s + var(--words, 8) * 40ms + var(--li, 0) * 90ms), 0s, 0s; }
.aac-who.is-ready .aac-who__row.is-in .aac-who__btn   { opacity: 1; transform: none; transition-delay: calc(.8s + var(--words, 8) * 40ms + var(--lis, 0) * 90ms), calc(.8s + var(--words, 8) * 40ms + var(--lis, 0) * 90ms), 0s, 0s, 0s, 0s; }
.aac-who.is-ready .aac-who__row.is-settled .aac-who__btn,
.aac-who.is-ready .aac-who__row.is-settled .aac-who__text li { transition-delay: 0s; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .aac-who__row,
  .aac-who__row--flip { grid-template-columns: 1fr; gap: 56px; }
  .aac-who__row--flip .aac-who__media { order: 0; }
  .aac-who__media { max-width: 640px; width: calc(100% - 26px); }
  .aac-who__badge, .aac-who__row--flip .aac-who__badge { left: 12px; right: auto; bottom: 18px; }
}

@media (max-width: 575.98px) {
  .aac-who__text ul { grid-template-columns: 1fr; }
  .aac-who__dots { width: 80px; height: 80px; top: -18px; left: -14px; }
  .aac-who__row--flip .aac-who__dots { right: -14px; }
  .aac-who__frame { inset: 16px -16px -16px 16px; }
  .aac-who__row--flip .aac-who__frame { inset: 16px -16px -16px 16px; }
  .aac-who__badge { font-size: .82rem; padding: 9px 14px 9px 9px; }
  .aac-who__badge-icon { width: 34px; height: 34px; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .aac-who *, .aac-who *::before, .aac-who *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .aac-who__img img, .aac-who__frame, .aac-who__dots { transform: none !important; }
}
