@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/instrument-sans.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --canvas: #07080a;
  --elevated: #0e1014;
  --mist: #8b919a;
  --bone: #e8eaed;
  --accent: #5b8cff;
  --hairline: rgba(255, 255, 255, 0.1);
  --font: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --pad-x: clamp(1.25rem, 4vw, 2.75rem);
}

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

html {
  color-scheme: dark;
  background: var(--canvas);
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--bone);
  background:
    radial-gradient(
      ellipse 70% 42% at 50% 58%,
      rgba(91, 140, 255, 0.09),
      transparent 62%
    ),
    var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(91, 140, 255, 0.28);
  color: var(--bone);
}

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

:focus {
  outline: none;
}

:focus-visible {
  outline: 1px solid rgba(91, 140, 255, 0.72);
  outline-offset: 4px;
}

.skip {
  position: absolute;
  left: var(--pad-x);
  top: 0.75rem;
  z-index: 4;
  padding: 0.4rem 0.7rem;
  background: var(--elevated);
  border: 1px solid var(--hairline);
  color: var(--bone);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

.field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100dvh;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.55rem var(--pad-x) 1.2rem;
}

.brand,
.nav-link {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
  transition: color 0.35s ease, text-shadow 0.35s ease;
}

.brand {
  color: var(--bone);
}

.nav-link:hover,
.brand:hover {
  color: var(--bone);
  text-shadow: 0 0 16px rgba(91, 140, 255, 0.22);
}

.nav-link[aria-current="page"] {
  color: var(--bone);
}

.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  padding: 0 var(--pad-x) clamp(2.5rem, 8vh, 5.5rem);
  text-align: center;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.glow {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 0;
  width: min(52rem, 96vw);
  height: min(26rem, 56vw);
  transform: translate(-50%, -52%);
  background: radial-gradient(
    ellipse at center,
    rgba(91, 140, 255, 0.32) 0%,
    rgba(91, 140, 255, 0.12) 34%,
    rgba(91, 140, 255, 0.03) 58%,
    transparent 74%
  );
  pointer-events: none;
  animation: breathe 11s ease-in-out infinite;
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(2.7rem, 7.2vw, 4.85rem);
  font-weight: 500;
  letter-spacing: 0.028em;
  line-height: 0.96;
  color: var(--bone);
}

.tagline {
  position: relative;
  z-index: 1;
  margin: 0.9rem 0 0;
  color: var(--mist);
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.constellation {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(1.75rem, 4.4vw, 4.1rem);
  width: min(64rem, 100%);
  margin-top: clamp(2.8rem, 6.2vh, 4.6rem);
}

.star {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  opacity: 0;
  animation: rise 0.85s ease forwards;
}

.star:nth-child(1) {
  animation-delay: 0.12s;
}

.star:nth-child(2) {
  animation-delay: 0.22s;
}

.star:nth-child(3) {
  animation-delay: 0.32s;
}

.star:nth-child(4) {
  animation-delay: 0.42s;
}

.star:nth-child(5) {
  animation-delay: 0.52s;
}

.star-link {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.star-name {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--bone);
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 0.4s ease, text-shadow 0.4s ease;
}

.star-link:hover .star-name,
.star-link:focus-visible .star-name {
  background-size: 100% 1px;
  text-shadow: 0 0 18px rgba(91, 140, 255, 0.28);
}

.star-desc {
  display: block;
  max-width: 13rem;
  margin-top: 0.42rem;
  color: var(--mist);
  font-size: 0.78rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.star-desc + .star-desc {
  margin-top: 0.22rem;
}

.star-note,
.star-soon {
  margin-top: 0.48rem;
  color: rgba(139, 145, 154, 0.78);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.35s ease;
}

.star-note:hover,
.star-note:focus-visible {
  color: var(--bone);
}

.star--soon {
  opacity: 0;
}

.star--soon.star {
  animation-name: rise-muted;
}

.star--soon .star-name {
  color: rgba(232, 234, 237, 0.78);
}

.star--soon .star-desc {
  color: rgba(139, 145, 154, 0.88);
}

#premade:target .star-name {
  text-shadow: 0 0 18px rgba(91, 140, 255, 0.32);
}

.meta {
  padding: 0.4rem var(--pad-x) 1.45rem;
  color: rgba(139, 145, 154, 0.7);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.meta p {
  margin: 0;
}

.entity {
  width: min(32rem, 100%);
  margin: auto;
  padding: clamp(2rem, 8vh, 5rem) var(--pad-x) 3rem;
  text-align: left;
}

.entity h1 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 2.7rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
}

.lede {
  margin: 1.15rem 0 0;
  color: var(--mist);
  font-size: 1.02rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

.legal {
  margin-top: 2.4rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--hairline);
}

.legal p,
.legal address {
  margin: 0 0 0.38rem;
  font-size: 0.92rem;
  font-style: normal;
  line-height: 1.55;
  color: var(--bone);
}

.legal .quiet {
  color: var(--mist);
}

.contact,
.also {
  margin: 1.55rem 0 0;
  font-size: 0.92rem;
}

.contact a,
.also a {
  color: var(--mist);
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: color 0.35s ease, background-size 0.4s ease,
    text-shadow 0.4s ease;
}

.contact a:hover,
.also a:hover,
.contact a:focus-visible,
.also a:focus-visible {
  color: var(--bone);
  background-size: 100% 1px;
  text-shadow: 0 0 16px rgba(91, 140, 255, 0.22);
}

.lost {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: min(28rem, 100%);
  margin: auto;
  padding: 0 var(--pad-x);
}

.lost h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.lost p {
  margin: 1rem 0 0;
  color: var(--mist);
}

.lost a {
  color: var(--mist);
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: color 0.35s ease, background-size 0.4s ease;
}

.lost a:hover,
.lost a:focus-visible {
  color: var(--bone);
  background-size: 100% 1px;
}

.page-company .entity {
  isolation: isolate;
}

.page-company .entity h1 {
  position: relative;
}

.page-company .entity h1::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 50%;
  z-index: -1;
  width: 14rem;
  height: 8rem;
  transform: translateY(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(91, 140, 255, 0.2),
    transparent 70%
  );
  pointer-events: none;
  animation: breathe 11s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.62;
  }
  50% {
    opacity: 1;
  }
}

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

@keyframes rise-muted {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 0.68;
    transform: none;
  }
}

@media (max-width: 800px) {
  .page-home .stage {
    height: auto;
  }

  .page-home .main {
    justify-content: center;
    padding-top: 1.5rem;
    padding-bottom: 3rem;
  }

  .constellation {
    flex-direction: column;
    align-items: center;
    gap: 1.7rem;
    margin-top: 2.6rem;
  }

  .star-desc {
    max-width: 16rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glow,
  .star,
  .star--soon,
  .page-company .entity h1::before {
    animation: none;
  }

  .star,
  .star--soon {
    opacity: 1;
  }

  .star--soon {
    opacity: 0.68;
  }

  .star-name,
  .contact a,
  .also a,
  .lost a,
  .brand,
  .nav-link {
    transition: none;
  }
}
