:root {
  --bg: #0a0a0a;
  --card: rgba(17, 17, 17, 0.6);
  --panel: rgba(28, 28, 28, 0.6);
  --line: rgba(255, 255, 255, 0.1);
  --ink: #ffffff;
  --soft: #9ca3af;
  --muted: #6b7280;
  --accent: #10b981;
  --accent-hi: #34d399;
  --radius: 2rem;
  --shadow: 0 10px 45px rgba(0, 0, 0, 0.35);
  --glow: 0 0 24px rgba(16, 185, 129, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

::selection { background: rgba(16, 185, 129, 0.3); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(80% 60% at 50% 0%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000 20%, transparent 100%);
}

.container { max-width: 1152px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 860px; }

h1, h2, h3 { font-weight: 900; letter-spacing: -0.02em; line-height: 1.05; text-transform: uppercase; }
h3 { text-transform: none; }

.accent { color: var(--accent); }
.dim { color: var(--soft); }

.kicker {
  font-size: 10px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.32em; color: var(--soft);
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.kicker.accent { color: var(--accent-hi); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(16,185,129,0.5); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }

/* ---------- Nav pill ---------- */
.nav { position: fixed; top: 20px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.nav-pill {
  pointer-events: auto; display: flex; align-items: center; gap: 6px;
  background: rgba(18, 18, 18, 0.7); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 999px;
  padding: 8px 10px 8px 20px; box-shadow: 0 10px 45px rgba(0, 0, 0, 0.5);
}
.brand { font-weight: 900; font-size: 1.2rem; text-decoration: none; color: var(--ink); margin-right: 14px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: 10px; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.2em; padding: 10px 14px; border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: #fff; background: rgba(255, 255, 255, 0.1); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 10px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.25s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px; font-weight: 800; font-size: 0.95rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.25s, background 0.25s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-hi)); color: #04120c; box-shadow: 0 8px 28px rgba(16, 185, 129, 0.4); }
.btn-primary:hover { box-shadow: 0 10px 36px rgba(16, 185, 129, 0.55); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-hi); }
.btn-small { padding: 10px 20px; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.18em; }
.btn-big { padding: 18px 44px; font-size: 1.1rem; }

/* ---------- Tiles ---------- */
.tile {
  background: var(--card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.tile:hover { border-color: rgba(16, 185, 129, 0.35); }
.tile h3 { font-size: 1.25rem; margin-bottom: 10px; }
.tile p { color: var(--soft); font-size: 0.95rem; }
.tile strong { color: var(--ink); font-weight: 600; }

/* ---------- Hero bento ---------- */
.hero { padding: 130px 0 60px; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.tile-name { grid-column: span 7; display: flex; flex-direction: column; justify-content: center; }
.tile-photo { grid-column: span 5; padding: 0; min-height: 480px; }
.tile-now { grid-column: span 5; }
.tile-stat { grid-column: span 3; display: flex; flex-direction: column; justify-content: center; }
.tile-loc { grid-column: span 4; }

.watermark {
  position: absolute; right: 8px; bottom: -30px; font-size: 9rem; font-weight: 900;
  color: #fff; opacity: 0.04; line-height: 1; pointer-events: none; user-select: none;
}
.tile-name h1 { font-size: clamp(2.8rem, 5.5vw, 4.5rem); margin-bottom: 16px; }
.role { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-bottom: 14px; text-transform: none; }
.role span { color: var(--muted); font-weight: 400; font-size: 0.95rem; }
.lede { color: var(--soft); font-size: 1rem; max-width: 32rem; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.tile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.tile-photo:hover img { transform: scale(1.05); }
.tile-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 45%);
  pointer-events: none;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips span {
  font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.14em;
  color: #d1d5db; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px; transition: 0.2s;
}
.chips span:hover { border-color: var(--accent); color: var(--accent-hi); transform: translateY(-2px); }

.stat-num { font-weight: 900; font-size: 2.4rem; letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px; }
.stat-num .accent { color: var(--accent); }
.stat-label { font-size: 0.85rem; color: var(--muted); }
.coords { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.08em; margin-top: 6px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.eyebrow {
  font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5em;
  color: var(--soft); text-align: center; margin-bottom: 16px;
}
.section h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); text-align: center; margin-bottom: 18px; }
.section-lede { text-align: center; color: var(--soft); font-size: 1.02rem; max-width: 44rem; margin: 0 auto 56px; }
.section-lede strong, .role-card strong { color: var(--ink); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-3 .tile:hover { transform: translateY(-4px); }

/* ---------- Experience roles ---------- */
.roles { display: grid; gap: 16px; }
.role-card { border-radius: 1.5rem; padding: 28px 32px; }
.role-card:hover { transform: translateY(-3px); box-shadow: var(--shadow), var(--glow); }
.role-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.org { color: var(--accent-hi); font-weight: 600; font-size: 0.95rem; margin-bottom: 12px; text-transform: none; }
.role-card ul { list-style: none; }
.role-card li { position: relative; padding-left: 20px; margin-bottom: 7px; color: var(--soft); font-size: 0.95rem; }
.role-card li::before { content: "–"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---------- Skills ---------- */
.skills-panel { border-radius: 2.5rem; padding: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.skill-cat .kicker { color: var(--accent-hi); }
.skill-cat .chips { margin-top: 0; }

/* ---------- Highlights bento ---------- */
.bento-sm { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.win-feature { grid-column: span 2; background: linear-gradient(135deg, rgba(16,185,129,0.12), var(--card)); border-color: rgba(16,185,129,0.3); }
.win-feature h3 { font-size: 1.6rem; }
.bento-sm .tile:hover { transform: translateY(-4px); box-shadow: var(--shadow), var(--glow); }

/* ---------- Education ---------- */
.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 48px; }
.edu-grid .tile { border-radius: 1.5rem; padding: 24px 28px; }
.edu-grid h3 { font-size: 1.05rem; }
.edu-grid p { font-size: 0.88rem; color: var(--muted); }
.pubs-title { font-size: 1.2rem; margin-bottom: 16px; text-transform: uppercase; }
.pubs { list-style: none; display: grid; gap: 12px; }
.pubs li {
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 0 1rem 1rem 0; padding: 16px 20px; font-size: 0.92rem; color: var(--soft);
}

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact .btn-big { margin: 32px 0; }
.socials { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.socials a {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--ink); font-weight: 700; font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 999px; padding: 12px 24px;
  transition: 0.2s;
}
.socials a:hover { border-color: var(--accent); color: var(--accent-hi); transform: translateY(-2px); box-shadow: var(--glow); }
.socials svg { width: 19px; height: 19px; }
.location { color: var(--muted); font-size: 0.92rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer p { color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.25em; }
.to-top { color: var(--accent-hi); font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.to-top:hover { text-decoration: underline; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px) scale(0.98); transition: opacity 0.62s ease, transform 0.62s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .tile-name, .tile-photo { grid-column: span 12; }
  .tile-photo { min-height: 380px; max-height: 480px; }
  .tile-now { grid-column: span 7; }
  .tile-stat { grid-column: span 6; }
  .tile-loc { grid-column: span 5; }
  .grid-3 { grid-template-columns: 1fr; }
  .skills-panel { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero { padding-top: 110px; }
  .nav-links {
    position: fixed; top: 76px; left: 16px; right: 16px; flex-direction: column;
    background: rgba(18, 18, 18, 0.97); border: 1px solid var(--line); border-radius: 1.5rem;
    padding: 12px; gap: 2px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; font-size: 12px; }
  .nav-toggle { display: flex; }
  .nav-pill .btn-small { display: none; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .tile-now, .tile-stat, .tile-loc { grid-column: span 12; }
  .bento-sm { grid-template-columns: 1fr; }
  .win-feature { grid-column: span 1; }
  .section { padding: 60px 0; }
  .tile { padding: 26px; border-radius: 1.5rem; }
  .watermark { font-size: 6rem; }
}
