/* Pavan Varma Pothuri - portfolio styles (job-focused edition) */

/* ---------- Tokens ---------- */
:root {
  --bg: #0D0E13;
  --bg-2: #15161F;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.065);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #ECEDF3;
  --muted: #9AA1B1;
  --faint: #5E6474;

  --accent: #A9A4FF;
  --accent-2: #C8AEF5;
  --accent-3: #9A93C4;
  --accent-ink: #0D0E13;

  --grad: linear-gradient(120deg, #A9A4FF, #C8AEF5);
  --glow-a: rgba(169, 164, 255, 0.18);
  --glow-b: rgba(200, 174, 245, 0.14);

  --radius: 10px;
  --radius-sm: 6px;
  --maxw: 1420px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: 'Exo', system-ui, -apple-system, sans-serif;
  --display: 'Exo', var(--font);
  --serif: 'Exo', var(--font);
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
}

[data-theme="light"] {
  --bg: #F8F6FD;
  --bg-2: #E7E0F6;
  --surface: rgba(46, 40, 66, 0.04);
  --surface-2: rgba(46, 40, 66, 0.08);
  --line: rgba(46, 40, 66, 0.12);
  --line-2: rgba(46, 40, 66, 0.20);
  --text: #2E2A3A;
  --muted: #5E5876;
  --faint: #9A93B5;
  --accent: #5A3FB0;
  --accent-2: #7A3CAD;
  --accent-3: #6E5FA8;
  --accent-ink: #FFFFFF;
  --grad: linear-gradient(120deg, #4B3FC4, #7A3CAD);
  --glow-a: rgba(90, 63, 176, 0.18);
  --glow-b: rgba(122, 60, 173, 0.16);
  --shadow: 0 30px 70px -34px rgba(46, 40, 66, .20);
}

[data-theme="light"] .hero {
  --accent: #A9A4FF;
  --accent-2: #C8AEF5;
  --accent-3: #E3D9FF;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  transition: background .5s var(--ease), color .5s var(--ease);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

a,
button,
[data-cursor] {
  -webkit-tap-highlight-color: transparent;
}

@media (pointer: coarse) {
  body {
    -webkit-tap-highlight-color: transparent;
  }
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 1002;
  background: var(--grad);
  box-shadow: 0 0 14px var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .2px;
  transition: background .25s, color .25s, border-color .25s, transform .2s, box-shadow .25s;
}

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

.btn:active {
  transform: translateY(0);
}

.btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn--solid {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 4px 20px -4px var(--glow-a);
}

.btn--solid:hover {
  background: color-mix(in srgb, var(--accent) 82%, var(--text));
  box-shadow: 0 8px 28px -4px var(--glow-a);
}

.btn--ghost {
  color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
}

.btn--ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.btn--download {
  position: relative;
  overflow: hidden;
}

.btn--download::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .18) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform .55s;
}

.btn--download:hover::after {
  transform: translateX(100%);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(24px, 5vw, 64px);
  min-height: 88px;
  transition: padding .4s var(--ease), background .4s, backdrop-filter .4s, border-color .4s, min-height .4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  padding: 18px clamp(24px, 5vw, 64px);
  min-height: 74px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45);
}

@media (min-width: 901px) {
  .nav:not(.scrolled) .nav__links a {
    color: rgba(236, 237, 243, .85);
  }

  .nav:not(.scrolled) .nav__links a:hover,
  .nav:not(.scrolled) .nav__links a.active {
    color: #fff;
  }

  .nav:not(.scrolled) .nav__brand-text {
    color: #ECEDF3;
  }

  .nav:not(.scrolled) .theme-toggle,
  .nav:not(.scrolled) .nav__resume {
    color: #ECEDF3;
    border-color: rgba(255, 255, 255, .32);
  }
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  transition: transform .25s var(--ease), opacity .25s;
}

.nav__brand:hover {
  transform: translateY(-1px);
}

.nav__brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .5px;
  flex-shrink: 0;
}

.nav__brand-text {
  font-size: calc(1.24rem + 3.5pt);
  letter-spacing: .35px;
  font-weight: 700;
  color: var(--text);
  transition: color .25s;
}

.nav__brand:hover .nav__brand-text {
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

.nav__links a {
  position: relative;
  font-size: calc(1.02rem + 2pt);
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .15px;
  padding: 6px 2px;
  transition: color .25s, transform .2s;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2.5px;
  width: 0;
  background: var(--grad);
  border-radius: 2px;
  transition: width .3s var(--ease);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text);
}

.nav__links a.active::after,
.nav__links a:hover::after {
  width: 100%;
}

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

.nav__resume {
  padding: 12px 24px !important;
  font-size: calc(0.98rem + 2pt) !important;
  letter-spacing: .3px;
  border-radius: 8px !important;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--text);
  transition: border-color .3s, transform .3s, color .3s, background .3s;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(18deg);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.theme-toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  width: 20px;
  height: 20px;
  stroke-linecap: round;
}

.theme-toggle__moon {
  display: none;
}

[data-theme="light"] .theme-toggle__sun {
  display: none;
}

[data-theme="light"] .theme-toggle__moon {
  display: block;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  transition: border-color .3s, background .3s;
}

.nav__burger:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

body.nav-open {
  overflow: hidden;
}

