@charset "UTF-8";

/* ==========================================================================
   Design Tokens & Modern Typography
   Palette: Architectural Navy, Crisp Off-White, Precision Ink, Slate
   ========================================================================== */
:root {
  --canvas: #fafbfd;
  --surface: #ffffff;
  --surface-raised: #f4f7fb;
  --surface-subtle: #f8fafc;
  
  --ink: #0f172a;
  --ink-secondary: #334155;
  --ink-muted: #64748b;
  --ink-faint: #94a3b8;
  
  --line: #e2e8f0;
  --line-subtle: #edf2f7;
  --line-strong: #cbd5e1;
  
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-subtle: #eff6ff;
  --accent-border: #bfdbfe;
  
  --emerald: #059669;
  --emerald-subtle: #ecfdf5;
  --emerald-border: #a7f3d0;

  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-subtle: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-card: 0 4px 12px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  --shadow-hover: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
  
  --container-max: 1160px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body {
  background-color: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Remove side scrollbar completely across all browsers */
* {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

*::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

::selection {
  background: #dbeafe;
  color: #1e3a8a;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p {
  color: var(--ink-secondary);
}

/* Accessibility Focus States */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Utility / Icons */
.icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 12px 20px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 100;
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 40px);
}

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

.mobile-only {
  display: none !important;
}

.desktop-only {
  display: inline;
}

/* ==========================================================================
   Header & Sticky Navigation
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 251, 253, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.scroll-progress-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: transparent;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #3b82f6);
  transition: width 0.1s linear;
}

.header-inner {
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.brand-monogram {
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: #ffffff;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.12);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  line-height: 1.2;
}

.brand-role {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--ink-muted);
  font-weight: 500;
  letter-spacing: 0;
}

.navigation {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-secondary);
  padding: 6px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s var(--ease);
}

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

.nav-link:hover::after,
.nav-link[aria-current="location"]::after {
  width: 100%;
}

.nav-link[aria-current="location"] {
  color: var(--accent);
  font-weight: 600;
}

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

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-outline {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-secondary);
  transition: all 0.15s var(--ease);
}

.btn-outline:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--surface-subtle);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  place-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 1.75px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding-top: 56px;
  padding-bottom: 40px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 340px);
  gap: 56px;
  align-items: center;
}

.hero-content {
  order: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-secondary);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-border);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2.75rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 14px;
}

.hero-title-accent {
  color: var(--accent);
}

.hero-subtitle {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.hero-subtitle > span {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.hero-sep {
  color: var(--ink-faint);
  margin-inline: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
}

.hero-bio {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-muted);
  max-width: 580px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  height: 44px;
  padding: 0 20px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: all 0.2s var(--ease);
}

.btn-primary {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.12);
}

.btn-primary:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.14);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-secondary:hover {
  background: var(--surface-subtle);
  border-color: var(--ink-muted);
  transform: translateY(-1px);
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  width: 100%;
  max-width: 580px;
}

.hero-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
}

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

.hero-social-link .icon {
  width: 14px;
  height: 14px;
}

/* Portrait Card */
.profile-card {
  order: 2;
  position: relative;
  width: 100%;
  max-width: 330px;
  margin-inline: auto;
}

.portrait-wrapper {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.portrait-wrapper:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.portrait-img-box {
  position: relative;
  aspect-ratio: 4 / 4.8;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 4px);
  background: #e2e8f0;
}

.portrait-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
}

.profile-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 4px 6px;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.caption-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.caption-badge {
  color: var(--ink-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--surface-raised);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

/* ==========================================================================
   Credentials 4-Card Grid (2 in a row)
   ========================================================================== */
.credentials-bar {
  margin-top: 24px;
  margin-bottom: 64px;
}

.credentials-grid,
.credentials-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.cred-card,
.cred-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-subtle);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.cred-card:hover,
.cred-item:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.cred-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.cred-val {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.cred-val .highlight {
  color: var(--accent);
}

.cred-val .denom {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.cred-desc {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-top: 6px;
  line-height: 1.5;
}

/* ==========================================================================
   Section Layout & Typography System
   ========================================================================== */
.section {
  padding-block: 84px;
  border-top: 1px solid var(--line);
}

.section-tinted {
  background-color: var(--surface-subtle);
  border-bottom: 1px solid var(--line);
}

.section-header-block {
  margin-bottom: 48px;
  max-width: 780px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-lead {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-secondary);
}

/* ==========================================================================
   Research Section
   ========================================================================== */
.research-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.paper-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow-subtle);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.paper-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

.paper-header {
  margin-bottom: 16px;
}

.paper-meta-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.paper-type-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.paper-type-tag .icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.paper-role-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.paper-title {
  font-size: 1.3125rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.025em;
}

.paper-summary {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--ink-secondary);
  margin-bottom: 20px;
}

