/* =============================================================
   Ashu Saini — Portfolio
   Design system: near-black neutral base, warm off-white type,
   signal-orange accent. Plus Jakarta Sans (body) + JetBrains Mono
   (labels / numerals) for a technical-editorial feel.
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg: #0a0a0b;
  --bg-elevated: #131315;
  --bg-elevated-2: #1a1a1d;
  --text-primary: #f4f1ea;
  --text-secondary: #a7a49d;
  --text-tertiary: #706d67;
  --accent: #ff6b47;
  --accent-strong: #ff8462;
  --accent-dim: rgba(255, 107, 71, 0.14);
  --border: rgba(244, 241, 234, 0.09);
  --border-strong: rgba(244, 241, 234, 0.18);
  --shadow-color: rgba(0, 0, 0, 0.45);
  --focus-ring: #ff8462;

  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --nav-h: 84px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="light"] {
  --bg: #faf9f6;
  --bg-elevated: #ffffff;
  --bg-elevated-2: #f1efe9;
  --text-primary: #171613;
  --text-secondary: #57544c;
  --text-tertiary: #86837a;
  --accent: #e0552c;
  --accent-strong: #c74620;
  --accent-dim: rgba(224, 85, 44, 0.1);
  --border: rgba(23, 22, 19, 0.09);
  --border-strong: rgba(23, 22, 19, 0.16);
  --shadow-color: rgba(23, 22, 19, 0.1);
  --focus-ring: #c74620;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

.font-mono { font-family: var(--font-mono); }

::selection {
  background: var(--accent);
  color: #0a0a0b;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 2px solid var(--bg); }

/* Focus states */
a, button {
  color: inherit;
  text-decoration: none;
  font: inherit;
}
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #0a0a0b;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- Layout helpers ---------- */
.section-inner {
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 768px) { .section-inner { padding-inline: 2.5rem; } }
@media (min-width: 1280px) { .section-inner { padding-inline: 3rem; } }

.section { padding-block: clamp(4rem, 8vw, 7rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ecf6e;
  box-shadow: 0 0 0 0 rgba(62, 207, 110, 0.5);
  animation: pulse-dot 2.2s var(--ease) infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(62, 207, 110, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(62, 207, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 207, 110, 0); }
}

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 30ch;
  margin-bottom: 3rem;
}

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

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 8px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #0a0a0b;
}
.btn-primary:hover { background: var(--accent-strong); }

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-text {
  padding: 0.85rem 0.25rem;
  color: var(--text-secondary);
}
.btn-text:hover { color: var(--text-primary); }
.btn-text svg { transition: transform 0.25s var(--ease); }
.btn-text:hover svg { transform: translateY(2px); }

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.875rem; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.site-nav.is-scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height 0.35s var(--ease);
}
@media (min-width: 768px) { .nav-inner { padding-inline: 2.5rem; } }
.site-nav.is-scrolled .nav-inner { height: 64px; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.nav-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border);
}
.nav-logo-text { font-size: 0.98rem; }
@media (max-width: 420px) { .nav-logo-text { display: none; } }

.nav-links {
  display: none;
  align-items: center;
  gap: 2.1rem;
}
@media (min-width: 900px) { .nav-links { display: flex; } }

.nav-link {
  position: relative;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-block: 0.3rem;
  transition: color 0.25s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover { color: var(--text-primary); }
.nav-link.is-active { color: var(--text-primary); }
.nav-link.is-active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.icon-btn:hover { color: var(--accent); border-color: var(--border-strong); }
.icon-sun, .icon-moon { transition: opacity 0.2s var(--ease), transform 0.3s var(--ease); }
.icon-moon { display: none; }
:root[data-theme="light"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: block; }

.nav-cta { display: none; }
@media (min-width: 900px) { .nav-cta { display: inline-flex; } }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
}
@media (min-width: 900px) { .menu-toggle { display: none; } }
.menu-bar {
  width: 16px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
}
#nav-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.1s linear;
}