.nav__burger span {
  width: 22px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.nav.open .nav__burger span:first-child {
  transform: translateY(4.2px) rotate(45deg);
}

.nav.open .nav__burger span:last-child {
  transform: translateY(-4.2px) rotate(-45deg);
}

/* ---------- Layout ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(50px, 8vh, 96px) clamp(16px, 4vw, 32px);
  position: relative;
  z-index: 2;
}

.section__head {
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section__index {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--accent);
  letter-spacing: 2px;
}

.section__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  line-height: 1.06;
  margin-top: 8px;
  letter-spacing: -.5px;
}

.section__sub {
  color: var(--muted);
  margin-top: 12px;
  max-width: 600px;
  font-size: 1.01rem;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  --bg: #0D0E13;
  --bg-2: #15161F;
  --text: #ECEDF3;
  --muted: #B7BCC9;
  --faint: #8E94A4;
  --accent: #A9A4FF;
  --accent-2: #C8AEF5;
  --accent-3: #9A93C4;
  --accent-ink: #0D0E13;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --grad: linear-gradient(120deg, #A9A4FF, #C8AEF5);
  --glow-a: rgba(169, 164, 255, 0.18);
  --glow-b: rgba(200, 174, 245, 0.13);
  color: var(--text);
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px clamp(16px, 4vw, 48px) 80px;
  overflow: hidden;
  background: var(--bg-2);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: .9;
}

.hero__inner {
  position: relative;
  z-index: 4;
  max-width: 960px;
}

.hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg-2);
}

.hero__photo picture,
.about__photo-box picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  transform: scale(1.06);
  transform-origin: 62% 50%;
  filter: brightness(.55) contrast(1.12) saturate(.82);
  animation: kenburns 28s var(--ease) infinite alternate;
  will-change: transform;
  pointer-events: none;
  user-select: none;
}

.hero__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 80%, transparent) 0%, transparent 26%, transparent 60%, color-mix(in srgb, var(--bg) 82%, transparent) 100%),
    radial-gradient(120% 90% at 58% 44%, transparent 28%, color-mix(in srgb, var(--bg) 50%, transparent) 60%, color-mix(in srgb, var(--bg) 90%, transparent) 88%, var(--bg) 118%);
}

@keyframes kenburns {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.15) translate3d(-1.6%, -1.4%, 0);
  }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 90%, transparent) 26%, color-mix(in srgb, var(--bg) 36%, transparent) 54%, transparent 74%),
    linear-gradient(0deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 58%, transparent) 14%, transparent 46%),
    radial-gradient(130% 120% at 72% 38%, transparent 42%, color-mix(in srgb, var(--bg) 62%, transparent) 100%);
}

.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: soft-light;
  background:
    radial-gradient(58% 68% at 60% 46%, rgba(255, 255, 255, .28), transparent 62%),
    linear-gradient(125deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%);
}

/* Open to Work badge */
.otw-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: .73rem;
  color: #4ade80;
  margin-bottom: 22px;
  letter-spacing: .3px;
}

.otw-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex: none;
  animation: pulse 2s infinite;
}

/* Typing animation */
.hero__role-line {
  font-size: clamp(1.05rem, 2.4vw, 1.55rem);
  font-family: var(--mono);
  color: var(--muted);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.type-label {
  opacity: .7;
}

.type-text {
  color: var(--accent);
  font-weight: 600;
}

.type-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  margin-left: 2px;
  animation: blink .7s steps(1) infinite;
  vertical-align: middle;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

/* Floating tech elements */
.hero__floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

.hero__float {
  position: absolute;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  opacity: 0;
  animation: floatDrift var(--dur, 7s) ease-in-out var(--delay, 0s) infinite;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 45%, transparent));
  user-select: none;
}

.hero__float--drone {
  font-size: clamp(2.1rem, 3.3vw, 3rem);
}

@keyframes floatDrift {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(.8) rotate(0deg);
  }

  15% {
    opacity: .6;
  }

  50% {
    transform: translateY(-20px) scale(1.08) rotate(6deg);
    opacity: .55;
  }

  85% {
    opacity: .45;
  }

  100% {
    opacity: 0;
    transform: translateY(-40px) scale(.85) rotate(-4deg);
  }
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: .8rem;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: .3px;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2s infinite;
  flex: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--glow-a)
  }

  70% {
    box-shadow: 0 0 0 10px transparent
  }

  100% {
    box-shadow: 0 0 0 0 transparent
  }
}

.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -1.5px;
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  line-height: 1.04;
  margin-bottom: 18px;
}

.hero__title .line {
  display: block;
  overflow: hidden;
  padding-block: 0.1em;
  margin-block: -0.06em;
}

.hero__title .word {
  display: inline-block;
  transform: translateY(120%);
}

.hero__title.in .word {
  transform: translateY(0);
  transition: transform 1s var(--ease);
}

.hero__title.in .line:nth-child(2) .word {
  transition-delay: .08s;
}

.hero__lede {
  max-width: 680px;
  font-size: clamp(1rem, 2vw, 1.16rem);
  color: var(--muted);
  margin-bottom: 32px;
  transition-delay: .15s;
  line-height: 1.72;
}

.hero__lede strong {
  color: var(--text);
}

.hero__lede em {
  font-style: normal;
  color: var(--accent);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  transition-delay: .22s;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: .83rem;
  color: var(--faint);
  transition-delay: .35s;
}

.hero__meta a {
  color: var(--muted);
  transition: color .25s;
}

.hero__meta a:hover {
  color: var(--accent);
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: 2px;
  color: var(--faint);
  text-transform: uppercase;
  z-index: 4;
}

.hero__scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrolldn 2s var(--ease) infinite;
  transform-origin: top;
}

@keyframes scrolldn {
  0% {
    transform: scaleY(0);
    opacity: 0
  }

  40% {
    opacity: 1
  }

  100% {
    transform: scaleY(1);
    opacity: 0
  }
}

.hero__tag {
  position: absolute;
  z-index: 3;
  top: clamp(86px, 13vh, 130px);
  right: clamp(16px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  pointer-events: none;
  opacity: .92;
  animation: tagbob 5.5s ease-in-out infinite;
}

.hero__tag-text {
  font-family: var(--mono);
  font-size: clamp(.6rem, 1.25vw, .76rem);
  letter-spacing: .4px;
  line-height: 1.55;
  text-align: right;
  color: #ECE6FF;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .6), 0 0 3px rgba(0, 0, 0, .5);
}

.hero__tag-text em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}

.hero__tag-arrow {
  width: clamp(170px, 26vw, 400px);
  height: auto;
  margin-top: 2px;
  margin-right: 6px;
  color: var(--accent);
  mix-blend-mode: screen;
  opacity: .7;
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--accent) 65%, transparent));
}

.hero__tag-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__tag-curve {
  stroke-dasharray: 820;
  stroke-dashoffset: 820;
  animation: tagdraw 1.7s var(--ease) .6s forwards;
}

.hero__tag-head {
  opacity: 0;
  animation: taghead .45s var(--ease) 1.75s forwards;
}

@keyframes tagdraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes taghead {
  to {
    opacity: 1;
  }
}

@keyframes tagbob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 720px) {
  .hero__tag {
    display: none;
  }
}

.hero__hint {
  position: absolute;
  right: clamp(8px, 1.6vw, 20px);
  bottom: clamp(8px, 1.4vw, 16px);
  z-index: 4;
  margin: 0;
  max-width: 60vw;
  text-align: right;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .02em;
  color: var(--muted);
  opacity: .16;
  pointer-events: none;
  user-select: none;
  animation: hint-pulse 4.5s ease-in-out infinite;
}

@keyframes hint-pulse {

  0%,
  100% {
    opacity: .1;
  }

  50% {
    opacity: .2;
  }
}

@media (max-width: 720px) {
  .hero__hint {
    display: none;
  }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about__grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: stretch;
}

