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

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--ivory);
}
html.is-locked { overflow: hidden; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
p { max-width: 62ch; }
[hidden] { display: none !important; }

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

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.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: fixed; left: 1rem; top: 1rem; z-index: 200;
  padding: 0.75rem 1.25rem; background: var(--ink); color: var(--light);
  transform: translateY(-200%);
  transition: transform var(--t-fast) var(--ease);
}
.skip-link:focus { transform: none; }

.noscript { max-width: 46rem; margin: 0 auto; padding: 6rem 1.5rem; }
.noscript h1 { font-weight: 800; font-size: 2.6rem; line-height: 1.1; margin-bottom: 1.5rem; }
.noscript p { margin-bottom: 1rem; }

/* ── Motion: initial hidden states (only when motion is allowed) ─────────── */
.motion [data-reveal="fade"] { opacity: 0; visibility: hidden; }
.motion .split .w > span { transform: translateY(115%); }
.motion [data-reveal="image"] { clip-path: inset(100% 0 0 0); }
.motion [data-reveal="line"] { transform: scaleX(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
