/* Enetki Academy — light theme on the site's brand paper background.
   Light-weight headings, tight tracking and 12-20px radii follow the rest of the site. */

html body.academy-page {
  --academy-width: 1180px;
  --academy-inset: 128px;
  --ac-paper: var(--brand-paper, #f5f5f7);
  --ac-white: #fff;
  --ac-ink: #1d1d1f;
  --ac-muted: rgba(29, 29, 31, .64);
  --ac-line: rgba(29, 29, 31, .12);
  --ac-ease: cubic-bezier(.22, 1, .36, 1);
}

@media (max-width: 980px) { html body.academy-page { --academy-inset: 48px; } }
@media (max-width: 900px) { html body.academy-page { --academy-inset: 40px; } }
@media (max-width: 600px) { html body.academy-page { --academy-inset: 28px; } }

html body.academy-page .academy-container {
  width: min(var(--academy-width), calc(100% - var(--academy-inset)));
  max-width: var(--academy-width);
  margin-inline: auto;
  box-sizing: border-box;
}

/* The site's global section fade (common.js) would stack a second 700-900ms reveal on top of
   this page's own effects and make everything appear late, so it is switched off here. */
html body.academy-page main > section.enetki-scroll-reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Hero animations wait for the site intro (preloader) to finish. */
html.site-preloading .ac-hero *,
html.site-preloading .ac-hero {
  animation-play-state: paused !important;
}

/* ---------- Shared ---------- */
.ac-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 32px;
  margin-bottom: clamp(22px, 2.4vw, 36px);
}

html body #main-content .academy-training .ac-section-title {
  margin: 0;
  padding: 0;
  max-width: 14em;
  font-family: inherit;
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -.048em;
  color: var(--ac-ink);
}

/* ---------- Hero ---------- */
.ac-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(66svh, 560px);
  overflow: hidden;
  isolation: isolate;
  background: var(--ac-paper);
  color: var(--ac-ink);
}

.ac-hero-grid {
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(29, 29, 31, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 29, 31, .06) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 18% 82%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 75% at 18% 82%, #000 0%, transparent 72%);
}

/* The Akademi logo, sunk into the background as a soft watermark */
.ac-hero-logo {
  position: absolute;
  z-index: -2;
  top: 50%;
  right: calc((100% - min(var(--academy-width), 100% - var(--academy-inset))) / 2 - 36px);
  width: min(52vw, 660px);
  transform: translate3d(0, calc(-46% + var(--ac-py, 0px)), 0);
  pointer-events: none;
  opacity: .12;
  mix-blend-mode: multiply;
  will-change: transform;
}

.ac-hero-logo img {
  display: block;
  width: 100%;
  height: auto;
  will-change: transform;
  animation: ac-logo-in 1.1s var(--ac-ease) both;
}

.ac-hero-inner {
  padding-top: clamp(110px, 16vh, 150px);
}

html body.academy-page .ac-hero h1 {
  max-width: none;
  margin: 0 0 clamp(20px, 2.2vw, 30px);
  font-family: inherit;
  font-size: clamp(40px, 5.8vw, 84px);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -.055em;
  color: var(--ac-ink);
}

.ac-word {
  display: inline-block;
  vertical-align: top;
  overflow: hidden;
  padding: 0 .04em .14em 0;
  margin-bottom: -.14em;
}

.ac-word > span {
  display: inline-block;
  animation: ac-rise .7s var(--ac-ease) calc(.04s + var(--w, 0) * .07s) both;
}

.academy-description {
  max-width: 30rem;
  margin: 0;
  color: var(--ac-muted);
  font-size: clamp(.95rem, 1.1vw, 1.08rem);
  line-height: 1.65;
  animation: ac-fade-up .7s var(--ac-ease) .2s both;
}

.ac-hero-foot {
  display: flex;
  align-items: center;
  padding-block: clamp(24px, 3.4vw, 44px);
}

.ac-scroll {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(29, 29, 31, .3);
  border-radius: 50%;
  color: var(--ac-ink);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
  animation: ac-fade-up .6s var(--ac-ease) .35s both;
}

.ac-scroll::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(29, 29, 31, .4);
  animation: ac-pulse 2.8s ease-out infinite;
}

.ac-scroll svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: ac-bob 2.2s ease-in-out infinite;
}

.ac-scroll:hover,
.ac-scroll:focus-visible {
  background: #00aba9;
  color: #fff;
  border-color: #00aba9;
}

@media (max-width: 900px) {
  .ac-hero-logo {
    top: 74px;
    right: -14vw;
    width: min(118vw, 520px);
    transform: translate3d(0, var(--ac-py, 0px), 0);
    opacity: .09;
  }
}

/* ---------- Scroll reveal ---------- */
[data-ac-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease calc(var(--d, 0) * 60ms), transform .6s var(--ac-ease) calc(var(--d, 0) * 60ms), border-color .4s ease, box-shadow .4s ease;
}

[data-ac-reveal].is-in { opacity: 1; transform: none; }

@media (scripting: none) {
  [data-ac-reveal] { opacity: 1; transform: none; }
}

/* ---------- Section rhythm: paper / white ---------- */
.ac-about,
.ac-vm {
  padding: clamp(44px, 5.2vw, 80px) 0;
  color: var(--ac-ink);
  scroll-margin-top: 80px;
}

