@import url('https://fonts.googleapis.com/css2?family=Epilogue:wght@600;700;800&display=swap');

/* ========== Utilities ========== */
.hidden { display: none; }

/* ========== CSS Variables ========== */
:root {
  /* Core Surfaces */
  --bg: #F0EEE9;
  --surface: #F5F4F0;
  --surface-alt: #ECEAE4;
  --card-bg: #ffffff;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-light: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #ddd8d0;

  /* Skyline Palette */
  --coral: #FF7F50;
  --coral-hover: #e06840;
  --amber: #F4A261;
  --gold: #FCD581;
  --steel-blue: #3C91E6;
  --deep-ink: #0A2342;
  --teal: #2A9D8F;
  --slate: #4A6A8C;
  --teal-deep: #1f7a6f;
  --amber-deep: #d88a48;
  --steel-blue-deep: #2a70c0;
  --white: #ffffff;

  /* Primary accent */
  --accent: var(--coral);
  --accent-hover: var(--coral-hover);

  /* UI */
  --toggle-track: #e5e7eb;
  --toggle-thumb: #ffffff;

  /* Legacy aliases (backward compat) */
  --coral-accent: var(--coral);
  --sunset-orange: #FF671C;
  --twilight-blue: var(--deep-ink);
  --twilight: var(--deep-ink);
  --warm-gray: #8F99A6;
  --value-blue: var(--slate);
  --value-purple: var(--steel-blue);
  --value-pink: var(--coral);
  --value-peach: var(--amber);
  --value-mint: var(--teal);
  --value-yellow: var(--gold);
  --sector-startup: var(--teal);
  --sector-acquired: var(--steel-blue);

  /* ===== Bento Card Colors (light tints) ===== */
  --bento-blue: #8da6f7;
  --bento-blue-deep: #5a7ae0;
  --bento-purple: #b8a4f0;
  --bento-purple-deep: #8a72d6;
  --bento-pink: #eba8cd;
  --bento-pink-deep: #d07aab;
  --bento-mint: #7ad4b4;
  --bento-mint-deep: #4ab890;
  --bento-dark: #101C31;

  /* ===== Neutrals ===== */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* ===== Layout & Spacing ===== */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* ===== Typography ===== */
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: 'Epilogue', 'Inter', sans-serif;

  /* ===== Radius ===== */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 9999px;

  /* ===== Shadows ===== */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  --shadow-06: 0 4px 10px rgba(0, 0, 0, 0.06);
  --shadow-12: 0 8px 22px rgba(0, 0, 0, 0.12);
  --shadow-20: 0 12px 28px rgba(0, 0, 0, 0.20);

  /* ===== Transitions ===== */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* RGB helpers */
  --white-rgb: 255, 255, 255;
  --black-rgb: 0, 0, 0;
  --primary-rgb: 108, 140, 255;
  --purple-rgb: 164, 140, 249;
  --pink-rgb: 244, 138, 193;
  --success-rgb: 79, 210, 168;
  --warning-rgb: 255, 185, 100;

  --surface-toggle: #f0f0f5;
  --surface-toggle-active: #e6e6ee;
  --overlay: rgba(0, 0, 0, 0.9);

  /* Timeline line rgb token */
  --gray-600-rgb: 75, 85, 99;

  /* Helper for fade transitions */
  --section-fade-end: transparent;
}

/* ========== Reset & Base Styles ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: none;
  -moz-text-size-adjust: none;
  text-size-adjust: none;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ===== Global Heading Font ===== */
h1,
h2,
h3,
h4,
h5,
h6,
.hero-name,
.section-title,
.value-title,
.project-title,
.company-name {
  font-family: var(--font-heading);
}

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

a:hover {
  color: var(--accent-hover);
}

/* Preserve white text on colored backgrounds */
.btn-primary,
a.btn-primary,
a.header-cta,
a.bento-card,
a.bento-card h3,
a.bento-card p {
  color: var(--white);
}

.card-writing h3 {
  color: var(--text-light);
}

.writing-item {
  color: var(--text-muted);
}

.writing-item:hover {
  color: var(--text-light);
}

ul {
  list-style: none;
}

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

/* ========== Header & Navigation ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(240, 238, 233, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  transition: background 0.3s;
}

.header.scrolled {
  background: rgba(240, 238, 233, 0.95);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.nav-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-sm) var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  min-height: 64px;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  transition: opacity var(--transition-base);
}

.logo-text {
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity var(--transition-base);
  line-height: 1.2;
}

.logo-text.visible {
  opacity: 1;
}

.logo-name {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.1;
}

.logo-subtitle {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.2;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  transition: var(--transition-base);
}

.nav-menu {
  display: flex;
  gap: var(--spacing-md);
}

/* Desktop: center nav when name is hidden, slide right when name appears */
@media (min-width: 901px) {
  .nav-menu {
    position: absolute;
    transition: left 0.4s ease, transform 0.4s ease;
    box-shadow: none;
    background: transparent;
  }

  .header:not(.name-visible) .nav-menu {
    left: 50%;
    transform: translateX(-50%);
  }

  .header.name-visible .nav-menu {
    left: calc(100% - var(--spacing-md));
    transform: translateX(-100%);
    gap: var(--spacing-sm);
  }

  .header.name-visible .nav-menu a {
    padding: var(--spacing-xs) 6px;
    font-size: 0.85rem;
  }
}

.nav-menu a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

/* Navigation links — v2 override */
.nav-link,
.menu a {
  color: var(--text-secondary);
}

