/* Homepage hero: layered banner slides (design image + HTML text + button), each layer animated on its own.
   Desktop/tablet keep the banners' 1942x809 composition (all sizes in cqw of the slide);
   phones stack the artwork above the text. */
.acs-hero {
  --navy: #071a36;
  --navy-btn: #032747;
  --blue: #1f8fd6;
  --green: #8dc63f;
  --interval: 7000ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  position: relative;
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  color: var(--navy);
  background: #fefefe;
}
.acs-hero *, .acs-hero *::before, .acs-hero *::after { box-sizing: border-box; }

.acs-hero .acs-hero__viewport {
  position: relative;
  display: grid;            /* all slides share one cell; the tallest sets the height */
  overflow: hidden;
  container-type: inline-size;
  background: #fefefe;
  touch-action: pan-y;
  isolation: isolate;
}
.acs-hero .acs-hero__slide {
  grid-area: 1 / 1;
  position: relative;
  aspect-ratio: 1942 / 809;
  visibility: hidden;
  pointer-events: none;
}
.acs-hero .acs-hero__slide.is-active,
.acs-hero .acs-hero__slide.is-leaving { visibility: visible; }
.acs-hero .acs-hero__slide.is-active { pointer-events: auto; z-index: 2; }
.acs-hero .acs-hero__slide.is-leaving { z-index: 1; }

/* ---------- Layer 1: artwork ---------- */
.acs-hero .acs-hero__art {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.acs-hero .acs-hero__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0;
  transform: translateX(5%) scale(1.08);
  transform-origin: 72% 55%;
}
.is-active .acs-hero__art img {
  opacity: 1;
  transform: none;
  transition: opacity 1.1s var(--ease-out), transform 1.6s var(--ease-out);
  animation: acs-drift 14s ease-in-out 1.6s infinite alternate;
}
.is-leaving .acs-hero__art img {
  opacity: 0;
  transform: translateX(-2%) scale(1.02);
  transition: opacity .7s ease, transform .9s ease;
}
@keyframes acs-drift {
  from { transform: none; }
  to   { transform: translate(-.8%, -.6%) scale(1.035); }
}

/* ---------- Layer 2: text ---------- */
.acs-hero .acs-hero__content {
  position: absolute;
  left: 3.7cqw;
  top: 2.3cqw;
  width: 40cqw;
  height: calc(100% - 2.3cqw);
  display: flex;
  flex-direction: column;
}
.acs-hero .acs-hero__logo {
  display: block;
  width: min(13.5cqw, 180px);
  height: auto;
  margin-bottom: auto;
}
.acs-hero .acs-hero__text { padding-bottom: 4.4cqw; }

.acs-hero .acs-hero__eyebrow {
  margin: 0 0 1.1cqw;
  font-size: 1.32cqw;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: var(--blue);
}
.acs-hero .acs-hero__title {
  margin: 0;
  font-family: inherit;
  font-size: var(--title, 5.1cqw);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
  color: var(--navy);
  text-transform: none;
}
.acs-hero .acs-hero__line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.acs-hero .acs-hero__line > span { display: block; }

.acs-hero .acs-hero__sub {
  margin: 1.1cqw 0 0;
  font-size: 1.85cqw;
  font-weight: 500;
  line-height: 1.3;
  color: var(--navy);
}
.acs-hero .acs-hero__sub strong { font-weight: 700; }
.acs-hero .acs-hero__meta { display: block; margin-top: .35cqw; font-weight: 600; color: var(--blue); }

.acs-hero .acs-hero__cols { display: flex; gap: 2.2cqw; margin-top: 1.4cqw; }
.acs-hero .acs-hero__col + .acs-hero__col { padding-left: 2.2cqw; border-left: 1px solid #c9d3e0; }
.acs-hero .acs-hero__col h3 {
  margin: 0 0 .5cqw;
  line-height: 1.2;
  font-family: inherit;
  font-size: 1.32cqw;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--blue);
  text-transform: uppercase;
}
.acs-hero .acs-hero__col p { margin: 0; font-size: 1.45cqw; font-weight: 500; line-height: 1.45; color: var(--navy); }

