*,
*::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;
}

/* Skip link — a11y */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: calc(var(--z-sticky) + 10);
  background: var(--black);
  color: var(--white);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus {
  top: 0.75rem;
  color: var(--white);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  margin: 0 0 0.55em;
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.025em;
  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;
}

/* Use sparingly — not on every section (anti-AI-scaffold) */
.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

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

.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 */
.reveal {
  opacity: 1;
  transform: none;
}

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

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;
  }
}
