:root {
  --font-body: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Space Grotesk", "DM Sans", system-ui, sans-serif;

  /* Unified Warm Color Palette */
  --color-sand: #f6e9d6;
  --color-cream: #faf6ef;
  --color-butter: #fff4d6;
  --color-cloud: #fffbf0;
  --color-peach: #ffe8d6;
  --color-rose: #ffe4d1;
  --color-terracotta: #f4d4c2;
  --color-apricot: #ffecd2;
  --color-honey: #ffe9cc;
  --color-warm-beige: #f8e8d8;
  --color-soft-coral: #ffd9c4;
  --color-warm-cream: #fff7e6;

  /* Accent & Text Colors */
  --color-charcoal: #1b1b1f;
  --color-text: #2a2a30;
  --color-muted: #5a5a64;
  --color-white: #ffffff;
  --color-chrome-yellow: #ffc400;
  --color-cocoa: #8f5a32;
  --color-cocoa-light: #d9a96d;
  --color-cocoa-soft: #f4e4d2;
  --color-border: rgba(27, 27, 31, 0.1);
  --shadow-soft: 0 18px 40px rgba(33, 35, 38, 0.12);
  --shadow-card: 0 10px 30px rgba(255, 215, 0, 0.3), 0 5px 15px rgba(255, 193, 7, 0.2),
    inset 0 -3px 10px rgba(255, 235, 59, 0.1);

  /* Shadow Depth Hierarchy - Layered for Premium Feel */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 24px 48px rgba(0, 0, 0, 0.15), 0 12px 24px rgba(0, 0, 0, 0.12);

  /* Transition Timing System */
  --ease-smooth: cubic-bezier(0.4, 0.0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-gentle: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 350ms;

  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-pill: 999px;
  --transition: 300ms ease-in-out;
  --max-width: 1280px;
  --frame-offset: 0px;
  --case-spine-offset: clamp(16px, 3vw, 48px);
  /* Universal highlight variables */
  --highlight-color: #000000;
  --selection-bg: rgba(200, 200, 200, 0.2);
  --selection-fg: var(--color-charcoal);
}

[data-theme="dark"] {
  /* Dark Mode - Premium Neutral Palette */
  --color-white: #050505;
  /* Deepest neutral black */
  --color-cream: #000000;
  /* Secondary neutral black */
  --color-cloud: #0a0a0a;
  /* Tertiary neutral black */
  --color-warm-cream: #121212;

  --color-text: #e5e5e5;
  /* High contrast neutral text */
  --color-charcoal: #ffffff;
  --color-muted: #a3a3a3;

  /* Dimmed Accents for Dark Mode - Keeping slight warmth in accents only */
  --color-sand: #000000;
  --color-butter: #262626;
  --color-peach: #262626;
  --color-rose: #262626;
  --color-terracotta: #404040;
  --color-apricot: #404040;
  --color-honey: #404040;
  --color-warm-beige: #262626;
  --color-soft-coral: #404040;

  --color-border: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.7);

  /* Golden Accent System for Dark Mode */
  --gold-primary: rgba(255, 193, 7, 0.9);
  --gold-border: rgba(255, 193, 7, 0.2);
  --gold-border-hover: rgba(255, 193, 7, 0.4);
  --gold-glow: rgba(255, 193, 7, 0.15);
  --gold-glow-strong: rgba(255, 193, 7, 0.25);
  --gold-shadow: 0 8px 32px rgba(255, 193, 7, 0.2);
  --gold-shadow-hover: 0 16px 48px rgba(255, 193, 7, 0.3);

  /* Golden Shadow Depth Hierarchy for Dark Mode */
  --shadow-gold-sm: 0 2px 6px rgba(255, 193, 7, 0.12), 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-gold-md: 0 4px 12px rgba(255, 193, 7, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
  --shadow-gold-lg: 0 8px 24px rgba(255, 193, 7, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-gold-xl: 0 16px 48px rgba(255, 193, 7, 0.25), 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-gold-2xl: 0 24px 64px rgba(255, 193, 7, 0.3), 0 12px 32px rgba(0, 0, 0, 0.25);

  /* Glassmorphism Variables */
  --glass-bg: rgba(20, 20, 23, 0.65);
  --glass-border: rgba(255, 193, 7, 0.15);
  --glass-blur: blur(16px);
  --glass-shadow: 0 8px 32px rgba(255, 193, 7, 0.15);
}

/* Side Projects Dark Mode - Force Override */
[data-theme="dark"] .side-project-card,
[data-theme="dark"] .side-project-card[class*="side-project-card-"] {
  --card-bg: rgba(32, 30, 28, 0.95);
  --card-glow: var(--gold-glow);
  --card-accent: var(--gold-primary);
  background: var(--card-bg) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none;
  transition: box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Theme Toggle Button */
.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-left: 8px;
}

.theme-toggle:hover {
  background-color: rgba(128, 128, 128, 0.1);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  background-color: var(--color-white);
  overflow-x: hidden;
  max-width: 100%;
}

/* Respect user motion preferences */
@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;
  }

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

  .cursor-trail {
    display: none;
  }
}

*,
*::before,
*::after {
  box-sizing: inherit;
  min-width: 0;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
  caret-color: var(--highlight-color);
  transition: margin 240ms var(--transition), box-shadow 300ms var(--transition), border-color 240ms var(--transition), border-width 240ms var(--transition), background-color 0.3s ease, color 0.3s ease;
}

/* Dark mode: white page frame border and black background */
[data-theme="dark"] body.page-frame-active {
  border-color: rgba(255, 255, 255, 0.3);
  background-color: #000000;
}

body.page-frame-active {
  --frame-offset: 8px;
  margin: 8px;
  border: 1px solid rgba(27, 27, 31, 0.18);
  border-radius: 12px;
  box-shadow: 0 22px 50px rgba(27, 27, 31, 0.08);
  background-clip: padding-box;
  background-color: var(--color-white);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 16px);
}

body.page-frame-active main {
  flex: 1 0 auto;
}

body.page-frame-active .site-header {
  top: 8px;
}

body.page-frame-active .site-header.scrolled {
  top: 8px;
}

/* Add padding to body to prevent content jumping under fixed header */
body {
  padding-top: 80px;
}

body.page-frame-active {
  padding-top: 88px;
}

@media (max-width: 900px) {
  body {
    padding-top: 72px;
  }

  body.page-frame-active {
    padding-top: 80px;
  }
}

body.page-frame-active #chatbase-bubble {
  bottom: 24px !important;
  right: 24px !important;
}

/* Theme Transition Animation - Background Sun Effect */
.theme-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  isolation: isolate;
  will-change: opacity;
}

/* Massive sun glow effect that spreads */
.theme-transition-overlay::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(254, 215, 170, 0.9) 0%,
      rgba(253, 230, 138, 0.7) 20%,
      rgba(254, 243, 199, 0.5) 40%,
      transparent 70%);
  filter: blur(100px);
  z-index: 1;
  transform: translateX(-50%);
  opacity: 1;
  will-change: transform, opacity, width, height, bottom, filter;
}

/* Beautiful sun core */
.theme-transition-overlay::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg,
      rgba(255, 250, 205, 1) 0%,
      rgba(254, 230, 138, 1) 25%,
      rgba(251, 191, 36, 1) 60%,
      rgba(245, 158, 11, 1) 100%);
  box-shadow:
    0 0 80px rgba(254, 230, 138, 0.9),
    0 0 140px rgba(251, 191, 36, 0.6),
    0 0 200px rgba(245, 158, 11, 0.4);
  z-index: 5;
  transform: translateX(-50%);
  opacity: 1;
  will-change: transform, opacity, bottom;
}

/* Sunrise animation - Light mode */
.theme-transition-overlay[data-direction="sunrise"] {
  animation: sunriseContainer 1.2s ease-in-out forwards;
}

/* Massive glow expansion on sunrise */
.theme-transition-overlay[data-direction="sunrise"]::before {
  animation: sunRiseGlow 1.2s ease-in-out forwards;
}

/* Sun core animation */
.theme-transition-overlay[data-direction="sunrise"]::after {
  animation: sunRise 1.2s ease-in-out forwards;
}

/* Beautiful light spread overlay - Warm golden glow */
.theme-transition-overlay .light-spread {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%,
      rgba(255, 248, 220, 0.7) 0%,
      rgba(254, 243, 199, 0.6) 10%,
      rgba(254, 215, 170, 0.5) 20%,
      rgba(253, 230, 138, 0.4) 30%,
      rgba(254, 243, 199, 0.3) 45%,
      rgba(255, 250, 240, 0.2) 60%,
      rgba(255, 252, 245, 0.1) 75%,
      transparent 100%);
  animation: lightSpread 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  z-index: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

@keyframes sunriseContainer {

  0%,
  100% {
    opacity: 1;
  }
}

@keyframes sunRiseGlow {
  0% {
    bottom: -10%;
    width: 600px;
    height: 600px;
    opacity: 0;
    transform: translateX(-50%) scale(0.3);
    filter: blur(100px);
  }

  50% {
    bottom: 50%;
    width: 3000px;
    height: 3000px;
    opacity: 1;
    transform: translateX(-50%) scale(1);
    filter: blur(150px);
  }

  100% {
    bottom: 100%;
    width: 1000px;
    height: 1000px;
    opacity: 0;
    transform: translateX(-50%) scale(0.4);
    filter: blur(80px);
  }
}

@keyframes sunRise {
  0% {
    bottom: -10%;
    transform: translateX(-50%) scale(0.5);
    opacity: 0;
    filter: blur(2px);
  }

  50% {
    bottom: 50%;
    transform: translateX(-50%) scale(1.5);
    opacity: 1;
    filter: blur(0px);
  }

  100% {
    bottom: 100%;
    transform: translateX(-50%) scale(1);
    opacity: 0;
    filter: blur(2px);
  }
}

@keyframes lightSpread {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }

  30% {
    opacity: 0.8;
    transform: scale(1);
  }

  70% {
    opacity: 1;
    transform: scale(2.5);
  }

  100% {
    opacity: 0;
    transform: scale(4);
  }
}

/* Sunset animation - Dark mode */
.theme-transition-overlay[data-direction="sunset"] {
  animation: sunsetContainer 1.2s ease-in-out forwards;
}

/* Glow contraction on sunset */
.theme-transition-overlay[data-direction="sunset"]::before {
  animation: sunSetGlow 1.2s ease-in-out forwards;
}

/* Sun core animation */
.theme-transition-overlay[data-direction="sunset"]::after {
  animation: sunSet 1.2s ease-in-out forwards;
}

@keyframes sunsetContainer {

  0%,
  100% {
    opacity: 1;
  }
}

@keyframes sunSetGlow {
  0% {
    bottom: 100%;
    width: 1000px;
    height: 1000px;
    opacity: 0;
    transform: translateX(-50%) scale(0.4);
    filter: blur(80px);
  }

  30% {
    bottom: 70%;
    width: 2000px;
    height: 2000px;
    opacity: 0.7;
    transform: translateX(-50%) scale(0.7);
    filter: blur(120px);
  }

  50% {
    bottom: 50%;
    width: 3000px;
    height: 3000px;
    opacity: 1;
    transform: translateX(-50%) scale(1);
    filter: blur(150px);
  }

  70% {
    bottom: 30%;
    width: 2000px;
    height: 2000px;
    opacity: 0.7;
    transform: translateX(-50%) scale(0.7);
    filter: blur(120px);
  }

  100% {
    bottom: -10%;
    width: 600px;
    height: 600px;
    opacity: 0;
    transform: translateX(-50%) scale(0.3);
    filter: blur(100px);
  }
}

@keyframes sunSet {
  0% {
    bottom: 100%;
    transform: translateX(-50%) scale(1);
    opacity: 0;
  }

  30% {
    bottom: 70%;
    transform: translateX(-50%) scale(1.1);
    opacity: 0.8;
  }

  50% {
    bottom: 50%;
    transform: translateX(-50%) scale(1.2);
    opacity: 1;
  }

  70% {
    bottom: 30%;
    transform: translateX(-50%) scale(1.1);
    opacity: 0.8;
  }

  100% {
    bottom: -10%;
    transform: translateX(-50%) scale(0.5);
    opacity: 0;
  }
}

@keyframes darkSpread {
  0% {
    background: radial-gradient(circle at 50% 0%,
        rgba(15, 23, 42, 0) 0%,
        transparent 30%);
    opacity: 0;
  }

  20% {
    background: radial-gradient(circle at 50% 20%,
        rgba(15, 23, 42, 0.5) 0%,
        rgba(20, 30, 55, 0.4) 15%,
        rgba(25, 35, 60, 0.3) 30%,
        transparent 50%);
    opacity: 0.7;
  }

  50% {
    background: radial-gradient(circle at 50% 50%,
        rgba(10, 15, 30, 0.75) 0%,
        rgba(15, 23, 42, 0.65) 10%,
        rgba(20, 30, 55, 0.5) 25%,
        rgba(25, 35, 60, 0.35) 40%,
        transparent 65%);
    opacity: 1;
  }

  80% {
    background: radial-gradient(circle at 50% 80%,
        rgba(5, 10, 20, 0.9) 0%,
        rgba(10, 15, 30, 0.8) 10%,
        rgba(15, 23, 42, 0.65) 25%,
        rgba(20, 30, 55, 0.45) 40%,
        rgba(25, 35, 60, 0.25) 60%,
        transparent 80%);
    opacity: 0.8;
  }

  100% {
    background: radial-gradient(circle at 50% 100%,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(5, 10, 20, 0.7) 15%,
        rgba(15, 23, 42, 0.4) 35%,
        transparent 60%);
    opacity: 0;
  }
}

/* Form control accents follow universal highlight */
input,
textarea,
select,
progress,
meter {
  accent-color: var(--highlight-color);
}

/* Utility for dark backgrounds */
.on-dark,
.site-footer {
  --highlight-color: var(--color-white);
  --selection-bg: rgba(255, 255, 255, 0.25);
  --selection-fg: var(--color-white);
}

::selection,
*::selection,
body *::selection {
  background: var(--selection-bg);
  color: var(--selection-fg);
}

::-moz-selection,
body *::-moz-selection {
  background: var(--selection-bg);
  color: var(--selection-fg);
}

body.theme-warm {
  --color-cream: var(--color-sand);
  --color-butter: var(--color-sand);
  --color-cloud: var(--color-sand);
  --color-mint: var(--color-sand);
}

body.modal-open {
  overflow: hidden;
}

main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

.hidden {
  display: none !important;
}

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

a:link,
a:visited {
  color: inherit;
}

a:hover,
a:focus,
a:active {
  color: var(--highlight-color) !important;
  text-decoration: underline;
}

a:hover svg,
a:focus svg,
a:active svg {
  stroke: var(--highlight-color) !important;
  color: var(--highlight-color) !important;
}


/* Remove focus outlines for navbar elements */
.site-header a:focus,
.site-header button:focus,
.site-header a:focus-visible,
.site-header button:focus-visible {
  outline: none !important;
}

/* Keep focus outlines for other interactive elements */
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--highlight-color) !important;
  outline-offset: 2px;
}

/* For footer elements on dark background */
.site-footer *:focus,
.site-footer *:focus-visible {
  outline-color: rgba(255, 255, 255, 0.8) !important;
}

.inline-link {
  color: #000;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.inline-link::after {
  content: '→';
  font-size: 1.1em;
  transition: transform var(--transition);
}

.inline-link:hover::after,
.inline-link:focus::after {
  transform: translateX(4px);
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-md);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--color-charcoal);
  margin: 0 0 0.5em;
  line-height: 1.1;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

p {
  margin: 0 0 1.2em;
  color: var(--color-muted);
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.7;
}

strong {
  color: var(--color-charcoal);
}

ul,
ol {
  margin: 0 0 1em;
  padding: 0 0 0 1.25em;
}

.section {
  padding: 80px 0;
  position: relative;
  z-index: 2;
}

.js .section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 480ms var(--transition), transform 520ms var(--transition);
}

.js .section.revealed {
  opacity: 1;
  transform: translateY(0);
}

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.grid {
  display: grid;
  gap: 48px;
}

.flex {
  display: flex;
  gap: 24px;
}

.between {
  justify-content: space-between;
}

.center {
  align-items: center;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: visible;
  background: var(--color-charcoal);
  color: var(--color-white);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  z-index: 999;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: visible;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: transparent;
  padding: 16px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header .container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 999px;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
}

.site-header .container.flex {
  gap: 16px;
  align-items: center;
  flex-wrap: nowrap;
}

#site-header-container {
  min-width: 900px;
}

@media (max-width: 900px) {
  #site-header-container {
    min-width: 0;
    width: 100%;
  }
}


