/* ==========================================================================
   Reset + typographic scale
   ========================================================================== */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

/* Lenis drives scrolling; native smooth scroll must stay off. */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  background-color: var(--color-white);
  color: var(--color-black);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.45;
  overflow-x: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Type scale
   Display sizes are fluid, matching the reference build's oversized
   editorial headline treatment.
   -------------------------------------------------------------------------- */

.display-xl,
.display-lg,
.heading-2xl,
.heading-xl,
.heading-lg,
.heading-md,
.heading-sm,
.heading-xs,
.heading-2xs {
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.display-xl {
  font-size: clamp(3.5rem, 10.5vw, 11rem);
}
.display-lg {
  font-size: clamp(2.75rem, 12vw, 6rem);
}
.heading-2xl {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
}
.heading-xl {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
}
.heading-lg {
  font-size: clamp(1.875rem, 4vw, 3rem);
  line-height: 1;
}
.heading-md {
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  line-height: 1.05;
}
.heading-sm {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.heading-xs {
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.heading-2xs {
  font-size: 1.0625rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.body-lg {
  font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.body-md {
  font-size: 1rem;
  line-height: 1.5;
}
.body-sm {
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Mono micro-caps — used for eyebrows, meta rows and data panels. */
.label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.font-mono {
  font-family: var(--font-mono);
}
.text-gray {
  color: var(--color-gray-500);
}
.text-white {
  color: var(--color-white);
}
.text-accent {
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.page {
  width: 100%;
  padding-inline: var(--page-x);
}

.section {
  padding-block: clamp(72px, 11vw, 168px);
}

.stack {
  display: flex;
  flex-direction: column;
}

.rule {
  width: 100%;
  height: 1px;
  background-color: var(--color-gray-200);
  border: 0;
}
