/* Reference-led main visual. The supplied FLY mark is the only background shape. */
.hero {
  --hero-title-size: clamp(80px, 7.29vw, 105px);
  min-height: 0;
  background: #0028f9;
}
.hero-background {
  inset: -30px;
  /* Blur the composited alpha-mask result rather than the mask's own fill. */
  filter: blur(clamp(5px, .8vw, 13px));
}
.hero-brand-mark,
.hero-background::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 106%;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%) rotate(-6deg);
  transition: opacity 1.2s, transform 1.8s var(--ease);
}
.hero-brand-mark {
  opacity: .32;
}
/* Solid colors crossfade through the supplied alpha; no hue interpolation. */
.hero-background::after {
  content: '';
  aspect-ratio: 1934 / 989;
  background: #0028f9;
  -webkit-mask: url('assets/media/hero-mark.webp') center / contain no-repeat;
  mask: url('assets/media/hero-mark.webp') center / contain no-repeat;
  opacity: 0;
}
.hero.light-mode {
  background: #fff;
}
.hero.light-mode .hero-brand-mark,
.hero.light-mode .hero-background::after {
  transform: translate(-50%, -50%) rotate(5deg);
}
.hero.light-mode .hero-brand-mark { opacity: 0; }
.hero.light-mode .hero-background::after {
  opacity: .22;
}
.hero-inner {
  width: 100%;
  max-width: 1440px;
  display: grid;
  min-height: 650px;
  height: min(48.333vw, 696px);
  margin: 0 auto;
  padding: clamp(110px, 9.444vw, 136px) 0 0 clamp(64px, 6vw, 86px);
  /* Anchor the poster from the right edge, independent of copy/padding widths. */
  grid-template-columns: minmax(0, 1fr) clamp(385px, 35vw, 504px);
  align-items: start;
}
.hero-copy {
  padding: clamp(64px, 5.833vw, 84px) 0 0;
  min-width: 0;
}
.hero-copy .academy-wordmark {
  --hero-logo-width: 32px;
  --hero-logo-height: 34px;
  position: relative;
  gap: 8px;
  font-size: 17px;
  margin-bottom: clamp(46px, 4.375vw, 63px);
}
.hero-copy .academy-wordmark img {
  width: 32px;
  height: 34px;
  filter: none;
  transition: opacity .8s;
}
.hero-copy .academy-wordmark::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: var(--hero-logo-width);
  height: var(--hero-logo-height);
  background: #0028f9;
  -webkit-mask: url('assets/logo-white.svg') center / contain no-repeat;
  mask: url('assets/logo-white.svg') center / contain no-repeat;
  opacity: 0;
  transition: opacity .8s;
}
.hero.light-mode .academy-wordmark img {
  filter: none;
  opacity: 0;
}
.hero.light-mode .academy-wordmark::after {
  opacity: 1;
}
.hero-heading {
  height: calc(var(--hero-title-size) * 2.01);
}
.hero-heading .hero-title {
  font-size: var(--hero-title-size);
  line-height: .99;
  letter-spacing: -.066em;
  font-weight: 800;
  padding-right: .06em;
  white-space: nowrap;
}
.hero-actions {
  margin-top: 20px;
  gap: 14px;
  padding-left: 12px;
}
.hero-actions .pill {
  min-width: 120px;
  min-height: 30px;
  padding: 5px 24px;
  font-size: 12px;
  line-height: 1.5;
}
.hero-copy > .social-links {
  margin-top: 50px;
  gap: 23px;
  max-width: none;
  flex-wrap: nowrap;
}
.hero-copy .social-links span {
  font-size: 9px;
}
.hero-copy .social-links svg {
  width: 18px;
  height: 18px;
}
.hero-showcase {
  padding: 0;
  margin: 0;
  min-width: 0;
}
.hero-carousel {
  width: calc(100% - 30px);
  padding: 0;
}
/* Retain an 85% card while allowing the following poster to reach the page edge. */
.hero-carousel .carousel-viewport {
  width: calc(100% + 30px);
}
.hero-carousel .carousel-track {
  width: calc(100% - 30px);
  --slide-width: 85%;
  --slide-gap: 20px;
}
.hero-carousel .carousel-slide {
  border-radius: 22px;
  aspect-ratio: .79;
}
.hero-carousel .carousel-controls {
  width: 85%;
  padding-top: 9px;
}
.hero-carousel .poster-fill,
.hero-carousel .poster-fill > img {
  width: 100%;
  height: 100%;
}
.hero-carousel .poster-fill > img {
  object-fit: contain;
}
.hero-result-poster {
  padding: 0;
}
.hero-result-poster > span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transition: opacity .2s;
}
.hero-result-poster:hover > span,
.hero-result-poster:focus-visible > span {
  opacity: 1;
}
.hero-result-poster:focus-visible {
  outline-offset: -4px;
}
@media (hover: none) {
  .hero-result-poster > span { opacity: 1; }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .hero {
    --hero-title-size: clamp(52px, 7.15vw, 79px);
  }
  .hero-inner {
    min-height: 0;
    height: auto;
    grid-template-columns: minmax(0, 60%) minmax(0, 40%);
    padding: 110px 0 38px 5%;
  }
  .hero-copy {
    padding: 48px 0 0;
  }
  .hero-copy .academy-wordmark {
    --hero-logo-width: 27px;
    --hero-logo-height: 29px;
    font-size: clamp(12px, 1.3vw, 14px);
    gap: 7px;
    margin-bottom: 40px;
  }
  .hero-copy .academy-wordmark img {
    width: 27px;
    height: 29px;
  }
  .hero-actions {
    margin-top: 20px;
    padding-left: 6px;
    gap: 10px;
  }
  .hero-actions .pill {
    min-width: 103px;
    min-height: 31px;
    padding: 6px 17px;
    font-size: 11px;
    gap: 13px;
  }
  .hero-copy > .social-links {
    margin-top: 34px;
    gap: 14px;
    flex-wrap: wrap;
    max-width: 94%;
  }
  .hero-copy .social-links span {
    font-size: 8px;
  }
  .hero-copy .social-links svg {
    width: 15px;
    height: 15px;
  }
  .hero-copy .social-links .naver-n {
    font-size: 17px;
  }
  .hero-carousel,
  .hero-carousel .carousel-viewport,
  .hero-carousel .carousel-track {
    width: 100%;
  }
  .hero-carousel .carousel-track {
    --slide-gap: 16px;
  }
  .hero-carousel .carousel-slide {
    aspect-ratio: .79;
    border-radius: 18px;
  }
}

