/* ── RESET & TOKENS ─────────────────────────────────────── */
:root {
  --c-ink: #0a0e1a;
  --c-surface: #f8f7f4;
  --c-white: #ffffff;
  --c-teal: #14b8a6;
  --c-teal-dim: rgba(20, 184, 166, 0.14);
  --c-blue: #0078d4;
  --c-muted: #6b7280;
  --c-border: rgba(10, 14, 26, 0.09);
  --c-border-hero: rgba(255, 255, 255, 0.14);
  --nav-h: 72px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius-card: 22px;
  --radius-xl: 32px;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-card: 0 6px 28px rgba(10, 14, 26, 0.07), 0 1px 4px rgba(10, 14, 26, 0.05);
  --shadow-lift: 0 22px 56px rgba(10, 14, 26, 0.16);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--c-ink);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

h1, h2, h3 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

/* ── CONTAINER ──────────────────────────────────────────── */
.container {
  width: min(1160px, calc(100% - var(--pad) * 2));
  margin: 0 auto;
}

/* ── REVEAL ANIMATION ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal.revealed { opacity: 1; transform: none; }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.22s var(--ease-spring), box-shadow 0.22s ease, background 0.2s ease;
  white-space: nowrap;
  border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--c-ink);
  color: var(--c-white);
  box-shadow: 0 4px 18px rgba(10, 14, 26, 0.22);
}
.btn-primary:hover {
  background: #171f38;
  box-shadow: 0 8px 28px rgba(10, 14, 26, 0.3);
}

.btn-ghost {
  border: 1.5px solid var(--c-border-hero);
  color: var(--c-white);
  backdrop-filter: blur(8px);
  background: transparent;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ── NAV ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--nav-h);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  max-width: 1300px;
  margin: 0 auto;
}

.nav-brand {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.06em;
  color: var(--c-white);
  transition: color 0.3s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}
.nav-links a {
  padding: 0.45rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--c-white); background: rgba(255, 255, 255, 0.1); }

.nav-cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
}
.nav-cta:hover { border-color: rgba(255, 255, 255, 0.4) !important; background: rgba(255, 255, 255, 0.1) !important; }

/* scrolled state */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 2px 18px rgba(10, 14, 26, 0.06);
}
.nav-scrolled .nav-brand,
.nav-scrolled .nav-links a { color: var(--c-ink) !important; }
.nav-scrolled .nav-links a:hover { background: rgba(10, 14, 26, 0.06) !important; }
.nav-scrolled .nav-cta { border-color: var(--c-border) !important; }
.nav-scrolled .nav-cta:hover { background: rgba(10, 14, 26, 0.05) !important; }
.nav-scrolled .nav-burger span { background: var(--c-ink) !important; }

/* burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform 0.22s var(--ease-out), opacity 0.22s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--c-ink);
  color: var(--c-white);
  overflow: hidden;
}

/* animated gradient mesh */
.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 5% 5%, rgba(20, 184, 166, 0.38) 0%, transparent 55%),
    radial-gradient(ellipse 60% 65% at 95% 15%, rgba(0, 120, 212, 0.32) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 45% 95%, rgba(15, 25, 55, 0.9) 0%, transparent 65%);
  animation: meshDrift 14s ease-in-out infinite alternate;
}
@keyframes meshDrift {
  from { background:
    radial-gradient(ellipse 70% 60% at 5% 5%, rgba(20, 184, 166, 0.38) 0%, transparent 55%),
    radial-gradient(ellipse 60% 65% at 95% 15%, rgba(0, 120, 212, 0.32) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 45% 95%, rgba(15, 25, 55, 0.9) 0%, transparent 65%); }
  to { background:
    radial-gradient(ellipse 65% 70% at 18% 12%, rgba(20, 184, 166, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 82% 25%, rgba(0, 120, 212, 0.38) 0%, transparent 55%),
    radial-gradient(ellipse 60% 55% at 55% 88%, rgba(15, 25, 55, 0.75) 0%, transparent 65%); }
}

/* subtle dot grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  padding: calc(var(--nav-h) + 4rem) var(--pad) 5rem;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

.hero-overline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-teal);
  margin-bottom: 1.5rem;
}

.pulse-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-teal);
  animation: pulseGlow 2.2s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(20, 184, 166, 0); }
}

.hero-headline {
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  line-height: 1.0;
  letter-spacing: -0.05em;
  color: var(--c-white);
}
.hero-headline em { color: var(--c-teal); font-style: italic; }

.hero-sub {
  margin-top: 1.75rem;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.6);
  max-width: 44ch;
}
.hero-sub strong { color: rgba(255, 255, 255, 0.88); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2.25rem; }

/* portrait */
.hero-visual { position: relative; display: flex; justify-content: center; }

.portrait-ring {
  position: relative;
  width: min(360px, 100%);
  aspect-ratio: 1;
}
.portrait-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 38px;
  background: conic-gradient(from 0deg, var(--c-teal), var(--c-blue), transparent 60%, var(--c-teal));
  animation: ringSpin 8s linear infinite;
  opacity: 0.7;
}
@keyframes ringSpin { to { rotate: 360deg; } }

