/*
  AI Academy V6 FINAL — aligned content and team advantages.
  Keeps V5's fixed semantic rows and uses concise one-line headings
  for the final desktop composition without squeezing typography.
*/

.academy__advantage-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--page-soft) 52%, white), #fff 72%);
}

.academy__advantage-section::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -160px;
  width: 460px;
  height: 460px;
  pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--page-strong) 9%, transparent), transparent 68%);
}

.academy__advantage-section .academy__container {
  position: relative;
  z-index: 1;
}

.academy__advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #cfd4e4;
  border-bottom: 1px solid #cfd4e4;
}

.academy__advantage-grid article {
  position: relative;
  min-height: 376px;
  padding: 34px 28px 30px;
  display: grid;
  grid-template-rows: 20px 108px 120px minmax(64px, 1fr);
  align-content: stretch;
  border-right: 1px solid var(--line);
}

.academy__advantage-grid article:first-child {
  padding-left: 0;
}

.academy__advantage-grid article:last-child {
  padding-right: 0;
  border-right: 0;
}

.academy__advantage-grid article::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 28px;
  width: 46px;
  height: 3px;
  background: var(--page-strong);
}

.academy__advantage-grid article:first-child::before {
  left: 0;
}

.academy__advantage-grid > article > span {
  color: var(--page-strong);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 750;
  line-height: 20px;
  letter-spacing: .08em;
}

.academy__advantage-grid h3 {
  margin: 0;
  padding-top: 42px;
  font-size: clamp(20px, 1.7vw, 25px);
  line-height: 1.32;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.academy__advantage-grid p {
  margin: 0;
  padding-top: 14px;
  color: var(--body-text);
  font-size: 14px;
  line-height: 1.78;
  text-wrap: pretty;
}

.academy__advantage-grid small {
  margin: 0;
  padding-top: 16px;
  display: block;
  color: var(--page-strong);
  border-top: 1px solid color-mix(in srgb, var(--page-strong) 13%, transparent);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.65;
}

.academy__duration-grid .academy__package-card {
  min-height: 584px;
  display: flex;
  flex-direction: column;
}

.academy__package-duration {
  white-space: nowrap;
}

.academy__duration-grid .academy__package-card h4 {
  margin: 34px 0 12px;
  font-size: 23px;
  letter-spacing: -.025em;
}

.academy__duration-grid .academy__package-card .academy__package-summary {
  min-height: 78px;
  color: var(--body-text);
  font-size: 14px;
  line-height: 1.75;
  text-wrap: pretty;
}

.academy__package-facts {
  margin: 26px 0 0;
}

.academy__package-facts > div {
  padding: 15px 0 16px;
  border-top: 1px solid color-mix(in srgb, var(--page-strong) 12%, #dfe2ed);
}

.academy__package-facts dt {
  margin: 0 0 6px;
  color: var(--page-strong);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .06em;
}

.academy__package-facts dd {
  margin: 0;
  color: #4e5669;
  font-size: 13px;
  line-height: 1.72;
  text-wrap: pretty;
}

.academy__duration-grid article.is-featured {
  box-shadow: inset 0 3px var(--page-strong);
}

.academy__package-choice {
  position: relative;
  margin-top: 28px;
  padding: 26px 30px 26px 34px;
  display: grid;
  grid-template-columns: minmax(250px, .78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: 40px;
  color: var(--white);
  overflow: hidden;
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--page-strong) 26%, transparent), transparent 54%),
    var(--navy-deep);
  border: 1px solid rgba(133, 163, 244, .22);
  border-left: 4px solid var(--page-accent);
  border-radius: 12px;
}

.academy__package-choice::after {
  content: "";
  position: absolute;
  right: -74px;
  width: 240px;
  height: 240px;
  pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--page-accent) 18%, transparent), transparent 69%);
}

.academy__package-choice p {
  position: relative;
  z-index: 1;
  min-height: 0;
  margin: 0;
}

