/* ============================================
   GUSTI-CHEF CASE STUDY STYLES
   ============================================ */

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

:root {
  /* Color Palette */
  --background: 41 30% 94%;
  /* #F5F2EC */
  --foreground: 86 9% 29%;
  /* #505749 */
  --card: 41 50% 91%;
  --card-foreground: 86 9% 29%;
  --popover: 41 30% 94%;
  --popover-foreground: 86 9% 29%;
  --primary: 86 9% 29%;
  /* #505749 */
  --primary-foreground: 41 30% 96%;
  --secondary: 41 60% 91%;
  /* #FEF0D3 */
  --secondary-foreground: 86 9% 29%;
  --muted: 41 25% 88%;
  --muted-foreground: 86 9% 45%;
  --accent: 41 96% 91%;
  /* #FEF0D3 */
  --accent-foreground: 86 9% 29%;
  --highlight: 327 78% 47%;
  /* #D41A7D - Changed to rose #E90083 */
  --highlight-rgb: 233 0 131;
  /* Rose accent */
  --highlight-foreground: 41 30% 96%;
  --destructive: 0 60% 45%;
  --destructive-foreground: 41 30% 96%;
  --border: 86 8% 78%;
  --input: 86 8% 78%;
  --ring: 86 9% 29%;
  --radius: 0.75rem;

  /* Shadows */
  --shadow-soft: 0 18px 40px -24px hsl(86 15% 20% / 0.18);
  --shadow-card:
    0 1px 0 hsl(86 8% 78% / 0.6), 0 24px 60px -32px hsl(86 15% 20% / 0.22);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family:
    "Karla",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: rgb(var(--highlight-rgb));
  color: hsl(var(--highlight-foreground));
}

#root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================================
   TYPOGRAPHY & UTILITIES
   ============================================ */

.label-eyebrow {
  font-size: 0.6875rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  font-family:
    "Karla",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   NAVIGATION BAR
   ============================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: hsl(var(--background) / 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(var(--border));
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .nav-container {
    padding: 1rem 2rem;
    gap: 2.5rem;
  }
}

.nav-logo {
  font-weight: 700;
  color: hsl(var(--foreground));
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  transition: color 200ms;
  white-space: nowrap;
}

.nav-logo:hover {
  color: rgb(var(--highlight-rgb));
}

.nav-logo img {
  width: 130px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .nav-links {
    gap: 2.5rem;
  }
}

.nav-link {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  text-decoration: none;
  transition: color 200ms;
  color: hsl(var(--muted-foreground));
}

.nav-link:hover {
  color: hsl(var(--foreground));
}

.nav-link.active {
  color: rgb(var(--highlight-rgb));
}

/* ============================================
   MAIN LAYOUT
   ============================================ */

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-study-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
}

@media (min-width: 1024px) {
  .case-study-wrapper {
    flex-direction: row;
  }
}

/* ============================================
   SIDEBAR (DESKTOP)
   ============================================ */

.sidebar {
  display: none;
  position: sticky;
  top: 0;
  height: 100vh;
  width: 16rem;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 2.5rem 2rem 2.5rem;
  border-right: 1px solid hsl(var(--border) / 0.6);
  overflow-y: auto;
}

@media (min-width: 1024px) {
  .sidebar {
    display: flex;
  }
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: color 200ms;
  color: hsl(var(--muted-foreground));
}

.sidebar-back:hover {
  color: rgb(var(--highlight-rgb));
}

.sidebar-back-arrow {
  display: inline-block;
  font-size: 1rem;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sidebar-back:hover .sidebar-back-arrow {
  transform: translateX(-2px);
}

.sidebar-back-text {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
}

.sidebar-title {
  font-family: "Karla", sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: hsl(var(--foreground));
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.sidebar-accent {
  color: rgb(var(--highlight-rgb));
}

.sidebar-dot {
  color: rgb(var(--highlight-rgb));
}

/* Sidebar Navigation */

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  text-decoration: none;
  transition: color 200ms;
  color: hsl(var(--muted-foreground));
}

.sidebar-nav-item:hover,
.sidebar-nav-item.active {
  color: rgb(var(--highlight-rgb));
}

.sidebar-nav-num {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  min-width: 1.2rem;
}

.sidebar-nav-item:hover .sidebar-nav-num,
.sidebar-nav-item.active .sidebar-nav-num {
  color: rgb(var(--highlight-rgb));
}

.sidebar-nav-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
}

