/* ==========================================================================
   Base — modern reset, document defaults, typography and shared utilities.
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + var(--space-4));
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
picture,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

h1,
h2,
h3 {
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 6vw, var(--text-4xl));
}

h2 {
  font-size: clamp(1.9rem, 4vw, var(--text-3xl));
}

h3 {
  font-size: var(--text-xl);
}

code,
kbd,
.mono {
  font-family: var(--font-mono);
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--color-gold);
  color: #111;
}

/* --- Layout utilities ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: var(--space-24);
}

.section--tight {
  padding-block: var(--space-16);
}

.text-center {
  text-align: center;
}

.text-gold {
  color: var(--color-gold);
}

.text-muted {
  color: var(--color-text-muted);
}

.lead {
  font-size: clamp(1.05rem, 2.2vw, var(--text-lg));
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* Small caps eyebrow label used above headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.section-head {
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

.section-head .lead {
  margin-inline: auto;
}

/* Reusable gradient glow blobs placed behind content */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.glow--gold {
  background: radial-gradient(circle, rgba(236, 201, 75, 0.55), transparent 70%);
}

.glow--blue {
  background: radial-gradient(circle, rgba(96, 165, 250, 0.4), transparent 70%);
}

/* --- Scroll-reveal animation (progressively enhanced via JS) -------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