.about__media {
  position: relative;
  height: 100%;
  align-self: stretch;
}

.about__photo {
  position: relative;
  height: 100%;
  min-height: 440px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.about__badge {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(6px);
}

.about__badge-k {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--accent);
}

.about__badge-v {
  font-size: .76rem;
  color: var(--muted);
  line-height: 1.35;
}

.about__signature {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -.5px;
  line-height: 1.1;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  margin-bottom: 8px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about__sub {
  font-size: .95rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 22px;
  letter-spacing: .2px;
  line-height: 1.5;
}

.about__body p {
  color: #C8CDDB;
  margin-bottom: 18px;
  font-size: 1.03rem;
  line-height: 1.74;
}

[data-theme="light"] .about__body p {
  color: #383446;
}

.about__body strong {
  color: var(--text);
  font-weight: 600;
}

.about__body a {
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color .25s;
  white-space: nowrap;
}

.about__body a:hover {
  color: var(--accent);
}

/* Stat cards: 2x3 Grid */
.about {
  padding-bottom: clamp(32px, 4vh, 52px);
}

.about__stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 0;
}

.about__stat-card {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
  cursor: default;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about__stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px -12px var(--glow-a);
}

.about__stat-card .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  line-height: 1.1;
}

.about__stat-card .lbl {
  font-size: .76rem;
  color: var(--muted);
  margin-top: 6px;
  display: block;
  font-family: var(--mono);
  line-height: 1.35;
}

/* Award highlight */
.about__body a.about__honor {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 12px 0 4px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: #C79A3C;
  line-height: 1.55;
  font-size: .95rem;
  white-space: normal;
  transition: color .25s;
}

[data-theme="light"] .about__body a.about__honor {
  color: #9A7320;
}

.about__body a.about__honor:hover {
  color: var(--accent);
}

.about__honor svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about__honor strong {
  color: inherit;
  font-weight: 700;
}

.about__honor-verify {
  font-family: var(--mono);
  font-size: .8em;
  color: inherit;
  opacity: .8;
}

/* =========================================================
   PROFESSIONAL EXPERIENCE CARDS
   ========================================================= */
.exp-cards {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.exp-card {
  padding: clamp(24px, 3.5vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s;
}

.exp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .3s;
}

.exp-card:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
  box-shadow: 0 18px 48px -20px var(--glow-a);
}

.exp-card:hover::before {
  opacity: 1;
}

.exp-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
}

.exp-card__info {
  flex: 1;
}

.exp-card__role {
  font-family: var(--display);
  font-size: clamp(1.22rem, 2vw, 1.45rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -.2px;
}

.exp-card__company {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .2px;
}

.exp-card__meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}

.exp-card__badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
}

.exp-card__badge--industry {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

.exp-card__badge--research {
  color: var(--accent-2);
  background: color-mix(in srgb, var(--accent-2) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-2) 35%, transparent);
}

.exp-card__dates {
  font-family: var(--mono);
  font-size: .84rem;
  color: var(--muted);
  font-weight: 500;
}

.exp-card__loc {
  font-size: .8rem;
  color: var(--faint);
}

.exp-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 22px;
}

.exp-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exp-block__label {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
}

.exp-block__text {
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.68;
}

.exp-block--impact {
  border-left: 2px solid var(--accent);
  padding-left: 14px;
  margin: 4px 0;
}

.exp-block--impact .exp-block__text {
  color: var(--text);
  font-weight: 500;
}

.exp-card__divider {
  border: none;
  border-top: 1px dashed var(--line-2);
  margin: 0 0 18px;
}

.exp-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.exp-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: .76rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color .2s, border-color .2s, background .2s;
}

.exp-tag:hover {
  color: var(--text);
  border-color: var(--line-2);
}

@media (max-width: 768px) {
  .exp-card__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .exp-card__meta {
    text-align: left;
    align-items: flex-start;
  }
}

/* =========================================================
   EXPERTISE / RESEARCH CARDS
   ========================================================= */
.research__intro {
  max-width: 760px;
  margin: -14px 0 clamp(32px, 5vw, 54px);
}

.research__intro p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

.research__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.rcard {
  padding: 26px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s;
  position: relative;
  overflow: hidden;
}

.rcard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .3s;
}

.rcard:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 14px 44px -16px var(--glow-a);
}

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

.rcard__icon {
  margin-bottom: 16px;
  color: var(--accent);
}

.rcard__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rcard__icon svg .dash {
  stroke-dasharray: 4 4;
  opacity: .6;
}

.rcard h3 {
  font-family: var(--display);
  font-size: 1.14rem;
  margin-bottom: 10px;
  letter-spacing: -.2px;
}

.rcard p {
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.65;
}

/* =========================================================
   PROJECT CARDS
   ========================================================= */
.proj-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.proj-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s;
  position: relative;
  overflow: hidden;
}

.proj-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .3s;
}

.proj-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 18px 52px -16px var(--glow-a);
}

.proj-card:hover::before {
  opacity: 1;
}

.proj-card__icon {
  font-size: 2.1rem;
  margin-bottom: 14px;
  line-height: 1;
}

.proj-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.proj-card__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -.2px;
  line-height: 1.3;
}

.proj-card__award {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .65rem;
  font-family: var(--mono);
  color: #C79A3C;
  border: 1px solid rgba(199, 154, 60, .28);
  padding: 3px 8px;
  border-radius: 100px;
  white-space: nowrap;
  flex: none;
  margin-top: 2px;
}

[data-theme="light"] .proj-card__award {
  color: #9A7320;
  border-color: rgba(154, 115, 32, .25);
}

.proj-card__desc {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}

.proj-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.proj-card__tag {
  font-family: var(--mono);
  font-size: .67rem;
  padding: 3px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--accent);
}

.proj-card__links {
  display: flex;
  gap: 14px;
  margin-top: auto;
}

.proj-card__links a {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--accent);
  transition: color .25s, transform .25s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.proj-card__links a:hover {
  color: var(--text);
  transform: translateX(3px);
}

.proj-card__links a svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   PUBLICATIONS / RESEARCH PAPERS
   ========================================================= */
.pub-list {
  display: grid;
  gap: 4px;
}

