/* =========================
   TABLET + MOBILE
========================= */

@media (max-width: 1200px) {

  /* NAVIGATION */

  .mobile-toggle {

    display: block;

    z-index: 1003;
  }

  .nav-menu {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100vh;

    padding-top: 11rem;

    background:
      rgba(10,13,18,0.985);

    backdrop-filter:
      blur(28px);

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 2.2rem;

    opacity: 0;
    visibility: hidden;

    transform:
      translateY(-18px);

    transition:
      opacity 1s cubic-bezier(.16,.84,.44,1),
      transform 1s cubic-bezier(.16,.84,.44,1),
      visibility 1s ease;

    z-index: 1001;
  }

  .nav-menu.mobile-active {

    opacity: 1;
    visibility: visible;

    transform:
      translateY(0);
  }

  .nav-menu a {

    font-family: var(--font-mono);

    font-size: 0.78rem;

    letter-spacing: 0.22em;

    text-transform: uppercase;

    color:
      rgba(255,255,255,0.68);

    transition:
      color 0.6s ease,
      opacity 0.6s ease;
  }

  .nav-menu a:hover {

    color:
      rgba(255,255,255,0.96);
  }

  /* HERO */

  .hero-section {

    min-height: 92vh;
  }

  .hero-content {

    max-width: 100%;

    padding-top: 16vh;

    padding-bottom: 8vh;
  }

  .hero-content h1 {

    font-size:
      clamp(3rem, 8vw, 5rem);

    max-width: 100%;

    line-height: 0.95;

    margin-bottom: 2rem;
  }

  .hero-content p {

    max-width: 88%;

    font-size: 1rem;

    line-height: 1.65;

    margin-bottom: 2.6rem;
  }
}

/* =========================
   PORTRAIT EXPERIENCE SCROLL
========================= */

@media (orientation: portrait) {

  .ecosystem-section {

    overflow: hidden;

    padding-top: 5rem;

    padding-bottom: 7rem;
  }

  .experiences-wrapper {

    display: flex;

    gap: 1rem;

    overflow-x: auto;

    overflow-y: hidden;

    scroll-snap-type: x mandatory;

    padding-bottom: 1rem;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
  }

  .experiences-wrapper::-webkit-scrollbar {

    display: none;
  }

  .experience-item {

    flex: 0 0 88%;

    scroll-snap-align: center;
  }

  .experience-card {

    min-height: 500px;
  }

  .experience-content {

    min-height: 500px;

    padding:
      2.3rem 2rem;
  }
}

/* =========================
   LANDSCAPE
========================= */

@media (orientation: landscape) {

  .hero-section {

    min-height: 88vh;
  }

  .hero-content {

    padding-top: 8vh;
  }

  .experiences-wrapper {

    display: grid;

    grid-template-columns:
      repeat(3, 1fr);

    gap: 1rem;
  }

  .experience-card {

    min-height: 400px;
  }

  .experience-content {

    min-height: 400px;
  }
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 600px) {

  .hero-content {

    padding-top: 14vh;
  }

  .hero-content h1 {

    font-size:
      clamp(2.5rem, 11vw, 3.8rem);

    line-height: 0.96;
  }

  .hero-content p {

    max-width: 95%;
  }

  .experience-item {

    flex: 0 0 92%;
  }

  .experience-card {

    min-height: 440px;
  }

  .experience-content {

    min-height: 440px;

    padding:
      2rem 1.6rem;
  }

  .experience-content h3 {

    font-size: 2.1rem;
  }
  
  /* =========================
   MOBILE MENU FIX
========================= */

@media (max-width: 900px) {

  .nav-menu {

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
      opacity 0.6s ease,
      visibility 0.6s ease;
  }

  .nav-menu.mobile-active {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;
  }
}
}