:root {
  --bg: #070710;
  --bg-soft: #101023;
  --text: #f5f8ff;
  --muted: #a5adcf;
  --glass: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.12);
  --primary: #8f67ff;
  --secondary: #00d1ff;
  --accent: #ff4ecd;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 10% 15%, #20173f 0%, #090a13 37%, #05050c 100%);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 0.5px, transparent 0.5px);
  background-size: 2px 2px;
  opacity: 0.08;
  z-index: 2;
}

.global-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.global-orb {
  opacity: 0.22;
}

.global-orb-1 {
  width: 260px;
  height: 260px;
  top: 5%;
  left: -80px;
  background: #6f43ff;
}

.global-orb-2 {
  width: 220px;
  height: 220px;
  top: 22%;
  right: -60px;
  background: #00d8ff;
}

.global-orb-3 {
  width: 300px;
  height: 300px;
  top: 48%;
  left: -110px;
  background: #4f6fff;
}

.global-orb-4 {
  width: 220px;
  height: 220px;
  top: 66%;
  right: -70px;
  background: #ff4ecd;
}

.global-orb-5 {
  width: 200px;
  height: 200px;
  bottom: 5%;
  left: 38%;
  background: #7f54ff;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: white;
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--secondary), var(--accent), var(--primary));
  z-index: 10000;
}

.section {
  width: min(var(--container), 92%);
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.glass {
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header {
  position: fixed;
  top: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(780px, 92%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.8rem;
  border-radius: 999px;
  z-index: 999;
  transition: background 0.34s ease, border-color 0.34s ease, box-shadow 0.34s ease, transform 0.34s ease;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(124, 109, 255, 0.16), rgba(0, 209, 255, 0.12), rgba(255, 78, 205, 0.14));
  opacity: 0.45;
}

.site-header.is-scrolled {
  background: rgba(13, 16, 30, 0.75);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 35px rgba(4, 8, 24, 0.5);
}

.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  font-weight: 900;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  line-height: 1;
  letter-spacing: 0;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.015)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateZ(0);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease, background 0.3s ease;
  z-index: 1;
  cursor: pointer;
}

/* Rotating gradient outline ring (revealed on hover) */
.logo::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(
    from 0deg,
    #00d8ff,
    #8f67ff,
    #ff6ec7,
    #ff9a5a,
    #00d8ff
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease, inset 0.35s ease;
  animation: logo-ring-spin 3.2s linear infinite;
  pointer-events: none;
}

/* Expanding shockwave ring (fires on click) */
.logo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  pointer-events: none;
  opacity: 0;
}

.logo:hover {
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.2);
}

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

