@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --mark-upside-down: #A78BFA;
  --mark-upright: #2EE9DD;
  --bg: #0B1220;
  --bg-deep: #07060F;
  --text: #F8FAFC;
  --muted: #94A3B8;
  --lede: #CBD5E1;
  --line: rgba(148, 163, 184, 0.22);
  --font: "IBM Plex Sans", Manrope, system-ui, sans-serif;
  --max: 1080px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

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

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  display: block;
}

a {
  color: var(--mark-upright);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #8AFFF6;
}

a:focus-visible,
.skip:focus-visible {
  outline: 2px solid var(--mark-upright);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 20;
  background: var(--bg);
  color: var(--text);
  padding: 8px 12px;
}

.skip:focus {
  left: 16px;
}

/* Space backdrop */
.space {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 50% 120%, rgba(11, 18, 32, 0.2), transparent 60%),
    linear-gradient(180deg, #07060F 0%, var(--bg) 45%, #0A0714 100%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}

.glow-a {
  width: 62vw;
  height: 62vw;
  max-width: 820px;
  max-height: 820px;
  left: -18vw;
  top: -22vh;
  background: rgba(122, 58, 196, 0.18);
}

.glow-b {
  width: 55vw;
  height: 55vw;
  max-width: 740px;
  max-height: 740px;
  right: -16vw;
  top: 18vh;
  background: rgba(90, 36, 180, 0.22);
}

.glow-c {
  width: 40vw;
  height: 28vw;
  max-width: 520px;
  right: 18vw;
  bottom: -8vh;
  background: rgba(240, 120, 50, 0.10);
}

.stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

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

main {
  display: flex;
  align-items: center;
}

.hero {
  width: min(var(--max), calc(100% - 80px));
  margin: 0 auto;
  padding: 48px 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 32px 40px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mark-upright);
}

h1 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(2.35rem, 1.1rem + 4.6vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 1.05rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--mark-upside-down), var(--mark-upright));
}

.studio {
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.lede {
  margin: 1.15rem 0 0;
  color: var(--lede);
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.28rem);
  max-width: 22em;
  text-wrap: pretty;
}

.facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 8px;
  margin: 1.6rem 0 0;
  padding: 0;
}

.facts li {
  margin: 0;
  padding: 0.48rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.45);
  color: #E2E8F0;
  font-size: 0.9rem;
  line-height: 1.3;
}

.art {
  justify-self: end;
  width: min(100%, 520px);
  position: relative;
}

.art::before {
  content: "";
  position: absolute;
  inset: 6% 4%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 55%,
    rgba(46, 233, 221, 0.16),
    rgba(140, 50, 210, 0.14) 42%,
    transparent 70%);
  filter: blur(18px);
  z-index: -1;
  pointer-events: none;
}

.art picture,
.art img {
  width: 100%;
  height: auto;
  display: block;
}

.art img {
  /* Edge fade is baked into the hero assets so the art can float on the page */
  filter: drop-shadow(0 18px 40px rgba(5, 8, 15, 0.55));
  animation: drift 28s ease-in-out infinite alternate;
  transform-origin: 55% 50%;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) rotate(-2deg); }
  to { transform: translate3d(-10px, 14px, 0) rotate(2.4deg); }
}

.site-footer {
  width: min(var(--max), calc(100% - 80px));
  margin: 0 auto;
  padding: 18px 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 8px;
}

.footer-links a {
  color: #E2E8F0;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--mark-upright);
  text-decoration: underline;
}

.footer-links .dot {
  color: #64748B;
}

@media (max-width: 800px) {
  .hero {
    width: min(var(--max), calc(100% - 40px));
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 36px 0 16px;
    gap: 8px;
  }

  h1::after {
    margin-inline: auto;
  }

  .lede {
    margin-inline: auto;
  }

  .facts {
    justify-content: center;
  }

  .art {
    order: -1;
    width: min(78vw, 340px);
    justify-self: center;
    margin-top: 4px;
  }

  .site-footer {
    width: min(var(--max), calc(100% - 40px));
    justify-content: center;
    text-align: center;
    padding: 16px 0 28px;
  }

  .footer-links {
    justify-content: center;
    width: 100%;
  }
}

@media (max-height: 740px) and (min-width: 801px) {
  .hero {
    padding: 28px 0 16px;
  }

  .art {
    width: min(100%, 440px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .art img {
    animation: none;
  }
}
