:root {
  --font-body: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Space Grotesk", "DM Sans", system-ui, sans-serif;
  --color-sand: #f6e9d6;
  --color-cream: #faf6ef;
  --color-sky: #fff8e1;
  --color-butter: #fff4d6;
  --color-cloud: #fffbf0;
  --color-mint: #fff3e0;
  --color-seafoam: #ffebcc;
  --color-rose: #ffe4d1;
  --color-charcoal: #1b1b1f;
  --color-text: #2a2a30;
  --color-muted: #5a5a64;
  --color-white: #ffffff;
  --color-lavender: #fff6e6;
  --color-peach: #ffe8d6;
  --color-mint-dark: #ffecd2;
  --color-lilac: #ffefd5;
  --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);
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-pill: 999px;
  --transition: 300ms ease-in-out;
  --max-width: 1280px;
  /* Universal highlight variables */
  --highlight-color: #0066cc;
  --selection-bg: rgba(200, 200, 200, 0.2);
  --selection-fg: var(--color-charcoal);
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  background-color: var(--color-white);
}

/* 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;
  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);
}

body.page-frame-active {
  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;
}

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

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

.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 1em;
  color: var(--color-muted);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

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

.section {
  padding: 96px 0;
}

.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;
}

.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: sticky;
  top: 0;
  z-index: 1000;
  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);
}

/* 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 */
.site-header.scrolled {
  padding: 8px 0;
}


.site-header.scrolled .container {
  width: fit-content;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 999px;
  padding: 8px 28px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.case-wrapper .site-header.scrolled .container {
  width: min(72vw, 600px);
  padding: 8px 22px;
}

.site-header.scrolled .brand-mark {
  width: 34px;
  height: 34px;
  font-size: 0.9rem;
}

.site-header.scrolled .brand-name {
  font-size: 0.98rem;
  font-weight: 700;
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.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: 4px 14px;
  border-radius: 999px;
  background: transparent;
  color: #000;
  transition: background var(--transition), box-shadow var(--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: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--color-charcoal);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1rem;
}

.site-nav {
  position: relative;
}

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

.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:not(.nav-resume) > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  color: #000 !important;
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none !important;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition), border-color var(--transition), transform 0.3s ease;
}

.site-header .nav-menu li:not(.nav-resume) > a:hover,
.site-header .nav-menu li:not(.nav-resume) > a:focus-visible {
  background: rgba(27, 27, 31, 0.14);
  border-color: rgba(27, 27, 31, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #000 !important;
  text-decoration: none !important;
  transform: scale(1.05);
}

.site-header .nav-menu li:not(.nav-resume) > a.active,
.site-header .nav-menu li:not(.nav-resume) > 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-menu li:not(.nav-resume) > a:visited {
  color: #000 !important;
  text-decoration: none !important;
}

.theme-warm .nav-resume .btn {
  background: var(--color-white);
  color: var(--color-charcoal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 10px 24px rgba(17, 25, 40, 0.12);
}

.theme-warm .nav-resume .btn:hover,
.theme-warm .nav-resume .btn:focus-visible {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 28px rgba(17, 25, 40, 0.14);
  color: var(--color-charcoal);
}

.case-wrapper .nav-resume .btn,
.case-wrapper .nav-resume .btn:visited,
.side-projects .nav-resume .btn,
.side-projects .nav-resume .btn:visited {
  background: var(--color-white);
  color: var(--color-charcoal);
  border: 1px solid rgba(27, 27, 31, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 8px 20px rgba(17, 25, 40, 0.1);
}

.case-wrapper .nav-resume .btn:hover,
.case-wrapper .nav-resume .btn:focus-visible,
.side-projects .nav-resume .btn:hover,
.side-projects .nav-resume .btn:focus-visible {
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-charcoal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 24px rgba(17, 25, 40, 0.14);
}

.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-resume {
  margin-left: 4px;
}

.nav-resume .btn {
  padding: 10px 18px;
  font-size: 0.92rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.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, #4a90e2 0%, #7a5cff 100%);
  color: #fff;
  box-shadow:
    0 24px 48px rgba(74, 144, 226, 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: 4px;
}

.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;
}

.btn.primary {
  background: var(--color-charcoal);
  color: var(--color-white);
  box-shadow: var(--shadow-card);
}

.btn.primary:hover,
.btn.primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(33, 35, 38, 0.2);
}

.btn.secondary {
  background: rgba(33, 35, 38, 0.08);
  color: var(--color-charcoal);
}

.btn.secondary:hover,
.btn.secondary:focus {
  background: rgba(33, 35, 38, 0.12);
}

.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);
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: rgba(27, 27, 31, 0.5);
  margin-bottom: 12px;
}

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

