/* ==========================================================================
   Anandu Sreenivasan — Portfolio
   Light Premium Tech design system
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --bg-deep: #eaf1fc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: rgba(10, 15, 30, 0.09);
  --border-strong: rgba(10, 15, 30, 0.16);
  --text: #0b0f19;
  --text-muted: #545a6e;
  --text-dim: #9093a3;

  --accent: #2563eb;
  --accent-2: #3b82f6;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent-border: rgba(37, 99, 235, 0.35);
  --on-accent: #ffffff;
  --error: #dc2626;
  --gold: #b8860b;

  --font-display: 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --container: 1200px;
  --container-narrow: 1000px;
  --container-tight: 900px;

  --pad: clamp(20px, 5vw, 64px);
  --radius: 22px;
  --radius-sm: 9px;
  --radius-pill: 999px;

  color-scheme: light;
}

/* Only the continuous/looping decorative motion is suppressed for
   prefers-reduced-motion — one-shot hover, fade, and reveal transitions
   stay on since they carry information and pose no vestibular risk. */
@media (prefers-reduced-motion: reduce) {
  .hero__dot, .hero__portrait::before {
    animation: none !important;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(37, 99, 235, 0.08), transparent 70%),
    radial-gradient(rgba(37, 99, 235, 0.09) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.02 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: auto, 26px 26px, auto;
  background-repeat: no-repeat, repeat, repeat;
  background-attachment: scroll, scroll, scroll;
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--text);
  text-decoration: none;
}

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

::selection { background: rgba(37, 99, 235, 0.22); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 300;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.container--narrow { max-width: var(--container-narrow); }
.container--tight { max-width: var(--container-tight); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow--center { justify-content: center; }
.eyebrow--muted { color: var(--text-dim); }
.eyebrow--muted .eyebrow__dot { background: var(--text-dim); box-shadow: none; }
.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  flex-shrink: 0;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--pad);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.nav__brand {
  display: flex;
  align-items: center;
}
.nav__brand img {
  height: 34px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 38px);
}

.nav__link {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.15s ease;
  position: relative;
  padding: 4px 0;
}
.nav__link:hover { color: var(--text); }
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav__cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.nav__cta:hover { filter: brightness(1.06); color: var(--on-accent); box-shadow: 0 8px 22px rgba(37, 99, 235, 0.22); }
.nav__cta:active { transform: scale(0.97); }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  flex-shrink: 0;
}
.nav__toggle svg { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(300px, 82vw);
    background: var(--bg-alt);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    padding: 90px 28px 28px;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(.2,.9,.25,1);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__link {
    width: 100%;
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--border);
  }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--accent); }
  .nav__cta { margin-top: 18px; text-align: center; width: 100%; }
  .nav__toggle { display: inline-flex; }
}

.nav__scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(6, 6, 7, 0.6);
  backdrop-filter: blur(2px);
}
.nav__scrim.is-open { display: block; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 27px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: var(--on-accent);
}
.btn--primary:hover { filter: brightness(1.05); color: var(--on-accent); box-shadow: 0 10px 26px rgba(37, 99, 235, 0.22); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: var(--accent-border); color: var(--text); background: rgba(255,255,255,0.02); }

.btn--block { width: 100%; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(20px, 3.5vw, 44px) var(--pad) clamp(20px, 3vw, 36px);
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(37, 99, 235, 0.16) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 65% 35%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 65% 35%, #000 0%, transparent 75%);
  pointer-events: none;
}