/* ===== CLICK: the sick spin ===== */
.logo.is-spinning {
  animation: logo-sick-spin 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo.is-spinning::before {
  opacity: 1;
  animation: logo-ring-spin 0.5s linear infinite,
    logo-ring-pulse 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo.is-spinning::after {
  animation: logo-shockwave 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes logo-sick-spin {
  0% {
    transform: scale(1) rotate(0);
    filter: none;
    box-shadow: none;
  }
  20% {
    transform: scale(0.82) rotate(160deg);
    filter: hue-rotate(90deg) brightness(1.25) saturate(1.3);
    box-shadow: 0 0 22px rgba(0, 216, 255, 0.6);
  }
  55% {
    transform: scale(1.28) rotate(540deg);
    filter: hue-rotate(260deg) brightness(1.55) saturate(1.4);
    box-shadow: 0 0 36px rgba(143, 103, 255, 0.7),
      0 0 60px rgba(255, 110, 199, 0.35);
  }
  85% {
    transform: scale(0.96) rotate(760deg);
    filter: hue-rotate(340deg) brightness(1.2);
    box-shadow: 0 0 20px rgba(255, 110, 199, 0.45);
  }
  100% {
    transform: scale(1) rotate(720deg);
    filter: none;
    box-shadow: none;
  }
}

@keyframes logo-ring-pulse {
  0% {
    inset: -3px;
  }
  45% {
    inset: -7px;
  }
  100% {
    inset: -3px;
  }
}

@keyframes logo-shockwave {
  0% {
    inset: -2px;
    border-width: 2px;
    border-color: rgba(143, 227, 255, 0.95);
    opacity: 1;
  }
  45% {
    border-color: rgba(143, 103, 255, 0.75);
    opacity: 0.9;
  }
  75% {
    border-color: rgba(255, 110, 199, 0.5);
    opacity: 0.5;
  }
  100% {
    inset: -26px;
    border-width: 1px;
    border-color: rgba(255, 110, 199, 0);
    opacity: 0;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .logo,
  .logo:hover,
  .logo.is-spinning,
  .logo::before,
  .logo:hover::before,
  .logo.is-spinning::before,
  .logo.is-spinning::after {
    animation: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 0;
  }

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

nav {
  display: flex;
  gap: 0.45rem;
  position: relative;
  z-index: 1;
}

nav a,
.nav-cta {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.92;
}

nav a {
  position: relative;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  transition: color 0.25s ease, opacity 0.25s ease;
}

nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(100deg, rgba(143, 103, 255, 0.3), rgba(0, 209, 255, 0.22));
  border: 1px solid rgba(175, 191, 255, 0.18);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

nav a:hover::before,
nav a.is-active::before {
  opacity: 1;
  transform: scale(1);
}

nav a span,
nav a {
  position: relative;
  z-index: 1;
}

nav a.is-active {
  color: #ffffff;
}

.nav-cta {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-cta:hover {
  background: linear-gradient(100deg, rgba(122, 90, 255, 0.42), rgba(0, 209, 255, 0.3));
  border-color: rgba(179, 198, 255, 0.35);
  box-shadow: 0 10px 24px rgba(42, 77, 197, 0.32);
}

.hero {
  min-height: auto;
  padding-top: 6.4rem;
  padding-bottom: 1.8rem;
  display: grid;
  align-content: start;
}

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

.bg-orbs {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.65;
}

.orb-1 {
  width: 330px;
  height: 330px;
  background: #6f43ff;
  top: 12%;
  left: -4%;
}

.orb-2 {
  width: 280px;
  height: 280px;
  background: #00d8ff;
  top: 36%;
  right: 6%;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: #ff4ecd;
  bottom: 2%;
  left: 30%;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5.7rem);
  line-height: 1.03;
  margin: 0.35rem 0 1.2rem;
  max-width: 960px;
}

.hero-head {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.hero-head h1 {
  margin: 0.35rem 0 1.1rem;
}

.gradient-text {
  background: linear-gradient(95deg, #93f6ff, #ffaef5 45%, #b2a0ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
  margin: 0;
}

.hero-intro {
  margin-bottom: 2rem;
}

.hero-avatar {
  width: 236px;
  height: 236px;
  flex-shrink: 0;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(130deg, #00d5ff, #8f67ff, #ff4ecd);
  box-shadow: 0 20px 35px rgba(63, 104, 255, 0.35);
  margin-bottom: 0.7rem;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.eyebrow {
  margin: 0;
  color: #95a6e5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
}

.hero-actions,
.footer-actions {
  display: flex;
  gap: 0.95rem;
  flex-wrap: wrap;
}

.magnetic {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.84rem 1.3rem;
  font-weight: 650;
  font-size: 0.95rem;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, background 0.28s ease, border-color 0.28s ease, color 0.28s ease;
}

.btn-primary {
  color: white;
  background: linear-gradient(100deg, #7f54ff 0%, #00c8ff 100%);
  box-shadow: 0 14px 32px rgba(63, 104, 255, 0.35);
}

.btn-ghost {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
}

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

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

.hero-stats article {
  padding: 1.1rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stats h3 {
  margin: 0 0 0.45rem;
  font-size: 1.7rem;
}

.hero-stats p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.work,
.skills,
.github,
.process,
.footer {
  padding: 4.9rem 0;
}

.skills,
.github,
.process {
  padding-top: 3.9rem;
}

.section-head {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
}

h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1.15;
  max-width: 740px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.project-card {
  border-radius: 24px;
  overflow: hidden;
  grid-column: span 4;
  transform-style: preserve-3d;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease;
  will-change: transform;
}

.project-preview {
  height: 210px;
}

.gradient-a {
  background: linear-gradient(130deg, #3e80ff, #7b4dff, #d944f5);
}

.gradient-b {
  background: linear-gradient(130deg, #03b8ff, #00f5c7, #4058ff);
}

.gradient-c {
  background: linear-gradient(130deg, #ff51cf, #fe7f76, #ffd451);
}

.project-content {
  padding: 1.2rem 1.1rem 1.35rem;
}

.project-type {
  margin: 0;
  color: #9ec9ff;
  font-size: 0.82rem;
}

.project-content h3 {
  margin: 0.45rem 0;
  font-size: 1.35rem;
}

.project-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.project-content a {
  margin-top: 0.95rem;
  display: inline-block;
  color: white;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

/* ================================================================
 *  Experience Timeline — vertical rail + polished cards
 * =============================================================== */
.experience-timeline {
  position: relative;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-left: 2.15rem;
}

/* The vertical rail */
.experience-timeline::before {
  content: "";
  position: absolute;
  left: 0.58rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(0, 209, 255, 0.55) 0%,
    rgba(143, 103, 255, 0.55) 40%,
    rgba(255, 110, 199, 0.45) 80%,
    rgba(255, 110, 199, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.exp-item {
  position: relative;
  padding: 1.3rem 1.5rem 1.3rem;
  border-radius: 18px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.045) 0%,
    rgba(255, 255, 255, 0.02) 55%,
    rgba(255, 255, 255, 0.015) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease, box-shadow 0.35s ease;
}

/* Timeline node on the rail */
.exp-item::before {
  content: "";
  position: absolute;
  top: 1.4rem;
  left: -1.82rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b59dff, #8f67ff);
  box-shadow: 0 0 0 3px #090915, 0 0 0 4px rgba(143, 103, 255, 0.35),
    0 0 14px rgba(143, 103, 255, 0.55);
  z-index: 2;
}

/* Subtle corner glow inside the card */
.exp-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 92% -10%,
    rgba(143, 103, 255, 0.11),
    transparent 60%
  );
  pointer-events: none;
}

.exp-item > * {
  position: relative;
  z-index: 1;
}

.exp-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 38px rgba(8, 10, 28, 0.35);
}

.exp-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 1rem;
}

.exp-index {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.1;
  background: linear-gradient(135deg, #00d8ff 0%, #8f67ff 70%, #ff6ec7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  min-width: 2.2ch;
  padding-top: 0.25rem;
}

.exp-head-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.exp-tag {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(196, 206, 232, 0.58);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exp-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: rgba(245, 248, 255, 0.95);
  line-height: 1.3;
}

.exp-date {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(196, 206, 232, 0.62);
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding-top: 0.55rem;
}

.exp-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0);
  display: flex;
  flex-direction: column;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.25s ease,
    margin 0.25s ease, padding 0.25s ease, border-color 0.25s ease;
}

.exp-bullets li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.05rem;
  color: rgba(214, 220, 238, 0.78);
  line-height: 1.55;
  font-size: 0.87rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.exp-bullets li:last-child {
  border-bottom: none;
}

.exp-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d8ff, #8f67ff);
  box-shadow: 0 0 8px rgba(143, 103, 255, 0.55);
}

/* Expanded states — hover, click, or "Expand all" */
.exp-item:hover .exp-bullets,
.exp-item.is-expanded .exp-bullets,
.experience-timeline.is-expanded .exp-bullets {
  max-height: 440px;
  opacity: 1;
  margin-top: 0.95rem;
  padding-top: 0.3rem;
  border-top-color: rgba(255, 255, 255, 0.06);
}

/* Current role — distinctive cyan rail node + soft border glow */
.exp-item--current {
  border-color: rgba(143, 227, 255, 0.26);
  background: linear-gradient(
    160deg,
    rgba(143, 227, 255, 0.055) 0%,
    rgba(255, 255, 255, 0.02) 55%,
    rgba(255, 255, 255, 0.015) 100%
  );
}

.exp-item--current::before {
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #8fe3ff 45%, #5dc2ff 100%);
  box-shadow: 0 0 0 3px #090915, 0 0 0 4px rgba(143, 227, 255, 0.4),
    0 0 18px rgba(143, 227, 255, 0.75);
  animation: availability-breathe 3.2s ease-in-out infinite;
}

.exp-item--current .exp-date {
  color: rgba(220, 240, 255, 0.88);
}

.timeline-note {
  margin: 1.15rem 0 0;
  color: #b5bde3;
  font-size: 0.95rem;
  text-align: center;
}

.global-orb {
  opacity: 0.16;
}

.timeline {
  margin-top: 1rem;
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.skills-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.skills-groups {
  display: grid;
  gap: 0.9rem;
}

.skills-card {
  border-radius: 20px;
  padding: 1rem;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease;
}

.skills-card h3 {
  margin: 0 0 0.85rem;
}

.skills-languages {
  border-color: rgba(130, 187, 255, 0.4);
  background: linear-gradient(125deg, rgba(80, 109, 196, 0.3), rgba(48, 99, 180, 0.26), rgba(22, 45, 86, 0.5));
}

.skills-web {
  border-color: rgba(115, 222, 255, 0.42);
  background: linear-gradient(125deg, rgba(44, 134, 196, 0.3), rgba(36, 121, 176, 0.25), rgba(18, 52, 88, 0.5));
}

.skills-data {
  border-color: rgba(194, 127, 255, 0.42);
  background: linear-gradient(125deg, rgba(88, 82, 184, 0.31), rgba(122, 74, 175, 0.26), rgba(44, 28, 82, 0.5));
}

.skills-tools {
  border-color: rgba(255, 160, 206, 0.4);
  background: linear-gradient(125deg, rgba(150, 78, 148, 0.3), rgba(168, 86, 126, 0.26), rgba(60, 32, 68, 0.5));
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pill i {
  margin-right: 0.45rem;
  font-size: 0.98rem;
}

.pill-logo {
  width: 0.95rem;
  height: 0.95rem;
  object-fit: contain;
  margin-right: 0.45rem;
  flex-shrink: 0;
}

.pill-symbol {
  width: 1rem;
  text-align: center;
  font-style: normal;
  font-weight: 800;
}

.skills-languages .pill {
  background: linear-gradient(125deg, #5b6ed2, #3e7fd0);
  color: #fff;
  border-color: rgba(182, 215, 255, 0.28);
}

.skills-web .pill {
  background: linear-gradient(125deg, #2f8fca, #2e69a8);
  color: #fff;
  border-color: rgba(164, 227, 255, 0.28);
}

.skills-data .pill {
  background: linear-gradient(125deg, #7167d4, #9558bc);
  color: #fff;
  border-color: rgba(211, 180, 255, 0.28);
}

.skills-tools .pill {
  background: linear-gradient(125deg, #c16fb8, #b66b8c);
  color: #fff;
  border-color: rgba(244, 187, 230, 0.28);
}

.github .section-head {
  margin-bottom: 1.1rem;
}

.repo-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.repo-card {
  grid-column: span 4;
  border-radius: 24px;
  overflow: hidden;
  min-height: 0;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease;
  will-change: transform;
}

.repo-preview {
  height: 140px;
}

.repo-gradient-a {
  background: linear-gradient(125deg, #6e4bff, #00d7ff, #8df9f4);
}

.repo-gradient-b {
  background: linear-gradient(125deg, #0c92ff, #28f3b1, #0c4bff);
}

.repo-gradient-c {
  background: linear-gradient(125deg, #1d65ff, #8f55ff, #ff63d2);
}

.repo-gradient-d {
  background: linear-gradient(125deg, #00d4ff, #19a2ff, #6f53ff);
}

.repo-gradient-e {
  background: linear-gradient(125deg, #f067ff, #ff7f80, #ffc652);
}

.repo-gradient-f {
  background: linear-gradient(125deg, #12b6ff, #4f67ff, #b84dff);
}

.repo-content {
  padding: 1.2rem 1.1rem 1.35rem;
}

.repo-content h3 {
  margin: 0.45rem 0;
}

.repo-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.repo-content a {
  margin-top: 0.95rem;
  display: inline-block;
  color: white;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

.github-flex {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: linear-gradient(110deg, rgba(89, 132, 255, 0.16), rgba(240, 97, 255, 0.14));
}

.github-flex p {
  margin: 0;
  color: #dce6ff;
  line-height: 1.5;
}

.github-flex span {
  color: #ffffff;
  font-weight: 700;
}

.step {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease;
}

.skills-card:hover,
.step:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.28);
}

.project-card:hover,
.repo-card:hover {
  box-shadow: 0 18px 38px rgba(20, 24, 58, 0.42);
}

.step span {
  color: #88beff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
}

.step h3 {
  margin: 0.5rem 0 0.35rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.footer {
  padding-top: 3.9rem;
  padding-bottom: 4rem;
}

.footer h2 {
  margin: 0.5rem 0 1.3rem;
}

.copyright {
  margin-top: 2rem;
  color: #a3acd0;
  font-size: 0.85rem;
}

.btn-linkedin:hover {
  background: linear-gradient(100deg, #1c8bff 0%, #56d2ff 100%);
  box-shadow: 0 14px 30px rgba(45, 143, 255, 0.38);
}

.btn-github:hover {
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.2), rgba(143, 103, 255, 0.28));
  border-color: rgba(169, 185, 255, 0.55);
  color: #ffffff;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.52s ease;
  will-change: transform, opacity;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .skills-layout {
    grid-template-columns: 1fr;
  }

  .hero-intro {
    margin-bottom: 1.6rem;
  }

  .hero-head {
    align-items: flex-end;
  }

  .hero-avatar {
    width: 160px;
    height: 160px;
  }

  .project-card {
    grid-column: span 6;
  }

  .experience-timeline {
    gap: 0.8rem;
    padding-left: 1.75rem;
  }

  .experience-timeline::before {
    left: 0.42rem;
  }

  .exp-item::before {
    left: -1.52rem;
  }

  .repo-card {
    grid-column: span 6;
  }
}

@media (max-width: 700px) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  .global-orbs {
    opacity: 0.8;
  }

  .global-orb {
    filter: blur(46px);
  }

  .hero {
    min-height: auto;
    padding-top: 6.4rem;
  }

  .hero-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .hero-avatar {
    width: 118px;
    height: 118px;
  }

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

  .project-card {
    grid-column: span 12;
  }

  .experience-timeline {
    gap: 0.75rem;
    padding-left: 1.45rem;
  }

  .experience-timeline::before {
    left: 0.32rem;
  }

  .exp-item {
    padding: 1.1rem 1.15rem 1.2rem;
  }

  .exp-item::before {
    top: 1.2rem;
    left: -1.23rem;
    width: 9px;
    height: 9px;
  }

  .exp-head {
    grid-template-columns: auto 1fr;
    row-gap: 0.3rem;
  }

  .exp-date {
    grid-column: 1 / -1;
    text-align: left;
    padding-top: 0;
  }

  /* Mobile: always show bullets since hover isn't available */
  .exp-bullets {
    max-height: 520px;
    opacity: 1;
    margin-top: 0.85rem;
    padding-top: 0.3rem;
    border-top-color: rgba(255, 255, 255, 0.06);
  }

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

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

  .repo-card {
    grid-column: span 1;
  }

  .site-header {
    justify-content: space-between;
    width: min(520px, 94%);
  }

  .nav-cta {
    font-size: 0.82rem;
  }
}

/* =============================================================
   RECRUITER POLISH PASS - additions layered on the base theme
   ============================================================= */

/* -- CSS custom props additions ------------------------------- */
:root {
  --hue: 0deg;
}

/* -- Hue-linked background shift on orb layers ---------------- */
.global-orbs,
.bg-orbs {
  filter: hue-rotate(var(--hue, 0deg));
  transition: filter 0.4s ease-out;
}

/* -- Grain + noise overlay upgrade ---------------------------- */
.noise-overlay {
  background-image:
    url("assets/grain.svg"),
    radial-gradient(rgba(255, 255, 255, 0.08) 0.5px, transparent 0.5px);
  background-size: 280px 280px, 2px 2px;
  background-repeat: repeat;
  opacity: 0.12;
  mix-blend-mode: overlay;
}

/* -- Gradient scrollbar --------------------------------------- */
html {
  scrollbar-color: #8f67ff rgba(14, 18, 32, 0.8);
  scrollbar-width: thin;
}

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

::-webkit-scrollbar-track {
  background: rgba(14, 18, 32, 0.8);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00d1ff, #8f67ff, #ff4ecd);
  border-radius: 10px;
  border: 2px solid rgba(14, 18, 32, 0.9);
}

::-webkit-scrollbar-thumb:hover {
  filter: brightness(1.15);
}

/* -- Focus styles (a11y) -------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(143, 103, 255, 0.75);
  outline-offset: 3px;
  border-radius: 6px;
}

/* -- Availability pill ---------------------------------------- */
.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(222, 228, 245, 0.82);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 0.95rem;
  text-transform: none;
  backdrop-filter: blur(10px);
}

.availability-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8fe3ff;
  box-shadow: 0 0 0 3px rgba(143, 227, 255, 0.14);
  flex-shrink: 0;
  animation: availability-breathe 3.2s ease-in-out infinite;
}

@keyframes availability-breathe {
  0%,
  100% {
    opacity: 0.75;
    box-shadow: 0 0 0 3px rgba(143, 227, 255, 0.1);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(143, 227, 255, 0.22);
  }
}

/* -- Role rotator --------------------------------------------- */
.role-rotator {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
}

.role-rotator-prefix {
  color: #95a6e5;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.role-rotator-track {
  position: relative;
  display: inline-block;
  min-width: 190px;
  height: 1.35rem;
  overflow: hidden;
}

.role-word {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  font-weight: 700;
  background: linear-gradient(95deg, #93f6ff, #ffaef5 45%, #b2a0ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
  line-height: 1.35rem;
}

.role-word.is-active {
  opacity: 1;
  transform: translateY(0);
}

.role-word.is-exit {
  opacity: 0;
  transform: translateY(-14px);
}

/* -- Logo strip ----------------------------------------------- */
.logo-strip {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

.logo-strip-label {
  color: #95a6e5;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
}

.logo-strip ul {
  list-style: none;
  display: flex;
  gap: 1.35rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.logo-strip li {
  position: relative;
  color: #d8deec;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  opacity: 0.72;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.logo-strip li:hover {
  opacity: 1;
  color: #ffffff;
}

.logo-strip li + li::before {
  content: "";
  position: absolute;
  left: -0.8rem;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-50%);
}

/* -- Copy email button + toast -------------------------------- */
.btn-copy-email {
  gap: 0.5rem;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.copy-icon svg {
  width: 15px;
  height: 15px;
  display: block;
}

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translate(-50%, 120%);
  background: rgba(13, 18, 32, 0.96);
  color: #f5f8ff;
  border: 1px solid rgba(143, 103, 255, 0.38);
  padding: 0.8rem 1.15rem;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 12000;
  box-shadow: 0 20px 44px rgba(8, 12, 34, 0.55);
  backdrop-filter: blur(10px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* -- Mobile toggle + drawer ----------------------------------- */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #f5f8ff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 900;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}

.mobile-drawer.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.28s ease;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 14, 0.72);
  backdrop-filter: blur(4px);
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(86%, 340px);
  height: 100%;
  padding: 5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  background: rgba(13, 16, 30, 0.96);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-drawer.is-open .mobile-drawer-panel {
  transform: translateX(0);
}

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mobile-drawer nav a {
  color: #f5f8ff;
  text-decoration: none;
  padding: 0.95rem 0.85rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.mobile-drawer nav a:hover {
  background: rgba(143, 103, 255, 0.16);
}

.mobile-drawer-hint {
  margin-top: auto;
  color: #95a6e5;
  font-size: 0.82rem;
}

.mobile-drawer-hint kbd {
  display: inline-block;
  padding: 0.18rem 0.48rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  margin: 0 0.12rem;
  font-family: "Space Grotesk", monospace;
}

/* -- Command palette ------------------------------------------ */
.cmd-palette {
  position: fixed;
  inset: 0;
  z-index: 11000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
  display: grid;
  place-items: start center;
  padding-top: 18vh;
}

.cmd-palette.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.cmd-palette-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 12, 0.7);
  backdrop-filter: blur(8px);
}

.cmd-palette-panel {
  position: relative;
  width: min(92%, 560px);
  border-radius: 18px;
  background: rgba(16, 18, 32, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  box-shadow: 0 36px 80px rgba(2, 4, 18, 0.8);
  transform: translateY(-12px);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.cmd-palette.is-open .cmd-palette-panel {
  transform: translateY(0);
  opacity: 1;
}

.cmd-palette-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cmd-palette-icon {
  color: #95a6e5;
  display: flex;
}

.cmd-palette-icon svg {
  width: 16px;
  height: 16px;
}

.cmd-palette-header input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f5f8ff;
  font-size: 0.98rem;
  font-family: inherit;
}

.cmd-palette-header input::placeholder {
  color: #7a85ae;
}

.cmd-esc {
  color: #95a6e5;
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: "Space Grotesk", monospace;
  text-transform: uppercase;
}

.cmd-list {
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  max-height: 360px;
  overflow-y: auto;
}

.cmd-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.15s ease;
}

.cmd-list li .cmd-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #f5f8ff;
  flex-shrink: 0;
}

.cmd-list li .cmd-icon svg {
  width: 14px;
  height: 14px;
}

.cmd-list li .cmd-label {
  flex: 1;
  color: #f5f8ff;
  font-weight: 600;
}

.cmd-list li .cmd-hint {
  color: #95a6e5;
  font-size: 0.75rem;
}

.cmd-list li[aria-selected="true"],
.cmd-list li:hover {
  background: linear-gradient(95deg, rgba(0, 209, 255, 0.16), rgba(143, 103, 255, 0.18));
}

.cmd-footer {
  display: flex;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #95a6e5;
  font-size: 0.76rem;
  flex-wrap: wrap;
}

.cmd-footer kbd {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  margin: 0 0.14rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: "Space Grotesk", monospace;
  font-size: 0.72rem;
  color: #d0d7f0;
}

.cmd-empty {
  padding: 1.4rem;
  text-align: center;
  color: #95a6e5;
  font-size: 0.88rem;
}

/* -- Side section dots ---------------------------------------- */
.side-dots {
  position: fixed;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  z-index: 500;
}

.side-dots a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: transparent;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  flex-direction: row-reverse;
}

.side-dots a span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: transparent;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  flex-shrink: 0;
}

.side-dots a:hover,
.side-dots a.is-active {
  color: #f5f8ff;
}

.side-dots a:hover span,
.side-dots a.is-active span {
  background: linear-gradient(135deg, #00d1ff, #ff4ecd);
  border-color: transparent;
  transform: scale(1.25);
  box-shadow: 0 0 18px rgba(143, 103, 255, 0.55);
}

@media (max-width: 1100px) {
  .side-dots {
    display: none;
  }
}

/* -- Featured case study ------------------------------------- */
.featured-section {
  padding: 4.4rem 0 2.8rem;
}

.featured-case {
  position: relative;
  border-radius: 26px;
  padding: 2.2rem 1.9rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 14, 26, 0.84);
  display: grid;
  gap: 1.4rem;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease, border-color 0.32s ease;
}

.featured-case:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 211, 255, 0.45);
  box-shadow: 0 28px 56px rgba(8, 12, 34, 0.52);
}

.featured-case::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(143, 103, 255, 0.32), transparent 65%);
  pointer-events: none;
  filter: blur(12px);
}

.featured-case::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00d1ff, #8f67ff, #ff4ecd);
}

.featured-case-header {
  display: flex;
  align-items: flex-end;
  gap: 1.1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.featured-case-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(100deg, rgba(0, 209, 255, 0.2), rgba(255, 78, 205, 0.18));
  border: 1px solid rgba(143, 103, 255, 0.4);
  color: #e3d9ff;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.featured-case-title {
  margin: 0;
  font-size: 2.5rem;
  letter-spacing: -0.01em;
  background: linear-gradient(95deg, #93f6ff, #ffaef5 45%, #b2a0ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.featured-case-subtitle {
  margin: 0.3rem 0 0;
  color: #a5adcf;
  font-size: 1rem;
}

.featured-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.featured-case-cell {
  padding: 1.05rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.featured-case-label {
  margin: 0 0 0.5rem;
  color: #95a6e5;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.featured-case-cell p {
  margin: 0;
  color: #d8deec;
  font-size: 0.92rem;
  line-height: 1.55;
}

.featured-case-metric {
  color: #f5f8ff !important;
  font-weight: 600;
  font-size: 1rem !important;
}

.featured-case-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  position: relative;
  z-index: 1;
}

.featured-case-stack .pill {
  background: rgba(255, 255, 255, 0.06);
  color: #f5f8ff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.featured-case-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* -- Experience expand controls ------------------------------- */
.experience-controls {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 0.7rem;
}

.expand-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f5f8ff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.expand-all-btn:hover {
  background: rgba(143, 103, 255, 0.18);
  border-color: rgba(143, 103, 255, 0.45);
  transform: translateY(-1px);
}

.expand-all-icon svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.expand-all-btn[aria-pressed="true"] .expand-all-icon svg {
  transform: rotate(180deg);
}

/* Legacy .exp-item--current overrides removed — handled in the
 * polished Experience Timeline block at the top of this file. */

/* -- Contribution heatmap ------------------------------------- */
.contribution-heatmap {
  margin-top: 1.4rem;
  padding: 1.35rem;
  border-radius: 20px;
  background: rgba(10, 14, 26, 0.72);
}

.contribution-heatmap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.contribution-heatmap-head h3 {
  margin: 0.3rem 0 0;
  font-size: 1.15rem;
}

.contribution-legend {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.contribution-legend .legend-label {
  color: #95a6e5;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin: 0 0.2rem;
}

.legend-cell,
.contribution-cell {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

.level-0 { background: rgba(255, 255, 255, 0.05); }
.level-1 { background: rgba(100, 150, 255, 0.35); }
.level-2 { background: rgba(100, 200, 255, 0.55); }
.level-3 { background: linear-gradient(135deg, #00d1ff, #8f67ff); }
.level-4 {
  background: linear-gradient(135deg, #8f67ff, #ff4ecd);
  box-shadow: 0 0 10px rgba(143, 103, 255, 0.55);
}

.contribution-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 12px);
  grid-auto-columns: 12px;
  gap: 3px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.contribution-cell {
  transform: scale(0);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.contribution-grid.is-visible .contribution-cell {
  transform: scale(1);
  opacity: 1;
}

.contribution-note {
  margin: 0.9rem 0 0;
  color: #95a6e5;
  font-size: 0.82rem;
}

/* -- GitHub stat strip (replaces Flex line) ------------------- */
.github-stat-strip {
  list-style: none;
  margin: 1rem 0 0;
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  border-radius: 16px;
  background: linear-gradient(110deg, rgba(89, 132, 255, 0.12), rgba(240, 97, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.github-stat-strip li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: center;
}

.github-stat-strip strong {
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(95deg, #93f6ff, #ffaef5 50%, #b2a0ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.github-stat-strip span {
  color: #a5adcf;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 700px) {
  .github-stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -- Inline impact charts on .step cards ---------------------- */
.step--chart {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.9rem;
}

.step--chart .step-num {
  grid-row: 1;
  grid-column: 1;
  color: #88beff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  align-self: center;
}

.step--chart .step-chart {
  grid-row: 1;
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-bottom: 0.3rem;
}

.step--chart h3 {
  grid-column: 1 / span 2;
  margin: 0.3rem 0 0.35rem;
}

.step--chart p {
  grid-column: 1 / span 2;
}

.step-chart svg {
  width: 130px;
  height: 48px;
  flex-shrink: 0;
}

.chart-ring {
  width: 54px !important;
  height: 54px !important;
}

.step-chart-caption {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.72rem;
  color: #a5adcf;
  text-align: right;
  line-height: 1.3;
}

.step-chart-caption strong {
  color: #f5f8ff;
  font-weight: 700;
}

.chart-line {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.step.is-visible .chart-line {
  stroke-dashoffset: 0;
}

.chart-area {
  opacity: 0;
  transition: opacity 1s ease 0.5s;
}

.step.is-visible .chart-area {
  opacity: 1;
}

.chart-peak,
.chart-dot {
  opacity: 0;
  transition: opacity 0.35s ease 1.2s;
}

.step.is-visible .chart-peak,
.step.is-visible .chart-dot {
  opacity: 1;
}

.bar-savings,
.bar-baseline {
  transform-origin: left center;
}

.bar-savings {
  transform: scaleX(0);
  transition: transform 1.3s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.bar-baseline {
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.step.is-visible .bar-savings,
.step.is-visible .bar-baseline {
  transform: scaleX(1);
}

.ring-progress {
  stroke-dasharray: 150.72;
  stroke-dashoffset: 150.72;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.step.is-visible .ring-progress {
  stroke-dashoffset: 45.22;
}

/* -- "In progress" card --------------------------------------- */
.step--now {
  position: relative;
  overflow: hidden;
}

.step--now::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(
    90deg,
    rgba(0, 209, 255, 0) 0%,
    rgba(0, 209, 255, 0.55) 28%,
    rgba(143, 103, 255, 0.7) 60%,
    rgba(255, 110, 199, 0) 100%
  );
  pointer-events: none;
}

.step--now::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% -10%, rgba(143, 103, 255, 0.14), transparent 55%);
  pointer-events: none;
}

.step--now > * {
  position: relative;
  z-index: 1;
}

.now-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border: none;
  background: none;
  color: rgba(194, 208, 255, 0.82);
  font-size: 0.78rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  margin: 0.35rem 0 0.55rem;
}

.now-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8fe3ff;
  box-shadow: 0 0 0 3px rgba(143, 227, 255, 0.14);
  animation: availability-breathe 3.2s ease-in-out infinite;
}

/* -- Conic-gradient rotating borders on hero stat cards ------- */
.hero-stat-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-stat-card::before {
  content: "";
  position: absolute;
  inset: -80%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 260deg,
    rgba(0, 209, 255, 0.9) 300deg,
    rgba(255, 78, 205, 0.85) 340deg,
    transparent 360deg
  );
  animation: conic-spin 9s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.hero-stat-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 15px;
  background: rgba(14, 18, 32, 0.95);
  z-index: 1;
  pointer-events: none;
}

.hero-stat-card > * {
  position: relative;
  z-index: 2;
}

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

/* -- Primary button shimmer ----------------------------------- */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.32) 50%, transparent 65%);
  transition: left 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.btn-primary:hover::before {
  left: 120%;
}

/* -- Responsive nav toggle at <=900px ------------------------- */
@media (max-width: 900px) {
  .mobile-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .site-header {
    justify-content: space-between;
  }

  .featured-case-grid {
    grid-template-columns: 1fr;
  }

  .featured-case {
    padding: 1.6rem 1.25rem;
  }

  .featured-case-title {
    font-size: 1.9rem;
  }

  .logo-strip {
    gap: 0.8rem;
  }

  .side-dots {
    display: none;
  }
}

@media (max-width: 700px) {
  .step--chart {
    grid-template-columns: auto;
  }

  .step--chart .step-chart {
    grid-column: 1;
    justify-content: flex-start;
    margin-top: 0.4rem;
  }

  .step--chart .step-num {
    grid-column: 1;
  }

  .toast {
    bottom: 1rem;
    font-size: 0.85rem;
  }

  .logo-strip ul {
    gap: 0.9rem;
  }
}

/* -- Reduced motion ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.2s !important;
  }

  .hero-stat-card::before {
    display: none;
  }

  .availability-dot,
  .now-dot {
    animation: none;
  }

  .chart-line {
    stroke-dashoffset: 0 !important;
  }

  .chart-area,
  .chart-peak,
  .chart-dot {
    opacity: 1 !important;
  }

  .bar-savings,
  .bar-baseline {
    transform: scaleX(1) !important;
  }

  .ring-progress {
    stroke-dashoffset: 45.22 !important;
  }

  .parallax {
    transform: none !important;
  }
}

/* ================================================================
 *  Results Snapshot — redesigned cards
 * =============================================================== */
.result-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.result-card {
  position: relative;
  padding: 1.55rem 1.6rem 1.5rem;
  border-radius: 22px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.045) 0%,
    rgba(255, 255, 255, 0.02) 55%,
    rgba(255, 255, 255, 0.015) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease, box-shadow 0.35s ease;
}

.result-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(0, 209, 255, 0) 0%,
    rgba(0, 209, 255, 0.55) 22%,
    rgba(143, 103, 255, 0.7) 55%,
    rgba(255, 110, 199, 0) 100%
  );
  opacity: 0.8;
  pointer-events: none;
}

.result-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 92% -10%,
    rgba(143, 103, 255, 0.12),
    transparent 60%
  );
  pointer-events: none;
}

.result-card > * {
  position: relative;
  z-index: 1;
}

.result-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(8, 10, 28, 0.35);
}

.result-card-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.result-index {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.1;
  background: linear-gradient(135deg, #00d8ff 0%, #8f67ff 70%, #ff6ec7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  min-width: 2.2ch;
  padding-top: 0.15rem;
}

.result-card-head-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.result-tag {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(196, 206, 232, 0.55);
}

.result-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: rgba(245, 248, 255, 0.95);
  line-height: 1.25;
}

.result-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.2rem;
}

.result-metric {
  display: grid;
  grid-template-columns: minmax(0, auto) 1fr;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.result-metric:last-child {
  border-bottom: none;
}

.result-metric-value {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1;
  color: #f3f6ff;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.result-metric-value sub {
  font-size: 0.55em;
  font-weight: 500;
  vertical-align: -0.1em;
}

.result-metric-unit {
  font-family: inherit;
  font-size: 0.7em;
  font-weight: 500;
  margin-left: 0.05em;
  color: rgba(196, 206, 232, 0.72);
}

.result-metric--primary .result-metric-value {
  font-size: 2.3rem;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #d5dcff 55%,
    #a89bff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.result-metric--delta .result-metric-value {
  color: #8fe3ff;
  font-size: 1.25rem;
}

.result-metric-label {
  font-size: 0.82rem;
  color: rgba(206, 214, 234, 0.65);
  line-height: 1.3;
  font-weight: 400;
}

.result-desc {
  margin: 0;
  padding-top: 0.1rem;
  font-size: 0.88rem;
  color: rgba(210, 218, 236, 0.7);
  line-height: 1.6;
}

/* -- Card 04: qualitative focus list -- */
.result-card--focus .result-focus {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.2rem;
}

.result-card--focus .result-focus li {
  display: flex;
  align-items: baseline;
  gap: 0.95rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.result-card--focus .result-focus li:last-child {
  border-bottom: none;
}

.result-focus-label {
  flex-shrink: 0;
  min-width: 3.4rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.15;
  background: linear-gradient(135deg, #00d8ff, #8f67ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.01em;
  padding-top: 0.1rem;
}

.result-focus-text {
  font-size: 0.9rem;
  color: rgba(214, 220, 238, 0.78);
  line-height: 1.45;
}

@media (max-width: 720px) {
  .result-grid {
    grid-template-columns: 1fr;
  }

  .result-card {
    padding: 1.35rem 1.35rem 1.3rem;
  }

  .result-metric-value {
    font-size: 1.45rem;
  }

  .result-metric--primary .result-metric-value {
    font-size: 2rem;
  }

  .result-index {
    font-size: 1.85rem;
  }
}

/* ================================================================
 *  Project case study — portfolio-matched, recruiter polish, compact
 * ================================================================ */
.project-page {
  --pf-xs: 0.4rem;
  --pf-sm: 0.65rem;
  --pf-md: 1.1rem;
  --pf-lg: 1.5rem;
  --pf-xl: 2rem;
  --pf-pad-x: clamp(1rem, 4vw, 2rem);
  --pf-shell: min(1140px, calc(100vw - 2 * var(--pf-pad-x)));
  --pf-rail: minmax(188px, 222px);
  --pf-header-clearance: max(5.5rem, calc(4.25rem + env(safe-area-inset-top, 0px)));
  --pf-scroll-gutter: 0px;
}

body.project-page {
  scroll-padding-top: 5.5rem;
}

#case-overview,
#case-preview,
#case-deep,
#case-contact {
  scroll-margin-top: calc(var(--pf-header-clearance) + 0.35rem);
}

@media (min-width: 1101px) {
  body.project-page:has(> .side-dots) {
    --pf-scroll-gutter: 2.85rem;
  }
}

.project-page .site-header.site-header--subpage {
  top: 0.75rem;
  width: min(920px, 94%);
  padding: 0.62rem 0.95rem;
  box-shadow: 0 14px 44px rgba(6, 8, 22, 0.38);
}

.project-page .project-shell {
  max-width: var(--pf-shell);
  margin: 0 auto;
  padding: var(--pf-header-clearance) var(--pf-pad-x) var(--pf-xl);
  padding-left: max(var(--pf-pad-x), env(safe-area-inset-left, 0px));
  padding-right: calc(max(var(--pf-pad-x), env(safe-area-inset-right, 0px)) + var(--pf-scroll-gutter));
  position: relative;
  z-index: 3;
}

.project-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--pf-rail);
  gap: var(--pf-lg) clamp(1rem, 2.5vw, 1.75rem);
  align-items: start;
  margin: 0 0 var(--pf-lg);
  padding-bottom: var(--pf-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
}

.project-masthead::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: min(12rem, 55%);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(0, 209, 255, 0.55), rgba(143, 103, 255, 0.45), transparent);
  pointer-events: none;
}

.project-masthead-main {
  min-width: 0;
}

.project-hero-badges {
  list-style: none;
  margin: 0 0 var(--pf-sm);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
}

.project-hero-badges li {
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(186, 198, 236, 0.75);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.project-hero-badges li:hover {
  border-color: rgba(143, 227, 255, 0.28);
  background: rgba(143, 227, 255, 0.07);
  transform: translateY(-1px);
}

.project-bento {
  display: flex;
  flex-direction: column;
  gap: var(--pf-lg);
}

.project-bento--stage {
  padding: var(--pf-lg) var(--pf-lg) var(--pf-xl);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.02) 45%,
    rgba(12, 14, 32, 0.38) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(4, 6, 18, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.project-bento--stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 45% at 10% 0%, rgba(0, 209, 255, 0.09), transparent 55%),
    radial-gradient(ellipse 55% 40% at 100% 100%, rgba(143, 103, 255, 0.1), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.project-bento--stage > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .project-bento--stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--pf-rail);
    grid-template-rows: auto auto;
    gap: var(--pf-lg) var(--pf-xl);
    align-items: start;
    padding: var(--pf-xl) var(--pf-xl) var(--pf-xl);
  }

  .project-bento--stage > .project-demo-section {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .project-bento--stage > .project-tech-card {
    grid-column: 2;
    grid-row: 1;
  }

  .project-bento--stage > .project-body {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 0;
    width: 100%;
  }

  .project-bento--stage .project-demo-crossfade {
    height: clamp(248px, 36vh, 360px);
  }

  .project-bento--stage .project-demo-crossfade--video {
    height: auto;
    min-height: clamp(288px, 46vh, 520px);
    overflow: hidden;
    padding: 0.2rem 0.35rem 0.45rem;
    box-sizing: border-box;
  }

  .project-bento--stage .project-demo-crossfade--video .project-demo-video {
    max-height: min(80vh, 760px);
  }
}

@keyframes project-demo-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 209, 255, 0.06);
  }
  50% {
    box-shadow: 0 0 24px 2px rgba(0, 209, 255, 0.1);
  }
}

.project-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: var(--pf-sm);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(205, 214, 240, 0.92);
  text-decoration: none;
  padding: 0.38rem 0.8rem 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 4px 18px rgba(4, 6, 18, 0.25);
  transition: border-color 0.28s ease, background 0.28s ease, color 0.28s ease,
    box-shadow 0.28s ease, transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.project-back:hover {
  border-color: rgba(143, 227, 255, 0.45);
  background: rgba(143, 227, 255, 0.1);
  color: #fff;
  box-shadow: 0 8px 28px rgba(0, 209, 255, 0.18);
  transform: translateY(-2px) translateX(-1px);
}

.project-hero h1 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(1.65rem, 3.6vw, 2.35rem);
  margin: var(--pf-xs) 0 var(--pf-sm);
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-weight: 700;
}

.project-hero h1 .gradient-text {
  display: inline-block;
}

.project-hero .eyebrow {
  margin-bottom: var(--pf-xs);
  opacity: 0.92;
}

.project-lede {
  font-size: 0.98rem;
  line-height: 1.62;
  color: rgba(183, 196, 228, 0.9);
  max-width: min(42rem, 100%);
  margin: 0;
}

.project-tech-card {
  margin: 0;
  padding: 0.9rem 1rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(
    135deg,
    rgba(56, 78, 168, 0.28) 0%,
    rgba(36, 110, 168, 0.18) 38%,
    rgba(100, 68, 168, 0.22) 100%
  );
  box-shadow: 0 12px 32px rgba(5, 8, 22, 0.32);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.3s ease;
}

.project-tech-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(79, 102, 255, 0.22);
  border-color: rgba(143, 227, 255, 0.22);
}

.project-tech-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(0, 209, 255, 0) 0%,
    rgba(0, 209, 255, 0.45) 28%,
    rgba(143, 103, 255, 0.5) 58%,
    rgba(255, 110, 199, 0) 100%
  );
  opacity: 0.85;
  pointer-events: none;
}

.project-tech-heading {
  margin: 0 0 0.5rem;
  padding-top: 0.08rem;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(196, 206, 240, 0.68);
  position: relative;
  z-index: 1;
}

.project-tech-card .skill-pills {
  position: relative;
  z-index: 1;
  gap: 0.35rem 0.42rem;
  justify-content: flex-start;
}

.project-tech-card .pill {
  transition: transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.22s ease;
}

.project-tech-card .pill:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.project-tech-card .pill.project-pill-lang {
  background: linear-gradient(125deg, #5b6ed2, #3e7fd0);
  color: #fff;
  border-color: rgba(182, 215, 255, 0.28);
}

.project-tech-card .pill.project-pill-web {
  background: linear-gradient(125deg, #2f8fca, #2e69a8);
  color: #fff;
  border-color: rgba(164, 227, 255, 0.28);
}

.project-tech-card .pill.project-pill-data {
  background: linear-gradient(125deg, #7167d4, #9558bc);
  color: #fff;
  border-color: rgba(211, 180, 255, 0.28);
}

.project-tech-card .pill.project-pill-tools {
  background: linear-gradient(125deg, #c16fb8, #b66b8c);
  color: #fff;
  border-color: rgba(244, 187, 230, 0.28);
}

.project-tech-card .pill i {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.project-tech-card--compact {
  padding: 0.62rem 0.68rem 0.72rem;
}

.project-tech-card--compact .project-tech-heading {
  margin: 0 0 0.4rem;
  padding-top: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.project-tech-card--compact .skill-pills {
  flex-direction: column;
  align-items: stretch;
  gap: 0.28rem;
}

.project-tech-card--compact .pill {
  width: 100%;
  box-sizing: border-box;
  justify-content: flex-start;
  border-radius: 999px;
  font-size: 0.8rem;
  padding: 0.34rem 0.62rem;
}

.project-tech-card--compact .pill i {
  font-size: 0.95rem !important;
  margin-right: 0.42rem !important;
}

.project-tech-card--compact .pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.project-link-stack {
  padding: 0.72rem 0.78rem 0.78rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  position: relative;
  overflow: hidden;
}

.project-link-stack--masthead {
  background: linear-gradient(
    168deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.025) 50%,
    rgba(255, 255, 255, 0.02) 100%
  );
  box-shadow: 0 16px 42px rgba(8, 10, 28, 0.4);
  align-self: stretch;
  padding: 0.62rem 0.72rem 0.68rem;
}

.project-link-stack--masthead .project-cta-list {
  gap: 0.34rem;
}

.project-link-stack--masthead .project-cta {
  padding: 0.52rem 0.78rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.project-link-stack--masthead .project-cta--primary {
  box-shadow: 0 8px 26px rgba(79, 102, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.project-link-stack--masthead .project-cta--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(79, 102, 255, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.project-link-stack--masthead .project-cta--glass:hover {
  transform: translateY(-2px);
}

.project-link-stack--masthead .project-cta--quiet:hover {
  transform: translateY(-1px);
}

.project-link-stack--masthead::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0.85rem;
  right: 0.85rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(0, 209, 255, 0) 0%,
    rgba(0, 209, 255, 0.55) 22%,
    rgba(143, 103, 255, 0.6) 55%,
    rgba(255, 110, 199, 0) 100%
  );
  opacity: 0.88;
  pointer-events: none;
}

.project-link-stack--masthead::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(143, 103, 255, 0.12), transparent 52%);
  pointer-events: none;
}

.project-link-stack > * {
  position: relative;
  z-index: 1;
}

.project-link-stack-head {
  margin-bottom: 0.52rem;
  padding-bottom: 0.52rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.project-link-stack-head h3 {
  margin: 0 0 0.34rem;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(198, 208, 236, 0.82);
  font-weight: 650;
}

.project-link-stack-sub {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.48;
  color: rgba(165, 182, 218, 0.76);
}

.project-cta-list {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.project-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pf-sm);
  width: 100%;
  box-sizing: border-box;
  padding: 0.64rem 0.88rem;
  border-radius: 16px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: -0.012em;
  line-height: 1.25;
  text-decoration: none;
  color: rgba(248, 250, 255, 0.97);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  transition: transform 0.38s cubic-bezier(0.34, 1.35, 0.64, 1), box-shadow 0.35s ease,
    border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
  isolation: isolate;
}

.project-cta-glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(0, 209, 255, 0.35), rgba(143, 103, 255, 0.35));
  opacity: 0;
  z-index: -1;
  filter: blur(12px);
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.project-cta--primary:hover .project-cta-glow {
  opacity: 0.55;
}

button.project-cta {
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
}

.project-cta:focus-visible {
  outline: 2px solid rgba(120, 210, 255, 0.65);
  outline-offset: 2px;
}

.project-cta-text {
  flex: 1;
  min-width: 0;
}

.project-cta-icon {
  flex-shrink: 0;
  opacity: 0.9;
  display: block;
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.project-cta:hover .project-cta-icon {
  transform: translate(2px, -2px);
}

.project-cta--quiet:hover .project-cta-icon--start {
  transform: translateX(-3px);
}

.project-cta--quiet .project-cta-icon--start {
  opacity: 0.65;
  margin-right: 0.1rem;
}

.project-cta-pair {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
}

.project-cta--primary {
  overflow: hidden;
  background: linear-gradient(118deg, #7b58ff 0%, #4d6fff 38%, #00c4ec 100%);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 12px 36px rgba(79, 102, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #fff;
}

.project-cta--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 36%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 64%
  );
  transform: translateX(-100%);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.project-cta--primary:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 20px 48px rgba(79, 102, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.32);
}

.project-cta--primary:hover::before {
  transform: translateX(100%);
}

.project-cta--glass {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(238, 242, 255, 0.96);
}

.project-cta--glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(143, 227, 255, 0.38);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(8, 12, 32, 0.42);
}

.project-cta--quiet {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.09);
  color: rgba(196, 206, 232, 0.92);
  justify-content: flex-start;
}

.project-cta--quiet:hover {
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.project-demo-section {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  min-width: 0;
}

.project-demo-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  margin-bottom: 0;
}

@media (min-width: 560px) {
  .project-demo-head {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 0.85rem;
  }
}

.project-demo-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.project-demo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00e5ff, #b27dff);
  box-shadow: 0 0 12px rgba(0, 209, 255, 0.55);
  animation: project-dot-pulse 2.4s ease-in-out infinite;
}

@keyframes project-dot-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.85;
  }
}

.project-demo-section h2 {
  font-size: 0.66rem;
  margin: 0;
  font-weight: 650;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(186, 198, 230, 0.78);
}

.project-demo-hint {
  font-size: 0.72rem;
  color: rgba(158, 174, 210, 0.62);
  margin: 0;
  max-width: min(38ch, 100%);
  line-height: 1.42;
  text-align: left;
}

.project-demo-head .project-demo-hint {
  flex: 1 1 11rem;
}

.project-demo-code {
  font-size: 0.88em;
  color: rgba(143, 231, 255, 0.95);
}

.project-demo-window {
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 8, 18, 0.65);
  box-shadow: 0 18px 48px rgba(4, 6, 18, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.4s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease;
}

.project-demo-window:hover {
  border-color: rgba(143, 227, 255, 0.22);
  box-shadow: 0 24px 56px rgba(79, 102, 255, 0.22), 0 0 0 1px rgba(0, 209, 255, 0.08);
  transform: translateY(-2px);
}

.project-demo-chrome {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.project-demo-chrome-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.project-demo-chrome-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.project-demo-chrome-dots span:nth-child(1) {
  background: #ff5f57;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.project-demo-chrome-dots span:nth-child(2) {
  background: #febc2e;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.project-demo-chrome-dots span:nth-child(3) {
  background: #28c840;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.project-demo-chrome-url {
  flex: 1;
  text-align: center;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(178, 192, 228, 0.45);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.project-demo-crossfade {
  position: relative;
  overflow: hidden;
  background: #070710;
  height: clamp(200px, 30vh, 280px);
}

@media (prefers-reduced-motion: no-preference) {
  .project-page .project-demo-window {
    animation: project-demo-pulse 5s ease-in-out infinite;
  }
}

.project-demo-crossfade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.project-demo-crossfade img:first-of-type {
  animation: projectShotA 7.5s ease-in-out infinite;
}

.project-demo-crossfade img:last-of-type {
  animation: projectShotB 7.5s ease-in-out infinite;
}

@keyframes projectShotA {
  0%,
  40% {
    opacity: 1;
  }
  50%,
  90% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes projectShotB {
  0%,
  40% {
    opacity: 0;
  }
  50%,
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.project-demo-crossfade--static {
  display: flex;
  align-items: stretch;
  height: auto;
  min-height: clamp(200px, 30vh, 280px);
}

.project-demo-crossfade--static img {
  display: none;
}

.project-demo-placeholder-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background: linear-gradient(145deg, rgba(16, 20, 42, 0.94), rgba(8, 10, 24, 0.98));
  text-align: center;
}

.project-demo-placeholder-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(244, 246, 255, 0.95);
}

.project-demo-placeholder-copy {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(170, 186, 220, 0.72);
  max-width: 34ch;
  margin-left: auto;
  margin-right: auto;
}

.project-demo-placeholder-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(143, 231, 255, 0.95);
  border: 1px solid rgba(0, 209, 255, 0.35);
  background: rgba(0, 209, 255, 0.08);
  text-decoration: none;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.2s ease;
}

.project-demo-placeholder-cta:hover {
  border-color: rgba(0, 209, 255, 0.55);
  background: rgba(0, 209, 255, 0.14);
  transform: translateY(-1px);
}

.project-demo-crossfade--video {
  position: relative;
  overflow: hidden;
  background: #070710;
  height: auto;
  min-height: clamp(228px, 42vh, 400px);
  padding: 0.18rem 0.32rem 0.42rem;
  box-sizing: border-box;
}

.project-demo-crossfade--video .project-demo-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: top center;
  max-height: min(80vh, 760px);
  background: #070710;
}

.project-body {
  margin: 0;
  padding: 1.15rem 1.25rem 1.35rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  min-width: 0;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.project-body:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
}

.project-detail-grid {
  max-width: none;
  width: 100%;
}

.project-body-two-col {
  display: grid;
  gap: 1.1rem 2.25rem;
}

@media (min-width: 700px) {
  .project-body-two-col {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}

.project-copy h2 {
  font-size: 0.72rem;
  margin: 0 0 0.55rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(196, 208, 236, 0.78);
}

.project-copy--highlights h2 {
  margin-bottom: 0.65rem;
}

.project-h2-spaced {
  margin-top: 1.15rem !important;
}

.project-prose {
  margin: 0 0 0.65rem;
  color: rgba(186, 198, 228, 0.9);
  line-height: 1.65;
  font-size: 0.94rem;
  max-width: 62ch;
}

.project-prose--tight {
  margin-bottom: 0.45rem;
}

.project-prose:last-child {
  margin-bottom: 0;
}

.project-prose strong {
  color: rgba(238, 242, 255, 0.96);
  font-weight: 600;
}

.project-highlights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.project-highlights li {
  position: relative;
  padding-left: 1rem;
  color: rgba(186, 198, 228, 0.88);
  line-height: 1.55;
  font-size: 0.9rem;
  max-width: 52ch;
  transition: color 0.2s ease, transform 0.2s ease;
}

.project-highlights li:hover {
  color: rgba(220, 228, 255, 0.92);
  transform: translateX(2px);
}

.project-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d8ff, #8f67ff);
  box-shadow: 0 0 8px rgba(0, 209, 255, 0.35);
}

.project-page .reveal {
  transform: translateY(14px);
  transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.55s ease;
}

.project-page .reveal.is-visible {
  transform: translateY(0);
}


.repo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.05rem;
  align-items: center;
}

.repo-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0 !important;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(143, 103, 255, 0.35);
  background: rgba(143, 103, 255, 0.14);
  text-decoration: none !important;
  color: #fff !important;
  text-decoration-color: transparent !important;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.2s ease;
}

.repo-actions a:hover {
  border-color: rgba(0, 216, 255, 0.45);
  background: rgba(0, 216, 255, 0.12);
  transform: translateY(-1px);
}

.repo-actions a.repo-actions-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
}