.pub {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 22px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.pub:last-child {
  border-bottom: 1px solid var(--line);
}

.pub__year {
  font-family: var(--mono);
  color: var(--accent);
  font-size: .92rem;
  padding-top: 4px;
}

.pub__main h3 {
  font-family: var(--display);
  font-size: 1.16rem;
  line-height: 1.3;
  letter-spacing: -.3px;
  margin-bottom: 7px;
}

.pub__authors {
  font-size: .81rem;
  color: var(--muted);
  margin-bottom: 7px;
  line-height: 1.5;
}

.pub__authors b {
  color: var(--text);
  font-weight: 600;
}

.pub__venue {
  color: var(--text);
  font-size: .88rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.pub__abs {
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 14px;
  max-width: 70ch;
  line-height: 1.65;
}

.pub__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.pub__tags span {
  font-size: .72rem;
  color: var(--faint);
  font-family: var(--mono);
}

.pub__tags span::before {
  content: "# ";
  color: var(--accent);
  opacity: .7;
}

.pub__links a {
  font-family: var(--mono);
  font-size: .84rem;
  color: var(--accent);
  white-space: nowrap;
  transition: transform .25s;
  display: inline-block;
}

.pub__links a:hover {
  transform: translateX(4px);
}

.pub__award {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 2px 0 12px;
  max-width: fit-content;
  font-family: var(--mono);
  font-size: .76rem;
  line-height: 1.4;
  letter-spacing: .02em;
  color: #C79A3C;
  transition: color .25s;
}

[data-theme="light"] .pub__award {
  color: #9A7320;
}

.pub__award:hover {
  color: var(--accent);
}

.pub__award svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pub__award strong {
  color: inherit;
  font-weight: 700;
}

.pub__award-ext {
  color: inherit;
  opacity: .8;
  font-size: .9em;
}

.pub__video {
  position: relative;
  margin-top: 16px;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-2);
}

.pub__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.pub__demos {
  margin-top: 16px;
}

.pub__demos-label {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 820px;
}

.demo {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-2);
}

.demo img,
.demo video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #000;
}

.demo figcaption {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--text);
  line-height: 1.3;
  padding: 8px 2px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.demo__env {
  font-size: .61rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

.demo__env--real {
  color: var(--accent-3);
}

.pub__demos-note {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.7;
  margin-top: 12px;
  max-width: 74ch;
}

/* Thesis block */
.thesis {
  position: relative;
  margin-bottom: clamp(30px, 4vw, 48px);
  padding: 24px 24px 24px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .3s, box-shadow .3s;
}

.thesis:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: 0 10px 36px -16px var(--glow-a);
}

.thesis::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--grad);
  border-radius: var(--radius) 0 0 var(--radius);
}

.thesis__badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: .71rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.thesis__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  line-height: 1.25;
  letter-spacing: -.3px;
}

.thesis__meta {
  margin-top: 8px;
  font-size: .88rem;
  color: var(--accent);
  font-weight: 500;
}

.thesis__abs {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 80ch;
  font-size: .95rem;
}

.thesis__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 14px;
}

.thesis__tags span {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--faint);
}

.thesis__tags span::before {
  content: "# ";
  color: var(--accent);
  opacity: .7;
}

.thesis__link {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent);
  font-weight: 600;
  font-family: var(--mono);
  font-size: .88rem;
}

.thesis__link:hover {
  text-decoration: underline;
}

.pub-list__label {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.pub-note {
  margin-top: clamp(22px, 3.5vw, 38px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.7;
  max-width: 760px;
}

.pub-note a {
  color: var(--accent);
  font-weight: 600;
}

/* =========================================================
   FEATURED PROJECT (full-width)
   ========================================================= */
.project-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 4.5vw, 60px);
  align-items: center;
  padding: clamp(20px, 3vw, 34px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-feature__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-2);
}

.project-feature__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(13, 14, 19, .58));
  pointer-events: none;
}

.project-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

.project-feature:hover .project-feature__media img {
  transform: scale(1.025);
}

.project-feature__status {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 1;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .7);
}

.project-feature__kicker {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.project-feature__body h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.2;
  letter-spacing: -.4px;
}

.project-feature__body h3 a {
  transition: color .25s;
}

.project-feature__body h3 a:hover {
  color: var(--accent);
}

.project-feature__team {
  margin-top: 10px;
  color: var(--accent);
  font-size: .84rem;
  font-weight: 500;
}

.project-feature__summary {
  margin-top: 16px;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.72;
}

.project-feature__highlights {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.project-feature__highlights li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}

.project-feature__highlights li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: .65em;
  width: 6px;
  height: 6px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
}

.project-feature__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 18px;
}

.project-feature__tags span {
  font-family: var(--mono);
  font-size: .71rem;
  color: var(--faint);
}

.project-feature__tags span::before {
  content: "# ";
  color: var(--accent);
  opacity: .7;
}

.project-feature__link {
  margin-top: 22px;
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery__feature {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(18px, 3vw, 38px);
  align-items: center;
  margin-bottom: 24px;
}

.gallery__video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-2);
}

.gallery__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.gallery__kicker {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.gallery__cap h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.2;
  margin: 10px 0 12px;
  letter-spacing: -.3px;
}

.gallery__cap p {
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.7;
  margin-bottom: 10px;
}

.gallery__tags {
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--faint);
  letter-spacing: .02em;
}

/* =========================================================
   TIMELINE
   ========================================================= */
.timeline {
  position: relative;
  padding-left: 28px;
  max-width: 940px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--accent), transparent);
}

.tl-item {
  position: relative;
  padding: 0 0 40px 34px;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
  transition: transform .3s;
}

.tl-item:hover .tl-dot {
  transform: scale(1.3);
}

.tl-time {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--accent);
  margin-bottom: 6px;
}

.tl-body h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -.3px;
}

.tl-org {
  color: var(--text);
  font-weight: 500;
  font-size: .9rem;
  display: block;
  margin: 4px 0 9px;
}

.tl-body p {
  color: var(--muted);
  font-size: .93rem;
  max-width: 68ch;
  line-height: 1.65;
}

/* =========================================================
   TECHNICAL ARSENAL — Domain Cards
   ========================================================= */

/* ── Grid: 5-card 2-row layout (Row 1: 3 cards, Row 2: 2 cards) ── */
.arsenal__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

/* Row 1 — 3 equal cards (each spans 2 of 6 columns) */
#arsenal-uav,
#arsenal-control,
#arsenal-fab {
  grid-column: span 2;
}

/* Row 2 — 2 equal cards (each spans 3 of 6 columns) */
#arsenal-cv,
#arsenal-embedded {
  grid-column: span 3;
}


/* ── Base card ── */
.arsenal__card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s;
}

/* Gradient top-bar on hover */
.arsenal__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .3s var(--ease);
}

.arsenal__card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transform: translateY(-3px);
  box-shadow: 0 16px 44px -16px var(--glow-a);
}

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

