/* --- tokens.css --- */
/* Design tokens: colors, shadows, type, radii. Light theme is the default; dark overrides below. */

:root {
  /* Light Theme */
  --bg: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --card-bg: #ffffff;
  --card-hover: #f8fafc;
  --border: #e2e8f0;
  --border-subtle: #edf2f7;
  --border-hover: #cbd5e1;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-subtle: #eff6ff;
  --accent-border: #bfdbfe;
  
  --success: #10b981;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;

  --badge-ai-bg: #eff6ff;
  --badge-ai-text: #1d4ed8;
  --badge-app-bg: #f5f3ff;
  --badge-app-text: #6d28d9;
  --badge-data-bg: #ecfdf5;
  --badge-data-text: #047857;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;

  --header-height: 68px;
}

:root[data-theme="dark"] {
  /* Dark Theme */
  --bg: #090d16;
  --bg-secondary: #0f1523;
  --bg-tertiary: #161e31;
  --card-bg: #0f1523;
  --card-hover: #141c2e;
  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.16);
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  
  --accent: #38bdf8;
  --accent-hover: #0284c7;
  --accent-subtle: rgba(56, 189, 248, 0.1);
  --accent-border: rgba(56, 189, 248, 0.25);
  
  --success: #34d399;
  --success-bg: rgba(52, 211, 153, 0.1);
  --success-border: rgba(52, 211, 153, 0.25);

  --badge-ai-bg: rgba(56, 189, 248, 0.12);
  --badge-ai-text: #7dd3fc;
  --badge-app-bg: rgba(168, 85, 247, 0.12);
  --badge-app-text: #c084fc;
  --badge-data-bg: rgba(52, 211, 153, 0.12);
  --badge-data-text: #6ee7b7;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
}

/* --- base.css --- */
/* Reset, base element styles, skip link, layout container */

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

button, input, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

[hidden] {
  display: none !important;
}

/* Skip link for keyboard accessibility */
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--text-primary);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 15px;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

/* --- components/buttons.css --- */
/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-sm {
  padding: 7px 13px;
  font-size: 12.5px;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg);
  border-color: var(--text-primary);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border);
}

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

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--bg-secondary);
  border-color: var(--border-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.btn-block {
  width: 100%;
}

.btn .icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* --- components/badges.css --- */
/* Badges and tags */

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  border-radius: var(--radius-full);
  line-height: 1.2;
}

.badge-accent {
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.badge-info {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* Tech tags (projects, experience) */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  margin-bottom: 20px;
}

.tag {
  display: inline-block;
  padding: 4px 9px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* Small category tags (archive rows) */
.tag-sm {
  display: inline-block;
  padding: 3px 8px;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-align: center;
}

.tag-ai { background: var(--badge-ai-bg); color: var(--badge-ai-text); }
.tag-apps { background: var(--badge-app-bg); color: var(--badge-app-text); }
.tag-data { background: var(--badge-data-bg); color: var(--badge-data-text); }

/* --- layout/header.css --- */
/* Sticky top navigation, theme toggle, mobile menu */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

:root[data-theme="dark"] .site-header {
  background: rgba(9, 13, 22, 0.85);
}

.nav-container {
  max-width: 1180px;
  height: 100%;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.brand-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

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

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

.brand-title {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

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

.nav-item {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease;
}

.nav-item:hover,
.nav-item[aria-current="location"] {
  color: var(--text-primary);
}

.nav-item[aria-current="location"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: var(--radius-full);
}

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

/* Theme Toggle Button */
.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--card-bg);
  transition: all 0.15s ease;
}

.theme-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-tertiary);
}

.theme-btn svg {
  width: 18px;
  height: 18px;
}

:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
:root[data-theme="light"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: block; }

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 14px;
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.open {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

  .cv-btn span {
    display: none;
  }
}

/* --- layout/section.css --- */
/* Shared section spacing and headers */

.section {
  padding-block: clamp(60px, 8vw, 90px);
}

.section-alt {
  background: var(--bg-secondary);
  border-block: 1px solid var(--border);
}

.section-header {
  margin-bottom: clamp(32px, 5vw, 48px);
}

.section-tag {
  display: inline-block;
  font-size: 11.5px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.6;
}

/* --- sections/hero.css --- */
/* Hero: intro, CTAs, portrait card, trust bar */

