/* =========================================
   BASE — resets, body, shared utilities
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --font-body: 'Questrial';
  --font-display: 'Manrope';
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body), -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  letter-spacing: 0.012em;
}

h1,
h2,
h3,
.hero-nav-item,
.project-pill {
  font-family: var(--font-display), sans-serif;
  letter-spacing: 0.02em;
}

p,
li {
  letter-spacing: 0.01em;
}

.section-spacer {
  height: 50px;
  background: #fff;
  position: relative;
  z-index: 100;
}

.section-spacer--cover {
  --section-divider-cover: 0px;
  --section-divider-max-cover: 84px;
  overflow: visible;
  isolation: isolate;
}

.section-spacer--cover::before {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--section-divider-cover);
  background: #fff;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  will-change: height, opacity;
}

.section-spacer--cover.is-transitioning::before {
  opacity: 1;
}

.section-spacer--dark {
  background: #000;
}

/* Full-bleed section background videos — cover viewport, no letterboxing */
video.section-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
