/* =========================================================
   Industrial-Luxury Dark & Editorial Light Theme System
   ========================================================= */
:root {
  --bg: #f8fafc;
  --bg-elevated: rgba(255, 255, 255, 0.92);
  --bg-nav: rgba(248, 250, 252, 0.88);
  --bg-card: #ffffff;
  --bg-pill: #f1f5f9;
  --bg-pill-active: #e2e8f0;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-accent: rgba(37, 99, 235, 0.34);
  --text-strong: #0f172a;
  --text: #1e293b;
  --text-body: #334155;
  --text-muted: #475569;
  --text-dim: #64748b;
  --accent: #1d4ed8;
  --accent-orange: #0284c7;
  --accent-soft: rgba(37, 99, 235, 0.09);
  --accent-pill-bg: rgba(37, 99, 235, 0.08);
  --accent-pill-text: #1e40af;
  --accent-pill-border: rgba(37, 99, 235, 0.24);
  --grid-line: rgba(15, 23, 42, 0.055);
  --spotlight: rgba(37, 99, 235, 0.09);
  --aurora-1: rgba(56, 189, 248, 0.16);
  --aurora-2: rgba(37, 99, 235, 0.1);
  --emerald: #10b981;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -12px rgba(15, 23, 42, 0.08);
  --font-display: "Archivo", "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

html.dark {
  --bg: #090d16;
  --bg-elevated: rgba(15, 23, 42, 0.88);
  --bg-nav: rgba(9, 13, 22, 0.84);
  --bg-card: rgba(255, 255, 255, 0.032);
  --bg-pill: rgba(148, 163, 184, 0.08);
  --bg-pill-active: rgba(148, 163, 184, 0.15);
  --border: rgba(148, 163, 184, 0.13);
  --border-strong: rgba(148, 163, 184, 0.24);
  --border-accent: rgba(56, 189, 248, 0.38);
  --text-strong: #ffffff;
  --text: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #38bdf8;
  --accent-orange: #60a5fa;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --accent-pill-bg: rgba(56, 189, 248, 0.11);
  --accent-pill-text: #7dd3fc;
  --accent-pill-border: rgba(56, 189, 248, 0.28);
  --grid-line: rgba(148, 163, 184, 0.055);
  --spotlight: rgba(56, 189, 248, 0.13);
  --aurora-1: rgba(56, 189, 248, 0.14);
  --aurora-2: rgba(37, 99, 235, 0.12);
  --emerald: #34d399;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 18px 40px -24px rgba(0, 0, 0, 0.7);
}

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

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8, #3b82f6, #818cf8);
  z-index: 100;
  transition: width 0.08s linear;
}

/* Subtle Architectural Grid + Ambient Aurora */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 60% at 50% 0%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 60% at 50% 0%, #000 35%, transparent 100%);
}

.bg-aurora {
  position: fixed;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 620px;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 55% 50% at 62% 35%, var(--aurora-1), transparent 70%),
    radial-gradient(ellipse 45% 45% at 32% 45%, var(--aurora-2), transparent 72%);
  filter: blur(28px);
  animation: aurora 14s ease-in-out infinite alternate;
}

@keyframes aurora {
  0% { transform: translateX(-50%) translateY(0) scale(1); }
  100% { transform: translateX(-48%) translateY(20px) scale(1.06); }
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   Header & Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: -0.03em;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.36);
}

.brand-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-link:hover {
  color: var(--text-strong);
}

.nav-link.active {
  background: var(--bg-pill-active);
  color: var(--text-strong);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.34);
  filter: brightness(1.06);
}

.btn-nav {
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 13px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-strong);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.btn-secondary:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: var(--bg-pill);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.icon-btn:hover {
  color: var(--text-strong);
  border-color: var(--border-strong);
  background: var(--bg-pill);
}

html.dark .icon-moon { display: none; }
html:not(.dark) .icon-sun { display: none; }

.mobile-menu-btn {
  display: none;
}

.mobile-menu-btn[aria-expanded="false"] .icon-close { display: none; }
.mobile-menu-btn[aria-expanded="true"] .icon-menu { display: none; }

.mobile-drawer {
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-nav);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-link {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
}

.mobile-link.active,
.mobile-link:hover {
  background: var(--bg-pill-active);
  color: var(--text-strong);
}

.mobile-cta {
  margin-top: 8px;
}

/* =========================================================
   Hero Section
   ========================================================= */
.hero {
  padding-top: 48px;
  padding-bottom: 16px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 40px;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
  margin-bottom: 16px;
}

.status-dot-wrap {
  position: relative;
  width: 8px;
  height: 8px;
  display: inline-flex;
}

.status-dot-ping {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--emerald);
  opacity: 0.75;
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--emerald);
  display: inline-block;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(42px, 5.8vw, 68px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--text-strong);
}

.hero-subhead {
  margin: 18px 0 0;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 600;
  line-height: 1.32;
  color: var(--text-body);
  max-width: 560px;
}

.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.18em;
  letter-spacing: -0.01em;
}

.text-gradient-animated {
  background: linear-gradient(90deg, #7dd3fc, #38bdf8, #60a5fa, #93c5fd, #7dd3fc);
  background-size: 240% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-pan 6s linear infinite;
}

html:not(.dark) .text-gradient-animated {
  background: linear-gradient(90deg, #1d4ed8, #0284c7, #2563eb, #0369a1, #1d4ed8);
  background-size: 240% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes gradient-pan {
  0% { background-position: 0% center; }
  100% { background-position: 240% center; }
}

.role-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
}

.role-badge svg {
  color: var(--accent);
}

.hero-bio {
  margin: 18px 0 0;
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--text-muted);
  max-width: 590px;
}

.hero-bio strong {
  color: var(--text-strong);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--text-dim);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-link:hover {
  color: var(--accent);
}

/* Grounded Snapshot Card */
.snapshot-card {
  padding: 24px 26px;
}

.snapshot-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--accent);
  margin-bottom: 16px;
}

