.crew-classroom {
  position: absolute;
  inset: 0;
  isolation: isolate;
}

.crew-classroom::after {
  position: absolute;
  z-index: -1;
  right: 5%;
  bottom: 14%;
  left: 5%;
  height: 2px;
  background: #15366c45;
  content: "";
}

.crew-classroom .crew-workshop-grid {
  z-index: -2;
  inset: 13% 11% 12% 11%;
  background: #f9e6a9;
}

.crew-classroom-board {
  position: absolute;
  top: 15%;
  left: 37%;
  display: grid;
  width: 34%;
  aspect-ratio: 1.36;
  align-content: center;
  gap: 12%;
  padding: 0 4%;
  border: 2px solid #19365e;
  border-radius: 7px;
  background: #fffaf0;
  box-shadow: 4px 5px 0 #19365e;
  transform: rotate(-5deg);
}

.crew-classroom-board span {
  position: relative;
  height: 3px;
  margin-inline-start: 18%;
  border-radius: 3px;
  background: #19365e;
  transform-origin: left;
}

.crew-classroom-board span:nth-child(2) { width: 59%; }
.crew-classroom-board span:nth-child(3) { width: 67%; }

.crew-classroom-board span::before {
  position: absolute;
  top: 50%;
  left: -13px;
  width: 7px;
  aspect-ratio: 1;
  border: 1px solid #19365e;
  border-radius: 2px;
  background: #abd9d0;
  content: "";
  transform: translateY(-50%);
}

.crew-classroom-tutor, .crew-classroom-student {
  position: absolute;
  bottom: 13%;
  display: flex;
  align-items: end;
  transform-origin: center bottom;
}