.repo-actions a.repo-actions-secondary:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.project-page-footer {
  padding-top: 1.25rem;
  padding-bottom: 1.65rem;
}

.project-footer-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.project-cta--footer {
  width: auto;
  min-width: 10.5rem;
  max-width: 100%;
  padding: 0.74rem 1.35rem;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.87rem;
}

.project-cta--footer .project-cta-text {
  flex: 0 1 auto;
}

.project-cta--footer .project-cta-icon {
  margin-left: 0.35rem;
  opacity: 0.9;
}

.project-cta--footer-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(118deg, #6e52f5 0%, #3d5fff 42%, #00b8e5 100%);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 28px rgba(79, 102, 255, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #fff;
}

.project-cta--footer-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 38%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 62%
  );
  transform: translateX(-100%);
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.project-cta--footer-primary .project-cta-text,
.project-cta--footer-primary .project-cta-icon {
  position: relative;
  z-index: 1;
}

.project-cta--footer-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(79, 102, 255, 0.48);
}

.project-cta--footer-primary:hover::before {
  transform: translateX(100%);
}

.project-cta--footer-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(236, 240, 255, 0.94);
}

.project-cta--footer-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(143, 227, 255, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(8, 12, 32, 0.32);
}

.project-page-footer .copyright {
  margin-top: 0;
  font-size: 0.86rem;
  text-align: center;
  color: rgba(172, 184, 214, 0.82);
}

