:root {
  --bg: #ffffff;
  --ink: #0a0c0f;
  --ink-2: #474e58;
  --ink-3: #868d97;
  --chrome: linear-gradient(180deg,
    #fdfdfe 0%, #d7dce3 24%, #8e98a5 45%, #1b1f25 50%,
    #4d5562 57%, #b9c1cb 74%, #f4f6f9 86%, #9ea7b2 100%);
  --gutter: 16px;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

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

html, body { margin: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: #1b1f25; color: #fff; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 88px var(--gutter);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}

.hud {
  position: absolute;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}
.hud--tl { top: 22px; left: var(--gutter); }
.hud--tr { top: 22px; right: var(--gutter); }
.hud--bl { bottom: 22px; left: var(--gutter); }
.hud--br { bottom: 22px; right: var(--gutter); transition: color 0.2s; }
.hud--br:hover { color: var(--ink); }
.hud--br span { display: inline-block; animation: nudge 2.4s var(--ease) infinite; }

.stage {
  position: relative;
  width: 100%;
  max-width: 1500px;
}

#chrome {
  display: block;
  width: 100%;
  height: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.gl-ready #chrome { opacity: 1; }
.no-gl #chrome { display: none; }

/* CSS chrome wordmark: shown without JS or WebGL, otherwise kept for screen readers and SEO */
.wordmark {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.6rem, 8.4vw, 8.2rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-align: center;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.25)) drop-shadow(0 18px 22px rgba(0, 0, 0, 0.12));
}
.wordmark span {
  display: inline-block;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (max-width: 719px) {
  .wordmark span { display: block; }
}
.js:not(.no-gl) .wordmark {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- What we do ---------- */

.about {
  min-height: 80vh;
  min-height: 80svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(96px, 14vh, 160px) var(--gutter);
  text-align: center;
}

.statement {
  max-width: 12ch;
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 7.8vw, 8rem);
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

.lede {
  max-width: 34ch;
  margin: clamp(28px, 4vw, 48px) 0 0;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- Footer ---------- */

.foot {
  padding: 32px var(--gutter) 40px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  #chrome { transition: none; }
  .hud--br span { animation: none; }
}
