:root {
  --bg: #05060a;
  --text: #ecebe6;
  --muted: #9b9ba6;
  --line: rgba(236, 235, 230, 0.12);
  --line-strong: rgba(236, 235, 230, 0.22);
  --card: #0a0b11;
  --tick: rgba(236, 235, 230, 0.55);
  --accent: #6aa8ff;
  --accent-ink: #04101f;
  --accent-2: #8fd3e6;
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
  color-scheme: dark;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.intro-on {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #2a2b33;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 32px);
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(70% 55% at 85% -10%, rgba(38, 52, 92, 0.45), transparent 70%),
    radial-gradient(50% 40% at -5% 105%, rgba(106, 168, 255, 0.07), transparent 70%),
    var(--bg);
}

#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
  pointer-events: none;
}

#intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(5, 6, 10, 0.3), rgba(5, 6, 10, 0.92) 75%);
  transition: opacity 0.9s, visibility 0.9s;
}

.js #intro {
  display: flex;
}

#intro.out {
  opacity: 0;
  visibility: hidden;
}

.intro-label,
.intro-sub {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: 0.78rem;
  color: var(--muted);
}

.intro-sub {
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  opacity: 0.7;
}

.intro-count {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(5rem, 18vw, 11rem);
  line-height: 1;
  color: var(--text);
}

.intro-count.pop {
  animation: pop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}

#intro.launch .intro-count {
  color: var(--accent);
  animation: zoomout 1.2s ease-in forwards;
}

#intro.launch .intro-label,
#intro.launch .intro-sub,
#intro.launch .intro-bar {
  opacity: 0;
  transition: opacity 0.4s;
}

@keyframes pop {
  from {
    transform: scale(1.7);
    opacity: 0;
    filter: blur(8px);
  }
  to {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes zoomout {
  to {
    transform: scale(3.2);
    opacity: 0;
    filter: blur(12px);
  }
}

.intro-bar {
  width: min(260px, 60vw);
  height: 2px;
  background: var(--line);
  overflow: hidden;
}

.intro-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  animation: bar 2.1s linear forwards;
}

@keyframes bar {
  to {
    width: 100%;
  }
}

.intro-skip {
  position: absolute;
  right: clamp(18px, 4vw, 36px);
  bottom: calc(clamp(18px, 4vw, 36px) + env(safe-area-inset-bottom, 0px));
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 3px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
}

.intro-skip:hover {
  color: var(--text);
  border-color: var(--accent);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 0 18px;
  transition: padding 0.35s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 10, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.35s;
}

.site-header.scrolled {
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  padding-bottom: 10px;
}

.site-header.scrolled::before {
  opacity: 1;
}

.js .site-header {
  opacity: 0;
  transition: padding 0.35s var(--ease), opacity 0.8s 0.9s;
}

.ready .site-header {
  opacity: 1;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  gap: 4px;
}

.nav a {
  position: relative;
  padding: 8px 11px;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.25s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover,
.nav a[aria-current="true"] {
  color: var(--text);
}

.nav a:hover::after,
.nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

.menu-btn {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 3px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 6, 10, 0.6);
  cursor: pointer;
}

.menu-btn span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.menu-btn span:first-child {
  top: 17px;
}

.menu-btn span:last-child {
  top: 25px;
}

.menu-open .menu-btn span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.menu-open .menu-btn span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

@media (max-width: 1080px) {
  .menu-btn {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    padding: 90px clamp(24px, 8vw, 60px);
    background: rgba(5, 6, 10, 0.97);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
  }

  .nav a {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    padding: 6px 0;
    color: var(--text);
    opacity: 0;
    translate: 0 14px;
    transition: opacity 0.4s, translate 0.4s var(--ease), color 0.25s;
  }

  .nav a::after {
    left: 0;
    right: 0;
  }

  .nav a:hover {
    color: var(--accent);
  }

  .menu-open .nav {
    opacity: 1;
    visibility: visible;
  }

  .menu-open .nav a {
    opacity: 1;
    translate: 0 0;
  }

  .menu-open .nav a:nth-child(2) { transition-delay: 0.04s; }
  .menu-open .nav a:nth-child(3) { transition-delay: 0.08s; }
  .menu-open .nav a:nth-child(4) { transition-delay: 0.12s; }
  .menu-open .nav a:nth-child(5) { transition-delay: 0.16s; }
  .menu-open .nav a:nth-child(6) { transition-delay: 0.2s; }
  .menu-open .nav a:nth-child(7) { transition-delay: 0.24s; }

  .menu-open {
    overflow: hidden;
  }
}

#flightpath {
  position: fixed;
  right: 26px;
  top: 50%;
  height: 52vh;
  width: 14px;
  translate: 0 -50%;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}

