.home-page {
  overflow-x: hidden;
}

.home-stage {
  position: relative;
  width: min(100%, 1440px);
  min-height: 1275px;
  padding: 620px 0 121px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
}

.home-background {
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: 1024px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.42)),
    url("../images/home/background-overlapping.jpg") center / cover no-repeat;
}

.home-glass {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 10.833333%;
  width: 78.333333%;
  height: 625px;
  border-radius: 0 0 96px 96px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 4px 4px 8px 8px rgba(177, 177, 177, 0.25);
  backdrop-filter: blur(3px);
}

.home-brand {
  position: absolute;
  z-index: 6;
  top: 48px;
  left: calc(50% - 480px);
  width: 220px;
  height: 265px;
}

.home-brand__mark {
  width: 220px;
  height: 220px;
  border-width: 10px;
}

.home-brand__mark img {
  inset: 34px;
  width: 132px;
  height: 132px;
}

.home-brand__name {
  position: absolute;
  top: 236px;
  left: 13px;
  width: 194px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.home-nav {
  position: absolute;
  z-index: 7;
  top: 96px;
  left: calc(50% - 245px);
  display: flex;
  gap: 48px;
  color: var(--paper);
  font-size: 35px;
  font-weight: 300;
  line-height: 1.2;
  white-space: nowrap;
}

.home-nav a,
.site-footer nav a {
  position: relative;
}

.home-nav a::after,
.site-footer nav a::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.home-nav a:hover::after,
.home-nav a:focus-visible::after,
.site-footer nav a:hover::after,
.site-footer nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.home-youtube {
  position: absolute;
  z-index: 8;
  top: 520px;
  right: calc(50% - 480px);
}

.home-language {
  position: absolute;
  z-index: 12;
  top: 22px;
  right: calc(50% - 480px);
}

.site-menu-toggle {
  display: none;
}

.home-hero {
  position: absolute;
  z-index: 3;
  top: 48px;
  left: calc(50% - 248px);
  width: calc(50% + 248px);
  max-width: 812px;
  height: 440px;
  overflow: hidden;
  border-radius: 48px 0 0 48px;
  color: var(--paper);
}

.home-hero__art,
.home-hero__art::after {
  position: absolute;
  inset: 0;
}

.home-hero__art {
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
}

.home-hero__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 62%;
  transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.home-hero:hover .home-hero__art img {
  transform: scale(1.025);
}

.home-hero__art::after {
  background: rgba(0, 0, 0, 0.27);
  content: "";
}

.home-hero__eyebrow {
  position: absolute;
  top: 110px;
  right: 58px;
  margin: 0;
  color: var(--brand-color);
  font-size: 21px;
  text-align: right;
  white-space: nowrap;
}

.home-hero h1 {
  position: absolute;
  top: 121px;
  left: 0;
  width: 100%;
  margin: 0;
  font-size: 124px;
  font-weight: 300;
  line-height: 1.01;
  letter-spacing: -0.045em;
}

.home-courses {
  position: relative;
  z-index: 8;
  width: 960px;
  display: grid;
  grid-template-columns: repeat(4, 220px);
  gap: 16px 26.6667px;
  align-content: start;
  margin: 0 auto;
}

.course-grid__loading,
.course-grid__message {
  grid-column: 1 / -1;
  margin: 0;
  padding: 22px;
  border: 3px solid var(--ink);
  border-radius: 22px;
  background: var(--paper);
  font-weight: 600;
}

.course-card {
  position: relative;
  display: block;
  width: 220px;
  min-width: 0;
  height: 259px;
  overflow: hidden;
  border: 10px solid var(--ink);
  border-radius: 26px;
  background-color: #6558d8;
  background-position: center;
  background-size: cover;
  color: var(--paper);
  isolation: isolate;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.course-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent 45%);
  content: "";
}

.course-card:hover,
.course-card:focus-visible {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
  outline: 0;
  transform: translateY(-5px);
}

.course-card[aria-disabled="true"] {
  cursor: default;
}

.course-card[aria-disabled="true"]:hover {
  box-shadow: none;
  transform: none;
}

.course-card__header {
  position: absolute;
  top: 5px;
  right: 12px;
  left: 12px;
  display: grid;
  gap: 2px;
}

