/* ════════════════════════════════════════════════════════════
   NIKHIL KUMAR PANIGRAHI — PORTFOLIO
   Senior Motion Design System
   
   Philosophy: Restraint is craft. One accent. Negative space.
   Typography leads. Motion serves meaning.
   
   References: Linear, Emil Kowalski, Basement Studio, Rauno
════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;450;500;600&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── 1. DESIGN TOKENS ────────────────────────────────────── */
:root {
  /* Surfaces — NOT pure black, warm dark charcoal */
  --bg:         #0D0D0F;
  --s1:         #131315;
  --s2:         #1A1A1D;
  --s3:         #202024;

  /* Borders — barely visible */
  --b1:         rgba(255,255,255,0.055);
  --b2:         rgba(255,255,255,0.10);
  --b3:         rgba(255,255,255,0.16);

  /* Typography — one scale, two weights */
  --t1:         #ECEDF0;
  --t2:         #80808F;
  --t3:         #404050;

  /* THE ONE ACCENT — muted periwinkle, NOT neon */
  --a:          #8B9FE8;
  --a-dim:      rgba(139,159,232,0.09);
  --a-glow:     rgba(139,159,232,0.2);

  /* Status only */
  --green:      #4ADE80;
  --green-dim:  rgba(74,222,128,0.09);
  --amber:      #F5A524;
  --amber-dim:  rgba(245,165,36,0.09);

  /* Fonts */
  --f-head:  'Space Grotesk', system-ui, sans-serif;
  --f-body:  'Inter', system-ui, sans-serif;
  --f-mono:  'JetBrains Mono', monospace;

  /* Layout */
  --max:     1180px;
  --r:       10px;
  --r-lg:    16px;
  --r-xl:    22px;

  /* Motion — all spring-based */
  --spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
}

[data-theme="light"] {
  --bg:         #F8F8F9;
  --s1:         #FFFFFF;
  --s2:         #F1F1F4;
  --s3:         #E5E5EA;
  --b1:         rgba(0,0,0,0.06);
  --b2:         rgba(0,0,0,0.11);
  --b3:         rgba(0,0,0,0.20);
  --t1:         #0F0F12;
  --t2:         #525262;
  --t3:         #757588;
  --a:          #485DB8;
  --a-dim:      rgba(72,93,184,0.08);
  --a-glow:     rgba(72,93,184,0.20);
  --green:      #15803D;
  --green-dim:  rgba(21,128,61,0.08);
  --amber:      #B45309;
  --amber-dim:  rgba(180,83,9,0.08);
}

/* ── 2. RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--bg);
  cursor: none;
}

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--t2);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

a      { text-decoration: none; color: inherit; cursor: none; }
ul     { list-style: none; }
img    { max-width: 100%; display: block; }
button { font-family: inherit; cursor: none; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── 2.5 STUDIO SHUTTER PRELOADER ───────────────────────── */
body.is-loading {
  overflow: hidden !important;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px;
  pointer-events: all;
  transform: translateY(0);
  transition: transform 0.85s cubic-bezier(0.85, 0, 0.15, 1);
  will-change: transform;
}

.preloader.shutter-exit {
  transform: translateY(-100%);
  pointer-events: none;
}

.loader-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.preloader.fade-content .loader-content {
  opacity: 0;
  transform: translateY(-16px);
}

.loader-header,
.loader-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.loader-mono {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--t3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.loader-mono.status-ready {
  color: var(--green);
  transition: color 0.3s ease;
}

.loader-center {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: auto 0;
}

.loader-counter-wrap {
  display: flex;
  align-items: baseline;
  line-height: 0.9;
  margin-bottom: 24px;
}

.loader-num {
  font-family: var(--f-head);
  font-size: clamp(4.5rem, 12vw, 9rem);
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  min-width: 2ch;
}

.loader-pct {
  font-family: var(--f-mono);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--a);
  margin-left: 8px;
}

.loader-track {
  width: 100%;
  max-width: 480px;
  height: 2px;
  background: var(--b1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

.loader-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--a), #BAC8FF);
  border-radius: 2px;
  transition: width 0.08s linear;
}

.loader-status {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--t2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .preloader { padding: 24px; }
  .loader-track { max-width: 100%; }
}

/* ── 3. CUSTOM CURSOR — SIMPLE DOT WITH BLEND MODE ──────── */
#cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ffffff;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.15s var(--ease), opacity 0.15s ease;
  will-change: transform, top, left;
}