/* Hero Name Typing Animation - Left to Right */
.hero-title .char {
  display: inline-block;
  opacity: 0;
  animation: typeReveal 0.15s ease-out forwards;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

/* Stagger each character with a small delay - typing effect */
.hero-title .char:nth-child(1) { animation-delay: 0.1s; }
.hero-title .char:nth-child(2) { animation-delay: 0.15s; }
.hero-title .char:nth-child(3) { animation-delay: 0.2s; }
.hero-title .char:nth-child(4) { animation-delay: 0.25s; }
.hero-title .char:nth-child(5) { animation-delay: 0.3s; }
.hero-title .char:nth-child(6) { animation-delay: 0.35s; }
.hero-title .char:nth-child(7) { animation-delay: 0.4s; }
.hero-title .char:nth-child(8) { animation-delay: 0.45s; }
.hero-title .char:nth-child(9) { animation-delay: 0.5s; }
.hero-title .char:nth-child(10) { animation-delay: 0.55s; }
.hero-title .char:nth-child(11) { animation-delay: 0.6s; }
.hero-title .char:nth-child(12) { animation-delay: 0.65s; }
.hero-title .char:nth-child(13) { animation-delay: 0.7s; }
.hero-title .char:nth-child(14) { animation-delay: 0.75s; }
.hero-title .char:nth-child(15) { animation-delay: 0.8s; }
.hero-title .char:nth-child(16) { animation-delay: 0.85s; }
.hero-title .char:nth-child(17) { animation-delay: 0.9s; }
.hero-title .char:nth-child(18) { animation-delay: 0.95s; }
.hero-title .char:nth-child(19) { animation-delay: 1s; }
.hero-title .char:nth-child(20) { animation-delay: 1.05s; }

@keyframes typeReveal {
  0% {
    opacity: 0;
    transform: translateX(-5px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.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;
}

.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: 500px;
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

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

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

.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: #ff7b7b; }
.dot-yellow { background: #ffc266; }
.dot-green { background: #8bd1a6; }

.hero-illustration {
  height: 340px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(193, 222, 255, 0.6), rgba(255, 247, 210, 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); }
}

/* Sticky Flag - Single Green Flag */
.opportunity-sticky-flags {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 12;
  pointer-events: all;
}

.sticky-flag {
  width: 48px;
  height: 280px;
  position: relative;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15),
              inset 0 2px 0 rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.sticky-flag::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35%;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0 0 8px 0;
}

.sticky-flag::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 0;
  width: 3px;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 0 2px 2px 0;
}

/* Hover effect removed */

.flag-green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.flag-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: white;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 2;
  padding: 8px 0;
}

@keyframes stickyFlagPeek {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(8px);
  }
}

/* Philosophy */
.philosophy {
  padding: 80px 0;
}

.philosophy-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.philosophy-quote {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-family: var(--font-heading);
  color: var(--color-charcoal);
  margin-bottom: 48px;
  line-height: 1.4;
}

.philosophy-quote em {
  font-style: italic;
  color: var(--color-charcoal);
}

.philosophy-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.philosophy-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.philosophy-item:hover {
  opacity: 0.8;
  transform: translateY(-4px);
}

.philosophy-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-charcoal);
}

.philosophy-icon svg {
  width: 48px;
  height: 48px;
}