.sidebar-nav-item:hover .sidebar-nav-label,
.sidebar-nav-item.active .sidebar-nav-label {
  color: rgb(var(--highlight-rgb));
}

.sidebar-footer {
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border) / 0.6);
}

.sidebar-footer-text {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  font-weight: 600;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground) / 0.7);
  text-align: center;
}

/* ============================================
   MOBILE TOP BAR
   ============================================ */

.mobile-topbar {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 3.5rem;
  z-index: 30;
  gap: 0;
  background-color: hsl(var(--background) / 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(var(--border) / 0.6);
}

@media (min-width: 1024px) {
  .mobile-topbar {
    display: none;
  }
}

.mobile-topbar-title {
  display: block;
  padding: 1rem 1.25rem;
  font-family: "Karla", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: hsl(var(--foreground));
  text-decoration: none;
  border-bottom: 1px solid hsl(var(--border) / 0.3);
}

.mobile-topbar-accent {
  color: rgb(var(--highlight-rgb));
}

.mobile-topbar-dot {
  color: rgb(var(--highlight-rgb));
}

.mobile-topbar-nav {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 0;
  border-bottom: 1px solid hsl(var(--border) / 0.3);
}

.mobile-nav-item {
  flex-shrink: 0;
  padding: 0.75rem 1.25rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  text-decoration: none;
  color: hsl(var(--muted-foreground));
  transition: color 200ms;
  border-bottom: 2px solid transparent;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: rgb(var(--highlight-rgb));
  border-bottom-color: rgb(var(--highlight-rgb));
}

/* ============================================
   CONTENT AREA
   ============================================ */

.content-area {
  flex: 1;
  min-width: 0;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .content-area {
    padding: 0 2rem;
  }
}

@media (min-width: 768px) {
  .content-area {
    padding: 0 2.5rem;
  }
}

/* ============================================
   CASE STUDY HERO HEADER
   ============================================ */

.case-study-hero {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 0;
}

@media (min-width: 640px) {
  .case-study-hero {
    padding: 4rem 0;
  }
}

@media (min-width: 768px) {
  .case-study-hero {
    padding: 4rem 0;
  }
}

.hero-eyebrow {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUpHero 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

.hero-title {
  font-family: "Karla", sans-serif;
  font-size: 3.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  word-break: break-word;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUpHero 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards 100ms;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.375rem;
  }
}

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

.hero-description {
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUpHero 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards 200ms;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.125rem;
  }
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUpHero 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards 300ms;
}

.hero-tag {
  display: inline-block;
  padding: 0.625rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  background-color: hsl(var(--card) / 0.6);
  color: hsl(var(--foreground) / 0.8);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
}

/* ============================================
   HERO IMAGE SECTION
   ============================================ */

.hero-image-section {
  max-width: 52rem;
  margin: 2rem auto 4rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUpHero 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards 400ms;
}

@media (min-width: 640px) {
  .hero-image-section {
    margin: 3rem auto 6rem;
  }
}

/* ============================================
   IMAGE PLACEHOLDERS
   ============================================ */

.image-placeholder {
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  overflow: hidden;
  background-color: hsl(var(--card));
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.placeholder-content {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: hsl(var(--card));
}

.botanical-surface {
  background-color: hsl(var(--muted) / 0.4);
}

.placeholder-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  text-align: center;
  padding: 1rem;
}

.placeholder-caption {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  border-top: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
}

/* ============================================
   CASE SECTIONS
   ============================================ */

.case-section {
  max-width: 52rem;
  margin: 0 auto 6rem;
  scroll-margin-top: 8rem;
}

@media (min-width: 768px) {
  .case-section {
    margin-bottom: 8rem;
  }
}

.section-header {
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 2rem;
  }
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

.section-index {
  color: rgb(var(--highlight-rgb));
  font-weight: 700;
}

.section-divider {
  color: hsl(var(--border));
}

.section-label {
  color: hsl(var(--muted-foreground));
}

.section-title {
  font-family: "Karla", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 32rem;
  margin: 0 0 2rem 0;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.75rem;
  }
}

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

/* ============================================
   CONTEXT SECTION
   ============================================ */

.context-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@media (min-width: 768px) {
  .context-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 2.5rem;
  }
}

.context-main {
  font-size: 1rem;
  line-height: 1.6;
  color: hsl(var(--foreground) / 0.85);
}

@media (min-width: 768px) {
  .context-main {
    font-size: 1.125rem;
  }
}

.context-main em {
  font-style: italic;
}

.context-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border) / 0.7);
}