#cursor.hover  { transform: translate(-50%, -50%) scale(3.5); }
#cursor.click  { transform: translate(-50%, -50%) scale(0.7); }
#cursor.hidden { opacity: 0; }

@media (hover: none), (max-width: 768px) {
  html { cursor: auto; }
  #cursor { display: none; }
}

/* ── 4. SCROLL PROGRESS ──────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 1px;
  width: 0%;
  background: var(--a);
  z-index: 9999;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* ── 5. HEADER ───────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.3s var(--ease), border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(13,13,15,0.88);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--b1);
}

[data-theme="light"] .site-header.scrolled {
  background: rgba(248,248,249,0.88);
}

.header-container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mono {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--t3);
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.brand-link:hover .brand-mono { color: var(--t1); }

.brand-name {
  font-family: var(--f-head);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--t1);
  letter-spacing: -0.01em;
}

/* Nav pill */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 100px;
  padding: 3px;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--t2);
  padding: 5px 14px;
  border-radius: 100px;
  transition: color 0.2s ease, background 0.2s ease;
  letter-spacing: 0.005em;
}

.nav-link:hover  { color: var(--t1); }
.nav-link.active { color: var(--t1); background: var(--s3); }

.oss-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--green);
  color: #000;
  font-size: 0.58rem;
  font-weight: 700;
  margin-left: 3px;
  vertical-align: middle;
}

.header-actions { display: flex; align-items: center; gap: 8px; }

.btn-theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--b2);
  background: transparent;
  color: var(--t2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s var(--ease);
}
.btn-theme-toggle:hover { color: var(--t1); border-color: var(--b3); }

[data-theme="light"] .theme-icon-sun  { display: none; }
[data-theme="light"] .theme-icon-moon { display: inline; }
[data-theme="dark"]  .theme-icon-sun  { display: inline; }
[data-theme="dark"]  .theme-icon-moon { display: none; }

/* Mobile */
.btn-mobile-menu {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  border: 1px solid var(--b2);
  border-radius: var(--r);
  background: transparent;
}
.btn-mobile-menu span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--t1);
  transition: all 0.25s var(--ease);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 20px 20px;
  background: var(--s1);
  border-bottom: 1px solid var(--b1);
  gap: 2px;
}
.mobile-menu.open { display: flex; }
.mobile-nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--t2);
  padding: 10px 12px;
  border-radius: var(--r);
  transition: all 0.15s ease;
}
.mobile-nav-link:hover { color: var(--t1); background: var(--s2); }

/* ── 6. BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 100px;
  font-family: var(--f-body);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.2s var(--ease);
  position: relative;
  white-space: nowrap;
}

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

.btn-sm {
  padding: 6px 14px;
  font-size: 0.78rem;
  border-radius: var(--r);
}

.btn-primary {
  background: var(--t1);
  color: var(--bg);
  border: 1px solid transparent;
}
[data-theme="dark"] .btn-primary:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255,255,255,0.12);
}
[data-theme="light"] .btn-primary:hover {
  background: #000000;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}

.btn-secondary {
  background: var(--s1);
  color: var(--t1);
  border: 1px solid var(--b2);
}
.btn-secondary:hover {
  border-color: var(--b3);
  background: var(--s2);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--t2);
  border: 1px solid var(--b2);
}
.btn-outline:hover {
  color: var(--t1);
  border-color: var(--b3);
  background: var(--s1);
}

.btn-accent {
  background: var(--a-dim);
  color: var(--a);
  border: 1px solid rgba(139,159,232,0.18);
}
.btn-accent:hover {
  background: var(--a);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--a-glow);
}

.btn-block { width: 100%; justify-content: center; }

/* ── 7. HERO SECTION ─────────────────────────────────────── */
.hero-section {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 80px;
  position: relative;
  border-bottom: 1px solid var(--b1);
}

/* Subtle dot grid — minimal, tasteful */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--b2) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, rgba(0,0,0,0.5) 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, rgba(0,0,0,0.5) 0%, transparent 100%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 80px;
  align-items: center;
}

/* Status pill */
.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--green-dim);
  border: 1px solid rgba(74,222,128,0.15);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--t2);
  margin-bottom: 32px;
}

.status-pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(74,222,128,0); }
}
.status-pulse-dot { animation: pulse 2.4s ease infinite; }