.project-page-footer .copyright a {
  margin-left: 0.5rem;
  color: rgba(143, 227, 255, 0.88);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(143, 227, 255, 0.35);
}

.project-page-footer .copyright a:hover {
  border-bottom-color: rgba(143, 227, 255, 0.7);
}

@media (max-width: 900px) {
  .project-page .site-header.site-header--subpage {
    width: min(var(--pf-shell), 94%);
    padding: 0.62rem 0.9rem;
  }

  .project-masthead {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .project-demo-hint {
    text-align: left;
  }

  .project-demo-head {
    align-items: flex-start;
  }

  .project-demo-crossfade {
    height: clamp(160px, 32vh, 280px);
  }

  .project-demo-crossfade--video {
    height: auto;
    min-height: clamp(200px, 40vh, 480px);
    padding: 0.15rem 0.28rem 0.4rem;
  }

  .project-demo-crossfade--video .project-demo-video {
    max-height: min(75vh, 640px);
  }

  .project-bento--stage {
    padding: var(--pf-md);
  }

  .project-body {
    padding: 1rem 1.05rem 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-demo-dot {
    animation: none !important;
  }

  .project-page .project-demo-window {
    animation: none !important;
  }

  .project-page .reveal {
    transform: none;
    opacity: 1;
    transition: none;
  }

  .project-demo-crossfade img:first-of-type,
  .project-demo-crossfade img:last-of-type {
    animation: none !important;
  }

  .project-demo-crossfade img:last-of-type {
    display: none;
  }

  .project-cta--primary::before,
  .project-cta--footer-primary::before {
    display: none;
  }

  .project-cta--primary:hover,
  .project-cta--glass:hover,
  .project-cta--quiet:hover,
  .project-cta--footer-primary:hover,
  .project-cta--footer-ghost:hover {
    transform: none;
  }
}

/* ================================================================
 *  ARCHITECTURE SECTION — CAD blueprint / system diagram aesthetic
 *  Anchors on <h2 class="project-h2-spaced">Architecture</h2>.
 *  The following .project-prose paragraphs become stacked, numbered
 *  layer cards connected by a glowing dashed rail.
 *  Counter-reset lives on the containing .project-copy so each
 *  Architecture block restarts at 01 on its own page.
 * ================================================================ */

.project-copy:has(.project-h2-spaced) {
  counter-reset: arch-layer;
}

/* -- Architecture heading: stamped technical label with sheen ---- */
.project-h2-spaced {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 0.55rem;
  width: auto;
  margin: 1.55rem 0 1.05rem !important;
  padding: 0.42rem 0.95rem 0.45rem 0.78rem;
  font-family: "Space Grotesk", "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0.26em !important;
  text-transform: uppercase;
  color: rgba(220, 240, 255, 0.96) !important;
  background: linear-gradient(
    135deg,
    rgba(0, 209, 255, 0.16) 0%,
    rgba(143, 103, 255, 0.16) 55%,
    rgba(255, 110, 199, 0.14) 100%
  );
  border: 1px solid rgba(143, 227, 255, 0.32);
  border-radius: 8px;
  isolation: isolate;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 3px rgba(0, 209, 255, 0.04),
    0 8px 24px rgba(0, 209, 255, 0.12);
}

.project-h2-spaced::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00e5ff, #b27dff);
  box-shadow:
    0 0 10px rgba(0, 229, 255, 0.75),
    0 0 0 2px rgba(0, 229, 255, 0.18);
  animation: archHeadPulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

.project-h2-spaced::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  animation: archHeadSheen 4.8s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes archHeadPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.18); opacity: 0.85; }
}

