/* ============================================================
   Sase Mohan — Minimalist Software Engineer Portfolio
   Zero Dependencies · Pure Vanilla CSS · Ultra-Fast Load (<50ms)
   ============================================================ */

:root {
  /* Raycast Design System — Dark Theme (Default) */
  --bg-primary: #07080a;
  --bg-secondary: #0d0e12;
  --bg-card: #101114;
  --bg-card-hover: #16171c;
  --bg-surface: #1e2025;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 99, 99, 0.55);
  --text-primary: #ffffff;
  --text-secondary: #9c9c9d;
  --text-muted: #8a8d93; /* 6.02:1 contrast ratio against #07080a (WCAG AAA) */
  --accent: #ff6363;
  --accent-crimson: #ce1326;
  --accent-hover: #ff4b4b;
  --accent-muted: rgba(255, 99, 99, 0.12);
  --accent-glow: rgba(255, 99, 99, 0.28);
  --success: #34d399;
  --success-bg: rgba(52, 211, 153, 0.12);
  --badge-bg: rgba(255, 255, 255, 0.06);
  --badge-text: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.6), 0 2px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 35px -5px rgba(0, 0, 0, 0.8), 0 10px 15px -5px rgba(0, 0, 0, 0.6);
  --backdrop: rgba(7, 8, 10, 0.85);
  --code-font: "GeistMono", ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Monaco, Consolas, monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-primary: #fbfbfb;
  --bg-secondary: #f3f4f6;
  --bg-card: #ffffff;
  --bg-card-hover: #f9fafb;
  --bg-surface: #e5e7eb;
  --border-subtle: rgba(0, 0, 0, 0.12);
  --border-focus: rgba(225, 29, 72, 0.7);
  --text-primary: #111215;
  --text-secondary: #4b5159; /* 7.46:1 contrast ratio against #fbfbfb (WCAG AAA) */
  --text-muted: #52565c;     /* 7.13:1 contrast ratio against #fbfbfb (WCAG AAA) */
  --accent: #e11d48;
  --accent-crimson: #be123c; /* 6.07:1 contrast ratio against #fbfbfb (WCAG AAA) */
  --accent-hover: #9f1239;
  --accent-muted: rgba(225, 29, 72, 0.1);
  --accent-glow: rgba(225, 29, 72, 0.2);
  --success: #047857;
  --success-bg: rgba(4, 120, 87, 0.1);
  --badge-bg: rgba(0, 0, 0, 0.05);
  --badge-text: #18191c;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08);
  --backdrop: rgba(251, 251, 251, 0.88);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  color-scheme: dark light;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Container */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 16px;
}