.snapshot-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.snapshot-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.snapshot-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.snapshot-row dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.snapshot-row dd {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
}

/* =========================================================
   Marquee Strip
   ========================================================= */
.marquee-shell {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee-shell:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 12px;
}

.marquee-pill {
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
  white-space: nowrap;
}

/* =========================================================
   Sections & Cards (Tighter vertical pacing, always visible)
   ========================================================= */
.section {
  padding: 44px 0;
}

.section-header {
  margin-bottom: 24px;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.card {
  position: relative;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color 0.22s ease;
}

.card:hover {
  border-color: var(--border-strong);
}

.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), var(--spotlight), transparent 65%);
}

.spotlight:hover::after {
  opacity: 1;
}

.icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-pill-border);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.card-heading {
  margin: 14px 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text-strong);
}

.toolbox-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
}

.toolbox-head .card-heading {
  margin: 0;
}

.card-body {
  margin: 0;
  font-size: 14.6px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.kpi-value {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 3.2vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.kpi-label {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* Bento 8 / 4 */
.bento-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
}

.bento-top-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, #3b82f6, transparent);
}

.bento-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 12px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.chip {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-pill);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-body);
}

.bento-copy {
  margin: 0;
  font-size: 14.8px;
  line-height: 1.65;
  color: var(--text-muted);
}

.now-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 12px;
}

.now-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.25;
  color: var(--text-strong);
}

.now-copy {
  margin: 0;
  font-size: 14.4px;
  line-height: 1.62;
  color: var(--text-muted);
}

.now-copy strong {
  color: var(--text-strong);
}

/* Grids */
.three-col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.two-col-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* Chevron Lists */
.chevron-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.chevron-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14.3px;
  line-height: 1.58;
  color: var(--text-body);
}

.chevron-list li::before {
  content: "•";
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

/* =========================================================
   Timeline / Experience
   ========================================================= */
.timeline {
  position: relative;
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 1.5px;
  background: linear-gradient(to bottom, var(--accent), var(--border) 35%, var(--border));
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -30px;
  top: 28px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--bg);
  border: 2px solid var(--border-strong);
}

.timeline-dot-active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.exp-card-active {
  border-color: var(--border-accent);
}

.exp-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.exp-role {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.exp-sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-pill-bg);
  border: 1px solid var(--accent-pill-border);
  color: var(--accent-pill-text);
  font-size: 12.5px;
  font-weight: 600;
}

.exp-sub-muted {
  background: var(--bg-pill);
  border-color: var(--border);
  color: var(--text-muted);
}

.exp-meta {
  text-align: right;
  flex-shrink: 0;
}

.exp-dates {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-body);
  font-weight: 500;
}

.exp-loc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--text-dim);
}

.pill-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pill-amber {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent-pill-bg);
  border: 1px solid var(--accent-pill-border);
  color: var(--accent-pill-text);
  font-size: 12px;
  font-weight: 600;
}

.exp-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 14px;
  margin-bottom: 14px;
  border-top: 1px solid var(--border);
}

.exp-details[hidden] {
  display: none;
}

.exp-group-title {
  margin: 0 0 8px;
  padding-left: 10px;
  border-left: 2.5px solid var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-strong);
}

.accordion-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--bg-pill);
  border: 1px solid var(--border);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.accordion-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Expertise Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-pill);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.tag:hover {
  border-color: var(--accent-pill-border);
  color: var(--text-strong);
}

/* Education */
.edu-school {
  font-size: 14.5px;
  color: var(--text-muted);
}

.edu-year {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
  margin-top: 4px;
}

/* Contact CTA & Footer */
.contact-section {
  padding-top: 24px;
  padding-bottom: 44px;
}

.contact-card {
  position: relative;
  border-radius: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 48px 28px;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.contact-top-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, #3b82f6, #818cf8, transparent);
}

.contact-glow {
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 420px;
  height: 320px;
  background: radial-gradient(circle, var(--aurora-1), transparent 70%);
  pointer-events: none;
}

.contact-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--accent);
  margin-bottom: 10px;
}

.contact-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.contact-sub {
  margin: 14px auto 0;
  max-width: 500px;
  font-size: 15px;
  color: var(--text-muted);
}

.contact-ctas {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0 28px;
}

.footer-inner {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

/* Floating Back to Top */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-strong);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, border-color 0.18s ease;
  z-index: 40;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* =========================================================
   Responsive Breakpoints
   ========================================================= */
@media (max-width: 1024px) {
  .nav-links,
  .btn-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: grid;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-grid,
  .three-col-grid,
  .two-col-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 28px;
  }

  .section {
    padding: 36px 0;
  }

  .kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .card {
    padding: 18px;
  }

  .snapshot-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .timeline {
    padding-left: 22px;
  }

  .timeline-dot {
    left: -20px;
  }

  .exp-top {
    flex-direction: column;
    gap: 6px;
  }

  .exp-meta {
    text-align: left;
  }

  .contact-card {
    padding: 36px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg-aurora, .status-dot-ping, .text-gradient-animated, .marquee-track {
    animation: none;
  }
}
