/* ============================================
   ANA FALCAO — Portfolio Design System
   Palette: Soft Pastel (from portfolio banner)
   ============================================ */

/* --- Custom Properties --- */
:root {
  /* Primary */
  --purple: #9B7CB8;
  --purple-dark: #7E5FA0;
  --purple-light: #C4ABD8;
  --purple-bg: #F3EDF8;

  /* Pastels */
  --pink: #F2C4CE;
  --pink-light: #FAE0E7;
  --blue: #C2DFE8;
  --blue-light: #DFF0F7;
  --peach: #EDCBB8;
  --peach-light: #F8E4D6;

  /* Neutrals */
  --bg: #F8F5F9;
  --bg-white: #FFFFFF;
  --bg-section: #FDFAFD;
  --text-dark: #2D2D3F;
  --text-medium: #5A5A6E;
  --text-light: #8A8A9E;
  --border: #E8E0EC;

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--purple);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

a:hover {
  color: var(--purple-dark);
}

ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

h4 {
  font-size: 1.1rem;
}

p {
  color: var(--text-medium);
  font-size: 1.05rem;
}

.text-accent {
  color: var(--purple);
}

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

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-3xl) 0;
}

.section--alt {
  background: var(--bg-white);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--purple);
  margin-bottom: var(--space-sm);
  padding: 6px 16px;
  background: var(--purple-bg);
  border-radius: 100px;
}

.section-title {
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-medium);
  max-width: 640px;
  line-height: 1.7;
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: var(--space-lg);
}

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

@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4 {
    grid-template-columns: 1fr;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  font-family: var(--font-main);
}

.btn--primary {
  background: var(--purple);
  color: white;
}

.btn--primary:hover {
  background: var(--purple-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(155, 124, 184, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--purple);
  border: 2px solid var(--purple);
}

.btn--outline:hover {
  background: var(--purple);
  color: white;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-dark);
  padding: 14px 16px;
}

.btn--ghost:hover {
  color: var(--purple);
}

.btn--ghost .arrow {
  transition: transform var(--duration) var(--ease);
}

.btn--ghost:hover .arrow {
  transform: translateX(4px);
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(248, 245, 249, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(248, 245, 249, 0.95);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.header__logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.header__logo span {
  color: var(--purple);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.header__nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-medium);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color var(--duration) var(--ease);
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--purple);
  border-radius: 1px;
  transition: width var(--duration) var(--ease);
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--purple);
}

.header__nav a:hover::after,
.header__nav a.active::after {
  width: 100%;
}

