/* ==========================================================================
   NEXORYA — Case Study: Chez John
   Matches nexorya.com main site theme exactly
   ========================================================================== */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--body-font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: rgba(255, 255, 255, 0.85);
  background: #030308;
  overflow-x: hidden;
}

/* ===== SPACE STARFIELD ===== */
.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.starfield__layer {
  position: absolute;
  inset: 0;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: white;
  animation: twinkle var(--dur, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes twinkle {
  0%, 100% { opacity: var(--min-o, 0.15); transform: scale(1); }
  50% { opacity: var(--max-o, 0.7); transform: scale(1.3); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-8px) translateX(4px); }
  50% { transform: translateY(-4px) translateX(-6px); }
  75% { transform: translateY(-12px) translateX(2px); }
}

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

/* Ambient nebula glows */
.starfield::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 5% 10%, rgba(122, 38, 251, 0.15) 0%, transparent 100%),
    radial-gradient(ellipse 50% 60% at 92% 40%, rgba(6, 182, 212, 0.1) 0%, transparent 100%),
    radial-gradient(ellipse 60% 40% at 50% 90%, rgba(255, 95, 46, 0.08) 0%, transparent 100%),
    radial-gradient(ellipse 30% 30% at 70% 15%, rgba(119, 224, 242, 0.06) 0%, transparent 100%);
}

/* Scanlines */
.starfield::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.008) 2px,
    rgba(255, 255, 255, 0.008) 4px
  );
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.05);
}

.scroll-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-orange), var(--color-bleu));
  transform-origin: left;
  transform: scaleX(0);
}

/* ===== FLOATING ORBS ===== */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  animation: float-slow 20s ease-in-out infinite;
}

.orb--purple {
  width: 400px;
  height: 400px;
  background: rgba(122, 38, 251, 0.12);
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}

.orb--cyan {
  width: 350px;
  height: 350px;
  background: rgba(119, 224, 242, 0.08);
  top: 50%;
  right: -8%;
  animation-delay: -7s;
}

.orb--orange {
  width: 300px;
  height: 300px;
  background: rgba(255, 95, 46, 0.08);
  bottom: 10%;
  left: 20%;
  animation-delay: -14s;
}

/* Ensure content sits above starfield */
.nav, .case-hero, .case-section, .case-banner, .case-cta, .case-footer, .scroll-progress {
  position: relative;
  z-index: 2;
}

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection {
  background: var(--selection-bg);
  color: var(--selection-color);
}

/* ===== NAV — matches main site exactly ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

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

.nav__logo::before {
  content: '';
  position: absolute;
  inset: -12px -20px;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at center, rgba(122, 38, 251, 0.1) 0%, transparent 70%),
    radial-gradient(ellipse at center, rgba(6, 182, 212, 0.06) 0%, transparent 60%);
  opacity: 0.4;
  animation: logo-glow-breathe 4s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.4s var(--ease-2, ease), transform 0.4s var(--ease-2, ease);
}

.nav__logo:hover::before {
  opacity: 0.7;
  transform: scale(1.3);
  background:
    radial-gradient(ellipse at center, rgba(122, 38, 251, 0.2) 0%, transparent 65%),
    radial-gradient(ellipse at center, rgba(6, 182, 212, 0.12) 0%, transparent 55%);
}

@keyframes logo-glow-breathe {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.05); }
}

.nav__logo img {
  max-width: 120px;
  height: auto;
  filter:
    brightness(0) invert(1)
    drop-shadow(0 0 3px rgba(122, 38, 251, 0.3))
    drop-shadow(0 0 8px rgba(6, 182, 212, 0.2))
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.5));
  animation: logo-neon-pulse 4s ease-in-out infinite;
  transition: filter 0.4s var(--ease-2, ease), transform 0.3s var(--ease-2, ease);
}

@keyframes logo-neon-pulse {
  0%, 100% {
    filter:
      brightness(0) invert(1)
      drop-shadow(0 0 3px rgba(122, 38, 251, 0.3))
      drop-shadow(0 0 8px rgba(6, 182, 212, 0.2))
      drop-shadow(0 0 1px rgba(255, 255, 255, 0.5));
  }
  50% {
    filter:
      brightness(0) invert(1)
      drop-shadow(0 0 5px rgba(122, 38, 251, 0.45))
      drop-shadow(0 0 12px rgba(6, 182, 212, 0.25))
      drop-shadow(0 0 2px rgba(255, 255, 255, 0.7));
  }
}

.nav__logo:hover img {
  transform: scale(1.04);
  animation: none;
  filter:
    brightness(0) invert(1)
    drop-shadow(0 0 8px rgba(122, 38, 251, 0.6))
    drop-shadow(0 0 20px rgba(6, 182, 212, 0.35))
    drop-shadow(0 0 3px rgba(255, 255, 255, 0.8));
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
}

.nav__links a:hover { color: white; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--color-orange);
  color: white !important;
  font-weight: 600;
  transition: transform 0.2s var(--ease-2), box-shadow 0.2s;
}

.nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 95, 46, 0.4);
}

.cta-dots { display: inline-flex; gap: 3px; }
.cta-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  animation: cta-blink 1.4s infinite;
}
.cta-dot:nth-child(2) { animation-delay: 0.2s; }
.cta-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes cta-blink {
  0%, 80%, 100% { opacity: 0.3; }
  40% { opacity: 1; }
}

.case__back {
  display: none;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}
.case__back:hover { color: white; }

/* ===== HERO — CLEAN SPLIT ===== */
.case-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.case-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