#flightpath.show {
  opacity: 1;
  pointer-events: auto;
}

.fp-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  translate: -50% 0;
  background: var(--line-strong);
}

.fp-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  background: var(--accent);
}

#flightpath a {
  position: absolute;
  left: 50%;
  width: 11px;
  height: 11px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid color-mix(in srgb, var(--c) 60%, transparent);
  transition: background 0.3s, scale 0.3s;
}

#flightpath a.on {
  background: var(--c);
}

#flightpath a.current {
  scale: 1.35;
}

#flightpath a::after {
  content: attr(data-label);
  position: absolute;
  right: 22px;
  top: 50%;
  translate: 8px -50%;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line-strong);
  padding: 4px 9px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, translate 0.25s var(--ease);
}

#flightpath a:hover::after,
#flightpath a:focus-visible::after {
  opacity: 1;
  translate: 0 -50%;
}

.fp-rocket {
  position: absolute;
  left: calc(50% - 22px);
  top: 0;
  width: 14px;
  height: 18px;
  translate: -50% -50%;
  rotate: 180deg;
  pointer-events: none;
  transition: rotate 0.4s var(--ease);
}

.fp-rocket.up {
  rotate: 0deg;
}

.fp-rocket svg {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 900px) {
  #flightpath {
    display: none;
  }
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 90px;
}

.hero > .container {
  min-width: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.js .hero .enter {
  opacity: 0;
  translate: 0 26px;
  transition: opacity 0.9s var(--d, 0s), translate 1s var(--ease) var(--d, 0s);
}

.ready .hero .enter {
  opacity: 1;
  translate: 0 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.live {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6ee7a0;
}

.live::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid #6ee7a0;
  animation: livePulse 2s ease-out infinite;
}

@keyframes livePulse {
  from {
    opacity: 1;
    transform: scale(0.6);
  }
  to {
    opacity: 0;
    transform: scale(2);
  }
}

.hero-name {
  margin: 20px 0 14px;
  font-size: clamp(2.7rem, 6.4vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.hero-name .line {
  display: block;
  white-space: nowrap;
}

.ch {
  display: inline-block;
  transition-property: opacity, translate, transform, color;
  transition-duration: 0.7s, 1s, 0.3s, 0.3s;
  transition-timing-function: ease, cubic-bezier(0.2, 0.75, 0.2, 1), cubic-bezier(0.3, 1.6, 0.5, 1), ease;
  transition-delay: calc(var(--i) * 40ms + 0.25s), calc(var(--i) * 40ms + 0.25s), 0s, 0s;
  cursor: default;
}

.js .ch {
  opacity: 0;
  translate: 0 0.55em;
}

.ready .ch {
  opacity: 1;
  translate: 0 0;
}

.line-2 .ch {
  color: var(--accent);
}

.ch:hover {
  transform: translateY(-0.14em) rotate(-4deg);
  color: var(--accent);
}

.line-2 .ch:hover {
  color: var(--text);
}

.ch:has(+ .ch:hover),
.ch:hover + .ch {
  transform: translateY(-0.06em);
}

.role {
  font-family: var(--mono);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text);
  margin: 0 0 18px;
  min-height: 1.7em;
}

.role-prefix {
  color: var(--accent);
}

.caret {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  margin-left: 3px;
  vertical-align: -0.18em;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-lead {
  color: var(--muted);
  max-width: 34rem;
  font-size: 1.05rem;
  margin: 0;
}

.route {
  max-width: 34rem;
  margin-top: 24px;
  padding: 14px 18px 16px;
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--accent);
  background: rgba(10, 11, 17, 0.75);
}

.route-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.route-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 10px 0 8px;
}

.route-city {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 0.76rem;
  color: var(--muted);
}

.route-city b {
  font-family: var(--mono);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: var(--text);
}

.route-city.to {
  text-align: right;
}

.route-city.to b {
  color: var(--accent);
}

.route-path {
  position: relative;
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(236, 235, 230, 0.45) 0 6px, transparent 6px 12px);
}

.route-path::before,
.route-path::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  translate: 0 -50%;
}

.route-path::before {
  left: -4px;
  border-radius: 50%;
  background: var(--text);
}

.route-path::after {
  right: -4px;
  background: var(--accent);
  rotate: 45deg;
}

.route-ship {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 18px;
  translate: -50% -50%;
  rotate: 90deg;
  animation: routeFly 4.5s ease-in-out infinite;
}

