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

  /* Scroll reveal animations */
  .scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  /* Hero animations */
  .hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: heroIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .hero-anim:nth-child(2) { animation-delay: 0.15s; }
  .hero-anim:nth-child(3) { animation-delay: 0.3s; }
  .hero-anim:nth-child(4) { animation-delay: 0.45s; }

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

  /* Navbar */
  #navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
  }
  #navbar.scrolled {
    background: rgba(253, 246, 227, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(16, 42, 67, 0.08);
  }
  #navbar.scrolled .font-display,
  #navbar.scrolled .nav-link { color: #1e3a5f !important; }
  #navbar.scrolled .nav-link { color: #334e68 !important; }

  /* Nav links underline on hover */
  .nav-link {
    position: relative;
  }
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #c8a44e, #e4b84a);
    border-radius: 2px;
    transition: width 0.3s ease;
  }
  .nav-link:hover::after { width: 100%; }

  /* Mobile menu */
  #mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(16, 42, 67, 0.06);
    transition: color 0.2s, padding-left 0.2s;
  }
  .mobile-link:hover {
    color: #c8a44e;
    padding-left: 0.5rem;
  }

  /* Smooth section transitions */
  section { position: relative; }

  /* Custom scrollbar */
  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: #fdf6e3; }
  ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #c8a44e, #1e3a5f); border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: #1e3a5f; }

  /* Selection color */
  ::selection { background: rgba(200, 164, 78, 0.3); color: #1e3a5f; }

  /* Focus visible */
  :focus-visible { outline: 2px solid #c8a44e; outline-offset: 2px; border-radius: 4px; }

  /* Image lazy loading shimmer */
  img {
    background: linear-gradient(135deg, #d9e2ec 0%, #f0f4f8 100%);
    min-height: 4px;
  }

  /* Form focus states */
  input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(200, 164, 78, 0.15);
  }

  /* Button press animation */
  button:active, a:active {
    transform: scale(0.97) !important;
  }

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

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