/* Left: Text */
.case-hero__text {
  position: relative;
  z-index: 3;
}

.case-hero__tag {
  display: inline-block;
  font-family: var(--body-font);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(119, 224, 242, 0.8);
  padding: 8px 20px;
  border: 1px solid rgba(119, 224, 242, 0.2);
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(119, 224, 242, 0.04);
  box-shadow: 0 0 15px rgba(119, 224, 242, 0.08);
}

.case-hero__title {
  font-family: var(--heading-font);
  font-size: clamp(72px, 10vw, 140px);
  line-height: 0.85;
  margin-bottom: 28px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  background: linear-gradient(160deg, #ffffff 25%, var(--color-orange) 55%, var(--color-bleu) 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 60px rgba(255, 95, 46, 0.3)) drop-shadow(0 0 120px rgba(122, 38, 251, 0.15));
}

.case-hero__subtitle {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  max-width: 480px;
  margin-bottom: 40px;
}

.case-hero__subtitle strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

/* Stats row */
.case-hero__stats {
  display: flex;
  gap: 16px;
}

.case-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  min-width: 100px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.case-hero__stat:hover {
  border-color: rgba(255, 95, 46, 0.3);
  box-shadow: 0 0 25px rgba(255, 95, 46, 0.1);
  transform: translateY(-3px);
}

.case-hero__stat-number {
  font-family: var(--heading-font);
  font-size: clamp(26px, 2.5vw, 36px);
  background: linear-gradient(135deg, var(--color-orange), #ff9f6e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(255, 95, 46, 0.35));
}

.case-hero__stat-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* Right: Portrait frame */
.case-hero__portrait {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
}

.case-hero__portrait-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid rgba(119, 224, 242, 0.2);
  box-shadow:
    0 0 50px rgba(119, 224, 242, 0.1),
    0 0 100px rgba(122, 38, 251, 0.08);
  animation: float-gentle 8s ease-in-out infinite;
}

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

.case-hero__portrait-glow {
  position: absolute;
  inset: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(119, 224, 242, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Badge floating */
.case-hero__badge {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: rgba(5, 5, 12, 0.8);
  border: 1px solid rgba(119, 224, 242, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(119, 224, 242, 0.08);
}

.case-hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
  animation: cta-blink 2s infinite;
}

/* Scroll indicator */
.case-hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.case-hero__scroll span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.2);
}

.case-hero__scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(119, 224, 242, 0.4), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===== PHOTO BANNER ===== */
.case-banner {
  position: relative;
  width: 100%;
  height: clamp(280px, 35vw, 480px);
  overflow: hidden;
}

.case-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.case-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--color-black) 0%, transparent 20%),
    linear-gradient(to top, #0a0a0f 0%, transparent 20%),
    linear-gradient(135deg, rgba(122, 38, 251, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

/* ===== SECTIONS ===== */
.case-section {
  padding: clamp(60px, 8vw, var(--section-padding-lg)) 0;
}

.case-section--dark {
  background: #0a0a0f;
}

.case-section--tight {
  padding-bottom: 0;
}

.case-section--accent {
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(122, 38, 251, 0.12) 0%, transparent 100%),
    radial-gradient(ellipse 50% 50% at 80% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 100%),
    linear-gradient(135deg, rgba(122, 38, 251, 0.06) 0%, rgba(6, 182, 212, 0.04) 100%);
  border-top: 1px solid rgba(122, 38, 251, 0.2);
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
}

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

.case-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: linear-gradient(90deg, var(--color-orange), #ff9f6e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.case-label--dark {
  color: var(--color-orange);
}

.case-section h2,
.case-h2--dark {
  font-family: var(--heading-font);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  color: white;
  margin-bottom: 32px;
  max-width: 800px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 30%, rgba(119, 224, 242, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== TWO COLUMN LAYOUT ===== */
.case-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.case-two-col__left h2 {
  margin-bottom: 0;
}

.case-two-col__right p {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.case-two-col__right strong {
  color: white;
}

/* ===== CLIENT META ===== */
.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.case-meta__label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 6px;
}

.case-meta__value {
  font-size: 15px;
  font-weight: 500;
  color: white;
}

/* ===== CHALLENGES ===== */
.case-challenges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.case-challenge {
  padding: 32px;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.4s var(--ease-2), box-shadow 0.4s var(--ease-2), transform 0.3s var(--ease-2);
}

.case-challenge:hover {
  border-color: rgba(122, 38, 251, 0.35);
  box-shadow: 0 0 40px rgba(122, 38, 251, 0.1), inset 0 0 30px rgba(122, 38, 251, 0.03);
  transform: translateY(-3px);
}

.case-challenge__number {
  font-family: var(--heading-font);
  font-size: 36px;
  color: rgba(122, 38, 251, 0.35);
  margin-bottom: 16px;
}

.case-challenge h3 {
  font-family: var(--heading-font);
  font-size: 20px;
  color: white;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.case-challenge p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== SOLUTION ===== */
.case-solution {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.case-solution__block {
  padding: 0;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s var(--ease-2), border-color 0.3s;
  overflow: hidden;
}

.case-solution__img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.case-solution__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-2);
}

.case-solution__block:hover .case-solution__img img {
  transform: scale(1.05);
}

.case-solution__icon,
.case-solution__block h3,
.case-solution__block p,
.case-solution__block ul {
  margin-left: 36px;
  margin-right: 36px;
}

.case-solution__block:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 95, 46, 0.3);
  box-shadow: 0 12px 50px rgba(255, 95, 46, 0.1), 0 0 0 1px rgba(255, 95, 46, 0.1);
}

.case-solution__block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-orange), var(--color-bleu), rgba(119, 224, 242, 0.5));
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  opacity: 0;
  transition: opacity 0.4s;
}

