:root {
  --bg: #05010a;
  --bg-alt: #0b0215;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --text: #f4f4f4;
  --muted: #b9b9c9;
  --accent: #7f5cff;
  --accent-soft: rgba(127, 92, 255, 0.4);
  --highlight: #ff7eb6;
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --scroll-progress: 0;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(
    circle at top,
    #120626 0%,
    #050109 55%,
    #040005 100%
  );
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 auto auto 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #ff7eb6, #7f5cff);
  transform-origin: left;
  transform: scaleX(var(--scroll-progress));
  z-index: 80;
  pointer-events: none;
  opacity: 0.85;
  border-radius: 0 999px 999px 0;
}

.toc {
  position: fixed;
  top: 55%;
  right: clamp(1.25rem, 3vw, 3rem);
  transform: translateY(-50%);
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(12, 5, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  z-index: 35;
  width: 190px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0.92;
}

.toc:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.01);
}

.toc-title {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.toc li {
  position: relative;
}

.toc a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: rgba(235, 230, 255, 0.6);
  transition: color 0.3s ease, transform 0.3s ease;
}

.toc a::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 rgba(127, 92, 255, 0.25);
  transition: border-color 0.3s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

.toc a:hover,
.toc a:focus-visible {
  color: rgba(255, 255, 255, 0.92);
}

.toc a:hover::before,
.toc a:focus-visible::before {
  border-color: var(--highlight);
  transform: scale(1.12);
}

.toc a.active {
  color: var(--highlight);
}

.toc a.active::before {
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 18px rgba(127, 92, 255, 0.55);
}

.toc-glow {
  position: absolute;
  inset: auto auto -30% -30%;
  width: 120px;
  height: 120px;
  background: radial-gradient(
    circle,
    rgba(127, 92, 255, 0.26),
    transparent 65%
  );
  filter: blur(14px);
  pointer-events: none;
  opacity: 0.65;
}

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

p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 70ch;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 3.2rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  margin-bottom: 0.75rem;
}

.container {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
}

.panel {
  position: relative;
  padding: clamp(2rem, 2vw, 4rem) 0;
}

.badge,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  margin-bottom: 1.5rem;
}

.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: start;
}