/* ── Hero card (01 — UAV) ── */
.arsenal__card--hero {
  background: color-mix(in srgb, var(--surface) 100%, var(--accent) 0%);
  border-color: color-mix(in srgb, var(--accent) 20%, var(--line));
  padding: 26px 26px 24px;
}

/* Subtle radial glow behind hero card */
.arsenal__card--hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 60% at 15% 25%, var(--glow-a), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.arsenal__card--hero>* {
  position: relative;
  z-index: 1;
}

/* ── Primary cards (02 & 03) ── */
.arsenal__card--primary {
  padding: 26px 26px 24px;
}

/* ── Fabrication card (03) — subtle engineering texture ── */
.arsenal__card--fabrication {
  background: color-mix(in srgb, var(--surface) 100%, transparent);
}

.arsenal__card--fabrication::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Subtle grid/blueprint texture */
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent) 4%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 4%, transparent) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.arsenal__card--fabrication>* {
  position: relative;
  z-index: 1;
}

/* ── Software card (06) — slightly de-emphasised ── */
.arsenal__card--software {
  background: var(--surface);
  opacity: 1;
  /* visually equal but smaller tags convey scale */
}

/* ── Card header ── */
.arsenal__card-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arsenal__card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.arsenal__card-idx {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--accent);
  letter-spacing: .2em;
  opacity: .75;
}

.arsenal__card-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(.95rem, 1.5vw, 1.2rem);
  letter-spacing: -.2px;
  line-height: 1.2;
  color: var(--text);
}

.arsenal__card-desc {
  font-size: .87rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 72ch;
}

/* ── Core Domain badge ── */
.arsenal__badge--core {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding: 2px 9px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  white-space: nowrap;
}

/* ── In-card fabrication flow ── */
.arsenal__card-flow {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
}

.arsenal__card-flow span {
  white-space: nowrap;
}

.arsenal__flow-arrow {
  color: var(--accent);
  opacity: .5;
  font-size: .8rem;
}

/* ── Card body ── */
.arsenal__card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

/* ── Tech tags ── */
.arsenal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.arsenal__tag {
  position: relative;
  font-family: var(--mono);
  font-size: .74rem;
  padding: 4px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  color: var(--muted);
  cursor: default;
  transition: border-color .2s var(--ease), color .2s, background .2s, transform .2s var(--ease);
  letter-spacing: .01em;
}

.arsenal__tag:hover {
  border-color: var(--accent);
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-2));
  transform: translateY(-2px);
}

/* Tooltip */
.arsenal__tag[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: .68rem;
  color: var(--muted);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  z-index: 50;
  letter-spacing: .01em;
  box-shadow: 0 6px 20px -4px rgba(0, 0, 0, .45);
  /* Clamp to viewport edges */
  max-width: min(220px, 80vw);
  white-space: normal;
  text-align: center;
}

.arsenal__tag[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Concept tags ── */
.arsenal__concepts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.arsenal__concept {
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .07em;
  color: var(--faint);
  padding: 2px 0;
}

.arsenal__concept::before {
  content: '/ ';
  color: var(--accent);
  opacity: .45;
}

/* ── Engineering Stack Flow Strip ── */
.arsenal__stack-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 40px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.arsenal__stack-flow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--glow-a), transparent 30%, transparent 70%, var(--glow-b));
  opacity: .5;
  pointer-events: none;
}

.arsenal__stack-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 16px;
  position: relative;
  z-index: 1;
}

.arsenal__stack-label {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color .25s;
}

.arsenal__stack-item:hover .arsenal__stack-label {
  color: var(--accent);
}

.arsenal__stack-arrow {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--accent);
  opacity: .4;
  padding: 0 2px;
  position: relative;
  z-index: 1;
  flex: none;
}

.arsenal__stack-arrow::before {
  content: '→';
}

.arsenal__stack-caption {
  text-align: center;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--faint);
  letter-spacing: .06em;
  margin-top: 10px;
}

/* ── Bottom tech strip ── */
.arsenal__tech-strip {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.arsenal__tech-strip-label {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.arsenal__tech-strip-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Tech pill badges — shared styles (also used elsewhere) */
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.tech-pill {
  font-family: var(--mono);
  font-size: .74rem;
  padding: 4px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  transition: border-color .25s, color .25s, transform .25s, background .25s;
  cursor: default;
}

.tech-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* ── Responsive ── */

/* Tablet (≤1024px): 2-col grid */
@media (max-width: 1024px) {
  .arsenal__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  #arsenal-uav {
    grid-column: 1 / -1;
  }

  #arsenal-control,
  #arsenal-fab,
  #arsenal-cv,
  #arsenal-embedded {
    grid-column: span 1;
  }
}

/* Mobile (≤640px): single column — everything stacks */
@media (max-width: 640px) {
  .arsenal__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #arsenal-uav,
  #arsenal-control,
  #arsenal-fab,
  #arsenal-cv,
  #arsenal-embedded {
    grid-column: 1;
  }

  .arsenal__stack-flow {
    gap: 4px;
    padding: 16px 12px;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .arsenal__stack-item {
    padding: 4px 10px;
  }

  .arsenal__stack-label {
    font-size: .65rem;
  }
}

@media (max-width: 420px) {
  .arsenal__tech-strip-label {
    font-size: .62rem;
  }

  .arsenal__tag {
    font-size: .7rem;
    padding: 3px 9px;
  }

  .tech-pills {
    gap: 6px;
  }
}




/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 65%, var(--glow-a), transparent 70%);
  z-index: 0;
}

.contact__inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(36px, 5vw, 68px);
  align-items: start;
}

.contact__info {
  text-align: left;
}

.contact .section__index {
  display: block;
  margin-bottom: 16px;
}

.contact__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -.8px;
}

.contact__title-em {
  color: var(--accent);
  font-style: italic;
}

.contact__sub {
  color: var(--muted);
  margin: 20px 0 28px;
  max-width: 520px;
  font-size: 1.04rem;
  line-height: 1.7;
}

.contact__email {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  font-weight: 600;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  margin-bottom: 32px;
}

.contact__email::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--grad);
  transition: width .4s var(--ease);
}

.contact__email:hover::after {
  width: 100%;
}

.contact__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

.contact__note {
  color: var(--muted);
  margin: 32px 0 0;
  max-width: 500px;
  font-size: .94rem;
  line-height: 1.6;
  text-align: left;
}

.contact__note a {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}

.contact__note a:hover {
  border-bottom-color: var(--accent);
}

/* ---------- Footer ---------- */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px clamp(16px, 4vw, 32px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .84rem;
  position: relative;
  z-index: 2;
}

