:root {
  --void: #030308;
  --slab: #0c0c12;
  --slab-hover: #12121a;
  --edge: rgba(255, 255, 255, 0.07);
  --edge-lit: rgba(200, 208, 224, 0.28);
  --text: #e6e6ee;
  --muted: #7a7a8c;
  --star: #c8d0e0;
  --nebula-a: #2a2a48;
  --nebula-b: #1e3a42;
  --nebula-c: #3a2a28;
  --nebula-current: transparent;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --pad-x: clamp(1.5rem, 8vw, 6rem);
  --max: 1080px;
}

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

html {
  background: var(--void);
  scroll-behavior: smooth;
}

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (pointer: fine) {
  body {
    cursor: crosshair;
  }

  a,
  button,
  .slab-btn,
  .project-slab,
  .destination,
  .star-node,
  .planet,
  .portrait,
  .meteor,
  .signal,
  .focus-close,
  [data-warp] {
    cursor: pointer;
  }
}

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

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(3, 3, 8, 0.72) 100%);
}

.nebula {
  position: fixed;
  inset: -15%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 50% 38%, var(--nebula-current), transparent 68%);
  transition: background 0.7s ease;
}

.warp {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: none;
}

.warp.is-active {
  pointer-events: auto;
}

.site {
  position: relative;
  z-index: 2;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 12;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.35rem var(--pad-x);
  background: linear-gradient(to bottom, rgba(3, 3, 8, 0.88), transparent);
}

.nav-brand,
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  background: none;
  border: 0;
}

