:root {
  --bg: #060606;
  --bg-soft: #0f1116;
  --panel: #11141b;
  --panel-2: #171b24;
  --panel-border: #292f3d;
  --text: #f5f7fb;
  --muted: #a8b0bf;
  --line: #1d222d;
  --accent: #f4f6fb;
  --folder: #d8c25f;
  --folder-top: #ead989;
  --folder-tag: #6f98d9;
  --folder-glass: rgba(255, 255, 255, 0.035);
  --folder-outline: rgba(255, 255, 255, 0.34);
  --strip: #3a412f;
  --window-bar: #171b22;
  --window-border: #232833;
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 15px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 22%),
    linear-gradient(180deg, #08090d 0%, #050506 100%);
  background-size: 28px 28px, 28px 28px, auto, auto;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.05), transparent 20%),
    radial-gradient(circle at 82% 10%, rgba(116, 154, 255, 0.08), transparent 18%);
}

body.neural-portfolio-page {
  position: relative;
}

body.neural-portfolio-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at 10% 18%, rgba(96, 165, 250, 0.12), transparent 18%),
    radial-gradient(circle at 88% 16%, rgba(167, 139, 250, 0.1), transparent 16%),
    radial-gradient(circle at 14% 84%, rgba(74, 222, 128, 0.1), transparent 18%),
    radial-gradient(circle at 86% 82%, rgba(96, 165, 250, 0.08), transparent 16%);
}

.page-neural-corners {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.page-neural-corner {
  position: absolute;
  display: block;
  width: 320px;
  height: 320px;
  opacity: 0.88;
  filter: drop-shadow(0 0 24px rgba(96, 165, 250, 0.12));
  background-image:
    linear-gradient(28deg, transparent 49.2%, rgba(96, 165, 250, 0.22) 49.7%, rgba(96, 165, 250, 0.22) 50.3%, transparent 50.8%),
    linear-gradient(62deg, transparent 49.1%, rgba(74, 222, 128, 0.18) 49.7%, rgba(74, 222, 128, 0.18) 50.3%, transparent 50.9%),
    linear-gradient(118deg, transparent 49.15%, rgba(167, 139, 250, 0.18) 49.7%, rgba(167, 139, 250, 0.18) 50.3%, transparent 50.85%),
    linear-gradient(152deg, transparent 49.1%, rgba(96, 165, 250, 0.16) 49.7%, rgba(96, 165, 250, 0.16) 50.3%, transparent 50.9%),
    radial-gradient(circle at 18% 20%, rgba(96, 165, 250, 0.98) 0 3px, rgba(96, 165, 250, 0.22) 4px, transparent 7px),
    radial-gradient(circle at 34% 42%, rgba(74, 222, 128, 0.96) 0 3px, rgba(74, 222, 128, 0.2) 4px, transparent 7px),
    radial-gradient(circle at 54% 28%, rgba(167, 139, 250, 0.96) 0 3px, rgba(167, 139, 250, 0.22) 4px, transparent 7px),
    radial-gradient(circle at 72% 46%, rgba(96, 165, 250, 0.94) 0 2.8px, rgba(96, 165, 250, 0.18) 4px, transparent 7px),
    radial-gradient(circle at 82% 18%, rgba(74, 222, 128, 0.92) 0 2.8px, rgba(74, 222, 128, 0.16) 4px, transparent 7px),
    radial-gradient(circle at 22% 72%, rgba(167, 139, 250, 0.92) 0 2.6px, rgba(167, 139, 250, 0.16) 4px, transparent 7px),
    radial-gradient(circle at 62% 78%, rgba(96, 165, 250, 0.92) 0 2.6px, rgba(96, 165, 250, 0.16) 4px, transparent 7px),
    radial-gradient(circle at 88% 82%, rgba(74, 222, 128, 0.88) 0 2.6px, rgba(74, 222, 128, 0.14) 4px, transparent 7px),
    radial-gradient(circle at 35% 35%, rgba(96, 165, 250, 0.12), transparent 42%),
    radial-gradient(circle at 72% 30%, rgba(167, 139, 250, 0.12), transparent 34%),
    radial-gradient(circle at 46% 76%, rgba(74, 222, 128, 0.12), transparent 36%);
  background-repeat: no-repeat;
}

.page-neural-corner::before {
  content: "";
  position: absolute;
  inset: 16px;
  background-image:
    linear-gradient(12deg, transparent 49.4%, rgba(255, 255, 255, 0.08) 49.8%, rgba(255, 255, 255, 0.08) 50.2%, transparent 50.6%),
    linear-gradient(84deg, transparent 49.4%, rgba(255, 255, 255, 0.06) 49.8%, rgba(255, 255, 255, 0.06) 50.2%, transparent 50.6%);
  opacity: 0.9;
}

.corner-top-left {
  top: 84px;
  left: 24px;
}

.corner-top-right {
  top: 84px;
  right: 24px;
  transform: scaleX(-1);
}

.corner-bottom-left {
  bottom: 48px;
  left: 24px;
  transform: scaleY(-1);
}

.corner-bottom-right {
  right: 24px;
  bottom: 48px;
  transform: scale(-1);
}

.page-neural-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.95;
  z-index: 2;
}

