:root {
  --void: #05061a;
  --deep: #0d0f33;
  --plum: #2b1a4f;
  --starlight: #ece9ff;
  --dust: #a9a6c9;
  --gold: #f2d49b;
  --ion: #8fb6ff;
  --display: "Unbounded", system-ui, sans-serif;
  --text: "Spectral", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background:
    radial-gradient(120% 80% at 70% 0%, var(--plum) 0%, transparent 55%),
    radial-gradient(90% 60% at 0% 100%, #121a4a 0%, transparent 60%),
    var(--void);
  background-attachment: fixed;
  color: var(--starlight);
  font: 300 1.1875rem/1.7 var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--gold); color: var(--void); padding: .5rem 1rem; z-index: 10; }
.skip:focus { top: 1rem; }

/* Header */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(var(--void), rgba(5, 6, 26, 0));
}
.mark { display: flex; align-items: center; gap: .6rem; text-decoration: none; font: 500 .95rem var(--display); letter-spacing: .02em; }
.mark svg { width: 28px; height: 28px; fill: none; stroke: var(--starlight); stroke-width: 1.4; }
.mark svg circle { fill: var(--gold); stroke: none; }
.top nav { display: flex; gap: clamp(.9rem, 2.5vw, 2rem); align-items: center; font-size: 1rem; }
.top nav a { text-decoration: none; color: var(--dust); transition: color .2s; }
.top nav a:hover { color: var(--starlight); }
.lang {
  font: 500 .75rem var(--display); color: var(--starlight); background: none; cursor: pointer;
  border: 1px solid rgba(236, 233, 255, .35); border-radius: 99px; padding: .35rem .7rem;
}
.lang:hover { border-color: var(--gold); }
@media (max-width: 560px) { .top nav a { display: none; } }

/* Hero */
.hero { position: relative; min-height: 100svh; overflow: hidden; }
#galaxy { position: absolute; inset: 0; width: 100%; height: 100%; }
.stars-labels { position: absolute; inset: 0; pointer-events: none; }
.star-label {
  position: absolute; left: 0; top: 0; pointer-events: auto;
  display: flex; align-items: center; gap: .55rem;
  text-decoration: none; font: 500 .8rem var(--display); letter-spacing: .03em; white-space: nowrap;
  color: hsl(var(--hue) 90% 85%);
  will-change: transform;
}
.star-label .dot {
  width: 9px; height: 9px; border-radius: 50%; margin-left: -4.5px;
  background: hsl(var(--hue) 100% 85%);
  box-shadow: 0 0 6px 2px hsl(var(--hue) 100% 70% / .9), 0 0 22px 8px hsl(var(--hue) 100% 60% / .35);
}
.star-label .name { opacity: .85; transition: opacity .2s; padding: .2rem 0; }
.star-label:hover .name, .star-label:focus-visible .name { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.hero-copy {
  position: absolute; left: clamp(1.25rem, 5vw, 4.5rem); bottom: clamp(4.5rem, 12vh, 8rem);
  max-width: 34rem; z-index: 2;
}
.wordmark {
  margin: 0; font: 800 clamp(3.4rem, 11vw, 9.5rem)/.86 var(--display); letter-spacing: -.045em;
  display: flex; flex-direction: column;
  text-shadow: 0 0 40px rgba(5, 6, 26, .8);
}
.wordmark span {
  font-weight: 300; letter-spacing: .02em;
  -webkit-text-stroke: 1.5px var(--starlight); color: transparent;
}
.tagline { margin: 1.6rem 0 0; font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.5; color: var(--starlight); max-width: 28ch; text-shadow: 0 0 20px var(--void); }
.hint {
  position: absolute; right: clamp(1.25rem, 4vw, 3rem); bottom: 1.5rem; margin: 0;
  font-size: .9rem; font-style: italic; color: var(--dust);
}
@media (max-width: 900px) {
  .hero-copy { bottom: 4.5rem; }
  .hint { left: clamp(1.25rem, 5vw, 4.5rem); right: auto; }
}

/* Sections */
main > section:not(.hero) {
  width: min(100% - 2.5rem, 72rem); margin-inline: auto;
  padding-block: clamp(5rem, 12vh, 9rem);
  display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(0, 2.4fr); gap: 2rem 4rem;
}
main > section:not(.hero) > * { grid-column: 2; }
main > section:not(.hero) > h2 {
  grid-column: 1; grid-row: 1 / span 3; margin: .35rem 0 0;
  font: 500 1rem/1.4 var(--display); color: var(--gold); letter-spacing: .01em;
}
@media (max-width: 760px) {
  main > section:not(.hero) { grid-template-columns: 1fr; }
  main > section:not(.hero) > *, main > section:not(.hero) > h2 { grid-column: 1; grid-row: auto; }
}

.letter-body { max-width: 36rem; }
.letter-body p { margin: 0 0 1.4em; }
.letter-body p:first-child { font-size: 1.45rem; line-height: 1.5; font-weight: 400; }
.sign { font-style: italic; color: var(--dust); }

/* Companies as orbits */
.orbit-list { list-style: none; margin: 0; padding: 0; }
.body {
  display: grid; grid-template-columns: 3.5rem 1fr auto; align-items: center; gap: 1.5rem;
  padding: 2rem 0; border-top: 1px solid rgba(236, 233, 255, .14);
}
.body:last-child { border-bottom: 1px solid rgba(236, 233, 255, .14); }
.body h3 { margin: 0 0 .25rem; font: 500 clamp(1.4rem, 2.4vw, 1.9rem)/1.2 var(--display); letter-spacing: -.01em; }
.body p { margin: 0; color: var(--dust); max-width: 40ch; }
.planet {
  width: 3.5rem; height: 3.5rem; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 32% 30%, hsl(var(--hue) 100% 88%), hsl(var(--hue) 70% 50%) 45%, hsl(var(--hue) 60% 12%) 100%);
  box-shadow: 0 0 30px hsl(var(--hue) 90% 60% / .25);
}
.planet::after {
  content: ""; position: absolute; inset: 40% -28%; border: 1px solid hsl(var(--hue) 80% 80% / .45);
  border-radius: 50%; transform: rotate(-18deg);
}
.forming .planet { background: none; box-shadow: none; border: 1px dashed rgba(236, 233, 255, .35); }
.forming .planet::after { display: none; }
.forming h3 { color: var(--dust); }
.status { font-size: .95rem; font-style: italic; color: var(--dust); text-align: right; }
.status.link { font-style: normal; font-family: var(--display); font-size: .85rem; color: var(--ion); text-underline-offset: 4px; }
@media (max-width: 560px) {
  .body { grid-template-columns: 2.75rem 1fr; }
  .planet { width: 2.75rem; height: 2.75rem; }
  .status { grid-column: 2; text-align: left; }
}

.contact p { margin: 0 0 1rem; max-width: 36rem; }
.email { font: 500 clamp(1.2rem, 3vw, 2rem) var(--display); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: .2rem; }
.email:hover { color: var(--gold); }

.foot {
  width: min(100% - 2.5rem, 72rem); margin: 0 auto; padding: 2.5rem 0 3rem;
  border-top: 1px solid rgba(236, 233, 255, .14);
  font-size: .9rem; color: var(--dust);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
}
.foot p { margin: 0; }

.star-label.flip { flex-direction: row-reverse; }
.star-label.flip .dot { margin-left: 0; margin-right: -4.5px; }
