/* =====================================================
   THE DOMUS — Responsive v3 (White Luxury Edition)
   Breakpoints: 1920 / 1440 / 1200 / 1024 / 768 / 480 / 375
   ===================================================== */

/* =====================================================
   ULTRA-WIDE (1920px+)
   ===================================================== */
@media (min-width: 1920px) {
  :root { --gutter: 7rem; --section-pad: 13rem; }
  .hero-headline { font-size: 10rem; }
  .swatch-board { grid-template-columns: repeat(4, 1fr); }
  .awards-grid  { grid-template-columns: repeat(4, 1fr); }
}

/* =====================================================
   LARGE DESKTOP (1440px)
   ===================================================== */
@media (min-width: 1440px) {
  .container { max-width: 1440px; }
}

/* =====================================================
   DESKTOP (max 1200px)
   ===================================================== */
@media (max-width: 1200px) {
  .project-card:nth-child(1) { grid-column: 1 / 9; }
  .project-card:nth-child(2) { grid-column: 9 / 13; }
  .project-card:nth-child(3) { grid-column: 1 / 7; }
  .project-card:nth-child(4) { grid-column: 7 / 13; }
  .footer-top { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-top > *:last-child { grid-column: 1; }
  .team-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =====================================================
   TABLET LANDSCAPE (max 1024px)
   ===================================================== */
@media (max-width: 1024px) {
  :root {
    --section-pad: clamp(4rem, 10vw, 8rem);
    --gutter: clamp(1.5rem, 4vw, 3.5rem);
  }

  /* Nav & Header */
  .site-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    column-gap: 0 !important;
  }
  .logo {
    position: static !important;
    transform: none !important;
  }
  .nav-links { display: none; }
  .header-utilities { display: none; }
  .hamburger { display: flex; }

  /* Hero Domus Style */
  .hero-domus-style {
    min-height: 100vh;
  }

  /* Split */
  .split { grid-template-columns: 1fr; gap: 3rem; }
  .split.reverse { direction: ltr; }
  .split.reverse > * { direction: ltr; }
  .media-block { aspect-ratio: 16/9 !important; }
  .media-offset { display: none; }

  /* Swatch board */
  .swatch-board { grid-template-columns: repeat(2, 1fr); }
  .swatch:nth-child(2) { border-right: none; }
  .swatch:nth-child(3) { border-top: 1px solid var(--border); }
  .swatch:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }

  /* Services */
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  /* Awards */
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
  .award-card:nth-child(2) { border-right: none; }
  .award-card:nth-child(3) { border-top: 1px solid var(--border); }
  .award-card:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }

  /* Team */
  .team-grid { grid-template-columns: repeat(2, 1fr); }

  /* Philosophy — tighter gap at laptop, maintain 2-col */
  .philosophy-grid { gap: clamp(50px, 4vw, 80px); }
  .philo-float.f2 { display: none; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }

  /* H-scroll */
  .h-scroll-item { min-width: 80vw; }

  /* Project grid — at 1024px maintain masonry proportions */
  .project-card:nth-child(1) { grid-column: 1 / 8; }
  .project-card:nth-child(1) .media { aspect-ratio: 16 / 10.5; }
  .project-card:nth-child(2) { grid-column: 8 / 13; }
  .project-card:nth-child(2) .media { aspect-ratio: 3 / 4; }
  .project-card:nth-child(3) { grid-column: 1 / 6; }
  .project-card:nth-child(3) .media { aspect-ratio: 3 / 4; }
  .project-card:nth-child(4) { grid-column: 6 / 13; }
  .project-card:nth-child(4) .media { aspect-ratio: 16 / 10.5; }
}

/* =====================================================
   TABLET PORTRAIT (max 768px)
   ===================================================== */