.footer__top {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--muted);
  transition: color .25s;
}

.footer__top:hover {
  color: var(--accent);
}

/* =========================================================
   RAIL
   ========================================================= */
.rail {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 850;
  display: flex;
  flex-direction: column;
  gap: 16px;
  --flown: 0px;
}

.rail::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 5px;
  bottom: 5px;
  transform: translateX(-50%);
  border-left: 1.5px dashed var(--line-2);
  opacity: .7;
}

.rail::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 5px;
  width: 2px;
  height: var(--flown);
  transform: translateX(-50%);
  background: var(--grad);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent);
  transition: height .45s var(--ease);
}

.rail a {
  position: relative;
  display: block;
  z-index: 1;
}

.rail a span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.6px solid var(--line-2);
  transition: all .35s var(--ease);
}

.rail a:hover span {
  border-color: var(--accent);
  transform: scale(1.25);
}

.rail a.visited span {
  background: var(--accent-3);
  border-color: var(--accent-3);
}

.rail a.is-active span {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.15);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 26%, transparent);
  animation: lockon 2.6s var(--ease) infinite;
}

@keyframes lockon {

  0%,
  100% {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 26%, transparent);
  }

  50% {
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 8%, transparent);
  }
}

.rail a::after {
  content: attr(data-label);
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--text);
  white-space: nowrap;
  padding: 4px 9px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
}

.rail a:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Drone canvas */
.drone-canvas {
  z-index: 2;
  opacity: .62;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@supports (padding: max(0px)) {

  .nav,
  .nav.scrolled {
    padding-left: max(clamp(16px, 4vw, 48px), env(safe-area-inset-left));
    padding-right: max(clamp(16px, 4vw, 48px), env(safe-area-inset-right));
  }

  .footer {
    padding-left: max(clamp(16px, 4vw, 32px), env(safe-area-inset-left));
    padding-right: max(clamp(16px, 4vw, 32px), env(safe-area-inset-right));
  }

  .rail {
    right: max(22px, env(safe-area-inset-right));
  }
}

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

@media (max-width: 1024px) {
  .nav__links {
    gap: 20px;
  }

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

  .proj-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .pub {
    grid-template-columns: 70px 1fr;
    gap: 8px 18px;
  }

  .pub__links {
    grid-column: 2;
    margin-top: 4px;
  }
}

@media (max-width: 900px) {
  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 360px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 6px;
    background: var(--bg-2);
    border-left: 1px solid var(--line);
    padding: max(90px, env(safe-area-inset-top)) clamp(28px, 7vw, 44px) max(40px, env(safe-area-inset-bottom)) clamp(28px, 7vw, 44px);
    transform: translateX(100%);
    transition: transform .45s var(--ease);
    z-index: 800;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav.open .nav__links {
    transform: translateX(0);
    box-shadow: -40px 0 90px -30px rgba(0, 0, 0, .55);
  }

  .nav__links a {
    font-size: 1.4rem;
    font-family: var(--display);
    color: var(--text);
    width: 100%;
    padding: 12px 0;
  }

  .nav__links a::after {
    bottom: 6px;
  }

  .nav__burger {
    display: flex;
  }

  .nav__resume {
    display: none;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__media {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
  }

  .about__photo {
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .project-feature {
    grid-template-columns: 1fr;
  }

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

  .timeline {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .section {
    padding: clamp(44px, 12vw, 80px) clamp(14px, 4vw, 20px);
  }

  .section__head {
    margin-bottom: clamp(26px, 8vw, 40px);
  }

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

  .proj-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .proj-card {
    padding: clamp(14px, 3.5vw, 20px) clamp(12px, 3vw, 16px);
  }

  .proj-card__title {
    font-size: clamp(0.92rem, 2.5vw, 1.04rem);
  }

  .proj-card__desc {
    font-size: clamp(0.78rem, 2vw, 0.86rem);
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .proj-card__tags {
    gap: 4px;
    margin-bottom: 12px;
  }

  .proj-card__tag {
    font-size: .62rem;
    padding: 2px 7px;
  }

  .proj-card__links {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: space-between;
  }

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

  .pub {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 2px;
  }

  .pub__year {
    padding-top: 0;
  }

  .pub__links {
    grid-column: 1;
    margin-top: 8px;
  }

  .hero {
    min-height: 92svh;
    padding: 100px clamp(14px, 4vw, 20px) 52px;
    align-items: flex-start;
  }

  .hero__title {
    margin-bottom: 16px;
  }

  .hero__lede {
    margin-bottom: 24px;
  }

  .hero__scroll {
    display: none;
  }

  .hero__cta {
    width: 100%;
    gap: 10px;
  }

  .hero__cta .btn {
    flex: 0 1 auto;
  }

  .hero__photo img {
    object-position: 58% center;
  }

  .hero__scrim {
    background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 42%, color-mix(in srgb, var(--bg) 88%, transparent) 100%);
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .about__badge {
    right: 8px;
    bottom: -12px;
    padding: 10px 12px;
  }

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

  .tech-pills {
    gap: 7px;
  }
}

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

  .nav__brand-text {
    font-size: calc(1.15rem + 1.5pt);
  }

  .contact__row {
    width: 100%;
  }

  .contact__row .btn {
    flex: 1 1 140px;
    justify-content: center;
  }

  .thesis {
    padding: 18px 16px 18px 22px;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .hero {
    min-height: 0;
    padding-top: 92px;
    padding-bottom: 52px;
  }

  .hero__scroll {
    display: none;
  }

  .nav__links {
    justify-content: flex-start;
    padding-top: 84px;
    gap: 2px;
  }

  .nav__links a {
    font-size: 1.1rem;
    padding: 8px 0;
  }
}

@media (hover: none),
(pointer: coarse) {

  .nav__burger,
  .theme-toggle {
    width: 44px;
    height: 44px;
  }

  .tl-item:hover .tl-dot {
    transform: none;
  }

  .btn:active {
    transform: scale(.98);
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__title .word {
    transform: none;
  }

  .rail a.is-active span {
    animation: none;
  }

  .rail::after {
    transition: none;
  }
}

/* =================================================================
   HARSHAL KOLHE - Extra Components
   ================================================================= */

/* Hero: no-photo gradient fallback */
.hero--gradient .hero__photo {
  background:
    radial-gradient(ellipse 110% 80% at 72% 32%, rgba(169, 164, 255, 0.10), transparent 58%),
    radial-gradient(ellipse 60% 90% at 14% 78%, rgba(200, 174, 245, 0.06), transparent 65%),
    #0D0E13;
}

.hero--gradient .hero__scrim {
  opacity: .22;
}

/* About: avatar card (replaces photo column) */
.about__avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  height: 100%;
  min-height: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about__avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 36%, var(--glow-a), transparent 70%);
  pointer-events: none;
}

.about__avatar-mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3.4rem, 8vw, 5.6rem);
  letter-spacing: -5px;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.about__avatar-sub {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0;
  position: relative;
}

.about__avatar-tags {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
  position: relative;
}

.about__avatar-tag {
  padding: 10px 15px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .87rem;
  color: var(--muted);
  text-align: left;
  transition: border-color .25s var(--ease), color .25s, transform .25s var(--ease);
  display: flex;
  align-items: center;
  gap: 10px;
}

.about__avatar-tag:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateX(3px);
}

.about__avatar-tag .emoji {
  font-size: 1rem;
  flex: none;
}

/* Award / achievement cards */
.award-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.award-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}

.award-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 34px -12px var(--glow-a);
}