.stack {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    rgba(127, 92, 255, 0.2),
    rgba(255, 110, 199, 0.08)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.stack ul {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.about-text .availability {
  margin-top: 2rem;
  padding: 1.4rem 1.8rem;
  border-radius: var(--radius-md);
  background: linear-gradient(
    120deg,
    rgba(127, 92, 255, 0.12),
    rgba(255, 126, 182, 0.12)
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(244, 240, 255, 0.88);
  font-weight: 500;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.28);
}

.stack li {
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.timeline-panel {
  background: linear-gradient(
    160deg,
    rgba(14, 4, 28, 0.85),
    rgba(6, 2, 16, 0.95)
  );
  overflow: hidden;
  position: relative;
}

.status-panel {
  background: linear-gradient(
    160deg,
    rgba(10, 2, 24, 0.88),
    rgba(6, 0, 18, 0.94)
  );
}

.game-hud {
  display: grid;
  gap: 2.8rem;
}

.game-hud-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.game-hud-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.hud-card {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: rgba(14, 4, 30, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.hud-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(127, 92, 255, 0.3),
    transparent 65%
  );
  pointer-events: none;
}

.hud-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.hud-label {
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: rgba(220, 214, 255, 0.75);
}

.hud-value {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

.hud-card p {
  color: rgba(228, 220, 255, 0.82);
  margin: 0 0 1.2rem;
}

.hud-card footer {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(215, 208, 245, 0.78);
}

.hud-progress {
  position: relative;
  width: 100%;
  height: 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 1rem;
}

.hud-progress-bar {
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(127, 92, 255, 0.95),
    rgba(255, 126, 182, 0.9)
  );
  box-shadow: 0 0 25px rgba(127, 92, 255, 0.5);
}

.hud-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hud-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  color: rgba(230, 224, 255, 0.85);
}

.hud-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  color: rgba(222, 214, 255, 0.85);
  font-size: 0.95rem;
}

.hud-list li::before {
  content: "★";
  margin-right: 0.5rem;
  color: rgba(255, 200, 128, 0.9);
}

.timeline-panel .container {
  position: relative;
  z-index: 1;
  perspective: 1400px;
}

.timeline-header {
  max-width: 760px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.timeline-track {
  position: relative;
  display: grid;
  gap: 3.5rem;
  z-index: 1;
  transform-style: preserve-3d;
}

.timeline-track::before {
  content: "";
  position: absolute;
  inset: 5% 65% -10% 4%;
  background: radial-gradient(
    circle,
    rgba(255, 126, 182, 0.2),
    transparent 65%
  );
  filter: blur(30px);
  pointer-events: none;
  z-index: -1;
}

.timeline-group {
  position: relative;
  display: grid;
  gap: 1.8rem;
  padding: 0.6rem 0 2rem;
  transform-style: preserve-3d;
}

.timeline-group-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.75rem 1.4rem 0.75rem 3rem;
  margin: 0;
  border-radius: var(--radius-lg);
  background: rgba(18, 7, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transition: border-color 0.6s ease, box-shadow 0.6s ease;
}

.timeline-group-header::before {
  content: "";
  position: absolute;
  left: 1.4rem;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.45);
  background: linear-gradient(
    135deg,
    rgba(127, 92, 255, 0.45),
    rgba(255, 126, 182, 0.35)
  );
  transform: translateY(-50%);
  box-shadow: 0 0 25px rgba(127, 92, 255, 0.5);
}

.timeline-group-year {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(
    90deg,
    rgba(255, 126, 182, 0.85),
    rgba(127, 92, 255, 0.85)
  );
  -webkit-background-clip: text;
  color: transparent;
}

.timeline-group-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 126, 182, 0.4),
    rgba(127, 92, 255, 0.2)
  );
}

.timeline-group-caption {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(225, 218, 255, 0.78);
}

.timeline-group-body {
  display: grid;
  gap: 2.4rem;
}

.timeline-item {
  position: relative;
  padding: 2.4rem 2.2rem 2.4rem 3.2rem;
  border-radius: var(--radius-lg);
  background: rgba(18, 7, 38, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transition: box-shadow 0.6s ease;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 1.4rem;
  top: 2.4rem;
  bottom: 2.4rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(127, 92, 255, 0.45), transparent);
}

.timeline-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(127, 92, 255, 0.22),
    transparent 65%
  );
  pointer-events: none;
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
  position: relative;
  padding-left: 0.6rem;
  flex-wrap: wrap;
}

.timeline-group,
.timeline-group-header,
.timeline-item {
  will-change: transform;
}

.timeline-marker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.85);
  background: linear-gradient(
    135deg,
    rgba(127, 92, 255, 0.4),
    rgba(255, 126, 182, 0.3)
  );
  box-shadow: 0 0 20px rgba(127, 92, 255, 0.5);
  flex: none;
  transition: transform 0.6s ease, opacity 0.6s ease;
  position: absolute;
  left: -1.8rem;
  top: 50%;
  transform: translateY(-50%) scale(1);
}

.timeline-date {
  display: grid;
  gap: 0.1rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.timeline-month {
  font-weight: 600;
}

.timeline-year {
  font-size: 0.82rem;
  opacity: 0.85;
}

.timeline-item h3 {
  margin: 0;
  flex: 1;
}

.timeline-bullets {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  color: rgba(232, 224, 255, 0.85);
}

.timeline-bullets li {
  position: relative;
  padding-left: 1.1rem;
}

.timeline-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--highlight);
}

.timeline-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 240, 255, 0.9);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-left: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-badge--startup {
  background: rgba(255, 126, 182, 0.22);
  border-color: rgba(255, 126, 182, 0.48);
  color: rgba(255, 221, 242, 0.95);
  box-shadow: 0 0 20px rgba(255, 126, 182, 0.15);
}