.academy__package-choice p:first-child {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.academy__package-choice p:first-child span {
  color: var(--page-accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
}

.academy__package-choice strong {
  font-size: 20px;
  line-height: 1.45;
}

.academy__package-choice p:last-child {
  color: #aeb8cd;
  font-size: 13px;
  line-height: 1.78;
  text-wrap: pretty;
}

.academy__package-note {
  max-width: 980px;
  margin: 14px 0 0;
  padding-left: 13px;
  color: var(--muted);
  border-left: 2px solid color-mix(in srgb, var(--page-strong) 34%, transparent);
  font-size: 11px;
  line-height: 1.7;
}

.academy__project-boundary {
  margin-top: 42px;
  padding: 38px 0 0;
  display: grid;
  grid-template-columns: minmax(230px, .62fr) minmax(0, 1.38fr);
  gap: 0 52px;
  border-top: 1px solid #cfd4e4;
}

.academy__project-boundary-head {
  grid-row: 1 / 3;
  padding-right: 22px;
}

.academy__project-boundary-head > p {
  min-height: 0;
  margin: 0 0 18px;
  color: var(--page-strong);
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .13em;
}

.academy__project-boundary-head h3 {
  margin: 0;
  font-size: clamp(26px, 2.7vw, 36px);
  line-height: 1.22;
  letter-spacing: -.035em;
}

.academy__project-boundary-head > span {
  margin-top: 16px;
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.academy__project-boundary ul {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
  list-style: none;
}

.academy__project-boundary li {
  min-height: 118px;
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-top: 1px solid var(--line);
}

.academy__project-boundary li strong {
  color: var(--ink);
  font-size: 14px;
}

.academy__project-boundary li span {
  color: var(--body-text);
  font-size: 12px;
  line-height: 1.7;
  text-wrap: pretty;
}

.academy__project-boundary-note {
  min-height: 0;
  margin: 22px 0 0;
  padding: 18px 20px;
  color: #475264;
  background: var(--page-soft);
  border-left: 3px solid var(--page-strong);
  font-size: 12px;
  line-height: 1.72;
}

.academy__project-boundary-note strong {
  color: var(--ink);
}

.academy__team-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 22%, color-mix(in srgb, var(--page-accent) 14%, transparent), transparent 31%),
    var(--navy-deep);
}

.academy__team-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .24;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(126, 145, 201, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 145, 201, .1) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), transparent 96%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), transparent 96%);
}

.academy__team-section .academy__container {
  position: relative;
  z-index: 1;
}

.academy__team-section-head {
  margin-bottom: clamp(48px, 6vw, 76px);
  display: grid;
  grid-template-columns: 1fr minmax(300px, .65fr);
  align-items: end;
  gap: 54px;
}

.academy__team-section-head .academy__section-index {
  color: var(--page-accent);
}

.academy__team-section-head h2 {
  margin: 0;
  font-size: clamp(42px, 4.1vw, 58px);
  line-height: 1.18;
  letter-spacing: -.04em;
}

.academy__team-section-head h2::after {
  content: "";
  width: 72px;
  height: 4px;
  margin-top: 26px;
  display: block;
  background: var(--page-accent);
}

.academy__team-section-head > p:last-child {
  margin: 0;
  color: #aab4c8;
  font-size: 16px;
  line-height: 1.82;
  text-wrap: pretty;
}

.academy__team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(151, 168, 218, .24);
  border-bottom: 1px solid rgba(151, 168, 218, .24);
}

.academy__team-grid article {
  min-height: 382px;
  padding: 32px 28px 30px;
  display: grid;
  grid-template-rows: 22px 112px 126px minmax(64px, 1fr);
  border-right: 1px solid rgba(151, 168, 218, .17);
}

.academy__team-grid article:first-child {
  padding-left: 0;
}

.academy__team-grid article:last-child {
  padding-right: 0;
  border-right: 0;
}

.academy__team-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.academy__team-card-meta span,
.academy__team-card-meta small {
  color: var(--page-accent);
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .1em;
}

.academy__team-card-meta small {
  color: #68758f;
  font-size: 9px;
}

