:root {
  color-scheme: dark;
  --bg: #020201;
  --bg-soft: #050401;
  --text: #f7f0dc;
  --muted: #aaa083;
  --dim: #68614f;
  --line: rgba(244, 197, 57, 0.22);
  --line-strong: rgba(255, 212, 74, 0.58);
  --accent: #f4c539;
  --accent-hot: #ffda58;
  --accent-deep: #1f1701;
  --shadow: rgba(0, 0, 0, 0.68);
  --font-brand: Optima, Candara, "Avenir Next", "Segoe UI", FreeSans, sans-serif;
  --font-copy: "Avenir Next", "Segoe UI", FreeSans, sans-serif;
  --font-mono: Iosevka, "JetBrainsMono Nerd Font Mono", "SFMono-Regular", Consolas, monospace;
  --max-width: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

html:not([data-motion="ready"]) .ambient-field,
html:not([data-motion="ready"]) .eyebrow,
html:not([data-motion="ready"]) .wordmark-name,
html:not([data-motion="ready"]) .wordmark-role,
html:not([data-motion="ready"]) .summary,
html:not([data-motion="ready"]) .signal-row span,
html:not([data-motion="ready"]) .notice,
html:not([data-motion="ready"]) .destination,
html:not([data-motion="ready"]) .site-footer {
  opacity: 1;
  transform: none;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-copy);
  background:
    linear-gradient(180deg, rgba(4, 3, 1, 0.4), transparent 42%),
    linear-gradient(145deg, #020201 0%, #040301 58%, #010100 100%);
  color: var(--text);
  font-feature-settings: "kern" 1, "liga" 1;
}

a {
  color: inherit;
}

code {
  color: var(--accent-hot);
  font-family: var(--font-mono);
  font-size: 0.94em;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.page-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 2, 1, 0.72) 0 12%, rgba(2, 2, 1, 0.34) 38%, transparent 72%),
    linear-gradient(180deg, rgba(2, 2, 1, 0.25), transparent 36%, rgba(0, 0, 0, 0.74) 100%);
}

.ambient-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
}

.hairline-accent {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.94;
}

.landing {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 34px;
}

.hero {
  max-width: 760px;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 16px;
  padding: 6px 9px 5px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--accent-hot);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.wordmark {
  display: grid;
  gap: 8px;
  margin: 0;
  color: var(--text);
}

.wordmark-name {
  position: relative;
  display: inline-block;
  width: fit-content;
  padding-right: 0.13em;
  font-family: var(--font-brand);
  font-size: 8.25rem;
  font-weight: 300;
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow:
    0 0 22px rgba(255, 218, 88, 0.12),
    0 24px 90px rgba(244, 197, 57, 0.12);
}

.wordmark-name::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.12em;
  bottom: 0.02em;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 218, 88, 0.88), rgba(255, 218, 88, 0));
  box-shadow: 0 8px 34px rgba(255, 218, 88, 0.16);
}

.wordmark-role {
  width: fit-content;
  margin-left: 0.08rem;
  color: var(--accent);
  font-family: var(--font-copy);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.summary {
  max-width: 610px;
  margin: 30px 0 0;
  color: var(--muted);
  font-family: var(--font-copy);
  font-size: 1.12rem;
  line-height: 1.55;
}

.destinations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 44px;
}

.destination {
  position: relative;
  display: flex;
  min-height: 146px;
  padding: 24px 24px 22px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(9, 7, 2, 0.88), rgba(2, 2, 1, 0.92)),
    rgba(2, 2, 1, 0.9);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 20px 80px var(--shadow);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.destination::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 1px;
  background: var(--accent-hot);
  box-shadow: 18px -7px 0 rgba(255, 218, 88, 0.38);
  transform: scaleX(0.78);
  transform-origin: right;
  transition: transform 180ms ease;
}

.destination:hover,
.destination:focus-visible {
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(20, 15, 3, 0.9), rgba(3, 3, 1, 0.93)),
    rgba(5, 4, 1, 0.94);
  outline: none;
  transform: translateY(-2px);
}

.destination:hover::after,
.destination:focus-visible::after {
  transform: scaleX(1);
}

.destination-primary {
  border-color: rgba(255, 218, 88, 0.42);
}

.destination-path {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.destination-label {
  margin-top: 28px;
  font-family: var(--font-brand);
  font-size: 2.18rem;
  font-weight: 300;
  line-height: 1.04;
}

.destination-copy {
  max-width: 28ch;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
}

.signal-row span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 218, 88, 0.2);
  background: rgba(4, 3, 1, 0.74);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.notice {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 26px;
  padding: 7px 9px 6px;
  border: 1px solid rgba(255, 218, 88, 0.2);
  background: rgba(4, 3, 1, 0.62);
  color: var(--dim);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.45;
}

.notice strong {
  color: var(--accent);
}

.site-footer {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 24px;
  color: var(--dim);
  font-size: 0.82rem;
}

.is-leaving .page-shell {
  pointer-events: none;
}

@media (max-width: 780px) {
  .landing {
    width: min(100% - 28px, var(--max-width));
    padding-top: 24px;
  }

  .destinations {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .destination {
    min-height: 136px;
  }

  .signal-row {
    margin-top: 22px;
  }

  .wordmark-role {
    font-size: 0.92rem;
  }

  .wordmark-name {
    font-size: 4.4rem;
  }

  .summary {
    font-size: 1.04rem;
  }

  .destination-label {
    font-size: 1.78rem;
  }

  .hairline-accent {
    opacity: 0.68;
  }
}

@media (min-width: 1180px) {
  .wordmark-name {
    font-size: 8.9rem;
  }
}

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

  .hairline-accent {
    opacity: 0.74;
  }
}