.header__nav a.header__cta {
  margin-left: var(--space-sm);
  padding: 14px 32px;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.header__nav a.header__cta::after {
  display: none;
}

.header__nav a.header__cta:hover {
  color: white;
}

/* Nav dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__trigger {
  cursor: pointer;
}

.nav-dropdown__trigger .chevron {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 4px;
  margin-bottom: 2px;
  transition: transform var(--duration) var(--ease);
}

.nav-dropdown:hover .nav-dropdown__trigger .chevron {
  transform: rotate(-135deg);
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity var(--duration) var(--ease), visibility var(--duration) var(--ease), transform var(--duration) var(--ease);
  z-index: 100;
}

.nav-dropdown__menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown:hover .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown__menu a {
  display: block;
  padding: 10px 20px !important;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  color: var(--text-medium) !important;
  white-space: nowrap;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.nav-dropdown__menu a::after {
  display: none !important;
}

.nav-dropdown__menu a:hover {
  background: var(--bg-light);
  color: var(--purple) !important;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  margin: 6px 0;
  transition: all var(--duration) var(--ease);
  border-radius: 2px;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    z-index: 1001;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-lg);
    transition: right var(--duration) var(--ease);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    padding: var(--space-xl);
  }

  .header__nav.open {
    right: 0;
  }

  .header__nav a {
    font-size: 1.2rem;
  }

  .header__nav a.header__cta {
    margin-left: 0;
    font-size: 1rem;
    color: white;
    font-weight: 700;
  }

  .nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .nav-dropdown__trigger .chevron {
    margin-bottom: 1px;
  }

  .nav-dropdown.open .nav-dropdown__trigger .chevron {
    transform: rotate(-135deg);
  }

  .nav-dropdown__menu {
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.3s var(--ease);
  }

  .nav-dropdown:hover .nav-dropdown__menu {
    transform: none;
  }

  .nav-dropdown.open .nav-dropdown__menu {
    max-height: 300px;
  }

  .nav-dropdown__menu a {
    text-align: center;
    padding: 8px 0 !important;
    font-size: 1rem !important;
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration) var(--ease);
  }

  .mobile-overlay.open {
    opacity: 1;
    visibility: visible;
  }
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.hero__bg-circle--pink {
  width: 500px;
  height: 500px;
  background: var(--pink);
  top: -100px;
  right: -100px;
}

.hero__bg-circle--blue {
  width: 400px;
  height: 400px;
  background: var(--blue);
  bottom: -50px;
  left: -100px;
}

.hero__bg-circle--peach {
  width: 350px;
  height: 350px;
  background: var(--peach-light);
  bottom: 100px;
  right: 200px;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero__text {
  max-width: 560px;
}

.hero__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--purple);
  margin-bottom: var(--space-md);
  padding: 8px 20px;
  background: var(--purple-bg);
  border-radius: 100px;
}

.hero__title {
  margin-bottom: var(--space-md);
  color: var(--text-dark);
}

.hero__title span {
  color: var(--purple);
}

.hero__subtitle {
  font-size: 1.2rem;
  color: var(--text-medium);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
  max-width: 500px;
}

.hero__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.hero__metrics {
  display: flex;
  gap: var(--space-xl);
}

.hero__metric {
  text-align: left;
}

.hero__metric-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--purple);
  line-height: 1;
  margin-bottom: 4px;
}

.hero__metric-label {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero__photo-wrapper {
  position: relative;
  width: 380px;
  height: 460px;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 200px 200px 40px 40px;
  box-shadow: 0 30px 60px rgba(155, 124, 184, 0.15);
}

.hero__photo-accent {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--purple-light);
  border-radius: 200px 200px 40px 40px;
  top: 16px;
  left: 16px;
  z-index: -1;
}

/* Venn Diagram */
.hero__venn {
  position: absolute;
  bottom: -30px;
  right: -60px;
  width: 200px;
  height: 180px;
}

.venn-circle {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  opacity: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.venn-circle--pink {
  background: var(--pink);
  top: 0;
  left: 50px;
}

.venn-circle--blue {
  background: var(--blue);
  bottom: 10px;
  right: 0;
}

.venn-circle--peach {
  background: var(--peach);
  bottom: 10px;
  left: 10px;
}

.venn-label {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dark);
  text-align: center;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

@media (max-width: 968px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__text {
    max-width: 100%;
    order: 2;
  }

  .hero__visual {
    order: 1;
  }

  .hero__subtitle {
    max-width: 100%;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__metrics {
    justify-content: center;
  }

  .hero__photo-wrapper {
    width: 280px;
    height: 340px;
  }

  .hero__venn {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero__metrics {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .hero__metric {
    text-align: center;
  }
}

/* --- Services / What I Do --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.service-card {
  padding: var(--space-lg);
  border-radius: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 20px 20px 0 0;
  transition: height var(--duration) var(--ease);
}

.service-card--pink::before { background: var(--pink); }
.service-card--blue::before { background: var(--blue); }
.service-card--peach::before { background: var(--peach); }

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(155, 124, 184, 0.1);
  border-color: transparent;
}

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

.service-card--pink .service-card__icon { background: var(--pink-light); }
.service-card--blue .service-card__icon { background: var(--blue-light); }
.service-card--peach .service-card__icon { background: var(--peach-light); }

.service-card__title {
  font-size: 1.2rem;
  margin-bottom: var(--space-xs);
}

.service-card__text {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.7;
}

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

/* --- Outcomes / Metrics --- */
.outcomes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.outcome-card {
  text-align: center;
  padding: var(--space-lg);
}

.outcome-card__value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--purple);
  line-height: 1;
  margin-bottom: 8px;
}

.outcome-card__label {
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.outcome-card__desc {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin-top: 8px;
}

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

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

/* --- Clients Logo Grid --- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
  align-items: center;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-sm);
  min-height: 80px;
  border-radius: 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
}

.client-logo:hover {
  border-color: var(--purple-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(155, 124, 184, 0.08);
}

.client-logo svg {
  max-width: 100%;
  height: auto;
}

.client-logo__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #999;
  letter-spacing: -0.01em;
  text-align: center;
  line-height: 1.2;
  transition: color var(--duration) var(--ease);
}

.client-logo:hover .client-logo__text {
  color: #666;
}

/* Brand-specific wordmark styles */
.client-logo--uppercase .client-logo__text {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

.client-logo--light .client-logo__text {
  font-weight: 400;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.client-logo--serif .client-logo__text {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.client-logo--bold .client-logo__text {
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.client-logo--script .client-logo__text {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }

  .client-logo {
    padding: var(--space-sm);
    min-height: 64px;
  }

  .client-logo__text {
    font-size: 0.9rem;
  }
}

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

/* --- Case Studies / Work --- */
.work-grid {
  display: grid;
  gap: var(--space-lg);
}

.case-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-white);
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  color: inherit;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(155, 124, 184, 0.12);
  border-color: transparent;
  color: inherit;
}

.case-card__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  position: relative;
  overflow: hidden;
  overflow: hidden;
}

.case-card__visual--pink {
  background: linear-gradient(135deg, var(--pink-light), var(--purple-bg));
}

.case-card__visual--blue {
  background: linear-gradient(135deg, var(--blue-light), var(--purple-bg));
}

.case-card__visual--peach {
  background: linear-gradient(135deg, var(--peach-light), var(--pink-light));
}

.case-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.case-card__visual-text {
  font-size: 3rem;
  font-weight: 800;
  color: var(--purple);
  opacity: 0.3;
  text-align: center;
  line-height: 1.1;
}

.case-card__content {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--purple);
  background: var(--purple-bg);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: var(--space-sm);
  width: fit-content;
}

.case-card__title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.case-card__desc {
  font-size: 0.95rem;
  color: var(--text-medium);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.case-card__metrics {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.case-card__metric {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple);
  padding: 6px 14px;
  background: var(--purple-bg);
  border-radius: 8px;
}

.case-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--purple);
  margin-top: var(--space-md);
  transition: gap var(--duration) var(--ease);
}

.case-card:hover .case-card__cta {
  gap: 12px;
}

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

  .case-card__visual {
    min-height: 200px;
  }
}

/* --- Mini Work Cards --- */
.mini-work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.mini-card {
  padding: var(--space-lg);
  border-radius: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
}

.mini-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(155, 124, 184, 0.08);
}