body.neural-portfolio-page > :not(.page-neural-canvas):not(.page-neural-corners) {
  position: relative;
  z-index: 3;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 1.1rem;
  background: rgba(8, 10, 13, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 18px 18px;
  backdrop-filter: blur(14px);
}

.brand {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-size: 0.76rem;
  color: var(--muted);
}

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

.header-cta {
  padding: 0.55rem 0.9rem;
  background: #f4f4f4;
  color: #111;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.section-shell {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
}


.hero {
  min-height: calc(100vh - 90px);
  display: grid;
  align-items: center;
}

.hero-shell {
  max-width: 1180px;
}

.desktop-grid {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.folder-rail {
  position: absolute;
  left: -5.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 1.35rem;
  justify-items: center;
}

.folder-shortcut {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  transition: transform 180ms ease, color 180ms ease, filter 180ms ease;
}

.folder-shortcut:hover {
  transform: translateX(2px);
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.22));
  color: rgba(255, 255, 255, 0.88);
}

.folder-shortcut-button {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.folder-art {
  position: relative;
  width: 60px;
  height: 40px;
}

.folder-cap {
  position: absolute;
  top: 0;
  left: 8px;
  width: 16px;
  height: 8px;
  border: 1px solid var(--folder-outline);
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: rgba(255, 255, 255, 0.02);
}

.folder-base,
.folder-body {
  position: absolute;
  inset: 7px 0 0;
  border: 1px solid var(--folder-outline);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 20px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(6px);
}


.hero-content {
  width: min(760px, 100%);
  text-align: center;
  margin: 0 auto;
  padding: 3.6rem 1rem 2.5rem;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 1rem 0 0;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

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

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  font-weight: 800;
  font-size: 0.76rem;
  transition: transform 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: #f5f5f5;
  color: #0e0e0e;
}

.button-secondary {
  background: var(--panel);
  color: var(--text);
}

.button.wide {
  width: 100%;
}

.tech-strip {
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
  min-height: 92px;
  margin-top: 1.4rem;
  background: rgba(58, 65, 47, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 0;
  border-right: 0;
}

.social-strip {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-tile {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  border: 2px solid var(--window-border);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.social-tile:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12), 0 12px 24px rgba(0, 0, 0, 0.28);
}

.linkedin { background: #3f93d1; }
.github { background: #434a5b; }
.behance { background: #216eda; }
.web { background: #db70af; }
.resume { background: #2ca58d; }

.social-tile svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.section {
  padding: 4.25rem 0;
}

.window-panel {
  border: 2px solid var(--window-border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.window-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.4);
}

.window-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 54px;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, #1d222b, #14181f);
  color: #f0f4e8;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.window-close {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(116, 154, 255, 0.55);
  background:
    linear-gradient(180deg, rgba(116, 154, 255, 0.26), rgba(40, 58, 96, 0.92));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 14px rgba(116, 154, 255, 0.18);
  position: relative;
}

.window-close::before,
.window-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 1.5px;
  border-radius: 999px;
  background: rgba(241, 247, 255, 0.92);
  transform-origin: center;
}

.window-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.window-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.window-content {
  padding: 1.2rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 19, 25, 0.98), rgba(12, 14, 18, 0.98));
  background-size: 18px 18px, 18px 18px, auto;
}

.section-head {
  margin-bottom: 1.3rem;
}

.section-head h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.7rem, 4.3vw, 2.9rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.split-grid,
.works-grid,
.recognition-grid,
.contact-layout,
.stack-grid,
.narrative-layout,
.narrative-stats,
.narrative-stack {
  display: grid;
  gap: 1rem;
}

.split-grid,
.contact-layout {
  grid-template-columns: 1.15fr 0.85fr;
}

.split-grid.narrow-top {
  margin-top: 1rem;
}

.narrative-layout {
  grid-template-columns: 0.84fr 1.56fr;
  align-items: start;
}

.narrative-stack {
  gap: 0.8rem;
}

.stack-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#skills {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 2.4rem 0;
}

#skills .window-bar {
  min-height: 46px;
  padding: 0.55rem 0.85rem;
  font-size: 0.88rem;
}

#skills .window-content {
  padding: 0.95rem;
}