@media (min-width: 768px) {
  .context-sidebar {
    padding-top: 0;
    padding-left: 1.5rem;
    border-top: none;
    border-left: 1px solid hsl(var(--border) / 0.7);
  }
}

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

.context-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.25rem;
}

.context-value {
  font-size: 1rem;
  color: hsl(var(--foreground));
  line-height: 1.5;
}

/* ============================================
   PROBLEM & GOALS SECTION
   ============================================ */

.problem-goals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@media (min-width: 768px) {
  .problem-goals-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.problem-card,
.goals-card {
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 640px) {
  .problem-card,
  .goals-card {
    padding: 2rem;
  }
}

@media (min-width: 768px) {
  .problem-card,
  .goals-card {
    padding: 2.5rem;
  }
}

.problem-card {
  background-color: hsl(var(--card));
}

.goals-card {
  background-color: rgb(var(--highlight-rgb) / 0.08);
}

.problem-header,
.goals-header {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  margin-bottom: 1.25rem;
  margin-top: 0;
}

.problem-header {
  color: hsl(var(--muted-foreground));
}

.goals-header {
  color: rgb(var(--highlight-rgb));
}

.problem-list,
.goals-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.problem-list li,
.goals-list li {
  display: flex;
  gap: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: hsl(var(--foreground) / 0.85);
}

.problem-list li::before {
  content: "";
  display: block;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background-color: hsl(var(--foreground) / 0.4);
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.goals-list li::before {
  content: "";
  display: block;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background-color: rgb(var(--highlight-rgb));
  margin-top: 0.5rem;
  flex-shrink: 0;
}

/* ============================================
   PROCESS SECTION
   ============================================ */

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background-color: hsl(var(--border) / 0.7);
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@media (min-width: 640px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.process-card {
  background-color: hsl(var(--background));
  padding: 1.5rem;
  transition: background-color 500ms ease;
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .process-card {
    padding: 2rem;
  }
}

@media (min-width: 768px) {
  .process-card {
    padding: 2.5rem;
  }
}

.process-card:hover {
  background-color: rgb(var(--highlight-rgb) / 0.08);
}

.process-number {
  font-family: "Karla", sans-serif;
  font-size: 3rem;
  font-weight: 400;
  color: rgb(var(--highlight-rgb) / 0.5);
  line-height: 1;
  margin: 0 0 1rem 0;
}

@media (min-width: 640px) {
  .process-number {
    font-size: 3.5rem;
  }
}

@media (min-width: 768px) {
  .process-number {
    font-size: 4rem;
  }
}

.process-title {
  font-family: "Karla", sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: hsl(var(--foreground));
  line-height: 1.3;
  margin: 0 0 0.75rem 0;
}

@media (min-width: 640px) {
  .process-title {
    font-size: 1.5rem;
  }
}

.process-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: hsl(var(--foreground) / 0.7);
  margin: 0;
  flex-grow: 1;
}

@media (min-width: 640px) {
  .process-desc {
    font-size: 1rem;
  }
}

/* ============================================
   SOLUTION SECTION
   ============================================ */

.solution-content {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.solution-intro {
  font-size: 1rem;
  line-height: 1.6;
  color: hsl(var(--foreground) / 0.85);
  margin-bottom: 2rem;
  max-width: 40rem;
}

@media (min-width: 768px) {
  .solution-intro {
    font-size: 1.125rem;
  }
}

.solution-intro strong {
  color: hsl(var(--foreground));
  font-weight: 600;
}

.solution-image {
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.solution-image-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: rgb(var(--highlight-rgb));
  margin-bottom: 1rem;
}

.solution-image .image-placeholder {
  margin-bottom: 0;
}

.solution-outro {
  font-size: 1rem;
  line-height: 1.6;
  color: hsl(var(--foreground) / 0.85);
  margin: 2rem 0;
  max-width: 40rem;
}

@media (min-width: 768px) {
  .solution-outro {
    font-size: 1.125rem;
  }
}

.solution-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  margin-top: 1.5rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: rgb(var(--highlight-rgb));
  text-decoration: none;
  transition: color 200ms;
}

.solution-cta:hover {
  color: hsl(var(--foreground));
}

.cta-arrow {
  display: inline-block;
  transition: transform 200ms;
}

.solution-cta:hover .cta-arrow {
  transform: translateX(2px);
}

/* ============================================
   RESULTS SECTION
   ============================================ */

.results-content {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.results-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0 0 3rem 0;
  padding: 0;
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}

.result-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid hsl(var(--border));
  transition: padding 200ms;
}

.result-item:last-child {
  border-bottom: none;
}

@media (min-width: 640px) {
  .result-item {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 0;
  }
}

.result-metric {
  font-family: "Karla", sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: rgb(var(--highlight-rgb));
  line-height: 1.3;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .result-metric {
    font-size: 1.3rem;
  }
}

@media (min-width: 768px) {
  .result-metric {
    font-size: 1.5rem;
  }
}

.result-label {
  font-size: 1rem;
  color: hsl(var(--foreground) / 0.7);
  line-height: 1.5;
}

@media (min-width: 640px) {
  .result-label {
    text-align: right;
  }
}

@media (min-width: 768px) {
  .result-label {
    font-size: 1.125rem;
  }
}

.results-image {
  margin-top: 3rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.results-image-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: rgb(var(--highlight-rgb));
  margin-bottom: 0.5rem;
}

.results-image-title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: hsl(var(--foreground));
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .results-image-title {
    font-size: 1.875rem;
  }
}