.nav-link:hover,
.nav-link.active,
.menu a:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    right: var(--spacing-md);
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-sm);
    flex-direction: column;
    min-width: 200px;
    display: none;
  }

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

/* ========== Hero Section (base — kept for non-v2 pages) ========== */
.hero {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-2xl) var(--spacing-md);
  padding-top: calc(80px + var(--spacing-xl));
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: none;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 900;
  letter-spacing: -2.5px;
  line-height: 1;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  margin-bottom: var(--spacing-sm);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
  letter-spacing: -2px;
}

.hero-subtitle {
  color: var(--text-secondary);
}

.hero-side-project {
  margin-top: var(--spacing-md);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.hero-side-project a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.hero-side-project a:hover {
  text-decoration: underline;
}

.about-text a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.about-text a:hover {
  text-decoration: underline;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn-primary,
.header-cta,
.hero-actions-v2 .btn-primary {
  background: var(--accent);
  background-image: none;
  color: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(74, 106, 140, 0.2);
  border: none;
}

.btn-primary:hover,
.header-cta:hover {
  background: var(--accent-hover);
  box-shadow: 0 8px 20px rgba(74, 106, 140, 0.25);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--white);
  color: var(--text-primary);
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
}

/* ========== Sections ========== */
.section {
  padding: var(--spacing-2xl) var(--spacing-md);
  background: transparent;
  scroll-margin-top: 80px;
}

[id] {
  scroll-margin-top: 80px;
}

.section-accent {
  background: transparent;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: var(--spacing-xl);
  color: var(--text-primary);
  position: relative;
  z-index: 2;
  letter-spacing: -1px;
}

.section-intro {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: calc(-1 * var(--spacing-md)) auto var(--spacing-xl);
  line-height: 1.5;
}

/* Highlight — coral accent */
.highlight,
.section-accent .highlight {
  background: none;
  background-image: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: var(--accent);
  color: var(--accent);
  font-weight: 400;
}

/* Remove any gradient backgrounds on sections */
.section::before,
.section::after,
.section-accent::before,
.section-accent::after {
  display: none;
}

/* Section dividers removed */
.section + .section {
  border-top: none;
}

/* ========== About Section ========== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}

.about-images {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.profile-img {
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.profile-img.main-photo {
  border-radius: 20px;
}

.main-photo {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-photos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: auto;
  gap: var(--spacing-sm);
  align-items: start;
}

.secondary-photo {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.tall-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  grid-row: span 2;
  display: block;
}

.about-text p {
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Pull Quote */
.about-text > p:first-child {
  font-size: 1.15rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.6;
  border-left: 3px solid var(--sunset-orange);
  padding-left: 20px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }

  .about-images {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ======================================================
   VALUES SYSTEM
   ====================================================== */

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: var(--spacing-xl);
}

/* Base card */
.value-card {
  background: var(--card-bg);
  border: none;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  border-left: 3px solid transparent;
}

.value-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Value cards — colored left border + icon (skyline palette) */
.value-card.tint-blue { border-left-color: var(--coral); }
.value-card.tint-blue .value-icon { color: var(--coral); stroke: var(--coral); }

.value-card.tint-purple { border-left-color: var(--teal); }
.value-card.tint-purple .value-icon { color: var(--teal); stroke: var(--teal); }

.value-card.tint-pink { border-left-color: var(--amber); }
.value-card.tint-pink .value-icon { color: var(--amber); stroke: var(--amber); }

.value-card.tint-peach { border-left-color: var(--steel-blue); }
.value-card.tint-peach .value-icon { color: var(--steel-blue); stroke: var(--steel-blue); }

.value-card.tint-mint { border-left-color: var(--gold); }
.value-card.tint-mint .value-icon { color: var(--gold); stroke: var(--gold); }

.value-card.tint-yellow { border-left-color: var(--slate); }
.value-card.tint-yellow .value-icon { color: var(--slate); stroke: var(--slate); }

/* Icons */
.value-card-icon {
  width: 28px;
  height: 28px;
  color: var(--text-primary);
  opacity: 0.85;
  flex-shrink: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Header alignment */
.value-card .value-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
}

.value-card-header .value-card-icon {
  position: relative;
  top: 1px;
}

/* Text */
.value-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

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

.value-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ===== Merge Values into About ===== */
#values {
  padding-top: 0;
  margin-top: -2rem;
  border-top: none;
}

#values .section-title {
  display: none;
}

#values .container::before {
  content: 'What drives me';
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 24px;
  padding-top: 8px;
}

/* ===== Glass Card Utility ===== */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  outline: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: var(--spacing-lg);
}