.route-ship svg {
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes routeFly {
  0% {
    left: 4%;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  80% {
    left: 94%;
    opacity: 1;
  }
  100% {
    left: 94%;
    opacity: 0;
  }
}

.route-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 3px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s, color 0.3s;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-ghost:hover {
  border-color: var(--text);
}

.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: #8dbdff;
  border-color: #8dbdff;
}

.btn-arr {
  font-family: var(--mono);
  transition: transform 0.3s var(--ease);
}

.btn-primary:hover .btn-arr {
  transform: translateX(4px);
}

.socials {
  display: flex;
  gap: 8px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 3px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  transition: color 0.25s, border-color 0.25s, transform 0.3s var(--ease);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--text);
  transform: translateY(-2px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(155, 155, 166, 0.85);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta span + span::before {
  content: "/";
  color: var(--line-strong);
  margin-right: 4px;
}

.hero-meta .hint {
  color: var(--accent);
}

.hero-visual {
  position: relative;
}

.js .hero-visual {
  opacity: 0;
  scale: 0.9;
  transition: opacity 1.4s 0.3s, scale 1.6s var(--ease) 0.3s;
}

.ready .hero-visual {
  opacity: 1;
  scale: 1;
}

.sys-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.sys-how {
  color: var(--accent-2);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 4px auto 12px;
  max-width: 560px;
}

.legend button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.legend button span {
  color: var(--c);
}

.legend button:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.legend button.on {
  color: var(--bg);
  background: var(--c);
  border-color: var(--c);
}

.legend button.on span {
  color: var(--bg);
}

#system {
  --sf: 1;
  position: relative;
  width: 100%;
  aspect-ratio: 1.45;
  cursor: crosshair;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(236, 235, 230, 0.11);
  z-index: 1;
  pointer-events: none;
  transition: border-color 0.5s;
}

.orbit.lit {
  border-color: var(--accent);
  border-style: solid;
}

#trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 15;
  pointer-events: none;
}

.sun {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(56px * var(--sf));
  height: calc(56px * var(--sf));
  translate: -50% -50%;
  border-radius: 50%;
  border: 0;
  padding: 0;
  z-index: 10;
  cursor: pointer;
  font-family: var(--mono);
  font-weight: 700;
  font-size: calc(13px * var(--sf));
  color: #5a3300;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 58%, rgba(255, 255, 255, 0.18) 59% 61%, transparent 62%),
    #ffcb5c;
  transition: scale 0.4s var(--ease);
}

.sun::before,
.sun::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.sun::before {
  inset: -22%;
  border: 1px dashed rgba(255, 203, 92, 0.55);
  animation: spin 40s linear infinite;
}

.sun::after {
  inset: -48%;
  border: 1px dotted rgba(255, 203, 92, 0.3);
  animation: spin 70s linear infinite reverse;
}

.sun:hover {
  scale: 1.08;
}

.planet {
  --s: 26px;
  position: absolute;
  left: 0;
  top: 0;
  width: var(--s);
  height: var(--s);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  z-index: 20;
  will-change: transform;
  border-radius: 50%;
}

.planet .body {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--tex, none), var(--c1);
  box-shadow:
    inset calc(var(--s) * -0.28) calc(var(--s) * -0.08) 0 0 rgba(5, 7, 16, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: box-shadow 0.3s;
}

.tex-bands {
  --tex: repeating-linear-gradient(-14deg, transparent 0 17%, color-mix(in srgb, var(--c2, var(--c1)) 45%, transparent) 17% 25%, transparent 25% 33%, color-mix(in srgb, var(--c2, var(--c1)) 25%, transparent) 33% 37%);
}

.tex-craters {
  --tex:
    radial-gradient(circle at 30% 34%, color-mix(in srgb, var(--c2, var(--c1)) 55%, transparent) 0 10%, transparent 11%),
    radial-gradient(circle at 62% 64%, color-mix(in srgb, var(--c2, var(--c1)) 55%, transparent) 0 8%, transparent 9%),
    radial-gradient(circle at 70% 28%, color-mix(in srgb, var(--c2, var(--c1)) 55%, transparent) 0 6%, transparent 7%),
    radial-gradient(circle at 38% 74%, color-mix(in srgb, var(--c2, var(--c1)) 40%, transparent) 0 5%, transparent 6%);
}

.tex-cap {
  --tex:
    radial-gradient(ellipse 55% 20% at 50% 2%, rgba(255, 255, 255, 0.85) 0 98%, transparent 100%),
    linear-gradient(170deg, transparent 0 55%, color-mix(in srgb, var(--c2, var(--c1)) 35%, transparent) 55% 70%, transparent 70%);
}