@media (max-width: 768px) {
  :root {
    --gutter: 1.5rem;
    --section-pad: clamp(3.5rem, 9vw, 7rem);
  }

  .hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
  }
  .hero-content {
    padding-top: 120px;
    padding-bottom: 3rem;
  }
  .hero-left {
    padding: 0;
    justify-content: flex-end;
  }
  .hero-headline { font-size: clamp(2.8rem, 10vw, 4.5rem); }
  .hero-sub { max-width: 100%; }
  .hero-ctas { gap: 0.8rem; }
  .scroll-indicator { display: none; }

  /* Project grid — single column on tablet portrait */
  .project-grid { display: flex; flex-direction: column; gap: 24px; }
  .project-card { width: 100%; }
  .project-card:nth-child(1) .media,
  .project-card:nth-child(4) .media { aspect-ratio: 16 / 10.5; }
  .project-card:nth-child(2) .media,
  .project-card:nth-child(3) .media { aspect-ratio: 4 / 3; }

  /* Swatch board remains 2x2 on tablet portrait */
  .swatch-board { grid-template-columns: repeat(2, 1fr); }
  .swatch:nth-child(even) { border-right: none !important; }
  .swatch:nth-child(n+3) { border-top: 1px solid var(--border) !important; }

  /* Services remains 2 columns on tablet portrait */
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  /* Awards */
  .awards-grid { grid-template-columns: repeat(2, 1fr); }

  /* Testimonial */
  .testimonial-slide { grid-template-columns: 1fr; gap: 1.2rem; }
  .t-avatar { display: none; }

  /* Gallery */
  .masonry { columns: 2; }

  /* Team */
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Pull quote */
  .pull-quote blockquote { font-size: clamp(1.4rem, 6vw, 2.4rem); }

  /* Process */
  .process-list { padding-left: 2.5rem; }
  .process-list::before { left: 0.9rem; }
  .process-row .dot { left: -2.1rem; }
  .process-row .content { grid-template-columns: 1fr; gap: 0.4rem; }
  .process-row .ptag { font-size: 0.6rem; }

  /* Lightbox arrows */
  .lightbox-prev { left: 0.8rem; }
  .lightbox-next { right: 0.8rem; }
}

/* =====================================================
   MOBILE (max 480px)
   ===================================================== */
@media (max-width: 480px) {
  :root { --gutter: 1.2rem; }

  .hero-headline { font-size: clamp(2.4rem, 12vw, 3.5rem); }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; justify-content: center; }

  .counters { gap: 1.5rem; }
  .counter .num { font-size: clamp(1.8rem, 8vw, 2.5rem); }

  .masonry { columns: 1; }
  .awards-grid { grid-template-columns: 1fr 1fr; }

  .team-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .team-photo { aspect-ratio: 1/1; }

  /* Swatch board collapses to 1 column on mobile */
  .swatch-board { grid-template-columns: 1fr; }
  .swatch { border-right: none !important; border-bottom: 1px solid var(--border); }
  .swatch:last-child { border-bottom: none; }
  .swatch:nth-child(n) { border-top: none !important; }

  /* Services collapses to 1 column on mobile */
  .services-grid { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1; }

  .slider-nav button { width: 40px; height: 40px; }

  .faq-trigger { padding: 1.2rem 0; }
  .faq-trigger h4 { font-size: 0.95rem; }

  .h-scroll-item { min-width: 90vw; }
}

/* =====================================================
   SMALL MOBILE (max 375px)
   ===================================================== */
@media (max-width: 375px) {
  :root { --gutter: 1rem; }
  .hero-headline { font-size: 2.4rem; }
  .swatch { padding: 1.6rem 1.2rem; }
  .service-card { padding: 2rem 1.4rem; }
}

/* =====================================================
   LANDSCAPE PHONE
   ===================================================== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 100vh;
    min-height: 100vh;
  }
  .hero-left { justify-content: center; padding: 2rem var(--gutter); }
  .hero-right { grid-row: 1; order: 0; height: 100vh; }
  .hero-headline { font-size: clamp(1.8rem, 5vw, 3rem); }
}

/* =====================================================
   PRINT
   ===================================================== */
@media print {
  .site-header, .loader, .cursor-dot, .cursor-ring, .cursor-label,
  .back-to-top, #grain-canvas, .scroll-progress,
  .mobile-nav, .page-transition { display: none !important; }
  body { background: #fff; color: #1c1c1e; }
  .site-footer { background: #f5f3ef; color: #1c1c1e; }
}
