/* ============================================================
   HOLY LIGHT — Base layer
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
/* Lenis takes over scrolling; disable native smooth when it's active */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--base);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out);
}

img, svg, video, canvas {
  display: block;
  max-width: 100%;
}
img, video { height: auto; }

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: var(--btn-gold-text); }

/* ---- Headings ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-head);
  letter-spacing: var(--tracking-tight);
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p  { text-wrap: pretty; }

/* ---- Layout ---- */
.wrap      { width: 100%; max-width: var(--wrap);      margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { width: 100%; max-width: var(--wrap-wide); margin-inline: auto; padding-inline: var(--gutter); }

.section        { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section--flush { padding-block: 0; }

.stack   > * + * { margin-top: 1rem; }
.center  { text-align: center; }
.measure { max-width: 62ch; }
.mx-auto { margin-inline: auto; }

/* ---- Type helpers ---- */
.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
  opacity: .7;
}
.eyebrow--center::before { display: none; }

.lead      { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-muted); }
.text-muted{ color: var(--text-muted); }
.text-gold { color: var(--accent); }

/* Gold gradient display text */
.text-shine {
  background: linear-gradient(92deg, var(--text) 18%, var(--accent-hi) 52%, var(--text) 86%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hairline {
  height: 1px;
  border: 0;
  background: var(--hairline-gradient);
  opacity: .55;
}

/* ---- Screen-reader only ---- */
.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;
}

.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 999;
  background: var(--accent); color: var(--btn-gold-text);
  padding: .7rem 1.2rem; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ============================================================
   Motion primitives — elements with [data-anim] start hidden,
   motion.js reveals them. .no-motion short-circuits everything.
   ============================================================ */
[data-anim] { will-change: transform, opacity; }

html:not(.no-motion) [data-anim="fade-up"]  { opacity: 0; transform: translateY(34px); }
html:not(.no-motion) [data-anim="fade-in"]  { opacity: 0; }
html:not(.no-motion) [data-anim="scale-in"] { opacity: 0; transform: scale(.94); }
html:not(.no-motion) [data-anim="stagger"] > * { opacity: 0; transform: translateY(26px); }

/* Line-masked headline reveal */
html:not(.no-motion) [data-anim="mask-text"] .line-inner {
  display: block;
  transform: translateY(105%);
}
[data-anim="mask-text"] .line {
  display: block;
  overflow: hidden;
  padding-bottom: .08em;
}

/* Reduced motion / no-JS: show everything immediately */
html.no-motion [data-anim],
html.no-motion [data-anim] > *,
html.no-motion [data-anim] .line-inner {
  opacity: 1 !important;
  transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