@keyframes archHeadSheen {
  0%, 35% { transform: translateX(-120%); }
  60%, 100% { transform: translateX(120%); }
}

/* -- Layer cards: each .project-prose after the Architecture h2 -- */
.project-h2-spaced ~ .project-prose {
  --arch-rail: rgba(143, 227, 255, 0.45);
  counter-increment: arch-layer;
  position: relative;
  margin: 0 0 0.7rem !important;
  padding: 0.95rem 1.1rem 0.95rem 3.55rem;
  border-radius: 14px;
  background:
    linear-gradient(to right, rgba(143, 227, 255, 0.07) 1px, transparent 1px)
      2.6rem 0 / 22px 22px,
    linear-gradient(to bottom, rgba(143, 227, 255, 0.07) 1px, transparent 1px)
      2.6rem 0 / 22px 22px,
    radial-gradient(ellipse at 100% -10%, rgba(143, 103, 255, 0.13), transparent 55%),
    linear-gradient(150deg, rgba(6, 14, 28, 0.72) 0%, rgba(10, 8, 24, 0.58) 100%);
  border: 1px solid rgba(143, 227, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-size: 0.93rem !important;
  line-height: 1.6 !important;
  color: rgba(214, 222, 244, 0.88) !important;
  max-width: none !important;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease,
    --arch-rail 0.35s ease;
}

/* The dashed vertical rail running through the numbered nodes.
 * Extends past top/bottom so adjacent cards' rails overlap and
 * form one continuous line through the gap between cards. */
.project-h2-spaced ~ .project-prose::before {
  content: "";
  position: absolute;
  left: 1.7rem;
  top: -0.55rem;
  bottom: -0.55rem;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    var(--arch-rail) 0 4px,
    transparent 4px 8px
  );
  z-index: 0;
  pointer-events: none;
  transition: background 0.35s ease, filter 0.35s ease;
}

