:root {
  --bg: #0b0614;
  --bg-2: #140a24;
  --ink: #f3ecff;
  --muted: #b7a6cf;
  --deep: #160c27;
  --accent: #6f2cff;
  --accent-2: #a26bff;
  --card: #1b1030;
  --stroke: rgba(243, 236, 255, 0.16);
  --shadow: 0 24px 45px rgba(4, 2, 10, 0.6);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 5% -10%, rgba(111, 44, 255, 0.35), transparent 60%),
    radial-gradient(1000px 700px at 95% 0%, rgba(44, 18, 88, 0.55), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 60%, #08030f 100%);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
  margin: 0 0 0.35em 0;
}

p {
  margin: 0 0 1em 0;
  line-height: 1.6;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 90px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 6, 18, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(243, 236, 255, 0.12);
  box-shadow: 0 10px 26px rgba(4, 2, 10, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
}

.logo {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(243, 236, 255, 0.4);
  background: rgba(111, 44, 255, 0.12);
  letter-spacing: 1px;
  box-shadow: 0 10px 22px rgba(4, 2, 10, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logo:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(4, 2, 10, 0.55);
}

.site-nav {
  display: flex;
  gap: 8px;
  margin-left: auto;
  align-items: center;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(27, 16, 48, 0.55);
  border: 1px solid rgba(243, 236, 255, 0.12);
  box-shadow: 0 12px 26px rgba(4, 2, 10, 0.35);
}

.site-nav a:not(.btn) {
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn):focus-visible {
  color: var(--ink);
  background: rgba(111, 44, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(111, 44, 255, 0.45);
}

.header-cta {
  margin-left: 12px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  background: rgba(27, 16, 48, 0.6);
  border: 1px solid rgba(243, 236, 255, 0.35);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(4, 2, 10, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(4, 2, 10, 0.55);
}

.nav-cta {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  padding: 110px 0 80px;
  align-items: center;
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.15;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 18px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-art {
  position: relative;
}

.hero-card {
  position: relative;
  background: var(--card);
  padding: 26px;
  border-radius: 24px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.hero-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.hero-card-main h3 {
  font-size: 1.4rem;
}

.hero-card-bottom {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.metric {
  display: grid;
  gap: 6px;
}

.metric-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.16em;
}

.metric-value {
  font-weight: 600;
}

.orbit {
  position: absolute;
  inset: -40px;
  pointer-events: none;
}

.orbit span {
  position: absolute;
  border: 1px dashed rgba(243, 236, 255, 0.2);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}

.orbit span:nth-child(1) {
  width: 260px;
  height: 260px;
  top: -10px;
  right: -40px;
}

.orbit span:nth-child(2) {
  width: 200px;
  height: 200px;
  bottom: -30px;
  left: -20px;
  animation-direction: reverse;
}

.orbit span:nth-child(3) {
  width: 140px;
  height: 140px;
  top: 120px;
  right: 20px;
}

.ticker {
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  background: #12071e;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 48px;
  padding: 12px 0;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: ticker 18s linear infinite;
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.about-text {
  font-size: 1.05rem;
}

.about-cards {
  display: grid;
  gap: 18px;
}

.info-card,
.project-card,
.skill-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 14px 30px rgba(4, 2, 10, 0.5);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.link-hub-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 20px;
  color: inherit;
  box-shadow: 0 14px 30px rgba(4, 2, 10, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(4, 2, 10, 0.6);
}

.link-label {
  font-weight: 600;
  font-size: 1.05rem;
}

.link-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.timeline {
  display: grid;
  gap: 18px;
  border-left: 1px solid var(--stroke);
  padding-left: 22px;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}

.contact-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  background: var(--deep);
  color: #fdf7ef;
  padding: 36px;
  border-radius: 24px;
}

.contact-card .lead {
  color: rgba(243, 236, 255, 0.72);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.contact-details {
  display: grid;
  gap: 18px;
}

.site-footer {
  padding: 54px 0 64px;
  border-top: 1px solid rgba(243, 236, 255, 0.12);
  background:
    radial-gradient(420px 180px at 20% 0%, rgba(111, 44, 255, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(8, 3, 15, 0.6), rgba(8, 3, 15, 0.95));
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.footer-logo {
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  margin: 0 0 8px 0;
}

.footer-brand .muted {
  margin: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
}

.footer-meta {
  display: grid;
  gap: 10px;
  justify-items: end;
  text-align: right;
}

.footer-meta .mono {
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  min-height: 44px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 14px 26px rgba(111, 44, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid rgba(243, 236, 255, 0.45);
  background: transparent;
}

.btn-ghost:hover {
  transform: translateY(-2px);
}

.badge {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(111, 44, 255, 0.28);
  color: var(--ink);
}

.badge.alt {
  background: rgba(243, 236, 255, 0.12);
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  font-size: 13px;
}

.mono {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
}

.text-link {
  font-weight: 600;
  color: var(--accent);
}

.muted {
  color: var(--muted);
}

.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0.8;
  animation: drift 18s ease-in-out infinite;
}

.blob-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at 30% 30%, rgba(111, 44, 255, 0.7), transparent 70%);
  top: -120px;
  left: -80px;
}

.blob-2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle at 30% 30%, rgba(162, 107, 255, 0.55), transparent 70%);
  bottom: -120px;
  right: -40px;
  animation-delay: -6s;
}

.blob-3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle at 40% 40%, rgba(44, 18, 88, 0.6), transparent 70%);
  top: 30%;
  right: 20%;
  animation-delay: -12s;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .link-hub-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 18px 4vw 26px;
    background: var(--bg);
    border: 0;
    border-bottom: 1px solid var(--stroke);
    border-radius: 0;
    box-shadow: none;
  }

  .site-nav a {
    padding: 8px 0;
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .nav-cta {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .project-grid,
  .skills-grid,
  .link-hub-list {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 28px;
    padding-top: 90px;
  }

  .section {
    padding: 64px 0;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .contact-actions .btn {
    width: 100%;
  }

  .hero-card {
    padding: 20px;
  }

  .hero-card-main h3 {
    font-size: 1.2rem;
  }

  .hero-tags {
    gap: 8px;
  }

  .pill {
    font-size: 12px;
  }

  .lead,
  .about-text {
    font-size: 1rem;
  }

  .info-card,
  .project-card,
  .skill-card,
  .link-card {
    padding: 18px;
  }

  .contact-card {
    padding: 24px;
  }

  .orbit {
    display: none;
  }

  .ticker-track {
    gap: 28px;
    font-size: 10px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-meta {
    justify-items: start;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .orbit span,
  .ticker-track,
  .blob {
    animation: none;
    transition: none;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes drift {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(20px) scale(1.05);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}
