body {
  background: var(--clr-bg);
  color: var(--clr-muted);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Ambient background glow ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 75% -5%,  rgba(200, 200, 220, 0.10) 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 10% 60%,  rgba(80, 110, 200, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 50% 100%, rgba(200, 200, 220, 0.06) 0%, transparent 55%);
}

/* ─── Grain texture ─── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--clr-white);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl)); font-weight: 500; }
h2 { font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); font-weight: 500; }
h3 { font-size: var(--text-xl); font-weight: 500; }
h4 { font-size: var(--text-lg); font-weight: 500; }

p { color: var(--clr-muted); max-width: 640px; line-height: 1.75; margin-inline: auto; }

/* Center all section content except hero */
section:not(.hero) { text-align: center; }
section:not(.hero) h2,
section:not(.hero) h3 { margin-inline: auto; }

a { color: inherit; text-decoration: none; }

/* Ensure main content renders above body::before/after overlays */
main, footer { position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--clr-border-h);
  border-radius: 100px;
  padding: 5px 13px 5px 9px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(232, 244, 248, 0.7);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(232, 244, 248, 0.5);
}

.divider {
  height: 1px;
  background: var(--clr-border);
  border: none;
  margin: 0;
}

/* Reveal on scroll — only with JS */
.js-loaded .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.js-loaded .reveal.visible { opacity: 1; transform: none; }
.js-loaded .reveal-delay-1 { transition-delay: 0.08s; }
.js-loaded .reveal-delay-2 { transition-delay: 0.16s; }
.js-loaded .reveal-delay-3 { transition-delay: 0.24s; }