.mini-card__client {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple);
  margin-bottom: var(--space-xs);
}

.mini-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.mini-card__desc {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.6;
}

.mini-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-sm);
}

.mini-card__tag {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-light);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 6px;
}

.mini-card__link {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.mini-card__link:hover {
  color: var(--heading);
}

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

/* --- Timeline --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--purple-light), var(--pink), var(--blue));
}

.timeline-item {
  position: relative;
  padding-left: 72px;
  padding-bottom: var(--space-xl);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item__dot {
  position: absolute;
  left: 14px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--purple);
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 2px var(--purple-light);
}

.timeline-item__date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.timeline-item__role {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.timeline-item__company {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: var(--space-xs);
}

.timeline-item__desc {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.7;
  max-width: 600px;
}

/* --- About --- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-xl);
  align-items: start;
}

.about-photo {
  width: 100%;
  max-width: 360px;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(155, 124, 184, 0.1);
}

.about-bio p {
  margin-bottom: var(--space-md);
}

.about-bio p:first-child {
  font-size: 1.2rem;
  color: var(--text-dark);
  font-weight: 500;
}

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

  .about-photo {
    max-width: 280px;
    margin: 0 auto;
  }
}

/* --- Skills / Tools --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.skill-group__title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple);
  margin-bottom: var(--space-sm);
}

.skill-group__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill {
  padding: 8px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-medium);
  transition: all var(--duration) var(--ease);
}

.skill-pill:hover {
  border-color: var(--purple-light);
  color: var(--purple);
}

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

/* --- Awards --- */
.awards-list {
  display: grid;
  gap: var(--space-sm);
}

.award-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-radius: 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
}

.award-item__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--purple-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.award-item__text {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 500;
}