/* Keep glassmorphism effect at all times */
.site-header.pure .container {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Scrolled state - compact chip format on desktop only */
.site-header.scrolled {
  padding: 12px 0;
}

/* Desktop: Compact reduced size when scrolled - Glassmorphic */
@media (min-width: 901px) {
  .site-header.scrolled .container {
    width: fit-content;
    max-width: min(860px, fit-content);
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border-radius: 999px;
    padding: 10px 28px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
      0 2px 8px rgba(0, 0, 0, 0.04),
      0 8px 24px rgba(0, 0, 0, 0.06),
      0 16px 48px rgba(0, 0, 0, 0.08),
      inset 0 1px 1px rgba(255, 255, 255, 0.4);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* Mobile: Keep consistent size when scrolled */
@media (max-width: 900px) {
  .site-header.scrolled .container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 999px;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }
}

.site-header.scrolled .container.flex {
  gap: 20px;
  justify-content: center;
  align-items: center;
}

/* Desktop: Reduced brand and nav size when scrolled */
@media (min-width: 901px) {
  .site-header.scrolled .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .site-header.scrolled .brand-name {
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    white-space: nowrap;
  }

  .site-header.scrolled .nav-menu a {
    font-size: 0.88rem;
    padding: 6px 12px;
  }

  .site-header.scrolled .nav-menu {
    gap: 6px;
  }
}

/* Mobile: Keep consistent sizes when scrolled */
@media (max-width: 900px) {
  .site-header.scrolled .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .site-header.scrolled .brand-name {
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    white-space: nowrap;
  }

  .site-header.scrolled .nav-menu a {
    font-size: 0.95rem;
    padding: 6px 20px;
  }

  .site-header.scrolled .nav-menu {
    gap: 8px;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
  flex-wrap: nowrap;
}

.brand-name {
  white-space: nowrap;
}

.site-header .brand,
.site-header .brand:visited {
  color: inherit;
  text-decoration: none;
}

.site-header .brand:hover,
.site-header .brand:focus-visible {
  text-decoration: none !important;
}

.theme-warm .brand-name {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #000;
  white-space: nowrap;
  font-size: 1rem;
  transition: color var(--transition);
}



.theme-warm .brand:hover,
.theme-warm .brand:focus-visible {
  color: #000 !important;
  text-decoration: none !important;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--color-charcoal);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.nav-menu {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  position: relative;
}

.nav-menu li {
  display: flex;
  align-items: center;
  white-space: nowrap;
  margin: 0;
}

.site-header .nav-menu a,
.site-header .nav-menu a:visited {
  text-decoration: none;
}

.site-header .nav-menu a:hover,
.site-header .nav-menu a:focus-visible,
.site-header .nav-menu a:active {
  text-decoration: none !important;
}

.site-header .nav-menu li>a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  margin: 0;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.95rem;
  color: #000 !important;
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none !important;
  line-height: 1.4;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition), border-color var(--transition), transform 0.2s ease;
}

.site-header .nav-menu li>a:hover,
.site-header .nav-menu li>a:focus-visible {
  background: rgba(27, 27, 31, 0.08);
  border-color: rgba(27, 27, 31, 0.12);
  color: #000 !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}

.site-header .nav-menu li>a.active,
.site-header .nav-menu li>a[aria-current="page"] {
  background: rgba(27, 27, 31, 0.22);
  border-color: rgba(27, 27, 31, 0.24);
  color: #000 !important;
  text-decoration: none !important;
}

.site-header .nav-resume a {
  background: rgba(27, 27, 31, 0.9);
  color: #fff !important;
  border: 1px solid rgba(27, 27, 31, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 8px 20px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.site-header .nav-resume a:hover,
.site-header .nav-resume a:focus-visible {
  background: rgba(27, 27, 31, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.site-header .nav-menu li>a:visited {
  color: #000 !important;
  text-decoration: none !important;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--color-muted);
  line-height: 1;
  transition: color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-item:hover>.nav-link,
.nav-item.is-open>.nav-link,
.nav-link.active {
  color: var(--color-charcoal);
  background: rgba(17, 25, 40, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.nav-link .nav-caret {
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  display: inline-block;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-left: 6px;
}

.nav-item.is-open>.nav-link .nav-caret,
.nav-item:hover>.nav-link .nav-caret {
  transform: rotate(-135deg) translateY(1px);
}

.nav-mega {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  width: min(720px, calc(100vw - 40px));
  background: rgba(255, 255, 255, 0.96);
  border-radius: 28px;
  padding: 28px;
  box-shadow:
    0 40px 80px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1200;
}

.nav-mega-content {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 0.42fr);
  gap: 30px;
  align-items: stretch;
}

.nav-mega-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-mega-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  background: rgba(248, 246, 241, 0.2);
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.nav-mega-card:hover,
.nav-mega-card:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(17, 25, 40, 0.08);
  box-shadow: 0 20px 34px rgba(15, 23, 42, 0.14);
}

.nav-mega-card-dot {
  width: 16px;
  height: 16px;
  border-radius: 6px;
  background: var(--dot-color, var(--color-accent));
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
  flex-shrink: 0;
  margin-top: 4px;
}

.nav-mega-card-title {
  font-weight: 600;
  color: var(--color-charcoal);
  display: block;
}

.nav-mega-card-subtitle {
  display: block;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.nav-mega-preview {
  position: relative;
  border-radius: 24px;
  padding: 32px 28px;
  background: linear-gradient(135deg, #f4a460 0%, #d2691e 100%);
  color: #fff;
  box-shadow:
    0 24px 48px rgba(244, 164, 96, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  display: grid;
  gap: 12px;
}

.nav-mega-preview h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
}

.nav-mega-preview p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.nav-mega-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.72;
}

.nav-mega-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.nav-mega-cta:hover,
.nav-mega-cta:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.nav-item.nav-has-mega.is-open .nav-mega {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 1025px) {

  .nav-item.nav-has-mega:hover .nav-mega,
  .nav-item.nav-has-mega:focus-within .nav-mega {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}

.site-header.scrolled .nav-menu {
  gap: 6px;
  padding: 0;
}

.site-header.scrolled .nav-link {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.nav-toggle {
  background: none;
  border: none;
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  transition: background var(--transition);
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-charcoal);
  border-radius: 2px;
  transition: transform var(--transition);
}

.nav-toggle-bar::before {
  transform: translateY(-6px);
}

.nav-toggle-bar::after {
  transform: translateY(4px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-family: var(--font-body);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none !important;
}

.btn:hover,
.btn:focus,
.btn:active {
  text-decoration: none !important;
  color: inherit;
}

/* SBHM (Shadow Border Harmony Method) - Primary Button */
.btn.primary {
  background: var(--color-charcoal);
  color: var(--color-white);
  border: none;
  background-clip: padding-box;
  box-shadow:
    0 1px 3px 0 rgba(33, 35, 38, 0.25),
    0 0 0 1px rgba(20, 21, 23, 0.15) inset,
    0 8px 20px rgba(33, 35, 38, 0.16);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn.primary:hover {
  background: #1a1b1e;
  box-shadow:
    0 1px 4px 0 rgba(33, 35, 38, 0.3),
    0 0 0 1px rgba(20, 21, 23, 0.2) inset,
    0 12px 28px rgba(33, 35, 38, 0.22);
  transform: translateY(-1px);
}

.btn.primary:focus {
  outline: none;
  box-shadow:
    0 1px 3px 0 rgba(33, 35, 38, 0.25),
    0 0 0 1px rgba(20, 21, 23, 0.15) inset,
    0 8px 20px rgba(33, 35, 38, 0.16),
    0 0 0 3px rgba(33, 35, 38, 0.25);
}

/* SBHM - Secondary Button */
.btn.secondary {
  background: rgba(33, 35, 38, 0.06);
  color: var(--color-charcoal);
  border: none;
  background-clip: padding-box;
  box-shadow:
    0 1px 2px 0 rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(33, 35, 38, 0.12) inset,
    0 4px 12px rgba(33, 35, 38, 0.08);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn.secondary:hover {
  background: rgba(33, 35, 38, 0.10);
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(33, 35, 38, 0.18) inset,
    0 8px 20px rgba(33, 35, 38, 0.12);
  transform: translateY(-1px);
}

.btn.secondary:focus {
  outline: none;
  box-shadow:
    0 1px 2px 0 rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(33, 35, 38, 0.12) inset,
    0 4px 12px rgba(33, 35, 38, 0.08),
    0 0 0 3px rgba(33, 35, 38, 0.15);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  color: var(--color-charcoal);
  padding-inline: 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px) saturate(200%);
  -webkit-backdrop-filter: blur(16px) saturate(200%);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.btn.tertiary {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(240, 248, 255, 0.6));
  color: rgba(27, 27, 31, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  font-weight: 600;
}

.btn.tertiary:hover,
.btn.tertiary:focus {
  transform: translateY(-3px);
  box-shadow:
    0 16px 32px rgba(15, 23, 42, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(240, 248, 255, 0.7));
  border-color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .eyebrow {
  color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .work-card {
  color: #ffffff;
}

[data-theme="dark"] .work-card h3 {
  color: #ffffff;
}


/* Hero */
/* Hero fills the viewport initially and is pure white to avoid nav overlap */
.section.hero {
  background: var(--color-white);
  min-height: 100vh;
  position: relative;
  --bg-progress: 0;
  /* 0 -> 1 set via JS for smooth cream fade-in */
}

.section.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-cream);
  opacity: var(--bg-progress);
  pointer-events: none;
  transition: opacity 120ms linear;
}

/* Ensure hero content sits above background overlay */
.section.hero>.container,
.section.hero .hero-card,
.section.hero .hero-grid,
.section.hero .hero-copy,
.section.hero .hero-art {
  position: relative;
  z-index: 1;
}

/* Other cream-themed sections remain cream */
.section[data-theme="cream"]:not(.hero) {
  background: var(--color-cream);
}

/* After scrolling, switch hero back to cream so the card looks elevated */
.section.hero.hero-compact {
  background: var(--color-cream);
  transition: background 300ms ease;
}

.section.hero.hero-compact .hero-card {
  /* margin-bottom: 24px; */
  /* Removed to keep hero card height consistent */
  border-radius: 16px;
}

.hero-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 124px 140px 60px;
  /* extra top padding so header chip never overlaps */
  /* Smooth, scroll-driven elevation */
  --elev: 0;
  /* 0 -> 1 set via JS */
  border: 1px solid rgba(27, 27, 31, calc(0.10 * var(--elev)));
  box-shadow:
    0 20px 60px rgba(251, 191, 36, calc(0.15 * var(--elev))),
    0 10px 30px rgba(245, 158, 11, calc(0.10 * var(--elev))),
    0 4px 12px rgba(217, 119, 6, calc(0.08 * var(--elev)));
  position: relative;
  z-index: 1;
  overflow: hidden;
  max-width: 100%;
  --mouse-x: 50%;
  --mouse-y: 50%;
  margin-bottom: 32px;
  /* add space so it never overlaps the next section */
  border-radius: clamp(24px, 3vw, 38px);
  transition: border-radius 300ms ease, box-shadow 120ms linear, margin-bottom 300ms ease, border-color 120ms linear;
}

/* Mouse-tracking gradient effect */
.hero-card::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(350px circle at var(--mouse-x) var(--mouse-y),
      rgba(251, 191, 36, 0.12),
      rgba(245, 158, 11, 0.08) 30%,
      transparent 60%);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s ease;
}

.hero-card>* {
  position: relative;
  z-index: 1;
}

/* Hero download button - appears AFTER navbar button disappears */
.hero-download-btn {
  position: absolute;
  top: 32px;
  right: 40px;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  z-index: 10;
  visibility: visible;
}

.hero-card.cta-visible .hero-download-btn {
  animation: slideInBounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
  visibility: visible;
}

@keyframes slideInBounce {
  0% {
    opacity: 0;
    transform: translateY(-30px) scale(0.8);
  }

  50% {
    transform: translateY(3px) scale(1.05);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
  }
}

.hero-grid {
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  gap: 80px;
}

.hero-copy {
  grid-column: span 8;
}

.hero-card .cta-group {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.hero-card.cta-visible .cta-group {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.hero-title {
  font-size: clamp(2.5rem, 3.6vw, 3.6rem);
  white-space: normal;
  will-change: transform;
  transition: transform 0.15s ease-out;
  position: relative;
  display: inline-block;
}

/* Typing cursor - always blinking */
.hero-title::after {
  content: '|';
  display: inline-block;
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  font-weight: 400;
  color: var(--color-charcoal);
  opacity: 1;
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  50.1%,
  100% {
    opacity: 0;
  }
}

/* Hero Name Typing Animation - Left to Right */
.hero-title .char {
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-charcoal);
  will-change: transform;
  transition: transform 0.15s ease-out;
}

.hero-bio {
  max-width: 520px;
  will-change: transform;
  transition: transform 0.15s ease-out;
  margin-top: 0px;
}

.cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(167, 243, 208, 0.3), rgba(134, 239, 172, 0.25));
  border-radius: var(--radius-pill);
  font-weight: 500;
  color: #047857;
  border: 1.5px solid rgba(52, 211, 153, 0.3);
  box-shadow: 0 4px 12px rgba(52, 211, 153, 0.15);
  backdrop-filter: blur(8px);
}

.status-pill-top {
  margin-bottom: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3), 0 0 0 6px rgba(16, 185, 129, 0.15);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

@keyframes autoReveal {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-art {
  grid-column: span 4;
  display: grid;
  gap: 32px;
  position: relative;
  z-index: 1;
  /* ensure art sits above gradient but below text */
}

/* Hero Image Container */
.hero-image-container {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.hero-image-container:hover {
  transform: translateY(-8px);
}

.hero-bg-image {
  width: 50%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: -0.5rem;
  position: relative;
  z-index: 0;
  margin-left: auto;
  margin-right: auto;
}

.hero-image {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  z-index: 1;
}

.floating-card {
  position: absolute;
  bottom: -40px;
  left: -60px;
  padding: 24px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  width: min(340px, 100%);
  z-index: 2;
  will-change: transform;
  transform: translateY(var(--float-y, 0)) rotate(var(--float-rotate, 0));
  transition: transform 0.3s ease-out;
}

.card-header {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 16px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-flex;
}

.dot-red {
  background: #f4a460;
}

.dot-yellow {
  background: #ffc266;
}

.dot-green {
  background: #d4a574;
}

.hero-illustration {
  height: 340px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 237, 210, 0.6), rgba(255, 247, 230, 0.8));
  box-shadow: inset 0 0 0 1px rgba(27, 27, 31, 0.04);
  position: relative;
  overflow: visible;
}

.hero-illustration::before,
.hero-illustration::after {
  content: "";
  position: absolute;
  border-radius: 40% 60% 50% 70%;
  background: rgba(255, 255, 255, 0.5);
  filter: blur(0px);
  animation: float 12s ease-in-out infinite;
}

.hero-illustration::before {
  width: 180px;
  height: 220px;
  top: 20%;
  left: 20%;
}

.hero-illustration::after {
  width: 240px;
  height: 260px;
  bottom: 10%;
  right: 14%;
  animation-delay: 3s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-12px) rotate(2deg);
  }
}

/* Hero badge */
.opportunity-sticky-flags {
  position: absolute;
  top: 138px;
  left: 140px;
  z-index: 20;
  pointer-events: none;
}

.sticky-flag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);
  border: none;
  box-shadow:
    0 2px 8px rgba(150, 230, 161, 0.25),
    0 1px 2px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  min-width: 200px;
  transition: all 0.3s ease;
}

.sticky-flag:hover {
  box-shadow:
    0 4px 12px rgba(150, 230, 161, 0.35),
    0 2px 4px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.flag-green {
  color: #2d5016;
}

.flag-icon {
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.flag-text {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #2d5016;
}

@keyframes stickyFlagPeek {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(8px);
  }
}

/* Philosophy */
.philosophy {
  padding: clamp(32px, 6vw, 64px) 0 clamp(56px, 9vw, 104px);
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #f8f0e7 0%, #fffdf8 60%, #ffeede 100%);
}

.philosophy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 182, 193, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(173, 216, 230, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 253, 208, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.philosophy-content {
  text-align: left;
  max-width: 1220px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.philosophy-quote {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-family: var(--font-heading);
  color: #1b1b1f;
  margin: 0 auto 48px;
  line-height: 1.4;
  max-width: 26ch;
  text-align: center;
}

.philosophy-quote em {
  font-style: italic;
  color: var(--color-charcoal);
  position: relative;
  display: inline-block;
}

.philosophy-quote em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 8px;
  background: linear-gradient(90deg, #ffe4d1, #ffecd2, #fff4d6, #ffe8d6);
  opacity: 0.4;
  border-radius: 4px;
  z-index: -1;
}

.philosophy-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: clamp(1.15rem, 2.2vw, 1.85rem);
  max-width: min(1240px, 96vw);
  margin: 0 auto;
  align-items: stretch;
  padding-left: clamp(0rem, 4vw, 1.5rem);
  padding-right: clamp(0rem, 4vw, 1.5rem);
  justify-content: center;
}

.philosophy-item {
  --accent: rgba(255, 214, 227, 0.55);
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-items: start;
  gap: 1.25rem;
  padding: clamp(2rem, 2.5vw, 2.25rem);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(255, 252, 248, 0.92) 85%);
  border-radius: 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: none;
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.45s ease, border-color 0.45s ease, opacity 0.35s ease;
  position: relative;
  overflow: hidden;
  min-height: 260px;
}

.philosophy-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
  pointer-events: none;
}

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

.philosophy-item:hover {
  transform: translateY(-10px) scale(1.015);
  border-color: color-mix(in srgb, var(--accent) 45%, rgba(255, 255, 255, 0.8));
  box-shadow:
    0 26px 45px color-mix(in srgb, var(--accent) 35%, rgba(15, 15, 17, 0.08)),
    0 12px 24px rgba(15, 15, 17, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.philosophy-item:hover::before {
  opacity: 1;
}

.philosophy-item:nth-child(1) {
  --accent: rgba(255, 228, 196, 0.55);
  background: linear-gradient(160deg, rgba(255, 250, 245, 0.98), rgba(255, 242, 230, 0.94) 90%);
}

.philosophy-item:nth-child(2) {
  --accent: rgba(255, 218, 185, 0.55);
  background: linear-gradient(160deg, rgba(255, 248, 240, 0.98), rgba(255, 236, 220, 0.94) 90%);
}

.philosophy-item:nth-child(3) {
  --accent: rgba(255, 226, 185, 0.55);
  background: linear-gradient(160deg, rgba(255, 250, 240, 0.98), rgba(255, 242, 222, 0.94) 90%);
}

.philosophy-item:nth-child(4) {
  --accent: rgba(244, 212, 194, 0.55);
  background: linear-gradient(160deg, rgba(250, 245, 240, 0.98), rgba(248, 235, 225, 0.94) 90%);
}

.philosophy-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-charcoal);
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 40%, rgba(255, 255, 255, 0.95)), rgba(255, 255, 255, 0.9));
  border-radius: 20px;
  padding: 12px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 2px 8px rgba(15, 15, 17, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.9);
  justify-self: flex-start;
}

.philosophy-icon svg {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.philosophy-item:hover .philosophy-icon svg {
  transform: scale(1.1);
}

.philosophy-item span {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(32, 32, 37, 0.78);
  text-align: left;
}

[data-theme="dark"] .philosophy {
  background: linear-gradient(160deg, #050508 0%, #0d0e13 45%, #14151c 100%);
}

[data-theme="dark"] .philosophy::before {
  background: transparent;
}

[data-theme="dark"] .philosophy-quote {
  color: rgba(245, 246, 250, 0.92);
}

[data-theme="dark"] .philosophy-quote em {
  color: var(--gold-primary);
}

[data-theme="dark"] .philosophy-quote em::after {
  background: linear-gradient(90deg, rgba(255, 193, 7, 0.8), rgba(255, 159, 28, 0.5));
  opacity: 0.8;
}

[data-theme="dark"] .philosophy-item {
  background: rgba(5, 5, 8, 0.95);
  border: 1px solid var(--gold-border);
  box-shadow: none;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

[data-theme="dark"] .philosophy-item::before {
  background: transparent;
}

[data-theme="dark"] .philosophy-item h3 {
  color: rgba(245, 246, 250, 0.95);
}

[data-theme="dark"] .philosophy-item span {
  color: rgba(245, 246, 250, 0.72);
}

[data-theme="dark"] .philosophy-icon {
  color: var(--gold-primary);
  background: rgba(255, 193, 7, 0.12);
  border-color: rgba(255, 193, 7, 0.4);
  box-shadow: none;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

[data-theme="dark"] .philosophy-item:hover {
  border-color: var(--gold-border-hover);
  box-shadow: inset 0 0 30px rgba(255, 193, 7, 0.15), 0 20px 40px rgba(255, 193, 7, 0.2);
  transform: translateY(-4px);
}

[data-theme="dark"] .philosophy-item:hover .philosophy-icon {
  background: rgba(255, 193, 7, 0.25);
  box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

/* Smooth transitions for all interactive elements */
.btn,
.work-card,
.article-card,
.sticky-note {
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Enhance button hover effects */
.btn {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
  transform: scale(1.05);
}

.btn:active {
  transform: scale(0.98);
}

/* Article cards hover effect */
.article-card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-6px);
}

/* Sticky notes subtle tilt on hover */
.sticky-note {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sticky-note:hover {
  transform: rotate(1deg) scale(1.02);
}

/* Kind Words Testimonials */
.kind-words {
  padding: 96px 0;
  overflow: hidden;
  background: linear-gradient(180deg, #fdf1e3 0%, #f9f4ec 100%);
}

.kind-words .container {
  overflow: visible;
  width: 100%;
  max-width: none;
  padding: 0;
}

.kind-words-header {
  text-align: center;
  margin-bottom: 56px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.kind-words-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
  margin-left: auto;
  margin-right: auto;
}

.kind-words-header p {
  margin-left: auto;
  margin-right: auto;
}

.testimonials-carousel {
  position: relative;
  width: 100%;
  padding: 20px 0 60px;
  overflow: hidden;
}

.carousel-controls {
  display: none;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  z-index: 10;
  position: relative;
}

.carousel-btn {
  background: #fff;
  border: 1px solid rgba(229, 190, 143, 0.4);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: rgba(47, 37, 24, 0.7);
  box-shadow: 0 4px 12px rgba(196, 166, 128, 0.15);
}

.carousel-btn:hover {
  background: #fff;
  border-color: rgba(229, 190, 143, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 166, 128, 0.25);
  color: rgba(47, 37, 24, 0.9);
}

.carousel-btn:focus {
  outline: 2px solid rgba(229, 190, 143, 0.8);
  outline-offset: 2px;
}

.carousel-btn:active {
  transform: translateY(0);
}

.carousel-pause .pause-icon,
.carousel-pause.paused .play-icon {
  display: block;
}

.carousel-pause .play-icon,
.carousel-pause.paused .pause-icon {
  display: none;
}

.carousel-pause.paused {
  color: rgba(47, 37, 24, 0.7);
}

.carousel-pause.paused:hover {
  color: rgba(47, 37, 24, 0.9);
}

.testimonials-carousel::before,
.testimonials-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 160px;
  pointer-events: none;
  z-index: 2;
}

.testimonials-carousel::before {
  left: 0;
  background: linear-gradient(90deg, #fdf1e3 0%, rgba(253, 241, 227, 0));
}

.testimonials-carousel::after {
  right: 0;
  background: linear-gradient(270deg, #fdf1e3 0%, rgba(253, 241, 227, 0));
}

.testimonials-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: none;
  transition: transform 0.5s ease;
}

.testimonials-track.is-visible {
  animation: testimonial-scroll 55s linear infinite;
  will-change: transform;
}

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

.testimonial-card-mini {
  flex: 0 0 380px;
  background: rgba(12, 12, 15, 0.9);
  border-radius: 28px;
  padding: 0 0 32px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 193, 7, 0.25);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.testimonial-card-body {
  width: calc(100% - 48px);
  margin: 28px auto 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  flex: 1;
}

.testimonial-card-mini:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 4px 12px rgba(196, 166, 128, 0.08),
    0 20px 48px rgba(196, 166, 128, 0.18),
    0 32px 64px rgba(196, 166, 128, 0.12);
  border-color: rgba(255, 219, 150, 0.6);
}

.testimonial-card-mini::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 219, 150, 0.15) 100%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
  transition: opacity 0.4s ease;
}

.testimonial-card-mini:hover::before {
  opacity: 1;
}

.testimonial-skill {
  font-size: 0.75rem;
  color: #ffc107;
  margin: 0;
  padding: 14px 20px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-align: center;
  position: relative;
  z-index: 1;
  background: rgba(20, 20, 24, 0.9);
  border-radius: 28px 28px 0 0;
  border: none;
  border-bottom: 1.5px solid rgba(255, 204, 102, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 2px 8px rgba(255, 204, 102, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  width: 100%;
}

.testimonial-card-mini:hover .testimonial-skill {
  transform: translateY(-2px);
  box-shadow:
    0 4px 12px rgba(255, 204, 102, 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.testimonial-skill strong {
  font-weight: 650;
  color: rgba(47, 37, 24, 0.8);
  letter-spacing: 0.06em;
}

.testimonial-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 5px solid #fff;
  object-fit: cover;
  box-shadow:
    0 8px 24px rgba(196, 166, 128, 0.3),
    0 2px 8px rgba(196, 166, 128, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.5);
  margin: 0 auto 16px;
  display: block;
  position: relative;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.testimonial-card-mini:hover .testimonial-avatar {
  transform: scale(1.08);
  box-shadow:
    0 12px 32px rgba(196, 166, 128, 0.4),
    0 4px 12px rgba(196, 166, 128, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.6);
  border-width: 6px;
}

.testimonial-emoji {
  display: none;
}

.testimonial-text {
  font-size: 0.98rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Georgia', 'Times New Roman', serif;
  margin: 0;
  position: relative;
  padding-top: 12px;
  padding-left: 0;
  z-index: 1;
  text-align: left;
}

.testimonial-text::before {
  content: '\201C';
  position: absolute;
  left: -8px;
  top: -2px;
  font-size: 3rem;
  color: rgba(255, 204, 102, 0.35);
  font-family: 'Georgia', serif;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  border-top: 1.5px solid rgba(255, 219, 150, 0.35);
  padding-top: 18px;
  margin-top: auto;
  position: relative;
  z-index: 1;
  width: 100%;
}

.testimonial-author strong {
  font-size: 1.05rem;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 650;
  letter-spacing: 0.01em;
}

.testimonial-author span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
  font-weight: 500;
}

.testimonial-tag {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(47, 37, 24, 0.65);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 6px 14px;
  border: 1px solid rgba(229, 190, 143, 0.4);
  width: fit-content;
  margin-top: 4px;
}

@keyframes testimonial-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-track {
    animation: none;
  }
}

@media (max-width: 768px) {
  .testimonials-carousel {
    padding: 0 20px 40px;
    width: 100%;
    margin-left: 0;
  }

  .testimonials-carousel::before,
  .testimonials-carousel::after {
    width: 60px;
  }

  .testimonial-card-mini {
    flex: 0 0 300px;
    padding: 24px 26px 28px;
  }

  .testimonial-avatar {
    width: 80px;
    height: 80px;
  }
}

/* Selected Work - Bento Grid */
.section[data-theme="sky"] {
  background: var(--color-sky);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
  padding: 32px 24px;
}

.section-header h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--color-muted);
}

.work-header {
  text-align: center;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 56px;
}

.work-header {
  text-align: center;
  margin-bottom: 60px;
}

.work-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 12px;
}

.work-header p {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 100%;
}

/* Work Bento Grid - Bold Vibrant Cards */
.work-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(128px, 12.8vw, 208px);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
  width: 96%;
}

/* Ensure grid items fill their areas */
.work-bento-grid>.work-card {
  height: 100%;
}

.work-card {
  border-radius: 20px;
  padding: 29px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  position: relative;
  overflow: visible;
  text-decoration: none !important;
  color: inherit;
  will-change: transform;
  border: none;
}

/* Image cover variant */
.work-card-cover {
  padding: 0;
  min-height: auto;
  overflow: hidden;
  height: 100%;
}

.work-card-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  outline: none;
  box-shadow: none;
  border-radius: 20px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card:hover .work-card-cover img,
.work-card:focus .work-card-cover img {
  transform: scale(1.01);
  filter: brightness(1.02);
}

/* Heights are controlled by grid row spans; no fixed AR */

.work-card:hover,
.work-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  text-decoration: none !important;
}

/* Colored shadows for specific work cards */
.work-card-bhava:hover,
.work-card-bhava:focus {
  box-shadow: 0 12px 32px rgba(255, 107, 53, 0.2), 0 8px 24px rgba(247, 147, 30, 0.12);
}

.work-card-branch:hover,
.work-card-branch:focus {
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.2), 0 8px 24px rgba(29, 78, 216, 0.12);
}

.work-card-pushowl-ai:hover,
.work-card-pushowl-ai:focus {
  box-shadow: 0 12px 32px rgba(219, 39, 119, 0.2), 0 8px 24px rgba(159, 18, 57, 0.12);
}

.work-card-pushowl:hover,
.work-card-pushowl:focus {
  box-shadow: 0 12px 32px rgba(22, 163, 74, 0.2), 0 8px 24px rgba(22, 101, 52, 0.12);
}

.work-card-pushowl-green:hover,
.work-card-pushowl-green:focus {
  box-shadow: 0 12px 32px rgba(22, 163, 74, 0.2), 0 8px 24px rgba(22, 101, 52, 0.12);
}

.work-card-design:hover,
.work-card-design:focus {
  box-shadow: 0 12px 32px rgba(255, 107, 53, 0.2), 0 8px 24px rgba(217, 119, 6, 0.12);
}

.work-card * {
  text-decoration: none !important;
}

.work-card:hover *,
.work-card:focus * {
  text-decoration: none !important;
}

.work-card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  position: relative;
  z-index: 2;
}

.work-card h3 {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: white;
  margin: 0 0 auto 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Modern work card layout (as per mock) */
.modern-card {
  padding: 32px;
  color: #fff;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.modern-card .work-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  opacity: 0.85;
  margin-bottom: 10px;
}

.modern-card .work-title {
  font-family: var(--font-heading);
  font-weight: 800;
  margin: 0 auto 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 26ch;
}

.work-card-large.modern-card .work-title {
  font-size: clamp(1.6rem, 1.1rem + 1.5vw, 2.4rem);
}

.work-card-medium.modern-card .work-title {
  font-size: clamp(1.4rem, 1.0rem + 1.1vw, 2rem);
}

.work-card-small.modern-card .work-title {
  font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.3rem);
}

.modern-card .work-tags {
  margin-top: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.modern-card .tag {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.modern-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.18;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, black, transparent);
  mask-image: linear-gradient(to top, black, transparent);
}

.work-visual {
  margin: 24px 0;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.8);
  margin-top: auto;
}

/* Card sizes */

.work-card-large {
  grid-column: span 2;
  grid-row: span 2;
}

.work-card-medium {
  grid-column: span 2;
  grid-row: span 1;
}

.work-card-small {
  grid-column: span 1;
  grid-row: span 1;
}

/* Optional tall variant for small cards */
.work-card-tall {
  grid-row: span 2;
}

/* Mobile: stack cards */
/* Tablet: 2 cards per row (600-900px) */
@media (max-width: 900px) and (min-width: 601px) {
  .work-bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 18px;
  }

  .work-card-large,
  .work-card-medium,
  .work-card-small {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* Mobile: 1 card per row (≤600px) */
@media (max-width: 600px) {
  .work-bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 16px;
  }

  .work-card-large,
  .work-card-medium,
  .work-card-small {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* Explicit desktop placement and equal heights for right column */
@media (min-width: 901px) {

  /* Left: Bhava 2x2 → elongate ~25% (approx: 3 rows) */
  .area-bhava {
    grid-column: 1 / span 2;
    grid-row: 1 / span 3;
  }

  /* Top-right: PLG 2x2 (match Branch height) */
  .area-plg {
    grid-column: 3 / span 2;
    grid-row: 1 / span 2;
  }

  /* Bottom-right: Branch 2x2 */
  .area-branch {
    grid-column: 3 / span 2;
    grid-row: 3 / span 3;
  }

  /* Bottom-left small cards → elongate 50% (2 rows) */
  .area-ai {
    grid-column: 1 / span 1;
    grid-row: 4 / span 2;
  }

  .area-design {
    grid-column: 2 / span 1;
    grid-row: 4 / span 2;
  }
}

/* Bhava - Warm Orange */
.work-card-bhava {
  background: linear-gradient(135deg, #f4a460 0%, #d2691e 100%);
}

.wellness-icons {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.wellness-circle {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Branch - Blue */
.work-card-branch {
  background: linear-gradient(135deg,
      color-mix(in srgb, var(--highlight-color) 88%, transparent) 0%,
      color-mix(in srgb, var(--highlight-color) 68%, transparent) 100%);
}

.link-diagram {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.link-node {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  backdrop-filter: blur(10px);
}

.link-arrow {
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: bold;
}

/* PushOwl - Pink */
.work-card-pushowl {
  background: linear-gradient(135deg, #DB2777 0%, #9F1239 100%);
}

/* PushOwl AI - Dark Hot Pink */
.work-card-pushowl-ai {
  background: linear-gradient(135deg, #BE185D 0%, #831843 100%);
}

/* PushOwl PLG - Green */
.work-card-pushowl-green {
  background: linear-gradient(135deg, #16A34A 0%, #166534 100%);
}

.notification-stack {
  display: flex;
  justify-content: center;
}

.notification-card {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.notif-icon {
  font-size: 1.8rem;
}

.notif-text {
  font-weight: 700;
  color: white;
  font-size: 1.1rem;
}

/* Brevo - Green */
.work-card-brevo {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.automation-icon {
  font-size: 5rem;
  opacity: 0.9;
}

/* Design System - Purple */
.work-card-design {
  background: linear-gradient(135deg, #DDD6FE 0%, #C4B5FD 100%);
}

.component-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.component-blocks .block {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

/* New Bento Grid Layout */
.bento-grid-new {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.bento-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bento-card {
  border-radius: 24px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: visible;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.bento-card-content {
  width: 100%;
  color: white;
}

.bento-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 20px 0;
  color: var(--color-charcoal);
}

/* Card Colors */
.bento-card-lavender {
  background: linear-gradient(135deg, #F1E7FF 0%, #E8E5FF 100%);
}

.bento-card-peach {
  background: linear-gradient(135deg, #FFE8D6 0%, #FFDDC1 100%);
}

.bento-card-light {
  background: linear-gradient(135deg, #FFFFFF 0%, #F8F7F4 100%);
}

.bento-card-mint {
  background: linear-gradient(135deg, #E7F7ED 0%, #D7F2E1 100%);
}

.bento-card-sky {
  background: linear-gradient(135deg, #DFEFFF 0%, #D1E7FF 100%);
}

/* Center column - make it span both card heights */
.bento-col-center .bento-card {
  height: 100%;
  min-height: 584px;
  position: relative;
  overflow: visible;
}

/* Journey Flowchart */
.journey-flowchart {
  width: 100%;
  height: 100%;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(5, 1fr);
  gap: 0;
  padding: 30px 20px;
  align-items: center;
}

.journey-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.node-circle {
  width: 64px;
  height: 64px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 3px solid transparent;
}

.journey-bhava .node-circle {
  border-color: #A78BFA;
}

.journey-branch .node-circle {
  border-color: #34D399;
}

.journey-pushowl .node-circle {
  border-color: var(--highlight-color);
}

.journey-design .node-circle {
  border-color: #F472B6;
}

.journey-ai .node-circle {
  border-color: #FBBF24;
}

.journey-node:hover .node-circle {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.journey-node p {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-charcoal);
  text-align: center;
  margin: 0;
  line-height: 1.2;
}

/* Journey arrows */
.journey-arrow {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.journey-bhava {
  grid-column: 1;
  grid-row: 1;
}

.arrow-1 {
  grid-column: 1;
  grid-row: 2;
  width: 40px;
  height: 60px;
  left: 50%;
  transform: translateX(-50%);
}

.journey-branch {
  grid-column: 1;
  grid-row: 3;
}

.arrow-2 {
  grid-column: 1;
  grid-row: 4;
  width: 40px;
  height: 60px;
  left: 50%;
  transform: translateX(-50%);
}

.journey-pushowl {
  grid-column: 1;
  grid-row: 5;
}

.journey-design {
  grid-column: 2;
  grid-row: 1;
}

.arrow-3 {
  grid-column: 2;
  grid-row: 2 / 5;
  width: 40px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.journey-ai {
  grid-column: 2;
  grid-row: 5;
}

/* Work Stats */
.work-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: #7C3AED;
}

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

/* Component Grid */
.component-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.component-box {
  height: 60px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.component-box:hover {
  transform: translateY(-4px);
}

/* Enterprise Icons */
.enterprise-icons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 20px;
}

.enterprise-icon {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.enterprise-icon:hover {
  transform: scale(1.1);
}

/* Mobile Mockup */
.mobile-mockup {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.mobile-screen {
  width: 140px;
  height: 280px;
  background: white;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.screen-header {
  width: 100%;
  height: 40px;
  background: linear-gradient(135deg, #E8E5FF 0%, #DFEFFF 100%);
  border-radius: 8px;
}

.screen-content {
  width: 100%;
  height: 60px;
  background: #F3F4F6;
  border-radius: 8px;
}

.screen-content.short {
  height: 40px;
}

/* Previous Work Section */
.previous-work {
  padding: 80px 0;
}

.previous-work-card {
  background: white;
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  width: 100%;
}

/* Previous work content layout */
.previous-work-content {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  justify-content: space-between;
}

.previous-work-header {
  text-align: left;
  margin-bottom: 0;
  flex: 0 0 auto;
  max-width: 400px;
}

.previous-work-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 12px;
}

.previous-work-header p {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

/* Companies chips wrapper */
.companies-chips-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  justify-content: flex-end;
  flex: 1;
  padding-top: 8px;
}

.company-chip-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(243, 244, 246, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: rgba(107, 114, 128, 1);
}

.company-chip-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.12);
}

.company-chip-icon {
  font-size: 1.2rem;
  line-height: 1;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.company-chip-item:hover .company-chip-icon {
  filter: grayscale(0%);
  opacity: 1;
}

.company-chip-name {
  line-height: 1;
  color: rgba(107, 114, 128, 1);
  transition: color 0.3s ease;
}

.company-chip-item:hover .company-chip-name {
  color: var(--color-charcoal);
}

/* Old bento grid - keeping for backwards compatibility */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  grid-auto-rows: 280px;
}

.bento-item {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: visible;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(27, 27, 31, 0.08);
  border: 2px solid rgba(27, 27, 31, 0.06);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
}

.bento-item:hover {
  transform: translateY(-8px) rotate(0.5deg);
  box-shadow: 0 16px 40px rgba(27, 27, 31, 0.15);
  border-color: rgba(27, 27, 31, 0.12);
}

/* Bento sizes */
.bento-large {
  grid-column: span 4;
  grid-row: span 2;
}

.bento-medium {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-wide {
  grid-column: span 3;
  grid-row: span 1;
}

.bento-small {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-visual {
  position: relative;
  flex: 1;
  overflow: visible;
  background: rgba(223, 239, 255, 0.3);
}

.bento-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.bento-item:hover .bento-visual img {
  transform: scale(1.05);
}

.project-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-charcoal);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.bento-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--color-white);
}

.bento-content h3 {
  font-size: 1.15rem;
  margin: 0;
  color: var(--color-charcoal);
  font-family: var(--font-heading);
}

.bento-content p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--color-muted);
  line-height: 1.5;
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(27, 27, 31, 0.06);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: background var(--transition);
}

.bento-item:hover .tag {
  background: rgba(27, 27, 31, 0.1);
}

.case-feature,
.case-stack,
.case-carousel {
  margin-top: 48px;
}

.case-feature {
  --project-color: var(--project-color, var(--color-lilac));
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(12, 1fr);
  background: var(--project-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: visible;
}

.case-feature-visual {
  grid-column: span 6;
}

.case-feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-feature-body {
  grid-column: span 6;
  padding: 40px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  display: grid;
  gap: 16px;
}

.case-stack {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.case-card.small {
  grid-template-columns: 1fr;
  min-height: auto;
}

.metric-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.metric-list li {
  background: rgba(27, 27, 31, 0.08);
  border-radius: var(--radius-pill);
  padding: 12px 18px;
  font-weight: 600;
}

.case-carousel {
  display: grid;
  gap: 16px;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
}

.carousel-track .case-card {
  flex: 0 0 320px;
  scroll-snap-align: center;
}

.carousel-control {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid rgba(27, 27, 31, 0.08);
  box-shadow: 0 10px 20px rgba(27, 27, 31, 0.1);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.carousel-control.prev {
  left: -20px;
}

.carousel-control.next {
  right: -20px;
}

.carousel-control::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--color-charcoal);
  border-right: 2px solid var(--color-charcoal);
  transform: rotate(45deg);
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -6px;
  margin-left: -4px;
}

.carousel-control.next::before {
  transform: rotate(-135deg);
  margin-left: -8px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(27, 27, 31, 0.22);
}

.carousel-dots button.active {
  background: var(--color-charcoal);
}

/* About */
.section[data-theme="butter"] {
  background: var(--color-butter);
}

/* Flip Card Container */
.about-flip-card {
  perspective: 2000px;
  cursor: pointer;
  outline: none;
}

.about-flip-inner {
  position: relative;
  width: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.about-flip-card.flipped .about-flip-inner {
  transform: rotateY(180deg);
}

.about-flip-front,
.about-flip-back {
  width: 100%;
  min-height: 650px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 250, 240, 0.85) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 32px;
  border: 3px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 20px 60px rgba(255, 193, 7, 0.15),
    0 10px 30px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: 48px;
  position: relative;
  overflow: visible;
}

.about-flip-front::before,
.about-flip-back::before {
  content: '✨';
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2rem;
  opacity: 0.3;
  animation: sparkle 2s ease-in-out infinite;
}

.about-flip-back::before {
  content: '💫';
}

@keyframes sparkle {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.2) rotate(10deg);
    opacity: 0.6;
  }
}

.about-flip-front {
  position: relative;
}

.about-flip-back {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
}

/* Flip Hint */
.flip-hint {
  margin-top: 32px;
  text-align: center;
  opacity: 0.8;
  animation: bounce 2s ease-in-out infinite;
}

.flip-hint span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.25) 0%, rgba(255, 235, 59, 0.15) 100%);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-charcoal);
  border: 3px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.flip-hint span::after {
  content: '→';
  font-size: 1.2rem;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.8;
  }

  50% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

/* Back of Card */
.about-back-content {
  position: relative;
  width: 100%;
}

.flip-back-btn {
  position: absolute;
  top: -8px;
  left: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 250, 240, 0.9) 100%);
  border: 3px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-charcoal);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.15);
}

.flip-back-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 250, 240, 1) 100%);
  transform: translateX(-6px);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.25);
  border-color: rgba(255, 215, 0, 0.5);
}

.about-grid-back {
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  margin-top: 32px;
}

.skills-section,
.tools-section,
.principles-section {
  grid-column: span 12;
}

.skills-section h3,
.tools-section h3,
.principles-section h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--color-charcoal);
}

.skills-section ul,
.tools-section ul,
.principles-section ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.skills-section li,
.tools-section li {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 250, 240, 0.7) 100%);
  backdrop-filter: blur(8px);
  padding: 14px 18px;
  border-radius: 16px;
  border: 2px solid rgba(255, 215, 0, 0.15);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.skills-section li:hover,
.tools-section li:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 250, 240, 0.95) 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 16px rgba(255, 193, 7, 0.2);
  border-color: rgba(255, 215, 0, 0.4);
}

.principles-section ul {
  grid-template-columns: 1fr;
  gap: 16px;
}

.principles-section li {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 250, 240, 0.7) 100%);
  backdrop-filter: blur(8px);
  padding: 22px 26px;
  border-radius: 18px;
  border-left: 5px solid rgba(255, 193, 7, 0.7);
  font-size: 0.95rem;
  line-height: 1.7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.principles-section li:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.15);
  border-left-color: rgba(255, 193, 7, 0.9);
}

