/* ==========================================================================
   Base — reset, element defaults and typographic primitives.
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--color-white);
  background: var(--color-ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

h1,
h2,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typographic primitives ---------- */
.display {
  font-size: var(--text-display);
  font-weight: var(--weight-black);
  line-height: 1.04;
  letter-spacing: -0.045em;
  word-break: keep-all;
}

.display--xl {
  font-size: var(--text-display-xl);
  line-height: 0.98;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.lead {
  max-width: 34em;
  margin-top: var(--space-md);
  font-size: var(--text-lg);
  line-height: 1.65;
  opacity: 0.82;
  word-break: keep-all;
}

.numeral {
  font-family: var(--font-display-latin);
  font-size: var(--text-numeral);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.01em;
}

.numeral--outline {
  color: transparent;
  -webkit-text-stroke: 2px currentColor;
}

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

.numeral--text {
  font-size: clamp(3rem, 1rem + 6vw, 7rem);
  line-height: 0.95;
}

.text-gradient {
  background: var(--gradient-ai);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 6s ease-in-out infinite alternate;
}

@keyframes gradient-shift {
  to { background-position: 100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