/* Hover lift only on project cards, not experience */
.project-card-link:hover .glass-card {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Remove tint backgrounds from cards */
.glass-card.tint-blue,
.glass-card.tint-purple,
.glass-card.tint-pink,
.glass-card.tint-peach,
.glass-card.tint-mint,
.glass-card.tint-yellow,
.glass-card.tint-gray {
  background: var(--card-bg);
}

/* ========== Cards ========== */
.card {
  overflow: hidden;
}

.card-content {
  padding: 0 var(--spacing-lg) var(--spacing-lg);
}

/* ========== Grids ========== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-lg);
}

.full-width {
  grid-column: 1 / -1;
  width: 100%;
}

/* ========== Project Cards ========== */
.project-card,
.project-card.glass-card,
.card.glass-card.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border-radius: 16px;
  position: relative;
  background: var(--card-bg);
  border: none;
  outline: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.project-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.project-card-link:hover .project-card {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.project-card::after {
  content: '\2197';
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-size: 1.25rem;
  color: var(--text-muted);
  opacity: 0.5;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.project-card-link:hover .project-card::after {
  opacity: 1;
  transform: translate(2px, -2px);
}

.project-card-link {
  text-decoration: none;
  color: inherit;
  display: contents;
}

/* Project image wrapper */
.project-image-wrap {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  margin-bottom: var(--spacing-sm);
}

.project-card .project-image-wrap {
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.project-card .card-content {
  padding: 16px 20px 20px;
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.project-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

/* ========== Tags ========== */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.tag {
  padding: 0.4rem 0.7rem;
  background: var(--surface-alt);
  border: 1px solid var(--gray-300);
  box-shadow: var(--shadow-06);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* ========== Connect Section ========== */
.connect-description {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-xl);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.connect-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .connect-buttons {
    max-width: 180px;
    margin: 0 auto;
  }
}

.connect-btn {
  width: 64px;
  height: 64px;
  background: var(--card-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-12);
}

.connect-btn svg {
  width: 28px;
  height: 28px;
}

.connect-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-20);
}

/* Connect button colors */
.connect-btn:nth-child(1) svg { color: var(--coral); }
.connect-btn:nth-child(2) svg { color: var(--steel-blue); }
.connect-btn:nth-child(3) svg { color: var(--teal); }
.connect-btn:nth-child(4) svg { color: var(--amber); }

.connect-btn:nth-child(1):hover { border-color: var(--coral); box-shadow: 0 4px 12px rgba(255,127,80,0.15); }
.connect-btn:nth-child(2):hover { border-color: var(--steel-blue); box-shadow: 0 4px 12px rgba(60,145,230,0.15); }
.connect-btn:nth-child(3):hover { border-color: var(--teal); box-shadow: 0 4px 12px rgba(42,157,143,0.15); }
.connect-btn:nth-child(4):hover { border-color: var(--amber); box-shadow: 0 4px 12px rgba(244,162,97,0.15); }

#connect {
  background: transparent;
}

#connect .section-title {
  font-size: 2.5rem;
}

/* ========== Footer ========== */
.footer {
  background: transparent;
  color: var(--text-secondary);
  padding: var(--spacing-2xl) var(--spacing-md);
  border-top: 1px solid var(--border);
}

.footer-content {
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  padding: 0 var(--spacing-md);
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 4px 0;
  transition: color 0.2s;
}

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

.footer-text {
  margin-top: var(--spacing-md);
  color: var(--text-secondary);
}

.footer-text a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(var(--primary-rgb), 0.10);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.footer-text a:hover {
  background: rgba(var(--primary-rgb), 0.20);
  transform: translateY(-2px) scale(1.04);
  box-shadow: var(--shadow-12);
}

/* Footer easter egg pill */
.footer-text .easter-egg {
  background: rgba(var(--primary-rgb), 0.16);
  border: 1px solid rgba(var(--primary-rgb), 0.30);
  color: var(--accent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-06);
  transition: all 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.footer-text .easter-egg:hover {
  background: rgba(var(--primary-rgb), 0.24);
  border-color: rgba(var(--primary-rgb), 0.38);
  box-shadow: var(--shadow-12);
  transform: translateY(-3px) scale(1.08);
}

/* Force two-line balanced text */
.two-line-lock {
  max-width: 480px;
  margin: 0 auto;
  text-wrap: balance;
}

/* ========== Lightbox ========== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 32, 44, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.close-lightbox {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base);
}

.close-lightbox:hover {
  transform: scale(1.1);
}

.close-lightbox:focus {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.close-lightbox:focus:not(:focus-visible) {
  outline: none;
}

.close-lightbox:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* Lightbox trigger focus styles */
.lightbox-trigger:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lightbox-trigger:focus:not(:focus-visible) {
  outline: none;
}

.lightbox-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ========== Responsive ========== */
@media (max-width: 640px) {
  :root {
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
  }

  .hero {
    padding: var(--spacing-xl) var(--spacing-sm);
    padding-top: calc(80px + var(--spacing-md));
  }

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

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }
}

/* ========== Fullstack Callout ========== */
.fullstack-callout {
  margin: 2rem 0;
  padding: 2rem 2.25rem;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--sunset-orange);
  box-shadow: var(--shadow-06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.fullstack-callout h4 {
  margin-bottom: 0.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-size: 1.35rem;
}

.fullstack-callout p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .fullstack-callout {
    margin: 2rem var(--spacing-md) 2rem 0;
    padding: 1.75rem 1.75rem;
  }
}

/* ===== Modern Minimalist Hero (Option B) ===== */
.hero-modern {
  padding-top: calc(90px + var(--spacing-xl));
  padding-bottom: var(--spacing-2xl);
  text-align: center;
  position: relative;
}

.hero-modern::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: none;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  position: relative;
  z-index: 1;
}

.hero-summary {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 75ch;
  margin: var(--spacing-md) auto var(--spacing-sm);
  margin-top: calc(var(--spacing-md) + 0.25rem);
  text-wrap: balance;
  orphans: 2;
  widows: 2;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-top: calc(var(--spacing-xl) + 0.25rem);
  flex-wrap: wrap;
}

/* ===== Experience Mode Toggle (Modern Pill Style) ===== */
.experience-toggle-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 5;
}

.experience-toggle {
  position: relative;
  z-index: 20;
  display: inline-block;
}

.experience-toggle input {
  display: none;
}

.experience-toggle .toggle-track {
  position: relative;
  width: 212px;
  height: 44px;
  background: var(--toggle-track);
  border-radius: 28px;
  padding: 4px;
  display: flex;
  align-items: center;
  cursor: pointer;
  justify-content: space-between;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: background 0.25s ease;
  z-index: 2;
  border: none;
}