.portrait-img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 34px;
}

/* floating chips */
.floater {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(8, 12, 30, 0.72);
  backdrop-filter: blur(14px);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-white);
  white-space: nowrap;
  animation: floatY 3.5s ease-in-out infinite alternate;
  z-index: 2;
}
.floater p { margin: 0; line-height: 1.3; font-size: 0.74rem; }
.floater-cert { top: 6%; right: -5%; animation-delay: 0s; }
.floater-loc  { bottom: 26%; left: -8%; animation-delay: -1.2s; }
.floater-ms   { bottom: 6%; right: 2%; animation-delay: -2.4s; }

@keyframes floatY { from { transform: translateY(0); } to { transform: translateY(-9px); } }

/* scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.45), transparent);
  animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  60%  { opacity: 1; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: top; }
}

/* ── SECTION SHARED ─────────────────────────────────────── */
.section-pad { padding: clamp(4.5rem, 9vh, 7.5rem) 0; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-teal);
  margin-bottom: 1.2rem;
}

.section-title {
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  margin-bottom: 3rem;
  max-width: 22ch;
}

/* ── ABOUT ──────────────────────────────────────────────── */
.about { background: var(--c-white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

.about-headline h2 {
  font-size: clamp(2.4rem, 3.8vw, 3.6rem);
  line-height: 1.06;
}
.about-headline h2 em { color: var(--c-teal); }

.about-body p {
  font-size: 1.03rem;
  line-height: 1.82;
  color: #374151;
  margin-bottom: 1.1rem;
}
.about-cta { margin-top: 1.75rem; }

/* credential strip */
.credential-strip {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.6rem 2rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  background: var(--c-surface);
}
.credential-badge { display: flex; align-items: center; gap: 0.9rem; flex: 0 0 auto; }
.credential-badge strong { display: block; font-size: 0.95rem; font-weight: 700; }
.credential-badge span { font-size: 0.8rem; color: var(--c-muted); }

.cred-divider { width: 1px; height: 52px; background: var(--c-border); flex: 0 0 auto; }

.credential-attrs { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.attr { display: flex; flex-direction: column; gap: 0.15rem; }
dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-muted); }
dd { font-size: 0.92rem; font-weight: 600; color: var(--c-ink); }
dd a { color: var(--c-teal); }
dd a:hover { text-decoration: underline; }

/* ── EXPERTISE ──────────────────────────────────────────── */
.dark-section {
  background: var(--c-ink);
  color: var(--c-white);
}
.dark-section .section-title { color: var(--c-white); }

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

.exp-card {
  position: relative;
  padding: 1.85rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-out);
}
.exp-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--c-teal), var(--c-blue));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.exp-card:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); transform: translateY(-4px); }
.exp-card:hover::after { opacity: 1; }

.exp-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 50px; height: 50px;
  border-radius: 13px;
  background: var(--c-teal-dim);
  color: var(--c-teal);
  margin-bottom: 1.4rem;
  transition: background 0.3s;
}
.exp-card:hover .exp-icon { background: rgba(20, 184, 166, 0.22); }