/* ---------- Layer 3: button ---------- */
.acs-hero .acs-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 1cqw;
  margin-top: 2.1cqw;
  padding: 1.25cqw 2.2cqw;
  border-radius: .85cqw;
  background: var(--navy-btn);
  color: #fff !important;
  font-size: 1.62cqw;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: 0 .5cqw 1.4cqw -.4cqw rgba(3, 39, 71, .45);
  transition: background-color .25s, box-shadow .25s, transform .25s;
}
.acs-hero .acs-hero__btn svg { width: 1.3cqw; height: 1.3cqw; flex: none; }
.acs-hero .acs-hero__btn:hover { background: #0a3a66; box-shadow: 0 .8cqw 1.8cqw -.4cqw rgba(3, 39, 71, .55); transform: translateY(-2px); }
.acs-hero .acs-hero__btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---------- Choreography (enter / leave) ---------- */
.acs-hero [data-anim] { opacity: 0; }
.is-active [data-anim] {
  opacity: 1;
  transform: none;
  transition: opacity .8s var(--ease-out) var(--d, 0s), transform 1s var(--ease-out) var(--d, 0s), letter-spacing 1.2s var(--ease-out) var(--d, 0s);
}
.is-leaving [data-anim] {
  opacity: 0;
  transition: opacity .35s ease, transform .45s ease;
}
[data-anim="fade-down"] { transform: translateY(-1.2cqw); }
[data-anim="fade-up"] { transform: translateY(1.6cqw); }
[data-anim="track"] { letter-spacing: .9em; }
.is-active [data-anim="track"] { letter-spacing: .36em; }
[data-anim="pop"] { transform: translateY(1cqw) scale(.9); }
.is-leaving [data-anim="fade-up"], .is-leaving [data-anim="pop"] { transform: translateY(-.8cqw); }

/* headline: each line rises out of its own mask */
.acs-hero .acs-hero__line > span { transform: translateY(110%); }
.is-active .acs-hero__line > span {
  transform: none;
  transition: transform 1s var(--ease-out) var(--d, 0s);
}
.is-leaving .acs-hero__line > span {
  transform: translateY(-110%);
  transition: transform .45s cubic-bezier(.55, 0, .75, .2);
}

/* button arrow keeps inviting a click once the slide has settled */
.is-active .acs-hero__btn svg { animation: acs-nudge 1.8s ease-in-out 2.4s infinite; }
@keyframes acs-nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateX(.45cqw); } }
.acs-hero .acs-hero__btn:hover svg { animation: none; transform: translateX(.45cqw); transition: transform .25s; }