.nav-brand {
  color: var(--star);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav a:hover,
.nav-brand:hover {
  color: var(--text);
}

.section {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7.5rem var(--pad-x) 5rem;
}

.section-inner {
  max-width: var(--max);
  width: 100%;
}

.index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

h1,
h2,
.brand {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #fff;
}

.brand {
  font-size: clamp(4.2rem, 14vw, 9.5rem);
  letter-spacing: 0.14em;
  line-height: 0.92;
  font-weight: 500;
}

.hero-line {
  margin-top: 1.75rem;
  max-width: 28em;
  color: var(--star);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
  font-weight: 400;
}

.manifesto {
  max-width: 36em;
}

.manifesto p + p {
  margin-top: 1.25rem;
}

.manifesto .open {
  color: var(--text);
  font-size: 1.2rem;
}

p {
  color: var(--muted);
}

.work-strip {
  display: flex;
  gap: 1.15rem;
  overflow-x: auto;
  padding: 0.25rem 0 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
  will-change: transform;
}

.work-strip .project-slab {
  flex: 0 0 min(300px, 78vw);
}

.slab,
.slab-btn {
  background: var(--slab);
  border: 1px solid var(--edge);
  border-radius: 8px;
  color: var(--text);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.slab {
  overflow: hidden;
}

.slab:hover,
.project-slab:hover {
  background: var(--slab-hover);
  border-color: var(--edge-lit);
}

.project-slab {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-slab img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 1px solid var(--edge);
}

.project-body {
  padding: 1.15rem 1.2rem 1.25rem;
}

.project-body h2 {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.telemetry {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.15rem;
}

.slab-btn {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
}

.slab-btn:hover {
  background: var(--slab-hover);
  border-color: var(--edge-lit);
}

.actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.page-head {
  margin-bottom: 2.5rem;
}

.transmission {
  width: 100%;
  max-width: 720px;
  height: min(78vh, 860px);
  margin: 1.5rem 0 1.25rem;
}

.transmission iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--void);
}

.status {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  padding: 2rem 0;
}

footer {
  position: relative;
  z-index: 2;
  padding: 2rem var(--pad-x) 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

.return-void {
  color: var(--muted);
  text-decoration: none;
  opacity: 0.45;
  letter-spacing: 0.12em;
}

.return-void:hover,
.return-void:focus-visible {
  color: var(--star);
  opacity: 0.8;
}

.reveal,
.reveal-left {
  transition: opacity 1s ease, transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js .reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(48px);
}

html.js .reveal-left:not(.is-in) {
  opacity: 0;
  transform: translateX(8%);
}

html.js .reveal.is-in,
html.js .reveal-left.is-in {
  opacity: 1;
  transform: none;
}

html.is-arriving:not(.is-settled) .site,
body.is-arriving:not(.is-settled) .site {
  opacity: 0;
  transform: translateX(-18px);
}

html.is-arriving.is-settled .site,
body.is-arriving.is-settled .site {
  opacity: 1;
  transform: none;
  transition: opacity 0.56s ease, transform 0.56s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js .reveal:not(.is-in),
  html.js .reveal-left:not(.is-in),
  .reveal,
  .reveal-left,
  html.is-arriving .site,
  html.is-arriving:not(.is-settled) .site,
  body.is-arriving .site,
  body.is-arriving:not(.is-settled) .site,
  html.is-arriving.is-settled .site,
  body.is-arriving.is-settled .site {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .warp {
    display: none;
  }
}

.nav-links a[aria-current="page"],
.nav-brand[aria-current="page"] {
  color: var(--star);
}

.signals {
  display: flex;
  gap: 1.25rem;
}

.signals a,
.signal {
  color: var(--muted);
  text-decoration: none;
}

.signals a:hover,
.signal:hover {
  color: var(--text);
}

.page-home .site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-home {
  min-height: 100vh;
}

@media (min-width: 901px) {
  .page-home {
    height: 100vh;
    overflow: hidden;
  }
}

.landing {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.92fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: clamp(1rem, 4vw, 3.5rem);
  padding: 7.5rem var(--pad-x) 2.5rem;
}

.landing-copy {
  grid-column: 1;
  grid-row: 1;
  max-width: 40em;
}

.elephant-sky {
  position: relative;
  grid-column: 2;
  grid-row: 1 / span 2;
  width: min(100%, 460px);
  justify-self: end;
  pointer-events: none;
}

.elephant-constellation {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.elephant-lines line {
  stroke: rgba(200, 208, 224, 0.2);
  stroke-width: 0.85;
}

.elephant-star {
  fill: var(--star);
  opacity: 0.78;
}

.elephant-star:not(.is-key) {
  animation: star-pulse 5.4s ease-in-out infinite;
}

.elephant-star.is-key {
  fill: #fff;
  opacity: 0.95;
}

.elephant-star:nth-child(3n) {
  animation-delay: 1.1s;
}

.elephant-star:nth-child(3n + 1) {
  animation-delay: 2.4s;
}

@keyframes star-pulse {
  50% {
    opacity: 0.38;
  }
}

.destinations {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  gap: 1.25rem;
  margin-top: 3.25rem;
  max-width: 680px;
}

.haiku {
  position: absolute;
  z-index: 1;
  left: auto;
  right: 1%;
  top: 22%;
  width: max-content;
  max-width: 52%;
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-shadow:
    0 0 16px rgba(3, 3, 8, 0.95),
    0 1px 2px rgba(3, 3, 8, 0.9);
}

.haiku span:nth-child(2) {
  color: rgba(200, 208, 224, 0.62);
}

.destination {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.35rem 0.15rem;
  text-decoration: none;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 0;
}

.destination:hover strong,
.destination:focus-visible strong {
  color: var(--star);
}

.destination:focus-visible {
  outline: 1px solid var(--edge-lit);
  outline-offset: 4px;
}

.destination-glyph {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}

.destination-glyph svg {
  width: 72px;
  height: 72px;
}

.glyph-constellation line {
  stroke: var(--star);
  stroke-width: 1.1;
  opacity: 0.45;
}

.glyph-constellation circle {
  fill: var(--star);
}

.glyph-planet circle {
  fill: #1a1a24;
  stroke: var(--star);
  stroke-width: 1.2;
}

.glyph-planet ellipse {
  fill: none;
  stroke: var(--star);
  stroke-width: 1.1;
  opacity: 0.7;
}

.glyph-planet .ring-front {
  opacity: 0.95;
}

.glyph-planet .planet-mark {
  fill: var(--star);
  stroke: none;
  opacity: 0.55;
}

.destination-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.destination-copy strong {
  font-family: var(--font-display);
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.02em;
}

.sky-main,
.trace-main {
  padding: 7.5rem var(--pad-x) 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sky-main .page-head,
.trace-main .page-head {
  max-width: 40em;
  text-align: center;
}

.sky-main h1,
.trace-main h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin-bottom: 0.6rem;
}

.constellation-stage {
  position: relative;
  width: min(100%, 1100px);
  min-height: min(62vh, 720px);
  margin: 0.5rem auto 1.5rem;
}

.constellation-svg {
  width: 100%;
  height: min(62vh, 720px);
  display: block;
  overflow: visible;
}

.constellation-edge {
  stroke: rgba(200, 208, 224, 0.22);
  stroke-width: 1;
  fill: none;
  transition: stroke 0.25s ease, stroke-width 0.25s ease;
}

.constellation-edge.is-lang {
  stroke: rgba(200, 208, 224, 0.1);
  stroke-dasharray: 3 5;
}

.constellation-edge.is-lit {
  stroke: rgba(232, 232, 240, 0.7);
  stroke-width: 1.5;
}

.star-node {
  outline: none;
  cursor: pointer;
}

.star-node:focus-visible .star-glow {
  fill: rgba(232, 232, 240, 0.5);
}

.star-glow {
  fill: rgba(232, 232, 240, 0.16);
  transition: fill 0.25s ease;
}

.star-core {
  fill: var(--star);
  transition: fill 0.25s ease;
}

.star-glow,
.star-core {
  pointer-events: none;
}

.star-hit {
  fill: transparent;
}

.star-node:hover .star-glow,
.star-node:focus-visible .star-glow,
.star-node.is-active .star-glow {
  fill: rgba(232, 232, 240, 0.38);
}

.star-node:hover .star-core,
.star-node:focus-visible .star-core,
.star-node.is-active .star-core {
  fill: #fff;
}

.star-caption {
  position: absolute;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--star);
  background: rgba(3, 3, 8, 0.72);
  border: 1px solid var(--edge);
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.2s ease;
}

.star-caption.is-on {
  opacity: 1;
}

.constellation-list {
  list-style: none;
  display: none;
  gap: 0.5rem;
  margin: 0 auto 1.5rem;
  padding: 0;
  width: min(100%, 520px);
}

.constellation-list a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--edge);
  background: var(--slab);
  border-radius: 6px;
}

.constellation-list a:hover {
  border-color: var(--edge-lit);
  background: var(--slab-hover);
}

.focus-scrim {
  position: fixed;
  inset: 0;
  z-index: 18;
  background: rgba(3, 3, 8, 0.35);
}

.focus-panel {
  position: fixed;
  z-index: 20;
  right: var(--pad-x);
  top: 50%;
  transform: translateY(-50%);
  width: min(380px, calc(100vw - 3rem));
  padding: 1.4rem 1.4rem 1.5rem;
  background: var(--slab);
  border: 1px solid var(--edge-lit);
  border-radius: 10px;
}

.focus-panel[hidden],
.focus-scrim[hidden] {
  display: none;
}

.focus-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: 0;
}