.ac-about { background: var(--ac-paper); padding-top: clamp(28px, 3.6vw, 56px); }
.ac-vm { background: var(--ac-white); border-top: 1px solid var(--ac-line); }

/* ---------- Manifesto ---------- */
.ac-about { position: relative; overflow: hidden; }

/* soft brand-turquoise glow behind the heading */
.ac-about::before {
  content: "";
  position: absolute;
  top: -34%;
  right: -10%;
  z-index: 0;
  width: clamp(340px, 48vw, 680px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 171, 169, .16), transparent 66%);
  pointer-events: none;
}

.ac-about > .academy-container { position: relative; z-index: 1; }

.ac-about-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(28px, 3.4vw, 52px);
}

html body #main-content .ac-about .ac-statement {
  max-width: 15em;
  margin: 0;
  font-family: inherit;
  font-size: clamp(28px, 3.7vw, 58px);
  font-weight: 300;
  line-height: 1.07;
  letter-spacing: -.05em;
  color: var(--ac-ink);
}

/* marker emphasis that draws itself in */
.ac-statement mark {
  padding: 0 .05em;
  color: inherit;
  background: linear-gradient(rgba(0, 171, 169, .3), rgba(0, 171, 169, .3)) 0 90% / 0% 40% no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size .9s var(--ac-ease) .35s;
}

.ac-about-head.is-in .ac-statement mark { background-size: 100% 40%; }

.ac-lede {
  max-width: 32rem;
  margin: 0;
  padding-left: 20px;
  border-left: 2px solid #00aba9;
  color: var(--ac-muted);
  font-size: clamp(.95rem, 1.1vw, 1.06rem);
  line-height: 1.7;
}

.ac-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ac-value {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(18px, 1.8vw, 26px);
  overflow: hidden;
  border: 1px solid var(--ac-line);
  border-radius: 18px;
  background: var(--ac-white);
}

.ac-value::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #00aba9;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ac-ease);
}

.ac-value-no {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 12px;
  letter-spacing: .2em;
  color: rgba(29, 29, 31, .3);
  font-variant-numeric: tabular-nums;
}

.ac-value-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: rgba(0, 171, 169, .12);
  color: #009694;
  transition: background-color .35s ease, color .35s ease, transform .5s var(--ac-ease);
}

.ac-value-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html body #main-content .ac-value h3 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.025em;
  color: var(--ac-ink);
}

.ac-value p {
  margin: 0;
  color: var(--ac-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

@media (hover: hover) and (pointer: fine) {
  .ac-value[data-ac-reveal].is-in:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 171, 169, .5);
    box-shadow: 0 24px 40px -28px rgba(0, 140, 138, .55);
  }
  .ac-value:hover::after { transform: scaleX(1); }
  .ac-value:hover .ac-value-icon { background: #00aba9; color: #fff; transform: scale(1.06); }
}

/* ---------- Mission & vision ---------- */
.ac-vm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
}

.ac-vm-card {
  --tone: #00aba9;
  --rgb: 0, 171, 169;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(32px, 4vw, 64px);
  min-height: clamp(290px, 27vw, 380px);
  padding: clamp(24px, 2.8vw, 44px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--ac-line);
  border-radius: 22px;
  background: var(--ac-paper);
}

.ac-vm-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(580px circle at 100% 0%, rgba(var(--rgb), .2), transparent 62%);
}

.ac-vm-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--tone);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s var(--ac-ease) .12s;
}

.ac-vm-card.is-in::after { transform: scaleX(1); }

html body #main-content .ac-vm-word {
  --ac-vm-stroke-width: 1.5px;
  --ac-vm-shine-width: 1.65px;
  position: relative;
  width: fit-content;
  margin: 0;
  max-width: 100%;
  font-family: inherit;
  font-size: clamp(42px, 4.8vw, 72px);
  font-weight: 200;
  line-height: .9;
  letter-spacing: -.06em;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: var(--ac-vm-stroke-width) var(--tone);
}