.paper-topics {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-subtle);
}

.topic-pill {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-secondary);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

.paper-expand-toggle {
  margin-top: 14px;
}

.paper-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  padding: 6px 0;
  transition: color 0.15s var(--ease);
}

.paper-details summary::-webkit-details-marker {
  display: none;
}

.paper-details summary:hover {
  color: var(--accent-hover);
}

.paper-details-icon {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-secondary);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  flex-shrink: 0;
}

.paper-details-icon .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.2;
  display: block;
  margin: auto;
  transition: transform 0.2s var(--ease);
}

.paper-details[open] .paper-details-icon {
  background: var(--accent-subtle);
  border-color: var(--accent-border);
  color: var(--accent);
}

.paper-details[open] .paper-details-icon .icon {
  transform: rotate(45deg);
}

.paper-expanded-content {
  margin-top: 14px;
  padding: 20px 22px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.expanded-block h5 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.expanded-block p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ink-secondary);
}

/* ==========================================================================
   Projects & Engineering Section
   ========================================================================== */
.projects-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: var(--radius-md);
}

.filter-btn {
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-muted);
  border-radius: var(--radius-sm);
  transition: all 0.15s var(--ease);
}

.filter-btn:hover {
  color: var(--ink);
}

.filter-btn.active {
  background: var(--ink);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

@media (max-width: 1120px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-subtle);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.project-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.project-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.project-category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}

.project-icon-box {
  width: 38px;
  height: 38px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
}

.project-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.3;
}

.project-highlights {
  list-style: none;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.project-highlights li {
  font-size: 0.875rem;
  color: var(--ink-secondary);
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.55;
}

.project-highlights li::before {
  content: '→';
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}

.tech-stack-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-subtle);
  margin-bottom: 16px;
}

.tech-stack-row span:not(.meta-separator) {
  color: var(--ink-secondary);
  font-weight: 500;
}

.project-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  font-size: 0.8438rem;
  font-weight: 600;
  color: var(--accent);
  padding-top: 14px;
  border-top: 1px solid var(--line-subtle);
  text-decoration: none;
}

.project-footer-link span {
  flex-grow: 1;
}

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

.project-footer-link .icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}

.project-footer-link .icon:first-child {
  color: var(--ink);
}

.project-footer-link:hover .icon:last-child {
  transform: translate(2px, -2px);
}

/* Featured Venture Showcase */
.venture-card {
  background: var(--ink);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.venture-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.venture-content {
  max-width: 680px;
}

.venture-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 8px;
}

.venture-title {
  font-size: 1.625rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.venture-desc {
  color: #cbd5e1;
  font-size: 0.9688rem;
  line-height: 1.75;
}

.venture-btn {
  background: #ffffff;
  color: var(--ink);
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition: all 0.2s var(--ease);
}

.venture-btn:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

/* ==========================================================================
   Experience Career Path Cards
   ========================================================================== */
.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.experience-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  padding: 32px 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  position: relative;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.experience-item:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.experience-item:first-child {
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.experience-item:last-child {
  padding-bottom: 32px;
}

.exp-period {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.exp-period .current-badge {
  display: inline-block;
  margin-left: 6px;
  color: var(--emerald);
  font-weight: 600;
}

.exp-main {
  display: flex;
  flex-direction: column;
}

.exp-role-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.exp-role {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.exp-company {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.exp-company:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.exp-desc {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--ink-secondary);
  margin-top: 8px;
  max-width: 700px;
}

.exp-bullets {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exp-bullets li {
  font-size: 0.875rem;
  color: var(--ink-secondary);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.exp-bullets li::before {
  content: '·';
  font-size: 1.25rem;
  color: var(--ink-muted);
  line-height: 1;
}

/* ==========================================================================
   Education & Recognition Section
   ========================================================================== */
.education-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: stretch;
}

.education-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.edu-header-main {
  min-width: 0;
  flex: 1 1 auto;
}

.edu-institution {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

.edu-degree {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.edu-major {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-top: 4px;
}

.edu-gpa-badge {
  text-align: right;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.edu-gpa-val {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.edu-gpa-val span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.edu-gpa-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 2px;
}

.edu-highlights {
  list-style: none;
  border-top: 1px solid var(--line-subtle);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.edu-highlights li {
  font-size: 0.875rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

/* Honors / Awards */
.awards-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-subtle);
}

.awards-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.awards-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.award-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.award-indicator {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  margin-top: 7px;
  flex-shrink: 0;
}

.award-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 4px;
}

.award-desc {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Skills Matrix Section
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.skill-category-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-subtle);
}

.skill-cat-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.skill-cat-desc {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.skill-items-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-item {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-secondary);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s var(--ease);
}

.skill-item:hover {
  background: var(--surface);
  border-color: var(--accent-border);
  color: var(--accent);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-card-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 56px 64px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}

.contact-left h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}

.contact-left p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-secondary);
  margin-bottom: 28px;
  max-width: 520px;
}

.email-copy-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.email-address {
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: #ffffff;
  border: 1px solid var(--accent-border);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.15s var(--ease);
}

.copy-btn:hover {
  background: var(--accent-subtle);
}

.copy-toast {
  font-size: 0.75rem;
  color: var(--emerald);
  font-weight: 600;
  display: none;
}

.copy-toast.show {
  display: inline;
}

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-channel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s var(--ease);
}

.contact-channel:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateX(3px);
}

.contact-channel-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-channel .icon {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-block: 32px;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

.footer-back-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ink-secondary);
}

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