.timeline-badge--academic {
  background: rgba(120, 194, 255, 0.22);
  border-color: rgba(120, 194, 255, 0.45);
  color: rgba(222, 241, 255, 0.95);
  box-shadow: 0 0 20px rgba(120, 194, 255, 0.15);
}

.timeline-badge--por {
  background: rgba(255, 190, 126, 0.22);
  border-color: rgba(255, 190, 126, 0.45);
  color: rgba(255, 234, 214, 0.95);
  box-shadow: 0 0 20px rgba(255, 190, 126, 0.15);
}

.timeline-badge--professional {
  background: rgba(140, 255, 210, 0.22);
  border-color: rgba(140, 255, 210, 0.45);
  color: rgba(226, 255, 243, 0.95);
  box-shadow: 0 0 20px rgba(140, 255, 210, 0.15);
}

.timeline-badge:hover,
.timeline-badge:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(127, 92, 255, 0.25);
}

.has-js .timeline-date {
  opacity: 0;
  transform: translateY(12px);
}

.has-js .timeline-bullets li {
  opacity: 0;
  transform: translateX(-14px);
}

.has-js .timeline-marker {
  transform: translateY(-50%) scale(0.4);
  opacity: 0;
}

.timeline-parallax {
  position: absolute;
  inset: 10% 5% -30% 40%;
  background: radial-gradient(
    circle,
    rgba(127, 92, 255, 0.28),
    transparent 65%
  );
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}

.timeline-parallax--primary {
  background: radial-gradient(
    circle,
    rgba(127, 92, 255, 0.35),
    transparent 65%
  );
}

.timeline-parallax--secondary {
  inset: -20% 65% -10% 10%;
  background: radial-gradient(
    circle,
    rgba(255, 126, 182, 0.22),
    transparent 70%
  );
  filter: blur(28px);
}

.highlight {
  color: var(--highlight);
  background: linear-gradient(
    90deg,
    rgba(255, 126, 182, 0.25),
    rgba(127, 92, 255, 0.3)
  );
  padding: 0 0.4em;
  border-radius: var(--radius-sm);
}

.lead {
  font-size: 1.1rem;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: clamp(6rem, 12vh, 8rem);
}

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

.hero::before {
  content: "";
  position: absolute;
  inset: 15% 10% auto 10%;
  height: clamp(380px, 60vh, 520px);
  background: radial-gradient(
    circle at center,
    rgba(111, 66, 193, 0.55),
    transparent 70%
  );
  filter: blur(60px);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2.5rem 0 2rem;
}