.toggle-option {
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  z-index: 4;
  user-select: none;
  transition: color 0.25s ease;
}

/* Hover states for toggle options */
.toggle-track:hover .toggle-option {
  color: var(--text-secondary);
}

.toggle-option:hover {
  color: var(--text-primary);
  cursor: pointer;
}

.experience-toggle .toggle-thumb {
  position: absolute;
  width: calc(50% - 4px);
  height: 36px;
  background: var(--toggle-thumb);
  background-image: none;
  border-radius: 24px;
  top: 4px;
  left: 4px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  z-index: 3;
}

.toggle-thumb:hover {
  box-shadow: var(--shadow-12);
}

.experience-toggle input:checked+.toggle-track .toggle-thumb {
  transform: translateX(100%);
}

.experience-toggle input:checked+.toggle-track .resume-option {
  color: var(--text-secondary);
}

.experience-toggle input:checked+.toggle-track .story-option {
  color: var(--text-primary);
}

.experience-toggle input:checked+.toggle-track {
  background: var(--surface-toggle-active);
}

.experience-toggle input:not(:checked)+.toggle-track .resume-option {
  color: var(--text-primary);
}

.experience-toggle input:not(:checked)+.toggle-track .story-option {
  color: var(--text-secondary);
}

/* Tooltip styling improvements */
.toggle-option[data-tooltip] {
  position: relative;
}

.toggle-option[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  color: var(--text-primary);
  z-index: 9999;
}

.toggle-option[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-8px);
}

.experience-toggle-intro {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  opacity: 0.75;
}

/* ===== Role Pills ===== */
.role-pill {
  display: inline-block;
  padding: 4px 10px;
  margin: 0 8px 10px 0;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-06);
  font-size: 0.70rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  transition: all 0.18s ease;
}

/* Restore original pill sizing inside Looking For section */
.looking-for-pills .role-pill {
  padding: 8px 18px;
  font-size: 0.9rem;
  border-radius: 18px;
}

.role-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 6px auto;
  justify-content: center;
  align-items: center;
  max-width: 520px;
}

.role-pill-row .role-pill {
  margin: 0;
}

.pill-row-with-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-sm);
}

.pill-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

/* Alignment fix for Looking For section */
.looking-for-text {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.65;
  margin-top: 12px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

/* ========== Currently Building — Bento ========== */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 14px;
}

.bento-card {
  border-radius: 20px;
  padding: 24px;
  text-decoration: none;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
  position: relative;
}
.bento-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.15); }
.bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
  border-radius: 20px;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.card-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.app-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

a.bento-card::before {
  content: '\2197';
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.4);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1;
}
a.bento-card:hover::before {
  color: rgba(255, 255, 255, 0.8);
  transform: translate(2px, -2px);
}

.bento-card h3 { font-size: 1.15rem; font-weight: 700; margin: 0; position: relative; z-index: 1; }
.bento-card p { font-size: 0.88rem; opacity: 0.85; line-height: 1.45; position: relative; z-index: 1; }

/* Bento card colors — Skyline palette */
.card-quietfeed { grid-column: 1 / 2; grid-row: 1 / 2; background: linear-gradient(150deg, var(--steel-blue), var(--steel-blue-deep)); }
.card-office { grid-column: 2 / 3; grid-row: 1 / 2; background: linear-gradient(150deg, var(--teal), var(--teal-deep)); }
.card-visionbort { grid-column: 1 / 2; grid-row: 2 / 3; background: linear-gradient(150deg, var(--amber), var(--amber-deep)); }
.card-claude { grid-column: 2 / 3; grid-row: 2 / 3; background: linear-gradient(150deg, var(--coral), var(--coral-hover)); }

.card-writing {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
  background: var(--deep-ink);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-writing h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-light);
  margin: 0;
}
.card-writing .writing-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.2s;
  padding: 6px 0;
}
.card-writing .writing-item:hover { color: var(--text-light); }
.card-writing .writing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

