/* ============================================================
   RESPONSIVE — Premium Enterprise Theme
   ============================================================ */

@media screen and (max-width: 1200px) {
  .frontier-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 1024px) {
  :root {
    --header-height: 72px;
  }

  .nav-menu {
    gap: 0.25rem;
    padding-left: var(--space-2);
  }

  .nav-link {
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    padding: var(--space-1);
  }

  .nav-brand-group {
    gap: var(--space-2);
  }

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

@media screen and (max-width: 768px) {
  :root {
    --space-2xl: var(--space-7);
  }

  /* Navigation */
  .hamburger {
    display: flex;
    z-index: 1100;
  }

  .nav-brand-group {
    gap: 0;
  }

  .nav-logo {
    font-size: 1.5rem;
  }

  .nav-wrapper {
    justify-content: flex-start;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(85%, 320px);
    height: 100vh;
    height: 100dvh;
    background: rgba(229, 225, 221, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    padding: var(--space-6) var(--space-4);
    padding-left: var(--space-4);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--border);
    box-shadow: -12px 0 48px rgba(8, 58, 79, 0.12);
    z-index: 1000;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--nav-link);
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.55);
    color: var(--nav-link-hover);
  }

  .nav-link.active {
    color: var(--nav-link-active);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.75);
  }

  .nav-link::after {
    left: var(--space-3);
    right: auto;
    width: 24px;
  }

  /* Hero */
  .hero-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
    padding: var(--space-5) 0;
  }

  .hero-content {
    max-width: 100%;
    flex: 1 1 auto;
  }

  .hero-photo {
    width: clamp(240px, 65vw, 320px);
    align-self: center;
  }

  .hero-buttons {
    width: 100%;
  }

  .hero-stats {
    width: 100%;
    flex-wrap: wrap;
    gap: var(--space-3);
  }

  .hero-stat {
    flex: 1 1 calc(50% - var(--space-2));
    min-width: 120px;
  }

  .hero-stat-divider {
    display: none;
  }

  /* About */
  .about-philosophy {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-philosophy-intro {
    white-space: normal;
  }

  .about-quote {
    width: 100%;
  }

  .info-card--slide {
    flex: 0 0 clamp(220px, 72vw, 260px);
  }

  .info-card--slide.info-card--wide {
    flex: 0 0 clamp(260px, 82vw, 320px);
  }

  /* Sections */
  .section-header {
    margin-bottom: var(--space-5);
  }

  /* Frontier */
  .frontier-grid {
    grid-template-columns: 1fr;
  }

  /* Timeline — single column */
  .timeline::before,
  .timeline::after {
    left: 16px;
    transform: none;
  }

  .timeline::after {
    transform: scaleY(var(--timeline-progress, 0));
    transform-origin: top center;
  }

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    width: 100%;
    left: 0;
    padding: 0 0 var(--space-3) var(--space-5);
  }

  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 6px;
    right: auto;
  }

  .timeline-item--current .timeline-content {
    border-left: 3px solid var(--gold);
  }

  /* Projects */
  .project-card {
    flex: 0 0 clamp(212px, 76vw, 248px);
  }

  /* Contact */
  .contact-social {
    gap: var(--space-2);
  }

  .social-btn {
    min-width: 96px;
    min-height: 96px;
    flex: 1 1 calc(33.333% - var(--space-2));
    max-width: 130px;
  }

  .footer-content {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  :root {
    --container-padding: 1.25rem;
    --space-2xl: var(--space-6);
  }

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

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

  .hero-stat {
    flex: 1 1 100%;
  }

  .hero-stat-value {
    font-size: 1.5rem;
  }

  .social-btn {
    flex: 1 1 calc(50% - var(--space-1));
    max-width: none;
  }

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: var(--space-4);
  }

  .timeline::before,
  .timeline::after {
    left: 10px;
  }

  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 4px;
  }

  .about-quote {
    padding: var(--space-3);
  }
}

@media screen and (min-width: 1280px) {
  .hero-layout {
    gap: var(--space-8);
  }

  .hero-photo {
    width: clamp(300px, 26vw, 420px);
  }
}

@media screen and (min-width: 1440px) {
  :root {
    --container-width: 1320px;
  }
}
