/* =========================================================
   LD.CLOUD — CASES PAGE
   Final clean version
   ========================================================= */

:root {
  --bg: #f7f5f2;
  --surface: #ffffff;
  --surface-soft: #f1eeea;
  --soft-peach: #fff0e7;
  --soft-taupe: #eee7df;
  --text: #111111;
  --muted: #69645f;
  --muted-2: #9a948e;
  --line: rgba(17, 17, 17, 0.09);
  --line-strong: rgba(17, 17, 17, 0.14);
  --orange: #ff5a00;
  --orange-deep: #e84900;
  --shadow: 0 24px 70px rgba(42, 31, 24, 0.10);
  --shadow-soft: 0 12px 35px rgba(42, 31, 24, 0.07);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 22px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

/* =========================================================
   HEADER
   Cloud matches the index page exactly.
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 242, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-right: auto;
}

.brand-cloud {
  position: relative;
  width: 52px;
  height: 21px;
  flex: 0 0 auto;
  margin-top: 4px;
  border-radius: 13px 16px 12px 12px;
  background: var(--orange);
  box-shadow: inset 0 -6px 12px rgba(190, 59, 0, 0.12);
}

.brand-cloud::before,
.brand-cloud::after {
  content: "";
  position: absolute;
  background: var(--orange);
  border-radius: 50%;
}

.brand-cloud::before {
  width: 21px;
  height: 21px;
  left: 8px;
  top: -10px;
}

.brand-cloud::after {
  width: 25px;
  height: 25px;
  right: 6px;
  top: -9px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.brand-subtitle {
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.menu a {
  position: relative;
  color: #5d5955;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s ease;
}

.menu a:hover,
.menu a.active {
  color: var(--text);
}

.menu a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  border-radius: 999px;
  background: var(--orange);
}

.nav-cta,
.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font-size: 14px;
  font-weight: 800;
  transition: 0.2s ease;
}

.nav-cta {
  background: #111;
  color: #fff;
}

.nav-cta:hover,
.btn:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #111;
}

.mobile-menu {
  display: none;
  padding: 0 24px 18px;
  background: rgba(247, 245, 242, 0.97);
}

.mobile-menu.open {
  display: grid;
  gap: 8px;
}

.mobile-menu a {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-weight: 700;
}

/* =========================================================
   GLOBAL TYPOGRAPHY / BUTTONS
   ========================================================= */

.eyebrow,
.section-label,
.case-number,
.block-label,
.system-kicker,
.stat-label {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.btn-orange {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 28px rgba(255, 90, 0, 0.18);
}

.btn-orange:hover {
  background: var(--orange-deep);
}

.btn-outline {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.74);
}

.section-small {
  padding: 56px 0 28px;
}

.split-heading {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  align-items: end;
  gap: 64px;
}

.split-heading h2,
.portfolio-cta-shell h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.accent-word {
  color: var(--orange);
}

.section-description {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

/* =========================================================
   HERO
   ========================================================= */

.cases-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 64px;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(86px);
  pointer-events: none;
}

.hero-glow-one {
  width: 360px;
  height: 360px;
  right: 4%;
  top: 2%;
  background: rgba(255, 90, 0, 0.12);
}

.hero-glow-two {
  width: 300px;
  height: 300px;
  left: -5%;
  bottom: 0;
  background: rgba(246, 219, 202, 0.5);
}

.cases-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 68px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(58px, 6vw, 88px);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.hero-copy h1 span {
  color: var(--orange);
}

.hero-text {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-system {
  min-height: 520px;
}

.system-board {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.system-header,
.system-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.system-header strong {
  font-size: 24px;
  letter-spacing: -0.05em;
}

.system-header .system-kicker {
  margin-bottom: 7px;
  color: var(--muted-2);
}

.system-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.system-card {
  min-height: 250px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
}

.system-card h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.system-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.system-number {
  width: 46px;
  height: 46px;
  margin-bottom: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
  color: var(--orange);
  font-size: 14px;
  font-weight: 900;
}

.soft-peach {
  background: var(--soft-peach);
}

.soft-taupe {
  background: var(--soft-taupe);
}

.white-card {
  background: #fff;
}

.lifted {
  transform: translateY(14px);
}

.system-footer {
  margin-top: 24px;
  padding-top: 18px;
  justify-content: flex-start;
  gap: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

/* =========================================================
   BRAND LOGO RAIL
   Desktop = 6 columns
   Phone = horizontal swipe with next card visible
   ========================================================= */

.brand-rail-section {
  padding: 26px 0 18px;
}

.brand-rail-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 4px 16px;
  border-top: 1px solid var(--line);
}

.brand-rail-label > span {
  padding-top: 26px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.brand-rail-label b {
  padding-top: 26px;
  color: var(--orange);
  font-size: 14px;
}

.mobile-hint {
  display: none;
}

.brand-logo-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.brand-logo {
  min-width: 0;
  min-height: 150px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.brand-logo:hover,
.brand-logo.active {
  transform: translateY(-4px);
  border-color: rgba(255, 90, 0, 0.28);
}

.brand-logo img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--line);
}

.brand-logo b {
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-align: center;
}

/* =========================================================
   CASE SHELL / HEADER
   ========================================================= */

.case-section {
  padding: 34px 0;
  scroll-margin-top: 106px;
}

.case-shell {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.case-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.case-head h2 {
  margin: 0;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.case-summary {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.case-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.case-title-row .case-number {
  margin-bottom: 0;
}

.new-case-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--soft-peach);
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.case-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.case-chips span {
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.case-block {
  margin-top: 28px;
}

/* =========================================================
   PROFILE PACKAGING
   Important: screenshot uses contain instead of cover so it
   does not crop the Instagram profile.
   ========================================================= */

.profile-block {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
}

.profile-preview-card,
.profile-copy-card,
.performance-intro,
.stat-card,
.reels-block,
.portfolio-cta-shell,
.contact-shell {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
}

.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}

.preview-top strong {
  color: var(--orange);
  font-size: 14px;
}

.profile-preview-media {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border-radius: 0 0 30px 30px;
  background: #fff;
}

.profile-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  background: #fff;
}

.profile-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 34px;
  background: linear-gradient(135deg, #f6eee7, #ebe1d8);
  color: var(--muted);
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
}

.profile-copy-card {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #fff;
}

.profile-copy-card h3,
.performance-intro h3,
.block-top h3 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.profile-copy-card > p:not(.block-label),
.performance-intro > p:not(.block-label) {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.mini-points {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-points article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-soft);
}

.soft-peach .mini-points article {
  background: rgba(255, 255, 255, 0.68);
}

.mini-points article span {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 900;
}

.mini-points h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
}

.mini-points p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* =========================================================
   REELS
   No swipe pill / no arrow buttons anywhere.
   Users can drag/scroll naturally.
   ========================================================= */

.reels-block {
  padding: 28px;
  background: rgba(255, 255, 255, 0.9);
}

.block-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.simple-top {
  justify-content: flex-start;
}

.video-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 17, 17, 0.14) transparent;
  padding-bottom: 8px;
}

.video-track::-webkit-scrollbar {
  height: 8px;
}

.video-track::-webkit-scrollbar-track {
  background: transparent;
}

.video-track::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.14);
}