/* Navigation Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: var(--backdrop);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.site-header .container {
  max-width: 100%;
  width: 100%;
  padding: 0 clamp(16px, 3vw, 48px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  width: 100%;
  max-width: 100%;
  padding: 0 clamp(16px, 3vw, 48px);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #ff6363 0%, #ce1326 100%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: 8px;
  box-shadow: 0 0 14px rgba(255, 99, 99, 0.3);
}

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

.tag-badge {
  font-family: var(--code-font);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 2px 7px;
  background: var(--badge-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  padding: 4px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

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

/* Icon Buttons */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.cmd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--badge-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cmd-trigger:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.cmd-kbd,
kbd {
  font-family: var(--code-font);
  font-size: 0.72rem;
  padding: 2px 7px;
  background: linear-gradient(180deg, #1f2125, #121316);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 1px 0 1px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.01em;
}

[data-theme="light"] .cmd-kbd,
[data-theme="light"] kbd {
  background: linear-gradient(180deg, #ffffff, #f1f2f4);
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: 0 1px 0 1px rgba(0, 0, 0, 0.1), inset 0 1px 0 #ffffff;
  color: #111215;
}

.mobile-toggle {
  display: none;
}

/* Buttons (Raycast Sleek Pill Styling) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: #ffffff;
  color: #07080a;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: #f1f2f4;
  color: #000000;
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

[data-theme="light"] .btn-primary {
  background: #111215;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .btn-primary:hover {
  background: #23252a;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

[data-theme="light"] .btn-outline {
  background: rgba(0, 0, 0, 0.03);
  color: #111215;
  border-color: rgba(0, 0, 0, 0.16);
}

[data-theme="light"] .btn-outline:hover {
  background: rgba(0, 0, 0, 0.07);
  border-color: rgba(0, 0, 0, 0.35);
}

.btn-sm {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 0.85rem;
}

/* Sections */
.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

.section-label {
  font-family: var(--code-font);
  font-size: 0.82rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 620px;
}

/* Hero Section (Raycast Diagonal Radiant Crimson Light Streaks & 3D Constellation) */
.hero-section {
  position: relative;
  padding-top: 155px;
  padding-bottom: 85px;
  overflow: hidden;
}

.hero-3d-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.92;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 52%;
  transform: translateX(-50%) rotate(-26deg);
  width: 720px;
  height: 440px;
  background: radial-gradient(ellipse at center, rgba(206, 19, 38, 0.38) 0%, rgba(255, 99, 99, 0.22) 35%, transparent 70%);
  filter: blur(65px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%) rotate(-26deg);
  width: 580px;
  height: 85px;
  background: linear-gradient(90deg, transparent, rgba(255, 99, 99, 0.28), rgba(206, 19, 38, 0.48), transparent);
  filter: blur(35px);
  pointer-events: none;
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 99, 99, 0.08);
  color: #ff9494;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 99, 99, 0.24);
  box-shadow: 0 0 16px rgba(255, 99, 99, 0.1);
}

[data-theme="light"] .availability-badge {
  background: rgba(225, 29, 72, 0.08);
  color: #9f1239; /* 7.75:1 contrast against #fbfbfb (WCAG AAA) */
  border-color: rgba(225, 29, 72, 0.25);
  box-shadow: none;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6363;
  box-shadow: 0 0 0 0 rgba(255, 99, 99, 0.7);
  animation: pulse 2s infinite;
}

[data-theme="light"] .pulse-dot {
  background: #e11d48;
  box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 99, 99, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 99, 99, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 99, 99, 0); }
}

.hero-headline {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 20px;
  max-width: 860px;
}

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

:root:not([data-theme="light"]) .hero-headline .highlight {
  color: #ff7878;
  text-shadow: 0 0 30px rgba(255, 99, 99, 0.35);
}

[data-theme="light"] .hero-headline .highlight {
  color: var(--accent-crimson); /* 6.07:1 contrast against #fbfbfb (WCAG AAA) */
  text-shadow: none;
}

[data-theme="light"] .hero-section::before {
  background: radial-gradient(ellipse at center, rgba(244, 63, 94, 0.12) 0%, rgba(251, 113, 133, 0.06) 35%, transparent 70%);
  opacity: 0.5;
}

[data-theme="light"] .hero-section::after {
  background: linear-gradient(90deg, transparent, rgba(244, 63, 94, 0.08), rgba(225, 29, 72, 0.12), transparent);
  opacity: 0.5;
}

.hero-bio {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 36px;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  font-family: var(--code-font);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Filter Controls */
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
  background: #ffffff;
  color: #07080a;
  border-color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .filter-btn {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-secondary);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .filter-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #111215;
  border-color: rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .filter-btn.active {
  background: #111215;
  color: #ffffff;
  border-color: #111215;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 24px;
}

.project-card {
  background: transparent;
  border: none;
  border-top: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 32px 0 16px 0;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-normal);
  position: relative;
}

.project-card:hover {
  transform: none;
  border-top-color: var(--accent);
  box-shadow: none;
}

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

.project-card-top h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

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