.planet.ringed::after {
  content: "";
  position: absolute;
  left: -48%;
  right: -48%;
  top: 40%;
  height: 20%;
  border-radius: 50%;
  border: 1.5px solid var(--c1);
  border-top-color: transparent;
  transform: rotate(-16deg);
  pointer-events: none;
}

.planet:hover .body,
.planet:focus-visible .body,
.planet.active .body {
  box-shadow:
    inset calc(var(--s) * -0.28) calc(var(--s) * -0.08) 0 0 rgba(5, 7, 16, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    0 0 0 3px var(--bg),
    0 0 0 4px var(--c1);
}

.planet .label {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  translate: -50% 0;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(236, 235, 230, 0.6);
  pointer-events: none;
  transition: color 0.3s;
}

.planet:hover .label,
.planet:focus-visible .label {
  color: var(--text);
}

.planet.active .label {
  color: var(--accent);
}

.planet .ping {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  border: 1.5px solid var(--c1);
  opacity: 0;
  pointer-events: none;
}

#system:not(.touched) .planet .ping {
  animation: ping 3.2s ease-out infinite;
}

#system:not(.touched) .planet:nth-of-type(2) .ping { animation-delay: 0.45s; }
#system:not(.touched) .planet:nth-of-type(3) .ping { animation-delay: 0.9s; }
#system:not(.touched) .planet:nth-of-type(4) .ping { animation-delay: 1.35s; }
#system:not(.touched) .planet:nth-of-type(5) .ping { animation-delay: 1.8s; }
#system:not(.touched) .planet:nth-of-type(6) .ping { animation-delay: 2.25s; }
#system:not(.touched) .planet:nth-of-type(7) .ping { animation-delay: 2.7s; }

#system .planet.hit .ping {
  animation: ping 1s ease-out;
}

@keyframes ping {
  0% {
    opacity: 0.9;
    transform: scale(0.7);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(2.6);
  }
}

#rocket {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(26px * var(--sf));
  height: calc(34px * var(--sf));
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  z-index: 30;
  will-change: transform;
}

.rocket-inner {
  position: absolute;
  inset: 0;
  display: block;
}

.rocket-inner svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 5px rgba(255, 200, 160, 0.45));
}

.rocket-inner.flip {
  animation: flip 0.9s cubic-bezier(0.5, 0, 0.3, 1);
}

@keyframes flip {
  50% {
    scale: 1.4;
  }
  to {
    transform: rotate(360deg);
  }
}

.flame {
  position: absolute;
  left: 50%;
  top: 90%;
  width: 42%;
  height: 42%;
  translate: -50% 0;
  border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
  background: radial-gradient(ellipse at 50% 8%, #fff 0, #ffe28a 26%, #ff7a3d 56%, rgba(255, 60, 100, 0) 76%);
  transform-origin: 50% 0;
  animation: flicker 0.09s infinite alternate;
  transition: height 0.35s var(--ease);
}

#rocket.boost .flame {
  height: 115%;
}

@keyframes flicker {
  from {
    transform: scaleY(0.85) scaleX(0.94);
  }
  to {
    transform: scaleY(1.12) scaleX(1.05);
  }
}

.rocket-tag {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 45;
  padding: 3px 7px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent-ink);
  background: var(--accent);
  pointer-events: none;
  will-change: transform;
  transition: opacity 0.5s;
}

.rocket-tag::before {
  content: "";
  position: absolute;
  left: -9px;
  bottom: -9px;
  width: 10px;
  height: 10px;
  border-left: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  transform: skewX(-35deg);
  transform-origin: bottom left;
}

#system.touched:not(.touring) .rocket-tag {
  opacity: 0;
}

.hud {
  position: relative;
  max-width: 470px;
  min-height: 168px;
  margin: 6px auto 0;
  padding: 16px 20px 18px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(var(--tick), var(--tick)) top left / 12px 1px no-repeat,
    linear-gradient(var(--tick), var(--tick)) top left / 1px 12px no-repeat,
    linear-gradient(var(--tick), var(--tick)) bottom right / 12px 1px no-repeat,
    linear-gradient(var(--tick), var(--tick)) bottom right / 1px 12px no-repeat,
    rgba(10, 11, 17, 0.88);
  overflow: hidden;
}

.hud::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

.hud.swap .hud-title,
.hud.swap .hud-text,
.hud.swap .hud-actions {
  animation: hudIn 0.55s var(--ease) both;
}

.hud.swap .hud-text {
  animation-delay: 0.06s;
}

.hud.swap .hud-actions {
  animation-delay: 0.12s;
}

@keyframes hudIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.hud-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.hud-status::before {
  content: "■ ";
}