/* ==========================================================================
   Responsive Breakpoints & Mobile/Tablet Layout Polish
   ========================================================================== */
@media (max-width: 1024px) {
  .container {
    width: 100%;
    padding-inline: 32px;
  }
  .hero-section {
    padding-top: 48px;
    padding-bottom: 32px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 300px);
    gap: 40px;
  }
  .credentials-grid,
  .credentials-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0;
  }
  .education-grid {
    grid-template-columns: 1fr;
  }
  .contact-card-box {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px;
  }
  .contact-left p {
    max-width: 100%;
  }
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .profile-card {
    order: 0;
    max-width: 260px;
    margin-inline: 0;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .venture-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .container {
    width: 100%;
    padding-inline: 26px;
  }
  .section {
    padding-block: 56px;
  }
  .section-header-block {
    margin-bottom: 32px;
  }
  .header-inner {
    height: 64px;
  }
  .menu-toggle {
    display: flex;
  }
  .navigation {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    padding: 14px 18px 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    box-shadow: 0 24px 44px -8px rgba(15, 23, 42, 0.16), 0 2px 8px rgba(15, 23, 42, 0.04);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    animation: menuSlideDown 0.22s var(--ease) forwards;
  }
  .navigation.is-open {
    display: flex;
  }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink-secondary);
    padding: 11px 16px;
    border-radius: var(--radius-md);
    border-bottom: none;
    background: transparent;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  }
  .nav-link::after {
    display: none !important;
  }
  .nav-link:hover,
  .nav-link:focus-visible {
    background: var(--surface-raised);
    color: var(--ink);
    transform: translateX(2px);
  }
  .nav-link[aria-current="location"] {
    background: var(--accent-subtle);
    color: var(--accent);
    font-weight: 600;
  }
  .nav-link[aria-current="location"]::after {
    content: '';
    display: block !important;
    position: static;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.22);
    flex-shrink: 0;
  }
  .nav-actions {
    padding-top: 14px;
    margin-top: 4px;
    border-top: 1px solid var(--line);
    width: 100%;
  }
  .nav-actions .btn-sm {
    width: 100%;
    justify-content: center;
    height: 46px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    background: var(--ink);
    color: #ffffff;
    border: 1px solid var(--ink);
    box-shadow: var(--shadow-card);
    gap: 9px;
    transition: all 0.2s var(--ease);
  }
  .nav-actions .btn-sm:hover,
  .nav-actions .btn-sm:active {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -2px rgba(29, 78, 216, 0.35);
  }
  .nav-actions .btn-sm .icon {
    width: 16px;
    height: 16px;
  }