@media (min-width: 768px) {
  .results-image-title {
    font-size: 2.25rem;
  }
}

/* ============================================
   SKILLS SECTION
   ============================================ */

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  list-style: none;
  margin: 0;
  padding: 0;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.skill-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  background-color: hsl(var(--card));
  color: hsl(var(--foreground) / 0.8);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  transition: all 300ms ease;
}

.skill-badge:hover {
  background-color: rgb(var(--highlight-rgb) / 0.1);
  color: rgb(var(--highlight-rgb));
  border-color: rgb(var(--highlight-rgb) / 0.3);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  max-width: 52rem;
  margin: 6rem auto 0;
  padding: 4rem 0;
  border-top: 1px solid hsl(var(--border));
}

@media (min-width: 768px) {
  .cta-section {
    padding: 6rem 0;
  }
}

.cta-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgb(var(--highlight-rgb) / 0.6);
  margin-bottom: 2rem;
}

.divider-line {
  height: 1px;
  width: 4rem;
  background-color: hsl(var(--border));
  display: block;
}

@media (min-width: 640px) {
  .divider-line {
    width: 6rem;
  }
}

@media (min-width: 768px) {
  .divider-line {
    width: 8rem;
  }
}

.botanical-sprig {
  width: 3.5rem;
  height: auto;
  flex-shrink: 0;
}

.cta-eyebrow {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  text-align: center;
  margin: 0 0 1.5rem 0;
}

.cta-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .cta-links {
    gap: 4rem;
  }
}

.cta-link-back,
.cta-link-next {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 200ms;
  white-space: nowrap;
}

.cta-link-back:hover,
.cta-link-next:hover {
  color: rgb(var(--highlight-rgb));
}

