  /* Base */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
  }

  body {
    overflow-x: hidden;
  }

  /* Nav scroll state */
  #nav.scrolled {
    background: rgba(250, 251, 249, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(10, 35, 66, 0.06);
  }

  #nav:not(.scrolled) .nav-link {
    color: rgba(10, 35, 66, 0.7);
  }

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

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #7DDFC1;
    transition: width 0.3s ease;
  }

  .nav-link:hover::after {
    width: 100%;
  }

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

  #mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
  }

  .mobile-link {
    transition: opacity 0.3s ease;
  }

  /* Menu button animation */
  #menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }

  #menu-btn.active .menu-line:nth-child(2) {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  /* Card hover */
  .card-elevate {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  }

  .card-elevate:hover {
    transform: translateY(-4px);
  }

  /* Tag pills */
  .tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    background: white;
    border: 1px solid rgba(10, 35, 66, 0.08);
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(10, 35, 66, 0.7);
    transition: all 0.3s ease;
    cursor: default;
  }

  .tag-pill:hover {
    border-color: #7DDFC1;
    color: #0A2342;
    background: #E8FAF4;
    transform: translateY(-2px);
  }

  /* Reveal animation */
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

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

  /* Stagger children */
  .stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
  .stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
  .stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
  .stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
  .stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
  .stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }
  .stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; }
  .stagger-children.visible > *:nth-child(8) { transition-delay: 0.4s; }
  .stagger-children.visible > *:nth-child(9) { transition-delay: 0.45s; }
  .stagger-children.visible > *:nth-child(10) { transition-delay: 0.5s; }

  .stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
  }

  /* Form focus styles */
  input:focus, textarea:focus {
    border-color: #7DDFC1 !important;
    box-shadow: 0 0 0 3px rgba(125, 223, 193, 0.15);
  }

  /* Selection */
  ::selection {
    background: rgba(125, 223, 193, 0.3);
    color: #0A2342;
  }

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

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

  ::-webkit-scrollbar-thumb {
    background: rgba(10, 35, 66, 0.15);
    border-radius: 100px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: rgba(10, 35, 66, 0.3);
  }

  /* Mobile responsive */
  @media (max-width: 767px) {
    html {
      scroll-padding-top: 70px;
    }

    .font-serif {
      font-size: clamp(2rem, 8vw, 3rem);
    }
  }