.video-card {
  min-width: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #171717;
}

.video-card.is-missing {
  display: none;
}

.video-media {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #181818;
}

.video-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  font-size: 15px;
}

.video-card-copy {
  padding: 18px 20px 22px;
  background: #111;
}

.video-card-copy span {
  display: block;
  margin-bottom: 10px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.video-card-copy strong {
  display: block;
  color: #fff;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

/* Nargis intentionally has only two videos. */
.two-video-track {
  grid-auto-flow: initial;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* =========================================================
   REACH / PERFORMANCE
   ========================================================= */

.performance-block {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 0.9fr;
  gap: 18px;
}

.performance-intro,
.stat-card {
  min-width: 0;
  padding: 32px;
}

.performance-intro h3 {
  margin-top: 6px;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(58px, 5vw, 82px);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.stat-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.stat-bars {
  height: 108px;
  margin-top: 24px;
  display: flex;
  align-items: end;
  gap: 8px;
}

.stat-bars i {
  display: block;
  flex: 1;
  border-radius: 10px 10px 0 0;
  background: var(--orange);
}

.stat-bars i:nth-child(1) { height: 20px; }
.stat-bars i:nth-child(2) { height: 30px; }
.stat-bars i:nth-child(3) { height: 40px; }
.stat-bars i:nth-child(4) { height: 56px; }
.stat-bars i:nth-child(5) { height: 70px; }
.stat-bars i:nth-child(6) { height: 88px; }

.accent-card {
  background: var(--orange);
  color: #fff;
}

.accent-card .stat-label,
.accent-card p,
.accent-card strong {
  color: #fff;
}

.arrow-growth {
  margin-top: 36px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 110px;
  line-height: 1;
}

.donut-card .donut {
  width: 118px;
  height: 118px;
  margin-top: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--orange) 0 280deg, #f0ebe6 280deg 360deg);
}

.donut-card .donut span {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
}

.text-stat-card strong {
  font-size: clamp(34px, 3.2vw, 50px);
  line-height: 1;
  letter-spacing: -0.055em;
}

/* =========================================================
   CTA + CONTACT
   ========================================================= */

.portfolio-cta {
  padding: 44px 0;
}

.portfolio-cta-shell,
.contact-shell {
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 30px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.contact-section {
  padding: 0 0 70px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 90, 0, 0.42);
  box-shadow: 0 0 0 4px rgba(255, 90, 0, 0.08);
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1180px) {
  .menu,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .cases-hero-grid,
  .split-heading,
  .profile-block,
  .performance-block,
  .portfolio-cta-shell,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .brand-logo-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-preview-media {
    min-height: 540px;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 860px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .cases-hero {
    padding: 62px 0 38px;
  }

  .hero-system {
    min-height: auto;
  }

  .system-grid,
  .three-up,
  .field-row {
    grid-template-columns: 1fr;
  }

  .lifted {
    transform: none;
  }

  .brand-rail-label {
    align-items: flex-end;
  }

  .desktop-hint {
    display: none;
  }

  .mobile-hint {
    display: inline;
  }

  /* Horizontal logo swipe instead of vertical stacking. */
  .brand-logo-rail {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 28px 12px 2px;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .brand-logo-rail::-webkit-scrollbar {
    display: none;
  }

  .brand-logo {
    flex: 0 0 72vw;
    max-width: 290px;
    min-height: 180px;
    scroll-snap-align: start;
  }

  .case-shell {
    padding: 22px;
  }

  .case-head,
  .block-top {
    align-items: flex-start;
  }

  .case-head {
    flex-direction: column;
    padding-bottom: 22px;
  }

  .case-chips {
    justify-content: flex-start;
  }

  .profile-preview-media {
    min-height: 490px;
  }

  .reels-block {
    padding: 20px;
  }

  .video-track {
    grid-auto-columns: 78vw;
  }

  .two-video-track {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-right: 24px;
    scroll-snap-type: x mandatory;
  }

  .two-video-track .video-card {
    flex: 0 0 78vw;
    max-width: 340px;
  }
}

/* =========================================================
   PHONE
   ========================================================= */

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .nav {
    min-height: 76px;
  }

  .brand-cloud {
    width: 43px;
    height: 18px;
  }

  .brand-cloud::before {
    width: 18px;
    height: 18px;
    left: 7px;
    top: -8px;
  }

  .brand-cloud::after {
    width: 22px;
    height: 22px;
    right: 5px;
    top: -7px;
  }

  .brand-name {
    font-size: 22px;
  }

  .brand-subtitle {
    font-size: 8px;
  }

  .hero-copy h1 {
    font-size: 48px;
  }

  .split-heading h2,
  .portfolio-cta-shell h2,
  .contact-copy h2,
  .profile-copy-card h3,
  .performance-intro h3,
  .block-top h3 {
    font-size: 38px;
  }

  .system-board {
    padding: 18px;
  }

  .system-card {
    min-height: 220px;
  }

  .brand-rail-label {
    gap: 12px;
  }

  .brand-rail-label > span {
    max-width: 58%;
    line-height: 1.55;
  }

  .brand-rail-label b {
    white-space: nowrap;
  }

  .brand-logo {
    flex-basis: 76vw;
    max-width: 300px;
    min-height: 190px;
  }

  .brand-logo img {
    width: 84px;
    height: 84px;
  }

  .profile-preview-media {
    min-height: 420px;
  }

  .profile-copy-card,
  .performance-intro,
  .stat-card {
    padding: 24px;
  }

  .video-track,
  .two-video-track {
    grid-auto-columns: 82vw;
  }

  .two-video-track .video-card {
    flex-basis: 82vw;
  }

  .stat-card strong {
    font-size: 54px;
  }

  .text-stat-card strong {
    font-size: 38px;
  }

  .arrow-growth {
    font-size: 82px;
  }
}




/* =========================================================
   FIX — PERFORMANCE / REACH CARDS TEXT CROPPING
   ========================================================= */

   .performance-block {
    grid-template-columns:
      minmax(0, 1.15fr)
      repeat(3, minmax(0, 0.95fr)) !important;
  }
  
  .performance-intro,
  .stat-card {
    min-width: 0 !important;
    overflow: hidden !important;
  }
  
  .stat-card {
    padding: 30px 28px !important;
  }
  
  /* BIG NUMBER */
  .stat-card strong {
    width: 100% !important;
    max-width: 100% !important;
  
    font-size: clamp(44px, 4.2vw, 72px) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.07em !important;
  
    white-space: nowrap !important;
    overflow: visible !important;
  }
  
  /* +108%, +68%, ETC */
  .accent-card strong {
    font-size: clamp(42px, 4vw, 68px) !important;
  }
  
  /* LABEL ABOVE NUMBER */
  .stat-label {
    display: block !important;
    max-width: 100% !important;
    white-space: normal !important;
  }
  
  /* TEXT UNDER NUMBER */
  .stat-card p {
    max-width: 100% !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
    overflow-wrap: break-word !important;
  }
  
  /* KEEP GRAPH INSIDE CARD */
  .stat-bars {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* KEEP DONUT INSIDE CARD */
  .donut-card .donut {
    width: 108px !important;
    height: 108px !important;
    max-width: 100% !important;
  }
  
  .donut-card .donut span {
    width: 66px !important;
    height: 66px !important;
  }
  
  /* ARROW */
  .arrow-growth {
    font-size: 88px !important;
    margin-top: 26px !important;
  }
  
  /* =========================================================
     MEDIUM SCREENS
     Instead of squeezing 4 cards into one tiny row,
     make them a clean 2 x 2 layout.
     ========================================================= */
  
  @media (max-width: 1250px) {
    .performance-block {
      grid-template-columns:
        repeat(2, minmax(0, 1fr)) !important;
    }
  
    .performance-intro,
    .stat-card {
      min-height: 330px;
    }
  
    .stat-card strong,
    .accent-card strong {
      font-size: clamp(52px, 7vw, 78px) !important;
    }
  }
  
  /* =========================================================
     PHONE
     ========================================================= */
  
  @media (max-width: 700px) {
    .performance-block {
      grid-template-columns: 1fr !important;
    }
  
    .performance-intro,
    .stat-card {
      width: 100% !important;
      min-height: auto !important;
    }
  
    .stat-card {
      padding: 26px !important;
    }
  
    .stat-card strong,
    .accent-card strong {
      font-size: clamp(54px, 16vw, 76px) !important;
      white-space: nowrap !important;
    }
  
    .arrow-growth {
      font-size: 74px !important;
    }
  }




  /* =========================================================
   FINAL FIX — TEXT PERFORMANCE CARDS
   Tracked / Refined / Reviewed / Adapted / Tested etc.
   ========================================================= */

/* These cards contain WORDS instead of large numbers */
.text-stat-card {
  min-width: 0 !important;
  overflow: hidden !important;
}

/* Override the large-number styling from the previous fix */
.text-stat-card strong {
  display: block !important;

  width: 100% !important;
  max-width: 100% !important;

  font-size: clamp(30px, 2.5vw, 42px) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.055em !important;

  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;

  margin-top: 12px !important;
}

/* Make the explanatory text fit comfortably */
.text-stat-card p {
  width: 100% !important;
  max-width: 100% !important;

  font-size: 15px !important;
  line-height: 1.5 !important;

  white-space: normal !important;
  overflow-wrap: break-word !important;
}

/* First large explanation card on the left */
.performance-intro h3 {
  max-width: 100% !important;

  font-size: clamp(30px, 2.6vw, 44px) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.055em !important;

  overflow-wrap: break-word !important;
}

/* Give all 4 cards enough usable inner room */
.performance-intro,
.text-stat-card {
  padding: 30px 26px !important;
}

/* =========================================================
   DESKTOP / SMALL LAPTOP
   Stop 4 cards from becoming too narrow
   ========================================================= */

@media (max-width: 1450px) and (min-width: 1181px) {
  .performance-block {
    grid-template-columns:
      minmax(0, 1.15fr)
      repeat(3, minmax(0, 0.95fr)) !important;
  }

  .text-stat-card strong {
    font-size: clamp(28px, 2.35vw, 36px) !important;
  }

  .performance-intro h3 {
    font-size: clamp(30px, 2.5vw, 40px) !important;
  }
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1180px) {
  .performance-block {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .text-stat-card strong {
    font-size: clamp(36px, 5vw, 48px) !important;
  }

  .performance-intro h3 {
    font-size: clamp(36px, 5vw, 48px) !important;
  }
}

/* =========================================================
   PHONE
   ========================================================= */

@media (max-width: 700px) {
  .performance-block {
    grid-template-columns: 1fr !important;
  }

  .text-stat-card strong {
    font-size: clamp(38px, 11vw, 52px) !important;
  }

  .performance-intro h3 {
    font-size: clamp(38px, 10vw, 48px) !important;
  }

  .performance-intro,
  .text-stat-card {
    padding: 26px !important;
  }
}