#skills .section-head {
  margin-bottom: 0.9rem;
}

#skills .section-head h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

#skills .eyebrow {
  font-size: 0.56rem;
}

#skills .hero-copy {
  max-width: 780px;
  margin-top: 0.7rem;
}

#skills .stack-grid {
  gap: 0.85rem;
}

.skills-galaxy {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(91, 166, 255, 0.12), transparent 24%),
    radial-gradient(circle at 82% 10%, rgba(169, 136, 255, 0.1), transparent 18%),
    linear-gradient(180deg, rgba(16, 19, 26, 0.98), rgba(10, 12, 18, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 34px rgba(0, 0, 0, 0.22);
}

.skills-galaxy::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.52;
}

.skills-galaxy-topbar,
.skills-galaxy-bottom {
  position: relative;
  z-index: 1;
}

.skills-galaxy-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(20, 25, 34, 0.88), rgba(13, 16, 22, 0.76));
}

.skills-galaxy-brand {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #f4f7fb;
}

.skills-galaxy-tag,
.skills-galaxy-hud,
.skills-galaxy-leg,
.skills-galaxy-tt-cat,
.skills-galaxy-tt-pct {
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.skills-galaxy-tag {
  color: rgba(255, 255, 255, 0.34);
}

.skills-galaxy-pill {
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skills-galaxy-canvas-wrap {
  position: relative;
  z-index: 1;
  padding: 0.35rem 0.85rem 0;
}

#skills-galaxy-canvas {
  display: block;
  width: 100%;
  height: 440px;
  cursor: grab;
}

#skills-galaxy-canvas:active {
  cursor: grabbing;
}

.skills-galaxy-tooltip {
  position: absolute;
  min-width: 172px;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(13, 16, 22, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition: opacity 120ms ease;
  z-index: 4;
}

.skills-galaxy-tt-name {
  margin-bottom: 0.18rem;
  font-size: 0.96rem;
  font-weight: 800;
  color: #ffffff;
}

.skills-galaxy-tt-cat {
  margin-bottom: 0.65rem;
  color: rgba(255, 255, 255, 0.36);
}

.skills-galaxy-tt-track {
  height: 2px;
  margin-bottom: 0.38rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.skills-galaxy-tt-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width 180ms ease;
}

.skills-galaxy-tt-pct {
  color: rgba(255, 255, 255, 0.26);
}

.skills-galaxy-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem 1rem;
  flex-wrap: wrap;
}