.focus-close:hover {
  color: var(--text);
}

.focus-panel h2 {
  font-size: 1.35rem;
  margin: 0.35rem 0 0.7rem;
  padding-right: 3.5rem;
}

.focus-desc {
  margin-bottom: 0.85rem;
}

.focus-panel .telemetry {
  margin-bottom: 1.15rem;
}

.trace-layout {
  display: flex;
  justify-content: center;
  width: 100%;
}

.orbit-field {
  position: relative;
  width: min(480px, 100%);
  aspect-ratio: 1;
  margin: 0.5rem auto 1rem;
  overflow: visible;
}

.orbit {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.orbit-outer {
  animation: orbit-spin 92s linear infinite;
}

.orbit-inner {
  animation: orbit-spin 58s linear infinite reverse;
}

.planet {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--size);
  height: var(--size);
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  transform: rotate(var(--a)) translate(var(--r)) rotate(calc(var(--a) * -1));
  border: 0;
  background: none;
  color: var(--star);
  pointer-events: auto;
}

.planet-inner {
  width: 100%;
  height: 100%;
  animation: orbit-spin 92s linear infinite reverse;
}

.orbit-inner .planet-inner {
  animation: orbit-spin 58s linear infinite;
}

.planet-body {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.28), transparent 42%),
    radial-gradient(circle at 50% 55%, var(--planet-lit), var(--planet-core));
  border: 1px solid var(--edge-lit);
}