@media (max-width: 768px) {
  .bento { grid-template-columns: 1fr; }
  .card-quietfeed, .card-visionbort, .card-claude, .card-office, .card-writing {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

/* ===== Journey Preamble Visibility ===== */
.journey-preamble {
  display: none;
  max-width: 600px;
  text-wrap: balance;
  padding: 0 1rem;
  margin: 0.75rem auto 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.85;
  line-height: 1.7;
  color: var(--text-secondary);
}

.journey-mode .journey-preamble {
  display: block;
}

.journey-mode .experience-toggle-wrapper {
  margin-bottom: 0.5rem;
}

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

/* ====== Recommendations ====== */
.rec-icon {
  position: absolute;
  right: var(--spacing-sm);
  bottom: var(--spacing-md);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  opacity: 0.8;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.rec-card .rec-author-wrap {
  margin-top: auto;
  padding-bottom: 0;
  align-items: flex-start;
}

.rec-icon svg {
  width: 22px;
  height: 22px;
  color: var(--text-secondary);
  stroke-width: 1.9;
}

.recommendations-footer {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-top: 8px;
  padding-top: var(--spacing-lg);
  line-height: 1.75;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.recommendations-footer a {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  color: var(--accent);
  background: rgba(var(--primary-rgb), 0.10);
  transition: all 0.25s ease;
  text-decoration: none;
}

.recommendations-footer a:hover {
  background: rgba(var(--primary-rgb), 0.18);
  transform: translateY(-2px);
}

/* Recommendations — Carousel layout */
.recommendations-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding-bottom: 24px;
  -webkit-overflow-scrolling: touch;
}

.recommendations-grid::-webkit-scrollbar { height: 0; }

.recommendations-grid .rec-card {
  flex: 0 0 min(400px, 85vw);
  scroll-snap-align: center;
}

/* Rec card styles */
.rec-card,
.rec-card.glass-card,
.rec-card.glass-card.tint-blue,
.rec-card.glass-card.tint-purple,
.rec-card.glass-card.tint-pink,
.rec-card.glass-card.tint-peach {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 16px;
  overflow: hidden;
  min-height: 260px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Text colors */
.rec-card .rec-quote { color: var(--text-secondary); }
.rec-card .rec-author-name { color: var(--text-primary); }
.rec-card .rec-role { color: var(--text-secondary); }
.rec-card .rec-inline-pill { border: 1px solid var(--border); background: rgba(0,0,0,0.03); }
.rec-card .rec-icon svg { stroke: var(--accent); }

/* Carousel nav arrows */
.rec-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
  margin-bottom: 4px;
}

.rec-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--text-secondary);
}

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

/* --- Author block formatting --- */
.rec-author-wrap {
  display: flex;
  flex-direction: column;
  margin-top: var(--spacing-md);
}

.rec-author-block {
  display: flex;
  flex-direction: column;
}

.rec-author-name {
  font-weight: 700;
  display: block;
}

/* Smaller quote text in Recommendations */
.rec-quote {
  font-size: 0.90rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.rec-role {
  display: block;
  margin-top: 2px;
  font-weight: 500;
}

/* Inline manager pill */
.rec-inline-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border);
  color: var(--text-primary);
  white-space: nowrap;
  vertical-align: baseline;
  transform: translateY(-1px);
}

/* --- Card layout control --- */
.rec-card .glass-card-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
}

.rec-card .glass-card-inner .rec-author-wrap {
  margin-top: auto;
}

.rec-card .glass-card-inner > .rec-author-wrap {
  display: flex;
  align-items: flex-start;
}

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

/* ===== Career Highlights / How I Work Section ===== */
.career-highlights {
  padding: var(--spacing-2xl) var(--spacing-md);
}

.career-highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .career-highlights-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.career-highlights-grid .glass-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
}

/* How I Work icons — cycle through palette */
.career-highlights-grid .glass-card:nth-child(1) .career-icon { color: var(--coral); stroke: var(--coral); }
.career-highlights-grid .glass-card:nth-child(2) .career-icon { color: var(--teal); stroke: var(--teal); }
.career-highlights-grid .glass-card:nth-child(3) .career-icon { color: var(--steel-blue); stroke: var(--steel-blue); }
.career-highlights-grid .glass-card:nth-child(4) .career-icon { color: var(--amber); stroke: var(--amber); }
.career-highlights-grid .glass-card:nth-child(5) .career-icon { color: var(--gold); stroke: var(--gold); }
.career-highlights-grid .glass-card:nth-child(6) .career-icon { color: var(--slate); stroke: var(--slate); }

.career-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.career-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
}

.career-header svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--text-primary);
}

.career-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0;
  color: var(--text-primary);
}

.career-card p {
  font-size: 0.97rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ===== How I Work cards ===== */
.work-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
}

/* ===== Tool Icons / Skill Items ===== */
.tool-item,
.tools-grid .tool-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.tool-item:hover {
  border-color: var(--accent);
}

/* ===== Experience Sector Tags ===== */
.exp-sector {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 7px 2px;
  border-radius: 4px;
  color: var(--slate);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  background: rgba(74, 106, 140, 0.08);
}

.exp-sector--startup {
  background: rgba(42, 157, 143, 0.1);
  color: var(--teal);
}

.exp-sector--acquired {
  background: rgba(60, 145, 230, 0.1);
  color: var(--steel-blue);
}

.exp-sector--enterprise {
  background: rgba(74, 106, 140, 0.1);
  color: var(--slate);
}

.exp-sector--zero-to-one {
  background: rgba(236, 72, 153, 0.18);
}

.exp-sector--scale {
  background: rgba(var(--primary-rgb), 0.12);
}

/* Acquisition detail text next to badge */
.exp-acquired-detail {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
  vertical-align: middle;
}

.exp-acquired-detail a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(160, 160, 160, 0.4);
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.exp-acquired-detail a:hover {
  color: var(--accent);
}

/* ===== Hero — Mobile Rules ===== */
@media (max-width: 640px) {
  .hero-name {
    letter-spacing: -1px;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .hero-summary {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
  }

  .hero-actions {
    margin-top: var(--spacing-lg);
  }

  .hero-inner {
    padding: 0 var(--spacing-sm);
  }

  /* Looking For pills - 2-column grid on mobile */
  .looking-for-pills .role-pill {
    padding: 6px 12px;
    font-size: 0.75rem;
    text-align: center;
  }

  .role-pill-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-width: 360px;
    margin: 4px auto;
    justify-items: stretch;
  }

  .role-pill-row .role-pill {
    margin: 0;
    text-align: center;
  }

  .role-pill-row .role-pill:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    min-width: 40%;
  }

  .pill-label {
    font-size: 0.7rem;
  }

  .pill-row-with-label {
    margin-bottom: var(--spacing-xs);
  }

  /* Let bottom text flow naturally on mobile */
  .two-line-lock br {
    display: none;
  }
}

/* ========== Experience Accordion ========== */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Experience item */
.exp-item,
.exp-item.glass-card {
  background: var(--card-bg);
  border: none;
  outline: none;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: none;
  overflow: hidden;
}