.network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
  -webkit-mask-image: radial-gradient(ellipse 95% 100% at 50% 40%, #000 0%, #000 70%, transparent 98%);
  mask-image: radial-gradient(ellipse 95% 100% at 50% 40%, #000 0%, #000 70%, transparent 98%);
}

.hero__content { position: relative; z-index: 1; }

.hero__greeting {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px 9px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.hero__greeting strong { color: var(--text); font-weight: 600; }

.hero__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  flex-shrink: 0;
  animation: pulseDot 2.4s ease-in-out infinite;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
  margin: 0 0 14px;
  letter-spacing: -0.03em;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-2), var(--accent) 65%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  font-size: clamp(14.5px, 1.3vw, 16.5px);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 0 22px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
}
.hero__meta a, .hero__meta button {
  color: var(--text-dim);
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.hero__meta a:hover, .hero__meta button:hover { color: var(--accent); }
.hero__meta span.sep { color: var(--text-dim); }

.hero__portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-top: clamp(18px, 2.5vw, 30px);
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.hero__ghost {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4.5vw, 46px);
  letter-spacing: 0;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-strong);
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.hero__portrait::before {
  content: '';
  position: absolute;
  top: 6%;
  left: -4%;
  width: 108%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22), transparent 68%);
  filter: blur(36px);
  z-index: 0;
  pointer-events: none;
  animation: orbFloat 11s ease-in-out infinite alternate;
}

.avatar {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 28% 18%, rgba(37, 99, 235, 0.16), transparent 55%),
    linear-gradient(165deg, #eef2f8, #dde6f2 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(10,15,30,0.04);
}
.avatar__initials {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(52px, 8.5vw, 84px);
  letter-spacing: -0.03em;
  background: linear-gradient(160deg, var(--text), var(--accent) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.avatar__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__stat-float {
  position: relative;
  z-index: 1;
  margin-top: -28px;
  width: calc(100% - 32px);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 20px 46px rgba(0,0,0,0.45);
}
.hero__stat-float__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  flex-shrink: 0;
}
.hero__stat-float__label {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.35;
}

@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; }
  .hero__portrait { max-width: 320px; margin: 0 auto; }
  .hero__ghost { display: none; }
}

/* ==========================================================================
   Intro / about blurb
   ========================================================================== */

.intro__text {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 auto 16px;
  max-width: 680px;
}
.intro__text:last-child { margin-bottom: 0; }

/* ==========================================================================
   Stats strip
   ========================================================================== */

.stats {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.stats::before {
  content: '';
  position: absolute;
  top: -90px; left: -70px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 70%);
  pointer-events: none;
}
.stats::after {
  content: '';
  position: absolute;
  bottom: -110px; right: -80px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.09), transparent 70%);
  pointer-events: none;
}
.stats > * { position: relative; z-index: 1; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 44px var(--pad);
}
.stats__grid > div {
  padding-left: 20px;
  border-left: 1px solid var(--border);
}
.stats__grid > div:first-child { border-left: none; padding-left: 0; }
.stats__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 42px);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats__label {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.4;
}
@media (max-width: 700px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid > div:nth-child(2n+1) { border-left: none; padding-left: 0; }
}

/* ==========================================================================
   Trusted-by chips
   ========================================================================== */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.chip {
  padding: 11px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.chip:hover { border-color: var(--accent-border); color: var(--text); background: var(--accent-soft); }

/* ==========================================================================
   Section heading row
   ========================================================================== */

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(27px, 3.2vw, 36px);
  margin: 0;
  letter-spacing: -0.025em;
}
.h2--sm { font-size: clamp(22px, 2.6vw, 28px); }
.link-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  transition: color 0.15s ease;
}
.link-more:hover { color: var(--accent); }

/* ==========================================================================
   Cards
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  background: linear-gradient(165deg, rgba(37, 99, 235, 0.08), var(--surface) 45%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.25s cubic-bezier(.2,.9,.25,1), border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(37, 99, 235, 0.12), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-border);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
}
.card:hover::before { opacity: 1; }
.card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card__eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 15px;
}
.card__title {
  font-family: var(--font-display);
  font-size: 19.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 11px;
}
.card__body {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}
.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 17px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 11px;
}

.card--flat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card--flat:hover { transform: translateY(-4px); border-color: var(--accent-border); }
.card--flat .card__date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.card--flat h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; font-size: 18.5px; }
.card--flat p { font-size: 14px; }
.card--flat .stack {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
}

@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .card-grid, .card-grid--2 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Numbered project list
   ========================================================================== */