.principles-section li strong {
  color: var(--color-charcoal);
  font-weight: 700;
}

.about-grid {
  grid-template-columns: repeat(12, 1fr);
}

.about-media {
  grid-column: span 4;
  display: grid;
  gap: 24px;
}

.portrait-card {
  margin: 0;
  background: var(--color-white);
  padding: 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.portrait-card img {
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}

.about-content {
  grid-column: span 8;
  display: grid;
  gap: 24px;
}

.skills-grid ul,
.tool-grid ul,
.principles ul,
.about-fun ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.skills-grid ul {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.tool-grid ul {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.principles ul li {
  background: rgba(27, 27, 31, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
}

.about-fun {
  background: rgba(27, 27, 31, 0.05);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* Experience */
.section[data-theme="cloud"] {
  background: linear-gradient(180deg, #f9f1e7 0%, #f4e5d4 100%);
}

.experience-header {
  text-align: center;
  margin-bottom: 60px;
}

.experience-header h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 12px;
  color: #000000;
}

.experience-header p {
  max-width: 640px;
  margin: 0 auto;
  color: #6b7280;
  font-size: 1.05rem;
}

[data-theme="dark"] .section[data-theme="cloud"] {
  background: linear-gradient(180deg, #0d0e13 0%, #15161c 100%);
}

[data-theme="dark"] .experience-header h2 {
  color: rgba(245, 246, 250, 0.95);
}

[data-theme="dark"] .experience-header p {
  color: rgba(245, 246, 250, 0.7);
}

.experience-wrapper {
  display: grid;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 28px;
}

.timeline li {
  position: relative;
}

.timeline-card {
  background: white;
  border-radius: 20px;
  padding: 36px 40px;
  box-shadow:
    0 6px 18px rgba(143, 90, 50, 0.1),
    0 2px 6px rgba(143, 90, 50, 0.06);
  border: 1px solid rgba(143, 90, 50, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Remove hover outline overlay */
.timeline-card::before {
  content: none;
}

/* Disable hover lift/shadow change */
.timeline-card:hover {
  transform: none;
  box-shadow:
    0 6px 18px rgba(143, 90, 50, 0.1),
    0 2px 6px rgba(143, 90, 50, 0.06);
  border-color: rgba(143, 90, 50, 0.12);
}

/* Keep overlay hidden on hover */
.timeline-card:hover::before {
  content: none;
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 20px;
}

.timeline-meta-left {
  flex: 1;
}

.timeline-meta h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 4px;
}

.timeline-meta h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-cocoa);
  margin: 0 0 8px;
}

.timeline-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--color-cocoa);
  background: rgba(247, 226, 200, 0.6);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 500;
}

.timeline-date::before {
  content: '📅';
  font-size: 0.85rem;
}

.timeline-meta img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(250, 236, 216, 0.8);
  padding: 8px;
}

.timeline-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 14px;
}

.timeline-body li {
  position: relative;
  padding-left: 28px;
  color: #4b5563;
  line-height: 1.65;
  font-size: 0.97rem;
}

.timeline-body li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-cocoa);
  font-size: 0.9rem;
}

.timeline-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.timeline-tools span {
  font-size: 0.85rem;
  color: rgba(96, 64, 36, 0.85);
  background: linear-gradient(135deg, #f9edde 0%, #f3e1cc 100%);
  padding: 6px 14px;
  border-radius: 16px;
  font-weight: 500;
  border: 1px solid rgba(143, 90, 50, 0.12);
}

.experiment-panels {
  display: grid;
  gap: clamp(24px, 3vw, 32px);
  margin-top: clamp(32px, 4vw, 48px);
}

.experiment-panel {
  --stack-index: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 245, 255, 0.94));
  border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: clamp(20px, 2.5vw, 32px);
  transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 0.5s ease, opacity 0.35s ease;
  transform-origin: center top;
}

.experiment-panel .experiment-visual {
  border-radius: clamp(16px, 2vw, 24px);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.experiment-panel .experiment-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.experiment-panel .experiment-copy {
  display: grid;
  gap: 16px;
}

.experiment-panel .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.12);
  color: rgba(49, 46, 129, 0.85);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.experiment-panel .experiment-metrics {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  color: rgba(30, 41, 59, 0.75);
}

.experiment-panel .experiment-metrics li::before {
  content: '•';
  margin-right: 8px;
  color: rgba(37, 99, 235, 0.8);
}

@media (min-width: 960px) {
  .experiment-panels {
    position: relative;
    padding: clamp(64px, 8vw, 96px) 0 clamp(80px, 10vw, 120px);
  }

  .experiment-panel {
    position: sticky;
    top: clamp(96px, 12vw, 160px);
    width: min(760px, 90%);
    margin-inline: auto;
    transform: translateY(calc(var(--stack-index, 0) * 26px)) scale(0.9);
    z-index: calc(100 - var(--stack-index, 0));
    opacity: 0.92;
  }

  .experiment-panel.is-active {
    transform: translateY(calc(var(--stack-index, 0) * 8px)) scale(1.2);
    z-index: 250;
    box-shadow:
      0 42px 90px rgba(15, 23, 42, 0.22),
      0 24px 44px rgba(15, 23, 42, 0.18);
    opacity: 1;
  }

  .experiment-panel.is-past {
    transform: translateY(calc(var(--stack-index, 0) * 14px)) scale(0.96);
    opacity: 0.85;
  }
}

/* Side Projects */
.section[data-theme="rose"] {
  background: var(--color-rose);
}

.sticky-header {
  text-align: center;
  margin-bottom: 48px;
}

.sticky-header p {
  color: rgba(27, 27, 31, 0.6);
}

/* Side Projects - Soft Pastel Grey Background */
.side-projects {
  position: relative;
  background: var(--color-cloud);
}

.bhava-hero-banner {
  margin: clamp(24px, 5vw, 40px) auto clamp(24px, 6vw, 48px);
  width: min(1200px, 98vw);
  border-radius: clamp(24px, 4vw, 40px);
  overflow: hidden;
  box-shadow:
    0 40px 100px rgba(145, 96, 56, 0.25),
    0 10px 40px rgba(117, 69, 36, 0.18);
}

.bhava-hero-banner img {
  width: 100%;
  display: block;
}

.side-projects .container {
  position: relative;
  z-index: 1;
}

.side-projects-outer-container {
  background: #FFFFFF;
  border-radius: 24px;
  padding: clamp(36px, 5vw, 48px);
  box-shadow:
    0 18px 36px rgba(35, 44, 78, 0.12),
    0 6px 18px rgba(35, 44, 78, 0.08);
  max-width: 1320px;
  margin: 0 auto 72px;
}

.sticky-header {
  text-align: center;
  margin-bottom: 50px;
  animation: fadeIn 1s ease;
}

.side-projects-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.project-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 6vw, 80px);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.project-modal.hidden {
  display: none;
}

.project-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.project-modal.is-open .project-modal-card {
  transform: translateY(0) scale(1);
  box-shadow:
    0 34px 68px rgba(15, 23, 42, 0.22),
    0 16px 32px rgba(15, 23, 42, 0.14);
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 18, 30, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: clamp(24px, 4vw, 40px);
}

.project-modal-card {
  position: relative;
  z-index: 1;
  width: min(720px, 94vw);
  max-height: 90vh;
  border-radius: clamp(24px, 3vw, 34px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 255, 0.94));
  box-shadow:
    0 40px 80px rgba(15, 23, 42, 0.25),
    0 30px 60px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(226, 232, 240, 0.6);
  padding: clamp(30px, 4vw, 44px);
  overflow-y: auto;
  transform: translateY(18px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 0.35s ease;
}

.project-modal-wrapper {
  display: grid;
  gap: clamp(22px, 3vw, 36px);
  justify-items: stretch;
}

.modal-close {
  position: absolute;
  top: clamp(12px, 1.6vw, 18px);
  right: clamp(12px, 1.6vw, 18px);
  border: none;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(229, 231, 235, 0.85));
  color: rgba(17, 24, 39, 0.75);
  font-size: 1.2rem;
  line-height: 1;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 1);
}

.modal-media {
  position: relative;
  padding-top: 56.25%;
  border-radius: clamp(20px, 2.4vw, 26px);
  overflow: hidden;
  box-shadow: 0 24px 42px rgba(15, 23, 42, 0.18);
  background: rgba(15, 23, 42, 0.08);
}

.modal-media.is-empty {
  display: none;
}

.modal-media iframe,
.modal-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: inherit;
}

.modal-content {
  display: grid;
  gap: clamp(16px, 2.5vw, 24px);
  text-align: left;
  align-items: flex-start;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
}

.modal-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(99, 102, 241, 0.3));
  color: rgba(49, 46, 129, 0.95);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 16px 30px rgba(79, 70, 229, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.modal-primary-btn::after {
  content: "↗";
  font-size: 1rem;
}

.modal-primary-btn:hover,
.modal-primary-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 20px 36px rgba(79, 70, 229, 0.28);
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sticky-header h2 {
  font-size: 2.8rem;
  color: #1D1D1F;
  margin-bottom: 12px;
  font-weight: 700;
}

.side-projects-subtitle {
  font-size: 1.1rem;
  color: #1D1D1F;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 0;
  text-align: center;
}

[data-theme="dark"] .sticky-header h2,
[data-theme="dark"] .side-projects-subtitle {
  color: rgba(245, 246, 250, 0.9);
}

/* Side Projects Grid Layout */
.side-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 2rem;
}

.side-project-card {
  --card-bg: #ffffff;
  --card-glow: rgba(15, 23, 42, 0.08);
  --card-accent: #1b1b1f;
  border-radius: 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  border: 1.5px solid rgba(200, 200, 210, 0.3);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.side-project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.1) 100%);
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 0;
  pointer-events: none;
}

.side-project-card::after {
  content: "";
  position: absolute;
  inset: -100px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, var(--card-glow) 0%, transparent 50%);
  opacity: 0.8;
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

.side-project-card>* {
  position: relative;
  z-index: 1;
}

.side-project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 25px 55px rgba(255, 193, 7, 0.2),
    0 18px 40px rgba(30, 30, 35, 0.35);
}

.side-project-card:hover::before {
  opacity: 0.85;
}

.side-project-card:hover::after {
  opacity: 1;
}

/* Alternate rotation directions for sticky note effect */
.side-project-card:nth-child(2n):hover {
  transform: translateY(-6px) scale(1.01) rotate(1.3deg);
}

.side-project-card:nth-child(3n):hover {
  transform: translateY(-6px) scale(1.01) rotate(-0.75deg);
}

.side-project-card:nth-child(4n):hover {
  transform: translateY(-6px) scale(1.01) rotate(1.1deg);
}

/* Card Colors - Beautiful Glass Effect with Solid Colors */
.side-project-card-green {
  --card-bg: #caffbf;
  --card-glow: rgba(202, 255, 191, 0.6);
  --card-accent: #2d5016;
}

.side-project-card-blue {
  --card-bg: #a0c4ff;
  --card-glow: rgba(160, 196, 255, 0.6);
  --card-accent: #1d3d73;
}

.side-project-card-pink {
  --card-bg: #ffc6d9;
  --card-glow: rgba(255, 198, 217, 0.6);
  --card-accent: #7c2346;
}

.side-project-card-purple {
  --card-bg: #e0c3fc;
  --card-glow: rgba(224, 195, 252, 0.6);
  --card-accent: #4a2f73;
}

.side-project-card-yellow {
  --card-bg: #fdffb6;
  --card-glow: rgba(253, 255, 182, 0.6);
  --card-accent: #5f4f00;
}

.side-project-card-teal {
  --card-bg: #ffd6a5;
  --card-glow: rgba(255, 214, 165, 0.6);
  --card-accent: #7a4312;
}

.side-project-card-orange {
  --card-bg: #ffb3ba;
  --card-glow: rgba(255, 179, 186, 0.6);
  --card-accent: #7a2f14;
}

.side-project-card-coral {
  --card-bg: #ffadad;
  --card-glow: rgba(255, 173, 173, 0.6);
  --card-accent: #77213a;
}

.side-project-card-mint {
  --card-bg: #caffbf;
  --card-glow: rgba(202, 255, 191, 0.6);
  --card-accent: #2d4f2e;
}

.side-project-card-lavender {
  --card-bg: #e0c3fc;
  --card-glow: rgba(224, 195, 252, 0.6);
  --card-accent: #4f2b6e;
}

/* Large card spans 2 columns */
.side-project-card-large {
  grid-column: span 2;
}

/* Project card image */
.project-card-image {
  width: 100%;
  height: 210px;
  overflow: hidden;
  border-radius: 28px 28px 20px 20px;
  background: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    0 18px 38px rgba(15, 23, 42, 0.12);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.45s ease;
}

.side-project-card:hover .project-card-image img {
  transform: scale(1.08);
}

.project-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1D1D1F;
  margin: 0;
  line-height: 1.3;
  margin-bottom: 4px;
  padding: 20px 24px 0 24px;
}

.project-card-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1D1D1F;
  margin: 0;
  flex-grow: 1;
  padding: 0 24px;
}