/* Experience header — completely inert, no hover effects */
.exp-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  border: 0;
  box-shadow: none;
  outline: none;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}

.exp-header:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.exp-header:focus:not(:focus-visible) {
  outline: none;
}

/* Experience content — all states */
.exp-content,
.exp-content.expanded {
  display: none;
  border: 0;
  border-width: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  padding: 0 24px 24px 76px;
}

.exp-content.expanded {
  display: block;
}

.exp-logo {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--gray-100);
}

.exp-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exp-item .exp-logo {
  border-radius: 12px;
  overflow: hidden;
}

#exp-hurd .exp-logo {
  background: #000000;
}

.exp-info {
  flex: 1;
  min-width: 0;
}

.exp-company {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.exp-company a {
  color: var(--accent);
  text-decoration: none;
}

@media (hover: hover) {
  .exp-company a:hover {
    color: var(--coral-hover);
  }
}

.exp-acquired {
  font-weight: 400;
  color: var(--gray-600);
  font-size: 0.8rem;
}

.exp-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

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

.exp-period {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-bottom: 2px;
}

.exp-location {
  font-size: 0.75rem;
  color: var(--gray-600);
  opacity: 0.7;
}

.exp-toggle-icon {
  width: 20px;
  height: 20px;
  color: var(--gray-600);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.exp-header.expanded .exp-toggle-icon {
  transform: rotate(180deg);
}

.exp-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--gray-200);
}

.exp-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.exp-highlights li {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  padding: 6px 0;
  padding-left: 16px;
  position: relative;
}

.exp-highlights li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.exp-highlights strong {
  color: var(--text-primary);
}

.exp-images {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.exp-images img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
}

@media (hover: hover) {
  .exp-images img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-12);
  }
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.exp-tag {
  font-size: 0.7rem;
  padding: 4px 10px;
  background: rgba(74, 106, 140, 0.08);
  border-radius: var(--radius-full);
  color: var(--accent);
  font-weight: 500;
  border: none;
}

/* Mobile adjustments for experience */
@media (max-width: 640px) {
  .exp-header {
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    padding-right: 48px;
  }

  .exp-meta {
    text-align: left;
    width: 100%;
    order: 3;
    padding-left: 56px;
  }

  .exp-toggle-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .exp-header.expanded .exp-toggle-icon {
    transform: translateY(-50%) rotate(180deg);
  }

  .exp-content {
    padding-left: 24px;
    padding-right: 24px;
  }

  .exp-images {
    justify-content: center;
  }
}

/* ========== HERO V2 ========== */
.hero-v2 {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  overflow: hidden;
}

.v2-hero-bg {
  position: absolute;
  inset: -10%;
  background: url('images/hero-skyline-light.jpg') center/cover no-repeat;
  will-change: transform;
}

/* Dark overlay for text readability */
.hero-v2::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 35, 66, 0.4);
  pointer-events: none;
  z-index: 0;
}

/* Dark mode: swap hero image */
@media (prefers-color-scheme: dark) {
  .v2-hero-bg {
    background-image: url('images/hero-skyline-dark.jpg');
  }
}

.hero-v2::before {
  display: none;
}

.v2-hero-photo {
  display: none;
}

.v2-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  z-index: 2;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  animation: gentleBounce 2s ease-in-out infinite;
}

@keyframes gentleBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* Hero text styling */
.hero-v2 .hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
}

/* ===== Status Badge — "Open to Opportunities" ===== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.status-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--coral);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}

/* ===== Gradient Tagline ===== */
.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.35;
  margin-bottom: var(--spacing-md);
  background: none;
  background-image: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: rgba(255,255,255,0.55);
  color: rgba(255,255,255,0.55);
  text-wrap: balance;
  max-width: 640px;
}

/* ===== Hero Title (role & location) ===== */
.hero-v2 .hero-title {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
}

/* ===== Hero Actions V2 ===== */
.hero-actions-v2 {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
}

/* ===== "Book a Call" Header CTA ===== */
.header-cta {
  display: none;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  background: var(--accent);
  background-image: none;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

.header-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.35);
}

.header .btn-primary,
.header .header-cta {
  background: var(--accent);
  background-image: none;
  border-radius: 10px;
  color: var(--white);
}

.header .btn-primary:hover,
.header .header-cta:hover {
  background: var(--accent-hover);
}

/* Only show header CTA on wider screens */
@media (min-width: 1024px) {
  .header-cta {
    display: inline-flex;
    align-items: center;
    position: absolute;
    right: var(--spacing-md);
  }

  .nav-container.has-cta {
    justify-content: center;
  }

  .nav-container.has-cta .nav-menu {
    position: relative;
    left: auto;
    transform: none;
  }

  .header.name-visible .nav-container.has-cta .nav-menu {
    gap: var(--spacing-xs);
  }

  .header.name-visible .nav-container.has-cta .nav-menu a {
    padding: var(--spacing-xs) 5px;
    font-size: 0.84rem;
  }

  .nav-container.has-cta .logo {
    position: absolute;
    left: var(--spacing-md);
  }
}

/* Prevent nav items from wrapping */
.nav-menu a {
  white-space: nowrap;
}

/* ===== Side Project (subdued) ===== */
.hero-v2 .hero-side-project {
  margin-top: var(--spacing-md);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.hero-v2 .hero-side-project a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
}

.hero-v2 .hero-side-project a:hover {
  text-decoration: underline;
}

/* ===== View Work Button ===== */
.btn-view-work {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}

.btn-view-work::after {
  display: none;
}

.btn-view-work:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}

