/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  .hero h1,
  .section-free h2 {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .brand-role {
    display: none;
  }

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

  .site-header {
    width: min(300px, calc(100vw - 48px));
    box-shadow: 24px 0 48px rgba(0, 0, 0, 0.64);
  }
}

@media (max-width: 760px) {
  body::after {
    display: none;
  }

  .floating-toggle {
    top: 16px;
    left: 16px;
    width: 44px;
    height: 44px;
  }

  .site-header {
    width: min(300px, calc(100vw - 48px));
  }

  .snap-page--home::before,
  .snap-page--about::before,
  .snap-page--projects::before,
  .snap-page--contact::before {
    animation: none;
  }

  .section-free {
    padding-top: clamp(88px, 13vh, 124px);
  }

  .section-free h2 {
    max-width: 100%;
    font-size: clamp(3rem, 12vw, 5rem);
    line-height: 0.92;
  }

  .hero-description,
  .section-lead {
    max-width: 100%;
  }

  .hero-description,
  .section-lead {
    font-size: clamp(1.08rem, 4.6vw, 1.4rem);
  }

  .loader-content {
    width: min(280px, calc(100vw - 32px));
  }

  .loader-glitch {
    font-size: 1.45rem;
  }

  .loader-status {
    font-size: 0.74rem;
  }
}

@media (max-width: 560px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

}

@media (max-height: 540px) and (orientation: landscape) {
  body::after {
    display: none;
  }

  .snap-page {
    align-items: stretch;
  }

  .hero,
  .section-free {
    min-height: auto;
    justify-content: flex-start;
    padding-top: 24px;
    padding-bottom: 28px;
  }

  .section-free {
    padding-inline: 10px;
  }

  .hero h1,
  .hero-description {
    max-width: 100%;
    margin-inline: auto;
  }

  .hero-actions {
    margin-top: 24px;
  }


  .loader-glitch {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .snap-root {
    scroll-snap-type: none;
    scroll-behavior: auto;
  }

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

  .snap-page .page-content,
  .snap-page .page-content .eyebrow,
  .snap-page .page-content .section-label,
  .snap-page .page-content h1,
  .snap-page .page-content h2,
  .snap-page .page-content .hero-description,
  .snap-page .page-content .section-lead,
  .snap-page .page-content .hero-actions {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  #cyber-loader,
  .tv-turn-off {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