.exp-num {
  position: absolute;
  top: 1.5rem; right: 1.6rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.16);
}

.exp-card h3 {
  font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--c-white); margin-bottom: 0.65rem;
}
.exp-card p { font-size: 0.88rem; line-height: 1.72; color: rgba(255, 255, 255, 0.5); }

/* ── PUBLICATIONS ───────────────────────────────────────── */
.publications { background: var(--c-surface); }

.pub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.pub-card {
  display: flex;
  flex-direction: column;
  padding: 2.4rem;
  border: 1px solid var(--c-border);
  border-radius: 26px;
  background: var(--c-white);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.pub-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

.pub-card-dark {
  background: var(--c-ink);
  border-color: rgba(255, 255, 255, 0.07);
  color: var(--c-white);
}
.pub-card-dark:hover { background: #141929; }

.pub-meta { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.4rem; }

.pub-tag {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.71rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--c-teal-dim); color: var(--c-teal);
}

.pub-org { font-size: 0.78rem; font-weight: 500; color: var(--c-muted); }
.pub-card-dark .pub-org { color: rgba(255, 255, 255, 0.42); }

.pub-card h3 {
  font-size: clamp(1.2rem, 1.9vw, 1.45rem);
  line-height: 1.22; letter-spacing: -0.03em; margin-bottom: 0.9rem;
}
.pub-card p { font-size: 0.92rem; line-height: 1.74; color: #6b7280; flex-grow: 1; margin-bottom: 1.8rem; }
.pub-card-dark p { color: rgba(255, 255, 255, 0.52); }

.pub-cta {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.88rem; font-weight: 700; color: var(--c-teal); margin-top: auto;
}
.pub-cta svg { transition: transform 0.2s var(--ease-out); }
.pub-card:hover .pub-cta svg { transform: translate(3px, -3px); }

/* ── CONNECT ────────────────────────────────────────────── */
.connect { background: var(--c-white); }

.connect-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 5rem 2rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(20,184,166,0.05), rgba(0,120,212,0.05));
}

.connect-badge { margin-bottom: 2rem; }

.connect-inner h2 {
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  line-height: 1.05; max-width: 17ch; margin-bottom: 1.2rem;
}
.connect-inner h2 em { color: var(--c-teal); }
.connect-inner p { font-size: 1.02rem; line-height: 1.75; color: var(--c-muted); max-width: 46ch; margin-bottom: 2.5rem; }

/* ── FOOTER ─────────────────────────────────────────────── */
.footer { background: var(--c-ink); padding: 2rem 0; }
.footer-inner {
  display: flex; align-items: center; gap: 1.5rem;
  justify-content: space-between;
}
.footer-brand {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  font-size: 1.1rem; letter-spacing: -0.05em; color: rgba(255,255,255,0.55);
}
.footer p { font-size: 0.83rem; color: rgba(255,255,255,0.42); }
.footer a { color: var(--c-teal); }
.footer a:hover { text-decoration: underline; }

/* ── PROJECTS ───────────────────────────────────────────── */
.projects { background: var(--c-white); }

.project-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--c-surface);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease, transform 0.3s var(--ease-out);
  min-height: 380px;
}
.project-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); }

.project-video { position: relative; }

.video-wrap {
  position: absolute;
  inset: 0;
}
.video-wrap iframe {
  width: 100%; height: 100%;
  border: none;
  display: block;
}

.project-body {
  padding: 2.5rem 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.proj-tag {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.71rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--c-teal-dim); color: var(--c-teal);
}
.proj-org { font-size: 0.78rem; font-weight: 500; color: var(--c-muted); }