/* ===== Tour Link ===== */
.tour-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition-fast);
  margin-top: var(--spacing-xs);
  opacity: 1;
}

.tour-link:hover {
  color: rgba(255,255,255,0.8);
}

.tour-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* ===== Mobile Adjustments for V2 Hero ===== */
@media (max-width: 640px) {
  .hero-v2 {
    min-height: 80vh;
    padding-top: calc(70px + var(--spacing-lg));
  }

  .hero-actions-v2 {
    flex-wrap: nowrap;
  }

  .hero-actions-v2 .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  .status-badge {
    font-size: 0.7rem;
    padding: 6px 12px;
  }
}

/* ========== Site Tour System ========== */
.tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: pointer;
}

.tour-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Spotlight cutout */
.tour-spotlight {
  position: fixed;
  z-index: 9999;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.75);
  transition: top 0.2s ease, left 0.2s ease, width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.tour-spotlight.active {
  opacity: 1;
  visibility: visible;
}

/* Tooltip */
.tour-tooltip {
  position: fixed;
  width: 360px;
  max-width: calc(100vw - 40px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-20);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.tour-tooltip.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tour-tooltip-content {
  padding: var(--spacing-lg);
}

.tour-message {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.tour-tooltip-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.tour-skip {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.tour-skip:hover {
  background: var(--gray-200);
  color: var(--text-primary);
}

.tour-progress {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.tour-next,
.tour-toast-next {
  background: var(--accent);
  background-image: none;
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}

.tour-next:hover,
.tour-toast-next:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.4);
}

/* Mobile toast */
.tour-toast {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  padding: var(--spacing-md) var(--spacing-lg);
  padding-bottom: calc(var(--spacing-lg) + env(safe-area-inset-bottom, 0));
}

.tour-toast.active {
  transform: translateY(0);
}

.tour-toast-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.tour-toast-message {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.tour-toast-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
}

.tour-toast-skip {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 8px 12px;
}

.tour-toast-progress {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Tour active state */
body.tour-active {
  overflow: hidden;
}

body.tour-active .kevbot-fab {
  opacity: 0;
  pointer-events: none;
}

/* ========== Earlier Career Section ========== */
.earlier-career-toggle {
  text-align: center;
  margin-top: 2rem;
}

.earlier-career-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: transparent;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.earlier-career-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 127, 80, 0.04);
}

.earlier-career-btn .earlier-chevron {
  transition: transform 0.3s;
  font-size: 0.75rem;
}

.earlier-career-btn.open .earlier-chevron {
  transform: rotate(180deg);
}

#earlierCareerCards {
  display: none;
  margin-top: 1.5rem;
}

#earlierCareerCards.show {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.earlier-career-narrative {
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border-radius: 14px;
  border-left: 3px solid var(--gray-300);
  margin-bottom: 1.25rem;
}

.earlier-career-narrative .foundation-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--text-secondary);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.earlier-career-narrative p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

.earlier-career-narrative p:last-child {
  margin-bottom: 0;
}

.exp-logo-text {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.2;
}

/* ===== Remove Floating Decorations ===== */
.hero-decoration,
.section-decoration {
  display: none;
}

/* ===== Noise Texture on Key Cards ===== */
.bento-card::after,
.value-card::after,
.fullstack-callout::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  border-radius: inherit;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* ===== KevBot Widget — Skyline palette ===== */
.kevbot-toggle,
.kevbot-fab {
  background: var(--deep-ink);
  background-image: none;
}

.kevbot-send {
  background: var(--coral);
  background-image: none;
}

.kevbot-header {
  background: var(--deep-ink);
  background-image: none;
}

.kevbot-msg.bot {
  border-color: var(--coral);
}

.kevbot-input:focus {
  border-color: var(--coral);
}