.philosophy-item span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-charcoal);
  text-align: center;
}

/* Cursor Trail Effect */
.cursor-trail {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(251, 191, 36, 0.06) 0%,
    rgba(245, 158, 11, 0.03) 40%,
    transparent 70%
  );
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: multiply;
}

.hero:hover .cursor-trail {
  opacity: 1;
}

/* Smooth transitions for all interactive elements */
.btn,
.work-card,
.testimonial-card-mini,
.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);
}

/* Testimonial cards subtle animation */
.testimonial-card-mini {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card-mini:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* 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: visible;
}

.kind-words .container {
  overflow: visible;
}

.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%;
  overflow: visible;
  padding: 40px 20px;
  margin: -40px -20px;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  animation: scroll-testimonials 60s linear infinite;
  width: fit-content;
  overflow: visible;
}

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

@keyframes scroll-testimonials {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-360px * 10 - 240px));
  }
}

.testimonial-card-mini {
  flex: 0 0 360px;
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 28px;
  padding-top: 120px; /* space for circular avatar */
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1.5px solid rgba(27, 27, 31, 0.08);
  position: relative;
  transform: rotate(-0.5deg);
}

.testimonial-card-mini:nth-child(even) {
  transform: rotate(0.5deg);
}

.testimonial-card-mini:hover {
  transform: translateY(-6px) rotate(0deg) scale(1.02);
  box-shadow:
    0 20px 40px rgba(255, 196, 64, 0.3),
    0 10px 20px rgba(255, 196, 64, 0.2);
}

/* Disable pseudo-element avatar now that we use an <img> tag */
.testimonial-card-mini::before { display: none; }

.testimonial-avatar {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  z-index: 1;
}

/* Hide emoji when using photo avatars for a cleaner look */
.testimonial-card-mini .testimonial-emoji {
  display: none;
}

.testimonial-emoji {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.testimonial-text {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #4a4a52;
  margin: 0;
  flex-grow: 1;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  letter-spacing: 0.01em;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.testimonial-author strong {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-charcoal);
  font-family: var(--font-heading);
  font-style: normal;
}

.testimonial-author span {
  font-size: 0.88rem;
  color: var(--color-muted);
  font-style: normal;
  font-family: var(--font-body);
}

/* 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.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  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;
}

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

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

.work-card:hover,
.work-card:focus {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  text-decoration: none !important;
}

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

.work-card-branch:hover,
.work-card-branch:focus {
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.5), 0 8px 24px rgba(29, 78, 216, 0.3);
}

.work-card-pushowl-ai:hover,
.work-card-pushowl-ai:focus {
  box-shadow: 0 20px 60px rgba(219, 39, 119, 0.5), 0 8px 24px rgba(159, 18, 57, 0.3);
}

.work-card-pushowl:hover,
.work-card-pushowl:focus {
  box-shadow: 0 20px 60px rgba(22, 163, 74, 0.5), 0 8px 24px rgba(22, 101, 52, 0.3);
}

.work-card-pushowl-green:hover,
.work-card-pushowl-green:focus {
  box-shadow: 0 20px 60px rgba(22, 163, 74, 0.5), 0 8px 24px rgba(22, 101, 52, 0.3);
}

.work-card-design:hover,
.work-card-design:focus {
  box-shadow: 0 20px 60px rgba(255, 107, 53, 0.5), 0 8px 24px rgba(217, 119, 6, 0.3);
}

.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 */
@media (max-width: 900px) {
  .work-bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
}

/* 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 - Orange */
.work-card-bhava {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 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;
  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;
}

.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;
}