.project-list {
  display: flex;
  flex-direction: column;
}
.project-row {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 32px);
  padding: 28px 10px;
  border-top: 1px solid var(--border);
  transition: background 0.2s ease, padding-left 0.2s ease;
  border-radius: var(--radius-sm);
}
.project-row:last-child { border-bottom: 1px solid var(--border); }
.project-row:hover { background: var(--accent-soft); padding-left: 22px; }
.project-row__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.02em;
  color: var(--text-dim);
  flex-shrink: 0;
  width: 56px;
}
.project-row__main { flex: 1; min-width: 0; }
.project-row__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 9px;
}
.project-row__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.project-row__body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  max-width: 640px;
}
.project-row__arrow {
  font-size: 20px;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}
.project-row:hover .project-row__arrow { color: var(--accent); transform: translateX(4px); }
@media (max-width: 640px) {
  .project-row { flex-wrap: wrap; }
  .project-row__arrow { display: none; }
}

/* ==========================================================================
   Certifications (badge cards)
   ========================================================================== */

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}
.badge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 26px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(37, 99, 235, 0.06), var(--surface) 55%);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(.2,.9,.25,1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.badge::before {
  content: '';
  position: absolute;
  top: -46px; right: -46px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16), transparent 70%);
  pointer-events: none;
}
.badge:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}
.badge__icon {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  padding: 2px;
  flex-shrink: 0;
  background: conic-gradient(from 180deg, var(--accent), var(--accent-2), rgba(124, 58, 237, 0.9), var(--accent));
}
.badge__icon-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge__text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; }
.badge__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.5;
  display: inline;
  background-image: linear-gradient(transparent 60%, var(--accent-soft) 60%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.badge__issuer {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   CTA banner
   ========================================================================== */

.cta {
  max-width: none;
  margin: 0;
  padding: clamp(60px, 8vw, 96px) var(--pad);
  text-align: center;
  position: relative;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta > * { position: relative; z-index: 1; max-width: var(--container); margin-left: auto; margin-right: auto; }
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 110%, rgba(124, 58, 237, 0.1), transparent 55%),
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.14), transparent 60%);
  pointer-events: none;
}
.cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(27px, 3.6vw, 38px);
  letter-spacing: -0.025em;
  margin: 0 auto 16px;
}
.cta p { font-size: 16px; color: var(--text-muted); margin: 0 auto 32px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--bg-deep);
  padding: 32px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer__copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}
.footer__links {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer__links a, .footer__links button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font: inherit;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.footer__links a:hover, .footer__links button:hover {
  color: var(--text);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

/* ==========================================================================
   Page hero (Experience / Projects / Contact)
   ========================================================================== */

.page-hero {
  position: relative;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: clamp(52px, 8vw, 76px) var(--pad) 24px;
}
.page-hero > *:not(.network-canvas) { position: relative; z-index: 1; }
.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 0%, rgba(37, 99, 235, 0.16), transparent 45%),
    radial-gradient(circle at 88% 30%, rgba(124, 58, 237, 0.12), transparent 45%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
}
.page-hero--wide { max-width: var(--container); }
.page-hero--center { max-width: var(--container-tight); text-align: center; padding-top: clamp(64px, 10vw, 104px); }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.page-hero p {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0;
}
.page-hero--center p { margin-inline: auto; max-width: 560px; }

/* ==========================================================================
   Experience timeline
   ========================================================================== */

.timeline {
  position: relative;
  padding-left: 76px;
}

.timeline__graph {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  overflow: visible;
  pointer-events: none;
}
.timeline__path-bg {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.timeline__path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(37, 99, 235, 0.6));
}
.timeline__node {
  fill: var(--bg-alt);
  stroke: var(--text-dim);
  stroke-width: 2;
  r: 5;
  transition: fill 0.35s ease, stroke 0.35s ease, r 0.35s cubic-bezier(.2,.9,.25,1);
}
.timeline__node.is-active {
  fill: var(--accent);
  stroke: var(--accent);
  r: 6;
  filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.65));
}

