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

:root {
  --bg:        #070709;
  --bg-card:   #0e0e12;
  --bg-card-h: #13131a;
  --border:    #1e1e28;
  --border-h:  #2e2e42;
  --text:      #f0f0f5;
  --text-muted:#9898b0;
  --text-dim:  #3a3a50;
  --accent:    #4f8eff;
  --accent-glow: rgba(79, 142, 255, 0.15);
  --mono:      'Space Mono', monospace;
  --sans:      'Space Grotesk', sans-serif;
}

html { scroll-behavior: smooth; }

/* ── Custom Cursor ── */
@media (hover: hover) {
  *, *::before, *::after { cursor: none !important; }
}

.cursor-dot {
  position: fixed;
  left: 0; top: 0;
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 99999;
  opacity: 0;
  box-shadow: 0 0 12px var(--accent), 0 0 28px rgba(79, 142, 255, 0.5);
  transition: opacity 0.3s ease, transform 0.12s ease, width 0.2s ease, height 0.2s ease;
}

.cursor-dot.visible   { opacity: 1; }
.cursor-dot.hovering  { width: 20px; height: 20px; box-shadow: 0 0 14px var(--accent), 0 0 28px rgba(79, 142, 255, 0.5); }
.cursor-dot.clicking  { transform: translate(-50%, -50%) scale(0.65); }