.status-text { color: var(--green); font-weight: 600; }
.status-sep  { color: var(--t3); }
.status-sub  { color: var(--t2); }

/* HERO HEADLINE — Line reveal animation */
.hero-headline {
  font-family: var(--f-head);
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 600;
  color: var(--t1);
  line-height: 1.13;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

/* Line reveal wrapper */
.line-wrap {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em; /* prevent descender clip */
}

.line-inner {
  display: block;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease);
}

.line-inner.em { 
  font-style: italic; 
  color: var(--t2);
  font-weight: 400;
}

.hero-headline.animate .line-inner        { transition-delay: 0.15s; }
.hero-headline.animate .line-inner:nth-child(2) { transition-delay: 0.25s; }
.hero-headline.animate .line-inner:nth-child(3) { transition-delay: 0.35s; }

.hero-headline.revealed .line-inner { transform: translateY(0); }

.hero-bio {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--t2);
  max-width: 540px;
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-bio strong { color: var(--t1); font-weight: 500; }

.hero-action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-social-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--t3);
  padding: 6px 12px;
  border-radius: 100px;
  transition: all 0.2s var(--ease);
  letter-spacing: 0.01em;
}
.social-link:hover {
  color: var(--t1);
  background: var(--s1);
}
.social-link i { font-size: 0.75rem; }

/* Profile — clean, no heavy card */
.hero-sidebar { position: relative; }

.profile-block {
  position: relative;
}

.profile-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 360px;
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--b1);
  position: relative;
  transition: transform 0.4s var(--ease);
}

.profile-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(13,13,15,0.7), transparent);
  pointer-events: none;
}

[data-theme="light"] .profile-img-wrap::after {
  background: linear-gradient(to top, rgba(248,248,249,0.5), transparent);
}

.profile-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.6s var(--ease);
}

.profile-block:hover .profile-img-wrap { transform: translateY(-3px); }
.profile-block:hover .profile-photo    { transform: scale(1.03); }

/* Info below photo */
.profile-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pi-row {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  padding: 10px 14px;
  transition: border-color 0.2s ease;
}
.pi-row:hover { border-color: var(--b2); }

.pi-label {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 3px;
}

.pi-val {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--t1);
}

.pi-val.available { color: var(--green); }

/* Metrics strip */
.hero-metrics-container { margin-top: 64px; }

.metrics-dock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--b1);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.metric-card {
  padding: 24px 20px;
  border-right: 1px solid var(--b1);
  transition: background 0.2s ease;
}
.metric-card:last-child { border-right: none; }
.metric-card:hover { background: var(--s1); }

.metric-val {
  font-family: var(--f-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--t1);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.metric-val-mono {
  font-family: var(--f-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--t1);
  line-height: 1.3;
  margin-bottom: 8px;
}

.metric-unit { font-size: 0.85rem; color: var(--t3); font-weight: 400; }

.metric-tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.58rem;
  font-weight: 500;
  padding: 2px 5px;
  background: var(--green-dim);
  color: var(--green);
  border-radius: 4px;
  border: 1px solid rgba(74,222,128,0.15);
  vertical-align: middle;
}

.metric-desc {
  font-size: 0.72rem;
  color: var(--t3);
  line-height: 1.35;
}

/* ── 8. MARQUEE ──────────────────────────────────────────── */
.affiliations-strip {
  padding: 18px 0;
  border-bottom: 1px solid var(--b1);
  overflow: hidden;
  position: relative;
}

.affiliations-strip::before,
.affiliations-strip::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  width: 120px; z-index: 2;
  pointer-events: none;
}
.affiliations-strip::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.affiliations-strip::after  { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }

.affiliations-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.affiliations-strip:hover .affiliations-track { animation-play-state: paused; }

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

.affil-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--t3);
  white-space: nowrap;
  transition: color 0.2s ease;
}
.affil-item:hover { color: var(--t1); }
.affil-item i { color: var(--t3); font-size: 0.75rem; }
.affil-sep { color: var(--b2); }

/* ── 9. SECTION BASE ─────────────────────────────────────── */
.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--b1);
}

.section-alt { background: var(--s1); }

.section-header { margin-bottom: 52px; }

.section-header-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.section-line {
  display: block;
  width: 24px; height: 1px;
  background: var(--t3);
}

.section-tag {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--t3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--f-head);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--t1);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 0.94rem;
  color: var(--t3);
  max-width: 500px;
  line-height: 1.7;
}