.kevbot-typing span {
  background: var(--coral);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar-thumb {
  background: rgba(74, 106, 140, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 106, 140, 0.35);
}

/* ===== Skill Pill (for skill section remnants) ===== */
.skill-pill {
  background: var(--card-bg);
  border: 1px solid var(--border);
}

/* ===== Smooth scroll behavior ===== */
html {
  scroll-behavior: smooth;
}

/* ========== Dark Mode ========== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --surface: #161b22;
    --surface-alt: #1c2128;
    --card-bg: #161b22;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-light: #e6edf3;
    --text-muted: #6e7681;
    --border: #30363d;
    --toggle-track: #30363d;
    --toggle-thumb: #e6edf3;
    --text-tertiary: #9eaab8;
    --white: #ffffff;
  }

  /* Hero overlay — slightly darker */
  .hero-v2::after {
    background: rgba(10, 35, 66, 0.55);
  }

  /* Header */
  .header,
  .header.scrolled {
    background: rgba(13, 17, 23, 0.97);
    border-bottom-color: var(--border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .header .nav-menu a,
  .header .menu a,
  .header a {
    color: var(--text-secondary);
  }

  .header .nav-menu a:hover,
  .header .menu a:hover {
    color: var(--text-light);
  }

  .header .header-cta {
    background: var(--coral);
    color: var(--white);
  }

  #header-name {
    color: var(--text-light);
  }

  /* Glass cards — dark surface */
  .glass-card {
    background: var(--card-bg);
  }

  /* Experience items */
  .exp-item {
    background: var(--card-bg);
  }

  .exp-header:hover:not(.expanded) {
    background: transparent;
  }

  /* Experience meta */
  .exp-period,
  .exp-location {
    color: var(--text-tertiary);
  }

  /* Experience tags */
  .exp-tag {
    background: rgba(255, 127, 80, 0.1);
  }

  /* Project cards */
  .project-card {
    background: var(--card-bg);
  }

  .project-image-wrap {
    opacity: 0.9;
  }

  /* Value cards */
  .value-card {
    background: var(--card-bg);
  }

  /* About section */
  .fullstack-callout {
    background: var(--card-bg);
    border-color: var(--border);
  }

  .profile-img {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  /* Rec cards */
  .rec-card.glass-card {
    background: var(--card-bg);
    border-color: var(--border);
  }

  /* Rec inline pill */
  .rec-inline-pill {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
  }

  /* Career highlights */
  .career-highlights-grid .glass-card {
    background: var(--card-bg);
    border-color: var(--border);
  }

  /* Connect buttons */
  .connect-btn {
    background: var(--card-bg);
    border-color: var(--border);
  }

  /* KevBot */
  .kevbot-fab {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  }

  /* Tour tooltip */
  .tour-tooltip {
    background: var(--card-bg);
    border-color: var(--border);
    color: var(--text-primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  }

  .tour-tooltip-actions {
    background: var(--surface-alt);
    border-top-color: rgba(255, 255, 255, 0.1);
  }

  .tour-skip:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .tour-toast {
    background: var(--surface);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.4);
  }

  /* Footer */
  .footer {
    background: var(--surface);
    border-top-color: var(--border);
  }

  .footer-text .easter-egg {
    background: rgba(var(--white-rgb), 0.10);
    border-color: rgba(var(--white-rgb), 0.24);
    color: var(--text-primary);
    box-shadow: var(--shadow-06);
  }

  .footer-text .easter-egg:hover {
    background: rgba(var(--white-rgb), 0.18);
    border-color: rgba(var(--white-rgb), 0.32);
    box-shadow: var(--shadow-12);
  }

  /* Links — keep coral on dark */
  a {
    color: var(--coral);
  }

  /* Bento card text stays white */
  a.bento-card,
  a.bento-card h3,
  a.bento-card p {
    color: var(--white);
  }

  .writing-item {
    color: var(--text-muted);
  }

  .writing-item:hover {
    color: var(--text-light);
  }

  .card-writing h3 {
    color: var(--text-light);
  }

  /* Section titles */
  .section-title .highlight {
    -webkit-text-fill-color: var(--coral);
  }

  /* Lightbox */
  .lightbox {
    background: rgba(0, 0, 0, 0.95);
  }

  /* Scrollbar */
  ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
  }

  ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  /* Toggle text — inactive needs to be light */
  .toggle-option {
    color: var(--text-light);
  }

  .toggle-option.active,
  .toggle-option[data-active] {
    color: var(--deep-ink);
  }

  /* Button outline variant */
  .btn-view-work {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
  }

  /* Sector tags on dark */
  .exp-sector {
    background: rgba(74, 106, 140, 0.15);
  }

  .exp-sector--startup {
    background: rgba(42, 157, 143, 0.15);
  }

  .exp-sector--acquired {
    background: rgba(60, 145, 230, 0.15);
  }

  /* Earlier Career dark mode */
  .earlier-career-btn {
    border-color: rgba(var(--white-rgb), 0.15);
    color: var(--text-secondary);
  }

  .earlier-career-btn:hover {
    border-color: rgba(var(--white-rgb), 0.3);
    color: var(--text-primary);
    background: rgba(var(--white-rgb), 0.04);
  }

  .earlier-career-narrative {
    background: rgba(var(--white-rgb), 0.03);
    border-left-color: rgba(var(--white-rgb), 0.15);
  }

  /* Experience accordion dark */
  .exp-logo {
    background: var(--gray-800);
  }

  .exp-description {
    border-top-color: rgba(var(--white-rgb), 0.08);
  }

  /* Nav menu a */
  .nav-menu a {
    color: var(--text-primary);
  }

  .menu-toggle span {
    background: var(--text-primary);
  }

  /* Dark secondary button */
  .btn-secondary {
    background: rgba(var(--white-rgb), 0.14);
    border: 1px solid rgba(var(--white-rgb), 0.22);
    color: var(--text-primary);
    box-shadow: var(--shadow-06);
  }

  .btn-secondary:hover {
    background: rgba(var(--white-rgb), 0.22);
    border: 1px solid rgba(var(--white-rgb), 0.28);
    box-shadow: var(--shadow-12);
    transform: translateY(-2px);
  }
}

/* ===== Toggle fix — MUST be last for specificity ===== */
@media (prefers-color-scheme: dark) {
  .experience-toggle .toggle-track {
    background: #30363d;
  }

  /* Dark thumb so light text is readable on it */
  .experience-toggle .toggle-thumb {
    background: var(--coral);
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  }

  .experience-toggle .toggle-option,
  .toggle-track .toggle-option,
  .toggle-option {
    color: rgba(255,255,255,0.85);
  }
}

/* ===== Mobile V2 Fixes ===== */
@media (max-width: 768px) {
  /* Hide scroll hint on mobile — tour link is enough */
  .v2-scroll-hint {
    display: none;
  }

  /* Footer links — balanced wrapping */
  .footer-links {
    justify-content: center;
    gap: 8px 16px;
  }

  .footer-links a {
    flex: 0 0 auto;
    min-width: calc(33% - 16px);
    text-align: center;
  }
}

/* ===== Hidden Sections ===== */
#skills,
#education,
#career-highlights {
  display: none;
}

/* ===== Hidden Status Badge (config-driven) ===== */
.status-badge {
  display: none;
}

/* ===== Hidden Looking For (config-driven) ===== */
#looking-for {
  display: none;
}