.timeline-item {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  position: relative;
}
.timeline-item:first-child { border-top: none; padding-top: 6px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item__date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.timeline-item__span { color: var(--text-dim); }
.timeline-item h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.015em;
  margin: 0 0 5px;
}
.timeline-item__org {
  font-size: 14.5px;
  color: var(--accent);
  margin-bottom: 6px;
  font-weight: 500;
}
.timeline-item__location {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.timeline-item__blurb {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0 0 14px;
}
.timeline-item ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.85;
}
.timeline-item ul li + li { margin-top: 2px; }
.timeline-item ul li::marker { color: var(--accent); }

@media (max-width: 640px) {
  .timeline { padding-left: 46px; }
  .timeline__graph { width: 30px; }
}

/* ==========================================================================
   Skills grid
   ========================================================================== */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.skills-grid dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.skills-grid dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
}
@media (max-width: 640px) {
  .skills-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Honors list
   ========================================================================== */

.honors {
  display: flex;
  flex-direction: column;
}
.honors__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
}
.honors__row:last-child { border-bottom: 1px solid var(--border); }
.honors__title { color: var(--text); }
.honors__meta { color: var(--text-dim); white-space: nowrap; font-family: var(--font-mono); font-size: 13px; }
@media (max-width: 560px) {
  .honors__row { flex-direction: column; gap: 4px; }
  .honors__meta { white-space: normal; }
}

/* ==========================================================================
   Contact tiles
   ========================================================================== */

.contact-grid {
  max-width: var(--container-tight);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(60px, 8vw, 104px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.contact-tile {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.25s cubic-bezier(.2,.9,.25,1), border-color 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
  overflow: hidden;
}
.contact-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}
.contact-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(37, 99, 235, 0.12), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.contact-tile:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
}
.contact-tile:hover::before { opacity: 1; }
.contact-tile:hover::after { opacity: 1; }
.contact-tile > * { position: relative; z-index: 1; }
.contact-tile__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact-tile__value {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  word-break: break-word;
}
@media (max-width: 560px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Email modal
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 6, 0.78);
  backdrop-filter: blur(10px);
  padding: 20px;
}
.modal-overlay.is-open { display: flex; animation: overlayIn 0.2s ease both; }

.modal {
  width: 420px;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  animation: modalIn 0.32s cubic-bezier(.2,.9,.25,1) both;
  position: relative;
}
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 6px;
  border-radius: 6px;
}
.modal__close:hover { color: var(--text); }

.modal__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 11px;
}
.modal h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19.5px;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: var(--text);
}
.modal p.hint {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 22px;
}

.modal__success { text-align: center; animation: fadeUp 0.35s ease both; }
.modal__check {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-size: 22px;
  color: var(--accent);
}
.modal__success h3 { margin-bottom: 20px; }
.modal__email-value {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text);
  margin-bottom: 18px;
  word-break: break-all;
}
.modal__success-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.modal__question { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
.modal__input {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 12px;
  outline: none;
  font-family: var(--font-body);
  box-sizing: border-box;
}
.modal__input:focus { border-color: var(--accent); }
.modal__error {
  font-size: 13px;
  color: var(--error);
  margin: -4px 0 12px;
}

/* ==========================================================================
   Keyframes
   ========================================================================== */

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: scale(0.94) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes orbFloat { from { transform: translateY(0) translateX(0); } to { transform: translateY(24px) translateX(-12px); } }
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft); } 50% { box-shadow: 0 0 0 7px rgba(37, 99, 235, 0.06); } }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.hero__content, .hero__portrait { animation: fadeUp 0.6s ease both; }
