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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--gold);
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: var(--black);
  text-wrap: balance;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); font-weight: 700; }
h4 { font-size: var(--fs-md); }

p {
  margin: 0 0 1em;
  color: var(--ink);
  text-wrap: pretty;
}

p:last-child { margin-bottom: 0; }

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

strong { font-weight: 700; }

.container {
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
}

.container-wide {
  width: min(100% - var(--gutter) * 2, var(--max-wide));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.lead {
  font-size: var(--fs-md);
  line-height: var(--lh-snug);
  color: var(--gray);
  max-width: 40rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

::selection {
  background: var(--gold-soft);
  color: var(--black);
}

/*
  Reveal: content ALWAYS visible by default (impeccable).
  Motion only enhances when .js-ready is on <html>.
*/
.reveal {
  opacity: 1;
  transform: none;
}

html.js-ready .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms);
}
html.js-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger helpers for grids */
html.js-ready .stagger > .reveal:nth-child(1) { --i: 0; }
html.js-ready .stagger > .reveal:nth-child(2) { --i: 1; }
html.js-ready .stagger > .reveal:nth-child(3) { --i: 2; }
html.js-ready .stagger > .reveal:nth-child(4) { --i: 3; }
html.js-ready .stagger > .reveal:nth-child(5) { --i: 4; }
html.js-ready .stagger > .reveal:nth-child(6) { --i: 5; }
html.js-ready .stagger > .reveal:nth-child(7) { --i: 6; }
html.js-ready .stagger > .reveal:nth-child(8) { --i: 7; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
