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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg-base);
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
}

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

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.75rem, 5.6vw, 5.5rem); font-weight: 500; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); font-weight: 500; }
h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); font-weight: 500; }
h4 { font-size: 1rem; font-weight: 500; }

p { margin: 0; color: var(--text-secondary); }

::selection { background: var(--accent-violet); color: var(--text-primary); }

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gradient-primary);
}

.text-grad {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section { padding-block: var(--space-32) var(--space-24); position: relative; }
.section--tight { padding-block: var(--space-20); }
.section--first { padding-top: 0; }

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 4rem;
  align-items: end;
  margin-bottom: 4rem;
}
.section__head h2 { max-width: 14ch; }
.section__lede {
  font-size: 1.0625rem;
  max-width: 56ch;
  color: var(--text-secondary);
}

.divider {
  height: 1px;
  background: var(--border-subtle);
  margin-block: 0;
}
