:root {
  --void: #0a0a0b;
  --charcoal: #151618;
  --warm: #f2f1ee;
  --grey: #8c8f94;
  --silver: #bfc3c9;
  --accent: #3b5ccc;
  --font-display: "Bodoni Moda", "Times New Roman", serif;
  --font-sans: Inter, system-ui, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--void);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--warm);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: none;
}

body.is-touch {
  cursor: auto;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: none;
}

body.is-touch button {
  cursor: pointer;
}

h1 {
  margin: 0;
}

::selection {
  background: var(--accent);
  color: var(--warm);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  pointer-events: none;
  mix-blend-mode: difference;
  transition: transform 0.18s ease;
}

.cursor.is-hover {
  transform: scale(1.7);
}

.cursor.is-hidden {
  opacity: 0;
}

.cursor-star {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--warm);
  clip-path: polygon(50% 0, 54% 46%, 100% 50%, 54% 54%, 50% 100%, 46% 54%, 0 50%, 46% 46%);
}

body.is-touch .cursor,
body.is-touch .grain {
  display: none;
}

.ident {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--void);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.ident.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ident-mark {
  position: relative;
  width: min(78vw, 640px);
}

.ident-img,
.logo-img {
  width: 100%;
  height: auto;
}

.logo-slice,
.ident-img.logo-slice {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  clip-path: inset(42% 0 46% 0);
  pointer-events: none;
}

.glitch-target.is-glitching .logo-slice {
  filter: brightness(1.4);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem var(--pad);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6rem;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(10, 10, 11, 0.72), transparent);
  z-index: -1;
}

body.menu-open {
  overflow: hidden;
}

.wordmark-nav {
  position: relative;
  display: block;
  width: min(38vw, 128px);
}

.nav-desktop {
  display: none;
  gap: 2.2rem;
}

.nav-desktop a,
.nav-overlay a {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.nav-toggle {
  width: 28px;
  height: 16px;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--warm);
}

.nav-toggle span:first-child {
  top: 3px;
}

.nav-toggle span:last-child {
  bottom: 3px;
}

body.menu-open .nav-toggle span:first-child {
  top: 7px;
  transform: rotate(28deg);
}

body.menu-open .nav-toggle span:last-child {
  bottom: 8px;
  transform: rotate(-28deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--void);
  display: grid;
  place-items: center;
}

.nav-overlay[hidden] {
  display: none;
}

.nav-overlay nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.nav-overlay a {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 10vw, 5rem);
  letter-spacing: 0.06em;
  text-transform: none;
}

@media (min-width: 860px) {
  .nav-desktop {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

.hero {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem var(--pad) 2rem;
  background: var(--void);
}

.hero-mark {
  position: relative;
  width: min(82vw, 720px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.services {
  padding: 1rem var(--pad) 5rem;
  background: var(--void);
}

.services ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.services li {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--grey);
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 5rem var(--pad) 6rem;
  background: var(--void);
}

.contact-mail {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.4vw, 2.6rem);
  letter-spacing: 0.02em;
}

.contact-mail:hover {
  color: var(--silver);
}

.made {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--grey);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ident,
  .cursor {
    transition: none;
  }

  .ident {
    display: none;
  }
}
