  /* ── Base & Utilities ── */
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
  }

  body {
    overflow-x: hidden;
  }

  ::selection {
    background: #6d28d9;
    color: #fff;
  }

  /* ── Scroll Reveal Animations ── */
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }

  /* ── Hero Animations ── */
  .hero-fade {
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .hero-fade:nth-child(1) { animation-delay: 0.1s; }
  .hero-fade:nth-child(2) { animation-delay: 0.25s; }
  .hero-fade:nth-child(3) { animation-delay: 0.4s; }
  .hero-fade:nth-child(4) { animation-delay: 0.55s; }
  .hero-fade:nth-child(5) { animation-delay: 0.7s; }

  @keyframes heroFadeIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero-img {
    opacity: 0;
    transform: translateX(40px) scale(0.97);
    animation: heroImgIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
  }

  .hero-img-delayed {
    opacity: 0;
    transform: translateX(-30px) scale(0.95);
    animation: heroImgIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
  }

  @keyframes heroImgIn {
    to {
      opacity: 1;
      transform: translateX(0) scale(1);
    }
  }

  /* ── Header ── */
  #site-header {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
  }

  #site-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 24px rgba(109, 40, 217, 0.08);
  }

  /* ── Nav Links ── */
  .nav-link {
    position: relative;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fbbf24;
    border-radius: 1px;
    transition: width 0.3s ease, left 0.3s ease;
  }

  .nav-link:hover::after {
    width: calc(100% - 16px);
    left: 8px;
  }

  /* ── Mobile Nav ── */
  #mobile-nav.open {
    opacity: 1;
    pointer-events: all;
  }

  .mobile-nav-link {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  }

  #mobile-nav.open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
  }

  #mobile-nav.open .mobile-nav-link:nth-child(1) { transition-delay: 0.05s; }
  #mobile-nav.open .mobile-nav-link:nth-child(2) { transition-delay: 0.1s; }
  #mobile-nav.open .mobile-nav-link:nth-child(3) { transition-delay: 0.15s; }
  #mobile-nav.open .mobile-nav-link:nth-child(4) { transition-delay: 0.2s; }
  #mobile-nav.open .mobile-nav-link:nth-child(5) { transition-delay: 0.25s; }

  /* ── Service Cards ── */
  .group:hover .group-hover\:bg-plum-600,
  .group:hover .group-hover\:bg-amber-500 {
    transition: background-color 0.4s ease;
  }

  /* ── Project Cards ── */
  .group:hover .group-hover\:scale-105 {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* ── Form Inputs ── */
  input:focus,
  textarea:focus,
  select:focus {
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.12);
  }

  /* ── Custom Scrollbar ── */
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: #fafaf5;
  }

  ::-webkit-scrollbar-thumb {
    background: #c4a8f5;
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #6d28d9;
  }

  /* ── Reduced Motion ── */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
  }

  /* ── Responsive Tweaks ── */
  @media (max-width: 640px) {
    .font-serif {
      line-height: 1.15;
    }
  }
