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

html,
body {
  margin: 0;
  padding: 0;
}

/* Fluid root: 1rem scales linearly with viewport width.
   At 360px → ~13px. At 1440px → ~19px. At 2560px → ~25px. Cap 26px.
   All rem-based dimensions scale proportionally with resolution. */
html {
  font-size: clamp(13px, 0.6vw + 10px, 26px);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  line-height: 1.55;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

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

/* ── Scroll-Reveal (below-fold only, discreet fade-up) ── */
.reveal {
  opacity: 0;
  transition:
    opacity 750ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 750ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal:not(.reveal--fade) {
  transform: translateY(16px);
}

.reveal:not(.reveal--fade).is-visible {
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
}

.reveal-stagger > .reveal { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 90ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 180ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 270ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 360ms; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 450ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