/* First architecture card: clip the rail's top half so it visually
 * "starts" at the badge instead of poking up toward the heading. */
.project-h2-spaced + .project-prose::before {
  top: 1.95rem;
}

/* Last paragraph in the column (= last architecture card): clip the
 * rail's bottom half so it terminates at the badge. */
.project-copy > .project-prose:last-of-type::before {
  bottom: calc(100% - 2.95rem);
}

/* The numbered node badge (01, 02, 03 …) sitting on the rail. */
.project-h2-spaced ~ .project-prose::after {
  content: "0" counter(arch-layer);
  position: absolute;
  top: 0.95rem;
  left: 0.7rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-family: "Space Grotesk", "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #050813;
  background: linear-gradient(135deg, #8fe8ff 0%, #a78bff 55%, #ff8fd8 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 6px 18px rgba(0, 209, 255, 0.32),
    0 0 0 4px rgba(0, 209, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  z-index: 2;
}

.project-h2-spaced ~ .project-prose:hover {
  --arch-rail: rgba(143, 227, 255, 0.85);
  transform: translateX(4px);
  border-color: rgba(143, 227, 255, 0.42);
  background:
    linear-gradient(to right, rgba(143, 227, 255, 0.1) 1px, transparent 1px)
      2.6rem 0 / 22px 22px,
    linear-gradient(to bottom, rgba(143, 227, 255, 0.1) 1px, transparent 1px)
      2.6rem 0 / 22px 22px,
    radial-gradient(ellipse at 100% -10%, rgba(143, 103, 255, 0.2), transparent 55%),
    linear-gradient(150deg, rgba(6, 18, 36, 0.8) 0%, rgba(14, 8, 32, 0.68) 100%);
  box-shadow:
    0 18px 38px rgba(8, 16, 42, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.project-h2-spaced ~ .project-prose:hover::before {
  filter: drop-shadow(0 0 6px rgba(143, 227, 255, 0.55));
}

/* The <strong>Frontend:</strong> / <strong>Vision:</strong> etc.
 * tags become glowing monospaced layer chips. */
.project-h2-spaced ~ .project-prose strong {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.12rem 0.6rem 0.15rem;
  border-radius: 6px;
  font-family: "Space Grotesk", "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b9eaff !important;
  background: linear-gradient(
    135deg,
    rgba(0, 209, 255, 0.18),
    rgba(143, 103, 255, 0.16)
  );
  border: 1px solid rgba(143, 227, 255, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 12px rgba(0, 209, 255, 0.15);
  vertical-align: 1px;
  transition: color 0.25s ease, border-color 0.25s ease,
    transform 0.25s ease, box-shadow 0.25s ease;
}

.project-h2-spaced ~ .project-prose:hover strong {
  color: #d9f5ff !important;
  border-color: rgba(143, 227, 255, 0.65);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 18px rgba(0, 209, 255, 0.28);
}

/* Mobile tightening */
@media (max-width: 720px) {
  .project-h2-spaced ~ .project-prose {
    padding: 0.85rem 0.95rem 0.85rem 3.2rem;
    background-position:
      2.35rem 0,
      2.35rem 0,
      0 0,
      0 0;
  }
  .project-h2-spaced ~ .project-prose::after {
    top: 0.85rem;
    left: 0.6rem;
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.72rem;
  }
  .project-h2-spaced ~ .project-prose::before {
    left: 1.525rem;
  }
  .project-h2-spaced + .project-prose::before {
    top: 1.75rem;
  }
  .project-copy > .project-prose:last-of-type::before {
    bottom: calc(100% - 2.75rem);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .project-h2-spaced::before,
  .project-h2-spaced::after {
    animation: none !important;
  }
  .project-h2-spaced::after {
    opacity: 0;
  }
  .project-h2-spaced ~ .project-prose,
  .project-h2-spaced ~ .project-prose:hover {
    transition: none;
    transform: none;
  }
}