.project-card-why {
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(27, 29, 31, 0.9);
  font-style: normal;
  margin: 0 24px;
  margin-top: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 6px 18px rgba(31, 41, 55, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  align-self: flex-start;
  width: calc(100% - 48px);
}

.project-card-visit {
  display: inline-flex;
  margin: 12px 24px 24px 24px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid #ffffff;
  color: #0b0b0f;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow:
    0 14px 30px rgba(11, 18, 27, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  pointer-events: auto;
  align-self: flex-start;
}

.project-card-visit::after {
  content: "↗";
  font-size: 1rem;
  line-height: 1;
}

.project-card-visit:visited {
  color: #0b0b0f;
}

.project-card-visit:hover,
.project-card-visit:focus-visible {
  color: var(--gold-primary) !important;
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--gold-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

.more-projects-link {
  margin-top: 2rem;
  text-align: center;
  opacity: 0.7;
  font-size: 0.95rem;
  color: #1D1D1F;
}

.more-projects-link a {
  text-decoration: underline;
  color: #6B4423;
}

.more-projects-link a:hover {
  color: #5A3519;
  opacity: 1;
}

.sticky-wall {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  justify-content: center;
  justify-items: stretch;
  gap: 24px;
  padding: 0;
}

.sticky-note {
  position: relative;
  border-radius: 24px;
  padding: 28px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow:
    0 12px 24px rgba(35, 44, 78, 0.1),
    0 4px 10px rgba(35, 44, 78, 0.06);
  transition: box-shadow 0.3s ease;
  cursor: default;
  user-select: text;
  animation: fadeInNote 0.6s ease backwards;
  overflow: hidden;
  z-index: 1;
}

.sticky-note.is-active {
  outline: 3px solid rgba(143, 90, 50, 0.25);
}

.note-visit {
  display: inline-flex;
  margin-top: 18px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(240, 248, 255, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: rgba(27, 27, 31, 0.85);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow:
    0 12px 24px rgba(15, 23, 42, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  pointer-events: auto;
}

.note-visit::after {
  content: "↗";
  font-size: 1rem;
  line-height: 1;
}

.note-visit:visited {
  color: rgba(27, 27, 31, 0.72);
}

.note-visit:hover,
.note-visit:focus-visible {
  color: #1b1b1f !important;
  transform: translateY(-3px);
  box-shadow:
    0 16px 32px rgba(15, 23, 42, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(240, 248, 255, 0.7));
  border-color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

@keyframes fadeInNote {
  from {
    opacity: 0;
    transform: scale(0.85) rotate(-5deg);
  }

  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Different note colors */
.sticky-note:nth-child(1) {
  background: linear-gradient(135deg, #ffecd2 0%, #ffd9b3 100%);
}

.sticky-note:nth-child(2) {
  background: linear-gradient(135deg, #ffe8d6 0%, #ffd4b8 100%);
}

.sticky-note:nth-child(3) {
  background: linear-gradient(135deg, #ffe4d1 0%, #ffd0b3 100%);
}

.sticky-note:nth-child(4) {
  background: linear-gradient(135deg, #fff4d6 0%, #ffe4b8 100%);
}

.sticky-note:nth-child(5) {
  background: linear-gradient(135deg, #f4d4c2 0%, #e8c4af 100%);
}

.sticky-note:nth-child(6) {
  background: linear-gradient(135deg, #ffe9cc 0%, #ffd9ad 100%);
}

.sticky-note:nth-child(7) {
  background: linear-gradient(135deg, #f8e8d8 0%, #ead8c4 100%);
}

.sticky-note:nth-child(8) {
  background: linear-gradient(135deg, #ffd9c4 0%, #ffc9a8 100%);
}

.sticky-note:nth-child(9) {
  background: linear-gradient(135deg, #fff7e6 0%, #ffe7c8 100%);
}

.sticky-note:nth-child(10) {
  background: linear-gradient(135deg, #f6e9d6 0%, #ead9c0 100%);
}

.note-header {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 14px;
}

.note-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1D1D1F;
  line-height: 1.3;
  margin: 0;
}

.note-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #2D2D2D;
  margin: 0;
  flex-grow: 1;
}

.note-visit {
  align-self: flex-start;
  margin-top: auto;
}

/* Testimonials */
.testimonial-layout {
  display: grid;
  gap: 32px;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: stretch;
}

.testimonial-feature blockquote {
  background-color: #fffdf5;
  background-image:
    radial-gradient(rgba(255, 216, 130, 0.28) 1px, transparent 1px),
    radial-gradient(rgba(255, 216, 130, 0.18) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 251, 237, 0.92) 0%, rgba(255, 240, 207, 0.92) 100%);
  background-size: 18px 18px, 18px 18px, 100% 100%;
  background-position: 0 0, 9px 9px, 0 0;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 54px rgba(255, 180, 60, 0.28);
  border: 1px solid rgba(255, 195, 87, 0.36);
  font-size: 1.2rem;
  font-weight: 500;
  position: relative;
}

.testimonial-feature blockquote::before {
  content: "";
  font-size: 4rem;
  position: absolute;
  top: -20px;
  left: 24px;
  color: rgba(255, 180, 60, 0.4);
}

.testimonial-feature footer {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.testimonial-feature footer img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.testimonial-list {
  display: grid;
  gap: 24px;
}

.testimonial-card {
  background-color: #fffdf7;
  background-image:
    radial-gradient(rgba(255, 219, 150, 0.32) 1px, transparent 1px),
    radial-gradient(rgba(255, 219, 150, 0.16) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 244, 207, 0.96) 0%, rgba(255, 233, 173, 0.96) 100%);
  background-size: 18px 18px, 18px 18px, 100% 100%;
  background-position: 0 0, 9px 9px, 0 0;
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 42px rgba(255, 190, 64, 0.24);
  border: 1px solid rgba(255, 204, 102, 0.4);
  position: relative;
}

.testimonial-card::after {
  content: '';
  position: absolute;
  top: -68px;
  right: -58px;
  width: 190px;
  height: 190px;
  background: radial-gradient(circle, rgba(255, 209, 135, 0.8) 0%, rgba(255, 200, 110, 0.55) 60%, rgba(255, 200, 110, 0) 80%);
  filter: blur(0.4px);
  opacity: 0.7;
  z-index: 0;
}

.testimonial-card>* {
  position: relative;
  z-index: 1;
}

/* Insights */
.section.insights {
  padding-bottom: 140px;
}

.section.insights .container {
  width: min(96%, var(--max-width));
  max-width: var(--max-width);
  padding: 0 24px;
  margin: 0 auto;
}

.insights-folder-container {
  position: relative;
  min-height: 600px;
}

.insights-header {
  text-align: center;
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 32px 24px;
  max-width: 720px;
  margin: 0 auto 40px;
}

.insights-header h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.insights-header p {
  max-width: 620px;
  margin: 0 auto 20px;
  color: rgba(27, 27, 31, 0.65);
}

[data-theme="dark"] .insights-header p,
[data-theme="dark"] .insights-header .start-here-highlight,
[data-theme="dark"] .insights-header .start-here-highlight a {
  color: rgba(245, 246, 250, 0.92);
}

.folder-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.insights-folder-container.expanded .folder-wrapper {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  pointer-events: none;
}

.folder-icon {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.folder-icon:hover {
  transform: scale(1.05);
}

.folder-icon svg {
  filter: drop-shadow(0 10px 30px rgba(16, 185, 129, 0.3));
  animation: floatFolder 3s ease-in-out infinite;
}

@keyframes floatFolder {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

.folder-label {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.folder-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-charcoal);
}

.folder-count {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.insights-articles-grid {
  display: flex;
  gap: 48px;
  padding: 60px 0 80px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  align-items: stretch;
  flex-wrap: nowrap;
  opacity: 1;
  pointer-events: all;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
}

/* Disable snap while auto-scrolling for smooth motion */
.insights-articles-grid.auto-scrolling {
  scroll-snap-type: none;
}

/* Full-bleed variant removes container constraints */
.insights-articles-grid--fullbleed {
  /* Force true full-bleed regardless of parent container width */
  width: 100vw;
  max-width: 100vw;
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 768px) {
  .insights-articles-grid--fullbleed {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Ensure cards are visible without folder expand animation */
.insights-articles-grid--fullbleed .article-card {
  opacity: 1;
  transform: none;
  animation: none;
  scroll-snap-align: start;
}

.insights-articles-grid::-webkit-scrollbar {
  display: none;
}

.insights-folder-container.expanded .insights-articles-grid {
  opacity: 1;
  pointer-events: all;
}

/* Writings cards — clean white with image cover */
.article-card {
  background: #ffffff;
  border: 1px solid rgba(27, 27, 31, 0.08);
  border-radius: 32px;
  padding: 28px 32px 36px;
  box-shadow: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  width: 400px;
  min-width: 280px;
  flex-shrink: 0;
  min-height: 540px;
  scroll-snap-align: center;
  overflow: hidden;
  transform-origin: center center;
  will-change: transform;

  /* Initial state - appear from folder */
  opacity: 0;
  transform: translate(0, 0) scale(0.92);
}

.article-cover {
  width: 100%;
  border-radius: 24px;
  background: radial-gradient(circle at top left, rgba(255, 196, 64, 0.3), rgba(27, 27, 31, 0.08));
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

.article-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.15) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-cover--fallback {
  background: linear-gradient(135deg, rgba(255, 196, 64, 0.25), rgba(255, 166, 43, 0.1));
}

.article-cover--loading::after {
  opacity: 0.25;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
  animation: shimmer 1.2s ease-in-out infinite;
}

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

  50% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(100%);
  }
}

.insights-folder-container.expanded .article-card {
  animation: expandFromFolder 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.insights-folder-container.expanded .article-card[data-index="0"] {
  animation-delay: 0.1s;
}

.insights-folder-container.expanded .article-card[data-index="1"] {
  animation-delay: 0.2s;
}

.insights-folder-container.expanded .article-card[data-index="2"] {
  animation-delay: 0.3s;
}

.insights-folder-container.expanded .article-card[data-index="3"] {
  animation-delay: 0.4s;
}

.insights-folder-container.expanded .article-card[data-index="4"] {
  animation-delay: 0.5s;
}

.insights-folder-container.expanded .article-card[data-index="5"] {
  animation-delay: 0.6s;
}

@keyframes expandFromFolder {
  0% {
    opacity: 0;
    transform: translate(0, -100px) scale(0.5) rotateY(90deg);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotateY(0deg);
  }
}

.article-card:hover,
.article-card:focus-visible {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(251, 191, 36, 0.35);
  border-color: rgba(251, 191, 36, 0.3);
  outline: none;
  scroll-snap-align: none;
}

.article-card:hover .article-cover::after,
.article-card:focus-visible .article-cover::after {
  opacity: 1;
}

/* Hide old emoji icons; image cover replaces it */
.article-icon {
  display: none;
}

.article-card h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 1.05rem + 0.9vw, 1.7rem);
  font-weight: 700;
  color: #1f2937;
  margin: 4px 0 0;
  line-height: 1.25;
}

.article-card p {
  font-size: 1rem;
  color: rgba(31, 41, 55, 0.75);
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

/* Reduce space specifically between title and description */
.article-card h3+p {
  margin-top: -10px;
}

.article-link {
  align-self: stretch;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background: #000000;
  backdrop-filter: blur(12px);
  border: 1px solid #000000;
  border-radius: 999px;
  padding: 14px 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.article-card:hover .article-link,
.article-card:focus-visible .article-link {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}

/* Dark Mode Overrides for Article Cards */
[data-theme="dark"] .article-card {
  background: rgba(20, 20, 23, 0.65);
  border-color: rgba(255, 193, 7, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

[data-theme="dark"] .article-card h3 {
  color: #ffffff;
}

[data-theme="dark"] .article-card p {
  color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .article-link {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

[data-theme="dark"] .article-card:hover {
  border-color: rgba(255, 193, 7, 0.4);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .article-card:hover .article-link {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* Map each card to an image from assets */

.insights-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.insight-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: visible;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.insight-card img {
  height: 200px;
  object-fit: cover;
}

.insight-card .card-body {
  padding: 24px;
  display: grid;
  gap: 12px;
}

.insight-card .meta {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #2d1810 0%, #4a2818 25%, #5c3420 50%, #3d2216 75%, #221208 100%);
  color: rgba(255, 255, 255, 0.9);
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
  border-radius: 60px 60px 8px 8px;
  margin-top: -40px;
  box-shadow:
    0 -20px 40px -20px rgba(90, 74, 58, 0.4),
    0 -10px 20px -10px rgba(90, 74, 58, 0.3),
    0 -5px 10px -5px rgba(90, 74, 58, 0.2);
  z-index: 1;
}

/* Windsurf-inspired geometric shapes with warm tones */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -10%;
  width: 60%;
  height: 100%;
  background: linear-gradient(135deg, rgba(244, 196, 137, 0.25) 0%, rgba(240, 183, 118, 0.15) 50%, transparent 80%);
  clip-path: polygon(0 0, 100% 20%, 80% 100%, 0 80%);
  z-index: 1;
}

.site-footer::after {
  content: '';
  position: absolute;
  top: 0;
  right: -10%;
  width: 50%;
  height: 100%;
  background: linear-gradient(225deg, rgba(247, 213, 165, 0.2) 0%, rgba(240, 183, 118, 0.12) 40%, transparent 80%);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 40% 100%);
  z-index: 1;
}

/* Radial glow effect with warm amber tones */
.site-footer .container {
  position: relative;
  z-index: 2;
}

.site-footer .container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(244, 196, 137, 0.1) 0%, rgba(240, 183, 118, 0.05) 40%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.footer-brand .brand-mark {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  width: fit-content;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  max-width: 280px;
  margin: 0;
}

.footer-brand .footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-brand .footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.footer-brand .footer-social a:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #1b1b1f;
  transform: translateY(-2px);
}

.footer-brand .footer-social svg {
  width: 20px;
  height: 20px;
}


/* Ensure all footer links are white on hover */
.site-footer a:hover,
.site-footer a:focus {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Exception for footer social icons which should turn black */
.footer-brand .footer-social a:hover,
.footer-brand .footer-social a:focus {
  color: #1b1b1f !important;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-column h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-column li a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-column li a:hover {
  color: rgba(255, 255, 255, 1) !important;
  transform: translateX(4px);
  text-decoration: none;
}

.footer-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.footer-made,
.footer-made-with {
  font-style: italic;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-signature {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 8rem;
  font-weight: 700;
  color: var(--color-chrome-yellow);
  opacity: 0.12;
  filter: blur(2px);
  user-select: none;
  pointer-events: none;
  margin: 1rem -20px -40px -20px;
  padding: 0;
  letter-spacing: 0.05em;
  text-shadow: 0 0 25px rgba(255, 196, 0, 0.4);
  line-height: 1;
  overflow: hidden;
  max-height: 4rem;
}

@media (max-width: 900px) {
  .footer-signature {
    font-size: 5.5rem;
    margin: 1rem -20px -40px -20px;
    max-height: 2.75rem;
  }
}

@media (max-width: 600px) {
  .footer-signature {
    font-size: 4rem;
    margin: 0.75rem -20px -30px -20px;
    max-height: 2rem;
  }
}

@media (max-width: 900px) {
  .site-footer {
    padding: 50px 0 32px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-columns,
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  /* Simplify footer brand on tablet */
  .footer-brand {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding: 40px 0 24px;
    border-radius: 32px 32px 0 0;
  }

  /* Hide decorative elements on mobile */
  .site-footer::before,
  .site-footer::after,
  .site-footer .container::before {
    display: none;
  }

  .footer-top {
    gap: 32px;
    margin-bottom: 32px;
    padding-bottom: 24px;
  }

  /* Hide footer brand section on mobile */
  .footer-brand {
    display: none;
  }

  /* Simplify footer columns - show only essential links */
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-column h4 {
    font-size: 0.8rem;
    margin-bottom: 12px;
  }

  .footer-column ul {
    gap: 8px;
  }

  .footer-column ul li {
    margin-bottom: 4px;
  }

  .footer-column ul li a {
    font-size: 0.9rem;
  }

  /* Hide middle columns on mobile, keep only first and last */
  .footer-column:nth-child(2) {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding-top: 24px;
  }

  .footer-bottom p {
    font-size: 0.8rem;
  }

  /* Hide footer signature on mobile */
  .footer-signature {
    display: none;
  }

  /* Simplify footer button */
  .footer-bottom .btn {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
}

/* Utility themes */
[data-theme="lavender"] {
  background: var(--color-lavender);
}

[data-theme="peach"] {
  background: var(--color-peach);
}

[data-theme="mint"] {
  background: linear-gradient(180deg, #f8efe0 0%, #f2e2cd 100%);
}

[data-theme="lilac"] {
  background: var(--color-lilac);
}

body.theme-warm .section[data-theme="cloud"],
body.theme-warm [data-theme="mint"] {
  background: var(--color-sand);
}

/* Responsive */
@media (max-width: 1080px) {

  .hero-grid,
  .about-grid,
  .about-grid-back {
    grid-template-columns: repeat(12, 1fr);
    gap: 40px;
  }

  .hero-copy,
  .hero-art,
  .about-media,
  .about-content {
    grid-column: span 12;
  }

  .hero-art {
    padding: 0 20px;
  }

  .hero-image-container {
    max-width: 100%;
  }

  /* allow hero name to wrap on smaller screens */
  .hero-title {
    white-space: normal;
    word-break: break-word;
  }

  .about-flip-front,
  .about-flip-back {
    padding: 32px 24px;
  }

  .flip-hint {
    margin-top: 24px;
  }

  .skills-section ul,
  .tools-section ul {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .case-feature {
    grid-template-columns: 1fr;
  }

  .case-feature-visual,
  .case-feature-body {
    grid-column: span 12;
  }

  .experience-wrapper {
    grid-template-columns: 1fr;
  }

  .testimonial-layout {
    grid-template-columns: 1fr;
  }

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

  .project-modal-card {
    width: min(640px, 94vw);
  }

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

  .nav-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 18px;
    width: min(320px, 82vw);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity var(--transition), transform var(--transition);
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 14px;
  }

  .nav-item.nav-has-mega>.nav-link .nav-caret {
    margin-left: auto;
  }

  .nav-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-mega {
    position: static;
    width: 100%;
    transform: none;
    margin-top: 0;
    border-radius: 18px;
    background: rgba(248, 246, 241, 0.9);
    box-shadow: none;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0;
    opacity: 0;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.2s ease;
  }

  .nav-item.nav-has-mega.is-open>.nav-link {
    background: rgba(17, 25, 40, 0.06);
  }

  .nav-item.nav-has-mega.is-open .nav-mega {
    opacity: 1;
    pointer-events: auto;
    max-height: 720px;
    padding: 20px;
    margin-top: 10px;
  }

  .nav-mega-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .nav-mega-preview {
    min-height: 0;
  }

  /* Prevent scrolled header from becoming too compact on tablets */
  .site-header.scrolled .container {
    width: min(92%, 100%);
  }

  .site-header.scrolled .brand-name {
    display: inline-flex;
  }
}

/* Medium screens (601-900px) - Tablet spacing */
@media (max-width: 900px) and (min-width: 601px) {
  .section {
    padding: 70px 0;
  }

  .container {
    width: min(90%, var(--max-width));
  }

  .hero-card {
    padding: 70px 40px 60px 40px;
  }

  .opportunity-sticky-flags {
    top: 84px;
    left: 40px;
  }

  .philosophy-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {

  /* Prevent horizontal scroll on mobile */
  body {
    overflow-x: hidden;
  }

  .section {
    padding: 60px 0;
    overflow-x: hidden;
  }

  .section.insights {
    padding-bottom: 80px;
  }

  .site-footer {
    border-radius: 40px 40px 0 0;
    margin-top: -40px;
    padding: 60px 0 30px;
  }

  /* Header mobile improvements */
  .site-header {
    padding: 12px 0;
  }

  .site-header .container {
    padding: 8px 16px;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .site-header.scrolled .container {
    padding: 6px 20px;
  }

  /* Hero grid mobile spacing */
  .hero-grid {
    gap: 40px;
    grid-template-columns: 1fr;
  }

  /* Hero mobile improvements */
  .hero-card {
    padding: 60px 28px 50px 28px;
    margin-bottom: 20px;
  }

  .hero-bio {
    margin-top: 16px;
    line-height: 1.7;
  }

  .hero-download-btn {
    top: 12px;
    right: 12px;
    font-size: 0.75rem;
    padding: 6px 14px;
  }

  .opportunity-sticky-flags {
    top: 74px;
    left: 28px;
  }

  .hero-title {
    font-size: clamp(1.75rem, 5.5vw, 2.2rem);
    line-height: 1.2;
    white-space: normal;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.4;
    max-width: 100%;
  }

  .hero-bio {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 100%;
  }

  .eyebrow {
    font-size: 0.7rem;
  }

  .hero-copy {
    text-align: left;
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .hero-art {
    grid-column: 1 / -1;
    max-width: 100%;
    padding: 0 16px;
  }

  .hero-image-container {
    max-width: 100%;
  }

  .cta-group {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .floating-card {
    position: relative;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    padding: 24px;
  }

  .hero-illustration {
    height: 260px;
    max-width: 100%;
  }

  /* Ensure images don't cause horizontal scroll */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Philosophy section mobile */
  .philosophy-content {
    text-align: left;
    padding: 0 24px;
  }

  .philosophy-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    padding: 0 16px;
    justify-content: center;
  }

  .philosophy-item {
    padding: clamp(1.3rem, 5vw, 1.5rem);
    border-radius: 20px;
  }

  .philosophy-icon {
    width: 52px;
    height: 52px;
    padding: 8px;
  }

  .philosophy-icon svg {
    width: 28px;
    height: 28px;
  }

  .philosophy-item h3 {
    font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
  }

  .philosophy-item span {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .philosophy-quote {
    font-size: 1.5rem;
    line-height: 1.3;
    text-align: center;
    padding: 0 24px;
    margin: 0 auto 32px;
  }

  /* Experience cards mobile */
  .timeline-card {
    padding: 28px 24px;
  }

  .timeline-meta {
    flex-direction: column;
    gap: 16px;
  }

  .timeline-meta img {
    align-self: flex-start;
    width: 60px;
    height: 60px;
  }

  .timeline-meta h3 {
    font-size: 1.3rem;
  }

  .timeline-meta h4 {
    font-size: 1rem;
  }

  .timeline-body li {
    font-size: 0.92rem;
  }

  /* Insights section mobile */
  .section.insights .container {
    width: 100%;
    padding: 0 16px;
  }

  /* Article cards responsive */
  .article-card {
    width: 85vw;
    max-width: 400px;
    min-width: 280px;
    padding: 24px 20px 28px;
  }

  /* Insights folder responsive */
  .insights-folder-container {
    min-height: 400px;
  }

  .folder-icon svg {
    width: 150px;
    height: 120px;
  }

  .folder-title {
    font-size: 1.25rem;
  }

  .insights-articles-grid {
    gap: 20px;
    padding: 20px 0;
  }

  .article-card {
    width: 85vw;
    max-width: 340px;
    padding: 28px 24px;
  }

  .article-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  .article-link {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .article-card h3 {
    font-size: 1.1rem;
  }

  .side-projects-outer-container {
    padding: 40px 28px;
  }

  .side-projects-layout {
    gap: 32px;
  }

  .project-modal-card {
    width: min(560px, 94vw);
    padding: 24px 24px 28px;
  }

  .modal-media {
    margin-bottom: 20px;
  }

  /* Sticky flag on mobile - hide on small screens */
  .opportunity-sticky-flags {
    display: none;
  }

  .bento-grid-new {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bento-col-center .bento-card {
    min-height: 280px;
  }

  .node-circle {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    border-width: 2px;
  }

  .journey-node p {
    font-size: 0.7rem;
  }

  .journey-flowchart {
    padding: 20px 10px;
  }

  .arrow-1,
  .arrow-2 {
    width: 30px;
    height: 50px;
  }

  .arrow-3 {
    width: 30px;
  }

  .bento-card {
    padding: 28px;
    min-height: 240px;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  }

  .bento-card h3 {
    font-size: 1.3rem;
  }

  .work-header h2 {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }

  .stat-number {
    font-size: 2rem;
  }

  .mobile-screen {
    width: 100px;
    height: 200px;
    padding: 12px;
  }

  /* Work grid already handled by earlier breakpoints */

  .work-card {
    padding: 28px;
    min-height: 240px;
    margin-bottom: 4px;
  }

  .work-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .work-role {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }

  .work-metric,
  .work-hook {
    line-height: 1.6;
    margin-bottom: 6px;
  }

  .work-card {
    padding: 24px;
    min-height: 220px;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  }

  .work-card-cover {
    padding: 0;
  }

  .work-card-cover img {
    border-radius: 18px;
  }

  .work-card h3 {
    font-size: 1.45rem;
  }

  .wellness-circle {
    width: 56px;
    height: 56px;
    font-size: 1.8rem;
  }

  .link-node {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }

  .link-arrow {
    font-size: 1.5rem;
  }

  .automation-icon {
    font-size: 4rem;
  }

  .component-blocks .block {
    width: 40px;
    height: 40px;
  }

  .previous-work {
    padding: 60px 0;
  }

  .previous-work-card {
    padding: 32px 24px;
  }

  .previous-work-content {
    flex-direction: column;
    gap: 32px;
  }

  .previous-work-header {
    margin-bottom: 0;
    max-width: 100%;
  }

  .companies-chips-wrapper {
    justify-content: flex-start;
    padding-top: 0;
  }

  .company-chip-item {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .company-chip-icon {
    font-size: 1.1rem;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .bento-large,
  .bento-medium,
  .bento-wide,
  .bento-small {
    grid-column: span 1;
    grid-row: span 1;
  }

  .bento-visual {
    min-height: 200px;
  }

  .case-card {
    min-height: auto;
  }

  .carousel-control.prev {
    left: 0;
  }

  .carousel-control.next {
    right: 0;
  }

  .side-projects-outer-container {
    padding: 40px;
  }

  .sticky-wall {
    max-width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
  }

  .sticky-note {
    width: 100%;
  }
}

/* Tablet styles for side projects grid (769-1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .side-projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .side-project-card-large {
    grid-column: span 2;
  }
}

/* Medium tablet for side projects (601-768px) */
@media (max-width: 768px) and (min-width: 601px) {
  .side-projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .side-project-card {
    margin-bottom: 0;
  }

  .project-card-image {
    height: 180px;
  }
}

/* Mobile side projects (≤600px) */
@media (max-width: 600px) {
  .side-projects-outer-container {
    padding: 40px 20px;
  }

  .side-projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .side-project-card-large {
    grid-column: span 1;
  }

  .side-project-card {
    box-shadow:
      0 12px 30px rgba(15, 23, 42, 0.12),
      0 30px 60px var(--card-glow);
  }

  .project-card-image {
    height: 180px;
  }

  .project-card-title {
    font-size: 1.3rem;
    padding: 16px 20px 0 20px;
  }

  .project-card-description {
    font-size: 0.95rem;
    padding: 0 20px;
  }

  .project-card-why {
    margin: 0 20px;
    width: calc(100% - 40px);
  }

  .project-card-visit {
    margin: 12px 20px 20px 20px;
  }

  .sticky-note {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  /* Show only first 3 notes on mobile */
  .sticky-note:nth-child(n+4) {
    display: none;
  }

  .sticky-wall {
    grid-template-columns: 1fr;
    gap: 20px;
  }

}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

/* Case Study Layout */
.case-wrapper {
  background: var(--color-cream);
}

.case-hero {
  /* cap top space at 64px, bottom at 40px */
  padding: clamp(24px, 7vw, 64px) 0 clamp(24px, 5vw, 40px);
  background: var(--color-sky);
}

.case-hero .lead {
  font-size: 1.2rem;
  color: var(--color-charcoal);
  max-width: 720px;
}

.case-outcome {
  background: var(--color-white);
  padding: clamp(32px, 7vw, 96px) 0 clamp(32px, 6vw, 88px);
  border-bottom: 1px solid rgba(27, 27, 31, 0.08);
}

.case-outcome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

.case-outcome-visual {
  margin: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 248, 225, 0.8) 100%);
  border-radius: clamp(18px, 3vw, 28px);
  padding: clamp(12px, 2.5vw, 28px);
  border: 1px solid rgba(27, 27, 31, 0.08);
  box-shadow: 0 24px 50px rgba(27, 27, 31, 0.08);
}

.case-outcome-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(14px, 2vw, 22px);
}

.case-outcome-visual figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: rgba(27, 27, 31, 0.65);
  text-align: center;
}

.case-outcome-summary .case-outcome-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(27, 27, 31, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.75rem;
}

.case-outcome-summary h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.case-outcome-summary p {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: rgba(27, 27, 31, 0.72);
}

.case-outcome-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.case-outcome-points li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.98rem;
  color: rgba(27, 27, 31, 0.78);
}

.case-outcome-points li::before {
  content: "•";
  color: var(--color-charcoal);
  font-weight: 700;
  line-height: 1;
}

.quick-facts {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: 32px 0 48px;
}

.quick-facts div {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: 0 8px 20px rgba(27, 27, 31, 0.1);
  border: 2px solid rgba(27, 27, 31, 0.06);
  display: grid;
  gap: 8px;
}

.quick-facts strong {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(27, 27, 31, 0.65);
}

.quick-facts span {
  font-size: 1.05rem;
  color: var(--color-charcoal);
}

.hero-visual {
  margin: 0;
  background: var(--color-white);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 2px solid rgba(27, 27, 31, 0.06);
}

.hero-visual figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
}

.case-section {
  padding: 96px 0;
  border-bottom: 1px solid rgba(27, 27, 31, 0.06);
}

.bhava-section-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 225, 182, 0.7);
  background: linear-gradient(120deg, rgba(255, 240, 210, 0.9) 0%, rgba(255, 223, 180, 0.78) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 12px 26px rgba(225, 125, 44, 0.18);
  color: rgba(87, 51, 24, 0.85);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin: 0 auto clamp(18px, 3vw, 30px);
}

.case-section {
  background: var(--color-cream);
}

.case-section h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 24px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.case-section h3 {
  font-size: 1.3rem;
  margin-top: 32px;
  margin-bottom: 16px;
  font-weight: 600;
}

.case-section p {
  max-width: 680px;
  line-height: 1.65;
  color: rgba(27, 27, 31, 0.75);
  margin-bottom: 1em;
}

.case-section>.container>p {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.case-wrapper main img {
  border-radius: 12px !important;
}

.case-figure-card {
  margin: clamp(2rem, 4vw, 3rem) 0;
  padding: 0;
  background: #ffffff;
  border-radius: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(16, 185, 129, 0.12);
  box-shadow:
    0 10px 24px rgba(3, 102, 78, 0.06),
    0 4px 12px rgba(3, 102, 78, 0.05);
  overflow: hidden;
}

/* Full-width image layout for major sections */
.case-visual-fullwidth {
  margin: clamp(2.5rem, 5vw, 4rem) 0;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.case-visual-fullwidth img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: clamp(16px, 2.5vw, 24px);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.12),
    0 8px 20px rgba(0, 0, 0, 0.08);
}

/* 2-up image layout */
.case-visual-2up {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  margin: clamp(2.5rem, 5vw, 4rem) 0;
}

.case-visual-2up img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: clamp(12px, 2vw, 18px);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Large feature image with caption */
.case-visual-feature {
  margin: clamp(3rem, 6vw, 5rem) 0;
  background: #ffffff;
  border-radius: clamp(20px, 3vw, 32px);
  overflow: hidden;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.15),
    0 10px 24px rgba(0, 0, 0, 0.1);
}

.case-visual-feature img {
  width: 100%;
  height: auto;
  display: block;
}

.case-visual-feature figcaption {
  padding: clamp(1rem, 2.5vw, 1.75rem);
  text-align: center;
  font-size: 0.95rem;
  color: #6b7280;
  font-style: italic;
  background: linear-gradient(180deg, rgba(249, 250, 251, 0.5) 0%, #ffffff 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.case-figure-card__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.case-figure-card__caption {
  padding: clamp(0.85rem, 1.8vw, 1.35rem);
  text-align: center;
  font-size: 0.9rem;
  color: #115e3c;
  background: linear-gradient(180deg, rgba(240, 249, 244, 0.4) 0%, #ffffff 80%);
}

.case-figure-card--surface {
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow:
    0 16px 34px rgba(6, 95, 70, 0.08),
    0 6px 18px rgba(6, 95, 70, 0.06);
}

.case-cta {
  padding: 96px 0;
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
  text-align: center;
}

.case-cta h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 20px;
  background: linear-gradient(135deg, #4a5bda 0%, #7b8ef5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.case-cta p {
  font-size: 1.1rem;
  color: #6b7280;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .case-hero {
    padding-top: clamp(24px, 7vw, 64px);
  }

  .case-section {
    padding: 72px 0;
  }

  .case-outcome-grid {
    grid-template-columns: 1fr;
  }

  .quick-facts {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .table th,
  .table td {
    padding: 12px 14px;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(2rem, 7vw, 2.5rem);
    line-height: 1.15;
  }

  h2 {
    font-size: clamp(1.6rem, 6vw, 2rem);
    line-height: 1.2;
  }

  h6 {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
  }
}

.modal-content {
  display: grid;
  gap: clamp(16px, 2.5vw, 24px);
}

.project-modal #project-sidebar-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: rgba(17, 24, 39, 0.9);
  margin: 0;
}

.project-modal .sidebar-summary {
  font-weight: 600;
  color: rgba(30, 41, 59, 0.75);
  margin: 0;
}

.project-modal .sidebar-details {
  color: rgba(51, 65, 85, 0.8);
  line-height: 1.65;
}

.project-modal .sidebar-details p {
  margin: 0 0 1em;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
}

.modal-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(99, 102, 241, 0.3));
  color: rgba(49, 46, 129, 0.95);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 16px 30px rgba(79, 70, 229, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.modal-primary-btn::after {
  content: "↗";
  font-size: 1rem;
}

.modal-primary-btn:hover,
.modal-primary-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 20px 36px rgba(79, 70, 229, 0.28);
}

@media (max-width: 959px) {
  .experiment-panel {
    transform: none;
    opacity: 1;
  }
}


/* ===================================
   BHAVA CASE STUDY - NEW DESIGN
   =================================== */

/* Hero Section */
.bhava-hero-new {
  width: 100%;
  min-height: 65vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin: 0 auto clamp(32px, 6vw, 48px);
  padding: clamp(40px, 6vw, 64px) clamp(20px, 5vw, 60px) clamp(32px, 4vw, 40px);
}

.bhava-hero-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: 40px;
}

.bhava-hero-left h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.4rem);
  margin: 0;
  line-height: 1.1;
}

.bhava-hero-left p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
  color: rgba(37, 24, 16, 0.85);
}

.bhava-hero-left .bhava-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.bhava-hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: 40px;
}

.bhava-hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.4rem);
  margin: 0;
  line-height: 1.1;
}

.bhava-hero-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
  color: rgba(37, 24, 16, 0.85);
}

.bhava-hero-content .bhava-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.bhava-hero-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.bhava-hero-highlights article {
  padding: 20px 18px;
  background: linear-gradient(135deg, rgba(255, 248, 225, 0.6) 0%, rgba(255, 244, 214, 0.8) 100%);
  border: 2px solid rgba(255, 215, 0, 0.25);
  border-radius: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bhava-hero-highlights article::before {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.bhava-hero-highlights article:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 193, 7, 0.4);
  background: linear-gradient(135deg, rgba(255, 245, 220, 0.8) 0%, rgba(255, 235, 180, 0.9) 100%);
  box-shadow: 0 6px 20px rgba(255, 160, 60, 0.15);
}

.bhava-hero-highlights article:nth-child(1) {
  background: linear-gradient(135deg, rgba(255, 252, 240, 0.6) 0%, rgba(255, 248, 225, 0.8) 100%);
}

.bhava-hero-highlights article:nth-child(2) {
  background: linear-gradient(135deg, rgba(255, 246, 214, 0.6) 0%, rgba(255, 240, 200, 0.8) 100%);
}

.bhava-hero-highlights article:nth-child(3) {
  background: linear-gradient(135deg, rgba(255, 243, 196, 0.6) 0%, rgba(255, 235, 180, 0.8) 100%);
}

.bhava-hero-highlights article:nth-child(4) {
  background: linear-gradient(135deg, rgba(255, 240, 180, 0.6) 0%, rgba(255, 228, 160, 0.8) 100%);
}

.bhava-hero-highlights article h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-charcoal);
}

.bhava-hero-highlights article p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(37, 24, 16, 0.8);
}

/* Stats section in hero - matching highlight cards design */
.bhava-hero-stats {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  padding: 12px 0 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.bhava-hero-stats::-webkit-scrollbar {
  height: 6px;
}

.bhava-hero-stats::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 999px;
}

.bhava-hero-stats::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
}

.bhava-hero-stats article {
  padding: 20px 18px;
  background: linear-gradient(135deg, rgba(255, 248, 225, 0.6) 0%, rgba(255, 244, 214, 0.8) 100%);
  border: 2px solid rgba(255, 215, 0, 0.25);
  border-radius: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
  flex: 1 1 220px;
  min-width: 220px;
  scroll-snap-align: start;
}

.bhava-hero-stats article::before {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.bhava-hero-stats article:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 193, 7, 0.4);
  background: linear-gradient(135deg, rgba(255, 245, 220, 0.8) 0%, rgba(255, 235, 180, 0.9) 100%);
  box-shadow: 0 6px 20px rgba(255, 160, 60, 0.15);
}

.bhava-hero-stats article:nth-child(1) {
  background: linear-gradient(135deg, rgba(255, 252, 240, 0.6) 0%, rgba(255, 248, 225, 0.8) 100%);
}

.bhava-hero-stats article:nth-child(2) {
  background: linear-gradient(135deg, rgba(255, 246, 214, 0.6) 0%, rgba(255, 240, 200, 0.8) 100%);
}

.bhava-hero-stats article:nth-child(3) {
  background: linear-gradient(135deg, rgba(255, 243, 196, 0.6) 0%, rgba(255, 235, 180, 0.8) 100%);
}

.bhava-hero-stats article:nth-child(4) {
  background: linear-gradient(135deg, rgba(255, 240, 180, 0.6) 0%, rgba(255, 228, 160, 0.8) 100%);
}

.bhava-hero-stats article h3 {
  margin: 0 0 8px;
  font-size: 1.8rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-charcoal);
}

.bhava-hero-stats article p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: rgba(37, 24, 16, 0.75);
  font-weight: 500;
}

@media (min-width: 1100px) {
  .bhava-hero-stats {
    overflow-x: visible;
    scroll-snap-type: none;
  }
}

.bhava-hero-visual-new {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.bhava-hero-visual-new img {
  display: block;
  width: 80%;
  max-width: 80%;
  height: auto;
  object-fit: contain;
}

.bhava-overview {
  width: 100%;
  background: linear-gradient(135deg, #fff8ec 0%, #faf6ef 35%, #fff4d6 100%);
  padding: clamp(48px, 8vw, 80px) 0;
}

.bhava-overview-inner {
  width: min(1200px, 90vw);
  margin: 0 auto;
  display: grid;
  gap: clamp(32px, 4vw, 48px);
}

.bhava-overview-copy {
  display: grid;
  gap: 18px;
  color: rgba(37, 24, 16, 0.85);
}

.bhava-overview-copy h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.4rem);
  margin: 0;
}

.bhava-overview-copy p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.7;
}

.bhava-pill-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.bhava-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(18px, 3vw, 28px);
}

.bhava-overview-grid article {
  padding: clamp(18px, 2.2vw, 26px);
  border-radius: 22px;
  border: 1px solid rgba(226, 232, 240, 0.35);
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: linear-gradient(150deg, rgba(255, 242, 221, 0.95) 0%, rgba(255, 226, 185, 0.88) 100%);
}

.bhava-overview-grid article:nth-child(2) {
  background: linear-gradient(150deg, rgba(255, 237, 206, 0.95) 0%, rgba(255, 220, 168, 0.9) 100%);
}

.bhava-overview-grid article:nth-child(3) {
  background: linear-gradient(150deg, rgba(255, 233, 194, 0.95) 0%, rgba(255, 212, 152, 0.9) 100%);
}

.bhava-overview-grid article:nth-child(4) {
  background: linear-gradient(150deg, rgba(255, 228, 182, 0.95) 0%, rgba(255, 206, 140, 0.9) 100%);
}

.bhava-overview-grid article h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-family: var(--font-heading);
  color: rgba(30, 41, 59, 0.9);
}

.bhava-overview-grid article p {
  margin: 0;
  color: rgba(51, 65, 85, 0.8);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .bhava-overview-inner {
    width: min(1000px, 92vw);
  }

  .bhava-overview-copy h1 {
    font-size: clamp(2.2rem, 7vw, 2.8rem);
  }
}


/* Utility Classes */
.container.narrow {
  min-width: 800px;
  max-width: 1000px;
}

/* Text density helpers for case studies */
.text-condensed {
  max-width: 65ch;
  line-height: 1.6;
}

.text-condensed p {
  margin-bottom: 0.75em;
}

/* Hide verbose content on mobile */
@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }
}

@media (max-width: 800px) {
  .container.narrow {
    min-width: 0;
    width: 100%;
  }
}

.container.centered,
.centered {
  text-align: center;
}

.section-intro {
  margin-bottom: 48px;
  text-align: center;
  padding: 32px 24px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(27, 27, 31, 0.5);
  margin-bottom: 16px;
}

.section-intro h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 16px;
}

.section-description {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* Story Text Styles */
.story-text {
  font-size: 1.1rem;
  line-height: 1.8;
}

.story-text p {
  margin-bottom: 1.5em;
}

.story-text p.lead {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--color-charcoal);
  font-weight: 500;
}

.story-text a {
  color: var(--color-charcoal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.story-text a:hover {
  opacity: 0.7;
}

.story-callout {
  background: rgba(255, 193, 7, 0.08);
  border-left: 4px solid rgba(255, 193, 7, 0.4);
  padding: 24px 28px;
  border-radius: 12px;
  margin: 32px 0;
}

.story-callout p {
  margin: 0;
  color: var(--color-text);
}

/* Context Section */
.bhava-context {
  padding: 96px 0;
}

/* Problem Section */
.bhava-problem {
  padding: 96px 0;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.problem-card {
  background: var(--color-white);
  padding: 40px 32px;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(255, 160, 60, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(255, 160, 60, 0.15);
}

.problem-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 20px;
}

.problem-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.problem-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.problem-list li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 12px;
  color: var(--color-muted);
}

.problem-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: rgba(255, 193, 7, 0.6);
  font-weight: bold;
}

.insight-box {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.12) 0%, rgba(255, 193, 7, 0.06) 100%);
  padding: 32px 40px;
  border-radius: 16px;
  border: 2px solid rgba(255, 193, 7, 0.2);
  margin: 40px 0;
  font-size: 1.15rem;
  line-height: 1.6;
}

/* Trust Framework */
.bhava-trust {
  padding: 96px 0;
}

.trust-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

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

.trust-pillar {
  background: var(--color-white);
  padding: 32px 28px;
  border-radius: 16px;
  border: 1px solid rgba(241, 229, 198, 0.3);
  box-shadow: none;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.trust-pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(227, 203, 79, 0.5);
}

.pillar-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: rgba(68, 52, 28, 0.15);
  margin-bottom: 12px;
}

.trust-pillar h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.trust-pillar p {
  font-size: 1rem;
  margin: 0;
}

/* Research Section */
.bhava-research {
  padding: 96px 0;
}

.research-findings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 48px 0;
}

.research-findings-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0;
}

.research-findings-bento .finding-card:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.research-findings-bento .finding-card:nth-child(2) {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.research-findings-bento .finding-card:nth-child(3) {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.research-findings-bento .finding-card:nth-child(4) {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}

.research-findings-bento .user-quote-card {
  grid-column: 2 / 4;
  grid-row: 2 / 3;
}

.finding-card {
  background: var(--color-white);
  padding: 32px 28px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(255, 160, 60, 0.1);
  border-left: 4px solid rgba(255, 193, 7, 0.4);
}

.finding-number {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(87, 51, 24, 0.9);
  background: rgba(255, 193, 7, 0.15);
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.finding-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.finding-card p {
  margin: 0;
  font-size: 1rem;
}

.user-quote {
  background: var(--color-white);
  padding: 40px 48px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(255, 160, 60, 0.12);
  margin: 48px 0;
  border-left: 4px solid rgba(255, 193, 7, 0.5);
}

.user-quote p {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-charcoal);
  margin: 0 0 16px;
  line-height: 1.5;
}

.user-quote-card {
  background: linear-gradient(135deg, rgba(255, 235, 180, 0.4) 0%, rgba(255, 245, 220, 0.6) 100%);
  padding: 40px 48px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(255, 160, 60, 0.12);
  border-left: 4px solid rgba(255, 193, 7, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.user-quote-card p {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-charcoal);
  margin: 0 0 16px;
  line-height: 1.5;
}

.user-quote-card footer {
  font-size: 0.95rem;
  color: rgba(87, 51, 24, 0.7);
  font-style: normal;
}

.user-quote footer {
  font-size: 0.95rem;
  color: var(--color-muted);
  font-style: normal;
}

/* Solutions/Experiments Section */
.bhava-solutions {
  padding: 96px 0;
}

.experiments-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-top: 64px;
}

.experiment-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.experiment-card .experiment-visual {
  order: 2;
}

.experiment-card .experiment-content {
  order: 1;
}

.experiment-card.reverse {
  grid-template-columns: 1fr 1fr;
}

.experiment-card.reverse .experiment-visual {
  order: 2;
}

.experiment-card.reverse .experiment-content {
  order: 1;
}

.experiment-visual {

  background: var(--color-white);
}

.experiment-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.experiment-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(143, 90, 50, 0.9);
  background: rgba(143, 90, 50, 0.1);
  padding: 6px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.experiment-content h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  line-height: 1.3;
}

.experiment-problem,
.experiment-solution {
  margin-bottom: 16px;
  line-height: 1.7;
}

.experiment-impact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid rgba(0, 0, 0, 0.06);
}

.impact-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.impact-metric strong {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-charcoal);
}