.award-item__year {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* --- Education --- */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.edu-card {
  padding: var(--space-md);
  border-radius: 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
}

.edu-card__degree {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.edu-card__school {
  font-size: 0.9rem;
  color: var(--text-medium);
}

.edu-card__meta {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 4px;
}

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

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
  max-width: 640px;
}

.contact-info {
  display: grid;
  gap: var(--space-md);
}

.contact-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: all var(--duration) var(--ease);
}

.contact-card:hover {
  border-color: var(--purple-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(155, 124, 184, 0.1);
  color: inherit;
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.contact-card__icon--email { background: var(--pink-light); }
.contact-card__icon--linkedin { background: var(--blue-light); }
.contact-card__icon--calendar { background: var(--peach-light); }

.contact-card__label {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-card__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Contact Form */
.contact-form {
  display: grid;
  gap: var(--space-md);
}

.form-group {
  display: grid;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  outline: none;
}

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

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

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

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* --- Footer --- */
.footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  background: var(--bg-white);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--text-light);
}

.footer__links {
  display: flex;
  gap: var(--space-md);
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--text-medium);
}

.footer__links a:hover {
  color: var(--purple);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger.visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger.visible > *:nth-child(8) { transition-delay: 0.4s; }

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
}

.page-header__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.page-header__bg .hero__bg-circle {
  opacity: 0.3;
}

.page-header__content {
  position: relative;
  z-index: 1;
}

/* --- Languages --- */
.languages-grid {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.language-card {
  padding: var(--space-md) var(--space-lg);
  border-radius: 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  text-align: center;
  min-width: 160px;
}

.language-card__name {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.language-card__level {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* --- Design Lead Framework (Work Page) --- */
.framework {
  background: var(--bg-white);
  border-radius: 24px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(155, 124, 184, 0.08);
}

.framework__diagram {
  padding: var(--space-xl) var(--space-lg) var(--space-md);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-white) 100%);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.framework__svg {
  width: 100%;
  min-width: 700px;
  height: auto;
  display: block;
}

.framework__phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

.framework__phase {
  padding: var(--space-lg);
  background: var(--bg-white);
  position: relative;
}

.framework__phase-number {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: var(--space-xs);
  line-height: 1;
}

.framework__phase--blue .framework__phase-number {
  color: var(--blue);
}

.framework__phase--purple .framework__phase-number {
  color: var(--purple-light);
}

.framework__phase--pink .framework__phase-number {
  color: var(--pink);
}

.framework__phase--peach .framework__phase-number {
  color: var(--peach);
}

.framework__phase-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
}

.framework__phase-desc {
  font-size: 0.82rem;
  color: var(--text-medium);
  line-height: 1.6;
}

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

  .framework__diagram {
    padding: var(--space-lg) var(--space-sm) var(--space-sm);
  }
}

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

  .framework__svg {
    min-width: 600px;
  }

  .framework__phase {
    padding: var(--space-md);
  }
}

/* --- Endorsements --- */
.endorsement-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.endorsement-card {
  padding: var(--space-lg);
  border-radius: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
}

.endorsement-card__quote {
  font-size: 1rem;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  font-style: italic;
}

.endorsement-card__quote::before {
  content: '\201C';
  font-size: 2rem;
  color: var(--purple-light);
  line-height: 0;
  vertical-align: -0.5em;
  margin-right: 4px;
}

.endorsement-card__author {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.endorsement-card__role {
  font-size: 0.8rem;
  color: var(--text-light);
}

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

/* --- CTA Banner --- */
.cta-banner {
  padding: var(--space-2xl);
  border-radius: 32px;
  background: linear-gradient(135deg, var(--purple-bg), var(--pink-light), var(--blue-light));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-sm);
}

.cta-banner__text {
  font-size: 1.05rem;
  color: var(--text-medium);
  margin-bottom: var(--space-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner__actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Case Study Detail Pages
   ============================================ */

/* --- Case Hero --- */
.case-hero {
  width: 100%;
  padding: var(--space-3xl) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple-light), var(--purple-bg));
  text-align: center;
}

.case-hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.case-hero__label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: var(--space-md);
  backdrop-filter: blur(4px);
}

.case-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--bg-white);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
  line-height: 1.15;
}

.case-hero__logo {
  max-width: 380px;
  width: 100%;
  height: auto;
  margin: 0 auto var(--space-md) auto;
  display: block;
}

