*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  color: var(--color-navy);
  background: var(--color-moon);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.site-particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

body.is-custom-cursor {
  cursor: none;
}

body.is-custom-cursor a,
body.is-custom-cursor button {
  cursor: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-royal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-mystic);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-cyan);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: 0.04em;
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 2.5vw + 0.75rem, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.5rem);
}

ul {
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding-block: var(--space-2xl);
  position: relative;
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-royal);
  margin-bottom: var(--space-sm);
}

.section__title {
  margin-bottom: var(--space-md);
  background: var(--gradient-magic);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section__lead {
  font-size: clamp(1.05rem, 1vw + 0.5rem, 1.2rem);
  color: rgba(30, 34, 56, 0.82);
  margin-bottom: var(--space-lg);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

@media (max-width: 48rem) {
  .section {
    padding-block: var(--space-xl);
  }

  .hero + .section {
    padding-block-start: var(--space-md);
  }

  h2,
  .section__title {
    font-size: clamp(1.2rem, 3.5vw + 0.35rem, 1.65rem);
    letter-spacing: 0.03em;
  }

  .section__eyebrow {
    font-size: 0.65rem;
    margin-bottom: 0.35rem;
  }

  .section__lead {
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
