/* ==========================================================================
   DESIGN MEDIAN STUDIO — Responsive adjustments
   Mobile-first intent: base styles are desktop, these queries collapse layouts.
   ========================================================================== */

/* ---------- Large desktop ---------- */
@media (min-width: 1800px) {
  :root {
    --container: 1600px;
  }
}

/* ---------- Laptop / small desktop ---------- */
@media (max-width: 1200px) {
  :root {
    --header-h: 76px;
  }

  .nav {
    gap: 1.1rem;
  }

  .nav__link {
    font-size: 0.82rem;
  }

  .header__actions .btn {
    display: none;
  }

  .project-grid,
  .project-grid--featured,
  .gallery-grid,
  .projects__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .value-grid,
  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Tablet ---------- */
@media (max-width: 992px) {
  .nav,
  .header__actions .btn {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .header__actions {
    gap: 0.5rem;
  }

  .split--2,
  .split--aside,
  .contact-layout,
  .dept-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .dept-card__media {
    min-height: 300px;
    order: -1;
  }

  .about__visual {
    min-height: 420px;
  }

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

  .footer__about {
    grid-column: span 2;
  }

  .hero__side-label {
    display: none;
  }

  .s-offer {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  :root {
    --header-h: 68px;
    --radius-lg: 18px;
  }

  .brand__mark {
    width: 30px;
    height: 30px;
  }
  .brand__name {
    font-size: 0.82rem;
  }
  .brand__sub {
    font-size: 0.5rem;
    letter-spacing: 0.28em;
  }

  .theme-toggle,
  .nav-toggle {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 4.5rem);
    padding-bottom: 6rem;
  }

  .hero__title {
    max-width: 100%;
  }

  .hero__scroll {
    display: none;
  }

  .hero__glow--one {
    width: 80vw;
    height: 80vw;
  }
  .hero__glow--two {
    width: 60vw;
    height: 60vw;
  }
  .hero__orbit--one {
    width: 90vw;
    right: -40%;
  }
  .hero__orbit--two {
    display: none;
  }

  .section-title {
    max-width: 100%;
  }

  .intro__quote,
  .about__lead {
    font-size: var(--fs-lg);
    max-width: 100%;
  }

  .intro__list,
  .capability-grid,
  .mservice-grid,
  .value-grid,
  .process-steps,
  .contact-form__row,
  .project-grid,
  .gallery-grid,
  .projects__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-grid--featured .project-card {
    aspect-ratio: 4 / 3.2;
  }

  .stat-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-row {
    grid-template-columns: 42px 1fr;
    gap: 0.8rem;
  }
  .feature-row__icon {
    display: none;
  }

  .page-head__title {
    max-width: 100%;
  }
  .page-head__index {
    font-size: 30vw;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }
  .footer__about {
    grid-column: auto;
  }
  .footer::after {
    font-size: 22vw;
  }

  .gallery-viewer__stage {
    aspect-ratio: 4 / 3;
  }
  .gallery-viewer__nav {
    width: 40px;
    height: 40px;
  }
  .gallery-viewer__nav--prev {
    left: 0.5rem;
  }
  .gallery-viewer__nav--next {
    right: 0.5rem;
  }

  .modal__dialog {
    max-height: 94vh;
  }
}

/* ---------- Small phones ---------- */
@media (max-width: 480px) {
  :root {
    --gutter: 1.15rem;
  }

  .hero__actions .btn,
  .cta__actions .btn {
    width: 100%;
  }

  .showreel__label strong {
    font-size: var(--fs-base);
  }
  .showreel__hint {
    display: none;
  }
  .showreel__play {
    width: 68px;
    height: 68px;
  }

  .contact-form-wrap {
    padding: 1.25rem;
  }

  .about__visual {
    min-height: 320px;
  }

  .mobile-menu__link {
    font-size: 2rem;
  }
}

/* ---------- Short landscape phones ---------- */
@media (max-height: 540px) and (orientation: landscape) {
  .mobile-menu {
    justify-content: flex-start;
  }
  .mobile-menu__link {
    font-size: 1.6rem;
  }
}