.cta-link-back .cta-arrow {
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cta-link-back:hover .cta-arrow {
  transform: translateX(-2px);
}

.cta-link-next .cta-arrow {
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cta-link-next:hover .cta-arrow {
  transform: translateX(2px);
}

.cta-separator {
  width: 1px;
  height: 0.75rem;
  background-color: hsl(var(--border));
  display: block;
}

.cta-footer {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: hsl(var(--muted-foreground) / 0.7);
  text-align: center;
  margin: 0;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 1023px) {
  .case-section {
    scroll-margin-top: 10rem;
  }
}

@media (max-width: 639px) {
  .case-section {
    scroll-margin-top: 12rem;
  }
}

/* ============================================
   PROCESS MODAL & DETAIL BUTTON
   ============================================ */

.process-detail-btn {
  margin-top: 1.5rem;
  align-self: flex-start;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: hsl(var(--muted-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  background-color: transparent;
  padding: 0.625rem 1.25rem;
  cursor: pointer;
  transition: all 300ms ease;
  font-family: inherit;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.process-detail-btn:hover {
  background-color: rgb(var(--highlight-rgb) / 0.05);
  color: rgb(var(--highlight-rgb));
  border-color: rgb(var(--highlight-rgb) / 0.3);
}

.process-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

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

.process-modal {
  background-color: #fffbf9;
  border-radius: var(--radius);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.process-modal-overlay.is-open .process-modal {
  transform: translateY(0);
}

.process-modal-header {
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: flex-end;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.process-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: hsl(var(--foreground));
  transition: color 0.2s;
  padding: 0.25rem;
}

.process-modal-close:hover {
  color: rgb(var(--highlight-rgb));
}

.process-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  color: hsl(var(--foreground));
  line-height: 1.6;
}

.process-modal-footer {
  padding: 1.5rem;
  border-top: 1px solid hsl(var(--border) / 0.5);
  display: flex;
  justify-content: flex-start;
}

/* Modal Content  */
.modal-step-header {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2rem;
}

.modal-step-number {
  font-family: "Karla", sans-serif;
  font-size: 60px;
  font-weight: 700;
  color: rgb(var(--highlight-rgb));
  line-height: 1;
}

.modal-step-title {
  font-family: "Karla", sans-serif;
  font-size: 30.8px;
  font-weight: 700;
  color: hsl(var(--foreground));
  line-height: 1.2;
}

.modal-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section-title {
  font-family: "Karla", sans-serif;
  font-size: 52px;
  font-weight: 700;
  color: hsl(var(--foreground));
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.modal-image-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  background-color: hsl(var(--card));
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

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

.modal-text-content {
  font-family: "Karla", sans-serif;
  font-size: 16px;
  color: hsl(var(--foreground));
  line-height: 1.6;
}

.modal-text-content p {
  margin-bottom: 1rem;
}

.modal-text-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.modal-text-content li {
  margin-bottom: 0.5rem;
}

.modal-callout {
  background-color: #e4dfcf;
  padding: 2.5rem 3rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.modal-callout p {
  font-family: "Karla", sans-serif;
  font-size: 16px;
  color: hsl(var(--foreground));
  margin: 0;
}

.concurrence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.concurrence-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.concurrence-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.concurrence-item p {
  font-family: "Karla", sans-serif;
  font-size: 11px;
  color: #000;
  line-height: 1.4;
}

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

  .modal-section-title {
    font-size: 32px;
  }

  .modal-step-number {
    font-size: 60px;
  }

  .modal-step-title {
    font-size: 24px;
  }
}

/* Specific Modal 03 Enhancements */
.modal-row {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.modal-col-text {
  flex: 1.5;
}

.modal-col-title {
  flex: 1;
}

.modal-section-title-small {
  font-family: "Karla", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  line-height: 1.2;
}

.modal-text-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: hsl(var(--foreground) / 0.8);
}

.modal-text-subtitle {
  font-size: 1.125rem;
  line-height: 1.4;
  color: hsl(var(--foreground) / 0.7);
  margin-bottom: 1.5rem;
}

.no-bg {
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.rounded {
  border-radius: var(--radius);
}

.shadow {
  box-shadow: var(--shadow-card);
}

/* Stats Box Styling */
.stats-box-wrapper {
  display: flex;
  flex-direction: row;
  background-color: #6066d8; /* Violet Martine */
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1.5rem;
  color: white;
  min-height: 180px;
}

.stats-box-image {
  flex: 1;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.stats-mockup {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.stats-content {
  flex: 1.5;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stats-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
}

.stats-title::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 100px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.stats-grid {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 1rem;
}

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

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

/* QR Code styling */
.modal-col-qr {
  flex: 0 0 120px;
  display: flex;
  justify-content: center;
}

.qr-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.align-center {
  align-items: center;
}

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

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  .modal-row {
    flex-direction: column;
    gap: 1rem;
  }

  .modal-row.reverse-mobile {
    flex-direction: column-reverse;
  }

  .stats-box-wrapper {
    flex-direction: column;
  }

  .stats-box-image {
    height: 200px;
  }

  .stats-content {
    padding: 1.5rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .modal-col-qr {
    align-self: center;
    width: 120px;
  }
}

/* Modal 04 Enhancements */
.modal-intro-text {
  font-size: 1rem;
  line-height: 1.6;
  color: hsl(var(--foreground) / 0.8);
  margin-bottom: 3.75rem; /* 60px gap in figma */
  max-width: 534px;
}

.video-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem; /* 20px gap */
  margin-bottom: 3.75rem; /* 60px gap between sections */
}

.video-section:last-child {
  margin-bottom: 0;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 537px;
  aspect-ratio: 537 / 303;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background-color: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-container.no-aspect {
  aspect-ratio: auto;
  height: auto;
  min-height: 303px;
}

.modal-video-gif {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .modal-intro-text {
    margin-bottom: 3rem; /* 48px gap */
    max-width: 100%;
  }

  .video-section {
    gap: 1rem; /* 16px gap */
    margin-bottom: 3rem;
  }

  .video-container {
    max-width: 100%;
    aspect-ratio: 360 / 203;
  }

  .video-container.no-aspect {
    min-height: 203px;
  }
}
