html {
  scroll-behavior: smooth;
  scroll-padding-top: 7.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.cursor-dot,
.cursor-ring,
.cursor-glow {
  display: none;
}

@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body.has-pointer-fx,
  body.has-pointer-fx a,
  body.has-pointer-fx button,
  body.has-pointer-fx [role="button"] {
    cursor: none;
  }

  body.has-pointer-fx input,
  body.has-pointer-fx textarea,
  body.has-pointer-fx select,
  body.has-pointer-fx iframe,
  body.has-pointer-fx label[for] {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-ring,
  .cursor-glow {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 80;
    will-change: transform;
  }

  .cursor-dot {
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 999px;
    background: #E53935;
    box-shadow: 0 0 12px rgba(229, 57, 53, 0.55);
  }

  .cursor-ring {
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border: 1.5px solid rgba(229, 57, 53, 0.55);
    border-radius: 999px;
    transition: width 180ms ease, height 180ms ease, margin 180ms ease, background 180ms ease, border-color 180ms ease;
  }

  .cursor-ring.is-hover {
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    background: rgba(229, 57, 53, 0.08);
    border-color: #E53935;
  }

  .cursor-glow {
    width: 220px;
    height: 220px;
    margin: -110px 0 0 -110px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(229, 57, 53, 0.16) 0%, rgba(229, 57, 53, 0) 70%);
    mix-blend-mode: multiply;
    z-index: 1;
  }

  .js-spotlight {
    --spot-x: 50%;
    --spot-y: 40%;
  }

  .js-spotlight::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--spot-x) var(--spot-y), rgba(229, 57, 53, 0.14), transparent 55%);
    opacity: 0;
    transition: opacity 220ms ease;
  }

  .js-spotlight:hover::after {
    opacity: 1;
  }
}

@media (max-width: 767px) {
  header .glass-pill.is-nav-open,
  header .glass-pill:has(#mobile-nav:not(.hidden)) {
    border-radius: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
