* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--on-accent); }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 14px;
  font-weight: 700;
  font-size: 13px;
}
.skip-link:focus { top: 12px; }

.site-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.section { padding: 44px var(--gutter) 64px; } /* content starts near the top of each section */

.eyebrow {
  font-size: 11px;
  letter-spacing: .18em;
  color: #9ba4ae;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
}
.eyebrow span { display: inline-block; width: 22px; height: 2px; background: var(--accent); }

h1, h2 { font-family: var(--font-display); line-height: .94; letter-spacing: -.055em; margin: 22px 0; }
h1 { font-size: clamp(46px, 8vw, 118px); }
h2 { font-size: clamp(38px, 6vw, 78px); }
em { font-style: normal; color: var(--accent); }

/* js/main.js marks sections that are off-screen; their animations pause to save CPU and battery. */
.offscreen, .offscreen *, .offscreen *::before, .offscreen *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
