/* ===== Responsive overrides — tablet & mobile ===== */

/* Burger button — hidden on desktop */
.nav-burger{
  display:none;
  width:44px;height:44px;border-radius:10px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(10,21,48,.10);
  flex-direction:column;justify-content:center;align-items:center;gap:5px;
  cursor:pointer;
  transition:background .25s, border-color .25s;
}
.nav-burger span{
  display:block;width:18px;height:1.6px;background:var(--ink);
  transition:transform .35s var(--ease-out), opacity .25s;
  transform-origin:center;
}
.nav.over-dark:not(.scrolled) .nav-burger{
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.18);
}
.nav.over-dark:not(.scrolled) .nav-burger span{background:#fff}
.nav-burger.is-open span:nth-child(1){transform:translateY(6.6px) rotate(45deg)}
.nav-burger.is-open span:nth-child(2){opacity:0}
.nav-burger.is-open span:nth-child(3){transform:translateY(-6.6px) rotate(-45deg)}

/* Mobile menu overlay */
.mobile-menu{
  position:fixed;inset:0;z-index:79;
  background:rgba(7,13,31,.55);
  backdrop-filter:blur(10px);
  opacity:0;pointer-events:none;
  transition:opacity .35s var(--ease-out);
}
.mobile-menu.open{opacity:1;pointer-events:auto}
.mobile-menu-inner{
  position:absolute;top:0;right:0;
  width:min(90%,360px);height:100%;
  background:#fff;
  padding:96px 32px 32px;
  display:flex;flex-direction:column;gap:6px;
  transform:translateX(100%);
  transition:transform .45s var(--ease-out);
  box-shadow:-20px 0 60px rgba(0,0,0,.25);
}
.mobile-menu.open .mobile-menu-inner{transform:translateX(0)}
.mobile-link{
  font-size:22px;font-weight:600;letter-spacing:-.02em;
  color:var(--ink);padding:14px 0;
  border-bottom:1px solid var(--line);
  transition:color .25s;
}
.mobile-link:hover{color:var(--navy-700)}
.mobile-cta{
  margin-top:24px;
  display:inline-flex;align-items:center;justify-content:space-between;
  background:var(--ink);color:#fff;
  padding:18px 22px;border-radius:14px;
  font-weight:600;font-size:15px;
}
.mobile-meta{
  margin-top:auto;padding-top:24px;border-top:1px solid var(--line);
  display:flex;flex-direction:column;gap:10px;
}
.mobile-meta a{font-size:14px;color:var(--muted);font-weight:500}
.mobile-meta a:hover{color:var(--navy-700)}

/* ===== Tablet (≤ 1000px) ===== */
@media(max-width:1000px){
  .nav-links{display:none}
  .nav-burger{display:flex}
  .nav-cta{display:none}

  .hero-v2{padding-top:96px}
  .hero-v2-inner{gap:48px}
  .hero-v2-stats{gap:18px}
  .hv2-divider{display:none}

  /* Hero v3 — stats + project card */
  .hero-v3-stats{gap:18px}
  .hv3-divider{display:none}

  .services-header,.showcase-header,.ba-grid,.contact-grid,.process-header{gap:32px}
}

/* ===== Mobile (≤ 720px) ===== */
@media(max-width:720px){
  :root{--gutter:20px}

  .section{padding:72px 0}
  .h-xl{font-size:clamp(34px,8vw,52px)}
  .h-lg{font-size:clamp(26px,6vw,36px)}
  .body-lg{font-size:15px}

  /* Nav */
  .nav{padding:14px var(--gutter)}
  .nav-logo{height:48px}

  /* Hero v3 */
  .hero-v3{padding:88px var(--gutter) 0;min-height:auto}
  .hero-v3-inner{grid-template-columns:minmax(0,1fr);gap:40px;padding-bottom:32px}
  .hero-v3-title{font-size:clamp(34px,8vw,48px)}
  .hero-v3-lede{font-size:15px}
  .hero-v3-actions{flex-direction:column;align-items:stretch;gap:14px}
  .hero-v3-actions .btn{width:100%;justify-content:center}
  /* Drop the link's underline on mobile — at full-width it reads as a duplicate divider */
  .hero-v3-actions .btn-link{
    border-bottom:none;padding-bottom:0;
    justify-content:center;
  }
  .hero-v3-stats{gap:14px 24px}
  .hv3-stat{min-width:auto;flex:1 1 calc(50% - 12px)}
  .hero-v3-right{min-height:auto}
  .proj-stage{max-width:420px;width:100%}
  .proj-card.behind-1{transform:translate(10px,8px) rotate(2deg) scale(.96)}
  .proj-card.behind-2{transform:translate(20px,16px) rotate(3.6deg) scale(.92)}
  .proj-card-inner{padding:20px}
  .proj-illus{margin:8px -20px -10px}
  .proj-bottom{margin:0 -20px -20px;padding:16px 20px 20px}
  .proj-stats{gap:10px}
  .hero-v3-foot{padding:16px 0 20px}

  /* Hero */
  .hero-v2{padding:88px var(--gutter) 0;min-height:auto}
  .hero-v2-inner{grid-template-columns:minmax(0,1fr);gap:40px;padding-bottom:32px}
  .hero-v2-title{font-size:clamp(34px,8vw,48px)}
  .hero-v2-lede{font-size:15px}
  .hero-v2-actions{flex-direction:column;align-items:stretch;gap:14px}
  .hero-v2-actions .btn{width:100%;justify-content:center}
  .hero-v2-stats{gap:14px 24px}
  .chip-stage{width:100%;max-width:320px;height:380px}
  .hero-v2-right{min-height:auto}
  .hero-v2-foot{padding:16px 0 20px}
  .hf-item.right{align-items:flex-start;text-align:left}

  /* Marquee */
  .marquee-item{font-size:18px;gap:32px}
  .marquee-track{gap:32px}

  /* Services */
  .svc-grid{grid-template-columns:1fr;gap:16px}
  .svc-card{min-height:440px}

  /* Before/After */
  .ba-grid{grid-template-columns:1fr;gap:32px}
  .ba-stage{aspect-ratio:3/4}
  .ba-stat-row{grid-template-columns:1fr 1fr;gap:18px}
  .ba-stat .num{font-size:32px}

  /* Clients */
  .clients{padding:48px 0}
  .clients-head{margin-bottom:32px}
  .clients-track{gap:40px}

  /* Process */
  .steps{grid-template-columns:1fr}
  .step{min-height:auto;padding:28px 24px}
  .step .num{font-size:48px}

  /* Showcase */
  .showcase-header{grid-template-columns:1fr;gap:24px}
  .showcase-grid{gap:12px}
  .proj.size-md,.proj.size-lg,.proj.size-sm,.proj.size-tall,.proj.size-wide{
    grid-column:span 12;aspect-ratio:4/3;
  }
  .filter-pill{padding:8px 14px;font-size:12px}

  /* Testimonials */
  .test-grid{grid-template-columns:1fr;gap:16px}
  .test-card{padding:28px 24px}
  .test-quote{font-size:16px}
  .test-card.featured .test-quote{font-size:18px}

  /* Contact */
  .contact-grid{grid-template-columns:1fr;gap:40px}
  .contact-form{padding:24px}
  .form-row{grid-template-columns:1fr;gap:14px;margin-bottom:14px}
  .submit-row{flex-direction:column;align-items:stretch;gap:14px}
  .submit-row .btn-submit{width:100%;justify-content:center}

  /* Footer */
  .footer{padding:56px 0 32px}
  .footer-top{grid-template-columns:1fr;gap:32px;padding-bottom:40px;margin-bottom:24px}
  .footer-bottom{flex-direction:column;align-items:flex-start;gap:18px}
}

/* ===== Tiny mobile (≤ 420px) ===== */
@media(max-width:420px){
  .hero-v2-title{font-size:32px}
  .hv2-stat{min-width:auto;flex:1}
  .hero-v3-title{font-size:32px}
  .hv3-stat{flex:1 1 100%}
  .proj-title{font-size:20px}
  .proj-desc{font-size:13px}
  .proj-stats strong{font-size:13px}
  .ba-stat-row{grid-template-columns:1fr}
  .chip-tag{top:-14px;left:0;font-size:10px;padding:6px 12px}
}