/* ── 10. PROJECTS — EDITORIAL LIST ───────────────────────── */
.project-list { display: flex; flex-direction: column; }

.project-item {
  border-top: 1px solid var(--b1);
  padding: 40px 0;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 32px;
  align-items: start;
  transition: all 0.3s var(--ease);
  position: relative;
  cursor: none;
}

.project-item:last-child { border-bottom: 1px solid var(--b1); }

.project-item::before {
  content: '';
  position: absolute;
  left: -32px; right: -32px; top: 0; bottom: 0;
  background: var(--s1);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
  border-radius: var(--r-lg);
}

.project-item:hover::before { opacity: 1; }

/* Left: index number */
.pi-left { padding-top: 6px; }

.pi-num {
  font-family: var(--f-mono);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--t3);
  letter-spacing: 0.06em;
  display: block;
}

.pi-badges { display: flex; flex-direction: column; gap: 6px; }

.pi-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 4px;
  white-space: nowrap;
  background: var(--s2);
  color: var(--t2);
  border: 1px solid var(--b2);
  line-height: 1.4;
}

.pi-badge.flagship {
  background: rgba(72,93,184,0.08);
  color: #485DB8;
  border-color: rgba(72,93,184,0.22);
}
[data-theme="dark"] .pi-badge.flagship {
  background: var(--a-dim);
  color: var(--a);
  border-color: rgba(139,159,232,0.25);
}

.pi-badge.award {
  background: rgba(180,83,9,0.08);
  color: #B45309;
  border-color: rgba(180,83,9,0.22);
}
[data-theme="dark"] .pi-badge.award {
  background: var(--amber-dim);
  color: var(--amber);
  border-color: rgba(245,165,36,0.25);
}

/* Center: content */
.pi-main {}

.pi-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.pi-name {
  font-family: var(--f-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--t1);
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}

.project-item:hover .pi-name { color: var(--t1); }

.pi-tagline {
  font-size: 0.82rem;
  color: var(--t3);
  font-weight: 400;
  margin-bottom: 14px;
  line-height: 1.5;
}

.pi-desc {
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--t2);
  max-width: 600px;
  margin-bottom: 22px;
}

/* Specs — minimal 4-col */
.pi-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.pi-spec {
  padding: 10px 12px;
  background: var(--s2);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  transition: border-color 0.2s ease;
}
.pi-spec:hover { border-color: var(--b2); }

.pi-spec-title {
  display: block;
  font-family: var(--f-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--t1);
  margin-bottom: 3px;
}

.pi-spec-detail {
  display: block;
  font-size: 0.7rem;
  color: var(--t3);
  line-height: 1.3;
}
.pi-spec-detail code { font-family: var(--f-mono); color: var(--a); }

.pi-stack {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--t3);
  letter-spacing: 0.02em;
}

/* Right: links */
.pi-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding-top: 4px;
  flex-shrink: 0;
}

/* Small project grid */
.projects-subgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 0;
}

.project-card-compact {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.project-card-compact::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--a), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.project-card-compact:hover::after { transform: scaleX(1); }

.project-card-compact:hover {
  border-color: var(--b2);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.compact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-badge-num {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--t3);
  letter-spacing: 0.06em;
}

.compact-links { display: flex; gap: 6px; }

.icon-link {
  width: 30px; height: 30px;
  border-radius: var(--r);
  border: 1px solid var(--b1);
  background: var(--s2);
  display: flex; align-items: center; justify-content: center;
  color: var(--t3); font-size: 0.78rem;
  transition: all 0.2s var(--ease);
}
.icon-link:hover {
  border-color: var(--a);
  color: var(--a);
  background: var(--a-dim);
}

.compact-title {
  font-family: var(--f-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--t1);
  margin-bottom: 4px;
  letter-spacing: -0.015em;
}

.compact-subtitle {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--a);
  margin-bottom: 12px;
}

.compact-text {
  font-size: 0.86rem;
  line-height: 1.68;
  color: var(--t2);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Tech tags */
.tech-tag-row { display: flex; flex-wrap: wrap; gap: 5px; }

.tech-tag {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 400;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--s2);
  color: var(--t3);
  border: 1px solid var(--b1);
  transition: all 0.15s ease;
  letter-spacing: 0.01em;
}
.tech-tag:hover {
  color: var(--a);
  background: var(--a-dim);
  border-color: rgba(139,159,232,0.15);
}