.skills-galaxy-legend {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.skills-galaxy-leg {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: rgba(255, 255, 255, 0.24);
}

.skills-galaxy-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.skills-galaxy-dot-lang { background: #60a5fa; }
.skills-galaxy-dot-aiml { background: #a78bfa; }
.skills-galaxy-dot-back { background: #34d399; }
.skills-galaxy-dot-cloud { background: #fb923c; }
.skills-galaxy-dot-front { background: #f472b6; }

.skills-galaxy-hud {
  color: rgba(255, 255, 255, 0.14);
}

.skills-galaxy-overlay[hidden] {
  display: none;
}

.skills-galaxy-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.skills-galaxy-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.72);
  backdrop-filter: blur(10px);
}

.skills-galaxy-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
}

.skills-galaxy-panel {
  max-height: min(82vh, 900px);
  overflow: hidden;
}

.skills-galaxy-overlay .window-content {
  max-height: calc(min(82vh, 900px) - 54px);
  overflow: hidden;
}

.skills-galaxy-close {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(91, 166, 255, 0.3);
  border-radius: 10px;
  background: rgba(37, 60, 97, 0.42);
  color: #e8eef8;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.skills-galaxy-close:hover {
  background: rgba(54, 86, 138, 0.58);
  border-color: rgba(91, 166, 255, 0.52);
  transform: scale(1.03);
}

.works-case-overlay[hidden] {
  display: none;
}

.works-case-overlay {
  position: fixed;
  inset: 0;
  z-index: 31;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.works-case-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.72);
  backdrop-filter: blur(10px);
}

.works-case-shell {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
}

.works-case-panel {
  max-height: min(84vh, 920px);
  overflow: hidden;
}

.works-case-overlay .window-content {
  max-height: calc(min(84vh, 920px) - 54px);
  overflow: auto;
}

.works-case-close {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(74, 222, 128, 0.26);
  border-radius: 10px;
  background: rgba(18, 44, 28, 0.42);
  color: #e8eef8;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.works-case-close:hover {
  background: rgba(22, 65, 39, 0.58);
  border-color: rgba(74, 222, 128, 0.42);
  transform: scale(1.03);
}

.works-case-body {
  display: grid;
  gap: 0.95rem;
}

.works-case-head {
  margin-bottom: 0;
}

.works-case-projects,
.works-case-steps {
  display: grid;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(13, 16, 22, 0.72);
}

.works-case-projects {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.works-case-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.works-case-project,
.works-case-step {
  min-height: 42px;
  padding: 0.68rem 0.75rem;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: rgba(255, 255, 255, 0.44);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.works-case-project:last-child,
.works-case-step:last-child {
  border-right: 0;
}

.works-case-project.active,
.works-case-step.active {
  background: rgba(23, 28, 36, 0.92);
  color: #4ade80;
}

.works-case-panel-body {
  min-height: 280px;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(180deg, rgba(13, 15, 18, 0.98), rgba(10, 12, 16, 0.98));
  background-size: 18px 18px, 18px 18px, auto;
}

.works-case-tag {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.3rem 0.56rem;
  border-radius: 6px;
  border: 1px solid;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.works-case-title {
  margin: 0 0 0.55rem;
  color: #f4f7fb;
  font-size: 1.42rem;
  line-height: 1.1;
}

.works-case-desc {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.68;
}

.works-case-note {
  padding: 0.9rem;
  border-radius: 10px;
  border: 1px solid;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  line-height: 1.6;
}

.works-case-pillrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.6rem;
}

.works-case-pill {
  padding: 0.34rem 0.65rem;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}

.works-case-archrow,
.works-case-metrics {
  display: grid;
  gap: 0.7rem;
}

.works-case-archrow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0.8rem;
}

.works-case-archnode,
.works-case-metric {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(19, 23, 31, 0.88);
}

.works-case-archnode {
  padding: 0.85rem 0.6rem;
  text-align: center;
}

.works-case-archicon {
  margin-bottom: 0.32rem;
  font-size: 1.15rem;
}

.works-case-archlabel,
.works-case-metric-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.works-case-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0.9rem 0;
}

.works-case-metric {
  padding: 0.85rem;
}

.works-case-metric-value {
  margin-top: 0.15rem;
  font-size: 1.45rem;
  font-weight: 800;
}

.works-case-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.works-case-navbtn {
  min-height: 40px;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(23, 28, 36, 0.92);
  color: rgba(255, 255, 255, 0.64);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.works-case-navbtn:hover {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.32);
  transform: translateY(-1px);
}

.works-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

#works {
  padding: 1.8rem 0;
}

#works .window-bar {
  min-height: 40px;
  padding: 0.48rem 0.75rem;
  font-size: 0.82rem;
}

