:root {
  --black: #08090a;
  --ink: #111315;
  --graphite: #1c1f22;
  --silver: #b9bec1;
  --mist: #e8e9e7;
  --paper: #f2f1ed;
  --white: #fafaf8;
  --muted: #777c7f;
  --line: rgba(255,255,255,.16);
  --line-light: rgba(10,12,13,.15);
  --accent: #aeb4b5;

  --bg: var(--black);
  --surface: #101214;
  --text: var(--white);
  --text-muted: #a2a6a7;
  --border: var(--line);

  --font-display: "Installer", "Helvetica Neue", Arial, sans-serif;
  --font-body: Inter, "Helvetica Neue", Arial, sans-serif;

  --container: 1440px;
  --gutter: clamp(20px, 4vw, 72px);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --space-7: 144px;
  --space-8: 200px;

  --ease: cubic-bezier(.16,1,.3,1);
  --ease-soft: cubic-bezier(.22,1,.36,1);
  --radius: 2px;
}

@font-face {
  font-family: "Installer";
  src: url("/x_fonts/installer.woff2") format("woff2"),
       url("/x_fonts/installer.woff") format("woff"),
       url("/x_fonts/installer.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

html[data-theme="light"] {
  --bg: var(--paper);
  --surface: #e7e6e1;
  --text: var(--ink);
  --text-muted: #65696a;
  --border: var(--line-light);
}

@media (prefers-color-scheme: light) {
  html[data-theme="system"] {
    --bg: var(--paper);
    --surface: #e7e6e1;
    --text: var(--ink);
    --text-muted: #65696a;
    --border: var(--line-light);
  }
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --bg: var(--black);
    --surface: #101214;
    --text: var(--white);
    --text-muted: #a2a6a7;
    --border: var(--line);
  }
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; }
::selection { background: var(--text); color: var(--bg); }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  transform: translateY(-150%);
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.section-dark {
  background: var(--black);
  color: var(--white);
}
.section-light {
  background: var(--paper);
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 24px;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 600;
}
.eyebrow span { opacity: .45; padding-inline: 8px; }

.display-heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 6.3vw, 102px);
  line-height: .95;
  letter-spacing: -.02em;
}
.display-heading em { font-style: normal; opacity: .46; }

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

.cursor-glow {
  position: fixed;
  z-index: 899;
  width: 180px;
  height: 180px;
  margin: -90px 0 0 -90px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(255,255,255,.11), transparent 68%);
  transition: opacity .4s var(--ease);
  mix-blend-mode: screen;
}

@media (hover:hover) and (pointer:fine) {
  .cursor-glow.is-visible { opacity: 1; }
}
