:root {
  color-scheme: dark;
  --bg: #07080d;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.075);
  --text: #f1f4f8;
  --muted: #9ba6b5;
  --faint: #677184;
  --line: rgba(255, 255, 255, 0.12);
  --cyan: #8be9ff;
  --violet: #d0b6ff;
  --pink: #ff9bc8;
  --max: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 20% 8%, rgba(139, 233, 255, 0.11), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(255, 155, 200, 0.08), transparent 26rem),
    linear-gradient(180deg, #080911 0%, var(--bg) 46%, #05060a 100%);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.018) 0,
    rgba(255, 255, 255, 0.018) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.34;
}

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

.site-shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  backdrop-filter: blur(18px);
}

.brand {
  font-family: Newsreader, Georgia, serif;
  font-size: 1.2rem;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 0.84rem;
}

.nav-links a,
.link-row a {
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--cyan);
}

.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.hero {
  position: relative;
  display: grid;
  min-height: 76vh;
  padding-top: 120px;
  align-content: center;
  border-top: 0;
  overflow: hidden;
}

.hero-orbit {
  position: absolute;
  top: 18%;
  right: 2%;
  width: min(38vw, 420px);
  aspect-ratio: 1;
  border: 1px solid rgba(139, 233, 255, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 70px rgba(139, 233, 255, 0.09),
    inset 0 0 70px rgba(208, 182, 255, 0.05);
  opacity: 0.8;
}

.hero-orbit::before,
.hero-orbit::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.hero-orbit::before {
  inset: 18%;
  border: 1px solid rgba(255, 155, 200, 0.14);
}

.hero-orbit::after {
  width: 7px;
  height: 7px;
  top: 24%;
  left: 16%;
  background: var(--cyan);
  box-shadow: 0 0 22px var(--cyan);
}

.signal,
.section-kicker {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(4.8rem, 13vw, 11rem);
  font-weight: 500;
  line-height: 0.9;
  text-shadow: 0 0 36px rgba(139, 233, 255, 0.18);
}

h2 {
  margin-bottom: 0;
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 500;
  line-height: 1.02;
}

.subtitle {
  width: fit-content;
  margin-bottom: 28px;
  padding: 8px 12px;
  border: 1px solid rgba(139, 233, 255, 0.22);
  background: rgba(139, 233, 255, 0.055);
  color: #d9f8ff;
  font-size: clamp(0.95rem, 2vw, 1.18rem);
}

.intro {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: start;
}

.section-grid > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.project-list {
  display: grid;
  gap: 14px;
}

.project-item {
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--line);
}

.project-item:first-child {
  border-top: 1px solid var(--line);
}

.project-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
}

.project-item p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.link-row a {
  min-width: 132px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.link-row a:hover,
.link-row a:focus-visible {
  border-color: rgba(139, 233, 255, 0.46);
  background: var(--surface-strong);
  color: var(--cyan);
  transform: translateY(-2px);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 36px 0 52px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.82rem;
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-header {
    padding: 18px 0;
  }

  .nav-links {
    gap: 12px;
    font-size: 0.8rem;
  }

  .hero {
    min-height: 72vh;
    padding-top: 72px;
  }

  .hero-orbit {
    top: 14%;
    right: -36%;
    width: 78vw;
  }

  .section {
    padding: 72px 0;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .subtitle {
    width: auto;
  }

  .link-row a {
    flex: 1 1 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-orbit {
    animation: breathe 8s ease-in-out infinite;
  }

  @keyframes breathe {
    0%,
    100% {
      transform: translate3d(0, 0, 0);
      opacity: 0.72;
    }

    50% {
      transform: translate3d(0, -8px, 0);
      opacity: 0.92;
    }
  }
}
