:root {
  --void: #0c0d0f;
  --void-rgb: 12, 13, 15;
  --bone: #e8e0d4;
  --mute: #8f877f;
  --signal: #ff4f36;
  --signal-rgb: 255, 79, 54;
  --line: rgba(232, 224, 212, 0.14);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad: clamp(1.1rem, 4vw, 3.25rem);
  --max: 78rem;
  --nav-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-sharp: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 180ms;
  --dur-normal: 350ms;
  --dur-slow: 700ms;
  --progress: 0;
  --hero-shift: 0;
  --scale-press: 0.96;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--void);
}

html.has-cursor,
html.has-cursor * {
  cursor: none;
}

body {
  font-family: var(--display);
  background: var(--void);
  color: var(--bone);
  line-height: 1.45;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

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

.skip {
  position: absolute;
  left: var(--pad);
  top: 0.5rem;
  z-index: 90;
  padding: 0.6rem 0.9rem;
  background: var(--signal);
  color: #120805;
  transform: translateY(-150%);
}

.skip:focus {
  transform: none;
}

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

.progress-rail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 80;
}

.progress-rail span {
  display: block;
  height: 100%;
  width: calc(var(--progress) * 100%);
  background: var(--signal);
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--signal);
  pointer-events: none;
  z-index: 200;
  mix-blend-mode: difference;
  opacity: 0;
}

html.has-cursor .cursor {
  opacity: 1;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--signal);
  background: var(--signal);
  color: #120805;
  transition-property: transform, background-color, box-shadow, border-color;
  transition-duration: var(--dur-fast);
  transition-timing-function: var(--ease-sharp);
}

.btn:hover {
  box-shadow: 0 10px 28px rgba(var(--signal-rgb), 0.32);
}

.btn:active {
  transform: scale(var(--scale-press));
}

.btn-ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: rgba(232, 224, 212, 0.45);
  box-shadow: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