.hero-signals {
  overflow: hidden;
  width: auto;
  margin-bottom: 2.5rem;
  padding: 1rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 6, 34, 0.58);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.signal-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-track {
  display: inline-flex;
  align-items: center;
  gap: 1.75rem;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.signal-track span {
  flex: none;
}

.signal-marquee .signal-track {
  animation: marquee var(--marquee-duration, 18s) linear infinite;
  min-width: 100%;
}

.signal-marquee .signal-track:nth-child(2) {
  animation-delay: calc(var(--marquee-duration, 18s) / -2);
}

.signals-caption {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: rgba(200, 194, 230, 0.85);
  max-width: 420px;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.cta {
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.02em;
}

.cta.primary {
  background: linear-gradient(
    120deg,
    rgba(127, 92, 255, 0.95),
    rgba(255, 126, 182, 0.85)
  );
  border: none;
  color: #0c0112;
  box-shadow: 0 16px 35px rgba(120, 60, 255, 0.35);
}

.cta.ghost {
  background: rgba(255, 255, 255, 0.06);
}

.cta:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 24px 45px rgba(127, 92, 255, 0.25);
}

.cta:focus-visible {
  outline: 3px solid rgba(255, 126, 182, 0.7);
  outline-offset: 4px;
}

.cta.glitch {
  position: relative;
  overflow: hidden;
}

.cta.glitch::before,
.cta.glitch::after {
  content: attr(data-glitch);
  position: absolute;
  inset: 0;
  padding: inherit;
  display: flex;
  align-items: inherit;
  justify-content: inherit;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  text-transform: inherit;
  letter-spacing: inherit;
}

.cta.glitch::before {
  color: rgba(127, 92, 255, 0.9);
  transform: translate(2px, 0);
}

.cta.glitch::after {
  color: rgba(255, 126, 182, 0.9);
  transform: translate(-2px, 0);
}

.cta.glitch:hover::before,
.cta.glitch:hover::after,
.cta.glitch:focus-visible::before,
.cta.glitch:focus-visible::after {
  opacity: 1;
  animation: glitchShift 0.35s steps(2) alternate infinite;
}

@keyframes glitchShift {
  0% {
    transform: translate(-2px, -1px);
  }
  50% {
    transform: translate(2px, 1px);
  }
  100% {
    transform: translate(-1px, 2px);
  }
}

.feature-card:focus-within,
.project-card:focus-within,
.achievement-card:focus-within {
  border-color: rgba(255, 126, 182, 0.5);
}

.metrics {
  display: flex;
  gap: 1.5rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.metrics li {
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-md);
  background: rgba(13, 6, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  min-width: 200px;
}

.metric-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #f7f2ff;
}

.metric-label {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feature {
  background: linear-gradient(
    160deg,
    rgba(12, 4, 28, 0.75),
    rgba(8, 5, 23, 0.95)
  );
}

.feature-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 4rem;
}

.feature-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature-card {
  position: relative;
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  background: rgba(8, 4, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(127, 92, 255, 0.28),
    transparent 55%
  );
  pointer-events: none;
}

.feature-card ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.feature-card li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.9rem;
  color: rgba(225, 215, 255, 0.9);
}

.feature-card li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--highlight);
  font-size: 0.85rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.projects {
  background: linear-gradient(
    160deg,
    rgba(7, 2, 18, 0.9),
    rgba(4, 0, 10, 0.95)
  );
  position: relative;
  overflow: hidden;
}

.projects-intro {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.projects-intro h2 {
  margin: 0.8rem 0 1rem;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

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

.project-glimpse {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: rgba(12, 4, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 1rem;
  overflow: hidden;
}

.project-glimpse::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(127, 92, 255, 0.25),
    transparent 65%
  );
  pointer-events: none;
}

.project-glimpse-tag {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(235, 228, 255, 0.72);
}

.project-glimpse h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}

.project-glimpse p {
  margin: 0;
  color: rgba(226, 218, 255, 0.85);
}

.project-glimpse ul {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(218, 210, 255, 0.82);
  display: grid;
  gap: 0.55rem;
}

.project-glimpse footer {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(200, 194, 242, 0.78);
}

.projects-glimpse-cta {
  position: relative;
  z-index: 1;
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.run-panel {
  background: linear-gradient(
    180deg,
    rgba(6, 2, 16, 0.94),
    rgba(3, 0, 10, 0.96)
  );
  position: relative;
}

.run-container {
  display: grid;
  gap: 2.6rem;
}

.run-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.run-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(
    circle at top,
    rgba(20, 8, 40, 0.8),
    rgba(8, 3, 20, 0.95)
  );
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.45);
}

#run-canvas {
  display: block;
  width: 100%;
  height: auto;
}

.run-console {
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}

.run-stats {
  display: flex;
  gap: 1.5rem;
  font-size: 0.98rem;
  color: rgba(220, 214, 255, 0.82);
}

.run-message {
  margin: 0;
  color: rgba(214, 208, 245, 0.78);
  max-width: 560px;
}

.run-credit {
  justify-self: end;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(214, 208, 245, 0.55);
  margin: -1rem 0 0;
}

.project-card.featured {
  grid-column: span 2;
  background: linear-gradient(
    135deg,
    rgba(127, 92, 255, 0.4),
    rgba(15, 4, 42, 0.85)
  );
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 38px 90px rgba(90, 45, 200, 0.35);
}