@keyframes menuSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

  /* Mobile Hero Section */
  .hero-section {
    padding-top: 28px;
    padding-bottom: 32px;
  }
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .profile-card {
    order: 0;
    max-width: 180px;
    margin-inline: 0;
    margin-bottom: 4px;
  }
  .portrait-wrapper {
    padding: 6px;
    border-radius: var(--radius-md);
  }
  .portrait-img-box {
    aspect-ratio: 1 / 1;
    border-radius: calc(var(--radius-md) - 2px);
  }
  .profile-caption {
    display: none;
  }
  .status-indicator {
    font-size: 0.75rem;
    padding: 4px 10px;
    margin-bottom: 14px;
  }
  .hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    line-height: 1.1;
    margin-bottom: 10px;
  }
  .hero-subtitle {
    font-size: 0.8125rem;
    line-height: 1.45;
    margin-bottom: 14px;
    white-space: normal;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px 6px;
    width: 100%;
  }
  .hero-bio {
    font-size: 0.9375rem;
    line-height: 1.68;
    margin-bottom: 22px;
  }
  .hero-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
    width: 100%;
  }
  .hero-actions .btn {
    flex: 1 1 auto;
    min-width: 140px;
    height: 42px;
    font-size: 0.8438rem;
    padding: 0 16px;
  }
  .hero-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    width: 100%;
  }

  /* Credentials Banner */
  .credentials-bar {
    margin-top: 12px;
    margin-bottom: 44px;
  }
  .credentials-grid,
  .credentials-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0;
  }
  .cred-card,
  .cred-item {
    padding: 16px 14px;
  }
  .cred-kicker {
    font-size: 0.6875rem;
    margin-bottom: 4px;
  }
  .cred-val {
    font-size: 1.0625rem;
  }
  .cred-desc {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  /* Research Section on Mobile */
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: inline !important;
  }
  .research-grid {
    gap: 16px;
  }
  .paper-card {
    padding: 18px 16px;
    border-radius: var(--radius-md);
  }
  .paper-header {
    margin-bottom: 8px;
  }
  .paper-meta-pills {
    gap: 6px;
    margin-bottom: 6px;
  }
  .paper-title {
    font-size: 1.0625rem;
    line-height: 1.35;
    margin-bottom: 8px;
  }
  .paper-summary {
    font-size: 0.8438rem;
    line-height: 1.55;
    margin-bottom: 12px;
  }
  .paper-topics {
    gap: 5px;
    padding-bottom: 10px;
  }
  .paper-topics .topic-pill:nth-child(n+4) {
    display: none;
  }
  .topic-pill {
    font-size: 0.6875rem;
    padding: 3px 8px;
  }
  .paper-expand-toggle summary {
    font-size: 0.7813rem;
    padding: 7px 10px;
  }
  .paper-expanded-content {
    padding: 12px 10px;
    gap: 8px;
  }
  .expanded-block p {
    font-size: 0.8125rem;
    line-height: 1.5;
  }

  /* Projects & Experience on Mobile */
  .projects-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
  }
  .filter-bar {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding: 3px;
    gap: 4px;
  }
  .filter-btn {
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 0.75rem;
    flex-shrink: 0;
  }
  .project-card {
    padding: 24px 20px;
  }
  .project-title {
    font-size: 1.25rem;
  }
  .venture-card {
    padding: 24px 20px;
    gap: 18px;
  }
  .venture-title {
    font-size: 1.375rem;
  }
  .venture-desc {
    font-size: 0.875rem;
    line-height: 1.55;
  }
  .experience-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px 20px;
    border-radius: var(--radius-md);
  }
  .education-card,
  .awards-card,
  .skill-category-card {
    padding: 22px 18px;
  }
  .edu-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
  }
  .edu-header-main {
    width: 100%;
  }
  .edu-degree {
    font-size: 1.25rem;
  }
  .edu-gpa-badge {
    text-align: left;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    width: auto;
    max-width: 100%;
  }
  .edu-gpa-val {
    font-size: 1.25rem;
    line-height: 1;
  }
  .edu-gpa-label {
    margin-top: 0;
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .contact-card-box {
    padding: 28px 20px;
    border-radius: var(--radius-lg);
  }
  .contact-left h2 {
    font-size: 1.75rem;
  }
  .email-copy-box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
  }
  .email-address {
    font-size: 0.8125rem;
    word-break: break-all;
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .container {
    width: 100%;
    padding-inline: 24px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
    min-width: 100%;
  }
  .credentials-grid,
  .credentials-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0;
  }
  .cred-card,
  .cred-item {
    padding: 14px 12px;
    border-radius: var(--radius-sm);
  }
  .cred-kicker {
    font-size: 0.625rem;
    margin-bottom: 4px;
    letter-spacing: 0.04em;
  }
  .cred-val {
    font-size: 0.9375rem;
    line-height: 1.25;
  }
  .cred-val .denom {
    font-size: 0.6875rem;
  }
  .cred-desc {
    font-size: 0.6875rem;
    line-height: 1.35;
    margin-top: 3px;
  }
  .contact-channel {
    padding: 14px 16px;
    font-size: 0.8438rem;
  }
}

/* ==========================================================================
   Smooth Animations & Reveal Utilities
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* Hero subtle entrance */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.profile-card {
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

/* Smooth filtering transition for project cards */
.project-card {
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease), opacity 0.3s var(--ease);
}

.project-card.is-filtered-out {
  opacity: 0;
  transform: scale(0.97);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-content, .profile-card {
    animation: none !important;
  }
}