.case-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .case-hero {
    padding: var(--space-xl) 0 var(--space-lg);
  }
}

/* --- Case Content Container --- */
.case-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* --- Case Overview --- */
.case-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-xl) 0;
}

.case-overview__text {
  font-size: 1.05rem;
  color: var(--text-medium);
  line-height: 1.8;
}

.case-overview__visual {
  border-radius: 20px;
  overflow: hidden;
  background: var(--purple-bg);
  border: 1px solid var(--border);
}

.case-overview__visual img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .case-overview {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* --- Case Section --- */
.case-section {
  margin-bottom: var(--space-xl);
  padding: var(--space-xl) 0;
}

.case-section--alt {
  background: var(--bg-white);
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

.case-section__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--purple);
  margin-bottom: var(--space-sm);
  padding: 6px 16px;
  background: var(--purple-bg);
  border-radius: 100px;
}

.case-section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}

.case-section__text {
  font-size: 1.05rem;
  color: var(--text-medium);
  line-height: 1.8;
  max-width: 720px;
}

.case-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

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

/* --- Case Overview with image --- */
.case-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  margin-top: var(--space-lg);
}

.case-overview__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.blob-shape {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  border-radius: 60% 40% 50% 45% / 45% 55% 40% 60%;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(77, 180, 229, 0.15), rgba(194, 133, 217, 0.15));
  box-shadow: 0 12px 40px rgba(77, 180, 229, 0.12);
}

.blob-shape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

  .case-overview__visual {
    order: -1;
  }

  .blob-shape {
    max-width: 300px;
    margin: 0 auto;
  }
}

/* --- Challenge List --- */
.challenge-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.challenge-item {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  padding: var(--space-lg);
  background: var(--bg-white);
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
}

.challenge-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(155, 124, 184, 0.08);
  border-color: transparent;
}

.challenge-item__number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--purple);
  line-height: 1;
  min-width: 52px;
  flex-shrink: 0;
}

.challenge-item__content {
  flex: 1;
}

.challenge-item__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: var(--space-xs);
}

.challenge-item__text {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.7;
}

@media (max-width: 480px) {
  .challenge-item {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* --- Research Items --- */
.research-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.research-item {
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-white);
  border-radius: 16px;
  border-left: 4px solid var(--purple);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
}

.research-item:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(155, 124, 184, 0.08);
}

.research-item__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 4px;
}

.research-item__text {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.7;
}

/* --- Approach Steps --- */
.approach-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  margin-top: var(--space-lg);
}

.approach-layout__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.approach-layout__img {
  width: 100%;
  max-width: 460px;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

.approach-list--compact .approach-item {
  padding: var(--space-sm) var(--space-md);
}

.approach-list--compact .approach-item__number {
  font-size: 1.1rem;
  min-width: 36px;
  height: 36px;
  border-radius: 10px;
}

.approach-list--compact .approach-item__title {
  font-size: 0.95rem;
}

.approach-list--compact .approach-item__text {
  font-size: 0.85rem;
  line-height: 1.6;
}

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

  .approach-layout__visual {
    order: -1;
  }

  .blob-shape--tall {
    max-width: 300px;
    margin: 0 auto;
  }

  .approach-list--compact .approach-item {
    padding: var(--space-md) var(--space-lg);
  }
}

.approach-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  counter-reset: approach;
}

.approach-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-lg);
  background: var(--bg-white);
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
  counter-increment: approach;
}

.approach-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(155, 124, 184, 0.08);
  border-color: transparent;
}

.approach-item__number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--purple);
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple-bg);
  border-radius: 12px;
  flex-shrink: 0;
  line-height: 1;
}

.approach-item__content {
  flex: 1;
}

.approach-item__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.approach-item__text {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.7;
}

@media (max-width: 480px) {
  .approach-item {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* --- Insight Grid / Cards --- */
.cross-country-insight {
  background: linear-gradient(135deg, var(--accent-light), rgba(194, 223, 232, 0.3));
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xl);
}

.cross-country-insight__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.cross-country-insight__text {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.insight-card {
  padding: var(--space-lg);
  background: var(--bg-white);
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.insight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--purple-light);
  border-radius: 20px 20px 0 0;
  transition: height var(--duration) var(--ease);
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(155, 124, 184, 0.1);
  border-color: transparent;
}

.insight-card:hover::before {
  height: 5px;
}

.insight-card__number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--purple-light);
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.insight-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
}