.award-card__icon {
  font-size: 1.6rem;
  flex: none;
  line-height: 1;
}

.award-card__body {
  min-width: 0;
}

.award-card__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.3;
  color: var(--text);
}

.award-card__sub {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 4px;
  font-family: var(--mono);
}

/* Section label for sub-groupings */
.subsec-label {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.subsec-label::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 2.5px;
  background: var(--accent);
  flex: none;
}

/* Project category divider */
.proj-cat {
  margin-top: 44px;
}

.proj-cat:first-of-type {
  margin-top: 0;
}

/* Responsive extras */
@media (max-width: 900px) {
  .about__avatar {
    min-height: 360px;
    aspect-ratio: 1 / 1.18;
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
  }

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

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

/* =================================================================
   PORTFOLIO REDESIGN — New Component Styles
   ================================================================= */

/* ---------- About: Photo Box & Placeholder ---------- */
.about__photo-box {
  position: relative;
  width: 90%;
  height: 90%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.45);
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}

.about__photo-box:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 44px -10px var(--glow-a);
  transform: translateY(-2px);
}

.about__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .5s var(--ease);
}

.about__photo-box:hover .about__photo-img {
  transform: scale(1.04);
}

[data-theme="light"] .about__photo-box {
  box-shadow: 0 16px 36px -10px rgba(90, 63, 176, 0.15);
}

.about__photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 220px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), color-mix(in srgb, var(--accent-2) 6%, transparent));
  border: 2px dashed var(--line-2);
  border-radius: var(--radius);
  color: var(--faint);
  transition: border-color .3s, color .3s;
}

.about__photo-placeholder svg {
  color: var(--accent-3);
  opacity: .5;
}

.about__photo-placeholder span {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.about__photo-placeholder:hover {
  border-color: var(--accent);
}

.about__photo-placeholder:hover svg {
  opacity: .7;
}

/* About tag icon */
.about__tag-icon {
  flex: none;
  color: var(--accent);
  opacity: .7;
}

/* ---------- Project Card: Image Container & Interaction ---------- */
.proj-card {
  cursor: pointer;
}

.proj-card__image {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}

.proj-card__image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.proj-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .5s cubic-bezier(0.16, 1, 0.3, 1), filter .3s ease;
}

/* Subtle dark scrim over image for seamless contrast */
.proj-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
  transition: opacity .3s;
}

/* Fallback / empty placeholder state if ever used */
.proj-card__image--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-style: dashed;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 5%, var(--surface)), color-mix(in srgb, var(--accent-2) 4%, var(--surface-2)));
  color: var(--faint);
}

.proj-card__image--placeholder svg {
  color: var(--accent-3);
  opacity: .35;
  transition: opacity .3s, transform .3s;
}

.proj-card__image--placeholder span {
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .5;
  transition: opacity .3s;
}

/* Hover overlay button */
.proj-card__image-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .3s var(--ease);
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 500;
  z-index: 2;
}

.proj-card__image-hover svg {
  transition: transform .3s var(--ease);
}

.proj-card:hover .proj-card__image-hover {
  opacity: 1;
}

.proj-card:hover .proj-card__image-hover svg {
  transform: scale(1.1);
}

.proj-card:hover .proj-card__image {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 8px 24px -6px color-mix(in srgb, var(--accent) 20%, transparent);
}

.proj-card:hover .proj-card__image img {
  transform: scale(1.05);
}

.proj-card:hover .proj-card__image--placeholder svg {
  opacity: .7;
  transform: scale(1.05);
}

.proj-card__detail-btn {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--accent);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .25s, transform .25s;
}

.proj-card__detail-btn:hover {
  color: var(--text);
  transform: translateX(3px);
}

/* ---------- Project Modal ---------- */
.proj-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}

.proj-modal.active {
  opacity: 1;
  visibility: visible;
}

.proj-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 14, 19, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[data-theme="light"] .proj-modal__overlay {
  background: rgba(46, 40, 66, .45);
}

.proj-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(94vw, 760px);
  max-height: 90vh;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  box-shadow: 0 35px 90px -25px rgba(0, 0, 0, .75), 0 0 0 1px var(--line);
  transform: translateY(18px) scale(.98);
  transition: transform .35s var(--ease), opacity .35s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

[data-theme="light"] .proj-modal__dialog {
  background: #FFFFFF;
  border-color: rgba(46, 40, 66, .14);
  box-shadow: 0 24px 70px -15px rgba(46, 40, 66, .18), 0 0 0 1px rgba(46, 40, 66, .08);
}

.proj-modal.active .proj-modal__dialog {
  transform: translateY(0) scale(1);
}

.proj-modal__inner {
  padding: 32px 36px 36px;
  overflow-y: auto;
  max-height: 90vh;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}

.proj-modal__inner::-webkit-scrollbar {
  width: 6px;
}

.proj-modal__inner::-webkit-scrollbar-track {
  background: transparent;
}

.proj-modal__inner::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 999px;
}

.proj-modal__inner::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Header & Badges */
.proj-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.proj-modal__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.proj-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  line-height: 1.25;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}

[data-theme="light"] .proj-badge {
  color: var(--accent);
  background: #F1EDFC;
  border-color: rgba(90, 63, 176, .24);
}

.proj-modal__close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: all .2s var(--ease);
}

.proj-modal__close:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--accent);
  transform: rotate(90deg);
}

/* Headings */
.proj-modal__headings {
  margin-bottom: 16px;
}

.proj-modal__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -.35px;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 6px;
}

.proj-modal__subtitle {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.55;
}

/* Tabs */
.proj-modal__tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