#works .window-content {
  padding: 0.72rem;
}

#works .section-head {
  margin-bottom: 0.65rem;
}

#works .section-head h2 {
  font-size: clamp(1.12rem, 2.8vw, 1.72rem);
}

#works .eyebrow {
  font-size: 0.56rem;
}

#works .works-grid {
  gap: 0.7rem;
}

.recognition-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.stack-card,
.work-card,
.contact-panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.card,
.stack-card,
.contact-panel {
  padding: 1rem;
}

.card,
.stack-card,
.work-card,
.contact-panel,
.field {
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.card:hover,
.stack-card:hover,
.work-card:hover,
.contact-panel:hover,
.field:hover {
  transform: translateY(-3px);
  border-color: #3c4659;
  background: linear-gradient(180deg, #1b2029, #141923);
}

.card h3,
.stack-card h3,
.work-copy h3,
.contact-panel .field strong {
  margin: 0;
}

.card p,
.work-copy p,
.contact-copy p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.58;
}

.feature-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.narrative-about {
  min-height: 100%;
}

.narrative-about .eyebrow {
  margin: 0 0 0.5rem;
}

.narrative-about h3 {
  font-size: 2rem;
  margin-bottom: 0.9rem;
}

.narrative-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.4rem;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.narrative-stats .metric-block {
  margin-top: 0;
}

.narrative-stats .metric-block span {
  display: block;
  margin-bottom: 0.45rem;
}

.narrative-stats .metric-block strong {
  font-size: 1.25rem;
}

.narrative-stats .metric-cgpa {
  color: #48e68c;
}

.narrative-stats .metric-semester {
  color: #62a8ff;
}

.narrative-stats .metric-projects {
  color: #b890ff;
}

.narrative-stats .metric-open-source {
  color: #ff68b6;
}

.narrative-panel {
  position: relative;
  overflow: hidden;
}

.narrative-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.accent-mint::before {
  background: #59f0b3;
}

.accent-blue::before {
  background: #5ba6ff;
}

.accent-violet::before {
  background: #a988ff;
}

.metric-block {
  margin-top: 1rem;
}

.metric-block strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}

.metric-block span,
.card small {
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pill-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.pill-row span {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  color: #dce2ed;
  font-size: 0.68rem;
}

.pill-row .pill-genai,
.pill-row .pill-realtime {
  background: rgba(44, 121, 78, 0.22);
  border-color: rgba(66, 201, 123, 0.24);
  color: #53ef8f;
}

.pill-row .pill-webapps,
.pill-row .pill-mlops {
  background: rgba(37, 62, 104, 0.28);
  border-color: rgba(92, 145, 255, 0.2);
  color: #62a8ff;
}

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

.stack-card li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.88rem;
}

.stack-card li:last-child {
  border-bottom: 0;
}

.stack-card li span {
  color: var(--text);
}

.tech-name {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.tech-logo {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    object-fit: contain;
    display: block;
  }

  .tech-logo-wide {
    width: 34px;
    flex-basis: 34px;
  }

.stack-card li small {
  color: #7a8498;
  text-transform: uppercase;
}

#skills .stack-card {
  padding: 0.9rem;
}

#skills .stack-card h3 {
  font-size: 0.92rem;
}

#skills .stack-card ul {
  margin-top: 0.72rem;
}

#skills .stack-card li {
  padding: 0.48rem 0;
  font-size: 0.78rem;
}

#skills .stack-card li small {
  font-size: 0.64rem;
}

.work-card {
  overflow: hidden;
  max-width: 460px;
  justify-self: center;
}

.work-link {
  display: block;
  color: inherit;
}

.work-visual {
  aspect-ratio: 16 / 5.2;
  border-bottom: 1px solid var(--panel-border);
  background-size: cover;
  background-position: center;
}

.gradient-b {
  background-image: url("../img/token-counter-preview.png");
  background-size: cover;
  background-position: 0% top;
}

.gradient-e {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 6%, transparent 6% 12%),
    #141414;
}