/* ── 11. OPEN SOURCE LEDGER ──────────────────────────────── */
.oss-stat-counter {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r-lg);
  padding: 14px 20px;
}

.oss-stat-num {
  font-family: var(--f-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.oss-stat-label {
  font-size: 0.72rem;
  color: var(--t3);
  font-weight: 500;
  line-height: 1.3;
}

.pr-ledger { display: flex; flex-direction: column; }

.pr-ledger-row {
  display: grid;
  grid-template-columns: 100px 160px 1fr 90px 36px;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  border-top: 1px solid var(--b1);
  transition: all 0.2s var(--ease);
  border-radius: 0;
  position: relative;
}

.pr-ledger-row:last-child { border-bottom: 1px solid var(--b1); }

.pr-ledger-row::before {
  content: '';
  position: absolute;
  left: -20px; right: -20px; top: 0; bottom: 0;
  background: var(--s1);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: -1;
  border-radius: var(--r);
}
.pr-ledger-row:hover::before { opacity: 1; }
.pr-ledger-row:hover { transform: translateX(4px); }

.pr-ledger-row.pr-newest { border-left: 2px solid var(--green); padding-left: 18px; }

.col-pr-id { display: flex; align-items: center; gap: 8px; }

.pr-hash {
  font-family: var(--f-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--t1);
}

.badge-new {
  font-family: var(--f-mono);
  font-size: 0.56rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--green);
  color: #ffffff;
  letter-spacing: 0.05em;
}
[data-theme="dark"] .badge-new {
  color: #000000;
}

.repo-tag {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--t3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.repo-tag.fcc i { color: var(--amber); }

.pr-title {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--t1);
  line-height: 1.4;
  margin-bottom: 5px;
}

.pr-meta-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.pr-meta-pills span {
  font-size: 0.66rem;
  color: var(--t3);
  background: var(--s2);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--b1);
  font-family: var(--f-mono);
}

.badge-merged {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 100px;
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(74,222,128,0.15);
  white-space: nowrap;
}

.btn-icon {
  width: 32px; height: 32px;
  border-radius: var(--r);
  background: var(--s2);
  border: 1px solid var(--b1);
  display: flex; align-items: center; justify-content: center;
  color: var(--t3); font-size: 0.72rem;
  transition: all 0.2s var(--ease);
  flex-shrink: 0;
}
.btn-icon:hover { background: var(--t1); color: var(--bg); border-color: transparent; }

/* ── 12. EXPERIENCE TIMELINE ─────────────────────────────── */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.column-heading {
  font-family: var(--f-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--t1);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--b1);
}
.column-heading i { color: var(--a); font-size: 0.85rem; }

.timeline-stack { display: flex; flex-direction: column; gap: 3px; }

.timeline-card {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  padding: 22px;
  transition: all 0.25s var(--ease);
  position: relative;
}

.timeline-card:hover {
  background: var(--s1);
  border-color: var(--b1);
}

.timeline-card.current { border-color: var(--b1); background: var(--s1); }
.timeline-card.current::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--green);
  border-radius: 2px 0 0 2px;
}

.timeline-card.academic-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--a);
  border-radius: 2px 0 0 2px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.timeline-card.academic-card:hover::before,
.timeline-card.academic-card { border-color: var(--b1); background: var(--s1); }
.timeline-card.academic-card::before { opacity: 1; }

.timeline-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 12px;
}

.role-badge {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(74,222,128,0.15);
  margin-bottom: 8px;
  display: block;
  width: fit-content;
}

.role-title {
  font-family: var(--f-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--t1);
}

.company-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--a);
  margin-top: 2px;
}

.time-period {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--t3);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.bullet-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }

.bullet-list li {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--t2);
  position: relative;
  padding-left: 14px;
}
.bullet-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--t3);
}
.bullet-list strong { color: var(--t1); font-weight: 500; }

.cgpa-highlight-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--a-dim);
  border: 1px solid rgba(139,159,232,0.12);
  border-radius: var(--r);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.cgpa-figure {
  font-family: var(--f-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--a);
  line-height: 1;
}
.cgpa-denom { font-size: 0.9rem; color: var(--t3); }
.cgpa-info strong { display: block; font-size: 0.82rem; color: var(--t1); font-weight: 600; }
.cgpa-info p { font-size: 0.74rem; color: var(--t3); line-height: 1.3; margin-top: 3px; }