.hud.flying .hud-status {
  color: var(--accent);
  animation: blinkSoft 0.8s ease-in-out infinite;
}

@keyframes blinkSoft {
  50% {
    opacity: 0.45;
  }
}

.hud-steps {
  display: inline-flex;
  gap: 3px;
}

.hud-steps i {
  width: 14px;
  height: 3px;
  background: rgba(236, 235, 230, 0.18);
}

.hud-steps i.done {
  background: var(--accent);
}

.hud-steps i.now {
  background: var(--accent);
  animation: blinkSoft 0.8s ease-in-out infinite;
}

.hud-title {
  position: relative;
  margin: 8px 0 4px;
  font-size: 1.28rem;
  line-height: 1.25;
}

.hud-text {
  position: relative;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hud-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 12px;
}

.hud-actions:not(:has(> :not([hidden]))) {
  display: none;
}

.hud-land {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  transition: gap 0.25s, background 0.25s;
}

.hud-land svg {
  width: 14px;
  height: 14px;
}

.hud-land:hover {
  gap: 12px;
  background: #8dbdff;
}

.hud-stop {
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
}

.hud-stop:hover {
  color: var(--text);
  border-color: var(--text);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  translate: -50% 0;
  width: 1px;
  height: 46px;
  background: var(--line-strong);
  overflow: hidden;
}

.scroll-cue span {
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: var(--accent);
  animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
  to {
    top: 100%;
  }
}

@media (max-width: 960px) {
  .hero {
    padding-top: 110px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    margin-top: 10px;
  }

  .scroll-cue {
    display: none;
  }
}

@media (max-height: 760px) and (min-width: 961px) {
  .scroll-cue {
    display: none;
  }
}

.section {
  position: relative;
  padding: clamp(90px, 12vw, 150px) 0;
  scroll-margin-top: 30px;
}

.js .reveal {
  opacity: 0;
  translate: 0 40px;
  transition: opacity 0.9s var(--ease) var(--d, 0s), translate 1s var(--ease) var(--d, 0s);
}

.js .reveal.in {
  opacity: 1;
  translate: 0 0;
}

.sec-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.sec-head.center {
  margin-inline: auto;
  text-align: center;
}

.sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.sec-tag .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset -4px -1px 0 0 rgba(5, 7, 16, 0.45);
}

.sec-head h2 {
  margin: 14px 0 12px;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.grad {
  color: var(--c, var(--accent));
}

.sec-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.card {
  --tick: rgba(236, 235, 230, 0.5);
  position: relative;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--tick), var(--tick)) top left / 14px 1px no-repeat,
    linear-gradient(var(--tick), var(--tick)) top left / 1px 14px no-repeat,
    linear-gradient(var(--tick), var(--tick)) top right / 14px 1px no-repeat,
    linear-gradient(var(--tick), var(--tick)) top right / 1px 14px no-repeat,
    linear-gradient(var(--tick), var(--tick)) bottom left / 14px 1px no-repeat,
    linear-gradient(var(--tick), var(--tick)) bottom left / 1px 14px no-repeat,
    linear-gradient(var(--tick), var(--tick)) bottom right / 14px 1px no-repeat,
    linear-gradient(var(--tick), var(--tick)) bottom right / 1px 14px no-repeat,
    var(--card);
}

.card:hover {
  --tick: var(--c, var(--accent));
}

.mini-title {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 6px 11px;
  border-radius: 2px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.chip:hover {
  border-color: var(--c, var(--accent));
  color: var(--c, var(--accent));
}

.chips.small .chip {
  font-size: 0.74rem;
  padding: 4px 9px;
  color: var(--muted);
  border-color: var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.about-text p {
  color: #cfcfd6;
  font-size: 1.05rem;
  margin: 0 0 16px;
}

.about-text .lead {
  font-size: clamp(1.15rem, 1.8vw, 1.32rem);
  color: var(--text);
  line-height: 1.55;
}

.about-text strong {
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid var(--c);
}

.callout {
  padding: 14px 18px;
  border-left: 2px solid var(--accent);
  background: rgba(106, 168, 255, 0.06);
}

.about-text .callout strong {
  color: var(--accent);
  border: 0;
}

.logbook {
  margin: 30px 0 34px;
  border-top: 1px solid var(--line-strong);
}

.log-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.log-row dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.log-row dd {
  margin: 0;
}

.log-row b {
  display: block;
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  transition: color 0.25s;
}

.log-row dd span {
  display: block;
  margin-top: 2px;
  font-size: 0.92rem;
  color: var(--muted);
}

.log-row:hover b {
  color: var(--c);
}

.pilot-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px dashed var(--line-strong);
}

.pilot-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6ee7a0;
}