.gradient-f {
  background:
    linear-gradient(180deg, rgba(7, 10, 16, 0.04), rgba(7, 10, 16, 0.26)),
    url("../img/github-repositories-preview.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.work-copy {
  padding: 0.8rem 0.9rem 0.9rem;
}

#works .work-copy {
  padding: 0.52rem 0.62rem 0.62rem;
}

#works .work-copy h3 {
  font-size: 0.86rem;
}

#works .work-copy p {
  font-size: 0.72rem;
  line-height: 1.34;
}

.work-copy small {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.7rem;
}

#works .work-copy small {
  margin-top: 0.28rem;
  font-size: 0.54rem;
}

.works-footer {
  display: flex;
  justify-content: center;
  margin-top: 0.7rem;
}

#works .works-footer .button {
  min-height: 34px;
  padding: 0.55rem 0.95rem;
  font-size: 0.68rem;
}

.more-project-card {
  min-height: 100%;
}

.mini-card {
  min-height: 100%;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(91, 166, 255, 0.06), transparent 30%),
    linear-gradient(180deg, #181d27, #11141b);
}

  .mini-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #45ddff;
}

  .mini-card h3 {
  margin-bottom: 0.7rem;
  color: #45ddff;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mini-card p {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 700;
}

.mini-card small {
  display: block;
  margin-top: 0.55rem;
}

.recognition-grid .mini-card:nth-child(4n + 1)::before {
  background: #5ba6ff;
}

.recognition-grid .mini-card:nth-child(4n + 2)::before {
  background: #59f0b3;
}

.recognition-grid .mini-card:nth-child(4n + 3)::before {
  background: #a988ff;
}

.recognition-grid .mini-card:nth-child(4n + 4)::before {
  background: #ffb35b;
}


.contact-shell {
  padding-bottom: 2rem;
}

#contact {
  min-height: 100vh;
  display: grid;
  align-items: center;
}

.contact-copy {
  padding-right: 1rem;
}

.contact-connect {
  max-width: 980px;
}

.contact-layout-connect {
  align-items: start;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
}

.connect-copy {
  max-width: 980px;
  margin: 0;
  color: #a9b2c4;
  font-size: clamp(0.86rem, 1.7vw, 1.12rem);
  line-height: 1.42;
  letter-spacing: -0.02em;
}

.connect-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.68rem;
  margin-top: 1.2rem;
}

.connect-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(32, 39, 52, 0.95), rgba(24, 29, 39, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 30px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.connect-icon:hover {
  transform: translateY(-3px);
  border-color: rgba(120, 165, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 34px rgba(0, 0, 0, 0.26);
}

.connect-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.connect-side-panel {
  gap: 0.9rem;
  max-width: 620px;
  justify-self: end;
  padding: 1rem;
  margin-top: -4rem;
}

.connect-side-panel .field strong {
  font-size: 0.92rem;
  line-height: 1.45;
}

#contact .field span {
  font-size: 0.68rem;
}

#contact .field {
  padding: 0.95rem;
}

#contact .button.wide {
  min-height: 44px;
  font-size: 0.84rem;
  margin-top: -0.2rem;
}

.connect-icon[aria-label="GitHub"] {
  color: #f5f7fb;
}

.connect-icon[aria-label="LinkedIn"] {
  color: #78a8ff;
}

.connect-icon[aria-label="Kaggle"] {
  color: #59c2ff;
}

.connect-icon[aria-label="Codolio"] {
  color: #f5f7fb;
}

.connect-icon[aria-label="Stack Overflow"] {
  color: #ff9f43;
}

.connect-icon[aria-label="Unstop"] {
  color: #77a4ff;
}