.course-card__title {
  overflow: hidden;
  display: -webkit-box;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.08;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.course-card__status {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.2;
}

.course-card__dot {
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform 180ms ease;
}

.course-card:not([aria-disabled="true"]):hover .course-card__dot {
  transform: translateX(-50%) scale(0.78);
}

.home-information {
  width: min(calc(100% - 40px), 960px);
  margin: 0 auto;
}

.home-copy {
  scroll-margin-top: 30px;
}

.home-copy h2 {
  margin: 0 0 62px;
  color: var(--brand-color);
  font-size: 40px;
  font-weight: 300;
  line-height: 1.1;
}

.home-copy p {
  max-width: 920px;
  margin: 0;
  font-size: clamp(28px, 2.7vw, 40px);
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: -0.018em;
}

.home-copy--licenses {
  padding: 108px 0 82px;
}

.home-copy--disclaimer {
  padding: 68px 0 92px;
  border-top: 1px solid var(--line);
}

.home-copy--disclaimer h2 {
  margin-bottom: 38px;
}

.home-copy--disclaimer p {
  max-width: 890px;
  color: #575757;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.42;
}

.home-copy--licenses h2 {
  margin-bottom: 62px;
}

.home-copy--licenses p {
  max-width: 850px;
  color: #575757;
  font-size: clamp(24px, 2.35vw, 34px);
  line-height: 1.25;
}

.home-footer {
  margin-top: 0;
}

@media (max-width: 1180px) {
  .home-stage {
    min-height: 1245px;
  }

  .home-brand,
  .home-courses {
    left: 24px;
  }

  .home-courses {
    left: auto;
    width: calc(100% - 48px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .course-card {
    width: 100%;
  }

  .home-youtube {
    right: 30px;
  }

  .home-language {
    right: 24px;
  }
}

@media (max-width: 920px) {
  .home-stage {
    min-height: 1415px;
    padding-top: 620px;
  }

  .home-background {
    height: 940px;
  }

  .home-glass {
    right: 16px;
    left: 16px;
    width: auto;
    height: 600px;
    border-radius: 0 0 48px 48px;
  }

  .home-brand {
    top: 24px;
    width: 132px;
    height: 160px;
  }

  .home-brand__mark {
    width: 132px;
    height: 132px;
    border-width: 7px;
  }

  .home-brand__mark img {
    inset: 20px;
    width: 78px;
    height: 78px;
  }

  .home-brand__name {
    top: 140px;
    left: 0;
    width: 132px;
    font-size: 15px;
  }

  .home-nav {
    top: 45px;
    right: 36px;
    left: 180px;
    justify-content: flex-end;
    gap: clamp(18px, 4vw, 38px);
    color: var(--ink);
    font-size: clamp(18px, 3vw, 28px);
  }

  .home-youtube {
    top: 105px;
    right: 38px;
  }

  .home-language {
    top: 20px;
    right: 90px;
  }

  .home-hero {
    top: 190px;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
    height: 380px;
    border-radius: 36px;
  }

  .home-hero__eyebrow {
    top: 38px;
    right: 24px;
    font-size: clamp(16px, 3vw, 22px);
  }

  .home-hero h1 {
    top: 78px;
    left: 24px;
    width: calc(100% - 48px);
    font-size: clamp(68px, 12vw, 108px);
  }

  .home-courses {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .home-stage {
    min-height: 1740px;
  }

  .home-nav {
    position: fixed;
    z-index: 40;
    top: 14px;
    right: 14px;
    left: auto;
    width: min(280px, calc(100vw - 28px));
    display: none;
    gap: 2px;
    padding: 72px 14px 14px;
    border-radius: 28px;
    background: var(--ink);
    color: var(--paper);
    box-shadow: var(--shadow);
    font-size: 21px;
  }

  .home-nav.is-open {
    display: grid;
  }

  .home-nav a {
    padding: 11px 13px;
    border-radius: 12px;
  }

  .home-nav a:hover {
    background: rgba(255, 255, 255, 0.13);
  }

  .site-menu-toggle {
    position: fixed;
    z-index: 50;
    top: 22px;
    right: 22px;
    width: 52px;
    height: 52px;
    display: grid;
    place-content: center;
    gap: 6px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    cursor: pointer;
  }

  .site-menu-toggle span:not(.visually-hidden) {
    width: 23px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(8px) rotate(45deg);
  }

  .site-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .site-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .home-youtube {
    top: 116px;
    right: 22px;
  }

  .home-language {
    top: 20px;
    right: 84px;
  }

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

  .home-copy h2 {
    margin-bottom: 34px;
    font-size: 33px;
  }

  .home-copy p,
  .home-copy--licenses p {
    font-size: clamp(22px, 6.3vw, 30px);
  }
}

@media (max-width: 480px) {
  .home-stage {
    min-height: 1620px;
    padding-top: 545px;
  }

  .home-background {
    height: 850px;
  }

  .home-glass {
    height: 520px;
  }

  .home-brand {
    top: 18px;
    left: 18px;
    width: 104px;
  }

  .home-brand__mark {
    width: 104px;
    height: 104px;
    border-width: 6px;
  }

  .home-brand__mark img {
    inset: 15px;
    width: 62px;
    height: 62px;
  }

  .home-brand__name {
    top: 112px;
    width: 104px;
    font-size: 12px;
  }

  .site-menu-toggle {
    top: 18px;
    right: 18px;
  }

  .home-youtube {
    top: 119px;
    right: 18px;
    font-size: 12px;
  }

  .home-youtube img {
    width: 27px;
  }

  .home-hero {
    top: 164px;
    height: 330px;
    border-radius: 32px;
  }

  .home-hero__eyebrow {
    top: 30px;
    right: 18px;
    left: 18px;
    font-size: 14px;
  }

  .home-hero h1 {
    top: 72px;
    left: 20px;
    width: calc(100% - 40px);
    font-size: clamp(58px, 20vw, 84px);
    line-height: 1.02;
  }

  .home-courses {
    left: auto;
    width: calc(100% - 36px);
    gap: 12px;
  }

  .course-card {
    height: 222px;
    border-width: 7px;
    border-radius: 22px;
  }

  .course-card__title {
    font-size: clamp(20px, 6.2vw, 28px);
  }

  .course-card__status {
    font-size: 13px;
  }

  .course-card__dot {
    width: 38px;
    height: 38px;
  }

  .home-information {
    width: calc(100% - 36px);
  }

  .home-copy--licenses {
    padding: 74px 0 66px;
  }

  .home-copy--disclaimer {
    padding: 54px 0 66px;
  }
}