.insight-card__text {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.7;
}

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

/* --- Results --- */
.result-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.result-item {
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-white);
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
}

.result-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(155, 124, 184, 0.08);
}

.result-item__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 4px;
}

.result-item__text {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.7;
}

/* --- Case Gallery --- */
.case-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.case-gallery__item {
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-light);
  border: 1px solid var(--border);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
}

.case-gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(155, 124, 184, 0.1);
}

.case-gallery__img {
  width: 100%;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-gallery__img img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  display: block;
}

.case-gallery__caption {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  letter-spacing: 0.01em;
  border-top: 1px solid var(--border);
  background: var(--bg-light);
}

.case-gallery--3col {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .case-gallery,
  .case-gallery--3col {
    grid-template-columns: 1fr;
  }
  .case-gallery__img img {
    max-height: 220px;
  }
}

/* --- Key Numbers / Metrics Grid --- */
.key-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

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

.key-number {
  text-align: center;
  padding: var(--space-lg);
  background: var(--bg-white);
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
}

.key-number:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(155, 124, 184, 0.1);
  border-color: transparent;
}

.key-number__value {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--purple);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.key-number__label {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.5;
}

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

@media (max-width: 480px) {
  .key-numbers,
  .key-numbers--2col {
    grid-template-columns: 1fr;
  }
}

/* --- Case Results Section (split layout) --- */
.case-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.case-results__text {
  font-size: 1.05rem;
  color: var(--text-medium);
  line-height: 1.8;
}

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

/* --- Case Navigation (Prev / Next) --- */
.case-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xl) 0;
  margin-top: var(--space-xl);
  border-top: 1px solid var(--border);
  gap: var(--space-md);
}

.case-nav__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  padding: var(--space-md) var(--space-lg);
  border-radius: 16px;
  transition: all var(--duration) var(--ease);
  max-width: 45%;
}

.case-nav__link:hover {
  background: var(--purple-bg);
  transform: translateY(-2px);
}

.case-nav__link--prev {
  align-items: flex-start;
}

.case-nav__link--next {
  align-items: flex-end;
  margin-left: auto;
  text-align: right;
}

.case-nav__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-light);
}

.case-nav__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

@media (max-width: 480px) {
  .case-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .case-nav__link {
    max-width: 100%;
    text-align: center;
    align-items: center;
  }
  .case-nav__link--next {
    margin-left: 0;
  }
}

/* --- Project Accent Colors --- */