.project-card {
  padding: 2.25rem;
  background: rgba(15, 6, 32, 0.85);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(127, 92, 255, 0.6);
  box-shadow: 0 28px 60px rgba(127, 92, 255, 0.3);
}

.project-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.project-card li {
  position: relative;
  padding-left: 1.25rem;
  color: rgba(235, 228, 255, 0.86);
}

.project-card li::before {
  content: "➤";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

.project-tag {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.project-tech {
  margin-top: auto;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

.responsibilities {
  background: linear-gradient(
    150deg,
    rgba(7, 3, 18, 0.95),
    rgba(15, 4, 32, 0.85)
  );
}

.responsibilities-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.responsibilities-track {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.responsibility-card {
  padding: 2.1rem;
  border-radius: var(--radius-lg);
  background: rgba(20, 10, 40, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.responsibility-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(127, 92, 255, 0.22),
    transparent 60%
  );
  pointer-events: none;
}

.responsibility-year {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.responsibility-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  color: rgba(232, 226, 255, 0.82);
}

.responsibility-card li {
  position: relative;
  padding-left: 1.1rem;
}

.responsibility-card li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--highlight);
}

.achievements {
  background: radial-gradient(
    circle at bottom left,
    rgba(127, 92, 255, 0.35),
    rgba(5, 1, 9, 0.9)
  );
}

.achievements-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem;
}

.achievements-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.achievement-card {
  padding: 2.1rem;
  border-radius: var(--radius-md);
  background: rgba(18, 8, 36, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.9rem;
}

.achievement-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(255, 126, 182, 0.32),
    transparent 60%
  );
  pointer-events: none;
}

.achievement-year {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.achievement-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(231, 224, 255, 0.85);
}

.coursework {
  background: linear-gradient(
    150deg,
    rgba(8, 3, 20, 0.95),
    rgba(16, 4, 36, 0.88)
  );
}

.coursework-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem;
}

.coursework-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.coursework-card {
  padding: 2rem;
  border-radius: var(--radius-md);
  background: rgba(20, 10, 40, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.45);
}

.coursework-card h3 {
  margin: 0 0 1.2rem;
  font-size: 1.25rem;
}

.coursework-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(232, 224, 255, 0.82);
  display: grid;
  gap: 0.65rem;
}

.contact {
  padding-bottom: clamp(7rem, 10vw, 11rem);
}

.contact-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 6vw, 3.5rem);
  padding: 3rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    130deg,
    rgba(127, 92, 255, 0.25),
    rgba(9, 2, 19, 0.95)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.5);
}

.contact-actions {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.contact-points {
  margin: 1.5rem 0 0;
  padding-left: 1.2rem;
  color: rgba(234, 228, 255, 0.85);
  display: grid;
  gap: 0.6rem;
}

.contact-points a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(22px);
  background: rgba(8, 2, 18, 0.68);
  border-bottom: 1px solid rgba(127, 92, 255, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  gap: 1.5rem;
  position: relative;
}
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top left, rgba(255, 126, 182, 0.2), transparent 55%),
    radial-gradient(circle at top right, rgba(127, 92, 255, 0.2), transparent 55%),
    linear-gradient(90deg, rgba(127, 92, 255, 0.12), rgba(255, 126, 182, 0.12));
  opacity: 0.65;
  mix-blend-mode: screen;
  z-index: -1;
}

.site-header::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: min(68%, 420px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 126, 182, 0.8), transparent);
  opacity: 0.75;
  pointer-events: none;
  z-index: -1;
}