.impact-metric span {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Metrics Section */
.bhava-metrics {
  padding: 96px 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.metric-card {
  background: var(--color-white);
  padding: 32px 28px;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(255, 160, 60, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(255, 160, 60, 0.15);
}

.metric-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-big {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-charcoal);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-card p {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.metric-change {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
}

.metric-change.positive {
  background: rgba(16, 185, 129, 0.1);
  color: rgba(5, 150, 105, 0.9);
}

.metric-change.neutral {
  background: rgba(107, 114, 128, 0.1);
  color: rgba(55, 65, 81, 0.9);
}

/* Learnings Section */
.bhava-learnings {
  padding: 96px 0;
}

.learnings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 48px;
}

.learning-column h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.learning-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.learning-list li {
  padding-left: 32px;
  position: relative;
  margin-bottom: 16px;
  line-height: 1.6;
  color: var(--color-muted);
}

.learning-list.success li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(16, 185, 129, 0.8);
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1;
}

.learning-list.failure li::before {
  content: "×";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(239, 68, 68, 0.7);
  font-weight: bold;
  font-size: 1.4rem;
  line-height: 1;
}

/* Roadmap Section */
.bhava-roadmap {
  padding: 48px 0;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 0;
}

.roadmap-grid-horizontal {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 960px) {
  .roadmap-grid-horizontal {
    grid-template-columns: 1fr;
  }
}

.roadmap-column {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 250, 245, 0.9) 100%);
  backdrop-filter: blur(10px);
  padding: 24px 28px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(255, 160, 60, 0.08);
  border: 1px solid rgba(255, 160, 60, 0.15);
  transition: all 0.3s ease;
}

.roadmap-column:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(255, 160, 60, 0.15);
  border-color: rgba(255, 160, 60, 0.25);
}

.roadmap-column h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255, 160, 60, 0.15);
  color: var(--color-charcoal);
}

.roadmap-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.roadmap-list li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 10px;
  color: var(--color-text);
  line-height: 1.6;
  font-size: 0.95rem;
}

.roadmap-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(143, 90, 50, 0.7);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Different styling for each roadmap column */
.roadmap-column:nth-child(1),
.roadmap-card-1 {
  border-left: 3px solid rgba(143, 90, 50, 0.4);
}

.roadmap-column:nth-child(1) h3,
.roadmap-card-1 h3 {
  color: rgba(143, 90, 50, 0.9);
}

.roadmap-column:nth-child(2),
.roadmap-card-2 {
  border-left: 3px solid rgba(217, 169, 109, 0.4);
}

.roadmap-column:nth-child(2) h3,
.roadmap-card-2 h3 {
  color: rgba(217, 169, 109, 0.9);
}

.roadmap-column:nth-child(3),
.roadmap-card-3 {
  border-left: 3px solid rgba(139, 115, 85, 0.5);
}

.roadmap-column:nth-child(3) h3,
.roadmap-card-3 h3 {
  color: rgba(139, 115, 85, 0.9);
}

/* Risks Section */
.bhava-risks {
  padding: 96px 0;
}

.risk-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.risk-list li {
  padding-left: 32px;
  position: relative;
  margin-bottom: 16px;
  line-height: 1.7;
  color: var(--color-muted);
}

.risk-list li::before {
  content: "⚠";
  position: absolute;
  left: 0;
  color: rgba(245, 158, 11, 0.7);
  font-size: 1.1rem;
}

/* CTA Section */
.case-cta-new {
  padding: 96px 0;
  background: var(--color-charcoal);
  color: var(--color-white);
  border-radius: 28px 28px 0 0;
  margin-top: -40px;
  position: relative;
}

.case-cta-new h2 {
  color: var(--color-white);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
}

.case-cta-new p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* SBHM - CTA Primary Button (Glass Morphism variant) */
.case-cta-new .btn.primary {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
  color: rgba(255, 255, 255, 0.95);
  border: none;
  background-clip: padding-box;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 8px 32px rgba(0, 0, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-cta-new .btn.primary:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.12));
  box-shadow:
    0 1px 4px 0 rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.25) inset,
    0 12px 40px rgba(0, 0, 0, 0.32);
  transform: translateY(-1px);
}

.case-cta-new .btn.primary:focus {
  outline: none;
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* More Case Studies Section */
.more-case-studies {
  padding: 80px 0;
}

.case-studies-horizontal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.case-study-horizontal-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-decoration: none;
  border: 1px solid rgba(143, 90, 50, 0.12);
  box-shadow: 0 6px 18px rgba(143, 90, 50, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.case-study-horizontal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-cocoa);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}

.case-study-horizontal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(143, 90, 50, 0.2);
  border-color: rgba(143, 90, 50, 0.2);
  text-decoration: none;
}

.case-study-horizontal-card:hover::before {
  transform: scaleY(1);
}

/* Keep link text clean: no underline on hover/focus */
.case-study-horizontal-card,
.case-study-horizontal-card:hover,
.case-study-horizontal-card:focus {
  text-decoration: none !important;
}

.case-study-horizontal-card h3,
.case-study-horizontal-card p,
.case-study-horizontal-card h3:hover,
.case-study-horizontal-card p:hover,
.case-study-horizontal-card h3:focus,
.case-study-horizontal-card p:focus {
  text-decoration: none !important;
}

.case-horizontal-content {
  flex: 1;
}

.case-horizontal-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-cocoa);
  background: rgba(143, 90, 50, 0.1);
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.case-study-horizontal-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin: 0 0 8px;
}

.case-study-horizontal-card p {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin: 0;
}

.case-horizontal-arrow {
  font-size: 2rem;
  color: var(--color-cocoa);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.case-study-horizontal-card:hover .case-horizontal-arrow {
  transform: translateX(8px);
  color: #0077D1;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .bhava-hero-new {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: clamp(30px, 5vw, 60px) clamp(20px, 5vw, 40px);
    min-height: auto;
  }

  .bhava-hero-visual-new {
    order: -1;
  }

  .bhava-hero-visual-new img {
    width: 100%;
    max-width: 100%;
  }

  .bhava-hero-content,
  .bhava-hero-left {
    padding-right: 0;
  }

  .experiment-card,
  .experiment-card.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .experiment-card.reverse .experiment-visual,
  .experiment-card.reverse .experiment-content {
    order: initial;
  }

  .bhava-hero-stats {
    gap: 14px;
  }

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

  .research-findings-bento .finding-card:nth-child(1),
  .research-findings-bento .finding-card:nth-child(2) {
    grid-column: span 1;
  }

  .research-findings-bento .finding-card:nth-child(3),
  .research-findings-bento .finding-card:nth-child(4) {
    grid-column: span 1;
  }

  .research-findings-bento .user-quote-card {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .section {
    padding: 56px 0;
  }

  /* Extra spacing for readability */
  p {
    margin-bottom: 1.4em;
    line-height: 1.75;
  }

  .container {
    width: min(94%, var(--max-width));
  }

  /* Header extra small mobile */
  .site-header .container {
    padding: 6px 12px;
  }

  .brand-name {
    font-size: 0.85rem;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  /* Hero grid extra small spacing */
  .hero-grid {
    gap: 32px;
    grid-template-columns: 1fr;
  }

  /* Hero extra small mobile */
  .hero-card {
    padding: 60px 20px 40px 20px;
  }

  .opportunity-sticky-flags {
    top: 72px;
    left: 20px;
  }

  .sticky-flag {
    padding: 10px 16px 10px 12px;
    gap: 8px;
  }

  .flag-text {
    font-size: 0.8rem;
  }

  .hero-title {
    font-size: clamp(1.5rem, 7vw, 1.9rem);
    line-height: 1.2;
    white-space: normal;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.4;
    max-width: 100%;
  }

  .hero-bio {
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 100%;
  }

  .hero-copy {
    text-align: left;
    grid-column: 1 / -1;
  }

  .hero-art {
    grid-column: 1 / -1;
    padding: 0 12px;
  }

  .hero-image-container {
    max-width: 100%;
  }

  .floating-card {
    padding: 20px;
    max-width: 100%;
  }

  .hero-illustration {
    height: 220px;
    max-width: 100%;
  }

  .opportunity-sticky-flags {
    display: none;
  }

  /* CTA buttons on extra small screens */
  .cta-group {
    gap: 12px;
  }

  .btn {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  /* Section padding */
  .section {
    padding: 56px 0;
  }

  /* Insights section extra small mobile */
  .section.insights .container {
    padding: 0 12px;
  }

  .insights-articles-grid {
    padding: 16px 0;
    gap: 16px;
  }

  .article-card {
    width: 88vw;
    max-width: 320px;
    padding: 24px 20px;
  }

  .article-card h3 {
    font-size: 1rem;
  }

  /* Philosophy section extra small mobile */
  .philosophy-items {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding: 0 8px;
    justify-content: center;
  }

  .philosophy-item {
    padding: clamp(1.1rem, 6vw, 1.5rem);
    border-radius: 18px;
  }

  .philosophy-icon {
    width: 48px;
    height: 48px;
    padding: 6px;
  }

  .philosophy-icon svg {
    width: 26px;
    height: 26px;
  }

  .philosophy-item h3 {
    font-size: 1.05rem;
  }

  .philosophy-item span {
    font-size: 0.86rem;
  }

  .philosophy-quote {
    font-size: 1.35rem;
    text-align: center;
    margin: 0 auto 24px;
  }
}

@media (max-width: 640px) {
  .bhava-hero-new {
    min-height: auto;
    padding: 60px 20px 40px;
  }

  .bhava-hero-content h1,
  .bhava-hero-left h1 {
    font-size: 2rem;
  }

  .bhava-hero-content p,
  .bhava-hero-left p {
    font-size: 1.05rem;
  }

  .bhava-hero-highlights {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .bhava-hero-stats {
    padding: 12px 0 8px;
    gap: 12px;
  }

  .section-intro h2 {
    font-size: 1.8rem;
  }

  .story-text p.lead {
    font-size: 1.15rem;
  }

  .problem-grid,
  .trust-pillars,
  .research-findings,
  .research-findings-bento,
  .metrics-grid,
  .learnings-grid,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .research-findings-bento .finding-card,
  .research-findings-bento .user-quote-card {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }

  .experiment-content h3 {
    font-size: 1.4rem;
  }

  .user-quote {
    padding: 28px 24px;
  }

  .user-quote p {
    font-size: 1.1rem;
  }

  .case-section {
    padding: 64px 0;
  }
}

.bhava-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(37, 24, 16, 0.55);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 239, 208, 0.85) 0%, rgba(255, 226, 176, 0.75) 100%);
  border: 1px solid rgba(255, 214, 153, 0.7);
  font-weight: 600;
  color: rgba(87, 51, 24, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ============================================
   Books Section
   ============================================ */

.books-section {
  padding: 120px 0;
  background: var(--color-cream);
}

.books-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.books-text {
  max-width: 600px;
}

.books-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(42, 42, 48, 0.5);
  margin: 0 0 16px 0;
}

.books-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0 0 24px 0;
}

.books-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-muted);
  margin: 0 0 48px 0;
}

.books-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.book-item {
  padding: 24px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
}

.book-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.book-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 8px 0;
}

.book-author {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-muted);
  margin: 0;
}

.books-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  perspective: 1500px;
}

.books-stack {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-cover {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  cursor: pointer;
}

.book-cover-default {
  background: #1a1a1a;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.3),
    0 10px 25px rgba(0, 0, 0, 0.2);
}

.book-cover-hint {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  text-align: center;
  padding: 0 40px;
  line-height: 1.6;
}

/* Book stack images */
.books-stack img {
  position: absolute;
  height: 100%;
  width: auto;
  object-fit: contain;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Individual book positioning for 3D stack effect */
.book-spine {
  transform-origin: center center;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.book-spine:nth-child(1) {
  z-index: 7;
  transform: translateX(-180px) rotateY(-8deg);
}

.book-spine:nth-child(2) {
  z-index: 6;
  transform: translateX(-120px) rotateY(-5deg);
}

.book-spine:nth-child(3) {
  z-index: 5;
  transform: translateX(-60px) rotateY(-3deg);
}

.book-spine:nth-child(4) {
  z-index: 4;
  transform: translateX(0) rotateY(0deg);
}

.book-spine:nth-child(5) {
  z-index: 3;
  transform: translateX(60px) rotateY(3deg);
}

.book-spine:nth-child(6) {
  z-index: 2;
  transform: translateX(120px) rotateY(5deg);
}

.book-spine:nth-child(7) {
  z-index: 1;
  transform: translateX(180px) rotateY(8deg);
}

/* Hover state for book stack */
.books-stack.expanded .book-spine {
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
}

.books-stack.expanded .book-spine:nth-child(1) {
  transform: translateX(-210px) rotateY(-12deg);
}

.books-stack.expanded .book-spine:nth-child(2) {
  transform: translateX(-140px) rotateY(-8deg);
}

.books-stack.expanded .book-spine:nth-child(3) {
  transform: translateX(-70px) rotateY(-4deg);
}

.books-stack.expanded .book-spine:nth-child(4) {
  transform: translateX(0) rotateY(0deg) scale(1.05);
}

.books-stack.expanded .book-spine:nth-child(5) {
  transform: translateX(70px) rotateY(4deg);
}

.books-stack.expanded .book-spine:nth-child(6) {
  transform: translateX(140px) rotateY(8deg);
}

.books-stack.expanded .book-spine:nth-child(7) {
  transform: translateX(210px) rotateY(12deg);
}

/* Responsive design for books section */
@media (max-width: 968px) {
  .books-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .books-text {
    max-width: 100%;
  }

  .books-title {
    font-size: 2rem;
  }

  .books-visual {
    min-height: 500px;
  }

  .books-stack {
    max-width: 400px;
    height: 400px;
  }
}

@media (max-width: 640px) {
  .books-section {
    padding: 80px 0;
  }

  .books-title {
    font-size: 1.75rem;
  }

  .books-description {
    font-size: 1rem;
  }

  .book-item {
    padding: 20px;
  }

  .book-title {
    font-size: 1.1rem;
  }

  .book-author {
    font-size: 0.9rem;
  }

  .books-visual {
    min-height: 400px;
  }

  .books-stack {
    max-width: 320px;
    height: 320px;
  }

  .book-spine:nth-child(1) {
    transform: translateX(-140px) rotateY(-8deg);
  }

  .book-spine:nth-child(2) {
    transform: translateX(-90px) rotateY(-5deg);
  }

  .book-spine:nth-child(3) {
    transform: translateX(-45px) rotateY(-3deg);
  }

  .book-spine:nth-child(5) {
    transform: translateX(45px) rotateY(3deg);
  }

  .book-spine:nth-child(6) {
    transform: translateX(90px) rotateY(5deg);
  }

  .book-spine:nth-child(7) {
    transform: translateX(140px) rotateY(8deg);
  }

  .books-stack.expanded .book-spine:nth-child(1) {
    transform: translateX(-160px) rotateY(-12deg);
  }

  .books-stack.expanded .book-spine:nth-child(2) {
    transform: translateX(-105px) rotateY(-8deg);
  }

  .books-stack.expanded .book-spine:nth-child(3) {
    transform: translateX(-52px) rotateY(-4deg);
  }

  .books-stack.expanded .book-spine:nth-child(5) {
    transform: translateX(52px) rotateY(4deg);
  }

  .books-stack.expanded .book-spine:nth-child(6) {
    transform: translateX(105px) rotateY(8deg);
  }

  .books-stack.expanded .book-spine:nth-child(7) {
    transform: translateX(160px) rotateY(12deg);
  }
}



/* ================================
   Case Study Level Summaries
   ================================ */

.case-levels {
  padding: 88px 0 96px;
  position: relative;
  background: linear-gradient(160deg, rgba(246, 233, 214, 0.65) 0%, rgba(255, 251, 240, 0.92) 100%);
  overflow: hidden;
}

.case-levels::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.35) 0, rgba(255, 255, 255, 0) 45%),
    radial-gradient(circle at 88% 12%, rgba(255, 221, 184, 0.28) 0, rgba(255, 221, 184, 0) 46%),
    radial-gradient(circle at 14% 82%, rgba(255, 240, 213, 0.35) 0, rgba(255, 240, 213, 0) 50%);
  opacity: 0.75;
  pointer-events: none;
}

.case-levels .container {
  position: relative;
  display: grid;
  gap: 56px;
  width: min(1040px, 92%);
  margin: 0 auto;
}

.case-level-card {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  padding: 32px clamp(24px, 4vw, 48px);
  box-shadow:
    0 26px 60px rgba(181, 146, 108, 0.18),
    0 8px 24px rgba(181, 146, 108, 0.14);
  border: 1px solid rgba(191, 163, 122, 0.24);
  backdrop-filter: blur(16px);
  position: relative;
}

.case-level-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 20px;
  border: 1px dashed rgba(191, 163, 122, 0.28);
  pointer-events: none;
}

.case-level-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.case-level-emoji {
  font-size: clamp(1.6rem, 2vw, 2.4rem);
  line-height: 1;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.08));
}

.case-level-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin: 0;
  color: var(--color-charcoal);
}

