@layer utilities {
  .grain {
    position: relative;
  }

  .grain::before {
    content: "";
    pointer-events: none;
    position: absolute;
    inset: 0;
    opacity: .10;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
    border-radius: inherit;
  }

  .mask-vignette {
    -webkit-mask-image: radial-gradient(120% 120% at 50% 35%, #000 45%, transparent 72%);
    mask-image: radial-gradient(120% 120% at 50% 35%, #000 45%, transparent 72%);
  }

  /* Hybrid Cursor Behavior */
  html,
  body {
    cursor: none;
    /* Hide default cursor on background/void */
  }

  /* Restore default cursor for structural blocks and cards 
     (text inside these will inherit the default cursor) */
  header,
  footer,
  .rounded-3xl,
  .rounded-2xl,
  .rounded-xl,
  .rounded-lg,
  .rounded-md,
  .rounded,
  .bg-white,
  /* White backgrounds */
  .bg-\[\#628258\],
  /* Green Service backgrounds */
  .bg-\[\#38492f\]

  /* Dark Green Contact background */
    {
    cursor: default;
  }

  /* Ensure inputs are always typable */
  input,
  textarea {
    cursor: text;
  }

  /* Restore pointer cursor for interactables 
     Using !important to guarantee buttons/links always show the hand 
     even if they are inside a 'cursor: default' container */
  a,
  button,
  label,
  select,
  [role="button"],
  .rounded-full {
    cursor: pointer !important;
  }

  /* Particle Canvas */
  #particle-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    /* Behind everything */
  }

  /* Simple fade-up animation to replace Framer Motion */
  .fade-up {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
  }
}