/* Vivi (Blue) */
.case--vivi .case-hero {
  background: linear-gradient(135deg, #4DB4E5, #2196F3);
}
.case--vivi .challenge-item__number,
.case--vivi .challenge-item__title,
.case--vivi .research-item__title,
.case--vivi .result-item__title,
.case--vivi .key-number__value,
.case--vivi .case-section__label {
  color: #4DB4E5;
}
.case--vivi .case-section__label {
  background: rgba(77, 180, 229, 0.12);
}
.case--vivi .research-item {
  border-left-color: #4DB4E5;
}
.case--vivi .insight-card::before {
  background: #4DB4E5;
}
.case--vivi .approach-item__number {
  color: #4DB4E5;
  background: rgba(77, 180, 229, 0.12);
}

/* Zomato (Yellow) */
.case--zomato .case-hero {
  background: linear-gradient(135deg, #E8B630, #D4A017);
}
.case--zomato .challenge-item__number,
.case--zomato .challenge-item__title,
.case--zomato .research-item__title,
.case--zomato .result-item__title,
.case--zomato .key-number__value,
.case--zomato .case-section__label {
  color: #D4A017;
}
.case--zomato .case-section__label {
  background: rgba(232, 182, 48, 0.12);
}
.case--zomato .research-item {
  border-left-color: #E8B630;
}
.case--zomato .insight-card::before {
  background: #E8B630;
}
.case--zomato .approach-item__number {
  color: #D4A017;
  background: rgba(232, 182, 48, 0.12);
}

/* Skipper (Green) */
.case--skipper .case-hero {
  background: linear-gradient(135deg, #2ECC71, #27AE60);
}
.case--skipper .challenge-item__number,
.case--skipper .challenge-item__title,
.case--skipper .research-item__title,
.case--skipper .result-item__title,
.case--skipper .key-number__value,
.case--skipper .case-section__label {
  color: #2ECC71;
}
.case--skipper .case-section__label {
  background: rgba(46, 204, 113, 0.12);
}
.case--skipper .research-item {
  border-left-color: #2ECC71;
}
.case--skipper .insight-card::before {
  background: #2ECC71;
}
.case--skipper .approach-item__number {
  color: #2ECC71;
  background: rgba(46, 204, 113, 0.12);
}

/* Lavazza (Red) */
.case--lavazza .case-hero {
  background: linear-gradient(135deg, #C1272D, #A01E23);
}
.case--lavazza .challenge-item__number,
.case--lavazza .challenge-item__title,
.case--lavazza .research-item__title,
.case--lavazza .result-item__title,
.case--lavazza .key-number__value,
.case--lavazza .case-section__label {
  color: #C1272D;
}
.case--lavazza .case-section__label {
  background: rgba(193, 39, 45, 0.12);
}
.case--lavazza .research-item {
  border-left-color: #C1272D;
}
.case--lavazza .insight-card::before {
  background: #C1272D;
}
.case--lavazza .approach-item__number {
  color: #C1272D;
  background: rgba(193, 39, 45, 0.12);
}

/* Pinko (Pink) */
.case--pinko .case-hero {
  background: linear-gradient(135deg, #E91E8C, #C2185B);
}
.case--pinko .challenge-item__number,
.case--pinko .challenge-item__title,
.case--pinko .research-item__title,
.case--pinko .result-item__title,
.case--pinko .key-number__value,
.case--pinko .case-section__label {
  color: #E91E8C;
}
.case--pinko .case-section__label {
  background: rgba(233, 30, 140, 0.12);
}
.case--pinko .research-item {
  border-left-color: #E91E8C;
}
.case--pinko .insight-card::before {
  background: #E91E8C;
}
.case--pinko .approach-item__number {
  color: #E91E8C;
  background: rgba(233, 30, 140, 0.12);
}

/* --- Endorsements --- */
.endorsements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.endorsement-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: box-shadow var(--duration) var(--ease);
}

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

.endorsement-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.endorsement-card__photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.endorsement-card__name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
}

.endorsement-card__role {
  font-size: 0.85rem;
  color: var(--text-medium);
  line-height: 1.4;
}

.endorsement-card__relation {
  font-size: 0.8rem;
  color: var(--purple);
  font-weight: 500;
  margin-top: 2px;
}

.endorsement-card__quote {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-medium);
  flex-grow: 1;
}

.endorsement-card__quote p {
  margin: 0 0 var(--space-sm) 0;
}

.endorsement-card__quote p:last-child {
  margin-bottom: 0;
}

.endorsement-card__source {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--purple);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity var(--duration) var(--ease);
}

.endorsement-card__source:hover {
  opacity: 0.7;
}

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

/* --- Insights Posts Grid --- */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.insight-post {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-lg);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
}

.insight-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(155, 124, 184, 0.1);
}

.insight-post__date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xs);
}

.insight-post__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.insight-post__excerpt {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: var(--space-md);
  flex: 1;
}

.insight-post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: var(--space-md);
}

.insight-post__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.insight-post__link:hover {
  color: var(--heading);
}

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

/* --- WhatsApp Floating Button --- */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: all var(--duration) var(--ease);
  text-decoration: none;
}

.whatsapp-fab:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
}

.whatsapp-fab svg {
  width: 30px;
  height: 30px;
  fill: white;
}

@media (max-width: 480px) {
  .whatsapp-fab {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }

  .whatsapp-fab svg {
    width: 26px;
    height: 26px;
  }
}

/* --- Active nav state per page --- */
body.page-home .header__nav a[href="index.html"],
body.page-about .header__nav a[href="about.html"],
body.page-work .header__nav a[href="work.html"],
body.page-contact .header__nav a[href="contact.html"] {
  color: var(--purple);
}

body.page-home .header__nav a[href="index.html"]::after,
body.page-about .header__nav a[href="about.html"]::after,
body.page-work .header__nav a[href="work.html"]::after,
body.page-contact .header__nav a[href="contact.html"]::after {
  width: 100%;
}