.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 99;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}
@media (min-width: 900px) { .mobile-menu { display: none; } }
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-menu-links a {
  display: block;
  padding: 0.9rem 0.25rem;
  font-size: 1.35rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

/* ---------- Cursor glow ---------- */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 420px;
  height: 420px;
  margin-left: -210px;
  margin-top: -210px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 68%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  will-change: transform;
}
.cursor-glow.is-active { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor-glow { display: none; } }
@media (prefers-reduced-motion: reduce) { .cursor-glow { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
}

.hero-network {
  position: absolute;
  right: -8%;
  top: 0;
  width: 62%;
  height: 100%;
  color: var(--text-tertiary);
  opacity: 0.55;
}
@media (max-width: 900px) { .hero-network { opacity: 0.28; width: 90%; right: -20%; } }

.net-path {
  stroke-dasharray: 6 10;
  animation: dash-flow 5s linear infinite;
  opacity: 0.6;
}
.net-node { animation: node-pulse 3.2s var(--ease) infinite; color: var(--accent); }
.net-node:nth-child(2n) { animation-delay: 0.8s; color: var(--text-tertiary); }
.net-node:nth-child(3n) { animation-delay: 1.6s; }

@keyframes dash-flow { to { stroke-dashoffset: -160; } }
@keyframes node-pulse {
  0%, 100% { r: 3.5; opacity: 0.7; }
  50% { r: 5.5; opacity: 1; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: 3rem;
}

.hero-title {
  font-size: clamp(2.3rem, 5.6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 20ch;
  margin-bottom: 1.75rem;
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 52ch;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.scroll-cue {
  position: relative;
  z-index: 2;
  align-self: center;
  margin-bottom: 2rem;
  width: 22px;
  height: 36px;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.scroll-cue span {
  width: 3px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  animation: scroll-cue-move 1.8s var(--ease) infinite;
}
@keyframes scroll-cue-move {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(9px); opacity: 0; }
  71% { transform: translateY(0); opacity: 0; }
  100% { opacity: 1; }
}

/* ---------- Stats ---------- */
.stats-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 3rem;
  position: relative;
  z-index: 2;
  background: var(--bg-elevated);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1.5rem;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat { display: flex; flex-direction: column; gap: 0.4rem; }
.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 22ch;
  line-height: 1.4;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 0.8fr 1.4fr; gap: 4rem; }
  .about-heading .section-title { margin-bottom: 0; }
}

.about-body p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  max-width: 62ch;
}

.about-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
@media (max-width: 520px) { .about-lists { grid-template-columns: 1fr; } }

.about-list-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.9rem;
}
.about-list ul { display: flex; flex-direction: column; gap: 0.55rem; }
.about-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  color: var(--text-primary);
}
.about-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Experience / timeline ---------- */
.timeline { position: relative; }

.timeline-item {
  position: relative;
  padding-left: 2.25rem;
  border-left: 1px solid var(--border);
}
.timeline-marker {
  position: absolute;
  left: -5.5px;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}