.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, #A8E6CF 0%, #88D8B0 100%); }
.sticky-note:nth-child(2) { background: linear-gradient(135deg, #87CEEB 0%, #6CB4D4 100%); }
.sticky-note:nth-child(3) { background: linear-gradient(135deg, #FFB6C1 0%, #FF9AB0 100%); }
.sticky-note:nth-child(4) { background: linear-gradient(135deg, #FFDAB9 0%, #FFC994 100%); }
.sticky-note:nth-child(5) { background: linear-gradient(135deg, #DDA0DD 0%, #C77AC7 100%); }
.sticky-note:nth-child(6) { background: linear-gradient(135deg, #F0E68C 0%, #DDD06F 100%); }
.sticky-note:nth-child(7) { background: linear-gradient(135deg, #98D8C8 0%, #7AC5B5 100%); }
.sticky-note:nth-child(8) { background: linear-gradient(135deg, #FFB347 0%, #FF9F2A 100%); }
.sticky-note:nth-child(9) { background: linear-gradient(135deg, #B19CD9 0%, #9B7DC4 100%); }
.sticky-note:nth-child(10) { background: linear-gradient(135deg, #77DD77 0%, #5EC95E 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);
}

.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;
}

/* 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: 400px;
  flex-shrink: 0;
  min-height: 540px;
  scroll-snap-align: center;
  overflow: hidden;

  /* 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(-10px) scale(1.04);
  box-shadow: 0 28px 60px rgba(251, 191, 36, 0.35);
  border-color: rgba(251, 191, 36, 0.3);
  outline: 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);
}

/* 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: -60px;
  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-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.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: 12px;
}

.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 {
  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 {
  font-style: italic;
}

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

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

@media (max-width: 600px) {
  .site-footer {
    padding: 60px 0 30px;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* 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: transparent;
    border-radius: 24px;
    border: none;
    box-shadow: none;
    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-resume .btn {
    width: 100%;
    justify-content: center;
  }

  .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;
  }
}

@media (max-width: 768px) {
  /* Prevent horizontal scroll on mobile */
  body {
    overflow-x: hidden;
  }

  .section {
    padding: 56px 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 24px 50px 24px;
  }

  .hero-download-btn {
    top: 12px;
    right: 12px;
    font-size: 0.75rem;
    padding: 6px 14px;
  }

  .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-items {
    flex-wrap: wrap;
    gap: 32px;
    padding: 0 16px;
  }

  .philosophy-item {
    flex: 0 0 calc(50% - 16px);
    min-width: 120px;
  }

  .philosophy-icon svg {
    width: 36px;
    height: 36px;
  }

  .philosophy-item span {
    font-size: 0.85rem;
  }

  .philosophy-quote {
    font-size: 1.5rem;
    line-height: 1.3;
    text-align: center;
    padding: 0 16px;
  }

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

  /* 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-bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .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;
    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%;
  }
}

@media (max-width: 768px) {
  .side-projects-outer-container {
    padding: 30px 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;
}

.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: 760px;
  line-height: 1.7;
  color: rgba(27, 27, 31, 0.75);
}

.case-section > .container > p {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.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;
  }

  .quick-facts {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .table th,
  .table td {
    padding: 12px 14px;
  }
}
.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: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.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;
}

.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;
}

.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 {
  max-width: 880px;
}

.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;
}

.experiment-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(16, 185, 129, 0.8);
  background: rgba(16, 185, 129, 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: 96px 0;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.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: 36px 32px;
  border-radius: 20px;
  box-shadow: 0 8px 24px 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.25rem;
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 16px;
  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: 28px;
  position: relative;
  margin-bottom: 14px;
  color: var(--color-text);
  line-height: 1.7;
  font-size: 0.98rem;
}

.roadmap-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(255, 160, 60, 0.7);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Different styling for each roadmap column */
.roadmap-column:nth-child(1) {
  border-left: 3px solid rgba(16, 185, 129, 0.4);
}

.roadmap-column:nth-child(1) h3 {
  color: rgba(16, 185, 129, 0.9);
}

.roadmap-column:nth-child(2) {
  border-left: 3px solid rgba(59, 130, 246, 0.4);
}

.roadmap-column:nth-child(2) h3 {
  color: rgba(59, 130, 246, 0.9);
}

.roadmap-column:nth-child(3) {
  border-left: 3px solid rgba(156, 163, 175, 0.5);
}

.roadmap-column:nth-child(3) h3 {
  color: rgba(107, 114, 128, 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;
}

.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: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.case-cta-new .btn.primary:hover,
.case-cta-new .btn.primary:focus {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    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;
  flex-shrink: 0;
}

.case-study-horizontal-card:hover .case-horizontal-arrow {
  transform: translateX(8px);
}

/* 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 {
    grid-template-columns: repeat(2, 1fr);
  }

  .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: 48px 0;
  }

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

  .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 {
    gap: 24px;
    padding: 0 12px;
  }

  .philosophy-item {
    flex: 0 0 calc(50% - 12px);
  }

  .philosophy-icon svg {
    width: 32px;
    height: 32px;
  }

  .philosophy-item span {
    font-size: 0.75rem;
  }

  .philosophy-quote {
    font-size: 1.25rem;
  }
}

@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 {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .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);
  }
}


/* ================================
   Testimonials Carousel
   ================================ */

.testimonials-carousel {
  position: relative;
  width: 100%;
  overflow: visible;
  padding: 40px 20px;
  margin: -40px -20px;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  animation: scroll-testimonials 60s linear infinite;
  width: fit-content;
  overflow: visible;
}

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

@keyframes scroll-testimonials {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-360px * 10 - 240px));
  }
}

.testimonial-card-mini {
  flex: 0 0 360px;
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 28px;
  padding-top: 120px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1.5px solid rgba(27, 27, 31, 0.08);
  position: relative;
  transform: rotate(-0.5deg);
}

.testimonial-card-mini:nth-child(even) {
  transform: rotate(0.5deg);
}

.testimonial-card-mini:hover {
  transform: translateY(-6px) rotate(0deg) scale(1.02);
  box-shadow:
    0 20px 40px rgba(255, 196, 64, 0.3),
    0 10px 20px rgba(255, 196, 64, 0.2);
}

.testimonial-card-mini::before {
  display: none;
}

.testimonial-avatar {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  z-index: 1;
}

.testimonial-card-mini .testimonial-emoji {
  display: none;
}

.testimonial-emoji {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.testimonial-text {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #4a4a52;
  margin: 0;
  flex-grow: 1;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  letter-spacing: 0.01em;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.testimonial-author strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1b1b1f;
  letter-spacing: 0.01em;
}

.testimonial-author span {
  font-size: 0.85rem;
  color: rgba(27, 27, 31, 0.6);
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .testimonials-carousel {
    padding: 20px 10px;
    margin: -20px -10px;
  }
  
  .testimonial-card-mini {
    flex: 0 0 300px;
  }
  
  @keyframes scroll-testimonials {
    100% {
      transform: translateX(calc(-300px * 10 - 240px));
    }
  }
}


/* ================================
   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: 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;
}

/* ========================================
   Table of Contents - Case Studies
   ======================================== */

.case-toc-wrapper {
  position: fixed;
  left: 24px;
  top: 140px;
  z-index: 100;
  max-height: calc(100vh - 10px);
  overflow: visible;
  transition: all 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

.case-toc-wrapper.collapsed {
  left: 0;
  width: 44px;
}

.case-toc-wrapper.collapsed .case-toc {
  width: 32px;
  height: auto;
  min-height: 160px;
  padding: 24px 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 16px 16px 0;
  border-left: 4px solid var(--accent, #ffc400);
}

.case-toc-wrapper.collapsed .case-toc-title {
  margin-bottom: 0px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  margin: 0px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-primary, #1b1b1f);
  line-height: 1.2;
  white-space: nowrap;
}

.case-toc-wrapper.collapsed .case-toc-list {
  display: none;
}

.case-toc-wrapper.collapsed .case-toc:hover {
  background: rgba(255, 196, 0, 0.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  border-left-width: 5px;
}

/* Theme-specific bookmark colors */
.case-toc-wrapper.collapsed .case-toc[data-theme="bhava"] {
  border-left-color: rgb(255, 107, 53);
}

.case-toc-wrapper.collapsed .case-toc[data-theme="bhava"]:hover {
  background: rgba(255, 107, 53, 0.05);
}

.case-toc-wrapper.collapsed .case-toc[data-theme="pushowl"] {
  border-left-color: rgb(22, 163, 74);
}

.case-toc-wrapper.collapsed .case-toc[data-theme="pushowl"]:hover {
  background: rgba(22, 163, 74, 0.05);
}

.case-toc-wrapper.collapsed .case-toc[data-theme="pushowl-ai"] {
  border-left-color: rgb(219, 39, 119);
}

.case-toc-wrapper.collapsed .case-toc[data-theme="pushowl-ai"]:hover {
  background: rgba(219, 39, 119, 0.05);
}

.case-toc-wrapper.collapsed .case-toc[data-theme="branch"] {
  border-left-color: rgb(59, 130, 246);
}

.case-toc-wrapper.collapsed .case-toc[data-theme="branch"]:hover {
  background: rgba(59, 130, 246, 0.05);
}

.case-toc {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  width: 300px;
  transition: all 350ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  max-height: calc(100vh - 180px);
  position: relative;
}

.case-toc::-webkit-scrollbar {
  width: 6px;
}

.case-toc::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

.case-toc::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.case-toc::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.case-toc-title {
  margin-bottom: 0px;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary, #1b1b1f);
  letter-spacing: -0.02em;
  text-align: left;
  transition: all 350ms ease;
}

.case-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-toc-list li {
  margin: 0;
  padding: 0;
}

.case-toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none !important;
  color: #000 !important;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 220ms cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.4;
  background: rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  width: 100%;
}

.case-toc-link::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  transition: all 220ms ease;
}

.case-toc-link:hover::before,
.case-toc-link.active::before {
  background: #000;
}

.case-toc-link:hover {
  color: #000 !important;
  background: rgba(255, 196, 0, 0.15);
  text-decoration: none !important;
}

.case-toc-link.active {
  background: var(--accent, #ffc400);
  color: #000 !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 196, 0, 0.4);
  text-decoration: none !important;
}
.case-toc-link:visited,
.case-toc-link:active {
  color: #000 !important;
}

/* Different colors for different case studies */
.case-toc[data-theme="bhava"] .case-toc-link:hover {
  background: rgba(255, 107, 53, 0.15);
}

.case-toc[data-theme="bhava"] .case-toc-link.active {
  background: rgba(255, 107, 53, 0.16);
  color: #000 !important;
}

.case-toc[data-theme="pushowl"] .case-toc-link:hover {
  background: rgba(22, 163, 74, 0.15);
}

.case-toc[data-theme="pushowl"] .case-toc-link.active {
  background: rgba(22, 163, 74, 0.16);
  color: #000 !important;
}

.case-toc[data-theme="pushowl-ai"] .case-toc-link:hover {
  background: rgba(219, 39, 119, 0.15);
}

.case-toc[data-theme="pushowl-ai"] .case-toc-link.active {
  background: rgba(219, 39, 119, 0.16);
  color: #000 !important;
}

.case-toc[data-theme="branch"] .case-toc-link:hover {
  background: rgba(59, 130, 246, 0.15);
}

.case-toc[data-theme="branch"] .case-toc-link.active {
  background: rgba(59, 130, 246, 0.16);
  color: #000 !important;
}

/* Responsive behavior */
@media (max-width: 1400px) {
  .case-toc-wrapper {
    left: 16px;
  }

  .case-toc {
    min-width: 240px;
    max-width: 260px;
    padding: 32px 24px;
  }
}

@media (max-width: 1200px) {
  .case-toc-wrapper {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    max-height: none;
    margin: 32px auto;
    max-width: 600px;
  }

  .case-toc {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .case-toc {
    padding: 24px 20px;
  }

  .case-toc-title {
  margin-bottom: 0px;
    font-size: 1.25rem;
    margin-bottom: 20px;
  }

  .case-toc-link {
    padding: 12px 16px;
    font-size: 0.875rem;
  }
}