@media (hover: none) {
  .cursor-dot { display: none; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 4rem;
  background: rgba(7, 7, 9, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo-sig {
  height: 48px;
  width: auto;
  display: block;
  filter: invert(1);
  transform: scale(1);
  transform-origin: left center;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-resume {
  border: 1px solid var(--border-h) !important;
  border-radius: 5px;
  padding: 0.3rem 0.85rem;
  color: var(--text) !important;
  transition: border-color 0.2s, background 0.2s !important;
}
.nav-resume:hover {
  background: var(--bg-card);
  border-color: var(--text-muted) !important;
}

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 8rem 4rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hero-photo {
  flex-shrink: 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-h);
  box-shadow: 0 0 40px rgba(79, 142, 255, 0.1);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hero-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero-name {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 0%, #8a8aaa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.hero-role {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}
.divider { color: var(--text-dim); margin: 0 0.4em; }

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 3rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 6px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.btn-primary:hover {
  background: #6aa0ff;
  box-shadow: 0 0 24px rgba(79, 142, 255, 0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border-h);
  border-radius: 6px;
  transition: color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 4rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  margin-top: 0.5rem;
}

/* ── Sections ── */
section {
  position: relative;
  z-index: 1;
  padding: 6rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  color: var(--text);
}

/* ── Projects Grid ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: 1.25rem;
}

/* Featured card spans full width */
.card--featured {
  grid-column: 1 / -1;
}

/* ── Card ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.25s, border-color 0.25s, transform 0.2s, box-shadow 0.25s;
  cursor: pointer;
  position: relative;
}

.card:hover {
  background: var(--bg-card-h);
  border-color: var(--border-h);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-h);
}

.card--featured:hover {
  box-shadow: 0 12px 60px rgba(79, 142, 255, 0.08), 0 0 0 1px var(--border-h);
}

.card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border-h);
  position: relative;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(79, 142, 255, 0.12) 0%,
    rgba(7, 7, 9, 0.45) 100%
  );
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1;
}

.card:hover .card-img {
  box-shadow: 0 0 0 1px rgba(79, 142, 255, 0.3), 0 0 28px rgba(79, 142, 255, 0.22);
  border-color: rgba(79, 142, 255, 0.3);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-img:has(img[src=""]) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img:has(img[src=""])::after {
  content: 'image coming soon';
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-img:has(img[src=""]) img {
  display: none;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.card-number {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  flex-shrink: 0;
  padding-top: 0.1em;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.card--featured .card-title {
  font-size: 1.4rem;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.card-type {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-link {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
  letter-spacing: 0.02em;
}
.card-link:hover { opacity: 0.7; }

/* stretch the link to cover the whole card (.card must be position: relative) */
.card-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ── Experience ── */
.exp-education {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-h);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
}

.exp-edu-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.exp-school {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.exp-degree {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.exp-edu-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.exp-gpa {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-right: 0.25rem;
}

.exp-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.exp-entry {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

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

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

.exp-title-block {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.exp-role {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.exp-org {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

.exp-date {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-left: 0;
}

.exp-bullets li {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding-left: 1rem;
  position: relative;
}

.exp-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-dim);
  font-size: 0.7rem;
  top: 0.2em;
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.skills-block {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.skills-group { display: flex; flex-direction: column; gap: 0.6rem; }

.skills-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  transition: color 0.2s, border-color 0.2s;
}
.skill:hover { color: var(--text); border-color: var(--border-h); }

/* ── Contact ── */
.contact {
  text-align: center;
  padding: 6rem 4rem 4rem;
}

.contact-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, #8a8aaa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.contact-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.btn-large {
  font-size: 1rem;
  padding: 1rem 2.5rem;
}

.contact-resume {
  margin-top: 1.25rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.04em;
}
.contact-links a:hover { color: var(--text); }

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 1.75rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  max-width: 100%;
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Project Page ── */
.proj-hero {
  position: relative;
  z-index: 1;
  padding: 8rem 4rem 4rem;
  max-width: 860px;
  margin: 0 auto;
}

.proj-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  margin-bottom: 2.5rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--border-h);
  border-radius: 6px;
  background: var(--bg-card);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.proj-back:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--bg-card-h);
}

.proj-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
  margin: 1rem 0 1.5rem;
}

.proj-intro {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.proj-section {
  position: relative;
  z-index: 1;
  padding: 3rem 4rem;
  max-width: 860px;
  margin: 0 auto;
}

.proj-section-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.dashboard-embed {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.dashboard-desktop { display: block; }
.dashboard-mobile { display: none; }

.dashboard-mobile-label {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-align: center;
}

.dashboard-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.dashboard-placeholder-icon {
  font-size: 2rem;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.dashboard-placeholder-sub {
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.takeaways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.takeaway {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.25s, background 0.25s;
}
.takeaway:hover { background: var(--bg-card-h); border-color: var(--border-h); }

.takeaway-stat {
  font-family: var(--mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.takeaway-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.methodology {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.method-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.method-row:last-child { border-bottom: none; }

.method-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 0.15em;
}

.method-value {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.proj-github-link {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}
.proj-github-link:hover { opacity: 0.7; }

/* ── Physician Project ── */
.proj-body {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 720px;
}

.proj-viz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.proj-viz {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 0;
  position: relative;
  cursor: zoom-in;
  transition: border-color 0.2s, background 0.2s;
}

.proj-viz:hover {
  border-color: var(--border-h);
  background: var(--bg-card-h);
}

.proj-viz::before {
  content: 'click to enlarge ↗';
  position: absolute;
  top: 0.65rem;
  right: 0.8rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.07em;
  color: var(--text-dim);
  z-index: 1;
  transition: color 0.2s;
}

.proj-viz:hover::before {
  color: var(--text-muted);
}

.proj-viz img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  display: block;
  background: var(--bg-card);
  transition: background 0.2s;
  cursor: zoom-in;
}

.proj-viz:hover img {
  background: var(--bg-card-h);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.lightbox-close:hover { color: var(--text); }

.proj-viz figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--mono);
  line-height: 1.5;
}

.rec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.rec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
}

.rec-audience {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.rec-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.rec-body {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
}

@media (max-width: 768px) {
  .proj-viz-grid, .rec-grid { grid-template-columns: 1fr; }
}

.footer-back {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.footer-back:hover { color: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav { padding: 1.25rem 1.5rem; }
  .nav-logo-sig { display: none; }
  .hero { padding: 7rem 1.5rem 4rem; flex-direction: column; align-items: flex-start; gap: 2.5rem; }
  .hero-photo { width: 160px; height: 160px; align-self: center; }
  section { padding: 4rem 1.5rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .card--featured { grid-column: 1; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact { padding: 4rem 1.5rem; }
  .footer { padding: 1.5rem; flex-direction: column; gap: 0.5rem; text-align: center; }
  .hero-scroll-hint { display: none; }

  /* Project pages */
  .proj-section { padding: 2.5rem 1.5rem; }
  .takeaways { grid-template-columns: 1fr; }
  .method-row { grid-template-columns: 1fr; gap: 0.35rem; }
  .method-label { padding-top: 0; }
  .dashboard-desktop { display: none; }
  .dashboard-mobile { display: block; text-decoration: none; }
}

@media (max-width: 480px) {
  .nav { padding: 1rem; }
  .nav-links { gap: 0.75rem; margin: 0 auto; }
  .nav-links a { font-size: 0.75rem; }
  .nav-resume { padding: 0.25rem 0.5rem; }
}
