:root {
  color-scheme: dark;
  --bg: #060b14;
  --bg-2: #0a1322;
  --panel: rgba(10, 18, 31, 0.82);
  --panel-strong: rgba(13, 23, 39, 0.94);
  --line: rgba(120, 170, 230, 0.14);
  --line-strong: rgba(135, 187, 255, 0.22);
  --text: #eef4ff;
  --muted: #9ab0ca;
  --muted-2: #6f839f;
  --accent: #5fa8ff;
  --accent-2: #8ec5ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(68, 112, 176, 0.26), transparent 24%),
    radial-gradient(circle at 20% 20%, rgba(52, 118, 214, 0.2), transparent 20%),
    linear-gradient(180deg, #070b12 0%, #090f18 45%, #060a10 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 90%);
  opacity: 0.8;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 18%), rgba(92, 153, 255, 0.16), transparent 18%),
    radial-gradient(circle at 78% 8%, rgba(128, 180, 255, 0.08), transparent 22%);
  mix-blend-mode: screen;
  opacity: 0.9;
}

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

button,
input {
  font: inherit;
}

.shell {
  width: min(1160px, calc(100% - 28px));
  margin: 0 auto;
}

.hero {
  padding: 22px 0 22px;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(119, 169, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(119, 169, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 72%);
  pointer-events: none;
  opacity: 0.28;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
  opacity: 0.35;
}

.bg-orb--one {
  width: 280px;
  height: 280px;
  top: 80px;
  right: -70px;
  background: radial-gradient(circle, rgba(95, 168, 255, 0.38), transparent 68%);
}

.bg-orb--two {
  width: 240px;
  height: 240px;
  left: -50px;
  bottom: 40px;
  background: radial-gradient(circle, rgba(116, 187, 255, 0.22), transparent 68%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0 18px;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #e8f2ff;
  background: linear-gradient(135deg, #24426a, #6aa9ff);
  box-shadow: 0 12px 24px rgba(45, 105, 194, 0.28);
}

.ghost-link,
.pill,
.button,
.chip,
.search input,
.project-card,
.profile-card,
.panel,
.project-detail {
  border: 1px solid var(--line);
}

.ghost-link,
.pill,
.button,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(8, 15, 25, 0.7);
  color: var(--text);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.ghost-link:hover,
.pill:hover,
.button:hover,
.chip:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.ghost-link:focus-visible,
.pill:focus-visible,
.button:focus-visible,
.chip:focus-visible,
.search input:focus-visible,
.project-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 110, 214, 0.28), var(--shadow);
  border-color: rgba(136, 190, 255, 0.42);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  gap: 20px;
  align-items: stretch;
}

.hero-copy,
.profile-card,
.panel,
.project-detail {
  background: linear-gradient(180deg, rgba(12, 20, 34, 0.95), rgba(8, 13, 23, 0.9));
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: 30px;
  border: 1px solid rgba(125, 180, 255, 0.18);
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(101, 162, 255, 0.18), transparent 65%);
  filter: blur(18px);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 6.5vw, 5.8rem);
  line-height: 0.93;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.lede,
.intro-copy p,
.detail-copy,
.profile-bio,
.project-copy,
.project-url,
.project-category-label,
.metric-label,
.detail-meta dt,
.detail-meta dd,
.project-detail {
  color: var(--muted);
}

.lede {
  max-width: 60ch;
  margin-top: 18px;
  font-size: 1.06rem;
  line-height: 1.75;
}

.release-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(8, 15, 25, 0.82);
  border: 1px solid rgba(117, 178, 255, 0.18);
  color: var(--muted);
}

.release-note__tag {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(47, 110, 214, 0.2);
  color: #e8f2ff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button--solid {
  border-color: rgba(117, 178, 255, 0.34);
  background: linear-gradient(135deg, #2f6ed6, #6db0ff);
  color: #f4f9ff;
}

.button--ghost {
  background: rgba(13, 23, 39, 0.8);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.stat,
.metric {
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(8, 14, 24, 0.76);
  border: 1px solid var(--line);
}

.stat span {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

.stat small {
  color: var(--muted-2);
}

.profile-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: 28px;
}

.profile-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  object-fit: cover;
  border: 1px solid rgba(127, 182, 255, 0.25);
}

.profile-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
}