.academy__team-grid h3 {
  margin: 0;
  padding-top: 42px;
  color: var(--white);
  font-size: clamp(20px, 1.65vw, 24px);
  line-height: 1.34;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.academy__team-grid article > p {
  margin: 0;
  padding-top: 14px;
  color: #9ca7bd;
  font-size: 13px;
  line-height: 1.78;
  text-wrap: pretty;
}

.academy__team-grid article > strong {
  padding-top: 16px;
  display: block;
  color: var(--page-accent);
  border-top: 1px solid rgba(151, 168, 218, .17);
  font-size: 12px;
  line-height: 1.7;
}

.academy__team-capabilities {
  min-height: 78px;
  padding-top: 26px;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.academy__team-capabilities span {
  padding: 7px 10px;
  color: #7f8ba5;
  border: 1px solid rgba(151, 168, 218, .17);
  border-radius: 999px;
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .06em;
}

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

  .academy__advantage-grid article,
  .academy__advantage-grid article:first-child,
  .academy__advantage-grid article:last-child {
    min-height: 376px;
    padding: 32px 30px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .academy__advantage-grid article:nth-child(even) {
    border-right: 0;
  }

  .academy__advantage-grid article:nth-child(n + 3) {
    border-bottom: 0;
  }

  .academy__advantage-grid article::before,
  .academy__advantage-grid article:first-child::before {
    left: 30px;
  }

  .academy__duration-grid .academy__package-card {
    min-height: 610px;
  }

  .academy__project-boundary {
    gap: 0 36px;
  }

  .academy__team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .academy__team-grid article,
  .academy__team-grid article:first-child,
  .academy__team-grid article:last-child {
    min-height: 360px;
    padding: 32px 30px;
    border-right: 1px solid rgba(151, 168, 218, .17);
    border-bottom: 1px solid rgba(151, 168, 218, .17);
  }

  .academy__team-grid article:nth-child(even) {
    border-right: 0;
  }

  .academy__team-grid article:nth-child(n + 3) {
    border-bottom: 0;
  }
}

@media (max-width: 767px) {
  .academy__duration-grid .academy__package-card,
  .academy__duration-grid .academy__package-card:first-child,
  .academy__duration-grid .academy__package-card.is-featured {
    min-height: 0;
    padding: 34px 30px;
  }

  .academy__duration-grid .academy__package-card .academy__package-summary {
    min-height: 0;
  }

  .academy__package-choice {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .academy__project-boundary {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .academy__project-boundary-head {
    grid-row: auto;
    padding-right: 0;
  }

  .academy__team-section-head {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 767px) {
  .academy__advantage-grid {
    grid-template-columns: 1fr;
  }

  .academy__advantage-grid article,
  .academy__advantage-grid article:first-child,
  .academy__advantage-grid article:last-child {
    min-height: 0;
    padding: 30px 0;
    display: block;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .academy__advantage-grid article:last-child {
    border-bottom: 0;
  }

  .academy__advantage-grid article::before,
  .academy__advantage-grid article:first-child::before {
    left: 0;
  }

  .academy__advantage-grid h3 {
    margin: 34px 0 15px;
    padding-top: 0;
  }

  .academy__advantage-grid p {
    padding-top: 0;
  }

  .academy__advantage-grid small {
    margin-top: 22px;
  }

  .academy__duration-grid .academy__package-card,
  .academy__duration-grid .academy__package-card:first-child,
  .academy__duration-grid .academy__package-card.is-featured {
    padding: 30px 22px;
  }

  .academy__package-choice {
    padding: 24px 22px;
  }

  .academy__package-choice strong {
    font-size: 18px;
  }

  .academy__project-boundary {
    margin-top: 34px;
    padding-top: 30px;
  }

  .academy__project-boundary ul {
    grid-template-columns: 1fr;
  }

  .academy__project-boundary li {
    min-height: 0;
  }

  .academy__project-boundary-note {
    margin-top: 8px;
  }

  .academy__team-section-head h2 {
    font-size: 35px;
  }

  .academy__team-grid {
    grid-template-columns: 1fr;
  }

  .academy__team-grid article,
  .academy__team-grid article:first-child,
  .academy__team-grid article:last-child {
    min-height: 0;
    padding: 30px 0;
    display: block;
    border-right: 0;
    border-bottom: 1px solid rgba(151, 168, 218, .17);
  }

  .academy__team-grid article:last-child {
    border-bottom: 0;
  }

  .academy__team-grid h3 {
    margin: 32px 0 14px;
    padding-top: 0;
  }

  .academy__team-grid article > p {
    padding-top: 0;
  }

  .academy__team-grid article > strong {
    margin-top: 22px;
  }

  .academy__team-capabilities {
    padding-top: 22px;
  }
}

@supports not (color: color-mix(in srgb, white, black)) {
  .academy__advantage-section {
    background: var(--page-soft);
  }

  .academy__package-choice {
    background: var(--navy-deep);
  }
}