.timeline-content {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.timeline-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.timeline-role { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
.timeline-company { color: var(--accent); font-size: 0.95rem; margin-top: 0.2rem; }
.timeline-date {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  border: 1px solid var(--border);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}

.timeline-overview {
  color: var(--text-secondary);
  max-width: 62ch;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.timeline-achievements {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.timeline-achievements li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-primary);
  max-width: 66ch;
}
.timeline-achievements li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-elevated-2);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.tag:hover { border-color: var(--accent); color: var(--text-primary); }
.tag-accent {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: var(--accent-dim);
}

/* ---------- Projects ---------- */
.featured-project {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 4rem;
  background: var(--bg-elevated);
}
@media (min-width: 960px) {
  .featured-project { grid-template-columns: 1fr 1.1fr; }
}

.featured-visual {
  position: relative;
  min-height: 280px;
  background:
    radial-gradient(circle at 20% 15%, var(--accent-dim), transparent 45%),
    var(--bg-elevated-2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
@media (min-width: 960px) {
  .featured-visual { border-bottom: none; border-right: 1px solid var(--border); min-height: 100%; }
}

.fv-scene { position: absolute; inset: 0; }

.fv-bubble {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 12px 30px var(--shadow-color);
}
.fv-bubble span {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: var(--border-strong);
}
.fv-bubble span:first-child { width: 74px; }
.fv-bubble span:nth-child(2) { width: 52px; background: var(--accent-dim); }
.fv-bubble span:nth-child(3) { width: 40px; }

.fv-bubble-1 { top: 14%; left: 10%; animation: float-y 6s var(--ease) infinite; }
.fv-bubble-2 { top: 34%; right: 10%; animation: float-y 7s var(--ease) infinite 0.6s; }
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.fv-queue {
  position: absolute;
  bottom: 22%;
  left: 8%;
  right: 8%;
}
.fv-queue-track {
  display: flex;
  gap: 6px;
  height: 20px;
  align-items: center;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  overflow: hidden;
}
.fv-queue-track i {
  flex: none;
  width: 14px;
  height: 8px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.35;
  animation: queue-flow 2.4s linear infinite;
}
.fv-queue-track i:nth-child(odd) { animation-delay: 0.3s; opacity: 0.6; }
.fv-queue-track i:nth-child(3n) { animation-delay: 0.6s; opacity: 0.85; }
@keyframes queue-flow {
  0% { transform: translateX(-8px); }
  50% { transform: translateX(4px); }
  100% { transform: translateX(-8px); }
}
.fv-queue-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.fv-counter {
  position: absolute;
  bottom: 8%;
  left: 8%;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.fv-counter span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.fv-counter strong {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-primary);
}

.featured-body { padding: clamp(1.75rem, 4vw, 3rem); }
.featured-title {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0.75rem 0 0.35rem;
}
.featured-role { color: var(--text-tertiary); font-size: 0.85rem; margin-bottom: 1.25rem; }
.featured-context { color: var(--text-secondary); line-height: 1.65; margin-bottom: 1.5rem; max-width: 60ch; }

.featured-list { display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 1.75rem; }
.featured-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.93rem;
  line-height: 1.6;
  max-width: 62ch;
}
.featured-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.featured-outcomes {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 1.5rem;
  padding: 1.25rem 0;
  margin-bottom: 1.75rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 480px) { .featured-outcomes { grid-template-columns: 1fr; gap: 0.9rem; } }
.featured-outcomes div { display: flex; flex-direction: column; gap: 0.2rem; }
.featured-outcomes strong { font-family: var(--font-mono); font-size: 1.15rem; color: var(--accent); }
.featured-outcomes span { font-size: 0.78rem; color: var(--text-secondary); }

/* Supporting project rows */
.project-list { display: flex; flex-direction: column; gap: 3.5rem; }

.project-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}
@media (min-width: 860px) {
  .project-row { grid-template-columns: 0.85fr 1.15fr; gap: 3rem; }
  .project-row-reverse .project-row-visual { order: 2; }
  .project-row-reverse .project-row-body { order: 1; }
}

.project-row-visual {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  min-height: 200px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem;
  transition: border-color 0.3s var(--ease);
}
.project-row:hover .project-row-visual { border-color: var(--border-strong); }

.pv-card {
  width: 100%;
  max-width: 260px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem;
  background: var(--bg-elevated-2);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pv-line { display: block; height: 6px; border-radius: 999px; background: var(--border-strong); width: 60%; }
.pv-line-lg { width: 80%; height: 9px; background: var(--accent-dim); }
.pv-dot-row { display: flex; gap: 5px; margin-top: 0.3rem; }
.pv-dot-row i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.pv-dot-row i:nth-child(1) { background: var(--accent); }
.pv-grid-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 0.3rem; }
.pv-grid-mini i { height: 18px; border-radius: 4px; background: var(--border-strong); }
.pv-grid-mini i:first-child { background: var(--accent-dim); }
.pv-stack { display: flex; flex-direction: column; gap: 5px; margin-top: 0.3rem; }
.pv-stack i { height: 7px; border-radius: 4px; background: var(--border-strong); }
.pv-stack i:nth-child(1) { width: 100%; }
.pv-stack i:nth-child(2) { width: 85%; background: var(--accent-dim); }
.pv-stack i:nth-child(3) { width: 65%; }
.pv-wave {
  display: block;
  height: 30px;
  margin-top: 0.3rem;
  border-radius: 6px;
  background: repeating-linear-gradient(100deg, var(--border-strong) 0 8px, transparent 8px 16px);
}

.project-row-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.65rem; letter-spacing: -0.01em; }
.project-row-text { color: var(--text-secondary); font-size: 0.93rem; line-height: 1.65; margin-bottom: 1.1rem; max-width: 58ch; }
.project-row .tag-row { margin-bottom: 1.1rem; }

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.project-link:hover { color: var(--accent); border-color: var(--accent); }
.project-link svg { transition: transform 0.25s var(--ease); }
.project-link:hover svg { transform: translate(2px, -2px); }

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}
@media (min-width: 640px) { .skills-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .skills-grid { grid-template-columns: repeat(3, 1fr); } }

.skill-group-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.9rem;
}

/* ---------- Education ---------- */
.education-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elevated);
}
.education-degree { font-size: 1.05rem; font-weight: 700; }
.education-school { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.25rem; }
.education-date {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  border: 1px solid var(--border);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

/* ---------- Contact ---------- */
.contact-section {
  border-top: 1px solid var(--border);
  position: relative;
}
.contact-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: 0.75rem;
}
.contact-sub { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 2.5rem; }
.contact-actions { margin-bottom: 2rem; }

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.25s var(--ease);
}
.contact-link:hover { color: var(--accent); }
.contact-link-static { cursor: default; }
.contact-link-static:hover { color: var(--text-secondary); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.2rem; }
.footer-name { font-weight: 700; }
.footer-descriptor { font-size: 0.82rem; color: var(--text-tertiary); }

.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a { font-size: 0.85rem; color: var(--text-secondary); transition: color 0.25s var(--ease); }
.footer-links a:hover { color: var(--accent); }

.footer-meta { display: flex; align-items: center; gap: 1rem; }
.footer-meta span { font-size: 0.78rem; color: var(--text-tertiary); }

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.back-to-top:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