.profile-handle {
  color: var(--muted-2);
}

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

.profile-notes span,
.metric strong,
.detail-meta dd {
  color: var(--text);
}

.profile-notes span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(9, 16, 27, 0.86);
  border: 1px solid var(--line);
  font-size: 0.9rem;
}

.profile-caption {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.92rem;
  line-height: 1.55;
}

.panel {
  margin-top: 18px;
  padding: 24px;
  border-radius: 28px;
}

.panel--intro {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 18px;
}

.intro-grid {
  display: grid;
  gap: 12px;
}

.metric {
  display: grid;
  gap: 4px;
}

.metric-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.project-toolbar {
  display: grid;
  gap: 12px;
  margin: 18px 0 18px;
}

.search {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.search span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.search input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(7, 12, 20, 0.9);
  color: var(--text);
  outline: none;
}

.search input:focus {
  border-color: rgba(117, 178, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(47, 110, 214, 0.15);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  cursor: pointer;
  color: var(--muted);
}

.chip--active {
  color: #eff6ff;
  background: linear-gradient(135deg, rgba(47, 110, 214, 0.38), rgba(109, 176, 255, 0.24));
  border-color: rgba(117, 178, 255, 0.36);
}

.project-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  gap: 16px;
  align-items: start;
}

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

.project-card {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(12, 19, 31, 0.95), rgba(8, 13, 22, 0.9));
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, opacity 140ms ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(136, 190, 255, 0.25);
}

.project-card--active {
  border-color: rgba(117, 178, 255, 0.42);
  box-shadow: 0 0 0 1px rgba(117, 178, 255, 0.18), var(--shadow);
}

.project-card[data-status="broken"] .status,
.project-card[data-status="404"] .status {
  color: #ffe2e2;
  background: rgba(198, 88, 88, 0.18);
  border-color: rgba(255, 155, 155, 0.18);
}

.project-card[data-status="live"] .status {
  color: #def0ff;
  background: rgba(47, 110, 214, 0.18);
}

.project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-name {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text);
}

.project-url {
  margin-top: 8px;
  font-size: 0.92rem;
}

.project-category-label {
  margin-top: 14px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.status {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #ddedff;
  background: rgba(47, 110, 214, 0.18);
  border: 1px solid rgba(117, 178, 255, 0.18);
}

.project-copy {
  margin-top: 12px;
  line-height: 1.65;
}

.project-detail {
  position: sticky;
  top: 16px;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(13, 21, 36, 0.98), rgba(8, 13, 22, 0.95));
}

.detail-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.detail-top h3 {
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.detail-copy {
  margin-top: 14px;
  line-height: 1.7;
}

.detail-meta {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.detail-meta div {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(8, 14, 24, 0.78);
  border: 1px solid var(--line);
}

.detail-meta dt {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.detail-meta dd {
  margin: 6px 0 0;
  word-break: break-word;
}

.detail-button {
  width: 100%;
}

.empty-state {
  padding: 24px;
  border-radius: 22px;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  background: rgba(8, 14, 24, 0.6);
}

.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(117, 178, 255, 0.12);
  border-bottom: 1px solid rgba(117, 178, 255, 0.12);
  background: rgba(6, 11, 20, 0.68);
}

.marquee__track {
  display: flex;
  gap: 28px;
  width: max-content;
  padding: 12px 0;
  animation: marquee 24s linear infinite;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.74rem;
}

.marquee__track span {
  position: relative;
  padding-left: 28px;
}

.marquee__track span::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 0 28px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links span {
  color: var(--muted-2);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .profile-card,
  .panel,
  .project-detail {
    animation: lift-in 540ms ease both;
  }

  .profile-card {
    animation-delay: 80ms;
  }

  .panel--intro {
    animation-delay: 160ms;
  }

  #projects {
    animation-delay: 220ms;
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes lift-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .ghost-link,
  .pill,
  .button,
  .chip,
  .project-card {
    transition: none;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .panel--intro,
  .project-layout {
    grid-template-columns: 1fr;
  }

  .project-detail {
    position: static;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 18px, 1160px);
  }

  .topbar,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-copy,
  .profile-card,
  .panel,
  .project-detail {
    border-radius: 22px;
  }
}
