/* responsive.css — breakpoints and reduced-motion */
/* ---- Responsive ---- */
@media (max-width: 1300px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-line {
    display: none;
  }

  .hero-right {
    order: -1;
    text-align: center;
  }

  .hero-right .specialty {
    margin: 0 auto;
  }

  .hero-branch {
    width: 150px;
    margin: 28px auto;
  }

  .hero-left {
    margin-top: 0;
  }

  .hero-skills {
    margin-left: 0;
  }

  .hero h1 {
    margin-top: 40px;
  }

  .devices {
    margin-left: 0;
  }
}

@media (max-width: 1070px) {
  .proof-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric {
    border-top: 1px solid var(--line);
  }

  .metric:nth-child(-n + 2) {
    border-top: 0;
  }

  .metric:nth-child(odd) {
    border-left: 0;
  }

  .work-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .work-media {
    order: 2;
  }

  .about-grid,
  .section-head {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .lead {
    text-align: left;
    justify-self: start;
  }

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

  .skill-grid,
  .services,
  .process {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-location {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(320px, 90vw);
    flex-direction: column;
    align-items: stretch;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18), 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 10px;
    gap: 2px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: flex;
    padding: 12px 14px;
    font-size: 1rem;
  }

  .nav-links .nav-sep {
    align-self: stretch;
    width: auto;
    height: 1px;
    margin: 8px 4px;
    background: rgba(0, 0, 0, 0.12);
  }

  .nav-links a.btn,
  .nav-links button.btn {
    margin: 12px 0 0;
    justify-content: center;
    width: 100%;
    font-size: 0.95rem;
  }
}

@media (max-width: 640px) {
  section {
    padding: 72px 0;
  }

  .summary-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .summary-burst-row {
    min-height: 0;
    padding: 12px 0;
  }

  .summary-blocks-tech {
    position: static;
    width: min(100%, 360px);
    transform: none;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .metric {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .metric:first-child {
    border-top: 0;
  }

  .gallery-grid,
  .skill-grid,
  .services,
  .process {
    grid-template-columns: 1fr;
  }

  .testimonial,
  .upwork {
    padding: 26px;
  }

  .upwork-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .nav-shell {
    padding: 0 18px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .dv--browser {
    left: 18%;
    width: 68%;
  }

  .dv--phone {
    left: 3%;
    top: 21%;
  }

  .dv--tablet {
    right: -6%;
    top: 35%;
  }

  .tech-band .tech-chips {
    gap: 7px;
  }

  .tech-band .tech-chips li {
    padding: 4px 8px;
    font-size: 0.66rem;
  }
}

@media (max-width: 500px) {
  html,
  body {
    overflow-x: hidden;
  }

  .container {
    width: 80%;
  }

  .hero h1 {
    font-size: 21px;
  }

  .hero h2 {
    font-size: 24px;
    width: 300px;
  }

  .hero h1 span.exp {
    font-size: 13px;
  }

  .devices {
    width: min(100%, 320px);
    margin-left: 0;
  }

  .dv--browser {
    left: 16%;
    width: 70%;
  }

  .dv--phone {
    left: 1%;
    top: 21%;
  }

  .dv--tablet {
    right: -2%;
    top: 36%;
  }

  .hero-skills {
    grid-template-columns: 1fr 1fr;
    column-gap: 12px;
    row-gap: 10px;
  }

  .hero-skills li {
    font-size: 0.78rem;
  }

  .hero-skill-marker {
    width: 13px;
    height: 13px;
  }

  .proof-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .testimonial {
    padding: 0;
  }

  .tech-band .tech-chips {
    gap: 6px;
  }

  .tech-band .tech-chips li {
    padding: 3px 7px;
    font-size: 0.62rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .gold {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  header.nav,
  .portrait-wrap,
  .hero-line::before,
  .hero-branch,
  .hero-left,
  .hero-right,
  .hero-bottom,
  .proof-grid {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-loader {
    display: none;
  }

  .shot-slides img {
    animation: none;
    transition: none;
  }

  .hero-skill-marker,
  .hero-skill-label {
    animation: none;
  }

  .shot-slides img:nth-child(n + 2) {
    display: none;
  }

  .btn,
  .work-card,
  .gallery:hover .ph {
    transition: none;
  }
}
@media (min-width: 1300px) {
    .hero h1 span.exp {
      position: absolute;
      right: 0;
      margin: -64px 80px 0 0;
    }
    .hero h1{
        margin-top: 0;
    }
}