.ac-vm-stroke-shine {
  display: none;
  position: absolute;
  /* Leave room for descenders without moving the duplicate stroke. */
  inset: -.2em -.12em -.26em;
  font: inherit;
  letter-spacing: inherit;
  pointer-events: none;
  filter: drop-shadow(0 0 2px #11d6ce) drop-shadow(0 0 5px rgba(var(--rgb), .7));
}

@media (prefers-reduced-motion: no-preference) {
  @supports (mask-image: linear-gradient(#000, transparent)) or (-webkit-mask-image: linear-gradient(#000, transparent)) {
    .ac-vm-stroke-shine { display: block; }

    .ac-vm-stroke-shine::before {
      content: attr(data-label);
      display: block;
      padding: .2em .12em .26em;
      color: transparent;
      -webkit-text-fill-color: transparent;
      -webkit-text-stroke: var(--ac-vm-shine-width) #4affed;
      white-space: pre-line;
      --beam: linear-gradient(135deg, transparent 38%, #0005 45%, #000 49% 51%, #0005 55%, transparent 62%);
      -webkit-mask: var(--beam) 0% 0% / 300% 300% no-repeat;
      mask: var(--beam) 0% 0% / 300% 300% no-repeat;
      animation: ac-vm-stroke-sweep 10s linear infinite paused;
    }

    .ac-vm-word.is-stroke-visible .ac-vm-stroke-shine::before { animation-play-state: running; }
    .ac-vm-card + .ac-vm-card .ac-vm-stroke-shine::before { animation-delay: .8s; }
  }
}

@keyframes ac-vm-stroke-sweep {
  0% { -webkit-mask-position: 0% 0%; mask-position: 0% 0%; }
  85%, 100% { -webkit-mask-position: 100% 100%; mask-position: 100% 100%; }
}

.ac-vm-text {
  margin: 0;
  max-width: 21em;
  color: var(--ac-ink);
  font-size: clamp(19px, 1.9vw, 28px);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -.045em;
}

/* Marker-style emphasis that draws itself in when the card appears */
.ac-vm-text mark {
  padding: 0 .04em;
  color: inherit;
  background: linear-gradient(rgba(var(--rgb), .24), rgba(var(--rgb), .24)) 0 90% / 0% 42% no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size .9s var(--ac-ease) .3s;
}

.ac-vm-text mark:nth-of-type(2) { transition-delay: .55s; }
.ac-vm-text mark:nth-of-type(3) { transition-delay: .8s; }
.ac-vm-card.is-in .ac-vm-text mark { background-size: 100% 42%; }
@media (max-width: 1000px) {
  .ac-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .ac-about-head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ac-vm-grid { grid-template-columns: minmax(0, 1fr); }
  .ac-vm-card { min-height: 0; gap: 36px; }
  html body #main-content .ac-vm-word {
    --ac-vm-stroke-width: .9px;
    --ac-vm-shine-width: var(--ac-vm-stroke-width);
    font-weight: 500;
    letter-spacing: .025em;
  }
  .ac-vm-stroke-shine { filter: drop-shadow(0 0 1px #11d6ce) drop-shadow(0 0 3px rgba(var(--rgb), .5)); }
}

@media (max-width: 560px) {
  .ac-values { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Trainings (news-style cards) ---------- */
html body #main-content .academy-training {
  position: relative;
  padding: clamp(44px, 5.2vw, 80px) 0 clamp(48px, 5.6vw, 88px);
  background: var(--ac-white);
  color: var(--ac-ink);
  scroll-margin-top: 80px;
}

.academy-training-status {
  margin-block: 0;
  padding: 22px 26px;
  line-height: 1.55;
  color: var(--ac-muted);
  border: 1px dashed rgba(29, 29, 31, .24);
  border-radius: 20px;
  background: var(--ac-paper);
}

.academy-training-status a {
  display: inline-block;
  color: var(--ac-ink);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.ac-news {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
}

.ac-news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--ac-line);
  border-radius: 18px;
  background: var(--ac-paper);
  color: var(--ac-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ac-news-card:focus-visible { outline: 2px solid var(--ac-ink); outline-offset: 3px; }

.ac-news-media {
  position: relative;
  display: block;
  flex: 0 0 auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(110deg, #e3e4e8 30%, #eeeff2 50%, #e3e4e8 70%) 0 0 / 220% 100%;
  animation: ac-shimmer 1.5s linear infinite;
}

.ac-news-card.is-loaded .ac-news-media { animation: none; }

.ac-news-media img,
.ac-news-media video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease, transform .8s var(--ac-ease);
}

.ac-news-card.is-loaded .ac-news-media img,
.ac-news-card.is-loaded .ac-news-media video { opacity: 1; }


.ac-news-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  padding: clamp(16px, 1.5vw, 22px);
}

.ac-news-title,
.ac-news-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.ac-news-title {
  -webkit-line-clamp: 3;
  font-size: clamp(17px, 1.35vw, 20px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.ac-news-desc {
  -webkit-line-clamp: 3;
  color: var(--ac-muted);
  font-size: 14px;
  line-height: 1.55;
}

.ac-news-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 14px;
  font-weight: 500;
}

.ac-news-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(29, 29, 31, .3);
  border-radius: 50%;
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, transform .5s var(--ac-ease);
}

.ac-news-arrow svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

@media (hover: hover) and (pointer: fine) {
  .ac-news-card[data-ac-reveal].is-in:hover {
    transform: translateY(-5px);
    border-color: rgba(29, 29, 31, .24);
    box-shadow: 0 26px 46px -28px rgba(29, 29, 31, .45);
  }
  .ac-news-card:hover .ac-news-media img,
  .ac-news-card:hover .ac-news-media video { transform: scale(1.05); }
  .ac-news-card:hover .ac-news-arrow { background: var(--ac-ink); color: #fff; border-color: var(--ac-ink); transform: rotate(-35deg); }
}

@media (max-width: 1000px) {
  .ac-news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .ac-news { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Closing call to action ---------- */
.ac-cta {
  padding: clamp(28px, 3.4vw, 48px) 0 clamp(48px, 5.6vw, 88px);
  background: var(--ac-paper);
  border-top: 1px solid var(--ac-line);
  color: var(--ac-ink);
}

.ac-cta-panel {
  position: relative;
  display: grid;
  justify-items: start;
  gap: clamp(28px, 3.4vw, 52px);
  min-height: clamp(260px, 24vw, 340px);
  align-content: space-between;
  padding: clamp(26px, 3.8vw, 56px);
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px;
  background: linear-gradient(135deg, #00aba9 0%, #008f8d 52%, #007573 100%);
  color: #fff;
  box-shadow: 0 44px 90px -46px rgba(0, 115, 113, .75);
}

/* Faint grid + concentric rings: same visual language as the hero */
.ac-cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .13) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 100% 100%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 90% at 100% 100%, #000 0%, transparent 70%);
}

.ac-cta-panel::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -46%;
  z-index: -1;
  width: clamp(340px, 52vw, 780px);
  aspect-ratio: 1;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  box-shadow:
    0 0 0 clamp(28px, 4.4vw, 64px) rgba(255, 255, 255, .06),
    0 0 0 clamp(56px, 8.8vw, 128px) rgba(255, 255, 255, .04);
}

html body #main-content .ac-cta .ac-cta-title {
  max-width: 12em;
  margin: 0;
  font-family: inherit;
  font-size: clamp(30px, 4.4vw, 62px);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -.058em;
  color: #fff;
}

/* Marker emphasis that draws itself in, like in mission and vision */
.ac-cta-title mark {
  padding: 0 .04em;
  color: inherit;
  background: linear-gradient(rgba(0, 38, 52, .34), rgba(0, 38, 52, .34)) 0 92% / 0% 36% no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size .9s var(--ac-ease) .3s;
}

.ac-cta-panel.is-in .ac-cta-title mark { background-size: 100% 36%; }

.ac-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 10px 10px 10px clamp(24px, 2.4vw, 34px);
  border-radius: 999px;
  background: #fff;
  color: var(--ac-ink);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.01em;
  text-decoration: none;
  box-shadow: 0 22px 40px -22px rgba(0, 50, 64, .7);
  transition: transform .5s var(--ac-ease), box-shadow .5s ease, background-color .4s ease, color .4s ease;
}

.ac-cta-link svg {
  box-sizing: content-box;
  width: 18px;
  height: 18px;
  padding: 12px;
  border-radius: 50%;
  background: #00aba9;
  color: #fff;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .5s var(--ac-ease), background-color .4s ease;
}

.ac-cta-link:hover,
.ac-cta-link:focus-visible {
  transform: translateY(-3px);
  background: var(--ac-ink);
  color: #fff;
  box-shadow: 0 28px 48px -22px rgba(0, 50, 64, .8);
}

.ac-cta-link:hover svg,
.ac-cta-link:focus-visible svg { transform: translateX(4px); }
.ac-cta-link:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

@media (max-width: 640px) {
  .ac-cta-panel { border-radius: 20px; min-height: 0; gap: 28px; }
}

/* ---------- Training popup ---------- */
html.ac-modal-open { overflow: hidden; }

.ac-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  color: var(--ac-ink, #1d1d1f);
}

.ac-modal:not([open]) { display: none; }

.ac-modal[open] {
  display: grid;
  place-items: center;
  padding: clamp(10px, 3vw, 40px);
  animation: ac-fade-in .3s ease;
}

.ac-modal::backdrop {
  background: rgba(29, 29, 31, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.ac-modal-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  width: min(1360px, 100%);
  height: min(90vh, 820px);
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .5);
  animation: ac-modal-in .55s cubic-bezier(.22, 1, .36, 1) both;
}

.ac-modal-close {
  position: absolute;
  top: clamp(12px, 1.6vw, 20px);
  right: clamp(12px, 1.6vw, 20px);
  z-index: 6;
}

.ac-modal-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border: 1px solid rgba(29, 29, 31, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #1d1d1f;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}

.ac-modal-btn[hidden] { display: none; }
.ac-modal-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

@media (hover: hover) {
  .ac-modal-btn:hover { background: #1d1d1f; color: #fff; border-color: #1d1d1f; }
}

.ac-modal-btn:focus-visible { outline: 2px solid #1d1d1f; outline-offset: 3px; }

.ac-modal-media {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  background: var(--ac-paper, #f5f5f7);
}

.ac-modal-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  min-height: 0;
  overflow: hidden;
  /* side gutters hold the arrows so they never cover the photo */
  padding: clamp(14px, 2vw, 24px) 58px;
  touch-action: pan-y;
}

.ac-modal-slide {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

/* plain cross-fade: the next photo is decoded before it is inserted, so nothing pops or stutters */
.ac-modal-slide.is-in { animation: ac-fade-in .38s ease both; }
.ac-modal-slide.is-out { animation: ac-fade-out .3s ease both; pointer-events: none; }

.ac-modal-slide img,
.ac-modal-slide video {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 14px;
  -webkit-user-drag: none;
}

.ac-modal-slide { container-type: size; }

/* ---- Video player (own controls: the site's shared CSS hides every native video control) ---- */
.ac-player {
  --ar: 1.7778;
  position: relative;
  width: min(100cqw, calc(100cqh * var(--ar)));
  aspect-ratio: var(--ar);
  overflow: hidden;
  border-radius: 14px;
  background: #000;
  cursor: pointer;
  outline: none;
  user-select: none;
}

.ac-player:focus-visible { box-shadow: 0 0 0 3px #00aba9; }

.ac-player video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: 0;
  object-fit: contain;
  background: #000;
}

.ac-player:fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; border-radius: 0; }

.ac-player-big {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #1d1d1f;
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .55);
  cursor: pointer;
  transition: transform .4s var(--ac-ease), background-color .3s ease, color .3s ease, opacity .3s ease;
}

.ac-player-big svg { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; stroke: none; }
.ac-player.is-playing .ac-player-big { opacity: 0; transform: scale(.8); pointer-events: none; }

@media (hover: hover) {
  .ac-player-big:hover { background: #00aba9; color: #fff; transform: scale(1.06); }
}

.ac-player-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 28px 12px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .62));
  color: #fff;
  cursor: default;
  transition: opacity .3s ease, transform .3s ease;
}

.ac-player.is-idle { cursor: none; }
.ac-player.is-idle .ac-player-bar { opacity: 0; transform: translateY(6px); pointer-events: none; }

.ac-pl-btn {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color .25s ease, transform .3s ease;
}

.ac-pl-btn[hidden] { display: none; }
.ac-pl-btn:active { transform: scale(.88); }
.ac-pl-btn:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }

@media (hover: hover) {
  .ac-pl-btn:hover { background: rgba(255, 255, 255, .22); }
}

.ac-pl-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ac-pl-btn svg.is-fill { fill: currentColor; stroke: none; }
.ac-pl-btn svg .is-solid { fill: currentColor; stroke: none; }

.ac-pl-play .ic-pause { display: none; }
.ac-player.is-playing .ac-pl-play .ic-play { display: none; }
.ac-player.is-playing .ac-pl-play .ic-pause { display: block; }
.ac-pl-mute .ic-mute { display: none; }
.ac-player.is-muted .ac-pl-mute .ic-vol { display: none; }
.ac-player.is-muted .ac-pl-mute .ic-mute { display: block; }

.ac-pl-time {
  flex: 0 0 auto;
  font-size: 12px;
  letter-spacing: .03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  opacity: .92;
}

.ac-pl-track {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 40px;
  height: 22px;
  cursor: pointer;
  touch-action: none;
  outline: none;
}

.ac-pl-track::before {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .3);
  transition: height .2s ease;
}

.ac-pl-fill {
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #00aba9;
  transform-origin: left;
  transform: scaleX(0);
  transition: height .2s ease;
}

.ac-pl-knob {
  position: absolute;
  left: 0;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
  transform: scale(0);
  transition: transform .2s ease;
}

.ac-pl-track:hover::before,
.ac-pl-track:hover .ac-pl-fill,
.ac-pl-track:focus-visible::before,
.ac-pl-track:focus-visible .ac-pl-fill { height: 6px; }
.ac-pl-track:hover .ac-pl-knob,
.ac-pl-track:focus-visible .ac-pl-knob { transform: scale(1); }

@media (max-width: 560px) {
  .ac-player-bar { gap: 4px; padding: 24px 8px 8px; }
  .ac-pl-time { font-size: 11px; }
  .ac-player-big { width: 52px; height: 52px; }
}

/* spinner, only if loading takes longer than a moment */
.ac-modal-stage.is-busy::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 26px;
  height: 26px;
  margin: auto;
  border: 2px solid rgba(29, 29, 31, .14);
  border-top-color: #1d1d1f;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: ac-spin .8s linear infinite, ac-fade-in .2s ease .25s forwards;
}

@keyframes ac-spin { to { transform: rotate(360deg); } }

/* Arrows: small, vertically centred in the side gutters */
.ac-modal-switch {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
}

.ac-modal-switch[hidden] { display: none; }

.ac-modal-switch .ac-modal-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border: 1px solid rgba(29, 29, 31, .14);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 20px -10px rgba(29, 29, 31, .35);
  color: #1d1d1f;
  pointer-events: auto;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease;
}