.coursework-block { border-top: 1px solid var(--b1); padding-top: 14px; }
.cw-heading {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.64rem;
  font-weight: 500;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.cw-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.cw-tags span {
  font-size: 0.74rem;
  color: var(--t2);
  background: var(--s2);
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid var(--b1);
}

/* ── 13. SKILLS TABLE ────────────────────────────────────── */
.skills-table { display: flex; flex-direction: column; }

.skills-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--b1);
  transition: all 0.2s ease;
}

.skills-row:last-child { border-bottom: 1px solid var(--b1); }
.skills-row:hover { padding-left: 8px; }

.skill-cat {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-top: 4px;
  transition: color 0.2s ease;
}
.skills-row:hover .skill-cat { color: var(--a); }

.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.skill-pill {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--t2);
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--s1);
  border: 1px solid var(--b1);
  transition: all 0.2s var(--ease);
}
.skill-pill:hover {
  color: var(--t1);
  border-color: var(--b2);
  background: var(--s2);
}
.skill-pill.primary {
  color: var(--t1);
  background: var(--s2);
  border-color: var(--b2);
}

/* ── 14. CREDENTIALS ─────────────────────────────────────── */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cred-card {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease);
}

.cred-card:hover {
  border-color: var(--b2);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

.cred-icon {
  width: 38px; height: 38px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  margin-bottom: 14px;
  transition: transform 0.3s var(--spring);
}
.cred-card:hover .cred-icon { transform: rotate(-6deg) scale(1.1); }

.award-gold   { background: var(--amber-dim); color: var(--amber); border: 1px solid rgba(245,165,36,0.15); }
.award-green  { background: var(--green-dim); color: var(--green); border: 1px solid rgba(74,222,128,0.15); }
.award-teal   { background: rgba(20,184,166,0.09); color: #2DD4BF; border: 1px solid rgba(20,184,166,0.18); }
.award-indigo { background: var(--a-dim); color: var(--a); border: 1px solid rgba(139,159,232,0.15); }
.award-blue   { background: rgba(96,165,250,0.08); color: #60A5FA; border: 1px solid rgba(96,165,250,0.15); }
.award-purple { background: rgba(168,85,247,0.08); color: #C084FC; border: 1px solid rgba(168,85,247,0.15); }

.cred-type {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--t3);
  margin-bottom: 6px;
}

.cred-title {
  font-family: var(--f-head);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--t1);
  margin-bottom: 6px;
  line-height: 1.3;
}

.cred-org {
  font-size: 0.78rem;
  color: var(--t3);
  line-height: 1.4;
  margin-bottom: 16px;
  flex-grow: 1;
}

.cred-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--a);
  margin-top: auto;
  transition: gap 0.2s ease;
}
.cred-link:hover { gap: 9px; }

/* ── 15. CONTACT SECTION ─────────────────────────────────── */
.contact-card {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r-xl);
  padding: 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
}

.contact-heading {
  font-family: var(--f-head);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 600;
  color: var(--t1);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.contact-lead {
  font-size: 0.92rem;
  color: var(--t3);
  line-height: 1.72;
  margin-bottom: 32px;
}

.contact-methods { display: flex; flex-direction: column; gap: 10px; }

.method-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--r);
  background: var(--s2);
  border: 1px solid var(--b1);
  transition: all 0.2s ease;
}
.method-card:hover {
  border-color: var(--b2);
  background: var(--s3);
  transform: translateX(3px);
}
.method-card i { font-size: 1rem; color: var(--a); flex-shrink: 0; }

.method-lbl {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--t3);
}

.method-val {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--t1);
  transition: color 0.2s ease;
}
.method-val:hover { color: var(--a); }

/* Form */
.contact-form-container form { display: flex; flex-direction: column; gap: 12px; }

.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.form-field { display: flex; flex-direction: column; gap: 5px; }

.form-field label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--t3);
  letter-spacing: 0.02em;
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: var(--r);
  border: 1px solid var(--b1);
  background: var(--s2);
  color: var(--t1);
  font-family: var(--f-body);
  font-size: 0.86rem;
  outline: none;
  transition: all 0.2s ease;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--t3); }
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--a);
  background: var(--s3);
  box-shadow: 0 0 0 3px var(--a-dim);
}