.project-body h3 {
  font-size: clamp(1.3rem, 1.9vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 0.9rem;
  color: var(--c-ink);
}
.project-body p {
  font-size: 0.93rem;
  line-height: 1.78;
  color: #374151;
  margin-bottom: 1.25rem;
}

.proj-quote {
  margin: 0 0 1.4rem;
  padding: 0.9rem 1.2rem;
  border-left: 3px solid var(--c-teal);
  background: var(--c-teal-dim);
  border-radius: 0 12px 12px 0;
}
.proj-quote p {
  font-size: 0.9rem; font-style: italic;
  color: var(--c-ink); margin: 0 0 0.35rem;
  line-height: 1.6;
}
.proj-quote cite { font-size: 0.76rem; font-weight: 600; color: var(--c-muted); font-style: normal; }

.proj-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
}
.proj-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.1rem;
  border: 1.5px solid var(--c-border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-ink);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.proj-link:hover { border-color: var(--c-teal); color: var(--c-teal); background: var(--c-teal-dim); }

.proj-link-primary {
  background: var(--c-ink);
  color: var(--c-white) !important;
  border-color: var(--c-ink);
}
.proj-link-primary:hover { background: var(--c-teal) !important; border-color: var(--c-teal) !important; }

/* flip layout: text left, video right */
.project-card-flip .project-video { order: 2; }
.project-card-flip .project-body  { order: 1; }

/* Ghost net project — dark treatment */
.project-card-ghost {
  grid-template-columns: 0.62fr 1fr;
  background: var(--c-ink);
  border-color: rgba(255,255,255,0.06);
  color: var(--c-white);
}
.project-card-ghost .project-body h3 { color: var(--c-white); }
.project-card-ghost .project-body p  { color: rgba(255,255,255,0.6); }
.project-card-ghost .proj-org        { color: rgba(255,255,255,0.4); }
.project-card-ghost .proj-link       { border-color: rgba(255,255,255,0.18); color: rgba(255,255,255,0.7); }
.project-card-ghost .proj-link:hover { border-color: var(--c-teal); color: var(--c-teal); background: var(--c-teal-dim); }

.project-ghost-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #060c1d 0%, #0c1e3a 50%, #060c1d 100%);
  overflow: hidden;
  color: var(--c-teal);
  min-height: 380px;
}
.ghost-glow {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,184,166,0.22), transparent 70%);
  animation: ghostPulse 3.2s ease-in-out infinite;
}
@keyframes ghostPulse {
  0%, 100% { transform: scale(1);   opacity: 0.55; }
  50%       { transform: scale(1.4); opacity: 1;    }
}
.ghost-net {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20,184,166,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,184,166,0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  animation: netDrift 14s linear infinite;
}
@keyframes netDrift { from { background-position: 0 0; } to { background-position: 26px 26px; } }
.project-ghost-visual svg { position: relative; z-index: 1; opacity: 0.9; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  /* mobile nav */
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    padding: 0.75rem;
    background: rgba(8, 12, 30, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--c-border-hero);
    transform: translateY(-110%);
    transition: transform 0.3s var(--ease-out);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 0.85rem 1rem; font-size: 0.95rem; border-radius: 12px; }
  .nav-cta { justify-content: center; }

  /* hero */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: calc(var(--nav-h) + 2.5rem) var(--pad) 4rem;
  }
  .hero-text { order: 2; }
  .hero-visual { order: 1; }
  .portrait-ring { width: min(280px, 82%); margin: 0 auto; }
  .floater-loc   { left: -2%; }
  .floater-cert  { right: -2%; }

  /* projects */
  .project-card,
  .project-card-ghost { grid-template-columns: 1fr; min-height: auto; }
  .project-card-flip .project-video { order: 1; }
  .project-card-flip .project-body  { order: 2; }
  .project-ghost-visual { min-height: 240px; }
  .project-video { min-height: 56vw; }
  .project-body { padding: 1.75rem; }
  .project-card-ghost { grid-template-columns: 1fr; }

  /* sections */
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .expertise-grid { grid-template-columns: 1fr; }
  .pub-grid { grid-template-columns: 1fr; }
  .credential-strip { flex-wrap: wrap; }
  .cred-divider { display: none; }
  .footer-inner { flex-direction: column; text-align: center; gap: 0.6rem; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.3rem; }
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
  .connect-inner { padding: 2.5rem 1.25rem; }
}