.hero-section {
  padding-top: clamp(40px, 6vw, 70px);
  padding-bottom: clamp(35px, 5vw, 60px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-full);
  margin-bottom: 22px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
  animation: pulse-ring 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

.hero-name {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.hero-role {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.hero-bio {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 28px;
}

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

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

.social-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  transition: color 0.15s ease;
}

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

.social-icon {
  width: 15px;
  height: 15px;
}

/* Hero Portrait Card */
.hero-media {
  display: flex;
  justify-content: center;
}

.portrait-card {
  width: 100%;
  max-width: 360px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.portrait-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.portrait-image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  background: #0b0f17;
  overflow: hidden;
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  filter: contrast(1.04);
}

.portrait-details {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.portrait-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.detail-label {
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.detail-value {
  color: var(--text-primary);
  font-weight: 600;
}

/* Trust Bar */
.trust-bar {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.trust-label {
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  color: var(--text-secondary);
  font-size: 13.5px;
}

.trust-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

.trust-dot {
  color: var(--border-hover);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-media {
    order: -1;
    justify-content: flex-start;
  }

  .portrait-card {
    max-width: 240px;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    width: 100%;
  }
}

/* --- sections/metrics.css --- */
/* Metrics / fast-facts cards */

.metrics-section {
  padding-block: 25px 50px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-card {
  padding: 22px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
}

.metric-card:hover {
  border-color: var(--border-hover);
  background: var(--card-hover);
  transform: translateY(-2px);
}

.metric-number {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 6px;
}

.metric-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.metric-desc {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

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

@media (max-width: 480px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* --- sections/projects.css --- */
/* Featured project cards */

.featured-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.featured-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
}

.featured-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.featured-card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  padding: 32px;
  align-items: center;
}

.card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.card-category {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 12px;
}

.featured-card-wide .card-title {
  font-size: 23px;
}

.card-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}

.card-features li {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  position: relative;
  padding-left: 18px;
}

.card-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.card-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Logo mark + title row */
.project-brand-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.project-mark {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

/* Dark logos on transparent backgrounds (featured.yml: logoOnLight) */
.project-mark-light {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 4px;
  object-fit: contain;
}

.project-brand-header .card-title {
  margin-bottom: 0;
}

/* Right-hand media column on wide cards */
.card-interactive-preview {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
}

.card-media-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--bg-tertiary);
}

.project-screenshot {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-card:hover .project-screenshot {
  transform: scale(1.02);
}

@media (max-width: 980px) {
  .featured-projects-grid {
    grid-template-columns: 1fr;
  }

  .featured-card-wide {
    grid-template-columns: 1fr;
  }
}

/* --- sections/project-previews.css --- */
/* Decorative previews inside featured cards (src/_includes/previews/) */

/* Lattice Lab canvas mockup */
.canvas-mockup {
  width: 100%;
  background: #0b0f17;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.mockup-title {
  margin-left: 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: #94a3b8;
}

.canvas-nodes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prompt-node {
  background: #141c2e;
  border: 1px solid #2563eb;
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.node-badge {
  font-size: 9.5px;
  font-family: var(--font-mono);
  color: #60a5fa;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.node-text {
  font-size: 12px;
  color: #e2e8f0;
  font-style: italic;
}

.canvas-connections {
  height: 16px;
  position: relative;
  display: flex;
  justify-content: center;
}

.connector-line {
  width: 1px;
  height: 100%;
  background: #3b82f6;
  opacity: 0.6;
}

.models-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.model-node {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.model-node .node-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #f8fafc;
  margin-bottom: 6px;
}

.pulse-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
}

.node-preview-text {
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.4;
}

/* Air Lune flight HUD */
.flight-hud {
  width: 100%;
  background: #090d16;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.25);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.route-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  color: #f8fafc;
}

.flight-arrow {
  color: #38bdf8;
  font-size: 14px;
}

.hud-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.flight-progress-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  border-radius: var(--radius-full);
}

.plane-icon-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  color: #38bdf8;
  filter: drop-shadow(0 0 4px #38bdf8);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-family: var(--font-mono);
  color: #94a3b8;
}

.cabin-hud-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.cabin-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-lbl {
  font-size: 9.5px;
  font-family: var(--font-mono);
  color: #94a3b8;
  text-transform: uppercase;
}

.stat-val {
  font-size: 11.5px;
  font-weight: 600;
  color: #f1f5f9;
}

.stat-val.highlight {
  color: #38bdf8;
  font-family: var(--font-mono);
}

.stat-val.livekit-voice {
  color: #34d399;
  font-size: 11px;
}

/* Aster browser + agent panel */
.aster-mockup {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aster-mockup .mockup-header {
  margin-bottom: 0;
}

.browser-url {
  font-size: 11px;
  font-family: var(--font-mono);
  color: #94a3b8;
  background: #141c2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #111827;
  border: 1px solid rgba(220, 233, 181, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.agent-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.agent-brand {
  font-size: 12px;
  font-weight: 700;
  color: #dce9b5;
}

.agent-model {
  font-size: 10px;
  font-family: var(--font-mono);
  color: #94a3b8;
}

.agent-task {
  font-size: 12px;
  color: #e2e8f0;
  font-style: italic;
}

.agent-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.agent-step {
  position: relative;
  padding-left: 18px;
  font-size: 11px;
  color: #94a3b8;
}

.agent-step::before {
  position: absolute;
  left: 0;
}

.agent-step.done::before {
  content: '✓';
  color: #34d399;
}

.agent-step.active {
  color: #f1f5f9;
}

.agent-step.active::before {
  content: '●';
  color: #38bdf8;
}

.agent-approval {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

.agent-approve {
  flex-shrink: 0;
  font-weight: 600;
  color: #0b0f17;
  background: #dce9b5;
  border-radius: var(--radius-sm);
  padding: 2px 8px;
}

/* --- sections/archive.css --- */
/* Searchable project archive */

.archive-section {
  margin-top: 48px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.archive-toggle-bar {
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: var(--card-bg);
}

.archive-headline {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.archive-subline {
  font-size: 13px;
  color: var(--text-muted);
}

.chevron-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.archive-expand-btn[aria-expanded="true"] .chevron-icon {
  transform: rotate(180deg);
}

.archive-content {
  border-top: 1px solid var(--border);
  padding: 24px 28px 28px;
  background: var(--bg-secondary);
}

.archive-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-pill {
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.filter-pill:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.filter-pill.active {
  background: var(--text-primary);
  color: var(--bg);
  border-color: var(--text-primary);
  font-weight: 600;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  width: 250px;
}

.search-box:focus-within {
  border-color: var(--accent);
}

.search-icon {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-box input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 12.5px;
  color: var(--text-primary);
  outline: none;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

/* Archive Rows */
.archive-table {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.archive-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr 90px 24px;
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
  background: var(--card-bg);
  transition: background 0.15s ease;
}

.archive-row:hover {
  background: var(--card-hover);
}

.col-name {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.col-name strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.row-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.col-stack {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.col-arrow {
  font-size: 14px;
  color: var(--text-muted);
  text-align: right;
  transition: transform 0.15s ease, color 0.15s ease;
}

.archive-row:hover .col-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.archive-status-bar {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

@media (max-width: 980px) {
  .archive-row {
    grid-template-columns: 1fr auto 24px;
  }

  .col-stack {
    display: none;
  }
}

@media (max-width: 768px) {
  .archive-toggle-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .archive-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .archive-row {
    grid-template-columns: 1fr 20px;
    gap: 8px;
  }

  .col-badge {
    display: none;
  }
}

/* --- sections/experience.css --- */
/* Work experience timeline */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 15px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  display: flex;
  gap: 24px;
  position: relative;
}

.timeline-marker {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--bg-secondary);
}

.timeline-marker::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-card {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease;
}

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

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

.role-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.role-company {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.role-company strong {
  color: var(--text-primary);
}

.role-location {
  color: var(--text-muted);
}

.role-period {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.role-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.role-bullets li {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  position: relative;
  padding-left: 18px;
}

.role-bullets li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.role-bullets strong {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .timeline::before {
    left: 11px;
  }

  .timeline-marker {
    width: 24px;
    height: 24px;
  }

  .timeline-marker::after {
    width: 6px;
    height: 6px;
  }

  .timeline-item {
    gap: 14px;
  }

  .timeline-card {
    padding: 18px;
  }
}

/* --- sections/skills.css --- */
/* Technical skills and spoken languages */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.skill-category-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.category-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--accent-subtle);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-icon svg {
  width: 18px;
  height: 18px;
}

.category-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-list li {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.skill-list strong {
  color: var(--text-primary);
}

.languages-banner {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  font-size: 13px;
}

.lang-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lang-pill {
  color: var(--text-secondary);
}

.lang-pill strong {
  color: var(--text-primary);
}

@media (max-width: 980px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* --- sections/education.css --- */
/* Education and certifications */

.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.column-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.edu-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
}

.edu-years {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}

.edu-degree {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.edu-school {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.edu-description {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.certs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cert-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: all 0.15s ease;
}

a.cert-item:hover {
  border-color: var(--border-hover);
  background: var(--card-hover);
  transform: translateX(2px);
}

.cert-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cert-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.cert-issuer {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.cert-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.cert-link {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

@media (max-width: 980px) {
  .edu-grid {
    grid-template-columns: 1fr;
  }
}

/* --- sections/contact.css --- */
/* Contact card and form */

.contact-section {
  padding-block: clamp(60px, 8vw, 90px);
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 48px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 5vw, 56px);
  box-shadow: var(--shadow-md);
}

.contact-heading {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 14px;
}

.contact-text {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.method-label {
  display: block;
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.email-copy-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.email-address {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.email-address:hover {
  color: var(--accent-hover);
}

.copy-feedback {
  display: block;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--success);
  min-height: 18px;
  margin-top: 4px;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Contact Form Box */
.contact-form-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.form-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.clean-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  color: var(--text-primary);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

@media (max-width: 980px) {
  .contact-card {
    grid-template-columns: 1fr;
  }
}

/* --- layout/footer.css --- */
/* Footer */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding-block: 28px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-dot {
  color: var(--border-hover);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.back-to-top {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-secondary);
}