.pilot dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 20px;
  margin: 0 0 24px;
}

.pilot dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}

.pilot dd {
  margin: 0;
  color: var(--text);
}

.pilot dd.hl {
  color: var(--accent);
  font-weight: 600;
}

.langs {
  padding-top: 20px;
  border-top: 1px dashed var(--line-strong);
}

.lang {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 6px 0;
  font-size: 0.94rem;
}

.lang em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--muted);
}

.lvl {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
}

.lvl i {
  height: 5px;
  background: rgba(236, 235, 230, 0.12);
}

.lvl[data-n="6"] i,
.lvl[data-n="5"] i:nth-child(-n + 5),
.lvl[data-n="1"] i:nth-child(1) {
  background: var(--c);
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .log-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .lang {
    grid-template-columns: 80px 1fr auto;
    gap: 10px;
  }
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.6s var(--ease), border-color 0.35s, opacity 0.9s var(--ease) var(--d, 0s), translate 1s var(--ease) var(--d, 0s);
}

.project::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 9%, transparent), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.project:hover {
  border-color: color-mix(in srgb, var(--c) 35%, transparent);
}

.project:hover::before {
  opacity: 1;
}

.project-main {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.project.featured h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.project.featured .feats {
  position: relative;
  margin: 0;
  padding: 22px 0 0 24px;
  border-left: 1px dashed var(--line-strong);
}

.project-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mini-planet {
  --c1: var(--c);
  --s: 46px;
  position: relative;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--tex, none), var(--c);
  box-shadow:
    inset -13px -4px 0 0 rgba(5, 7, 16, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: transform 0.6s var(--ease);
}

.mini-planet::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  left: 50%;
  top: 50%;
  margin: -2.5px;
  border-radius: 50%;
  background: var(--text);
  animation: moon 6s linear infinite;
}

.mini-planet.ringed::after {
  content: "";
  position: absolute;
  left: -42%;
  right: -42%;
  top: 41%;
  height: 18%;
  border-radius: 50%;
  border: 1.5px solid var(--c);
  border-top-color: transparent;
  transform: rotate(-16deg);
}

.project:hover .mini-planet {
  transform: rotate(-12deg);
}

@keyframes moon {
  from {
    transform: rotate(0deg) translateX(38px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(38px) rotate(-360deg);
  }
}

.project-kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.project h3 {
  margin: 22px 0 8px;
  font-size: 1.32rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.project p {
  margin: 0;
  color: var(--muted);
}

.feats {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: #cfcfd6;
  font-size: 0.95rem;
}

.feats li {
  position: relative;
  padding-left: 22px;
}

.feats li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--c);
}

.tags {
  list-style: none;
  margin: auto 0 0;
  padding: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-main > .feats {
  margin-bottom: 6px;
}

.tags li {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 2px;
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  color: color-mix(in srgb, var(--c) 80%, #fff);
}

.repo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  margin-top: 22px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.repo svg {
  width: 17px;
  height: 17px;
}

.repo .arr {
  width: 15px;
  height: 15px;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}

.repo::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 24px;
  bottom: -3px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.repo:hover::after {
  transform: scaleX(1);
}

.repo:hover .arr {
  transform: translate(3px, -3px);
}

.tilt {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

@media (max-width: 1000px) {
  .projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects .project:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .projects {
    grid-template-columns: minmax(0, 1fr);
  }

  .project.featured {
    grid-template-columns: minmax(0, 1fr);
  }

  .project.featured .feats {
    padding: 20px 0 0;
    border-left: 0;
    border-top: 1px dashed var(--line-strong);
  }
}

.skills-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

.galaxy {
  position: relative;
  width: min(580px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
  container-type: inline-size;
}

.core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 700;
  font-size: clamp(0.8rem, 3cqi, 1rem);
  line-height: 1.1;
  color: var(--accent-ink);
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px rgba(106, 168, 255, 0.5);
  z-index: 2;
}

.ring {
  position: absolute;
  inset: 0;
  pointer-events: none;
  animation: spin var(--dur) linear infinite;
}

.ring.rev {
  animation-direction: reverse;
}

.ring::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--k) * 100%);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px dashed rgba(236, 235, 230, 0.14);
}

.g-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--a)) translateX(calc(var(--k) * 50cqi)) rotate(calc(var(--a) * -1));
}

.g-spin {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  animation: spin var(--dur) linear infinite reverse;
}

.ring.rev .g-spin {
  animation-direction: normal;
}

