:root {
  --bg-deep: #000000;
  --ink: oklch(0.97 0.01 85);
  --ink-muted: oklch(0.82 0.02 75);
  --accent: oklch(0.76 0.16 58);
  --accent-hot: oklch(0.8 0.17 55);
  --glow: oklch(0.72 0.18 55 / 0.5);
  --font: "Oxanium", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 4.25rem;
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg-deep);
  overflow-x: hidden;
}

.atmosphere {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 42% at 50% 38%, oklch(0.48 0.14 55 / 0.28), transparent 72%);
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: 1.1rem clamp(1.25rem, 5vw, 3.5rem);
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: clamp(0.78rem, 1.2vw, 0.92rem);
  letter-spacing: 0.36em;
  text-indent: 0.36em;
}

.brand__base {
  color: var(--ink);
}

.brand__accent {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition:
    color 200ms var(--ease-out),
    border-color 200ms var(--ease-out),
    text-shadow 200ms var(--ease-out);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent-hot);
  border-bottom-color: oklch(0.72 0.16 55 / 0.55);
  text-shadow: 0 0 18px var(--glow);
  outline: none;
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-height: 100dvh;
  padding:
    calc(var(--header-h) + 0.25rem)
    clamp(1.25rem, 4vw, 2.5rem)
    clamp(1.75rem, 5vh, 3rem);
}

.hero__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero__visual::before {
  content: "";
  position: absolute;
  width: min(52vw, 36rem);
  height: min(42vh, 28rem);
  top: 28%;
  left: 50%;
  translate: -50% -40%;
  background: radial-gradient(
    ellipse at center,
    oklch(0.7 0.16 55 / 0.42),
    oklch(0.55 0.14 55 / 0.16) 42%,
    transparent 74%
  );
  filter: blur(42px);
}

.hero__image {
  position: relative;
  display: block;
  width: min(100vw, 78rem);
  height: auto;
  max-height: 82dvh;
  object-fit: contain;
  object-position: center 36%;
  user-select: none;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%),
    linear-gradient(to bottom, transparent 2%, #000 12%, #000 68%, rgb(0 0 0 / 0.45) 84%, transparent 100%);
  -webkit-mask-composite: destination-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%),
    linear-gradient(to bottom, transparent 2%, #000 12%, #000 68%, rgb(0 0 0 / 0.45) 84%, transparent 100%);
  mask-composite: intersect;
}

.hero__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.hero__title {
  margin: 0;
  font-size: clamp(1.85rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  line-height: 1.05;
  text-wrap: balance;
}

.hero__tagline {
  margin: 0.85rem 0 0;
  max-width: 42rem;
  color: var(--accent);
  font-size: clamp(0.68rem, 1.5vw, 0.88rem);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero__divider {
  position: relative;
  width: min(20rem, 62vw);
  height: 1px;
  margin: 1.15rem 0 1.35rem;
  background: linear-gradient(
    90deg,
    transparent,
    oklch(0.72 0.16 55 / 0.5) 35%,
    oklch(0.88 0.12 70 / 0.95) 50%,
    oklch(0.72 0.16 55 / 0.5) 65%,
    transparent
  );
}

.hero__ember {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: oklch(0.9 0.12 70);
  box-shadow:
    0 0 10px oklch(0.8 0.18 55),
    0 0 26px oklch(0.7 0.18 52 / 0.75);
}

.hero__lede {
  margin: 0;
  max-width: 36rem;
  color: var(--ink-muted);
  font-size: clamp(0.92rem, 1.6vw, 1.08rem);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
  text-wrap: pretty;
}

.hero__lede .accent {
  color: var(--accent-hot);
  font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
  .js .site-header,
  .js .hero__copy {
    animation: rise-fade 900ms var(--ease-out) both;
  }

  .js .site-header {
    animation-delay: 40ms;
  }

  .js .hero__copy {
    animation-delay: 220ms;
  }

  .js .hero__ember {
    animation: ember-pulse 2.4s ease-in-out infinite;
  }
}

@keyframes rise-fade {
  from {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes ember-pulse {
  0%,
  100% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

@media (max-width: 720px) {
  .hero__image {
    width: min(140vw, 52rem);
    max-height: 70dvh;
  }
}

@media (max-width: 520px) {
  .brand {
    letter-spacing: 0.22em;
    text-indent: 0.22em;
  }

  .hero__title {
    letter-spacing: 0.16em;
    text-indent: 0.16em;
  }

  .hero__tagline {
    letter-spacing: 0.12em;
  }
}
