/* ==========================================================================
   WEB PEARL — Base: reset, typography, utilities
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 340;
  font-size: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: rgba(111, 180, 255, 0.28); color: var(--ink); }

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); letter-spacing: -0.015em; }

.accent-word {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 460;
  letter-spacing: -0.01em;
  color: var(--accent); /* fallback */
  background: var(--iridescent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.06em; /* italic overhang */
}

/* Nacre aurora backdrops — one soft glow pair per section, alternating */
.aurora { position: relative; }
.aurora::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.aurora > * { position: relative; z-index: 1; }
.aurora--violet::before {
  background:
    radial-gradient(52vw 40vw at 15% 12%, rgba(147, 105, 255, 0.26), transparent 62%),
    radial-gradient(46vw 36vw at 88% 82%, rgba(255, 121, 170, 0.16), transparent 62%);
}
.aurora--aqua::before {
  background:
    radial-gradient(50vw 38vw at 84% 10%, rgba(64, 224, 168, 0.18), transparent 62%),
    radial-gradient(44vw 34vw at 8% 85%, rgba(61, 126, 255, 0.20), transparent 62%);
}
.aurora--champagne::before {
  background:
    radial-gradient(48vw 36vw at 18% 88%, rgba(255, 176, 97, 0.14), transparent 62%),
    radial-gradient(44vw 34vw at 86% 12%, rgba(147, 105, 255, 0.20), transparent 62%);
}

.lead {
  font-size: var(--text-lead);
  font-weight: 300;
  color: var(--ink-muted);
  max-width: var(--measure);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--accent) 55%, transparent 75%);
  box-shadow: 0 0 8px rgba(111, 180, 255, 0.6);
}

/* ---- Layout ---- */
.container {
  width: min(1240px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.section { padding-block: var(--space-section); position: relative; }

/* ---- Utilities ---- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

[data-reveal] { opacity: 0; }
html.no-js [data-reveal], html.reduced-motion [data-reveal] { opacity: 1; }

/* Line-mask reveal wrapper (headline animation) */
.mask-line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.mask-line > span { display: block; transform: translateY(110%); }
html.no-js .mask-line > span,
html.reduced-motion .mask-line > span { transform: none; }

/* Focus visibility (keyboard users) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Reduced motion: everything remains visible, nothing moves ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
}