.case-level-card p {
  font-size: 1.05rem;
  color: rgba(57, 47, 32, 0.78);
  margin-bottom: 1.1rem;
}

.case-level-card strong {
  color: rgba(51, 38, 23, 0.95);
}

.scroll-flow-note {
  font-size: 0.85rem;
  color: rgba(82, 66, 46, 0.7);
  margin: 0 0 10px;
}

.scroll-flow-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 6px 4px 12px;
  margin: 0 -4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(196, 168, 124, 0.26) transparent;
}

.scroll-flow-grid::-webkit-scrollbar {
  height: 6px;
}

.scroll-flow-grid::-webkit-scrollbar-thumb {
  background: rgba(196, 168, 124, 0.26);
  border-radius: 999px;
}

.scroll-flow-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 0 0 clamp(220px, 28vw, 280px);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(196, 168, 124, 0.22);
  box-shadow: 0 14px 32px rgba(201, 168, 123, 0.16);
  transition: transform var(--transition), box-shadow var(--transition);
  scroll-snap-align: start;
  text-decoration: none !important;
  color: inherit;
  min-height: 160px;
  cursor: pointer;
  position: relative;
}

.scroll-flow-item:hover,
.scroll-flow-item:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px rgba(201, 168, 123, 0.22);
  text-decoration: none !important;
}

.scroll-flow-item:focus-visible {
  outline: 2px solid rgba(191, 134, 70, 0.6);
  outline-offset: 4px;
}

.scroll-flow-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(51, 38, 23, 0.95);
}

.scroll-flow-item h3 span {
  font-size: 1.4rem;
}

.scroll-flow-item p {
  margin: 0;
  font-size: 0.98rem;
  color: rgba(82, 66, 46, 0.85);
  text-decoration: none !important;
}

/* Ensure no text within scroll-flow-item shows underlines */
.scroll-flow-item *,
.scroll-flow-item:hover *,
.scroll-flow-item:focus *,
.scroll-flow-item:active * {
  text-decoration: none !important;
}

.visual-suggestions {
  display: grid;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.visual-suggestions li {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(196, 168, 124, 0.24);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.98rem;
  color: rgba(72, 54, 32, 0.86);
  box-shadow: 0 14px 30px rgba(201, 168, 123, 0.12);
}

.visual-suggestions li::before {
  content: "•";
  font-size: 1.4rem;
  line-height: 1;
  color: rgba(191, 134, 70, 0.8);
}

.visual-suggestions strong {
  font-weight: 600;
  color: rgba(51, 38, 23, 0.95);
}

.case-metric-badges {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 16px;
  margin-top: 24px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.case-metric-badges::-webkit-scrollbar {
  height: 8px;
}

.case-metric-badges::-webkit-scrollbar-thumb {
  background: rgba(196, 168, 124, 0.26);
  border-radius: 999px;
}

.case-metric-badge {
  background: rgba(51, 38, 23, 0.92);
  color: #fff7ed;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
  position: relative;
  box-shadow: 0 16px 34px rgba(51, 38, 23, 0.26);
}

.case-metric-badge span {
  font-size: 1.3rem;
  font-weight: 700;
}

@media (min-width: 720px) {
  .visual-suggestions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {

  /* Stack 2-up images on mobile */
  .case-visual-2up {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Reduce margins on mobile */
  .case-visual-fullwidth,
  .case-visual-feature {
    margin: 2rem 0;
  }

  /* Allow horizontal scrolling for stats on small screens */
  .bhava-hero-stats {
    gap: 12px;
    overflow-x: auto;
  }

  .case-metric-badges {
    grid-auto-flow: row;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .case-level-card {
    padding: 28px 20px;
  }

  .scroll-flow-item {
    padding: 18px 18px;
  }

  .case-metric-badges {
    grid-auto-flow: row;
  }
}

.case-anchor {
  position: relative;
  top: -96px;
  height: 0;
  display: block;
  width: 1px;
  pointer-events: none;
}

/* ========================================
   Case Study Spine
   ======================================== */

.case-spine-track {
  position: relative;
}

.case-spine {
  position: sticky;
  top: calc(var(--frame-offset, 0px) + var(--case-spine-offset));
  width: 100%;
  height: 0;
  min-height: 1px;
  display: block;
  overflow: visible;
  pointer-events: none;
  z-index: 90;
  transition: opacity 0.3s ease;
}

.case-spine-rail {
  position: relative;
  margin-left: clamp(8px, 2vw, 24px);
  width: 88px;
  height: clamp(420px, calc(100vh - 96px), 720px);
  background: var(--spine-color, #0b6a2e);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0 56px;
  border-radius: 0 0 48px 48px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.35s ease;
}

.case-spine-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
}

.case-spine-marker {
  position: absolute;
  bottom: 24px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(255, 255, 255, 0.3);
}

body.case-hero-in-view .case-spine {
  opacity: 0;
}

body.case-hero-in-view .case-spine-rail {
  opacity: 0;
  transform: translateY(32px);
}

.case-spine[data-theme="bhava"] {
  --spine-color: #d2691e;
}

.case-spine[data-theme="pushowl"] {
  --spine-color: #c9954a;
}

.case-spine[data-theme="pushowl-ai"] {
  --spine-color: #d4a574;
}

.case-spine[data-theme="branch"] {
  --spine-color: #cd853f;
}

.case-spine[data-theme="calendar"] {
  --spine-color: #c97a3d;
}

.case-spine.case-spine--pinned {
  position: fixed;
  top: calc(var(--frame-offset, 0px) + var(--case-spine-offset));
  left: calc(var(--frame-offset, 0px) + clamp(8px, 2vw, 24px));
  width: auto;
  height: auto;
  min-height: 0;
}

.case-spine.case-spine--pinned .case-spine-rail {
  margin-left: 0;
}

@media (max-width: 1400px) {
  .case-spine-rail {
    margin-left: clamp(8px, 2vw, 16px);
    width: 76px;
  }
}

@media (max-width: 1200px) {
  .case-spine {
    display: none;
  }
}

/* Work Card Overlays */
.work-card {
  position: relative;
}

.work-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: clamp(1.5rem, 1.05rem + 1vw, 2.25rem);
  background: linear-gradient(180deg, rgba(12, 12, 14, 0) 0%, rgba(12, 12, 14, 0.5) 60%, rgba(12, 12, 14, 0.85) 100%);
  color: #ffffff;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.work-card:is(:hover, :focus-visible) .work-card-overlay {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .work-card-overlay {
    transition: none;
    transform: none;
  }
}

@media (hover: none) {
  .work-card-overlay {
    opacity: 1;
    transform: none;
  }
}

.work-card-overlay h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

.work-card-overlay .work-role {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.work-card-overlay .work-metric {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffd700;
}

.work-card-overlay .work-hook {
  margin: 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

/* Philosophy items enhancement */
.philosophy-item h3 {
  font-size: clamp(1.15rem, 0.95rem + 0.4vw, 1.35rem);
  font-weight: 650;
  margin: 0;
  color: #202025;
  letter-spacing: -0.02em;
  text-align: left;
  line-height: 1.3;
}

.philosophy-item span {
  font-size: 0.95rem;
  opacity: 0.8;
  line-height: 1.7;
  color: rgba(32, 32, 37, 0.78);
  display: block;
  align-self: stretch;
  margin-top: 0;
}

/* Testimonials footer */
.testimonials-footer {
  text-align: center;
  margin-top: 64px;
  padding: 48px 32px;
  background: linear-gradient(135deg, rgba(255, 196, 64, 0.08) 0%, rgba(255, 196, 64, 0.12) 100%);
  border-radius: 24px;
  border: 1px solid rgba(255, 196, 64, 0.15);
}

.testimonials-footer-text {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-charcoal);
  margin: 0 0 24px 0;
  font-family: var(--font-heading);
}

.testimonials-cta {
  display: inline-block;
  padding: 14px 32px;
  background: var(--color-charcoal);
  color: var(--color-white);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.testimonials-cta:hover {
  background: rgba(27, 27, 31, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Side project why notes */
.note-why {
  display: block;
  margin-top: 0.75rem;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.03);
  border-left: 3px solid rgba(0, 0, 0, 0.1);
  font-size: 0.875rem;
  font-style: italic;
  opacity: 0.8;
}

/* Chatbot Prompts Section - Snipe Design */
.chatbot-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.chatbot-header {
  text-align: left;
  margin-bottom: 4rem;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Snipe Badge */
.snipe-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-charcoal);
  color: white;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.badge-icon {
  font-size: 1.125rem;
  line-height: 1;
}

.badge-text {
  line-height: 1;
}

/* Main Title */
.chatbot-main-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  line-height: 1.1;
  color: #1b1b1f;
  letter-spacing: -0.02em;
}

.chatbot-subtitle {
  font-size: 1.25rem;
  color: #5a5a64;
  margin: 0;
  line-height: 1.6;
}

/* Prompts Grid */
.chatbot-prompts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

/* Snipe Prompt Card */
.snipe-prompt-card {
  position: relative;
  padding: 2.5rem 2rem;
  background: #fff9f0;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  animation: fadeIn 0.6s ease-out backwards;
}

.snipe-prompt-card:nth-child(1) {
  animation-delay: 0.1s;
}

.snipe-prompt-card:nth-child(2) {
  animation-delay: 0.2s;
}

.snipe-prompt-card:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card Inner Content */
.prompt-card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.prompt-emoji {
  font-size: 2.5rem;
  line-height: 1;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.prompt-question {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  color: #1b1b1f;
  transition: transform 0.3s ease;
}

/* Shine Effect */
.prompt-card-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent 30%,
      rgba(255, 255, 255, 0.3) 50%,
      transparent 70%);
  transform: translateX(-100%) translateY(-100%) rotate(45deg);
  transition: transform 0.6s ease;
}

/* Hover Effects */
.snipe-prompt-card:hover {
  background: #fff5e6;
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.04);
}

.snipe-prompt-card:hover .prompt-card-shine {
  transform: translateX(100%) translateY(100%) rotate(45deg);
}

.snipe-prompt-card:hover .prompt-emoji {
  transform: scale(1.15) rotate(-5deg);
}

.snipe-prompt-card:hover .prompt-question {
  transform: translateX(4px);
}

/* Active State */
.snipe-prompt-card:active {
  transform: translateY(-4px) scale(0.98);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.06),
    0 4px 8px rgba(0, 0, 0, 0.03);
}

/* Focus Visible for Accessibility */
.snipe-prompt-card:focus-visible {
  outline: 3px solid var(--color-charcoal);
  outline-offset: 4px;
}

/* Individual Card Colors */
.snipe-prompt-card[data-prompt="plg"]:hover {
  background: linear-gradient(135deg, #fff9e6 0%, #fff5db 100%);
}

.snipe-prompt-card[data-prompt="pms"]:hover {
  background: linear-gradient(135deg, #fff0e6 0%, #ffe8db 100%);
}

.snipe-prompt-card[data-prompt="90days"]:hover {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .chatbot-main-title {
    font-size: 2.75rem;
  }

  .chatbot-prompts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .chatbot-container {
    padding: 3rem 1.25rem;
  }

  .chatbot-main-title {
    font-size: 2.25rem;
  }

  .chatbot-subtitle {
    font-size: 1.125rem;
  }

  .chatbot-prompts-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }

  .snipe-prompt-card {
    padding: 2rem 1.5rem;
  }

  .prompt-emoji {
    font-size: 2rem;
  }

  .prompt-question {
    font-size: 1.125rem;
  }
}

@media (max-width: 1024px) {
  .bite-page-layout {
    padding-left: 0;
  }

  .bite-page-content {
    max-width: 100%;
  }

  .bite-table-of-contents {
    position: static;
    width: 100%;
    margin-bottom: 24px;
  }

  .filter-dropdown-panel {
    width: calc(100vw - 48px);
  }
}

@media (max-width: 480px) {
  .chatbot-main-title {
    font-size: 1.875rem;
  }

  .chatbot-subtitle {
    font-size: 1rem;
  }

  .snipe-prompt-card {
    padding: 1.75rem 1.25rem;
  }

  .prompt-emoji {
    font-size: 1.75rem;
  }

  .prompt-question {
    font-size: 1rem;
  }
}

/* Main CTA Section */
.cta-section {
  background: var(--color-cream);
  padding: clamp(4rem, 8vw, 5rem) 0 clamp(3rem, 6vw, 4rem);
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}

.cta-section::before {
  display: none;
}

.cta-section::after {
  display: none;
}

.cta-container {
  max-width: min(1200px, 96vw);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: clamp(2.5rem, 6vw, 3.5rem);
  border-radius: clamp(20px, 4vw, 24px);
  background: #0f0f11;
  border: none;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.1);
}

.cta-container::before {
  display: none;
}

.cta-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.cta-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.6;
  max-width: min(600px, 90%);
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.btn-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem clamp(1.75rem, 2.4vw, 2.6rem);
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.2s ease, border-color 0.25s ease;
  box-shadow: 0 12px 30px rgba(15, 15, 17, 0.35);
  width: auto;
  min-width: fit-content;
}

.btn-cta,
.btn-cta:hover,
.btn-cta:focus,
.btn-cta:active,
.btn-cta:visited {
  text-decoration: none !important;
}

.btn-cta::after {
  content: '';
  position: absolute;
  inset: 10%;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 65%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

/* SBHM - CTA Primary Button (Email me) */
.btn-cta-primary {
  background: #ffffff;
  color: #0f0f11 !important;
  border: none;
  background-clip: padding-box;
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(240, 240, 240, 0.3) inset,
    0 8px 24px rgba(0, 0, 0, 0.18);
}

/* SBHM - CTA Secondary Button (Download resume) */
.btn-cta-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  border: none;
  background-clip: padding-box;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 8px 24px rgba(0, 0, 0, 0.22);
}

.btn-cta-secondary,
.btn-cta-secondary:hover,
.btn-cta-secondary:focus,
.btn-cta-secondary:active,
.btn-cta-secondary:visited {
  color: #ffffff !important;
}

.btn-cta:hover,
.btn-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.2),
    0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-cta:hover::after,
.btn-cta:focus-visible::after {
  opacity: 0.8;
}

.btn-cta-primary:hover,
.btn-cta-primary:focus-visible {
  background: #fafafa;
  color: #0f0f11 !important;
  box-shadow:
    0 1px 4px 0 rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(240, 240, 240, 0.4) inset,
    0 12px 32px rgba(0, 0, 0, 0.24);
  transform: translateY(-2px);
}

.btn-cta-primary:focus {
  outline: none;
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(240, 240, 240, 0.3) inset,
    0 8px 24px rgba(0, 0, 0, 0.18),
    0 0 0 3px rgba(255, 255, 255, 0.4);
}

.btn-cta-secondary:hover,
.btn-cta-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff !important;
  box-shadow:
    0 1px 4px 0 rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.28) inset,
    0 12px 36px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.btn-cta-secondary:focus {
  outline: none;
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 8px 24px rgba(0, 0, 0, 0.22),
    0 0 0 3px rgba(255, 255, 255, 0.25);
}

.btn-cta:active {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .cta-section {
    padding: 3rem 1.5rem 2.5rem;
  }

  .cta-container {
    padding: 2rem 1.5rem;
  }

  .cta-title {
    margin-bottom: 0.875rem;
  }

  .cta-subtitle {
    margin-bottom: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 0.875rem;
  }

  .btn-cta {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    padding: 1rem 2rem;
  }
}

/* Highlight styling - 25% darker than typical light yellow */
.sticky-header h2 mark {
  background: #C9A952;
  color: #1D1D1F;
  padding: 4px 10px;
  border-radius: 6px;
  font-style: normal;
}

mark {
  background-color: #C9A952;
  color: #1D1D1F;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Case study image lightbox */
.case-image-lightbox-trigger {
  cursor: zoom-in;
}

.case-image-lightbox-trigger:focus-visible {
  outline: 2px solid rgba(201, 169, 82, 0.9);
  outline-offset: 4px;
}

body.case-image-lightbox-open {
  overflow: hidden;
  touch-action: none;
}

.case-image-lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(5, 7, 15, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 9999;
}

.case-image-lightbox--active {
  opacity: 1;
  pointer-events: auto;
}

.case-image-lightbox__content {
  margin: 0;
  width: min(1200px, 92vw);
  max-height: calc(100vh - 4rem);
  padding: clamp(1rem, 2vw, 1.75rem);
  border-radius: clamp(18px, 2vw, 24px);
  background: #ffffff;
  box-shadow:
    0 40px 120px rgba(5, 7, 15, 0.25),
    0 16px 40px rgba(5, 7, 15, 0.18);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.case-image-lightbox__img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 10rem);
  object-fit: contain;
  border-radius: clamp(12px, 1.5vw, 18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.case-image-lightbox__caption {
  font-size: 0.95rem;
  color: #0f0f11;
  text-align: center;
}

.case-image-lightbox__close {
  position: absolute;
  top: clamp(0.5rem, 1.5vw, 0.85rem);
  right: clamp(0.5rem, 1.5vw, 0.85rem);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 15, 17, 0.75);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.case-image-lightbox__close svg {
  width: 24px;
  height: 24px;
}

.case-image-lightbox__close:hover,
.case-image-lightbox__close:focus-visible {
  transform: scale(1.05);
  background: rgba(15, 15, 17, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  outline: none;
}

@media (max-width: 640px) {
  .case-image-lightbox {
    padding: 1rem;
  }

  .case-image-lightbox__content {
    width: 100%;
    max-height: calc(100vh - 2rem);
    padding: 1rem;
  }

  .case-image-lightbox__img {
    max-height: calc(100vh - 6rem);
  }

  .case-image-lightbox__caption {
    font-size: 0.85rem;
  }
}

/* Custom Tooltip for Work Case Studies */
.work-case-studies-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.work-case-studies-img {
  max-width: 25%;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: transform 0.2s ease;
}

.work-case-studies-wrapper:hover .work-case-studies-img {
  transform: scale(1.05);
}

.custom-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 1000;
}

.work-case-studies-wrapper:hover .custom-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}

.tooltip-text {
  display: block;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.tooltip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
}

@media (max-width: 768px) {
  .tooltip-text {
    font-size: 0.75rem;
    padding: 8px 12px;
    white-space: normal;
    max-width: 200px;
  }

  .work-case-studies-img {
    max-width: 40%;
  }
}

/* =============================================================
   UX Bites Page Styles
   ============================================================= */

body.ux-bites-page,
body.bite-detail-page {
  background: linear-gradient(135deg, #fff9e9 0%, #fffaf1 30%, #fffdf8 100%);
  position: relative;
}

body.ux-bites-page::before,
body.bite-detail-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 244, 214, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 235, 205, 0.3) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body.ux-bites-page>*,
body.bite-detail-page>* {
  position: relative;
  z-index: 1;
}

.ux-bites-hero {
  padding-top: clamp(120px, 12vh, 200px);
  padding-bottom: clamp(40px, 8vh, 80px);
}

.ux-bites-hero-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(40px, 5vw, 64px);
  border-radius: 40px;
  background: linear-gradient(135deg,
      rgba(255, 250, 240, 0.95) 0%,
      rgba(255, 248, 230, 0.9) 50%,
      rgba(255, 252, 245, 0.95) 100%);
  border: 2px solid rgba(255, 195, 36, 0.25);
  box-shadow:
    0 40px 100px rgba(255, 193, 7, 0.15),
    0 20px 50px rgba(255, 193, 7, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.ux-bites-hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 235, 59, 0.1) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

.ux-bites-hero-copy h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  margin-top: 0;
  margin-bottom: 1.25rem;
  line-height: 1.2;
  background: linear-gradient(135deg, #1b1b1f 0%, #3a3a44 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.ux-bites-hero-copy p {
  margin-top: 0;
  color: var(--color-muted);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.7;
}

.ux-bites-hero-list {
  padding-left: 1.25rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-top: 1.5rem;
}

.ux-bites-hero-list li {
  margin-bottom: 0.75rem;
  position: relative;
}

.ux-bites-hero-list li::marker {
  color: rgba(255, 195, 36, 0.6);
}

.ux-bites-hero-list em,
.ux-bites-hero-list strong {
  font-style: normal;
  font-weight: 600;
  color: var(--color-charcoal);
}

.ux-bites-hero-visual {
  display: grid;
  gap: 20px;
  align-content: start;
}

.ux-bites-seed {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 252, 245, 0.9) 100%);
  border: 2px solid rgba(255, 195, 36, 0.2);
  box-shadow:
    0 12px 40px rgba(255, 196, 0, 0.12),
    0 4px 12px rgba(255, 196, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  min-height: 120px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ux-bites-seed::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
      rgba(255, 195, 36, 0.6) 0%,
      rgba(255, 235, 59, 0.4) 50%,
      rgba(255, 195, 36, 0.6) 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.ux-bites-seed:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 195, 36, 0.4);
  box-shadow:
    0 16px 50px rgba(255, 196, 0, 0.18),
    0 6px 16px rgba(255, 196, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ux-bites-seed:hover::before {
  transform: translateX(100%);
}

.ux-bites-seed span {
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--color-charcoal);
}

.ux-bites-seed p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.ux-bites-filter-panel {
  padding-top: clamp(48px, 9vh, 72px);
  padding-bottom: clamp(32px, 6vh, 60px);
}

.ux-filter-intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 40px;
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 250, 240, 0.85) 100%);
  border: 1.5px solid rgba(255, 195, 36, 0.2);
  box-shadow:
    0 20px 60px rgba(255, 193, 7, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ux-filter-intro h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

.ux-filter-intro p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.7;
  max-width: 600px;
}

.ux-filter-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  min-width: 200px;
}

.ux-active-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(27, 27, 31, 0.6);
  margin: 0;
  font-weight: 600;
}

.ux-active-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 36px;
}

.filter-summary-empty {
  font-size: 0.9rem;
  color: var(--color-muted);
  font-style: italic;
}


.active-filter-chip {
  border: none;
  background: linear-gradient(120deg, rgba(255, 215, 234, 0.9), rgba(255, 234, 205, 0.9));
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 10px 22px rgba(255, 148, 197, 0.3);
  color: var(--color-charcoal);
}

.active-filter-chip::after {
  content: '✕';
  font-size: 0.9rem;
  opacity: 0.75;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.active-filter-chip:hover,
.active-filter-chip:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(255, 148, 197, 0.4);
  outline: none;
}

.active-filter-chip:hover::after {
  opacity: 1;
}

.ux-filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.filter-dropdown {
  position: relative;
  z-index: 40;
}

.filter-trigger {
  border: 1px solid rgba(27, 27, 31, 0.12);
  border-radius: 999px;
  background: #fff;
  padding: 10px 18px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.filter-trigger .summary-caret {
  font-size: 0.85rem;
}

.filter-dropdown.is-open .filter-trigger,
.filter-trigger:hover,
.filter-trigger:focus-visible {
  border-color: rgba(255, 159, 128, 0.5);
  box-shadow: 0 12px 24px rgba(255, 159, 128, 0.2);
  transform: translateY(-1px);
  outline: none;
}

.filter-dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 260px;
  width: max-content;
  padding: 18px 20px 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(27, 27, 31, 0.12);
  box-shadow: 0 30px 60px rgba(27, 27, 31, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}

.filter-dropdown.is-open .filter-dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.filter-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 600;
}

.filter-inline-reset {
  border: none;
  background: none;
  color: rgba(27, 27, 31, 0.55);
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.18s ease;
}

.filter-inline-reset:hover,
.filter-inline-reset:focus-visible {
  color: var(--color-charcoal);
  text-decoration: underline;
  outline: none;
}

.filter-search-wrapper {
  margin-bottom: 12px;
}

.filter-search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(27, 27, 31, 0.12);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fafafa;
  transition: all 0.2s ease;
}

.filter-search-input:focus {
  outline: none;
  border-color: rgba(255, 159, 128, 0.5);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 159, 128, 0.1);
}

.filter-search-input::placeholder {
  color: rgba(27, 27, 31, 0.4);
}

.filter-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
}

.filter-checkbox-list::-webkit-scrollbar {
  width: 6px;
}

.filter-checkbox-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.filter-checkbox-list::-webkit-scrollbar-thumb {
  background: rgba(255, 159, 128, 0.3);
  border-radius: 3px;
}

.filter-checkbox-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 159, 128, 0.5);
}

.filter-checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s ease;
  user-select: none;
}

.filter-checkbox-item:hover {
  background: rgba(255, 159, 128, 0.08);
}

.filter-checkbox-input {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(27, 27, 31, 0.25);
  border-radius: 4px;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  position: relative;
  transition: all 0.2s ease;
}

.filter-checkbox-input:checked {
  background: linear-gradient(135deg, #ff9f80 0%, #ffb399 100%);
  border-color: #ff9f80;
}

.filter-checkbox-input:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.filter-checkbox-input:hover {
  border-color: rgba(255, 159, 128, 0.5);
}

.filter-checkbox-input:focus-visible {
  outline: 2px solid rgba(255, 159, 128, 0.5);
  outline-offset: 2px;
}

.filter-checkbox-label {
  flex: 1;
  font-size: 0.9rem;
  color: rgba(27, 27, 31, 0.9);
  font-weight: 500;
}

.filter-checkbox-count {
  font-size: 0.85rem;
  color: rgba(27, 27, 31, 0.5);
  font-weight: 400;
}

.ux-filter-label {
  margin: 0 0 16px;
  font-weight: 700;
  color: var(--color-charcoal);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.ux-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ux-filter-chip {
  border: 1px solid rgba(27, 27, 31, 0.08);
  border-radius: 999px;
  padding: 9px 18px;
  background: rgba(27, 27, 31, 0.04);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  color: var(--color-text);
  box-shadow: inset 0 -2px 0 rgba(27, 27, 31, 0.05);
}

.ux-filter-chip.is-active,
.ux-filter-chip:hover,
.ux-filter-chip:focus-visible {
  border-color: transparent;
  color: var(--color-charcoal);
  background: linear-gradient(120deg, #ffdceb, #ffe8c9);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(255, 180, 207, 0.35);
  outline: none;
}

.ux-bites-collection {
  padding-top: clamp(32px, 6vh, 60px);
  padding-bottom: clamp(48px, 9vh, 72px);
}

.ux-bites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 3.5vw, 36px);
}

.ux-bite-card {
  border-radius: 28px;
  padding: 28px;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 252, 245, 0.95) 100%);
  border: 2px solid rgba(255, 195, 36, 0.15);
  box-shadow:
    0 20px 60px rgba(27, 27, 31, 0.08),
    0 8px 24px rgba(255, 193, 7, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.ux-bite-card {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
      rgba(255, 195, 36, 0.6) 0%,
      rgba(255, 235, 59, 0.4) 50%,
      rgba(255, 195, 36, 0.6) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ux-bite-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ux-bite-media {
  margin: 4px 0 12px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(27, 27, 31, 0.08);
  background: rgba(27, 27, 31, 0.03);
}

.ux-bite-media img {
  width: 100%;
  height: auto;
  display: block;
}

.ux-bite-media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: rgba(27, 27, 31, 0.45);
  padding: 48px 0;
}

.ux-bite-pattern {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 195, 36, 0.8);
  margin: 0;
  font-weight: 700;
  background: linear-gradient(135deg,
      rgba(255, 244, 214, 0.6) 0%,
      rgba(255, 235, 205, 0.4) 100%);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 195, 36, 0.2);
}

.ux-bite-spotlight {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg,
      rgba(255, 193, 7, 0.2) 0%,
      rgba(255, 235, 59, 0.15) 100%);
  color: #8f5a32;
  font-weight: 600;
  border: 1px solid rgba(255, 193, 7, 0.3);
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.1);
}

