/* ========================================
   DARK PORTFOLIO — Responsive
   ======================================== */

@media (max-width: 1280px) {
  :root {
    --pad: 48px;
  }

  .hero__title {
    font-size: clamp(44px, 4.8vw, 72px);
  }

  .about__grid {
    grid-template-columns: 210px minmax(0, 1fr) minmax(200px, 250px);
  }

  .about__photo {
    width: 210px;
    height: 270px;
  }
}

@media (max-width: 1024px) {
  :root {
    --pad: 36px;
    --header-h: 78px;
  }

  .nav {
    gap: 24px;
  }

  .hero {
    min-height: 100svh;
    height: 100svh;
  }

  .about__grid {
    grid-template-columns: 220px 1fr;
    gap: 32px;
  }

  .skills {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding-top: 8px;
  }

  .works-long {
    gap: 14px;
  }
}

@media (max-width: 768px) {
  :root {
    --pad: 24px;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(8, 11, 13, 0.96);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
  }

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

  .nav__link {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .header__cta {
    display: none;
  }

  .burger {
    display: flex;
  }

  .header.is-menu-open .burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .header.is-menu-open .burger span:nth-child(2) {
    opacity: 0;
  }

  .header.is-menu-open .burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    min-height: 560px;
  }

  .categories__row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    overflow: hidden;
  }

  .categories__item {
    flex: unset;
    min-width: 0;
    padding: 16px 6px;
    align-items: center;
    text-align: center;
  }

  .categories__name {
    font-size: 9px;
    letter-spacing: 0.04em;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .categories__sub {
    font-size: 10px;
    max-width: none;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .about__grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 28px;
  }

  .about__photo {
    width: min(260px, 72vw);
    height: min(300px, 82vw);
    margin-inline: auto;
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .about__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
  }

  .about__body {
    width: 100%;
    max-width: 480px;
  }

  .about__body .eyebrow {
    display: inline-flex;
    justify-content: center;
    width: auto;
  }

  .about__text {
    max-width: none;
    margin-inline: auto;
  }

  .skills {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center;
    gap: 10px;
  }

  .skills__item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    min-width: 0;
  }

  .skills__name {
    font-size: 13px;
  }

  .skills__desc {
    font-size: 11px;
  }

  .hero__content {
    align-items: center;
    text-align: center;
    padding-inline: 8px;
  }

  .hero__content .hero__title {
    text-align: center;
  }

  .contact__content {
    text-align: center;
    margin-inline: auto;
    max-width: 100%;
  }

  .contact__actions {
    justify-content: center;
  }

  .portfolio__title,
  .portfolio__head {
    text-align: center;
  }

  .works-long {
    grid-template-columns: 1fr;
  }

  .reels__track {
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
  }

  .contact__actions {
    flex-direction: column;
  }

  .contact__actions .btn {
    width: 100%;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --pad: 20px;
  }

  .hero__title {
    font-size: clamp(36px, 11vw, 48px);
  }

  .about__title {
    font-size: 28px;
  }

  .categories__item {
    padding: 14px 4px;
  }

  .categories__name {
    font-size: 8px;
    letter-spacing: 0.02em;
  }

  .categories__sub {
    font-size: 9px;
  }

  .modal {
    padding: 12px;
  }
}

@media (max-width: 360px) {
  :root {
    --pad: 16px;
  }
}