.connect-icon[aria-label="Gmail"] {
  color: #55dc88;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}

.contact-list li {
  padding: 0.58rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #d6deec;
  font-size: 0.9rem;
}

.contact-panel {
  display: grid;
  gap: 0.85rem;
}

.field {
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: var(--bg-soft);
}

.field span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reveal-slide {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@media (max-width: 1100px) {
  .desktop-grid {
    min-height: auto;
    display: grid;
    gap: 2rem;
  }

  .folder-rail {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    gap: 1rem;
  }

  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-grid,
  .contact-layout,
  .works-grid,
  .recognition-grid,
  .narrative-layout {
    grid-template-columns: 1fr;
  }

  .narrative-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skills-galaxy-topbar {
    flex-wrap: wrap;
  }

  .skills-galaxy-overlay {
    padding: 0.9rem;
  }

  .works-case-overlay {
    padding: 0.9rem;
  }

  .works-case-projects,
  .works-case-steps,
  .works-case-archrow,
  .works-case-metrics {
    grid-template-columns: 1fr 1fr;
  }

}

@media (max-width: 760px) {
  .page-neural-corner {
    width: 220px;
    height: 220px;
    opacity: 0.74;
  }

  .corner-top-left,
  .corner-top-right {
    top: 72px;
  }

  .corner-top-left,
  .corner-bottom-left {
    left: 10px;
  }

  .corner-top-right,
  .corner-bottom-right {
    right: 10px;
  }

  .corner-bottom-left,
  .corner-bottom-right {
    bottom: 22px;
  }

  .site-header {
    width: min(100% - 1rem, 1280px);
    padding: 0.9rem;
    border-radius: 0 0 14px 14px;
  }

  .site-nav {
    display: none;
  }

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

  #skills-galaxy-canvas {
    height: 360px;
  }

  .skills-galaxy-topbar,
  .skills-galaxy-bottom {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .skills-galaxy-legend {
    gap: 0.72rem;
  }

  .skills-galaxy-overlay {
    padding: 0.65rem;
  }

  .skills-galaxy-close {
    width: 32px;
    height: 32px;
  }

  .works-case-overlay {
    padding: 0.65rem;
  }

  .works-case-projects,
  .works-case-steps,
  .works-case-archrow,
  .works-case-metrics {
    grid-template-columns: 1fr;
  }

  .works-case-close {
    width: 32px;
    height: 32px;
  }

  .hero {
    min-height: auto;
    padding: 4rem 0 2rem;
  }

  .section {
    padding: 3.2rem 0;
  }

  .social-strip {
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .connect-copy {
    font-size: 1.08rem;
  }

  .connect-icons {
    gap: 0.75rem;
    margin-top: 1.4rem;
  }

  .connect-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
  }

  .connect-icon svg {
    width: 23px;
    height: 23px;
  }

  .social-tile {
    width: 52px;
    height: 52px;
  }

  .window-content {
    padding: 1rem;
  }
}

/* ---- Resume refresh: project images, chips, extra links ---- */
.work-oglodon {
  background-image: url("../img/oglodon-preview.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.work-knowmon {
  background-image: url("../img/knowmon-preview.png");
  background-size: cover;
  background-position: center 18%;
  background-repeat: no-repeat;
}

.work-deox {
  background-image: url("../img/deox-preview.png");
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
}

.work-raktara {
  background-image: url("../img/raktara-preview.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

#works .work-visual {
  aspect-ratio: 16 / 7;
}

.work-copy code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.92em;
  color: #4ade80;
}

.work-extra-links {
  padding: 0 0.6rem 0.75rem;
  display: flex;
  gap: 0.9rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-extra-links a {
  color: #4ade80;
  text-decoration: none;
  border-bottom: 1px solid rgba(74, 222, 128, 0.35);
}

.work-extra-links a:hover {
  color: #86efac;
}

.stack-card ul.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.stack-card li.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.34rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.74rem;
  line-height: 1.2;
}

.stack-card li.skill-chip:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stack-card li.skill-chip .tech-logo {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}

.stack-card li.skill-chip .tech-logo-wide {
  width: 24px;
  flex-basis: 24px;
}


@media (min-width: 1101px) {
  #skills .stack-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  #skills .stack-grid .stack-card {
    grid-column: span 3;
  }

  #skills .stack-grid .stack-card:nth-child(n + 5) {
    grid-column: span 4;
  }
}

/* ---- Chips: beat the generic #skills li padding ---- */
#skills .stack-card li.skill-chip {
  padding: 0.34rem 0.75rem;
  font-size: 0.74rem;
}