.site-footer {
  padding: 3rem 0;
  background: rgba(3, 0, 7, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.noise {
  position: fixed;
  inset: -50%;
  background: url("https://grainy-gradients.vercel.app/noise.svg");
  opacity: 0.08;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

.cursor {
  position: fixed;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out, width 0.15s ease, height 0.15s ease;
  z-index: 100;
}

.cursor.active {
  width: 46px;
  height: 46px;
  border-color: rgba(255, 126, 182, 0.7);
}

[data-animate] {
  opacity: 1;
  transform: none;
}

.has-js [data-animate] {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
}

@media (max-width: 980px) {
  .toc {
    display: none;
  }

  .site-header .container {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

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

  .projects-glimpse-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .startup-card {
    grid-template-columns: 1fr;
  }

  .responsibilities-track,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .game-hud-header {
    text-align: left;
  }

  .game-hud-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .run-stats {
    width: 100%;
    justify-content: space-between;
  }

  .metrics {
    gap: 1rem;
  }

  .timeline-group {
    padding: 0.4rem 0 1.8rem;
    gap: 1.5rem;
  }

  .timeline-group-header {
    padding: 0.9rem 1.8rem;
  }

  .timeline-group-line {
    max-width: 140px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 0.98rem;
  }

  .panel {
    padding: 4.5rem 0;
  }

  .hero {
    padding-top: 8rem;
  }

  .signal-marquee {
    --marquee-duration: 22s;
  }

  .signal-track {
    font-size: 0.85rem;
  }

  .signals-caption {
    max-width: 100%;
  }

  .startup-card {
    padding: 1.6rem;
  }

  .toc {
    display: none;
  }

  .projects-intro {
    text-align: left;
  }

  .projects-glimpse-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .game-hud-grid {
    grid-template-columns: 1fr;
  }

  .run-overlay {
    justify-content: flex-start;
    padding: 0.9rem 1.2rem;
    font-size: 0.9rem;
  }

  .run-stats {
    flex-direction: column;
    gap: 0.5rem;
  }

  .timeline-item {
    padding: 2rem;
  }

  .timeline-group-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 1rem 1.4rem;
  }

  .timeline-group-header::before {
    left: 1.2rem;
  }

  .timeline-group-line {
    width: 100%;
  }

  .timeline-group-caption {
    font-size: 0.88rem;
  }

  .timeline-group-body {
    gap: 1.8rem;
  }

  .timeline-item::before {
    left: 1rem;
    top: 2.6rem;
    bottom: 1.5rem;
  }

  .timeline-date {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    display: inline-flex;
    margin-bottom: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .metrics li {
    min-width: 42%;
  }

  .site-nav {
    gap: 0.8rem;
    flex-wrap: wrap;
  }

  .cta {
    justify-content: center;
  }
}

@media (max-width: 540px) {
  h1 {
    font-size: clamp(2.65rem, 9vw, 3rem);
  }

  .metrics {
    flex-direction: column;
  }

  .metrics li {
    width: 100%;
  }

  .feature-card,
  .responsibility-card,
  .achievement-card {
    padding: 1.75rem;
  }

  .hud-card {
    padding: 1.6rem;
  }

  .game-hud-grid {
    grid-template-columns: 1fr;
  }

  .startup-card {
    border-radius: var(--radius-md);
    padding: 1.4rem;
  }

  .projects-glimpse-grid {
    gap: 1.2rem;
  }

  .project-glimpse {
    padding: 1.6rem;
  }

  .run-stage {
    border-radius: var(--radius-md);
  }

  .run-overlay {
    font-size: 0.85rem;
  }

  .run-stats {
    gap: 0.35rem;
  }

  .timeline-item {
    padding: 1.6rem 1.5rem 1.6rem 2rem;
  }

  .timeline-item::before {
    display: none;
  }

  .timeline-badge {
    font-size: 0.62rem;
    padding: 0.28rem 0.65rem;
  }

  .timeline-group-header {
    padding: 0.9rem 1.2rem;
  }

  .timeline-group-header::before {
    left: 1rem;
  }

  .timeline-marker {
    left: -0.8rem;
  }

  .timeline-bullets {
    gap: 0.6rem;
  }

  .toc {
    display: none;
  }

  .site-header .container {
    padding: 1rem 0.5rem;
  }

  .container {
    width: calc(100% - 2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.blog {
  background: linear-gradient(
    150deg,
    rgba(8, 3, 20, 0.95),
    rgba(16, 4, 36, 0.88)
  );
}

.blog-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem;
}

.blog-actions {
  margin-top: 1.2rem;
  display: flex;
  justify-content: center;
}

.blog-summary {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.blog-summary-item {
  background: rgba(18, 7, 38, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

.blog-summary-item h3 {
  margin: 0 0 0.5rem;
}

.blog-summary-item .summary-date {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-bottom: 0.4rem;
}

.blog-controls {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.blog-search {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.blog-search-input {
  flex: 1 1 260px;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 6, 32, 0.75);
  color: var(--text);
  font-size: 1rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.blog-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.blog-tag {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 6, 32, 0.6);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.blog-tag:hover,
.blog-tag.active {
  background: rgba(127, 92, 255, 0.28);
  border-color: rgba(127, 92, 255, 0.5);
  color: var(--text);
}

.blog-list {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.blog-list.blog-loading::after {
  content: "Loading posts…";
  grid-column: 1 / -1;
  padding: 1.5rem;
  text-align: center;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(20, 10, 36, 0.7);
  color: rgba(255, 255, 255, 0.75);
}

.blog-card {
  padding: 2rem;
  border-radius: var(--radius-md);
  background: rgba(20, 10, 40, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 1rem;
}

.blog-card h3 {
  margin: 0;
  font-size: 1.3rem;
}

.blog-card p {
  margin: 0;
  color: rgba(232, 224, 255, 0.82);
}

.blog-link {
  color: var(--highlight);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.blog-empty {
  margin-top: 1rem;
  padding: 1rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(20, 10, 36, 0.7);
  color: rgba(255, 255, 255, 0.75);
  display: none;
}


.site-header .brand {
  position: relative;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.site-header .brand::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 126, 182, 0.9), rgba(127, 92, 255, 0.6));
  box-shadow: 0 0 16px rgba(255, 126, 182, 0.8);
}

.site-header .brand::after {
  content: "";
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, rgba(127, 92, 255, 0.6), transparent);
  opacity: 0.8;
}

.site-nav {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(12, 4, 28, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.site-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(127, 92, 255, 0.25), transparent 70%),
    radial-gradient(circle at top right, rgba(255, 126, 182, 0.18), transparent 65%);
  opacity: 0.7;
  pointer-events: none;
}

.site-nav a {
  position: relative;
  z-index: 1;
  font-size: 0.92rem;
  color: rgba(238, 234, 255, 0.72);
  transition: color 0.3s ease;
  padding: 0.3rem 0.4rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 -6px 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(127, 92, 255, 0.85), rgba(255, 126, 182, 0.85));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

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

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.site-nav a.active {
  color: var(--highlight);
}

.site-nav a.active::after {
  transform: scaleX(1);
}

.site-header .cta {
  position: relative;
  font-weight: 600;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.site-header .cta.primary {
  background: linear-gradient(120deg, rgba(127, 92, 255, 0.95), rgba(255, 126, 182, 0.85));
  border: none;
  color: #0c0416;
  box-shadow: 0 16px 36px rgba(127, 92, 255, 0.35);
}

.site-header .cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 46px rgba(127, 92, 255, 0.3);
}



.site-header .cta::after {
  content: "";
  position: absolute;
  inset: -25%;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
}

.site-header .cta:hover::after,
.site-header .cta:focus-visible::after {
  opacity: 1;
}

.site-header .cta.ghost {
  color: rgba(235, 230, 255, 0.85);
}

@media (max-width: 980px) {
  .site-header .container {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.9rem 0;
  }

  .site-header .brand::after {
    width: 24px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .site-nav a {
    white-space: nowrap;
  }
}

@media (max-width: 720px) {
  .site-header {
    background: rgba(8, 2, 18, 0.82);
  }

  .site-header .container {
    padding: 0.75rem 0;
  }

  .site-header .brand {
    font-size: 1rem;
  }

  .site-nav {
    gap: 0.6rem;
    padding: 0.45rem 0.7rem;
  }

  .site-header .cta {
    margin-left: auto;
  }
}