.project-link {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.project-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-metric {
  display: inline-flex;
  align-items: center;
  padding: 2px 0 2px 10px;
  border-left: 2px solid var(--accent);
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-family: var(--code-font);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  width: fit-content;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.tech-tag {
  font-family: var(--code-font);
  font-size: 0.75rem;
  padding: 3px 8px;
  background: var(--badge-bg);
  color: var(--badge-text);
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

/* Experience Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
}

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

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

.timeline-dot {
  position: absolute;
  left: 2px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent);
}

.timeline-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0 0 32px 0;
  box-shadow: none;
}

.timeline-card:hover {
  border-color: transparent;
}

.timeline-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.timeline-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-company {
  color: var(--accent);
  font-weight: 600;
}

.timeline-period {
  font-family: var(--code-font);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.timeline-summary {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.timeline-bullets {
  list-style-type: none;
  margin-bottom: 16px;
}

.timeline-bullets li {
  position: relative;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.timeline-bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Skills Matrix */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.skill-category-card {
  background: transparent;
  border: none;
  border-top: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 24px 0 16px 0;
  box-shadow: none;
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 700;
}

.skill-category-icon {
  color: var(--accent);
}

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

.skill-pill {
  font-family: var(--code-font);
  font-size: 0.82rem;
  padding: 5px 10px;
  background: var(--badge-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.skill-pill:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  background: var(--accent-muted);
}

/* About / Philosophy Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.about-text {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.8;
}

.about-text p {
  margin-bottom: 20px;
}

.principles-card {
  background: transparent;
  border: none;
  border-left: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 0 0 0 36px;
}

.principles-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.principle-item {
  margin-bottom: 20px;
}

.principle-item:last-child {
  margin-bottom: 0;
}

.principle-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.principle-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-methods {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-method-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

.email-copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-top: 16px;
}

.email-address {
  font-family: var(--code-font);
  font-size: 0.88rem;
  color: var(--text-primary);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--badge-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-muted);
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

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

.form-status {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  display: none;
}

.form-status.success {
  display: block;
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Site Footer */
.site-footer {
  padding: 40px 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-perf-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--code-font);
  font-size: 0.78rem;
  color: var(--accent);
  background: var(--accent-muted);
  padding: 3px 8px;
  border-radius: 4px;
}

/* Command Palette Modal (<dialog>) — Raycast Launcher Styling */
dialog.cmd-dialog {
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: var(--text-primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 30px 70px -10px rgba(0, 0, 0, 0.6), 0 0 40px -10px var(--accent-glow);
  width: min(620px, 94vw);
  margin: auto;
  padding: 0;
  overflow: hidden;
}

[data-theme="light"] dialog.cmd-dialog {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 25px 60px -10px rgba(0, 0, 0, 0.2);
}

dialog.cmd-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cmd-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-subtle);
}

.cmd-header svg {
  color: var(--accent);
  flex-shrink: 0;
}

.cmd-input {
  width: 100%;
  background: transparent;
  border: none;
  font-size: 1.1rem;
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
}

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

.cmd-list {
  list-style: none;
  max-height: 340px;
  overflow-y: auto;
  padding: 8px;
}

.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cmd-item.active,
.cmd-item:hover {
  background: var(--accent-muted);
  color: var(--text-primary);
}

.cmd-item.active .cmd-item-badge,
.cmd-item:hover .cmd-item-badge {
  color: var(--accent);
}

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

.cmd-item-badge {
  font-family: var(--code-font);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cmd-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--code-font);
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(120%);
  opacity: 0;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
  pointer-events: none;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 90;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  display: none;
}

/* Responsive Breakpoints */
@media (max-width: 860px) {
  .nav-menu,
  .cmd-trigger {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .mobile-nav-drawer {
    display: block;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
    padding: 20px 24px;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition-normal), opacity var(--transition-normal), visibility var(--transition-normal);
    z-index: 99;
  }

  .mobile-nav-drawer.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .mobile-nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }
}

@media (max-width: 540px) {
  .hero-section {
    padding-top: 110px;
    padding-bottom: 60px;
  }

  .hero-headline {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* Reduced Motion */
@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;
  }
}

/* High Contrast Focus */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================================
   Impact Section Gating & Unlock Form
   ============================================================ */
.impact-unlocked-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 20px;
  background: var(--success-bg);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.92rem;
  margin-bottom: 28px;
  animation: fadeIn 0.3s ease-out forwards;
}

.unlocked-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.unlocked-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.impact-gate-box {
  margin-bottom: 32px;
  transition: opacity var(--transition-normal);
}