.works-case-projects {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mini-card small a {
  color: #4ade80;
  text-decoration: none;
  border-bottom: 1px solid rgba(74, 222, 128, 0.35);
}

/* ---- Neural background canvas (was inline in index.html) ---- */
#neural-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.site-header,
main,
.hero,
.section-shell,
.hero-content,
.social-strip {
  position: relative;
  z-index: 1;
}

.hero > .section-shell {
  position: relative;
  z-index: 1;
}

.window-panel,
.card,
.stack-card,
.work-card,
.contact-panel,
.field {
  position: relative;
  z-index: 2;
}

/* ---- Experience page ---- */
.site-nav a.is-active {
  color: #4ade80;
}

.exp-page {
  padding: 2.4rem 0 3rem;
}

.exp-timeline {
  position: relative;
  display: grid;
  gap: 1.1rem;
  padding-left: 1.6rem;
}

.exp-timeline::before {
  content: "";
  position: absolute;
  left: 0.42rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(180deg, #4ade80, #60a5fa 55%, #a78bfa);
  opacity: 0.55;
}

.exp-item {
  position: relative;
}

.exp-item::before {
  content: "";
  position: absolute;
  left: -1.6rem;
  top: 1.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0b0e14;
  border: 2px solid #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.12);
}

.exp-item.exp-open::before {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.12);
}

.exp-card {
  padding: 1.15rem 1.25rem;
}

.exp-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  align-items: baseline;
}

.exp-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.exp-org {
  margin: 0.25rem 0 0;
  color: #4ade80;
  font-weight: 600;
  font-size: 0.95rem;
}

.exp-meta {
  margin: 0.2rem 0 0;
  color: #7a8498;
  font-size: 0.8rem;
}

.exp-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.08);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  white-space: nowrap;
}

.exp-points {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.exp-points li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.exp-points li::before {
  content: "\25B8";
  position: absolute;
  left: 0;
  color: #4ade80;
}

.exp-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1rem;
}

.exp-metric {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  padding: 0.65rem 0.8rem;
}

.exp-metric span {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a8498;
}

.exp-metric strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.05rem;
  color: #4ade80;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.exp-tags span {
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.72rem;
  color: var(--text);
}

.exp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

@media (max-width: 760px) {
  .exp-metrics {
    grid-template-columns: 1fr;
  }

  .exp-timeline {
    padding-left: 1.3rem;
  }

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

.exp-card .exp-org {
  color: #4ade80;
}

.exp-card .exp-meta {
  color: #7a8498;
}

.exp-page .section-head .hero-copy {
  margin: 0.6rem 0 0;
  max-width: none;
  text-align: left;
}

/* ---- Compact layouts: Projects (4 across) and Experience (2 across) fit one screen ---- */
#works,
#experience {
  min-height: 100vh;
  display: grid;
  align-items: center;
}

@media (min-width: 1101px) {
  #works .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  #works .work-card {
    max-width: 460px;
    justify-self: center;
  }

  #works .work-visual {
    aspect-ratio: 16 / 6;
  }

  #works .work-copy {
    padding: 0.7rem 0.8rem 0.55rem;
  }

  #works .work-copy h3 {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
  }

  #works .work-copy p {
    font-size: 0.72rem;
    line-height: 1.45;
    margin: 0 0 0.5rem;
  }

  #works .work-copy small {
    font-size: 0.6rem;
    line-height: 1.4;
  }

  #works .work-extra-links {
    padding: 0 0.8rem 0.65rem;
    font-size: 0.62rem;
  }

  #experience .exp-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 0;
    gap: 0.9rem;
    align-items: stretch;
  }

  #experience .exp-timeline::before,
  #experience .exp-item::before {
    display: none;
  }

  #experience .exp-item,
  #experience .exp-card {
    height: 100%;
  }

  #experience .exp-card {
    padding: 0.95rem 1rem;
  }

  #experience .exp-card h3 {
    font-size: 1.02rem;
  }

  #experience .exp-points {
    margin-top: 0.7rem;
    gap: 0.45rem;
  }

  #experience .exp-points li {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  #experience .exp-metrics {
    margin-top: 0.8rem;
  }

  #experience .exp-metric {
    padding: 0.5rem 0.65rem;
  }

  #experience .exp-metric strong {
    font-size: 0.95rem;
  }

  #experience .exp-tags {
    margin-top: 0.8rem;
  }
}