/* ── 16. FOOTER ──────────────────────────────────────────── */
.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--b1);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left { font-size: 0.8rem; color: var(--t3); }
.footer-name { color: var(--t1); font-weight: 500; }
.footer-sep  { margin: 0 6px; color: var(--t3); }
.footer-links { display: flex; gap: 18px; }
.footer-links a { font-size: 0.8rem; font-weight: 500; color: var(--t3); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--t1); }

/* ── 17. TOAST ───────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--s3);
  border: 1px solid var(--b2);
  color: var(--t1);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex; align-items: center; gap: 7px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 10000;
  opacity: 0;
  transition: transform 0.4s var(--spring), opacity 0.3s ease;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast i { color: var(--green); }

/* ── 18. BACK TO TOP ─────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--s3);
  border: 1px solid var(--b2);
  color: var(--t1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.3s var(--ease);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--t1); color: var(--bg); transform: translateY(-2px); }

/* ── 19. SCROLL REVEAL ───────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
[data-reveal="right"] { transform: translateX(-20px); }
[data-reveal].revealed { opacity: 1; transform: none; }

[data-stagger] > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
[data-stagger].revealed > *:nth-child(1) { transition-delay: 0.04s; }
[data-stagger].revealed > *:nth-child(2) { transition-delay: 0.10s; }
[data-stagger].revealed > *:nth-child(3) { transition-delay: 0.16s; }
[data-stagger].revealed > *:nth-child(4) { transition-delay: 0.22s; }
[data-stagger].revealed > *:nth-child(5) { transition-delay: 0.28s; }
[data-stagger].revealed > *:nth-child(6) { transition-delay: 0.34s; }
[data-stagger].revealed > *:nth-child(7) { transition-delay: 0.40s; }
[data-stagger].revealed > * { opacity: 1; transform: none; }

/* ── 20. HERO ANIMATION (page load) ─────────────────────── */
.hero-status-pill,
.hero-bio,
.hero-action-buttons,
.hero-social-row,
.hero-sidebar,
.metrics-dock {
  opacity: 0;
  transform: translateY(20px);
}

body.loaded .hero-status-pill    { animation: slup 0.7s var(--ease) 0.1s both; }
body.loaded .hero-sidebar        { animation: slup 0.8s var(--ease) 0.25s both; }
body.loaded .hero-bio            { animation: slup 0.7s var(--ease) 0.4s both; }
body.loaded .hero-action-buttons { animation: slup 0.7s var(--ease) 0.5s both; }
body.loaded .hero-social-row     { animation: slup 0.7s var(--ease) 0.6s both; }
body.loaded .metrics-dock        { animation: slup 0.7s var(--ease) 0.65s both; }

@keyframes slup {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 3D tilt — applied via JS transform */
.project-item {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ── 21. RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-sidebar { max-width: 400px; }
  .metrics-dock { grid-template-columns: repeat(2, 1fr); }
  .project-item { grid-template-columns: 60px 1fr auto; gap: 20px; }
  .pi-specs { grid-template-columns: repeat(2, 1fr); }
  .experience-grid { grid-template-columns: 1fr; gap: 32px; }
  .credentials-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-card { grid-template-columns: 1fr; padding: 36px; gap: 40px; }
  .nav-links { display: none; }
  .btn-mobile-menu { display: flex; }
  .skills-row { grid-template-columns: 120px 1fr; }
  .pr-ledger-row { grid-template-columns: 80px 140px 1fr 80px 32px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .hero-section { padding: 100px 0 64px; }
  .hero-headline { font-size: 2rem; }
  .project-item { grid-template-columns: 1fr; gap: 16px; }
  .pi-left { display: flex; align-items: center; gap: 12px; }
  .pi-num { margin-bottom: 0; }
  .pi-right { flex-direction: row; align-items: center; }
  .pi-specs { grid-template-columns: repeat(2, 1fr); }
  .projects-subgrid { grid-template-columns: 1fr; }
  .credentials-grid { grid-template-columns: 1fr 1fr; }
  .metrics-dock { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-card { padding: 24px; }
  .skills-row { grid-template-columns: 1fr; gap: 10px; }
  .pr-ledger-row { grid-template-columns: 1fr; gap: 8px; }
  .col-pr-status, .col-pr-action { display: none; }
}

@media (max-width: 480px) {
  .credentials-grid { grid-template-columns: 1fr; }
  .metrics-dock { grid-template-columns: 1fr; }
}
