/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--brand); color: var(--white); }

.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; top: 12px; left: 12px; z-index: 400;
  padding: 12px 20px; background: var(--paper); color: var(--ink);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- Tipografía ---------- */
.label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
}
.label--md { font-size: 12px; }
.display {
  font-family: var(--font-display);
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.86;
  text-wrap: balance;
}
.display--xl { font-size: clamp(3.5rem, 12vw, 13rem); }
.display--lg { font-size: clamp(2.6rem, 7vw, 7.5rem); }
.display--md { font-size: clamp(1.8rem, 4vw, 4rem); letter-spacing: 0.03em; }
.display--sm { font-size: clamp(1.1rem, 1.6vw, 1.5rem); letter-spacing: 0.32em; font-weight: 300; }
.serif-word {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1;
}
.lede { font-size: clamp(1.1rem, 1.5vw, 1.4rem); line-height: 1.45; max-width: 36em; text-wrap: pretty; }
.body { max-width: 40em; text-wrap: pretty; }
.on-dark { color: var(--white); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.container { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.section { position: relative; }
.section--pad { padding-block: var(--s-8); }
.hairline { height: 1px; background: var(--line-on-light); transform-origin: left; }
.on-dark .hairline { background: var(--line-on-dark); }

/* ---------- Reveal (estado inicial gestionado por JS) ---------- */
[data-reveal], [data-reveal-first] { --reveal-ready: 1; }
.split-line { display: block; overflow: hidden; }
.split-word, .split-char { display: inline-block; will-change: transform, opacity; }
.split-char { transform-style: preserve-3d; backface-visibility: hidden; }

@media (min-width: 992px) { :root { --margin: clamp(72px, 6vw, 112px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
