  /* ── Base & Utilities ── */
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 80px; }
  body { overflow-x: hidden; }

  /* ── Scroll Reveal ── */
  .scroll-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);
  }
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  /* ── Hero Animations ── */
  .hero-anim {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .hero-anim:nth-child(2) { animation-delay: 0.12s; }
  .hero-anim:nth-child(3) { animation-delay: 0.24s; }
  .hero-anim:nth-child(4) { animation-delay: 0.36s; }
  .hero-anim:nth-child(5) { animation-delay: 0.48s; }

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

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

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

  /* ── Float Animation ── */
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }
  .animate-float {
    animation: float 4s ease-in-out infinite;
  }

  /* ── Header Scrolled State ── */
  #header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 24px rgba(0,0,0,0.04);
  }

  /* ── Nav Link Underline ── */
  .nav-link {
    position: relative;
  }
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 4px;
    right: 4px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0.4;
  }
  .nav-link:hover::after {
    transform: scaleX(1);
  }

  /* ── Mobile Menu Transition ── */
  #mobileMenu {
    animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .mobile-link {
    display: block;
  }

  /* ── Selection ── */
  ::selection {
    background: rgba(255, 107, 107, 0.2);
    color: #1A1D28;
  }

  /* ── Smooth focus ── */
  :focus-visible {
    outline: 2px solid #FF6B6B;
    outline-offset: 2px;
    border-radius: 4px;
  }

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