@media (max-width: 700px) {
  .hero {
    --hero-title-size: clamp(48px, 14vw, 82px);
  }
  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    height: auto;
    padding: 102px 0 24px;
  }
  .hero-copy {
    padding: 0 24px;
  }
  .hero-copy .academy-wordmark {
    --hero-logo-width: 25px;
    --hero-logo-height: 27px;
    margin-bottom: 30px;
    gap: 7px;
    font-size: 12px;
  }
  .hero-copy .academy-wordmark img {
    width: 25px;
    height: 27px;
  }
  .hero-heading {
    height: calc(var(--hero-title-size) * 2.12);
  }
  .hero-heading .hero-title {
    line-height: 1.04;
    letter-spacing: -.066em;
  }
  .hero-actions {
    margin-top: 16px;
    gap: 10px;
    padding-left: 2px;
  }
  .hero-actions .pill {
    min-width: 112px;
    min-height: 33px;
    padding: 7px 18px;
    font-size: 11px;
  }
  .hero-copy > .social-links {
    max-width: none;
    flex-wrap: wrap;
    margin-top: 26px;
    gap: 15px;
  }
  .hero-copy .social-links a {
    gap: 5px;
  }
  .hero-copy .social-links span {
    font-size: 7px;
    letter-spacing: -.035em;
  }
  .hero-copy .social-links svg {
    width: 15px;
    height: 15px;
  }
  .hero-copy .social-links .naver-n {
    font-size: 16px;
  }
  .hero-showcase {
    margin-top: 32px;
    padding-left: 24px;
  }
  .hero-carousel,
  .hero-carousel .carousel-viewport,
  .hero-carousel .carousel-track {
    width: 100%;
  }
  .hero-carousel .carousel-track {
    --slide-width: 85%;
    --slide-gap: 15px;
  }
  .hero-carousel .carousel-slide {
    border-radius: 18px;
    aspect-ratio: .8;
  }
  .hero-carousel .carousel-controls {
    width: 85%;
    padding-top: 10px;
  }
  .hero-brand-mark,
  .hero-background::after {
    top: 31%;
    width: 115%;
  }
}

@media (max-width: 360px) {
  .hero-copy {
    padding: 0 20px;
  }
  .hero-showcase {
    padding-left: 20px;
  }
  .hero-copy > .social-links {
    gap: 11px;
  }
  .hero-copy .social-links span {
    font-size: 6px;
  }
}