/* ---------- Wave (same Elementor "waves" divider as the old hero) ---------- */
.acs-hero .acs-hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 4;
  height: clamp(12px, 3.4vw, 46px);
  overflow: hidden;
  line-height: 0;
  direction: ltr;
  transform: rotate(180deg);
  pointer-events: none;
}
.acs-hero .acs-hero__wave svg { position: relative; left: 50%; display: block; width: calc(100% + 1.3px); height: 100%; transform: translateX(-50%) rotateY(180deg); }
.acs-hero .acs-hero__wave path { fill: #fff; }
.acs-hero .acs-hero__wave--accent { z-index: 3; height: calc(clamp(12px, 3.4vw, 46px) + clamp(2px, .6vw, 8px)); }
.acs-hero .acs-hero__wave--accent path { fill: url(#acs-wave-grad); }

/* ---------- Controls ---------- */
.acs-hero .acs-hero__arrow,
.acs-hero .acs-hero__dot,
.acs-hero .acs-hero__toggle { min-width: 0; margin: 0; padding: 0; border: 0; line-height: 1; font: inherit; letter-spacing: 0; text-transform: none; cursor: pointer; }
.acs-hero .acs-hero__arrow {
  position: absolute;
  top: calc(50% - 24px);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(7, 26, 54, .22);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .25s, transform .25s, background-color .2s, color .2s;
}
.acs-hero .acs-hero__arrow svg { width: 20px; height: 20px; }
.acs-hero .acs-hero__arrow--prev { left: 18px; transform: translateX(-8px); }
.acs-hero .acs-hero__arrow--next { right: 18px; transform: translateX(8px); }
.acs-hero .acs-hero__viewport:hover .acs-hero__arrow, .acs-hero .acs-hero__arrow:focus-visible { opacity: 1; transform: none; }
.acs-hero .acs-hero__arrow:hover { background: #fff; color: var(--blue); }
.acs-hero .acs-hero__arrow:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.acs-hero .acs-hero__bar { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 6px; }
.acs-hero .acs-hero__dots { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.acs-hero .acs-hero__dot {
  position: relative;
  width: 34px;
  height: 6px;
  border-radius: 6px;
  background: #d9e2ef;
  overflow: hidden;
  transition: width .35s ease, background-color .2s;
}
.acs-hero .acs-hero__dot::before { content: ""; position: absolute; inset: -12px -4px; }
.acs-hero .acs-hero__dot:hover { background: #c3d0e3; }
.acs-hero .acs-hero__dot.is-active { width: 64px; }
.acs-hero .acs-hero__dot span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--blue), var(--green)); transform: scaleX(0); transform-origin: left; }
.acs-hero .acs-hero__dot.is-active span { animation: acs-progress var(--interval) linear forwards; }
.acs-hero.is-paused .acs-hero__dot.is-active span { animation-play-state: paused; }
@keyframes acs-progress { to { transform: scaleX(1); } }
.acs-hero .acs-hero__toggle { width: 30px; height: 30px; border-radius: 50%; background: transparent; color: var(--navy); display: grid; place-items: center; opacity: .7; }
.acs-hero .acs-hero__toggle:hover { opacity: 1; background: #eef3fa; }
.acs-hero .acs-hero__toggle svg { width: 14px; height: 14px; }
.acs-hero .acs-hero__toggle .i-play, .acs-hero.is-stopped .acs-hero__toggle .i-pause { display: none; }
.acs-hero.is-stopped .acs-hero__toggle .i-play { display: block; }
.acs-hero .acs-hero__dot:focus-visible, .acs-hero .acs-hero__toggle:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.acs-hero .acs-hero__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Phones: artwork on top, readable text below ---------- */
@media (max-width: 820px) {
  .acs-hero .acs-hero__slide { aspect-ratio: auto; display: flex; flex-direction: column; }
  .acs-hero .acs-hero__art { position: relative; inset: auto; aspect-ratio: 1.55; }
  .acs-hero .acs-hero__art img { object-position: 100% 50%; }
  .acs-hero .acs-hero__content { position: relative; left: auto; top: auto; width: auto; height: auto; padding: 4px 20px 0; }
  .acs-hero .acs-hero__logo { display: none; }
  .acs-hero .acs-hero__text { padding-bottom: 34px; }
  .acs-hero .acs-hero__eyebrow { font-size: 11px; margin-bottom: 8px; }
  .acs-hero .acs-hero__title { font-size: var(--title-m, 30px); }
  .acs-hero .acs-hero__sub { font-size: 15px; margin-top: 8px; }
  .acs-hero .acs-hero__meta { margin-top: 2px; }
  .acs-hero .acs-hero__cols { gap: 16px; margin-top: 10px; }
  .acs-hero .acs-hero__col + .acs-hero__col { padding-left: 16px; }
  .acs-hero .acs-hero__col h3 { font-size: 11px; margin-bottom: 4px; }
  .acs-hero .acs-hero__col p { font-size: 13px; }
  .acs-hero .acs-hero__btn { margin-top: 16px; padding: 12px 18px; border-radius: 10px; font-size: 14px; gap: 8px; box-shadow: 0 6px 14px -6px rgba(3, 39, 71, .5); }
  .acs-hero .acs-hero__btn svg { width: 15px; height: 15px; }
  [data-anim="fade-down"] { transform: translateY(-10px); }
  [data-anim="fade-up"] { transform: translateY(14px); }
  [data-anim="pop"] { transform: translateY(10px) scale(.92); }
  .acs-hero .acs-hero__arrow { display: none; }
  .acs-hero .acs-hero__dot { width: 22px; }
  .acs-hero .acs-hero__dot.is-active { width: 44px; }
  @keyframes acs-nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateX(4px); } }
}

@media (prefers-reduced-motion: reduce) {
  .acs-hero *, .acs-hero *::before, .acs-hero *::after { animation: none !important; }
  .acs-hero [data-anim], .acs-hero .acs-hero__line > span, .acs-hero .acs-hero__art img { transform: none !important; }
  .is-active [data-anim], .is-active .acs-hero__art img { transition: opacity .4s ease !important; }
  [data-anim="track"] { letter-spacing: .36em; }
}

/* Taller copy (3-line title + 2-line sub): tighter rhythm so the button clears the wave */
.acs-hero .acs-hero__slide--compact .acs-hero__eyebrow { margin-bottom: .75cqw; }
.acs-hero .acs-hero__slide--compact .acs-hero__sub { margin-top: .8cqw; }
.acs-hero .acs-hero__slide--compact .acs-hero__btn { margin-top: 1.5cqw; }
@media (max-width: 820px) {
  .acs-hero .acs-hero__slide--compact .acs-hero__eyebrow { margin-bottom: 8px; }
  .acs-hero .acs-hero__slide--compact .acs-hero__sub { margin-top: 8px; }
  .acs-hero .acs-hero__slide--compact .acs-hero__btn { margin-top: 16px; }
}

/* secondary description line under the sub (e.g. MUN slide) */
.acs-hero .acs-hero__desc { margin: .7cqw 0 0; font-size: 1.5cqw; font-weight: 500; line-height: 1.35; color: #3c4a60; }
@media (max-width: 820px) {
  .acs-hero .acs-hero__desc { margin-top: 6px; font-size: 14px; }
  .acs-hero .acs-hero__desc br { display: none; }
}
@media (min-width: 821px) {
  .acs-hero .acs-hero__slide--compact .acs-hero__text { padding-bottom: 3.3cqw; }
  .acs-hero .acs-hero__slide--compact .acs-hero__eyebrow { margin-bottom: .55cqw; }
  .acs-hero .acs-hero__slide--compact .acs-hero__sub { font-size: 1.62cqw; }
  .acs-hero .acs-hero__slide--compact .acs-hero__desc { font-size: 1.38cqw; margin-top: .55cqw; }
}

/* highlighted keyword lines (e.g. achievements: "Sports • Robotics") */
.acs-hero .acs-hero__tags { margin: .9cqw 0 0; font-size: 2.05cqw; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; color: var(--blue); }
@media (min-width: 821px) {
  .acs-hero .acs-hero__slide--compact .acs-hero__tags { margin-top: .7cqw; font-size: 1.95cqw; }
}
@media (max-width: 820px) {
  .acs-hero .acs-hero__tags { margin-top: 8px; font-size: 18px; }
}
