:root {
  --bg:        #000000;
  --bg-2:      #0a0a0a;
  --bg-3:      #131313;
  --surface:   rgba(255, 255, 255, 0.035);

  --text:      #ffffff;
  --text-dim:  #8d8d8d;
  --text-mute: #5c5c5c;

  --border:        rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.24);

  --inv-bg:   #ffffff;
  --inv-text: #000000;

  --err: #ff5a5a;
  --ok:  #3ecf8e;

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --fs-xs:   clamp(0.68rem, 0.66rem + 0.10vw, 0.74rem);
  --fs-sm:   clamp(0.82rem, 0.79rem + 0.14vw, 0.90rem);
  --fs-base: clamp(0.92rem, 0.88rem + 0.20vw, 1.02rem);
  --fs-lg:   clamp(1.05rem, 0.97rem + 0.38vw, 1.25rem);
  --fs-xl:   clamp(1.30rem, 1.10rem + 0.90vw, 1.85rem);

  --fs-display: clamp(2.35rem, 1.10rem + 5.60vw, 5.60rem);

  --space-1: 0.25rem; --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;    --space-5: 1.5rem;  --space-6: 2rem;
  --space-7: 3rem;    --space-8: 4rem;    --space-9: 6rem;
  --section-y: clamp(5rem, 3rem + 8vw, 11rem);

  --r-sm: 4px;  --r-md: 8px;  --r-full: 999px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 0.18s;
  --t-base: 0.32s;
  --t-slow: 0.62s;

  --container: 1280px;
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 4rem);
  --nav-h: 76px;
}

[data-theme='light'] {
  --bg:        #ffffff;
  --bg-2:      #f6f6f6;
  --bg-3:      #ededed;
  --surface:   rgba(0, 0, 0, 0.03);

  --text:      #000000;
  --text-dim:  #6a6a6a;
  --text-mute: #949494;

  --border:        rgba(0, 0, 0, 0.12);
  --border-strong: rgba(0, 0, 0, 0.26);

  --inv-bg:   #000000;
  --inv-text: #ffffff;

  --err: #cc2424;
  --ok:  #0a8f55;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1.5rem);
}

html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background-color var(--t-base) var(--ease-in-out),
              color var(--t-base) var(--ease-in-out);
}

body.is-locked { overflow: hidden; }

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

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

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

.display {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.042em;
  margin-bottom: clamp(2rem, 1.2rem + 3vw, 4rem);
  text-wrap: balance;
}
.display__line { display: block; }
.display__line--dim { color: var(--text-dim); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.section__lead {
  max-width: 62ch;
  font-size: var(--fs-lg);
  color: var(--text-dim);
  text-wrap: pretty;
}

p { text-wrap: pretty; }

.dot { color: var(--text-mute); }

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -130%);
  z-index: 2000;
  padding: 0.85rem 1.6rem;
  background: var(--inv-bg);
  color: var(--inv-text);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: transform var(--t-base) var(--ease-out-expo);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

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

.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border: 2px solid var(--bg);
  border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.12s !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] { opacity: 1 !important; transform: none !important; }

  .marquee__track { animation: none !important; transform: none !important; }

  .cursor, .hero__canvas, .confetti { display: none !important; }
}