.crew-classroom-tutor { left: 9%; height: 74%; max-width: 45%; }
.crew-classroom-student { right: 8%; height: 56%; max-width: 39%; }
.crew-classroom img { display: block; width: auto; max-width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.crew-classroom-student img { transform: scaleX(-1); }

.crew-entered .crew-classroom-tutor { animation: academy-tutor-arrive .78s cubic-bezier(.22,.7,.28,1) both; }
.crew-entered .crew-classroom-student { animation: academy-student-arrive .83s .1s cubic-bezier(.22,.7,.28,1) both; }
.crew-entered .crew-classroom-board span { animation: academy-board-write .48s .27s ease-out both; }
.crew-entered .crew-classroom-board span:nth-child(2) { animation-delay: .4s; }
.crew-entered .crew-classroom-board span:nth-child(3) { animation-delay: .53s; }
.crew-workshop:focus-within .crew-classroom-board span::before { background: #fbd776; }

.cr-academy-page .crew-faq-reader.crew-flip .crew-page-turn {
  animation: academy-page-flip .52s ease-out;
}

@keyframes academy-tutor-arrive {
  from { transform: translate(-6%, 2%) rotate(-3deg); opacity: .72; }
}

@keyframes academy-student-arrive {
  from { transform: translateX(8%) rotate(4deg); opacity: .72; }
  70% { transform: rotate(-1deg); }
}

@keyframes academy-board-write {
  from { transform: scaleX(.1); opacity: 0; }
}

@keyframes academy-page-flip {
  15% { opacity: .96; transform: perspective(80px) rotateY(0deg) rotateZ(7deg); }
  72% { opacity: .96; transform: perspective(80px) rotateY(-153deg) rotateZ(7deg); }
  100% { transform: perspective(80px) rotateY(-174deg) rotateZ(7deg); }
}

.academy-training-scene {
  position: relative;
  width: min(67%, 246px);
  height: clamp(125px, 13vw, 175px);
  overflow: hidden;
  border-radius: 78px 78px 10px 10px;
  background: #e4dcf6;
  isolation: isolate;
}

.academy-training-scene--individual { background: #d9f0e5; }

.academy-training-scene img {
  position: absolute;
  left: 12%;
  bottom: 4%;
  height: 92%;
  width: auto;
  max-width: 51%;
  object-fit: contain;
  object-position: bottom;
  transform-origin: 53% bottom;
  transition: transform .5s cubic-bezier(.22,.7,.28,1);
}

.academy-training-scene--individual img {
  left: 10%;
  height: 82%;
}

.academy-training-board {
  position: absolute;
  display: grid;
  align-content: center;
  gap: 12%;
  padding: 0 8%;
  border: 1.5px solid #19365e;
  border-radius: 5px;
  background: #fff9ed;
  box-shadow: 2px 3px 0 #19365e;
  color: #19365e;
}

.academy-training-board {
  right: 9%;
  top: 30%;
  width: 43%;
  height: 39%;
  transform: rotate(6deg);
  transition: transform .48s cubic-bezier(.22,.7,.28,1), background-color .35s;
}

.academy-training-scene--individual .academy-training-board {
  top: 23%;
  transform: rotate(-7deg);
}

.academy-training-board i {
  display: block;
  height: 2px;
  border-radius: 4px;
  background: currentColor;
  transform-origin: left;
}

.academy-training-board i:nth-child(2) { width: 73%; }
.academy-training-board i:nth-child(3) { width: 57%; }
.academy-entered .academy-training-board i { animation: academy-note-line .52s .18s ease-out both; }
.academy-entered .academy-training-board i:nth-child(2) { animation-delay: .28s; }
.academy-entered .academy-training-board i:nth-child(3) { animation-delay: .38s; }
.training-card:focus-within .academy-training-scene img { transform: rotate(3deg) translateX(3%); }
.training-card:focus-within .academy-training-board {
  transform: translateY(-8%) rotate(0);
  background-color: #fff1c5;
}

.cr-academy-page .program-enrolment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, .5fr);
  align-items: center;
}

.academy-enrolment-copy .button {
  width: fit-content;
  max-width: 100%;
  margin-block-start: 16px;
  white-space: normal;
}

.academy-enrolment-scene {
  --academy-envelope-hover: -9%;
  position: relative;
  align-self: stretch;
  justify-self: end;
  width: min(100%, 270px);
  min-height: 178px;
  isolation: isolate;
}

html[lang="en"] .academy-enrolment-scene { transform: scaleX(-1); }

.academy-enrolment-scene::before {
  position: absolute;
  inset: 10% 3% 3% 4%;
  border-radius: 50%;
  background: #d2caf4;
  content: "";
}

.academy-enrolment-scene img {
  position: absolute;
  left: 11%;
  bottom: 1%;
  width: auto;
  max-width: 58%;
  height: 98%;
  object-fit: contain;
  object-position: bottom;
  transform-origin: 48% bottom;
  transition: transform .5s cubic-bezier(.22,.7,.28,1);
}

.academy-enrolment-envelope {
  position: absolute;
  right: 9%;
  top: 34%;
  width: 30%;
  aspect-ratio: 1.5;
  overflow: hidden;
  border: 1.5px solid #19365e;
  border-radius: 6px;
  background: #fff4cf;
  box-shadow: 3px 4px 0 #19365e;
  transform: rotate(9deg);
  transition: transform .52s cubic-bezier(.22,.7,.28,1);
}

.academy-enrolment-envelope::before {
  position: absolute;
  inset: -62% 17% auto;
  aspect-ratio: 1;
  border-right: 1px solid #19365e;
  border-bottom: 1px solid #19365e;
  content: "";
  transform: rotate(45deg);
}

.academy-enrolment-envelope i {
  position: absolute;
  left: 43%;
  bottom: 23%;
  width: 15%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ba98ce;
}

.academy-entered .academy-enrolment-envelope { animation: academy-pass-envelope .85s cubic-bezier(.24,.68,.27,1); }
.program-enrolment:has([data-program-enquiry]:focus-visible) .academy-enrolment-envelope {
  transform: translate(12%, var(--academy-envelope-hover)) rotate(-5deg);
}
.program-enrolment:has([data-program-enquiry]:focus-visible) .academy-enrolment-scene img { transform: rotate(3deg); }

@media (hover: hover) {
  .training-card:hover .academy-training-scene img { transform: rotate(3deg) translateX(3%); }
  .training-card:hover .academy-training-board {
    transform: translateY(-8%) rotate(0);
    background-color: #fff1c5;
  }
  .program-enrolment:has([data-program-enquiry]:hover) .academy-enrolment-envelope {
    transform: translate(12%, var(--academy-envelope-hover)) rotate(-5deg);
  }
  .program-enrolment:has([data-program-enquiry]:hover) .academy-enrolment-scene img { transform: rotate(3deg); }
}

@keyframes academy-note-line {
  from { opacity: .3; transform: scaleX(.18); }
}

@keyframes academy-pass-envelope {
  from { transform: translate(-26%, 13%) rotate(-11deg); opacity: .45; }
  72% { transform: translate(4%, -3%) rotate(11deg); }
}

.academy-role-art {
  --role-halo: #e8dff8;
  --role-ground: #b6a2d366;
  position: relative;
  isolation: isolate;
  margin: 0;
  min-width: 0;
  height: clamp(135px, 13vw, 180px);
  display: grid;
  place-items: end center;
}

.academy-role-art--mint {
  --role-halo: #d3efe5;
  --role-ground: #71aa9d66;
}
.academy-role-art--gold {
  --role-halo: #f7e5ba;
  --role-ground: #bf9d5966;
}
.academy-role-art--sky {
  --role-halo: #dce8fa;
  --role-ground: #8ca4ca66;
}

.academy-role-art::before,
.academy-role-art::after {
  position: absolute;
  content: "";
  pointer-events: none;
}
.academy-role-art::before {
  bottom: 7%;
  width: min(83%, 155px);
  aspect-ratio: 1.4;
  border-radius: 50%;
  background: var(--role-halo);
  transform: rotate(-10deg);
  z-index: -2;
}
.academy-role-art::after {
  bottom: 3%;
  width: min(71%, 131px);
  height: 9%;
  border-radius: 50%;
  background: var(--role-ground);
  z-index: -1;
}

.academy-role-art img {
  position: absolute;
  inset-inline: 0;
  bottom: 1%;
  margin-inline: auto;
  display: block;
  width: auto;
  height: 95%;
  max-width: 96%;
  object-fit: contain;
  object-position: center bottom;
  transform-origin: 50% 96%;
}
.academy-role-art.academy-entered img {
  animation: academy-role-enter .63s cubic-bezier(.2,.68,.3,1) both;
}

.program-benefits .academy-benefit-illustrated {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(84px, .55fr);
  align-items: center;
  padding-block: 12px;
}
.academy-benefit-copy {
  display: flex;
  align-items: flex-start;
  gap: clamp(9px, 1.3vw, 18px);
}

.program-audience > article { min-width: 0; }

.program-audience .academy-role-art {
  margin-block-end: 15px;
  border-block-end: 1px solid var(--line);
  justify-items: start;
}
.program-audience .academy-role-art img {
  inset-inline-start: 10%;
  inset-inline-end: auto;
  margin-inline: 0;
}
.program-audience .academy-role-art::before,
.program-audience .academy-role-art::after { inset-inline-start: 5%; }

.program-outcomes article > div > span {
  font: 10px var(--font-en);
  color: var(--program-accent);
  display: block;
  margin-block: 12px;
}
.program-outcomes .academy-role-art { margin-block-end: 14px; }

@keyframes academy-role-enter {
  from { transform: translateY(8px) rotate(-2deg); }
  70% { transform: translateY(0) rotate(1deg); }
}

@media (max-width: 460px) {
  .cr-academy-page .program-enrolment {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }
  .academy-enrolment-scene {
    grid-row: 1;
    width: min(82%, 225px);
    min-height: 158px;
    justify-self: start;
  }
}

@media (max-width: 460px) {
  .crew-classroom-board { box-shadow: 3px 4px 0 #19365e; }
  .crew-classroom-board span { height: 2px; }
  .crew-classroom-board span::before { left: -9px; width: 5px; }
}

@media (max-width: 640px) {
  .program-outcomes article {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(105px, .48fr) minmax(0, 1fr);
    gap: 14px;
    padding-inline-start: 13px;
  }
  .program-outcomes .academy-role-art { margin-block-end: 0; }
  .program-outcomes article > div > span { margin-block-start: 0; }
}

@media (max-width: 400px) {
  .academy-benefit-copy { display: block; }
  .academy-benefit-copy .brand-symbol { width: 34px; height: 34px; margin-block-end: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .crew-classroom *, .cr-academy-page .crew-faq-reader *,
  .academy-training-scene *, .academy-enrolment-scene *, .academy-role-art img {
    animation: none !important;
    transition: none !important;
  }
}

html[lang="en"] .cr-hero--academy .cr-hero-copy h1 {
  font-size: clamp(36px, 4.25vw, 61px);
  text-wrap: wrap;
}

@media (max-width: 640px) {
  .program-benefits .academy-benefit-illustrated {
    grid-template-columns: minmax(0, 1fr) minmax(84px, .55fr);
    padding-inline: 16px;
  }
  .program-benefits .academy-role-art {
    height: clamp(96px, 31vw, 140px);
  }
}

/* The diploma introduction shares the Academy's illustrated palette. */
.cr-academy-page #digital-marketing {
  scroll-margin-top: 76px;
}

.cr-academy-page .program-intro {
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(24px, 5vw, 76px);
}

.cr-academy-page .program-overview {
  display: block;
  padding: 10px;
  background: #142b3b;
  border-color: #36586a;
}

.cr-academy-page .program-overview::before {
  content: none;
}

.program-graduation {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 10px;
  background: #e4dbf4;
}

.program-graduation::before {
  position: absolute;
  z-index: -1;
  inset: 14% 14% 0;
  border: 1px solid #b7a8d0;
  border-radius: 48% 48% 0 0 / 90% 90% 0 0;
  background: #f4ebff;
  content: '';
}

.program-graduation::after {
  position: absolute;
  z-index: -1;
  inset: 4% 7% 0;
  border: 1px solid #c6b8df;
  border-radius: 48% 48% 0 0 / 98% 98% 0 0;
  content: '';
}

.program-graduation canvas {
  display: block;
  width: 100%;
  height: auto;
}

.cr-academy-page .program-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 16px 0 8px;
  border: 0;
}

.cr-academy-page .program-facts > div {
  gap: 3px;
  padding-inline: clamp(7px, 1.1vw, 16px);
}

.cr-academy-page .program-facts > div + div {
  border-inline-start: 1px solid #416071;
}

.cr-academy-page .program-facts strong {
  font-size: clamp(22px, 2.5vw, 32px);
}

.cr-academy-page .program-facts span {
  font-size: clamp(10px, 1.05vw, 12px);
  line-height: 1.45;
}

@media (max-width: 640px) {
  .cr-academy-page .program-intro {
    grid-template-columns: 1fr;
  }
}