.g-label {
  position: absolute;
  left: 0;
  top: 0;
  translate: -50% -50%;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 2px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  color: var(--text);
  pointer-events: auto;
  cursor: default;
  transition: background 0.25s, color 0.25s, border-color 0.25s, scale 0.25s var(--ease), opacity 0.25s;
}

.g-label:hover,
.g-label.lit {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  scale: 1.14;
  z-index: 3;
}

.galaxy:hover .ring,
.galaxy:hover .g-spin,
.galaxy.focus .ring,
.galaxy.focus .g-spin {
  animation-play-state: paused;
}

.galaxy.focus .g-label:not(.lit) {
  opacity: 0.3;
}

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

.skill-group {
  margin-bottom: 28px;
}

.skill-group:last-child {
  margin-bottom: 0;
}

.skill-group h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.skill-group h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.skill-lists .chip[data-name] {
  cursor: default;
}

@media (max-width: 960px) {
  .skills-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .galaxy {
    display: none;
  }
}

.timeline {
  --fill: 0;
  position: relative;
  padding-left: 48px;
  max-width: 900px;
}

.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 10px;
  bottom: 10px;
  width: 1px;
}

.timeline::before {
  background: var(--line-strong);
}

.timeline::after {
  background: var(--accent);
  transform-origin: top;
  transform: scaleY(var(--fill));
}

.mission {
  margin-bottom: 24px;
  transition: border-color 0.35s, opacity 0.9s var(--ease) var(--d, 0s), translate 1s var(--ease) var(--d, 0s);
}

.mission:last-child {
  margin-bottom: 0;
}

.mission:hover {
  border-color: color-mix(in srgb, var(--c) 35%, transparent);
}

.mission::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 34px;
  width: 11px;
  height: 11px;
  rotate: 45deg;
  background: var(--bg);
  border: 1.5px solid var(--c);
  z-index: 1;
}

.mission-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px 24px;
}

.mission-code {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c);
}

.mission h3 {
  margin: 8px 0 2px;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.3;
}

.company {
  color: #d7d7de;
  font-weight: 500;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.74rem;
  padding: 5px 10px;
  border-radius: 2px;
  border: 1px solid var(--line-strong);
  color: #cfcfd6;
  white-space: nowrap;
}

.pill svg {
  width: 13px;
  height: 13px;
  color: var(--c);
}

.pill.accent {
  border-color: color-mix(in srgb, var(--c) 45%, transparent);
  color: var(--c);
}

.mission ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px dashed var(--line-strong);
  display: grid;
  gap: 10px;
  color: #cfcfd6;
}

.mission li {
  position: relative;
  padding-left: 22px;
}

.mission li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--c);
}

@media (max-width: 560px) {
  .timeline {
    padding-left: 30px;
  }

  .timeline::before,
  .timeline::after {
    left: 6px;
  }

  .mission::before {
    left: -29px;
  }
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.edu {
  overflow: hidden;
  transition: border-color 0.35s, opacity 0.9s var(--ease) var(--d, 0s), translate 1s var(--ease) var(--d, 0s);
}

.edu:hover {
  border-color: color-mix(in srgb, var(--c) 35%, transparent);
}

.edu-years {
  display: block;
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--c);
}

.edu h3 {
  margin: 18px 0 4px;
  font-size: 1.4rem;
  line-height: 1.25;
}

.edu-field {
  margin: 0 0 16px;
  color: #cfcfd6;
  font-size: 1.05rem;
}

.trajectory {
  --p: 0.85;
  margin-top: 26px;
}

.traj-track {
  position: relative;
  height: 1px;
  background: var(--line-strong);
}

.traj-fill {
  position: absolute;
  left: 0;
  top: -1px;
  height: 3px;
  width: calc(var(--p) * 100%);
  background: var(--c);
}

.traj-ship {
  position: absolute;
  top: 50%;
  left: calc(var(--p) * 100%);
  width: 14px;
  height: 18px;
  translate: -50% -50%;
  rotate: 90deg;
}

.traj-ship svg {
  display: block;
  width: 100%;
  height: 100%;
}

.traj-labels {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

@media (max-width: 760px) {
  .edu-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.act-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.act {
  display: flex;
  flex-direction: column;
  transition: transform 0.6s var(--ease), border-color 0.35s, opacity 0.9s var(--ease) var(--d, 0s), translate 1s var(--ease) var(--d, 0s);
}

.act:hover {
  border-color: color-mix(in srgb, var(--c) 35%, transparent);
}

.act-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line-strong);
}

.act-place {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c);
}

.act-no {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--muted);
  transition: color 0.3s;
}

.act:hover .act-no {
  color: var(--c);
}