[data-theme="light"] .proj-modal__tabs {
  border-bottom-color: rgba(46, 40, 66, .12);
}

.proj-modal__tab {
  font-family: var(--font);
  font-size: .92rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  padding: 10px 2px 12px;
  cursor: pointer;
  position: relative;
  transition: color .2s var(--ease);
}

.proj-modal__tab:hover {
  color: var(--text);
}

.proj-modal__tab.active {
  color: var(--text);
}

.proj-modal__tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--accent);
  border-radius: 2px;
}

/* Impact Section in Project Modal (matches Experience Card) */
.proj-modal .exp-block--impact {
  border-left: 2.5px solid var(--accent);
  padding: 10px 16px;
  margin: 16px 0 20px;
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

[data-theme="light"] .proj-modal .exp-block--impact {
  background: rgba(90, 63, 176, .035);
}

.proj-modal .exp-block--impact .exp-block__label {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
  display: block;
}

.proj-modal .exp-block--impact .exp-block__text {
  color: var(--text);
  font-size: .92rem;
  line-height: 1.65;
  font-weight: 500;
}

/* Tab Panels */
.proj-modal__panel {
  display: none;
  animation: modalFadeIn .22s var(--ease);
}

.proj-modal__panel.active {
  display: block;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.proj-modal__block {
  margin-bottom: 18px;
}

.proj-modal__heading {
  font-family: var(--display);
  font-size: .96rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -.2px;
}

.proj-modal__text {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.68;
  margin-bottom: 12px;
}

/* Architecture Image Container */
.proj-modal__arch-img-wrap {
  margin: 16px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  display: none;
}

.proj-modal__arch-img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  display: block;
  background: rgba(0, 0, 0, 0.25);
  transition: transform .3s ease;
}

.proj-modal__arch-caption {
  display: block;
  padding: 8px 14px;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--mono);
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid var(--line-2);
  text-align: center;
}

[data-theme="light"] .proj-modal__arch-img {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .proj-modal__arch-caption {
  background: rgba(0, 0, 0, 0.02);
}

.proj-modal__highlights {
  padding-left: 20px;
  list-style: disc;
  margin-bottom: 18px;
}

.proj-modal__highlights li {
  font-size: .88rem;
  line-height: 1.64;
  color: var(--muted);
  margin-bottom: 6px;
}

.proj-modal__highlights li::marker {
  color: var(--accent);
}

/* Technologies Section */
.proj-modal__tech-sec {
  margin-top: 6px;
  margin-bottom: 24px;
}

.proj-modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.proj-modal__tags .proj-card__tag {
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--text);
  font-weight: 500;
  transition: border-color .2s;
}

[data-theme="light"] .proj-modal__tags .proj-card__tag {
  background: #F1EEF8;
  border-color: rgba(90, 63, 176, .16);
  color: #352C4D;
}

/* Symmetric & Centered Action Buttons */
.proj-modal__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

[data-theme="light"] .proj-modal__actions {
  border-top-color: rgba(46, 40, 66, .12);
}

.proj-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all .25s var(--ease);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

[data-theme="light"] .proj-modal__btn {
  background: #FFFFFF;
  border-color: rgba(46, 40, 66, .18);
  color: var(--text);
}

.proj-modal__btn:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -6px var(--glow-a);
}

[data-theme="light"] .proj-modal__btn:hover {
  background: #F8F5FE;
  border-color: var(--accent);
  color: var(--accent);
}

.proj-modal__btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---------- Achievements Section ---------- */
.achievements__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.achievement-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s;
  position: relative;
  overflow: hidden;
}

.achievement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .3s;
}

.achievement-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 14px 44px -16px var(--glow-a);
}

.achievement-card:hover::before {
  opacity: 1;
}

.achievement-card__icon {
  color: var(--accent);
  flex: none;
  margin-top: 2px;
}

.achievement-card__icon svg {
  fill: none;
}

.achievement-card__body {
  min-width: 0;
}

.achievement-card__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 4px;
}

.achievement-card__venue {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.achievement-card__detail {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Contact Form Card ---------- */
.contact-form-wrap {
  margin-top: 0;
  padding: clamp(28px, 4.5vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 48px -16px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  width: 100%;
  max-width: 100%;
  text-align: left;
}

.contact-form__heading {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: -.4px;
}

.contact-form__sub {
  font-size: .95rem;
  color: var(--muted);
  margin-bottom: 26px;
  line-height: 1.55;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.contact-form__group label {
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form__group input,
.contact-form__group textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font);
  font-size: 1rem;
  background: color-mix(in srgb, var(--surface) 60%, var(--bg));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
  transition: border-color .3s, box-shadow .3s;
  resize: vertical;
}

.contact-form__group textarea {
  min-height: 140px;
}

.contact-form__group input::placeholder,
.contact-form__group textarea::placeholder {
  color: var(--faint);
}

.contact-form__group input:focus,
.contact-form__group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.contact-form__submit {
  align-self: stretch;
  margin-top: 8px;
  padding: 15px 28px;
  font-size: 1.02rem;
  font-weight: 600;
  width: 100%;
  justify-content: center;
  gap: 10px;
}

.contact-form__status {
  font-family: var(--mono);
  font-size: .82rem;
  margin-top: 8px;
  min-height: 1.2em;
  text-align: center;
  transition: color .3s;
}

.contact-form__status--success {
  color: #4ade80;
}

.contact-form__status--error {
  color: #f87171;
}

/* ---------- Responsive: New Components ---------- */
@media (max-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact__info {
    text-align: center;
  }

  .contact__sub {
    margin-left: auto;
    margin-right: auto;
  }

  .contact__row {
    justify-content: center;
  }

  .contact__note {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .contact-form-wrap {
    max-width: 580px;
    margin: 0 auto;
  }

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

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .proj-modal__inner {
    padding: 24px 22px 28px;
  }
}

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

  .achievement-card {
    padding: 18px 16px;
    gap: 14px;
  }

  .proj-modal {
    padding: 14px 10px;
  }

  .proj-modal__dialog {
    width: 100%;
    max-height: 94vh;
    border-radius: 14px;
  }

  .proj-modal__inner {
    padding: 20px 16px 22px;
    max-height: 94vh;
  }

  .proj-modal__title {
    font-size: 1.25rem;
  }

  .proj-modal__tabs {
    gap: 18px;
  }

  .proj-modal__actions {
    flex-direction: column;
    gap: 10px;
  }

  .proj-modal__btn {
    width: 100%;
  }

  .contact-form-wrap {
    padding: 22px 18px;
  }
}