.ac-modal-switch .ac-modal-btn svg { width: 15px; height: 15px; stroke-width: 1.8; transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
.ac-modal-switch .ac-modal-btn:active { transform: scale(.9); }

@media (hover: hover) {
  .ac-modal-switch .ac-modal-btn:hover { background: #1d1d1f; color: #fff; border-color: #1d1d1f; }
  .ac-modal-switch .is-prev:hover svg { transform: translateX(-2px); }
  .ac-modal-switch .is-next:hover svg { transform: translateX(2px); }
}

.ac-modal-switch .ac-modal-btn:focus-visible { outline: 2px solid #1d1d1f; outline-offset: 2px; }

/* Thumbnail row under the media */
.ac-modal-bar {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 clamp(14px, 2vw, 24px) clamp(12px, 1.6vw, 20px);
}

.ac-modal-bar[hidden] { display: none; }

.ac-modal-strip {
  display: flex;
  flex: 1 1 auto;
  gap: 8px;
  min-width: 0;
  padding: 6px 4px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.ac-modal-strip::-webkit-scrollbar { display: none; }
.ac-modal-strip[hidden] { display: none; }

.ac-modal-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 72px;
  height: 48px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #dcdde2;
  cursor: pointer;
  opacity: .5;
  scroll-snap-align: center;
  transition: opacity .45s ease, transform .5s cubic-bezier(.22, 1, .36, 1), box-shadow .45s ease;
}

.ac-modal-thumb img,
.ac-modal-thumb video { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

.ac-modal-thumb .ac-thumb-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .25);
}

.ac-modal-thumb .ac-thumb-play svg { width: 14px; height: 14px; fill: #fff; }
/* Active thumbnail: crisp ring that sits outside the image, so nothing gets cropped */
.ac-modal-thumb[aria-current="true"] {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #1d1d1f;
}

@media (hover: hover) {
  .ac-modal-thumb:not([aria-current="true"]):hover { opacity: .85; transform: translateY(-1px); }
}

.ac-modal-thumb:focus-visible { outline: 2px solid #1d1d1f; outline-offset: 2px; }

.ac-modal-info {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.6vw, 22px);
  min-width: 0;
  min-height: 0;
  padding: clamp(24px, 2.6vw, 40px);
  padding-top: clamp(60px, 4.4vw, 68px);
  overflow-y: auto;
}

html body .ac-modal-info h3 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.045em;
  color: #1d1d1f;
  overflow-wrap: anywhere;
}

.ac-modal-desc {
  margin: 0;
  color: rgba(29, 29, 31, .7);
  line-height: 1.75;
  white-space: pre-line;
}


@media (max-width: 860px) {
  .ac-modal-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 54%) minmax(0, 1fr);
    height: min(92vh, 900px);
    border-radius: 22px;
  }
  .ac-modal-info { padding: 22px 22px 26px; }
  .ac-modal-thumb { width: 56px; height: 40px; }
  .ac-modal-stage { padding: 10px; }
  .ac-modal-switch { padding: 0 8px; }
  .ac-modal-switch .ac-modal-btn { width: 32px; height: 32px; min-width: 32px; }
}