.ux-bite-card h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin: 0;
  line-height: 1.3;
  color: var(--color-charcoal);
  letter-spacing: -0.01em;
}

.ux-bite-hook {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.ux-bite-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.ux-bite-meta span {
  background: linear-gradient(135deg,
      rgba(27, 27, 31, 0.06) 0%,
      rgba(27, 27, 31, 0.04) 100%);
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid rgba(27, 27, 31, 0.1);
  font-weight: 500;
}

.ux-bite-keyterms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.key-term-chip,
.connection-chip {
  border-radius: 999px;
  border: 1px solid rgba(27, 27, 31, 0.08);
  background: rgba(27, 27, 31, 0.03);
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  color: var(--color-charcoal);
}

.key-term-chip:hover,
.key-term-chip:focus-visible,
.connection-chip:hover,
.connection-chip:focus-visible,
.connection-chip:visited,
.connection-chip:active {
  background: linear-gradient(120deg, #ffd7eb, #ffe8c9);
  border-color: transparent;
  color: var(--color-charcoal);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(255, 180, 207, 0.3);
  outline: none;
}

.connection-chip+.connection-chip {
  margin-left: 0;
}

.ux-bite-open {
  border-radius: 999px;
  border: none;
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: none;
  align-self: flex-start;
  background: var(--color-charcoal);
  color: var(--color-white);
  box-shadow: 0 16px 30px rgba(27, 27, 31, 0.25);
}

.ux-bite-open:hover,
.ux-bite-open:focus-visible {
  background: var(--color-charcoal);
  color: var(--color-white);
  transform: none;
  box-shadow: 0 16px 30px rgba(27, 27, 31, 0.25);
  outline: none;
}


.ux-bites-empty {
  margin-top: 32px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
  border: 1px dashed rgba(27, 27, 31, 0.25);
}

.ux-bite-detail {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  overflow: hidden;
}

.ux-bite-detail.is-visible {
  display: block;
}

.ux-bite-detail-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
  z-index: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.ux-bite-detail-panel {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 252, 245, 0.95) 100%);
  z-index: 2;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ux-bite-detail.is-visible .ux-bite-detail-panel {
  transform: translateY(0);
}

/* Beautiful Topbar Navigation */
.ux-bite-topbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 252, 245, 0.95) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 2px solid rgba(255, 195, 36, 0.15);
  z-index: 100;
  padding: 1rem clamp(24px, 4vw, 48px);
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  box-shadow:
    0 4px 24px rgba(255, 193, 7, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

.ux-bite-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  white-space: nowrap;
}

.ux-bite-breadcrumb a {
  color: rgba(255, 195, 36, 0.9);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  padding: 4px 8px;
  border-radius: 6px;
}

.ux-bite-breadcrumb a:hover {
  color: rgba(255, 195, 36, 1);
  background: rgba(255, 195, 36, 0.1);
}

.ux-bite-breadcrumb span:not(a) {
  color: var(--color-muted);
  opacity: 0.5;
}

.ux-bite-topbar-nav {
  flex: 1;
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 1rem;
}

.ux-bite-topbar-nav::-webkit-scrollbar {
  display: none;
}

.ux-bite-topbar-link {
  position: relative;
  padding: 0.75rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
  letter-spacing: -0.01em;
}

.ux-bite-topbar-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
      rgba(255, 195, 36, 0.8) 0%,
      rgba(255, 235, 59, 0.6) 100%);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ux-bite-topbar-link:hover {
  color: var(--color-charcoal);
}

.ux-bite-topbar-link.is-active {
  color: var(--color-charcoal);
  font-weight: 700;
}

.ux-bite-topbar-link.is-active::after {
  transform: scaleX(1);
}

.ux-bite-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

.ux-bite-topbar-btn {
  padding: 0.625rem 1.25rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 195, 36, 0.25);
  background: linear-gradient(135deg,
      rgba(255, 244, 214, 0.6) 0%,
      rgba(255, 235, 205, 0.4) 100%);
  color: var(--color-charcoal);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(255, 195, 36, 0.15);
  font-family: var(--font-body);
}

.ux-bite-topbar-btn:hover,
.ux-bite-topbar-btn:focus-visible {
  background: linear-gradient(135deg,
      rgba(255, 195, 36, 0.3) 0%,
      rgba(255, 193, 7, 0.25) 100%);
  border-color: rgba(255, 195, 36, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 195, 36, 0.25);
  outline: none;
}

.ux-bite-detail-close {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
}

/* Content Area */
.ux-bite-content {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 48px);
}

.ux-bite-header {
  margin-bottom: clamp(48px, 8vh, 80px);
  padding-bottom: clamp(32px, 5vw, 48px);
  border-bottom: 2px solid rgba(255, 195, 36, 0.15);
}

.ux-bite-header-pattern {
  display: inline-block;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 195, 36, 0.9);
  margin-bottom: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg,
      rgba(255, 244, 214, 0.6) 0%,
      rgba(255, 235, 205, 0.4) 100%);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 195, 36, 0.25);
}

.ux-bite-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin: 0.5rem 0 1rem;
  color: var(--color-charcoal);
  letter-spacing: -0.02em;
}

.ux-bite-header-hook {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0 0 1.5rem;
  font-style: italic;
}

.ux-bite-header-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ux-bite-header-tag {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg,
      rgba(255, 244, 214, 0.7) 0%,
      rgba(255, 235, 205, 0.5) 100%);
  border: 1px solid rgba(255, 195, 36, 0.25);
  font-weight: 600;
  color: var(--color-charcoal);
  box-shadow: 0 2px 8px rgba(255, 195, 36, 0.1);
}

/* Sections */
.ux-bite-section {
  margin-bottom: clamp(48px, 8vh, 80px);
  scroll-margin-top: 100px;
}

.ux-bite-section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 clamp(24px, 4vw, 40px);
  color: var(--color-charcoal);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(255, 195, 36, 0.15);
}

.ux-bite-section-icon {
  font-size: 1.5rem;
  filter: grayscale(0.3);
}

.ux-bite-section-content {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.8;
  color: var(--color-text);
}

.ux-bite-section-content h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  margin: 2rem 0 1rem;
  color: var(--color-charcoal);
  font-weight: 600;
}

.ux-bite-section-content p {
  margin-bottom: 1.25rem;
}

.ux-bite-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.ux-bite-highlight-card {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 252, 245, 0.9) 100%);
  border-radius: 20px;
  padding: 1.75rem;
  border: 2px solid rgba(255, 195, 36, 0.15);
  box-shadow:
    0 8px 24px rgba(27, 27, 31, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ux-bite-highlight-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 32px rgba(27, 27, 31, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 195, 36, 0.25);
}

.ux-bite-highlight-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 195, 36, 0.9);
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.ux-bite-highlight-card h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
  color: var(--color-charcoal);
  font-weight: 600;
  line-height: 1.4;
}

.ux-bite-highlight-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
}

.ux-bite-highlight-card p strong {
  color: var(--color-charcoal);
  font-weight: 600;
}

.ux-bite-diagram {
  margin: 2rem 0;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 252, 245, 0.9) 100%);
  border-radius: 24px;
  padding: 2rem;
  border: 2px solid rgba(255, 195, 36, 0.2);
  box-shadow:
    0 8px 24px rgba(255, 193, 7, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ux-bite-diagram-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin: 0 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(255, 195, 36, 0.15);
}

.ux-bite-diagram-flow {
  display: grid;
  gap: 1.25rem;
}

.ux-bite-diagram-step {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 1.25rem;
  padding: 1.25rem;
  background: linear-gradient(135deg,
      rgba(255, 248, 225, 0.8) 0%,
      rgba(255, 244, 214, 0.6) 100%);
  border-radius: 18px;
  border: 2px dashed rgba(255, 195, 36, 0.3);
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.ux-bite-diagram-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg,
      rgba(255, 195, 36, 0.6) 0%,
      rgba(255, 235, 59, 0.4) 100%);
  border-radius: 18px 0 0 18px;
}

.ux-bite-diagram-step:hover {
  transform: translateX(4px);
  border-color: rgba(255, 195, 36, 0.5);
}

.ux-bite-diagram-step-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(255, 195, 36, 0.9);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.25rem;
}

.ux-bite-diagram-step-label {
  font-weight: 600;
  color: var(--color-charcoal);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.ux-bite-diagram-step-detail {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

/* Responsive adjustments for full-page layout */
@media (max-width: 768px) {
  .ux-bite-topbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .ux-bite-topbar-nav {
    width: 100%;
    padding: 0;
    gap: 0.75rem;
  }

  .ux-bite-topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .ux-bite-content {
    padding: 24px;
  }

  .ux-bite-section-title {
    font-size: 1.5rem;
  }

  .ux-bite-highlight-grid {
    grid-template-columns: 1fr;
  }
}

.ux-bite-detail-meta {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid rgba(255, 195, 36, 0.15);
}

.ux-bite-detail-meta h2 {
  margin: 0.5rem 0 0.75rem;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-charcoal);
}

.ux-bite-detail-meta p {
  margin: 0;
  line-height: 1.6;
}

.detail-hook {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin-top: 12px !important;
  font-style: italic;
  line-height: 1.6;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.detail-tags span {
  font-size: 0.875rem;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg,
      rgba(255, 244, 214, 0.7) 0%,
      rgba(255, 235, 205, 0.5) 100%);
  border: 1px solid rgba(255, 195, 36, 0.25);
  font-weight: 600;
  color: var(--color-charcoal);
  box-shadow: 0 2px 8px rgba(255, 195, 36, 0.1);
}

.ux-bite-detail-body {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.ux-bite-detail-body article {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 252, 245, 0.8) 100%);
  border-radius: 20px;
  padding: 24px;
  border: 2px solid rgba(255, 195, 36, 0.12);
  box-shadow:
    0 8px 24px rgba(27, 27, 31, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ux-bite-detail-body article:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 32px rgba(27, 27, 31, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ux-bite-detail-body h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 195, 36, 0.8);
  font-weight: 700;
}

.detail-list,
.detail-observations {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.5;
  font-size: 0.95rem;
}

.bhava-diagram {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 252, 245, 0.9) 100%);
  border-radius: 24px;
  padding: 24px;
  border: 2px solid rgba(255, 195, 36, 0.2);
  min-height: 200px;
  box-shadow:
    0 8px 24px rgba(255, 193, 7, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.diagram-title {
  margin: 0 0 1rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-charcoal);
  font-family: var(--font-heading);
}

.diagram-track {
  display: grid;
  gap: 12px;
}

.diagram-node {
  border-radius: 18px;
  border: 2px dashed rgba(255, 195, 36, 0.3);
  padding: 16px 18px;
  background: linear-gradient(135deg,
      rgba(255, 248, 225, 0.8) 0%,
      rgba(255, 244, 214, 0.6) 100%);
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.diagram-node::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg,
      rgba(255, 195, 36, 0.6) 0%,
      rgba(255, 235, 59, 0.4) 100%);
  border-radius: 18px 0 0 18px;
}

.diagram-node:hover {
  transform: translateX(4px);
  border-color: rgba(255, 195, 36, 0.5);
}

.diagram-node strong {
  font-size: 0.875rem;
  color: rgba(255, 195, 36, 0.9);
  font-weight: 700;
}

.diagram-node p {
  margin: 6px 0;
  font-weight: 600;
  color: var(--color-charcoal);
  font-size: 0.95rem;
}

.diagram-node span {
  display: block;
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.diagram-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  font-style: italic;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255, 195, 36, 0.2);
}

.detail-connections {
  grid-column: 1 / -1;
}

.detail-connections.hidden {
  display: none;
}

.detail-connections h3 {
  margin-bottom: 0.5rem;
}

#detail-connections {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.detail-card {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 252, 245, 0.9) 100%);
  border: 2px solid rgba(255, 195, 36, 0.15);
  box-shadow:
    0 4px 16px rgba(27, 27, 31, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.detail-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 195, 36, 0.8);
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.detail-lessons table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.detail-lessons thead {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: rgba(27, 27, 31, 0.6);
}

.detail-lessons th,
.detail-lessons td {
  text-align: left;
  padding: 6px 4px;
  border-bottom: 1px solid rgba(27, 27, 31, 0.08);
}

.detail-lessons tr:last-child td {
  border-bottom: none;
}

.detail-examples {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.detail-examples li {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(27, 27, 31, 0.15);
  font-size: 0.95rem;
}

.detail-examples li:last-child {
  border-bottom: none;
}

.detail-principle {
  margin: 0;
  font-size: 0.95rem;
}

.detail-notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.bite-detail-main {
  padding: clamp(60px, 6vw, 90px) 0;
}

.bite-breadcrumb {
  background: transparent;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.bite-breadcrumb nav {
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
  align-items: center;
  padding: 12px 0;
}

.bite-breadcrumb a {
  color: var(--color-muted);
}

.bite-page-layout {
  position: relative;
  width: 100%;
  max-width: none;
  padding-left: clamp(320px, 28vw, 420px);
  padding-right: clamp(18px, 4vw, 56px);
  margin: 0;
}

.bite-page-content {
  max-width: clamp(640px, 65vw, 960px);
  width: 100%;
}

.bite-page-content .container {
  max-width: 100%;
  padding: 0;
}

.bite-table-of-contents {
  position: fixed;
  top: clamp(80px, 10vw, 140px);
  left: clamp(18px, 6vw, 120px);
  width: clamp(210px, 18vw, 260px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(27, 27, 31, 0.12);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(27, 27, 31, 0.08);
  z-index: 20;
}

.bite-table-of-contents h4 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(27, 27, 31, 0.6);
}

.bite-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bite-toc-list a {
  text-decoration: none;
  color: rgba(27, 27, 31, 0.65);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 8px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.bite-toc-list a:hover,
.bite-toc-list a:focus-visible,
.bite-toc-list a.is-active {
  background: rgba(27, 27, 31, 0.06);
  color: var(--color-charcoal);
  outline: none;
}

.bite-hero-card {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin-bottom: clamp(28px, 4vw, 48px);
  width: 100%;
}

.bite-hero-summary {
  flex: 1 1 520px;
  min-width: 0;
}

.bite-hero-card .hero-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.bite-hero-visual {
  margin-top: clamp(16px, 3vw, 32px);
}

.bite-hero-visual img,
.bite-hero-placeholder {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(27, 27, 31, 0.08);
}

.bite-hero-placeholder {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(27, 27, 31, 0.35);
  background: rgba(27, 27, 31, 0.02);
}

.bite-pattern {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(27, 27, 31, 0.6);
}

.bite-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.bite-meta-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(27, 27, 31, 0.07);
  font-size: 0.85rem;
  font-weight: 600;
}

.bite-spotlight {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(255, 193, 7, 0.15);
  color: #8f5a32;
  font-weight: 600;
}


.bite-section {
  margin-bottom: clamp(28px, 5vw, 56px);
  padding-bottom: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid rgba(27, 27, 31, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.bite-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.bite-section h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

.bite-two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.bite-list {
  list-style: disc;
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.6;
}

.bite-lessons-wrapper {
  overflow-x: auto;
}

.bite-lessons-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 520px;
}

.bite-lessons-table th,
.bite-lessons-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(27, 27, 31, 0.1);
}

.bite-lessons-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(27, 27, 31, 0.6);
}

.bite-diagram-track {
  display: grid;
  gap: 12px;
}

.bite-diagram-node {
  border: 1px solid rgba(27, 27, 31, 0.12);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 16px rgba(27, 27, 31, 0.08);
}

.bite-diagram-node strong {
  font-size: 0.85rem;
  color: rgba(27, 27, 31, 0.6);
}

.bite-diagram-note {
  margin-top: 12px;
  font-style: italic;
  color: rgba(27, 27, 31, 0.6);
}

.bite-connection-chip {
  border-radius: 6px;
  border: 1px solid rgba(255, 159, 128, 0.2);
  padding: 0.5rem 0.875rem;
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(45, 24, 16, 0.85);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
  font-family: inherit;
  box-shadow: 0 1px 3px rgba(255, 159, 128, 0.08);
  -webkit-user-select: none;
  user-select: none;
}

.bite-connection-chip:link,
.bite-connection-chip:visited,
.bite-connection-chip:hover,
.bite-connection-chip:active {
  text-decoration: none !important;
}

.bite-connection-chip:hover {
  background: rgba(255, 159, 128, 0.1);
  border-color: rgba(255, 159, 128, 0.35);
  color: rgba(45, 24, 16, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 159, 128, 0.15);
  text-decoration: none !important;
}

.bite-connection-chip:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(255, 159, 128, 0.1);
  text-decoration: none !important;
}

.bite-connection-chip:focus-visible {
  outline: 2px solid #ff9f80;
  outline-offset: 2px;
  background: rgba(255, 159, 128, 0.15);
  border-color: #ff9f80;
  color: #2d1810;
  text-decoration: none !important;
}

.bite-section-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.bite-section-grid article {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(27, 27, 31, 0.08);
}

.bite-section-grid h3 {
  margin-top: 0;
}

.bite-connections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bite-connection-category {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bite-connection-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(45, 24, 16, 0.7);
}

.bite-connection-icon {
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
}

.bite-connection-label-text {
  color: rgba(45, 24, 16, 0.8);
  letter-spacing: 0.01em;
}

.bite-connection-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bite-connection-chips a,
.bite-connection-chips button {
  flex: 0 1 auto;
  min-width: fit-content;
}

#copy-bite-link {
  border-radius: 999px;
}

.bite-related-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.bite-related-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  border-radius: 24px;
  padding: 18px;
  text-decoration: none !important;
  border: 1px solid rgba(27, 27, 31, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(27, 27, 31, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: inherit;
  cursor: pointer;
}

.bite-related-card * {
  text-decoration: none !important;
}

.bite-related-card:hover,
.bite-related-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(27, 27, 31, 0.12);
  outline: none;
  text-decoration: none !important;
}

.bite-related-card:hover *,
.bite-related-card:focus-visible * {
  text-decoration: none !important;
}

.bite-related-badge {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(27, 27, 31, 0.6);
}

.bite-related-card h4 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--color-charcoal);
  letter-spacing: -0.01em;
  text-decoration: none !important;
}

.bite-related-card p {
  margin: 0;
  color: rgba(27, 27, 31, 0.75);
  font-size: 0.9rem;
  line-height: 1.5;
  text-decoration: none !important;
}

.bite-related-card .bite-related-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(27, 27, 31, 0.6);
}

.bite-related-card .bite-related-meta span {
  background: rgba(27, 27, 31, 0.08);
  border-radius: 999px;
  padding: 4px 10px;
}

.bite-related-media {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  border: 1px solid rgba(27, 27, 31, 0.08);
  overflow: hidden;
  background: rgba(27, 27, 31, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: rgba(27, 27, 31, 0.35);
  text-transform: uppercase;
}

.bite-related-media span {
  font-size: 1.4rem;
}

.bite-related-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

  .ux-filter-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .bite-connections {
    gap: 1.25rem;
  }

  .bite-connection-category {
    gap: 0.625rem;
  }

  .bite-connection-label {
    font-size: 0.8125rem;
  }

  .bite-connection-chip {
    padding: 0.4375rem 0.75rem;
    font-size: 0.8125rem;
  }

  .filter-dropdown-panel {
    width: calc(100vw - 48px);
    max-width: none;
    left: 0;
  }
}

@media (max-width: 768px) {
  .ux-filter-intro {
    padding: 24px;
    gap: 24px;
  }

  .ux-filter-actions {
    align-items: flex-start;
    width: 100%;
  }

  .ux-bites-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ux-bite-card {
    padding: 24px;
  }
}

/* ============================================
   MOBILE IMPROVEMENTS - Touch & Tap Optimizations
   ============================================ */

/* Better touch feedback for all interactive elements */
@media (hover: none) and (pointer: coarse) {
  /* Touch device styles */

  /* Larger tap targets for mobile */
  .btn,
  .project-card-visit,
  .work-card,
  .article-card {
    min-height: 44px;
    /* Apple's recommended minimum */
    min-width: 44px;
  }

  /* Side project cards - larger tap area */
  .side-project-card {
    padding: 24px 20px;
    min-height: 200px;
  }

  .side-project-card .project-card-title {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  .side-project-card .project-card-description {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .side-project-card .project-card-visit {
    padding: 14px 24px;
    font-size: 1rem;
    margin-top: 16px;
  }

  /* Active touch state */
  .btn:active,
  .work-card:active,
  .side-project-card:active,
  .article-card:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
  }

  /* Testimonial cards - prevent text selection during swipe */
  .testimonials-track {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
  }

  .testimonial-card-mini {
    /* Ensure smooth transforms on mobile */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  /* Photo spread - reduce motion on mobile for performance */
  .photo-item {
    transition: all 0.8s cubic-bezier(0.34, 1.2, 0.64, 1);
  }

  /* Remove hover effects that don't work on touch */
  .side-project-card:hover,
  .work-card:hover,
  .philosophy-item:hover {
    transform: none;
  }
}

/* Mobile-specific improvements */
@media (max-width: 768px) {

  /* Testimonial carousel - better swipe area */
  .testimonials-carousel {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 50px;
  }

  .testimonial-card-mini {
    scroll-snap-align: center;
    /* Prevent card shrinking on touch */
    flex-shrink: 0;
  }

  /* Side projects grid - better spacing */
  .side-projects-grid {
    gap: 24px;
    padding: 0 4px;
    /* Small padding for touch area */
  }

  /* Larger buttons on mobile */
  .btn {
    padding: 14px 28px;
    font-size: 1rem;
  }

  .btn-cta {
    padding: 16px 32px;
    font-size: 1.05rem;
  }

  /* Work cards - easier to tap */
  .work-card {
    padding: 24px 20px;
    min-height: 180px;
  }

  /* Philosophy items - better tap targets */
  .philosophy-item {
    padding: 28px 24px;
    min-height: 160px;
  }

  /* Navigation - larger tap areas */
  .nav-menu a {
    padding: 14px 20px;
    font-size: 1.05rem;
  }

  .nav-toggle {
    width: 48px;
    height: 48px;
    padding: 12px;
  }
}

/* Small phone optimizations */
@media (max-width: 480px) {

  /* Even larger tap targets for small phones */
  .btn,
  .project-card-visit {
    padding: 16px 24px;
    font-size: 1rem;
  }

  /* Side project cards - full width tap area */
  .side-project-card {
    padding: 28px 20px;
  }

  /* Testimonials - single card focus */
  .testimonial-card-mini {
    flex: 0 0 260px;
  }

  /* Photo spread - simpler animations */
  .photo-item {
    width: 140px;
    height: 140px;
  }
}

/* Touch-specific visual feedback */
.is-touching .btn:active {
  background-color: var(--color-charcoal);
  transform: scale(0.96);
}

.is-touching .side-project-card:active {
  transform: scale(0.98);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Improve scrolling on iOS */
.testimonials-carousel,
.side-projects-grid,
.insights-articles-grid {
  -webkit-overflow-scrolling: touch;
}

/* Prevent pull-to-refresh on mobile for specific sections */
.testimonials-carousel,
.photo-stack-container {
  overscroll-behavior-y: contain;
}


/* ============================================
   LOADING STATES & ERROR HANDLING
   ============================================ */

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.spinner-ring {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(27, 27, 31, 0.1);
  border-top-color: var(--color-charcoal);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
}

.spinner-ring:nth-child(2) {
  width: 48px;
  height: 48px;
  border-top-color: var(--color-cocoa);
  animation-duration: 1.2s;
  animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
  width: 36px;
  height: 36px;
  border-top-color: var(--color-chrome-yellow);
  animation-duration: 0.8s;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  margin-top: 80px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

/* Skeleton Loading States */
.loading-skeleton {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading-skeleton::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.6) 50%,
      rgba(255, 255, 255, 0) 100%);
  animation: skeleton-loading 1.5s ease-in-out infinite;
  z-index: 1;
}

@keyframes skeleton-loading {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* Error Toast Notifications */
.error-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  max-width: 420px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(239, 68, 68, 0.3);
  padding: 20px 24px;
  z-index: 10000;
  animation: toast-enter 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.error-toast.error-toast-exit {
  animation: toast-exit 0.3s ease-out forwards;
}

@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-exit {
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
}

.error-toast-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.error-toast-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #ef4444;
}

.error-toast-message {
  flex: 1;
}

.error-toast-message strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: 4px;
}

.error-toast-message p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-muted);
  margin: 0;
}

.error-toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--color-muted);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.error-toast-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-charcoal);
}

/* Error Fallback UI */
.error-fallback {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.error-fallback-content {
  text-align: center;
  max-width: 480px;
}

.error-fallback-content svg {
  color: var(--color-muted);
  margin-bottom: 24px;
  opacity: 0.6;
}

.error-fallback-content h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: 12px;
}

.error-fallback-content p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-muted);
  margin-bottom: 28px;
}

/* Offline Notification */
.offline-notification,
.online-notification {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #78350f;
  padding: 12px 20px;
  z-index: 9998;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: slide-down 0.3s ease-out;
}

.online-notification {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: #064e3b;
}

.online-notification.online-notification-exit {
  animation: slide-up 0.3s ease-out forwards;
}

@keyframes slide-down {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes slide-up {
  to {
    transform: translateY(-100%);
    opacity: 0;
  }
}

.offline-content,
.online-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 500;
  font-size: 0.95rem;
}

.offline-content svg,
.online-content svg {
  flex-shrink: 0;
}