.planet-body svg,
.planet-mark {
  width: 54%;
  height: 54%;
  color: var(--star);
  object-fit: contain;
  filter: brightness(0) invert(0.9);
}

.planet-name {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.35rem);
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--star);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.planet:hover .planet-name,
.planet:focus-visible .planet-name {
  opacity: 1;
}

.portrait {
  position: absolute;
  inset: 34%;
  display: grid;
  place-items: center;
  z-index: 2;
  text-decoration: none;
  color: inherit;
}

.portrait:hover .portrait-core,
.portrait:focus-visible .portrait-core {
  border-color: rgba(180, 150, 80, 0.45);
  background:
    radial-gradient(circle at 32% 28%, rgba(120, 170, 220, 0.35), transparent 44%),
    radial-gradient(circle at 50% 58%, #1e4a7a, #07101c 74%);
}

.portrait-hint {
  position: absolute;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c4a45a;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.portrait:hover .portrait-hint,
.portrait:focus-visible .portrait-hint {
  opacity: 1;
}

.portrait-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(70, 120, 180, 0.45);
  opacity: 0.85;
}

.portrait-core {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 32% 28%, rgba(90, 140, 200, 0.38), transparent 42%),
    radial-gradient(circle at 50% 58%, #163a68, #050c16 74%);
  border: 1px solid rgba(60, 110, 170, 0.4);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.sigil {
  width: 90%;
  height: 90%;
  overflow: visible;
}

.sigil-lines line {
  stroke: rgba(212, 176, 90, 0.55);
  stroke-width: 0.95;
}

.sigil-star {
  fill: #c9a227;
  opacity: 0.9;
}

.sigil-star:not(.is-key) {
  animation: star-pulse 5.4s ease-in-out infinite;
}

.sigil-star.is-key {
  fill: #f0d78c;
  opacity: 1;
}

.portrait-initials {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: 0.16em;
  color: var(--star);
}

.trace-name {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.35rem;
}

.trace-identity .hero-line {
  margin-top: 0.35rem;
  margin-bottom: 1rem;
}

.signals-block {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.signal {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  background: var(--slab);
  border: 1px solid var(--edge);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--star);
}

.signal:hover {
  background: var(--slab-hover);
  border-color: var(--edge-lit);
}

.signal-mark {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
}

.signal-mark svg {
  width: 16px;
  height: 16px;
}

@property --aim {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}

.meteor {
  position: absolute;
  z-index: 3;
  display: block;
  width: clamp(96px, 28%, 132px);
  height: 36px;
  text-decoration: none;
  color: var(--star);
  pointer-events: auto;
}

.meteor-streak {
  display: flex;
  align-items: center;
  transform-origin: 100% 50%;
  transform: rotate(var(--aim));
}

.meteor-linkedin .meteor-streak {
  flex-direction: row-reverse;
  transform-origin: 0% 50%;
}

.meteor-tail {
  flex: 1 1 auto;
  width: auto;
  height: 12px;
  border-radius: 999px;
  filter: blur(1.4px);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(200, 208, 224, 0.04) 14%,
    rgba(210, 216, 230, 0.28) 52%,
    rgba(236, 238, 246, 0.82) 100%
  );
}

.meteor-head {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  margin-left: -6px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), transparent 46%),
    #16161e;
  border: 1px solid var(--edge-lit);
  transform: rotate(calc(var(--aim) * -1));
}

.meteor-linkedin .meteor-head {
  margin-left: 0;
  margin-right: -6px;
}

.meteor-linkedin .meteor-tail {
  background: linear-gradient(
    90deg,
    rgba(236, 238, 246, 0.82) 0%,
    rgba(210, 216, 230, 0.28) 48%,
    rgba(200, 208, 224, 0.04) 86%,
    transparent 100%
  );
}

.meteor-head svg {
  width: 16px;
  height: 16px;
}