.impact-gate-card {
  background: transparent;
  border: none;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 44px 0;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: none;
  position: relative;
}

.gate-lock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent-muted);
  color: var(--accent);
  margin-bottom: 16px;
}

.gate-badge {
  display: inline-block;
  font-family: var(--code-font);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  background: var(--badge-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--accent);
  margin-bottom: 12px;
}

.gate-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.gate-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.hubspot-form-wrapper {
  margin-top: 20px;
  text-align: left;
  min-height: 280px;
  position: relative;
}

.hubspot-form-wrapper iframe {
  width: 100% !important;
  border: none !important;
  color-scheme: normal;
}

.hs-form-frame {
  width: 100%;
}

.impact-unlock-form {
  text-align: left;
}

.unlock-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 12px;
}

.unlock-form-grid .form-group.full-width {
  grid-column: span 2;
}

@media (max-width: 640px) {
  .unlock-form-grid {
    grid-template-columns: 1fr;
  }
  .unlock-form-grid .form-group.full-width {
    grid-column: span 1;
  }
  .impact-gate-card {
    padding: 24px 20px;
  }
}

/* Locked state preview teaser */
.impact-cards-container.is-locked {
  filter: blur(5px);
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
  max-height: 380px;
  overflow: hidden;
  position: relative;
  transition: all var(--transition-normal);
}

.impact-cards-container.is-locked::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 20%, var(--bg-primary) 92%);
  pointer-events: none;
}

.impact-cards-container.is-unlocked {
  filter: none;
  opacity: 1;
  pointer-events: auto;
  user-select: auto;
  max-height: none;
  overflow: visible;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Interactive 3D Marketing Funnel Section
   ============================================================ */
.funnel-section {
  position: relative;
  overflow: hidden;
}

.funnel-stage-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 36px;
}

.funnel-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: -1px;
}

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

.funnel-nav-btn.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
  background: transparent;
  font-weight: 600;
  box-shadow: none;
}

[data-theme="light"] .funnel-nav-btn {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

[data-theme="light"] .funnel-nav-btn:hover {
  background: transparent;
  color: #111215;
}

[data-theme="light"] .funnel-nav-btn.active {
  background: transparent;
  color: #111215;
  border-bottom-color: var(--accent-crimson);
  box-shadow: none;
}

.fnav-num {
  font-family: var(--code-font);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
}

.funnel-display-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  align-items: stretch;
}

.funnel-3d-wrapper {
  background: transparent;
  border: none;
  border-radius: 0;
  position: relative;
  min-height: 480px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.funnel-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.funnel-3d-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.hint-badge {
  font-family: var(--code-font);
  font-size: 0.74rem;
  color: var(--text-muted);
  background: transparent;
  border: none;
  padding: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hint-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.funnel-detail-card {
  background: transparent;
  border: none;
  border-left: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 8px 0 8px 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.funnel-card-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.funnel-stage-badge {
  font-family: var(--code-font);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0;
  background: transparent;
  color: var(--accent);
  border: none;
}

[data-theme="light"] .funnel-stage-badge {
  background: transparent;
  color: var(--accent-crimson);
  border: none;
}

.funnel-phase-label {
  font-family: var(--code-font);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.funnel-stage-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.funnel-stage-summary {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.funnel-metric-badge {
  display: flex;
  align-items: center;
  padding: 2px 0 2px 14px;
  border-left: 2px solid var(--accent);
  background: transparent;
  border-top: none;
  border-right: none;
  border-bottom: none;
  border-radius: 0;
  color: var(--text-primary);
  font-family: var(--code-font);
  font-size: 0.88rem;
  font-weight: 600;
  width: fit-content;
}

.funnel-subheading {
  font-family: var(--code-font);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.funnel-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.funnel-bullet {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.funnel-bullet::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

[data-theme="light"] .funnel-bullet::before {
  color: var(--accent-crimson);
}

@media (max-width: 960px) {
  .funnel-display-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .funnel-3d-wrapper {
    min-height: 380px;
  }
  .funnel-detail-card {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    padding: 28px 0 0 0;
  }
}