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

  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  ::selection {
    background-color: rgba(4, 120, 87, 0.15);
    color: #064e3b;
  }

  /* Animations */
  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(24px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  }

  /* Scroll-triggered reveal */
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

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

  /* Header scroll state */
  #header.scrolled {
    background-color: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(4, 120, 87, 0.08);
  }

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

  /* Mobile menu bar animation */
  #menu-toggle.active #bar1 {
    transform: translateY(5px) rotate(45deg);
  }

  #menu-toggle.active #bar2 {
    opacity: 0;
  }

  #menu-toggle.active #bar3 {
    transform: translateY(-5px) rotate(-45deg);
    width: 1.5rem;
  }

  /* Vertical text for scroll indicator */
  .writing-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
  }

  /* Input date picker styling */
  input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.4) sepia(1) saturate(5) hue-rotate(100deg);
    cursor: pointer;
  }

  /* Subtle image hover glow */
  .group:hover img {
    filter: brightness(1.02);
  }

  /* Focus visible for accessibility */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible {
    outline: 2px solid #047857;
    outline-offset: 2px;
  }

  /* Smooth scrollbar */
  ::-webkit-scrollbar {
    width: 6px;
  }

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

  ::-webkit-scrollbar-thumb {
    background: #a7f3d0;
    border-radius: 3px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #34d399;
  }

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

    #hero {
      min-height: auto;
      padding: 120px 0 80px;
    }

    #hero .order-1 {
      order: 2;
    }

    #hero .order-2 {
      order: 1;
    }

    #hero img {
      height: 350px !important;
    }
  }

  @media (min-width: 768px) and (max-width: 1023px) {
    #hero img {
      height: 500px !important;
    }
  }