.meteor-name {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translate(0.4rem, -50%);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--star);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.meteor:hover,
.meteor:focus-visible {
  animation-play-state: paused;
}

.meteor:hover .meteor-name,
.meteor:focus-visible .meteor-name {
  opacity: 1;
}

.meteor:hover .meteor-head,
.meteor:focus-visible .meteor-head {
  border-color: var(--star);
}

.meteor-github {
  animation: meteor-fly-github 12s linear infinite;
}

.meteor-linkedin {
  animation: meteor-fly-linkedin 16s linear infinite;
  animation-delay: -7s;
}

@keyframes meteor-fly-github {
  0% {
    left: -32%;
    top: 18%;
    opacity: 0;
    --aim: -29deg;
  }
  8% {
    opacity: 1;
  }
  19% {
    left: -10%;
    top: 6%;
    --aim: -6deg;
  }
  41% {
    left: 18%;
    top: 14%;
    --aim: 27deg;
  }
  68% {
    left: 46%;
    top: 36%;
    --aim: 39deg;
  }
  92% {
    opacity: 1;
  }
  100% {
    left: 78%;
    top: 62%;
    opacity: 0;
    --aim: 39deg;
  }
}

@keyframes meteor-fly-linkedin {
  0% {
    left: 99%;
    top: 70%;
    opacity: 0;
    --aim: 4deg;
  }
  8% {
    opacity: 1;
  }
  20% {
    left: 71%;
    top: 68%;
    --aim: 0deg;
  }
  41% {
    left: 41%;
    top: 70%;
    --aim: 18deg;
  }
  70% {
    left: 9%;
    top: 44%;
    --aim: 44deg;
  }
  92% {
    opacity: 1;
  }
  100% {
    left: -19%;
    top: 12%;
    opacity: 0;
    --aim: 49deg;
  }
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (pointer: coarse) {
  .planet-name,
  .meteor-name {
    opacity: 0.85;
  }

  .portrait-hint {
    opacity: 0.8;
  }

  .meteor-github,
  .meteor-linkedin {
    animation-duration: 22s;
  }
}

@media (max-width: 900px) {
  .landing {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .elephant-sky {
    grid-column: 1;
    grid-row: 2;
    width: min(100%, 460px);
    justify-self: center;
    margin-top: 0.5rem;
  }

  .haiku {
    left: 58.5%;
    right: 2.5%;
    top: 20%;
    width: auto;
    max-width: none;
    font-size: 0.75rem;
    line-height: 1.35;
    letter-spacing: 0.01em;
    text-align: right;
  }

  .destinations {
    grid-row: 3;
  }
}

@media (max-width: 480px) {
  .elephant-sky {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 1.25rem;
  }
}

@media (max-width: 700px) {
  .section {
    min-height: auto;
    padding: 6.5rem var(--pad-x) 3.5rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .page-home {
    height: auto;
    overflow: auto;
  }

  .landing {
    padding: 6.5rem var(--pad-x) 2rem;
  }

  .destinations {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .constellation-stage,
  .constellation-svg {
    min-height: 52vh;
    height: 52vh;
  }

  .star-caption {
    display: none;
  }

  .focus-panel {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    transform: none;
    border-radius: 16px 16px 0 0;
  }

  .orbit-outer,
  .orbit-inner,
  .planet-inner {
    animation: none;
  }

  .planet-name {
    opacity: 0.9;
  }

  .meteor-name {
    opacity: 0.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-outer,
  .orbit-inner,
  .planet-inner,
  .meteor-github,
  .meteor-linkedin {
    animation: none;
  }

  .meteor-github,
  .meteor-linkedin {
    opacity: 1;
  }

  .meteor-github {
    left: 2%;
    top: 4%;
  }

  .meteor-linkedin {
    left: auto;
    right: 2%;
    top: auto;
    bottom: 6%;
  }

  .meteor-github .meteor-streak,
  .meteor-linkedin .meteor-streak,
  .meteor-github .meteor-head,
  .meteor-linkedin .meteor-head {
    transform: none;
  }

  .elephant-star,
  .sigil-star {
    animation: none;
    opacity: 0.8;
  }
}