@keyframes ac-modal-in { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Keyframes ---------- */
@keyframes ac-rise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes ac-fade-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes ac-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ac-grid-drift { to { background-position: 88px 88px, 88px 88px; } }
@keyframes ac-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes ac-bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@keyframes ac-shimmer { to { background-position: -220% 0; } }
@keyframes ac-progress { to { transform: scaleX(1); } }
@keyframes ac-fade-out { to { opacity: 0; } }
@keyframes ac-logo-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .ac-hero *, .ac-hero, .ac-news-media, .ac-modal[open], .ac-modal-card, .ac-modal-slide { animation: none !important; }
  [data-ac-reveal] { opacity: 1; transform: none; transition: none; }
  .ac-statement mark { background-size: 100% 40%; transition: none; }
  .ac-value::after { transform: scaleX(1); transition: none; }
  .ac-hero-logo img { animation: none; }
  .ac-vm-card::after { transform: scaleX(1); transition: none; }
  .ac-vm-text mark { background-size: 100% 42%; transition: none; }
  .ac-cta-title mark { background-size: 100% 36%; transition: none; }
  .ac-cta-panel::before { animation: none; }
  .ac-news-media img, .ac-news-media video, .ac-news-arrow { transition: none !important; }
  .ac-news-card:hover .ac-news-media img, .ac-news-card:hover .ac-news-media video { transform: none; }
}