.case-solution__block:hover::before {
  opacity: 1;
}

.case-solution__block {
  position: relative;
}

.case-solution__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(122, 38, 251, 0.15);
  color: var(--color-bleu);
  margin-bottom: 20px;
  margin-top: 28px;
  border: 1px solid rgba(122, 38, 251, 0.2);
  box-shadow: 0 0 20px rgba(122, 38, 251, 0.15);
  transition: box-shadow 0.3s, background 0.3s;
}

.case-solution__block:hover .case-solution__icon {
  background: rgba(122, 38, 251, 0.25);
  box-shadow: 0 0 30px rgba(122, 38, 251, 0.3), 0 0 60px rgba(122, 38, 251, 0.1);
}

.case-solution__block h3 {
  font-family: var(--heading-font);
  font-size: 22px;
  color: white;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.case-solution__block p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.case-solution__block strong {
  color: rgba(255, 255, 255, 0.85);
}

.case-solution__block ul {
  list-style: none;
  padding: 0;
}

.case-solution__block li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
}

.case-solution__block li:last-child {
  padding-bottom: 36px;
}

.case-solution__block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-orange);
  opacity: 0.7;
}

/* ===== VIDEO REELS SHOWCASE ===== */
.case-reels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.case-reel {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.3s;
}

.case-reel:hover {
  border-color: rgba(119, 224, 242, 0.25);
  box-shadow: 0 0 40px rgba(119, 224, 242, 0.08);
  transform: translateY(-4px);
}