.act h3 {
  margin: 18px 0 10px;
  font-size: 1.25rem;
  line-height: 1.3;
}

.act p {
  margin: 0;
  color: var(--muted);
}

.act .repo {
  margin-top: auto;
  padding-top: 22px;
}

@media (max-width: 640px) {
  .act-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.contact {
  overflow: hidden;
  padding-bottom: clamp(240px, 26vw, 320px);
}

.radar {
  position: absolute;
  left: 50%;
  top: clamp(60px, 8vw, 100px);
  width: min(760px, 120vw);
  aspect-ratio: 1;
  translate: -50% -18%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.45;
}

.radar i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(236, 235, 230, 0.14);
  animation: radar 6s ease-out infinite;
}

.radar i:nth-child(2) {
  animation-delay: 2s;
}

.radar i:nth-child(3) {
  animation-delay: 4s;
}

.radar .sweep {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(106, 168, 255, 0.14), transparent 20%);
  animation: spin 7s linear infinite;
  mask: radial-gradient(circle, #000 0 70%, transparent 71%);
  -webkit-mask: radial-gradient(circle, #000 0 70%, transparent 71%);
}

@keyframes radar {
  from {
    transform: scale(0.15);
    opacity: 1;
  }
  to {
    transform: scale(1);
    opacity: 0;
  }
}

.contact-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 48px;
  text-align: center;
}

.big-mail {
  font-size: clamp(1.25rem, 4.2vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  word-break: break-all;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.3s;
}

.big-mail:hover {
  color: var(--accent);
}

.channels {
  list-style: none;
  max-width: 880px;
  margin: 0 auto;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.channels a {
  display: grid;
  grid-template-columns: 64px 110px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 16px;
  padding: 20px 10px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, padding 0.35s var(--ease);
}

.chn-no {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
}

.chn-name {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.chn-val {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  overflow-wrap: anywhere;
  transition: color 0.25s;
}

.chn-arr {
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform 0.3s var(--ease), color 0.25s;
}

.channels a:hover {
  background: rgba(106, 168, 255, 0.05);
  padding-left: 20px;
}

.channels a:hover .chn-val,
.channels a:hover .chn-arr,
.channels a:hover .chn-no {
  color: var(--accent);
}

.channels a:hover .chn-arr {
  transform: translate(3px, -3px);
}

@media (max-width: 640px) {
  .channels a {
    grid-template-columns: 52px minmax(0, 1fr) 18px;
    grid-template-areas:
      "no name arr"
      ". val arr";
    gap: 4px 12px;
    padding: 16px 4px;
  }

  .chn-no { grid-area: no; }
  .chn-name { grid-area: name; }
  .chn-val { grid-area: val; }
  .chn-arr { grid-area: arr; }

  .channels a:hover {
    padding-left: 10px;
  }
}

.c-location {
  display: flex;
  justify-content: center;
  margin: 30px 0 0;
}

.c-location span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text);
}

.c-location b {
  color: var(--accent);
}

.c-location svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.horizon {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: max(1800px, 180vw);
  aspect-ratio: 1;
  translate: -50% calc(100% - clamp(150px, 16vw, 210px));
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(60% 6% at 50% 0%, rgba(150, 195, 255, 0.2), transparent 100%),
    linear-gradient(180deg, #1a1d2c 0%, #0c0d15 6%, #06070b 14%);
  box-shadow:
    0 -1px 0 rgba(170, 205, 255, 0.6),
    0 -20px 90px rgba(106, 168, 255, 0.14),
    inset 0 14px 40px rgba(140, 190, 255, 0.14);
}

.site-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px));
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.to-top {
  font-family: var(--font);
}

.to-top svg {
  transition: transform 0.3s var(--ease);
}

.to-top:hover svg {
  transform: translateY(-3px);
}

@media (max-width: 520px) {
  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

.launcher {
  position: fixed;
  width: 28px;
  height: 37px;
  translate: -50% 0;
  z-index: 150;
  pointer-events: none;
  animation: launch 1.5s cubic-bezier(0.6, 0, 0.85, 0.35) forwards;
}

.launcher svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.launcher .flame {
  height: 160%;
}

@keyframes launch {
  0% {
    transform: translateY(0);
  }
  12% {
    transform: translateY(8px);
  }
  100% {
    transform: translateY(-120vh);
  }
}

#toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  translate: -50% 20px;
  z-index: 300;
  max-width: calc(100vw - 32px);
  padding: 11px 18px;
  border: 1px solid var(--accent);
  background: var(--card);
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, translate 0.4s var(--ease);
}

#toast.show {
  opacity: 1;
  translate: -50% 0;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
}