/* ---------- Single paper background + liquid glass ---------- */
html body.academy-page { background: var(--ac-paper); }

/* soft colour fields fixed behind the page, so the glass has something to bend */
html body.academy-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(46vw circle at 8% 12%, rgba(0, 171, 169, .20), transparent 66%),
    radial-gradient(40vw circle at 94% 38%, rgba(0, 171, 169, .14), transparent 66%),
    radial-gradient(48vw circle at 30% 96%, rgba(120, 140, 255, .12), transparent 66%);
}

html body.academy-page .ac-hero,
html body.academy-page .ac-about,
html body.academy-page .ac-vm,
html body #main-content .academy-training,
html body.academy-page .ac-cta { background: transparent; border-top: 0; }

.ac-value,
.ac-vm-card,
.ac-news-card,
.academy-training-status {
  background: linear-gradient(145deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .28));
  border: 1px solid rgba(255, 255, 255, .75);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(255, 255, 255, .35),
    inset 0 0 22px rgba(255, 255, 255, .35),
    0 18px 40px -26px rgba(29, 29, 31, .35);
}

.academy-training-status { border-style: solid; }

/* glass edge catching light */
.ac-value::before,
.ac-news-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, .55) 0%, transparent 38%);
  opacity: .7;
}

.ac-news-card > * { position: relative; z-index: 1; }

