@media (max-width: 900px) {
  .wordmark {
    width: 52px;
    height: 52px;
  }

  .wordmark__logo-wrap {
    width: 52px;
    height: 52px;
  }

  .site-menu {
    position: fixed;
    z-index: 15;
    inset: 0;
    display: flex;
    visibility: hidden;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
    opacity: 0;
    background: rgba(20, 9, 29, 0.98);
    transition:
      opacity 220ms ease,
      visibility 220ms ease;
  }

  .site-menu.is-open {
    visibility: visible;
    opacity: 1;
  }

  .site-menu a {
    font-size: 0.86rem;
  }

  .menu-toggle {
    position: relative;
    z-index: 20;
    display: flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0;
    gap: 5px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle > span:not(.sr-only) {
    display: block;
    width: 25px;
    height: 1px;
    background: white;
    transition:
      transform 180ms ease,
      opacity 180ms ease;
  }

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

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

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

  .teachers-grid {
    max-width: 620px;
    gap: 55px;
    grid-template-columns: 1fr;
  }

  .teacher:nth-child(even) {
    padding-left: 15%;
  }

  .programs {
    gap: 60px;
    grid-template-columns: 1fr;
  }

  .section-heading--left {
    max-width: 580px;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .teachers-grid {
    max-width: 560px;
    gap: 48px;
  }

  .teacher,
  .teacher:nth-child(even) {
    display: grid;
    width: 100%;
    align-items: center;
    padding-left: 0;
    gap: 28px;
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .teacher__portrait {
    width: 150px;
    height: 150px;
  }

  .teacher__body {
    min-width: 0;
    text-align: left;
  }
}

@media (max-width: 640px) {
  :root {
    --section-space: 76px;
  }

  .site-background {
    position: fixed;
    top: 0;
    right: auto;
    bottom: auto;
    left: 0;
    width: 100vw;
    height: 100lvh;
    min-height: 100lvh;
    background-position: center center;
    background-size: cover;
    transform: none;
  }

  body {
    font-size: 15px;
  }

  .container,
  .topbar {
    width: min(calc(100% - 32px), var(--container));
  }

  h1 {
    font-size: clamp(3.35rem, 18vw, 5.4rem);
  }

  h2 {
    font-size: clamp(2.15rem, 12vw, 3.5rem);
  }

  .site-menu a {
    font-size: 1.35rem;
  }

  .topbar {
    z-index: 1000;
    padding-top: 18px;
  }

  .site-menu {
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(20, 8, 30, 0.98);
  }

  .menu-toggle {
    position: relative;
    z-index: 1001;
  }

  .wordmark__logo-wrap {
    width: 42px;
    height: 42px;
  }

  .wordmark {
    width: 42px;
    height: 42px;
  }

  .hero {
    min-height: 780px;
  }

  .hero__content {
    top: -42px;
    margin-top: -1vh;
  }

  .hero__content .eyebrow {
    font-size: 0.7rem;
  }

  .hero__georgian {
    font-size: 1.1rem;
  }

  .button {
    min-width: 170px;
    min-height: 52px;
  }

  .media-slot__note {
    right: 12px;
    bottom: 12px;
    font-size: 0.52rem;
  }

  .section--intro {
    border-width: 5px;
  }

  .about__logo-wrap {
    width: 150px;
    height: 150px;
    margin-bottom: 22px;
  }

  .intro h2 {
    font-size: 1.7rem;
  }

  .intro__copy {
    margin-top: 28px;
    font-size: 0.83rem;
    line-height: 1.8;
  }

  .section--teachers {
    padding: 76px 0 82px;
    border-width: 5px;
  }

  .section-heading {
    margin-bottom: 44px;
  }

  .teachers-grid {
    gap: 48px;
  }

  .teacher,
  .teacher:nth-child(even) {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-left: 0;
    text-align: center;
  }

  .teacher__portrait {
    width: 168px;
    height: 168px;
  }

  .gallery {
    padding: 66px 0 76px;
  }

  .slider {
    width: calc(100% + 32px);
    margin-left: -16px;
    padding: 0 0 38px;
  }

  .slider__arrow {
    top: calc(50% - 16px);
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.88);
  }

  .slider__arrow--prev {
    left: 12px;
  }

  .slider__arrow--next {
    right: 12px;
  }

  .media-slot--stage {
    aspect-ratio: 4 / 5;
  }

  .programs {
    gap: 50px;
  }

  .programs__list {
    gap: 42px;
  }

  .program {
    gap: 18px;
    grid-template-columns: 26px 1fr;
  }

  .program__star {
    width: 26px;
    height: 26px;
  }

  .program p {
    font-size: 0.78rem;
    line-height: 1.8;
  }

  .signup {
    min-height: 570px;
    border-width: 5px;
  }

  .signup__inner p:not(.eyebrow) {
    font-size: 0.84rem;
  }

  .footer {
    padding-top: 82px;
  }

  .footer__inner h2 {
    margin-top: 24px;
    font-size: 1.55rem;
  }

  .footer__social-label {
    margin-top: 58px;
  }

  .footer__bottom {
    margin-top: 70px;
  }
}

@media (max-width: 380px) {
  .hero {
    min-height: 700px;
  }

  .footer__inner h2 {
    font-size: 1.32rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