/* Mobile responsive toast */
@media (max-width: 768px) {
  .error-toast {
    top: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {

  .error-toast,
  .loading-overlay,
  .offline-notification,
  .online-notification {
    animation: none !important;
    transition: none !important;
  }

  .spinner-ring {
    animation-duration: 2s !important;
  }
}

/* ============================================
   TYPOGRAPHY IMPROVEMENTS
   ============================================ */

/* Better line-height for improved readability */
body {
  line-height: 1.8;
  /* Increased from 1.7 */
}

/* Paragraph-specific improvements */
p {
  line-height: 1.8;
  max-width: 75ch;
  /* Optimal reading width */
}

/* Long-form content (articles, case studies) */
.case-study-content p,
.article-content p,
.about-story p,
.timeline-body p {
  line-height: 1.85;
  margin-bottom: 1.4em;
  /* Better paragraph separation */
}

/* Small text still needs good readability */
.testimonial-text,
.case-description,
.meta,
small {
  line-height: 1.75;
}

/* Headings - tighter line-height for impact */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.3;
  letter-spacing: -0.01em;
  /* Tighter for large text */
}

h1 {
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Lists - better spacing */
ul,
ol {
  line-height: 1.8;
}

li {
  margin-bottom: 0.6em;
}

li:last-child {
  margin-bottom: 0;
}

/* Blockquotes */
blockquote {
  line-height: 1.8;
  font-style: italic;
  padding-left: 1.5em;
  border-left: 4px solid var(--color-chrome-yellow);
  margin: 2em 0;
}

blockquote p {
  margin-bottom: 0.8em;
}

/* ============================================
   CODE BLOCK FORMATTING
   ============================================ */

/* Inline code */
code {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Source Code Pro', monospace;
  font-size: 0.9em;
  background: rgba(27, 27, 31, 0.05);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  color: #d73a49;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Code blocks */
pre {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Source Code Pro', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  background: #1b1b1f;
  color: #f6f8fa;
  padding: 1.5em;
  border-radius: 12px;
  overflow-x: auto;
  margin: 1.5em 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
  border-radius: 0;
}

/* Syntax highlighting (basic) */
pre code .comment {
  color: #6a737d;
  font-style: italic;
}

pre code .keyword {
  color: #f97583;
}

pre code .string {
  color: #9ecbff;
}

pre code .function {
  color: #b392f0;
}

pre code .variable {
  color: #79b8ff;
}

pre code .number {
  color: #79b8ff;
}

/* Copy button for code blocks */
pre {
  position: relative;
}

pre:hover .copy-button {
  opacity: 1;
}

.copy-button {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #f6f8fa;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.copy-button:active {
  transform: scale(0.95);
}

.copy-button.copied::before {
  content: '✓ ';
}

/* Code block with language label */
pre[data-lang]::before {
  content: attr(data-lang);
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  font-family: var(--font-body);
}

/* Keyboard shortcuts */
kbd {
  font-family: 'SF Mono', 'Monaco', monospace;
  font-size: 0.85em;
  background: linear-gradient(180deg, #fafbfc 0%, #eff3f6 100%);
  color: var(--color-charcoal);
  padding: 0.3em 0.6em;
  border-radius: 6px;
  border: 1px solid #d1d5da;
  box-shadow:
    0 1px 0 rgba(27, 27, 31, 0.04),
    inset 0 0 0 1px #fff;
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
  font-weight: 500;
}

/* Command line / terminal */
.terminal {
  background: #1b1b1f;
  color: #00ff00;
  font-family: 'SF Mono', 'Monaco', monospace;
  padding: 1.5em;
  border-radius: 12px;
  margin: 1.5em 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.terminal::before {
  content: '$ ';
  color: #00ff00;
  user-select: none;
}

/* ============================================
   READING EXPERIENCE ENHANCEMENTS
   ============================================ */

/* Optimal line length for readability */
.content-container,
.article-body,
.case-study-section {
  max-width: 75ch;
  margin-left: auto;
  margin-right: auto;
}

/* Wide content (images, code blocks) */
.content-wide {
  max-width: 90ch;
}

/* Full bleed (edge-to-edge) */
.content-full {
  max-width: 100%;
}

/* Drop caps for feature articles */
.drop-cap::first-letter {
  float: left;
  font-size: 4em;
  line-height: 0.85;
  margin: 0.1em 0.1em 0 0;
  font-weight: 700;
  color: var(--color-charcoal);
  font-family: var(--font-heading);
}

/* Pull quotes */
.pull-quote {
  font-size: 1.5rem;
  line-height: 1.6;
  font-weight: 500;
  font-style: italic;
  color: var(--color-charcoal);
  margin: 2.5em 0;
  padding: 1.5em 2em;
  background: var(--color-cream);
  border-left: 4px solid var(--color-chrome-yellow);
  border-radius: 0 12px 12px 0;
}

.pull-quote::before {
  content: '"';
  font-size: 3em;
  line-height: 0;
  vertical-align: -0.4em;
  color: var(--color-chrome-yellow);
  margin-right: 0.1em;
}

/* Emphasis and strong */
em {
  font-style: italic;
  color: var(--color-text);
}

strong {
  font-weight: 600;
  color: var(--color-charcoal);
}

/* Links in body text */
.article-content a,
.case-study-content a,
p a {
  color: var(--color-charcoal);
  text-decoration: underline;
  text-decoration-color: var(--color-chrome-yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: all 0.2s ease;
}

.article-content a:hover,
.case-study-content a:hover,
p a:hover {
  text-decoration-thickness: 3px;
  color: var(--color-cocoa);
}

/* Abbreviations */
abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
  text-decoration-color: var(--color-muted);
}

/* Mark/Highlight */
mark {
  background: rgba(255, 196, 0, 0.3);
  color: var(--color-charcoal);
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

/* Subscript and superscript */
sub,
sup {
  font-size: 0.75em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

/* Horizontal rules */
hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg,
      transparent 0%,
      var(--color-border) 20%,
      var(--color-border) 80%,
      transparent 100%);
  margin: 3em 0;
}

/* Tables (for technical documentation) */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

thead {
  background: var(--color-cream);
}

th {
  font-weight: 600;
  text-align: left;
  padding: 0.75em 1em;
  border-bottom: 2px solid var(--color-border);
  color: var(--color-charcoal);
  font-family: var(--font-heading);
}

td {
  padding: 0.75em 1em;
  border-bottom: 1px solid var(--color-border);
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Code in tables */
td code,
th code {
  font-size: 0.85em;
}

/* Responsive tables */
@media (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ============================================
   MOBILE TYPOGRAPHY OPTIMIZATIONS
   ============================================ */

@media (max-width: 768px) {
  body {
    line-height: 1.85;
    /* Slightly more for mobile */
  }

  p {
    line-height: 1.85;
    margin-bottom: 1.5em;
  }

  /* Smaller optimal line length on mobile */
  p,
  .content-container,
  .article-body {
    max-width: 100%;
  }

  /* Code blocks - better mobile handling */
  pre {
    font-size: 0.85rem;
    padding: 1em;
    margin: 1em -20px;
    /* Bleed to edges */
    border-radius: 0;
  }

  /* Inline code slightly smaller */
  code {
    font-size: 0.85em;
  }

  /* Pull quotes more compact */
  .pull-quote {
    font-size: 1.25rem;
    padding: 1em 1.5em;
    margin: 1.5em 0;
  }

  /* Tables scroll horizontally */
  table {
    font-size: 0.9rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  body {
    line-height: 1.9;
    /* Even more for small screens */
  }

  p {
    line-height: 1.9;
  }

  pre {
    font-size: 0.8rem;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  body {
    line-height: 1.6;
    color: #000;
    background: #fff;
  }

  a {
    text-decoration: underline;
    color: #000;
  }

  pre,
  code {
    background: #f5f5f5;
    color: #000;
    border: 1px solid #ddd;
  }

  .pull-quote {
    border-left-color: #000;
  }
}

/* ============================================
   DARK MODE COMPONENT OVERRIDES
   ============================================ */

[data-theme="dark"] .site-header .container {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .theme-warm .brand-name {
  color: #fff;
}

[data-theme="dark"] .site-header .nav-menu li>a {
  color: #fff !important;
}

[data-theme="dark"] .site-header .nav-menu li>a:hover,
[data-theme="dark"] .site-header .nav-menu li>a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

[data-theme="dark"] .nav-link {
  color: var(--color-muted);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link:focus-visible,
[data-theme="dark"] .nav-item:hover>.nav-link,
[data-theme="dark"] .nav-item.is-open>.nav-link,
[data-theme="dark"] .nav-link.active {
  color: var(--color-charcoal);
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .nav-mega {
  background: rgba(20, 20, 22, 0.96);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .site-header.scrolled .container {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .error-toast {
  background: #1c1c1f;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(239, 68, 68, 0.3);
}

[data-theme="dark"] .error-toast-message strong {
  color: #ffffff;
}

[data-theme="dark"] .error-toast-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

[data-theme="dark"] pre {
  background: #131316;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] code {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] table thead {
  background: var(--color-warm-cream);
}

[data-theme="dark"] tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .testimonial-card {
  background-color: #1c1c1f;
  background-image: none;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .testimonial-card::after {
  display: none;
}

[data-theme="dark"] .project-card-why {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .ux-bites-seed {
  background: linear-gradient(135deg, #1c1c1f 0%, #232326 100%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .ux-bites-seed span {
  color: #fff;
}

[data-theme="dark"] .ux-bites-seed p {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .site-footer {
  background: linear-gradient(135deg, #131316 0%, #1c1c1f 100%);
  box-shadow: 0 -20px 40px -20px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .cta-container {
  background: #131316;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .work-card {
  border: none;
  box-shadow: none;
  background: rgba(10, 10, 12, 0.92);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

[data-theme="dark"] .work-card:hover {
  box-shadow: inset 0 0 30px rgba(255, 193, 7, 0.12), 0 20px 40px rgba(255, 193, 7, 0.15);
  transform: translateY(-4px);
  border: none;
}

[data-theme="dark"] .work-header h2 {
  color: #fff;
}

[data-theme="dark"] .work-header p {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .previous-work-header h2 {
  color: #fff;
}

[data-theme="dark"] .previous-work-header p {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .company-chip-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .company-chip-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

[data-theme="dark"] .previous-work-card {
  background: rgba(5, 5, 8, 0.9);
  border: 1px solid var(--gold-border);
  box-shadow: none;
}

[data-theme="dark"] .company-chip-item:hover .company-chip-name {
  color: #fff;
}

[data-theme="dark"] .company-chip-name {
  color: rgba(255, 255, 255, 0.85);
}

/* Side Projects Dark Mode - Moved to top with force override */

[data-theme="dark"] .side-projects-outer-container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .side-project-card::before {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.08) 0%, rgba(255, 193, 7, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] .side-project-card::after {
  background: radial-gradient(circle at 50% 0%, rgba(255, 193, 7, 0.12) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] .side-project-card:hover {
  border-color: var(--gold-border-hover);
  box-shadow:
    var(--gold-shadow-hover),
    0 8px 24px rgba(0, 0, 0, 0.4),
    inset 0 0 40px rgba(255, 193, 7, 0.08),
    0 0 60px rgba(255, 193, 7, 0.15);
  transform: translateY(-8px) scale(1.02);
}

[data-theme="dark"] .side-project-card:hover::before {
  opacity: 0.9;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.12) 0%, rgba(255, 193, 7, 0.04) 100%);
}

[data-theme="dark"] .side-project-card:hover::after {
  opacity: 1;
  background: radial-gradient(circle at 50% 0%, rgba(255, 193, 7, 0.2) 0%, transparent 60%);
}

[data-theme="dark"] .project-card-image {
  background: rgba(255, 255, 255, 0.05);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 18px 38px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .project-card-title {
  color: #fff;
}

[data-theme="dark"] .project-card-description {
  color: rgba(255, 255, 255, 0.75);
}

[data-theme="dark"] .project-card-visit {
  color: #0b0b0f;
}

[data-theme="dark"] .project-card-body {
  background: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .project-card-footer {
  background: rgba(0, 0, 0, 0.15);
  border-top-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .project-card-why {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(245, 246, 250, 0.85);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Experience Timeline Dark Mode */
[data-theme="dark"] .timeline-card {
  background: rgba(10, 10, 12, 0.9) !important;
  border-color: var(--gold-border) !important;
  box-shadow: none;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .timeline-card:hover {
  border-color: var(--gold-border-hover) !important;
  box-shadow: inset 0 0 30px rgba(255, 193, 7, 0.12), 0 20px 40px rgba(255, 193, 7, 0.15);
  transform: translateY(-3px);
}

[data-theme="dark"] .timeline-company {
  color: #fff;
}

[data-theme="dark"] .timeline-meta h3 {
  color: #fff;
}

[data-theme="dark"] .timeline-company-link {
  color: #fff;
}

[data-theme="dark"] .timeline-role {
  color: rgba(255, 193, 7, 0.9);
}

[data-theme="dark"] .timeline-date {
  background: rgba(255, 193, 7, 0.1);
  color: rgba(255, 193, 7, 0.9);
  border-color: rgba(255, 193, 7, 0.15);
}

[data-theme="dark"] .timeline-body li {
  color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .timeline-tools span {
  background: rgba(255, 193, 7, 0.1);
  color: rgba(255, 193, 7, 0.9);
  border-color: rgba(255, 193, 7, 0.15);
}

[data-theme="dark"] .philosophy-item {
  background: rgba(8, 8, 10, 0.95);
  border: 1px solid var(--gold-border);
  box-shadow: none;
}

[data-theme="dark"] .philosophy-item::before {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.05));
}

[data-theme="dark"] .philosophy-icon {
  background: rgba(255, 193, 7, 0.12);
  border-color: var(--gold-border);
  color: var(--gold-primary);
}

[data-theme="dark"] .philosophy-quote {
  border-left: 3px solid var(--gold-border);
  color: rgba(255, 193, 7, 0.85);
}

/* Testimonials Dark Mode */
[data-theme="dark"] .testimonial-card {
  background-color: rgba(10, 10, 12, 0.95) !important;
  border-color: var(--gold-border) !important;
  box-shadow: none !important;
}

[data-theme="dark"] .testimonial-card:hover {
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8) !important;
}

[data-theme="dark"] .testimonial-card::after {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

[data-theme="dark"] .testimonial-card p {
  color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .testimonial-card footer strong {
  color: #fff;
}

[data-theme="dark"] .testimonial-card footer span {
  color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .testimonial-skill-tag {
  background: rgba(255, 193, 7, 0.1);
  color: rgba(255, 193, 7, 0.9);
  border-color: rgba(255, 193, 7, 0.15);
}

[data-theme="dark"] .carousel-nav-button {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
}

[data-theme="dark"] .carousel-nav-button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

[data-theme="dark"] .carousel-pause-button {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
}

[data-theme="dark"] .carousel-pause-button:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

[data-theme="dark"] .testimonial-card-mini {
  background: rgba(12, 12, 15, 0.9);
  border: 2px solid rgba(255, 193, 7, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .testimonial-card-mini:hover {
  box-shadow: inset 0 0 30px rgba(255, 193, 7, 0.15) !important;
  border-color: var(--gold-border-hover);
}

[data-theme="dark"] .testimonials-carousel::before {
  background: linear-gradient(90deg, rgba(5, 5, 7, 0.9) 0%, rgba(5, 5, 7, 0.5) 40%, transparent 100%);
}

[data-theme="dark"] .testimonials-carousel::after {
  background: linear-gradient(270deg, rgba(5, 5, 7, 0.9) 0%, rgba(5, 5, 7, 0.5) 40%, transparent 100%);
}

[data-theme="dark"] .testimonial-text {
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .testimonial-author strong {
  color: #fff;
}

[data-theme="dark"] .testimonial-author span {
  color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .testimonial-skill {
  color: #ffc107;
  background: rgba(20, 20, 24, 0.9);
  border-bottom-color: rgba(255, 193, 7, 0.3);
  box-shadow: none;
}

[data-theme="dark"] .testimonial-skill strong {
  color: #ffffff;
  font-weight: 650;
}

/* Light Mode Testimonials */
[data-theme="light"] .testimonial-card-mini {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 250, 240, 0.98) 100%);
  border: 2px solid rgba(255, 193, 7, 0.3);
  box-shadow:
    0 4px 16px rgba(255, 193, 7, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .testimonial-card-mini:hover {
  box-shadow:
    0 8px 24px rgba(255, 193, 7, 0.25),
    0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: rgba(255, 193, 7, 0.5);
}

[data-theme="light"] .testimonial-skill {
  background: linear-gradient(135deg, rgba(255, 250, 205, 0.95) 0%, rgba(255, 243, 176, 0.98) 100%);
  color: rgba(139, 92, 0, 0.9);
  border-bottom-color: rgba(255, 193, 7, 0.4);
}

[data-theme="light"] .testimonial-skill strong {
  color: rgba(139, 92, 0, 1);
}

[data-theme="light"] .testimonial-text {
  color: rgba(47, 37, 24, 0.9);
}

[data-theme="light"] .testimonial-author strong {
  color: rgba(47, 37, 24, 1);
}

[data-theme="light"] .testimonial-author span {
  color: rgba(47, 37, 24, 0.6);
}

[data-theme="light"] .testimonials-carousel::before {
  background: linear-gradient(90deg, rgba(245, 230, 211, 1) 0%, rgba(245, 230, 211, 0.8) 40%, transparent 100%);
}

[data-theme="light"] .testimonials-carousel::after {
  background: linear-gradient(270deg, rgba(245, 230, 211, 1) 0%, rgba(245, 230, 211, 0.8) 40%, transparent 100%);
}

[data-theme="dark"] .eyebrow {
  color: rgba(255, 255, 255, 0.6);
}

/* Skills Showcase Dark Mode */
[data-theme="dark"] .skill-card {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-color: var(--glass-border) !important;
}

[data-theme="dark"] .skill-card:hover {
  background: rgba(30, 30, 35, 0.75) !important;
  border-color: var(--gold-border-hover) !important;
  box-shadow: var(--gold-shadow-hover), 0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .skill-card h3 {
  color: #fff;
}

[data-theme="dark"] .skill-card p {
  color: rgba(255, 255, 255, 0.7);
}

/* Previously Worked With Dark Mode */
[data-theme="dark"] .previous-work-section {
  background: rgba(20, 20, 23, 0.4) !important;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-color: var(--glass-border) !important;
}

/* Insight Cards Dark Mode */
[data-theme="dark"] .insight-card {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-color: var(--glass-border) !important;
}

[data-theme="dark"] .insight-card:hover {
  background: rgba(30, 30, 35, 0.75) !important;
  border-color: var(--gold-border-hover) !important;
  box-shadow: var(--gold-shadow-hover), 0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .insight-card h3 {
  color: #fff;
}

[data-theme="dark"] .insight-card p {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .insight-card .meta {
  color: rgba(255, 255, 255, 0.5);
}

/* Chatbot Prompt Cards Dark Mode */
[data-theme="dark"] .chatbot-main-title {
  color: #ffffff;
}

[data-theme="dark"] .chatbot-subtitle {
  color: rgba(255, 255, 255, 0.75);
}

[data-theme="dark"] .snipe-prompt-card {
  background: rgba(15, 15, 18, 0.95) !important;
  border: 1px solid rgba(255, 193, 7, 0.15) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .prompt-card-shine {
  background: linear-gradient(45deg, transparent 30%, rgba(255, 193, 7, 0.15) 50%, transparent 70%);
}

[data-theme="dark"] .snipe-prompt-card:hover {
  background: rgba(20, 20, 24, 0.98) !important;
  border-color: rgba(255, 193, 7, 0.35) !important;
  box-shadow:
    0 20px 60px rgba(255, 193, 7, 0.25),
    0 10px 30px rgba(255, 193, 7, 0.15),
    0 18px 42px rgba(0, 0, 0, 0.6),
    inset 0 0 30px rgba(255, 193, 7, 0.05) !important;
  transform: translateY(-8px) scale(1.02);
  z-index: 10;
}

[data-theme="dark"] .snipe-prompt-card:active {
  transform: translateY(-4px) scale(0.98) !important;
  box-shadow:
    0 12px 30px rgba(255, 193, 7, 0.2),
    0 6px 18px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .snipe-prompt-card:hover .prompt-card-shine {
  transform: translateX(100%) translateY(100%) rotate(45deg);
  background: linear-gradient(45deg, transparent 30%, rgba(255, 193, 7, 0.25) 50%, transparent 70%);
}

/* Override individual card hover colors in dark mode */
[data-theme="dark"] .snipe-prompt-card[data-prompt="plg"]:hover,
[data-theme="dark"] .snipe-prompt-card[data-prompt="pms"]:hover,
[data-theme="dark"] .snipe-prompt-card[data-prompt="90days"]:hover {
  background: rgba(20, 20, 24, 0.98) !important;
}

[data-theme="dark"] .snipe-prompt-card:focus-visible {
  outline: 3px solid rgba(255, 193, 7, 0.5) !important;
  outline-offset: 4px;
}

[data-theme="dark"] .snipe-badge {
  background: rgba(255, 193, 7, 0.2);
  color: var(--gold-primary);
  border: 1px solid var(--gold-border);
}

[data-theme="dark"] #chatbot-prompts .snipe-badge {
  background: rgba(255, 193, 7, 0.25) !important;
  color: rgba(255, 193, 7, 1) !important;
  border: 1px solid rgba(255, 193, 7, 0.4) !important;
}

[data-theme="dark"] #chatbot-prompts .badge-text,
[data-theme="dark"] #chatbot-prompts .badge-icon {
  color: rgba(255, 193, 7, 1) !important;
}

[data-theme="dark"] .prompt-question {
  color: rgba(255, 255, 255, 0.95) !important;
}

[data-theme="dark"] .prompt-hint {
  color: rgba(255, 255, 255, 0.7) !important;
}

[data-theme="dark"] .prompt-emoji {
  filter: brightness(1.2);
  opacity: 1;
}

[data-theme="dark"] .snipe-prompt-card:hover .prompt-emoji {
  filter: brightness(1.4);
  transform: scale(1.15) rotate(-5deg);
}

[data-theme="dark"] .snipe-prompt-card:hover .prompt-question {
  color: #ffffff !important;
}

[data-theme="dark"] #chatbot-prompts {
  background: var(--color-cream) !important;
}

[data-theme="dark"] #chatbot-prompts .chatbot-main-title {
  color: #ffffff !important;
}

[data-theme="dark"] #chatbot-prompts .chatbot-subtitle {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Ensure hero section text is visible in dark mode */
[data-theme="dark"] .hero-title {
  color: var(--color-text) !important;
}

[data-theme="dark"] .hero-title::after {
  color: var(--color-charcoal) !important;
}

[data-theme="dark"] .hero-subtitle {
  color: var(--color-charcoal) !important;
}

[data-theme="dark"] .hero-bio {
  color: var(--color-text) !important;
}

[data-theme="dark"] #chatbot-prompts .snipe-prompt-card {
  background: rgba(15, 15, 18, 0.95) !important;
  border: 1px solid rgba(255, 193, 7, 0.15) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] #chatbot-prompts .prompt-question,
[data-theme="dark"] #chatbot-prompts .prompt-hint {
  color: rgba(255, 255, 255, 0.95) !important;
}

[data-theme="dark"] #chatbot-prompts .prompt-emoji {
  filter: brightness(1.1);
}

[data-theme="dark"] .prompt-card-inner {
  background: rgba(255, 255, 255, 0.03);
}

/* Problem Cards Dark Mode */
[data-theme="dark"] .problem-card {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-color: rgba(255, 193, 7, 0.2) !important;
}

[data-theme="dark"] .problem-card:hover {
  background: rgba(30, 30, 35, 0.75) !important;
  border-color: rgba(255, 193, 7, 0.4) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .problem-card h3 {
  color: #fff;
}

[data-theme="dark"] .problem-card p {
  color: rgba(255, 255, 255, 0.7);
}

/* CTA Section Dark Mode */
[data-theme="dark"] .cta-section {
  background: rgba(20, 20, 23, 0.8) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

[data-theme="dark"] .cta-container {
  background: transparent;
}

/* UX Bite Cards Dark Mode */
[data-theme="dark"] .ux-bite-card {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-color: var(--glass-border) !important;
  box-shadow: var(--shadow-gold-sm);
  transition: transform var(--duration-normal) var(--ease-smooth), box-shadow var(--duration-normal) var(--ease-smooth), border-color var(--duration-normal) var(--ease-smooth);
}

[data-theme="dark"] .ux-bite-card:hover {
  background: rgba(30, 30, 35, 0.75) !important;
  border-color: var(--gold-border-hover) !important;
  box-shadow: var(--shadow-gold-lg);
  transform: translateY(-6px);
}

[data-theme="dark"] .ux-bite-card h3 {
  color: #fff;
}

[data-theme="dark"] .ux-bite-card p {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .cta-section h2 {
  color: #fff;
}

[data-theme="dark"] .cta-section p {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .cta-section .btn.primary {
  background: #fff;
  color: #1c1c1f;
  border-color: #fff;
}

[data-theme="dark"] .cta-section .btn.primary:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

[data-theme="dark"] .cta-section .btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .cta-section .btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Case Outcome Section Dark Mode */
[data-theme="dark"] .case-outcome {
  background: #0f0f11;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .case-outcome-summary h2 {
  color: #ffffff;
}

[data-theme="dark"] .case-outcome-summary p {
  color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .case-outcome-points li {
  color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .case-outcome-points li::before {
  color: #ffffff;
}

[data-theme="dark"] .case-outcome-visual {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .case-outcome-visual figcaption {
  color: rgba(255, 255, 255, 0.6);
}

/* Case Hero Section Dark Mode */
[data-theme="dark"] .case-hero {
  background: #0f0f11;
}

[data-theme="dark"] .case-hero .lead {
  color: rgba(255, 255, 255, 0.8);
}

/* Case Section Dark Mode */
[data-theme="dark"] .case-section {
  background: #0f0f11;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .case-section h2 {
  color: #ffffff;
}

[data-theme="dark"] .case-section h3 {
  color: #ffffff;
}

[data-theme="dark"] .case-section p {
  color: rgba(255, 255, 255, 0.75);
}

[data-theme="dark"] .case-section .lead {
  color: rgba(255, 255, 255, 0.8);
}

/* Section Intro & Eyebrow Dark Mode */
[data-theme="dark"] .section-intro h2 {
  color: #ffffff;
}

[data-theme="dark"] .section-eyebrow {
  color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .section-description {
  color: rgba(255, 255, 255, 0.7);
}

/* Story Text Dark Mode */
[data-theme="dark"] .story-text p {
  color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .story-text p.lead {
  color: #ffffff;
}

[data-theme="dark"] .story-text a {
  color: rgba(255, 255, 255, 0.9);
}

/* Trust Pillars Dark Mode */
[data-theme="dark"] .trust-pillar {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .trust-pillar:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 193, 7, 0.3);
}

[data-theme="dark"] .pillar-number {
  color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .trust-pillar h3 {
  color: #ffffff;
}

[data-theme="dark"] .trust-pillar p {
  color: rgba(255, 255, 255, 0.75);
}

/* Finding Cards Dark Mode */
[data-theme="dark"] .finding-card {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: rgba(255, 193, 7, 0.5);
}

[data-theme="dark"] .finding-number {
  color: rgba(255, 235, 120, 1);
  background: rgba(255, 193, 7, 0.2);
}

[data-theme="dark"] .finding-card h3 {
  color: #ffffff;
}

[data-theme="dark"] .finding-card p {
  color: rgba(255, 255, 255, 0.75);
}

/* User Quote Dark Mode */
[data-theme="dark"] .user-quote {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: rgba(255, 193, 7, 0.5);
}

[data-theme="dark"] .user-quote p {
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .user-quote footer {
  color: rgba(255, 255, 255, 0.6);
}

/* Experiment Cards Dark Mode */
[data-theme="dark"] .experiment-problem,
[data-theme="dark"] .experiment-solution {
  color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .experiment-problem strong,
[data-theme="dark"] .experiment-solution strong {
  color: #ffffff;
}

[data-theme="dark"] .experiment-badge {
  color: rgba(255, 235, 120, 1);
  background: rgba(255, 193, 7, 0.2);
}

[data-theme="dark"] .experiment-content h3 {
  color: #ffffff;
}

/* Phase Headers Dark Mode - Override inline styles */
[data-theme="dark"] h2[style*="color: #8f5a32"] {
  color: rgba(255, 193, 7, 1) !important;
}

[data-theme="dark"] p[style*="color: #666"] {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Impact Metrics Dark Mode */
[data-theme="dark"] .impact-metric {
  color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .impact-metric .metric-value {
  color: #ffffff;
}

[data-theme="dark"] .impact-metric .metric-label {
  color: rgba(255, 255, 255, 0.6);
}

/* Blockquotes and Inline Styled Text Dark Mode */
[data-theme="dark"] p[style*="color: #555"],
[data-theme="dark"] p[style*="color: #666"] {
  color: rgba(255, 255, 255, 0.75) !important;
}

[data-theme="dark"] blockquote[style*="color: #8f5a32"],
[data-theme="dark"] blockquote[style*="color: #b8860b"] {
  color: rgba(255, 193, 7, 0.95) !important;
  border-left-color: rgba(255, 193, 7, 0.6) !important;
  background: rgba(255, 193, 7, 0.15) !important;
}

[data-theme="dark"] .start-here-highlight {
  background: rgba(255, 193, 7, 0.1);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}