:root {
  --ink: #050711;
  --mist: #f1f0ea;
  --cyan: #74b8ce;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--mist);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  grid-template-rows: auto 1fr auto;
  background: var(--ink);
}

.hero-media,
.hero-wash {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -2;
  background-image: url("/refracted-matter.png");
  background-position: 47% 50%;
  background-size: cover;
  filter: saturate(0.94) contrast(1.04);
  animation: settle 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-wash {
  background:
    linear-gradient(90deg, rgba(5, 7, 17, 0.08) 0%, rgba(5, 7, 17, 0.06) 42%, rgba(5, 7, 17, 0.7) 68%, rgba(5, 7, 17, 0.94) 100%),
    linear-gradient(180deg, rgba(5, 7, 17, 0.32) 0%, transparent 25%, transparent 72%, rgba(5, 7, 17, 0.56) 100%);
}

.site-header,
.site-footer {
  position: relative;
  display: grid;
  align-items: center;
  padding-inline: clamp(22px, 4vw, 64px);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header {
  grid-template-columns: 1fr auto;
  min-height: 78px;
  border-bottom: 1px solid rgba(241, 240, 234, 0.18);
}

.wordmark {
  width: max-content;
  color: var(--mist);
  text-decoration: none;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(241, 240, 234, 0.68);
}

.signal-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(116, 184, 206, 0.74);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  align-items: center;
  padding: clamp(48px, 7vw, 112px) clamp(22px, 4vw, 64px);
}

.hero-copy {
  grid-column: 2;
  width: min(100%, 680px);
  animation: rise 0.9s 0.12s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(56px, 6.8vw, 108px);
  font-weight: 480;
  letter-spacing: -0.065em;
  line-height: 0.9;
  text-wrap: balance;
}

h1 span {
  display: block;
  color: rgba(241, 240, 234, 0.52);
}

.intro {
  max-width: 39ch;
  margin: clamp(30px, 4vw, 54px) 0 0;
  color: rgba(241, 240, 234, 0.7);
  font-size: clamp(16px, 1.4vw, 20px);
  letter-spacing: -0.02em;
  line-height: 1.55;
}

.site-footer {
  grid-template-columns: 1fr auto 1fr;
  min-height: 76px;
  border-top: 1px solid rgba(241, 240, 234, 0.18);
  color: rgba(241, 240, 234, 0.58);
}

.site-footer p {
  margin: 0;
}

.domain {
  color: var(--mist);
  text-transform: lowercase;
}

.site-footer ul {
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  position: relative;
}

.site-footer li + li::before {
  position: absolute;
  left: -15px;
  color: rgba(241, 240, 234, 0.28);
  content: "/";
}

.year {
  justify-self: end;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes settle {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  .hero-media {
    background-position: 38% 50%;
  }

  .hero-wash {
    background:
      linear-gradient(180deg, rgba(5, 7, 17, 0.18) 0%, rgba(5, 7, 17, 0.12) 35%, rgba(5, 7, 17, 0.9) 76%, var(--ink) 100%),
      linear-gradient(90deg, rgba(5, 7, 17, 0.02), rgba(5, 7, 17, 0.34));
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: end;
    padding-top: clamp(180px, 40vh, 380px);
  }

  .hero-copy {
    grid-column: 1;
  }

  h1 {
    max-width: 12ch;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    row-gap: 18px;
    padding-block: 22px;
  }

  .site-footer ul {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
    gap: 10px 24px;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 64px;
  }

  .header-meta {
    font-size: 9px;
  }

  .hero {
    padding-bottom: 48px;
  }

  .eyebrow {
    margin-bottom: 18px;
  }

  h1 {
    font-size: clamp(48px, 14vw, 70px);
  }

  .intro {
    font-size: 16px;
  }

  .site-footer {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
