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

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

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

.js body.is-loading {
  overflow: hidden;
}

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

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

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

::selection {
  background: var(--ice);
  color: var(--bg);
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--ice);
  box-shadow: 0 0 12px var(--ice);
}

.serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.h-xl {
  font-weight: 700;
  font-size: clamp(44px, 7.4vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.055em;
  margin: 0;
}

.h-lg {
  text-wrap: balance;
  font-weight: 700;
  font-size: clamp(38px, 5.4vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin: 0;
}

.h-xl .serif,
.h-lg .serif {
  color: var(--ice);
  font-size: 1.08em;
  line-height: 0.8;
}

.h-mega {
  font-weight: 800;
  font-size: var(--t-mega);
  line-height: 0.8;
  letter-spacing: -0.052em;
  margin: 0;
}

.h-final {
  font-weight: 800;
  font-size: var(--t-final);
  line-height: 0.84;
  letter-spacing: -0.07em;
  margin: 0;
}

.h-row {
  font-weight: 700;
  font-size: var(--t-row);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin: 0;
}

.h-scrub {
  font-weight: 600;
  font-size: var(--t-scrub);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
}

.h-3 {
  font-weight: 650;
  font-size: var(--t-h3);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0;
}

.h-4 {
  font-weight: 650;
  font-size: var(--t-h4);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin: 0;
}

.h-mega .serif,
.h-final .serif,
.h-row .serif {
  font-weight: 400;
  color: var(--ice);
  font-size: 1.08em;
}

.micro {
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section {
  position: relative;
  padding: var(--space-section) 0;
}

.section--lg {
  padding: var(--space-section-lg) 0;
}

.section--band {
  padding: var(--space-band) 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.lede {
  text-wrap: pretty;
  font-size: clamp(16px, 1.25vw, 19px);
  color: var(--ink-2);
  max-width: 34em;
  line-height: 1.6;
  margin: 0;
}

.grain {
  position: fixed;
  inset: -220px;
  pointer-events: none;
  z-index: 90;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -0.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  animation: grain-shift 1.2s steps(6) infinite;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-66px, 44px); }
  40% { transform: translate(44px, -88px); }
  60% { transform: translate(-88px, -22px); }
  80% { transform: translate(66px, 66px); }
  100% { transform: translate(0, 0); }
}

@media (pointer: coarse) {
  .grain {
    animation: none;
  }
}

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

.btn:focus-visible,
.orb:focus-visible,
.nav__burger:focus-visible,
.qa__q:focus-visible {
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .grain {
    animation: none;
  }
}

.split-mask-line-mask {
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}