.case-reel__embed {
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.case-reel__embed iframe {
  width: 100%;
  height: 100%;
}

.case-reel__meta {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-reel__views {
  font-family: var(--heading-font);
  font-size: 18px;
  background: linear-gradient(135deg, var(--color-orange), #ff9f6e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(255, 95, 46, 0.3));
}

.case-reel__title {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== SECTION INTRO ===== */
.case-section__intro {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 680px;
  margin-bottom: 48px;
}

.case-section__intro strong {
  color: white;
}

/* ===== INSIGHTS ===== */
.case-insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.case-insight {
  padding: 36px;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.3s var(--ease-2), transform 0.3s var(--ease-2);
}

.case-insight:hover {
  border-color: rgba(255, 95, 46, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(255, 95, 46, 0.06);
}

.case-insight__number {
  display: block;
  font-family: var(--heading-font);
  font-size: 32px;
  color: rgba(255, 95, 46, 0.4);
  margin-bottom: 16px;
}

.case-insight h3 {
  font-family: var(--heading-font);
  font-size: 20px;
  color: white;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.case-insight p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== RESULTS ===== */
.case-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.case-result {
  padding: 36px;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  transition: border-color 0.4s var(--ease-2), transform 0.3s var(--ease-2), box-shadow 0.4s;
}

.case-result:hover {
  border-color: rgba(119, 224, 242, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(119, 224, 242, 0.08), inset 0 0 20px rgba(119, 224, 242, 0.03);
}

.case-result--highlight {
  background: linear-gradient(135deg, rgba(255, 95, 46, 0.08) 0%, rgba(122, 38, 251, 0.06) 100%);
  border-color: rgba(255, 95, 46, 0.2);
}

.case-result--highlight:hover {
  border-color: rgba(255, 95, 46, 0.4);
}

.case-result__prefix {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.case-result__number {
  display: block;
  font-family: var(--heading-font);
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #77e0f2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 15px rgba(119, 224, 242, 0.2));
}

.case-result--highlight .case-result__number {
  background: linear-gradient(135deg, var(--color-orange), var(--color-bleu));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(42px, 5vw, 64px);
}

.case-result__unit {
  font-size: 0.5em;
  color: rgba(255, 255, 255, 0.4);
}

.case-result--highlight .case-result__unit {
  -webkit-text-fill-color: initial;
  background: none;
  color: rgba(255, 255, 255, 0.4);
}

.case-result__label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 4px;
}

.case-result__detail {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== QUOTE ===== */
.case-quote {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 40px;
  border-radius: 24px;
  background: rgba(122, 38, 251, 0.04);
  border: 1px solid rgba(122, 38, 251, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.case-quote::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(122, 38, 251, 0.15), transparent 50%, rgba(119, 224, 242, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
}

.case-quote__icon {
  display: block;
  margin: 0 auto 24px;
  color: var(--color-bleu);
  filter: drop-shadow(0 0 20px rgba(122, 38, 251, 0.3));
}

.case-quote blockquote p {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
  margin-bottom: 32px;
}

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

.case-quote__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(122, 38, 251, 0.4);
  box-shadow: 0 0 20px rgba(122, 38, 251, 0.2), 0 0 40px rgba(122, 38, 251, 0.08);
}

.case-quote__author div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.case-quote__author strong {
  font-size: 16px;
  color: white;
}

.case-quote__author span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== CTA ===== */
.case-cta {
  padding: clamp(80px, 10vw, 140px) 0;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255, 95, 46, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 30% 60%, rgba(122, 38, 251, 0.08) 0%, transparent 100%),
    radial-gradient(ellipse 40% 40% at 70% 40%, rgba(6, 182, 212, 0.06) 0%, transparent 100%),
    linear-gradient(180deg, #050507 0%, #0a0a14 100%);
}

.case-cta h2 {
  font-family: var(--heading-font);
  font-size: var(--fs-h2);
  margin-bottom: 16px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 20%, var(--color-orange) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(255, 95, 46, 0.15));
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.case-cta p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 40px;
}

.case-cta__btn {
  display: inline-flex;
  align-items: center;
  padding: 16px 40px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--color-orange), #ff7b4a);
  color: white;
  font-family: var(--body-font);
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.3s var(--ease-2), box-shadow 0.3s;
  box-shadow: 0 0 20px rgba(255, 95, 46, 0.25), 0 0 60px rgba(255, 95, 46, 0.1);
  animation: float-gentle 4s ease-in-out infinite;
}

.case-cta__btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 30px rgba(255, 95, 46, 0.4), 0 0 80px rgba(255, 95, 46, 0.2), 0 0 120px rgba(255, 95, 46, 0.08);
}

/* ===== FOOTER ===== */
.case-footer {
  padding: 24px 0;
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.case-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.case-footer p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

.case-footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

.case-footer__credit img {
  height: 13px;
  width: auto;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.case-footer__credit img:hover { opacity: 0.8; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .case-hero__grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .case-hero__subtitle { margin-left: auto; margin-right: auto; }
  .case-hero__stats { justify-content: center; }
  .case-hero__portrait-frame { max-width: 320px; margin: 0 auto; }
  .case-two-col { grid-template-columns: 1fr; gap: 32px; }
  .case-meta { grid-template-columns: repeat(2, 1fr); }
  .case-banner { height: 260px; }
  .case-challenges { grid-template-columns: 1fr; }
  .case-solution { grid-template-columns: 1fr; }
  .case-solution__img { height: 220px; }
  .case-insights { grid-template-columns: 1fr; }
  .case-reels { grid-template-columns: repeat(2, 1fr); }
  .case-results { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .case__back { display: block; }

  .nav { padding: 16px 20px; }
  .case-hero__stats { gap: 12px; }
  .case-hero__stat { min-width: 100px; padding: 16px 20px; }

  .case-meta { grid-template-columns: 1fr 1fr; }
  .case-results { grid-template-columns: 1fr; }
  .case-insights { gap: 20px; }
  .case-reels { grid-template-columns: 1fr 1fr; gap: 12px; }
  .case-banner { height: 200px; }

  .case-footer__inner { flex-direction: column; gap: 12px; text-align: center; }
}
