@media (max-width: 1080px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 3rem;
    min-height: calc(100svh - var(--header-height));
    align-content: center;
    justify-items: center;
  }

  .hero {
    padding-top: calc(var(--header-height) + 0.95rem);
    padding-bottom: 2.6rem;
  }

  .section {
    padding: clamp(5.75rem, 10vw, 7.75rem) 0;
  }

  .hero-copy {
    max-width: 100%;
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .hero-mobile-brand {
    display: grid;
    width: min(250px, 52vw);
    margin-bottom: -0.05rem;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 6vw, 4rem);
  }

  .hero-lead {
    max-width: 34ch;
    margin-inline: auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-panel {
    display: none;
  }
}

@media (max-width: 768px) {
  .background {
    animation-duration: 28s;
  }

  .particle {
    will-change: transform, opacity;
  }

  .particle--star,
  .particle--computer,
  .particle--code {
    animation-name: floatParticle !important;
    animation-timing-function: linear !important;
    animation-iteration-count: infinite !important;
    animation-delay: var(--particle-delay, 0s) !important;
    animation-duration: var(--particle-duration, 18s) !important;
    filter: none !important;
  }

  .container {
    width: min(100% - 1.2rem, var(--container-width));
  }

  .header-inner {
    align-items: flex-start;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .site-logo {
    gap: 0.35rem;
  }

  .site-logo-mark {
    height: 58px;
  }

  .site-logo-title {
    font-size: 1.12rem;
    letter-spacing: 0.14em;
  }

  .site-logo-v {
    text-shadow: 0 0 12px rgba(77, 163, 255, 0.28);
  }

  .site-logo-subtitle {
    font-size: 0.74rem;
    letter-spacing: 0.3em;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 0;
    left: 0;
    display: grid;
    gap: 0.35rem;
    padding: 0.85rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(4, 9, 20, 0.74);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    box-shadow:
      0 24px 56px rgba(0, 0, 0, 0.32),
      0 0 0 1px rgba(142, 197, 255, 0.08) inset;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition:
      opacity 0.24s ease,
      transform 0.24s ease;
    z-index: 2;
  }

  .site-header.nav-open .site-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.78rem 0.85rem;
    border-radius: 0.8rem;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    opacity: 0;
    transform: translateY(-6px);
    transition:
      color 0.2s ease,
      background-color 0.2s ease,
      border-color 0.2s ease,
      opacity 0.22s ease,
      transform 0.22s ease;
  }

  .site-nav a::before {
    content: "";
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.92;
    filter: drop-shadow(0 0 8px rgba(77, 163, 255, 0.3));
    transform: scale(0.96);
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }

  .site-nav a:nth-child(1)::before {
    background-image: url("../assets/icons/nav-home.svg");
  }

  .site-nav a:nth-child(2)::before {
    background-image: url("../assets/icons/nav-services.svg");
  }

  .site-nav a:nth-child(3)::before {
    background-image: url("../assets/icons/nav-projects.svg");
  }

  .site-nav a:nth-child(4)::before {
    background-image: url("../assets/icons/nav-about.svg");
  }

  .site-nav a:nth-child(5)::before {
    background-image: url("../assets/icons/nav-contact.svg");
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(77, 163, 255, 0.14);
    border-color: rgba(77, 163, 255, 0.28);
  }

  .site-nav a:hover::before,
  .site-nav a:focus-visible::before {
    opacity: 1;
    transform: scale(1.04);
  }

  .site-header.nav-open .site-nav a {
    opacity: 1;
    transform: translateY(0);
  }

  .site-header.nav-open .site-nav a:nth-child(1) {
    transition-delay: 0.03s;
  }

  .site-header.nav-open .site-nav a:nth-child(2) {
    transition-delay: 0.06s;
  }

  .site-header.nav-open .site-nav a:nth-child(3) {
    transition-delay: 0.09s;
  }

  .site-header.nav-open .site-nav a:nth-child(4) {
    transition-delay: 0.12s;
  }

  .site-header.nav-open .site-nav a:nth-child(5) {
    transition-delay: 0.15s;
  }

  .hero {
    min-height: 100svh;
    padding-top: calc(var(--header-height) + 0.3rem);
    padding-bottom: 1.1rem;
  }

  .hero-grid {
    min-height: calc(100svh - var(--header-height) - 1.4rem);
    gap: 2rem;
    align-content: center;
  }

  .hero h1 {
    margin: 0.7rem 0 1rem;
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }

  .hero-lead {
    font-size: 0.98rem;
  }

  .hero-mobile-brand {
    width: min(210px, 54vw);
    margin-bottom: -0.05rem;
  }

  .hero-actions {
    margin-top: 1.5rem;
    gap: 0.7rem;
  }

  .hero-actions,
  .contact-actions,
  .footer-inner {
    align-items: stretch;
  }

  .hero-actions .btn,
  .contact-actions .btn {
    width: 100%;
  }

  .hero-bullets {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .form-full {
    grid-column: auto;
  }

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

  .footer-actions {
    width: 100%;
    justify-content: center;
  }

  .footer-actions {
    width: 100%;
    justify-content: center;
  }

  .dev-banner {
    right: 0.75rem;
    bottom: 0.75rem;
    width: calc(100% - 1.5rem);
  }

  .dev-banner-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .header-inner {
    align-items: center;
    min-height: 0;
    padding-top: 0.5rem;
    padding-bottom: 0.4rem;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }

  .site-logo {
    gap: 0.3rem;
  }

  .site-logo-mark {
    height: 52px;
  }

  .site-logo-title {
    font-size: 1rem;
    letter-spacing: 0.12em;
  }

  .site-logo-subtitle {
    font-size: 0.68rem;
    letter-spacing: 0.26em;
  }
}

@media (max-width: 480px) {
  .background {
    animation-duration: 34s;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .service-card,
  .project-card,
  .about-card,
  .value-card,
  .contact-card {
    padding: 1.2rem;
  }

  .site-header {
    background: rgba(4, 9, 20, 0.66);
  }

  .header-inner {
    padding-top: 0.4rem;
    padding-bottom: 0.3rem;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }

  .site-logo {
    gap: 0.25rem;
  }

  .site-logo-mark {
    height: 48px;
  }

  .site-logo-title {
    font-size: 0.92rem;
    letter-spacing: 0.1em;
  }

  .site-logo-subtitle {
    font-size: 0.6rem;
    letter-spacing: 0.22em;
  }

  .hero-mobile-brand {
    width: min(182px, 56vw);
    margin-bottom: -0.15rem;
  }

  .hero {
    min-height: 100svh;
    padding-top: calc(var(--header-height) + 0.2rem);
    padding-bottom: 0.9rem;
  }

  .hero h1 {
    margin: 0.6rem 0 0.9rem;
    font-size: clamp(2rem, 8.4vw, 2.8rem);
  }

  .hero-actions {
    margin-top: 1.2rem;
  }

  .nav-toggle-label {
    display: none;
  }
}