@media (hover: hover) and (pointer: fine) {
  .ac-news-card:hover {
    border-color: rgba(255, 255, 255, .95);
    box-shadow:
      inset 0 1px 0 #fff,
      inset 0 0 26px rgba(255, 255, 255, .5),
      0 28px 48px -26px rgba(0, 140, 138, .5);
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ac-value, .ac-vm-card, .ac-news-card, .academy-training-status { background: rgba(255, 255, 255, .85); }
}
.ac-value > :not(.ac-value-no) { position: relative; z-index: 1; }


/* ---------- Hero: bigger, with aurora + orbit artwork ---------- */
@media (min-width: 901px) {
  html body.academy-page .ac-hero { min-height: min(80svh, 700px); }
}

html body.academy-page .ac-hero h1 { font-size: clamp(50px, 8vw, 124px); line-height: .95; }

html body.academy-page .ac-hero .ac-word[style*="--w:1"] > span {
  background: linear-gradient(100deg, #00aba9 0%, #19d3cf 55%, #00aba9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

html body.academy-page .academy-description { max-width: 34rem; font-size: clamp(1rem, 1.2vw, 1.18rem); }

.ac-hero-aurora { position: absolute; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; }
.ac-hero-aurora span {
  position: absolute;
  width: clamp(320px, 46vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  will-change: transform;
}
.ac-hero-aurora span:nth-child(1) {
  top: -30%; right: -6%;
  background: radial-gradient(circle, rgba(0, 171, 169, .55), transparent 68%);
  animation: ac-drift-a 16s ease-in-out infinite alternate;
}
.ac-hero-aurora span:nth-child(2) {
  bottom: -40%; left: 30%;
  background: radial-gradient(circle, rgba(110, 140, 255, .32), transparent 68%);
  animation: ac-drift-b 20s ease-in-out infinite alternate;
}

.ac-hero-art {
  position: absolute;
  z-index: -2;
  top: 52%;
  right: calc((100% - min(var(--academy-width), 100% - var(--academy-inset))) / 2);
  width: clamp(300px, 40vw, 560px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
  animation: ac-fade-up 1s var(--ac-ease) .2s both;
}

.ac-orbit {
  position: absolute;
  top: 50%; left: 50%;
  border: 1px solid rgba(0, 171, 169, .3);
  border-radius: 50%;
  animation: ac-spin-orbit var(--t) linear infinite;
}
.ac-orbit.o1 { --t: 38s; width: 100%; height: 100%; margin: -50% 0 0 -50%; }
.ac-orbit.o2 { --t: 26s; width: 72%; height: 72%; margin: -36% 0 0 -36%; border-style: dashed; border-color: rgba(29, 29, 31, .18); animation-direction: reverse; }
.ac-orbit.o3 { --t: 18s; width: 46%; height: 46%; margin: -23% 0 0 -23%; }
.ac-orbit i {
  position: absolute;
  top: -7px; left: 50%;
  width: 14px; height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: #00aba9;
  box-shadow: 0 0 0 6px rgba(0, 171, 169, .16), 0 0 24px rgba(0, 171, 169, .7);
}
.ac-orbit.o2 i { background: #1d1d1f; box-shadow: 0 0 0 6px rgba(29, 29, 31, .08); width: 10px; height: 10px; top: -5px; margin-left: -5px; }
.ac-orbit.o3 i { top: auto; bottom: -7px; }

.ac-core {
  position: absolute;
  top: 50%; left: 50%;
  display: grid;
  place-items: center;
  width: 24%;
  aspect-ratio: 1;
  margin: -12% 0 0 -12%;
  border-radius: 50%;
  color: #00aba9;
  background: linear-gradient(145deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .35));
  border: 1px solid rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow: inset 0 1px 0 #fff, 0 30px 60px -22px rgba(0, 120, 118, .55);
}
.ac-core::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(0, 171, 169, .5);
  animation: ac-pulse 3.2s ease-out infinite;
}
.ac-core svg { width: 44%; height: 44%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

@keyframes ac-spin-orbit { to { transform: rotate(360deg); } }
@keyframes ac-drift-a { to { transform: translate3d(-8vw, 6vh, 0) scale(1.12); } }
@keyframes ac-drift-b { to { transform: translate3d(10vw, -5vh, 0) scale(1.1); } }

@media (max-width: 900px) {
  .ac-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(88px, 68vw - 138px, 248px);
    align-items: center;
    justify-content: normal;
    column-gap: clamp(12px, 3vw, 25px);
    min-height: 0;
    padding: clamp(104px, 20vw, 132px) max(18px, var(--academy-inset) / 2) clamp(28px, 5vw, 44px);
  }

  html body.academy-page .ac-hero-inner {
    grid-area: 1 / 1;
    width: 100%;
    min-width: 0;
    padding: 0;
  }

  html body.academy-page .ac-hero h1 {
    margin: 0 0 clamp(12px, 3.2vw, 20px);
    font-size: clamp(42px, 12vw, 82px);
    line-height: .96;
  }

  .ac-hero .ac-word {
    display: block;
    width: fit-content;
  }

  html body.academy-page .academy-description {
    max-width: 26ch;
    font-size: clamp(.875rem, 3.3vw, 1rem);
    line-height: 1.55;
    text-wrap: balance;
  }

  .ac-hero-art {
    position: relative;
    grid-area: 1 / 2;
    inset: auto;
    width: 100%;
    transform: none;
  }

  .ac-hero-art .ac-core { width: 28%; margin: -14% 0 0 -14%; }
  .ac-hero-foot { display: none; }
}

@media (max-width: 350px) {
  .ac-hero { row-gap: 14px; }
  html body.academy-page .ac-hero-inner { display: contents; }

  html body.academy-page .ac-hero h1 {
    grid-area: 1 / 1;
    margin: 0;
    font-size: clamp(41px, 12.6vw, 46px);
  }

  html body.academy-page .academy-description {
    grid-area: 2 / 1 / 3 / -1;
    max-width: 29ch;
  }
}

@media (max-width: 860px) {
  .ac-modal-card { grid-template-rows: minmax(0, 58%) minmax(0, 1fr); height: min(94vh, 920px); }
}

/* glow clipped by the section edge: drop the section-level glow (the fixed page glow covers it) and fade the hero aurora out at the bottom */
.ac-about::before { display: none; }
.ac-hero-aurora {
  -webkit-mask-image: linear-gradient(#000 55%, transparent 100%);
  mask-image: linear-gradient(#000 55%, transparent 100%);
}

/* orbit artwork must fit inside the hero, never clipped by its bottom edge */
@media (min-width: 901px) {
  .ac-hero-art { top: 56%; width: clamp(280px, min(40vw, 54svh), 540px); }
}

/* ---------- Popup v2: ambient photo backdrop, glass controls, richer info panel ---------- */
.ac-modal-card { box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .55); }

.ac-modal-media { position: relative; overflow: hidden; isolation: isolate; }
.ac-modal-media::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: -1;
  background: var(--ac-bg, none) center / cover no-repeat;
  filter: blur(44px) saturate(1.5);
  opacity: .5;
  transition: opacity .6s ease;
}
.ac-modal-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(245, 245, 247, .35), rgba(245, 245, 247, .7));
}

.ac-modal-stage { padding: clamp(16px, 2vw, 28px); }
.ac-modal-slide img,
.ac-modal-slide video { border-radius: 16px; box-shadow: 0 30px 70px -34px rgba(0, 0, 0, .55); }
.ac-modal-slide .ac-player { border-radius: 16px; box-shadow: 0 30px 70px -34px rgba(0, 0, 0, .55); }

.ac-modal-switch { padding: 0 clamp(22px, 2.6vw, 36px); }
.ac-modal-switch .ac-modal-btn {
  width: 42px; height: 42px; min-width: 42px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  box-shadow: inset 0 1px 0 #fff, 0 10px 24px -12px rgba(0, 0, 0, .45);
}
.ac-modal-switch .ac-modal-btn svg { width: 17px; height: 17px; }
@media (hover: hover) {
  .ac-modal-switch .ac-modal-btn:hover { background: #00aba9; border-color: #00aba9; color: #fff; }
}

.ac-modal-count {
  position: absolute;
  top: clamp(26px, 3vw, 38px);
  left: clamp(30px, 3.4vw, 46px);
  z-index: 3;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  color: #1d1d1f;
  font-size: 12px;
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.ac-modal-count[hidden] { display: none; }

.ac-modal-bar { padding-top: 2px; }
.ac-modal-strip { gap: 10px; justify-content: center; }
.ac-modal-thumb { width: 92px; height: 62px; border-radius: 12px; }
.ac-modal-thumb[aria-current="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #00aba9; }

/* close button */
.ac-modal-close {
  top: 18px; right: 18px;
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
@media (hover: hover) { .ac-modal-close:hover { background: #00aba9; border-color: #00aba9; color: #fff; } }

/* info panel */
.ac-modal-info {
  position: relative;
  isolation: isolate;
  background: radial-gradient(420px circle at 100% 0%, rgba(0, 171, 169, .14), transparent 66%), #fff;
  padding-top: clamp(68px, 5vw, 84px);
}
.ac-modal-eyebrow {
  margin: 0;
  color: #00aba9;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
html body .ac-modal-info h3 { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.08; }
.ac-modal-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-modal-chips:empty { display: none; }
.ac-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid rgba(0, 171, 169, .28);
  border-radius: 999px;
  background: rgba(0, 171, 169, .08);
  color: #00807e;
  font-size: 13px;
  line-height: 1;
}
.ac-chip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ac-modal-desc { font-size: clamp(15px, 1.1vw, 16.5px); }

.ac-modal-trainings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(29, 29, 31, .1);
}
.ac-modal-trainings[hidden] { display: none; }
.ac-mt {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(29, 29, 31, .1);
  border-radius: 14px;
  background: rgba(245, 245, 247, .7);
  color: #1d1d1f;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .3s ease, background-color .3s ease, transform .4s var(--ac-ease), box-shadow .3s ease;
}
.ac-mt.is-next { text-align: right; }
.ac-mt.is-next .ac-mt-dir { justify-content: flex-end; }
.ac-mt-dir { display: flex; align-items: center; gap: 6px; color: #00807e; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.ac-mt-dir svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ac-mt-title { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13.5px; line-height: 1.35; }
@media (hover: hover) {
  .ac-mt:hover { border-color: #00aba9; background: #fff; transform: translateY(-2px); box-shadow: 0 14px 26px -18px rgba(0, 140, 138, .6); }
}
.ac-mt:focus-visible { outline: 2px solid #00aba9; outline-offset: 2px; }

@media (max-width: 860px) {
  .ac-modal-thumb { width: 64px; height: 44px; }
  .ac-modal-trainings { grid-template-columns: minmax(0, 1fr); }
  .ac-modal-count { top: 22px; left: 22px; }
}

/* the entrance animation must not touch transform: it was cancelling the vertical centering and pushing the art below the hero edge */
.ac-hero-art { animation: ac-fade-in 1s ease .2s both; }

/* the media column must never be scrollable, even programmatically */
.ac-modal-media { overflow: clip; }
html body .ac-modal-info h3 { margin-top: 0; }
.ac-modal-info { padding-top: clamp(64px, 4.6vw, 76px); }
.ac-modal-strip { position: relative; }


/* manifesto sentence: two lines on desktop */
@media (min-width: 901px) {
  .ac-about-head { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
  html body #main-content .ac-about .ac-statement {
    max-width: none;
    font-size: clamp(26px, 3.1vw, 46px);
    text-wrap: balance;
  }
}

/* Section title: a <p role=heading>, so the site-wide h2 dissolve script leaves it alone; reveals with the page's own rise */
html body #main-content .academy-training .ac-section-title { overflow: visible; -webkit-mask-image: none; mask-image: none; }


/* slogan and description share the same vertical centre */
.ac-about-head { align-items: center; }
