/* Consolidated portfolio styles
   Generated from index.html, finance360.html, corporate-directory(1).html, and ecommerce.html.
   Pages use body classes: .home-page and .case-page. */


    body.home-page {
      --bg: #f6f4fb;
      --surface: #ffffff;
      --surface-2: #f0ecff;
      --ink: #1a1a1a;
      --muted: #6b6b75;
      --line: #e3def5;

      /* NEW ACCENTS */
      --teal: #14b8a6;
      --purple: #7c3aed;

      --accent: linear-gradient(135deg, var(--teal), var(--purple));
      --accent-soft: rgba(124, 58, 237, 0.12);

      --dark: #151326;
      --dark-muted: #cfc8ff;
      --shadow: 0 18px 50px rgba(80, 60, 160, 0.12);
      --radius-lg: 28px;
      --radius-md: 18px;
      --ease: cubic-bezier(.2,.8,.2,1);
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body.home-page {
      margin: 0;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background:
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.18), transparent 34rem),
        radial-gradient(circle at 85% 8%, rgba(20, 184, 166, 0.18), transparent 28rem),
        var(--bg);
      color: var(--ink);
    }

    body.home-page::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background-image: linear-gradient(rgba(29,27,24,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(29,27,24,.035) 1px, transparent 1px);
      background-size: 44px 44px;
      mask-image: linear-gradient(to bottom, rgba(0,0,0,.45), transparent 60%);
      z-index: -1;
    }

    body.home-page a {
      color: inherit;
      text-decoration: none;
    }

    body.home-page .container {
      width: min(1180px, calc(100% - 40px));
      margin: 0 auto;
    }

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

body.home-page .nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--line);
}

body.home-page .nav-wrap nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

body.home-page .brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

body.home-page .brand strong {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

body.home-page .brand span {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.25;
}

body.home-page .nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

body.home-page .nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 160ms ease;
}

body.home-page .nav-links a:hover {
  color: var(--teal);
}

/* ===== MOBILE NAV - NO HTML CHANGES ===== */

@media (max-width: 720px) {
  body.home-page .nav-wrap nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  body.home-page .brand {
    width: 100%;
  }

  body.home-page .brand span {
    font-size: 0.72rem;
  }

  body.home-page .nav-links {
    display: flex !important;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
  }

  body.home-page .nav-links a {
    font-size: 0.85rem;
  }
}

@media (max-width: 420px) {
  body.home-page .nav-links {
    justify-content: flex-start;
  }

  body.home-page .nav-links a {
    padding-right: 8px;
  }
}
    body.home-page .hero {
      padding: 72px 0 96px;
    }

    body.home-page .hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
      gap: 54px;
      align-items: end;
    }

    body.home-page .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      width: fit-content;
      padding: 9px 14px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255, 253, 250, 0.72);
      color: var(--muted);
      box-shadow: 0 8px 26px rgba(34, 28, 22, 0.05);
      font-size: 14px;
    }

    body.home-page .spark {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--purple);
      box-shadow: 0 0 0 7px rgba(124, 58, 237, 0.2);
      animation: home-pulse 2.6s infinite;
    }

    @keyframes home-pulse {
      0%, 100% { transform: scale(1); opacity: 1; }
      50% { transform: scale(.68); opacity: .58; }
    }

    body.home-page h1 {
      max-width: 920px;
      margin: 24px 0 0;
      font-size: clamp(48px, 8vw, 88px);
      line-height: .96;
      letter-spacing: -0.065em;
    }

    body.home-page .lead {
      max-width: 760px;
      margin-top: 28px;
      color: var(--muted);
      font-size: clamp(18px, 2vw, 22px);
      line-height: 1.55;
    }

    body.home-page .actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 34px;
    }

    body.home-page .button {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      min-height: 48px;
      padding: 0 20px;
      border-radius: 999px;
      border: 1px solid transparent;
      font-weight: 650;
      font-size: 14px;
      transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease);
    }

    body.home-page .button.primary {
      background: var(--accent);
      color: #fff;
      box-shadow: 0 14px 34px rgba(124, 58, 237, .25);
    }

    body.home-page .button.secondary {
      background: rgba(255,255,255,.72);
      border-color: var(--line);
      color: var(--ink);
    }

    body.home-page .button:hover {
      transform: translateY(-3px);
      box-shadow: 0 16px 38px rgba(23, 21, 18, .14);
    }

    body.home-page .button .arrow {
      transition: transform 220ms var(--ease);
    }

    body.home-page .button:hover .arrow {
      transform: translateX(4px);
    }

    body.home-page .impact-card {
      position: relative;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      background: rgba(255, 253, 250, 0.82);
      box-shadow: var(--shadow);
      padding: 26px;
      transform-style: preserve-3d;
      transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
    }

    body.home-page .impact-card::after {
      content: "";
      position: absolute;
      width: 180px;
      height: 180px;
      top: -80px;
      right: -70px;
      border-radius: 50%;
      background: linear-gradient(135deg, rgba(124,58,237,.25), rgba(20,184,166,.25));
      filter: blur(4px);
    }

    body.home-page .impact-card:hover {
      box-shadow: 0 24px 60px rgba(34, 28, 22, 0.12);
    }

    body.home-page .section-label {
      margin: 0;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: .12em;
      font-size: 12px;
      font-weight: 750;
    }

    body.home-page .stat {
      padding: 22px 0;
      border-top: 1px solid var(--line);
    }

    body.home-page .stat:first-of-type {
      border-top: none;
      padding-top: 18px;
    }

    body.home-page .stat strong {
      display: block;
      font-size: 44px;
      letter-spacing: -0.05em;
      line-height: 1;
    }

    body.home-page .stat strong span {
    font-size: 44px;
}

    body.home-page .stat span {
      display: block;
      margin-top: 8px;
      color: var(--muted);
      line-height: 1.55;
      font-size: 14px;
    }

    body.home-page section.block {
      padding: 86px 0;
    }

    body.home-page .white-band {
      background: rgba(255,255,255,.72);
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    body.home-page .section-intro {
      max-width: 760px;
      margin-bottom: 36px;
    }

    body.home-page h2 {
      margin: 12px 0 0;
      max-width: 780px;
      font-size: clamp(34px, 4vw, 54px);
      line-height: 1.02;
      letter-spacing: -0.045em;
    }

    body.home-page .section-intro p, body.home-page .split p {
      color: var(--muted);
      font-size: 18px;
      line-height: 1.65;
    }

    body.home-page .cards {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 18px;
        align-items: stretch; /* important */

    }

    body.home-page .case-card {
  display: flex;
  flex-direction: column;
  height: 100%; /* ensures all cards stretch evenly */

  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
body.home-page .card-link {
  margin-top: auto; /* THIS is the key */
  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-weight: 800;
  color: var(--teal);
  font-size: 0.9rem;
  padding-top: 16px;
}

    body.home-page .case-card, body.home-page .strength-card {
      position: relative;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      background: var(--surface);
      padding: 25px;
      box-shadow: 0 0 0 rgba(0,0,0,0);
      transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), border-color 260ms var(--ease);
    }

    body.home-page .case-card::before, body.home-page .strength-card::before {
      content: "";
      position: absolute;
      inset: 0;
      opacity: 0;
      background: radial-gradient(circle at var(--mx, 50%) var(--my, 20%), rgba(124, 58, 237, 0.18), transparent 34%);
      transition: opacity 260ms var(--ease);
      pointer-events: none;
    }

    body.home-page .case-card:hover, body.home-page .strength-card:hover {
      transform: translateY(-8px);
      box-shadow: var(--shadow);
      border-color: rgba(124, 58, 237, 0.35);
    }

    body.home-page .case-card:hover::before, body.home-page .strength-card:hover::before {
      opacity: 1;
    }

    body.home-page .icon {
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      border-radius: 16px;
      background: #fff;
      border: 1px solid var(--line);
      margin-bottom: 22px;
      transition: transform 260ms var(--ease), background 260ms var(--ease);
    }

    body.home-page .case-card:hover .icon, body.home-page .strength-card:hover .icon {
      transform: rotate(-3deg) scale(1.04);
      background: rgba(20, 184, 166, 0.15);
    }

    body.home-page .case-card svg, body.home-page .strength-card svg {
      width: 24px;
      height: 24px;
      stroke: var(--ink);
      stroke-width: 1.8;
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    body.home-page .card-kicker {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.4;
    }

    body.home-page h3 {
      margin: 8px 0 0;
      font-size: 24px;
      line-height: 1.12;
      letter-spacing: -0.03em;
    }

    body.home-page .card-text {
      color: var(--muted);
      line-height: 1.65;
      margin: 16px 0 0;
    }

    body.home-page .chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 22px;
    }

    body.home-page .chip {
      display: inline-flex;
      align-items: center;
      border: 1px solid var(--line);
      background: rgba(255,255,255,.8);
      border-radius: 999px;
      padding: 7px 10px;
      font-size: 12px;
      color: var(--muted);
      transition: transform 160ms var(--ease), border-color 160ms var(--ease);
    }

    body.home-page .chip:hover {
      transform: translateY(-2px);
      border-color: rgba(20,184,166,.45);
    }

    body.home-page .split {
      display: grid;
      grid-template-columns: .85fr 1.15fr;
      gap: 56px;
      align-items: start;
    }

    body.home-page .strength-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }

    body.home-page .dark-band {
      background: var(--dark);
      color: #fff;
    }

    body.home-page .dark-band .section-label, body.home-page .dark-band p {
      color: var(--dark-muted);
    }

    body.home-page .about-copy {
      display: grid;
      gap: 18px;
      font-size: 18px;
      line-height: 1.7;
    }

    body.home-page .about-note {
      margin-top: 24px;
      display: inline-flex;
      gap: 10px;
      align-items: center;
      color: #fff;
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 999px;
      padding: 10px 14px;
      font-size: 14px;
    }

    body.home-page .contact-card {
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      background: var(--surface);
      padding: 38px;
      box-shadow: var(--shadow);
    }

    body.home-page footer {
      padding: 28px 0 46px;
      color: var(--muted);
      font-size: 14px;
    }

    body.home-page .reveal {
      opacity: 0;
      transform: translateY(18px);
      transition: opacity 620ms var(--ease), transform 620ms var(--ease);
    }

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

    body.home-page .copy-email {
      cursor: pointer;
    }

    body.home-page .toast {
      position: fixed;
      left: 50%;
      bottom: 24px;
      z-index: 50;
      transform: translate(-50%, 18px);
      opacity: 0;
      pointer-events: none;
      background: var(--dark);
      color: #fff;
      border-radius: 999px;
      padding: 12px 16px;
      box-shadow: 0 18px 48px rgba(0,0,0,.2);
      transition: opacity 240ms var(--ease), transform 240ms var(--ease);
      font-size: 14px;
    }

    body.home-page .toast.is-visible {
      opacity: 1;
      transform: translate(-50%, 0);
    }

    @media (max-width: 920px) {
      body.home-page .hero-grid, body.home-page .split {
        grid-template-columns: 1fr;
      }

      body.home-page .cards {
        grid-template-columns: 1fr;
      }

      body.home-page .impact-card {
        max-width: none;
      }
    }

    @media (max-width: 720px) {
      body.home-page .nav-links {
        display: none;
      }

      body.home-page .container {
        width: min(100% - 28px, 1180px);
      }

      body.home-page .hero {
        padding: 44px 0 72px;
      }

      body.home-page .strength-grid {
        grid-template-columns: 1fr;
      }

      body.home-page .contact-card {
        padding: 26px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
      }

      body.home-page .reveal {
        opacity: 1;
        transform: none;
      }
    }
  

/* ===== Case study pages ===== */

    body.case-page {
      --bg: #f7f8fb;
      --surface: #ffffff;
      --surface-soft: #eef2f7;
      --ink: #172033;
      --muted: #667085;
      --line: #d9e0ea;
      --teal: #1fb6aa;
      --teal-soft: rgba(31, 182, 170, 0.12);
      --purple: #7c3aed;
      --purple-soft: rgba(124, 58, 237, 0.12);
      --navy: #07172d;
      --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
      --radius-lg: 28px;
      --radius-md: 18px;
      --radius-sm: 12px;
      --max: 1180px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body.case-page {
      margin: 0;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--ink);
      background:
        radial-gradient(circle at 8% 8%, rgba(31, 182, 170, 0.16), transparent 28%),
        radial-gradient(circle at 85% 12%, rgba(124, 58, 237, 0.13), transparent 30%),
        var(--bg);
      line-height: 1.6;
    }

    body.case-page a {
      color: inherit;
      text-decoration: none;
    }

    body.case-page img {
      max-width: 100%;
      display: block;
    }

    body.case-page .case-study {
      overflow: hidden;
    }

    body.case-page .container {
      width: min(var(--max), calc(100% - 40px));
      margin: 0 auto;
    }

    body.case-page .case-breadcrumb {
      position: relative;
      top: 70px;
    }

    body.case-page .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: var(--purple);
      font-size: 0.78rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      margin-bottom: 18px;
    }

    body.case-page .eyebrow::before {
      content: "";
      width: 28px;
      height: 2px;
      border-radius: 99px;
      background: linear-gradient(90deg, var(--teal), var(--purple));
    }

    body.case-page .hero {
      padding: 92px 0 52px;
    }

    body.case-page .hero-grid {
      display: grid;
      grid-template-columns: 0.9fr 1.1fr;
      gap: 54px;
      align-items: center;
    }

    body.case-page .hero h1 {
      font-size: clamp(3.4rem, 9vw, 6.8rem);
      line-height: 0.92;
      margin: 0 0 24px;
      letter-spacing: -0.075em;
    }

    body.case-page .hero h1 span {
      display: block;
      background: linear-gradient(135deg, var(--ink), #394157 45%, var(--purple));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    body.case-page .hero-lede {
      max-width: 570px;
      font-size: clamp(1.05rem, 2vw, 1.25rem);
      color: var(--muted);
      margin: 0 0 28px;
    }

    body.case-page .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      margin-top: 28px;
    }

    body.case-page .button {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      min-height: 46px;
      padding: 0 18px;
      border-radius: 999px;
      font-weight: 800;
      font-size: 0.92rem;
      transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    }

    body.case-page .button:hover {
      transform: translateY(-2px);
    }

    body.case-page .button-primary {
      color: white;
      background: linear-gradient(135deg, var(--teal), var(--purple));
      box-shadow: 0 14px 30px rgba(31, 182, 170, 0.22);
    }

    body.case-page .button-secondary {
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.75);
      color: var(--ink);
    }

    body.case-page .hero-note {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      margin-top: 26px;
      color: var(--muted);
      font-size: 0.92rem;
    }

    body.case-page .hero-note span {
      flex: 0 0 auto;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      color: var(--teal);
      background: var(--teal-soft);
      font-weight: 900;
      line-height: 1;
    }

    body.case-page .product-shell {
      position: relative;
      border-radius: 32px;
      padding: 12px;
      background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.35));
      box-shadow: var(--shadow);
      transform: perspective(1100px) rotateY(-5deg) rotateX(3deg);
      transition: transform 450ms ease;
    }

    body.case-page .product-shell:hover {
      transform: perspective(1100px) rotateY(0deg) rotateX(0deg) translateY(-4px);
    }

    body.case-page .dashboard {
      border: 1px solid rgba(255,255,255,0.28);
      background: var(--surface);
      border-radius: 24px;
      overflow: hidden;
      min-height: 540px;
    }

    body.case-page .dashboard-topbar {
      height: 54px;
      padding: 0 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      color: white;
      background: var(--navy);
    }

    body.case-page .brand-mark {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 900;
      letter-spacing: -0.03em;
    }

    body.case-page .brand-dot {
      width: 12px;
      height: 12px;
      border-radius: 999px;
      background: linear-gradient(135deg, var(--teal), var(--purple));
      box-shadow: 0 0 0 4px rgba(31, 182, 170, 0.12);
    }

    body.case-page .window-actions {
      display: flex;
      gap: 8px;
    }

    body.case-page .window-actions i {
      display: block;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: rgba(255,255,255,0.5);
    }

    body.case-page .dashboard-body {
      display: grid;
      grid-template-columns: 184px 1fr;
      min-height: 486px;
    }

    body.case-page .sidebar {
      background: #0b1b33;
      color: #cbd5e1;
      padding: 18px 12px;
    }

    body.case-page .nav-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border-radius: 12px;
      font-size: 0.82rem;
      margin-bottom: 6px;
      color: rgba(255,255,255,0.72);
    }

    body.case-page .nav-item.active {
      background: rgba(31, 182, 170, 0.14);
      color: white;
    }

    body.case-page .nav-icon {
      width: 8px;
      height: 8px;
      border-radius: 2px;
      background: currentColor;
      opacity: 0.75;
    }

    body.case-page .dashboard-content {
      padding: 22px;
      background: linear-gradient(180deg, #ffffff, #f8fafc);
    }

    body.case-page .dashboard-header {
      display: flex;
      justify-content: space-between;
      gap: 20px;
      align-items: flex-start;
      margin-bottom: 18px;
    }

    body.case-page .dashboard-title h2 {
      font-size: 1.2rem;
      margin: 0 0 4px;
      letter-spacing: -0.04em;
    }

    body.case-page .dashboard-title p {
      margin: 0;
      color: var(--muted);
      font-size: 0.84rem;
    }

    body.case-page .filter-row {
      display: flex;
      gap: 10px;
    }

    body.case-page .filter-pill {
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 8px 10px;
      color: #475467;
      background: white;
      font-size: 0.75rem;
      white-space: nowrap;
    }

    body.case-page .metric-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
      margin-bottom: 14px;
    }

    body.case-page .metric-card, body.case-page .panel, body.case-page .table-panel {
      background: white;
      border: 1px solid var(--line);
      border-radius: 16px;
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    }

    body.case-page .metric-card {
      padding: 14px;
    }

    body.case-page .metric-label {
      color: var(--muted);
      font-size: 0.72rem;
      margin-bottom: 6px;
    }

    body.case-page .metric-value {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 1.05rem;
      font-weight: 900;
      letter-spacing: -0.04em;
    }

    body.case-page .trend {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: var(--teal);
    }

    body.case-page .viz-grid {
      display: grid;
      grid-template-columns: 1.25fr 0.75fr;
      gap: 12px;
      margin-bottom: 12px;
    }

    body.case-page .panel {
      padding: 16px;
      min-height: 176px;
    }

    body.case-page .panel-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 0.8rem;
      font-weight: 900;
      margin-bottom: 14px;
    }

    body.case-page .chart {
      height: 104px;
      position: relative;
      border-left: 1px solid #e5e7eb;
      border-bottom: 1px solid #e5e7eb;
      overflow: hidden;
    }

    body.case-page .chart::before, body.case-page .chart::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      height: 1px;
      background: #eef2f7;
    }

    body.case-page .chart::before { top: 33%; }
    body.case-page .chart::after { top: 66%; }

    body.case-page .line-chart {
      position: absolute;
      inset: 0;
    }

    body.case-page .bar-row {
      display: flex;
      align-items: flex-end;
      height: 100%;
      gap: 10px;
      padding: 10px 12px 0;
    }

    body.case-page .bar {
      flex: 1;
      min-height: 16px;
      border-radius: 8px 8px 0 0;
      background: linear-gradient(180deg, rgba(31, 182, 170, 0.85), rgba(124, 58, 237, 0.75));
      opacity: 0.85;
    }

    body.case-page .donut-wrap {
      display: grid;
      grid-template-columns: 110px 1fr;
      align-items: center;
      gap: 16px;
    }

    body.case-page .donut {
      width: 104px;
      height: 104px;
      border-radius: 50%;
      background: conic-gradient(var(--teal) 0 32%, var(--purple) 32% 58%, #93c5fd 58% 78%, #d9e0ea 78% 100%);
      position: relative;
    }

    body.case-page .donut::after {
      content: "";
      position: absolute;
      inset: 25px;
      background: white;
      border-radius: 50%;
      box-shadow: inset 0 0 0 1px var(--line);
    }

    body.case-page .legend {
      display: grid;
      gap: 9px;
      color: var(--muted);
      font-size: 0.74rem;
    }

    body.case-page .legend span {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    body.case-page .legend i {
      display: block;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--teal);
    }

    body.case-page .legend span:nth-child(2) i { background: var(--purple); }
    body.case-page .legend span:nth-child(3) i { background: #93c5fd; }

    body.case-page .table-panel {
      padding: 0;
      overflow: hidden;
    }

    body.case-page .table-head, body.case-page .table-row {
      display: grid;
      grid-template-columns: 1.2fr 1fr 0.75fr 0.75fr;
      gap: 12px;
      align-items: center;
      padding: 11px 14px;
      font-size: 0.75rem;
    }

    body.case-page .table-head {
      color: var(--muted);
      font-weight: 800;
      background: #f8fafc;
      border-bottom: 1px solid var(--line);
    }

    body.case-page .table-row {
      border-bottom: 1px solid #eef2f7;
    }

    body.case-page .status {
      display: inline-flex;
      width: fit-content;
      padding: 3px 8px;
      border-radius: 999px;
      background: var(--teal-soft);
      color: #08766d;
      font-weight: 800;
      font-size: 0.68rem;
    }

    body.case-page .section {
      padding: 72px 0;
    }

    body.case-page .section-header {
      max-width: 780px;
      margin-bottom: 34px;
    }

    body.case-page .section-header h2 {
      margin: 0 0 12px;
      font-size: clamp(2rem, 4vw, 3.1rem);
      line-height: 1.05;
      letter-spacing: -0.06em;
    }

    body.case-page .section-header p {
      margin: 0;
      color: var(--muted);
      font-size: 1.05rem;
    }

    body.case-page .snapshot-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
    }

    body.case-page .snapshot-card {
      background: rgba(255,255,255,0.78);
      border: 1px solid rgba(217,224,234,0.9);
      border-radius: var(--radius-md);
      padding: 22px;
      transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    }

    body.case-page .snapshot-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
      border-color: rgba(31, 182, 170, 0.35);
    }

    body.case-page .snapshot-card span {
      display: block;
      color: var(--muted);
      font-size: 0.78rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      font-weight: 900;
      margin-bottom: 8px;
    }

    body.case-page .snapshot-card strong {
      display: block;
      font-size: 1rem;
      line-height: 1.35;
    }

    body.case-page .problem-card {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      padding: 28px;
      box-shadow: 0 20px 50px rgba(15, 23, 42, 0.07);
    }

    body.case-page .before-after {
      border-radius: 22px;
      padding: 20px;
      background: linear-gradient(180deg, #f8fafc, #ffffff);
      border: 1px solid var(--line);
    }

    body.case-page .ba-toggle {
      display: inline-flex;
      background: #eef2f7;
      border-radius: 999px;
      padding: 4px;
      margin-bottom: 18px;
    }

    body.case-page .ba-toggle button {
      border: 0;
      background: transparent;
      border-radius: 999px;
      padding: 8px 14px;
      cursor: pointer;
      color: var(--muted);
      font-weight: 900;
    }

    body.case-page .ba-toggle button.active {
      background: white;
      color: var(--ink);
      box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    }

    body.case-page .experience-list {
      display: grid;
      gap: 12px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    body.case-page .experience-list li {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      color: var(--muted);
    }

    body.case-page .experience-list li::before {
      content: "";
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: var(--purple);
      margin-top: 8px;
      flex: 0 0 auto;
    }

    body.case-page .tabs-wrap {
      display: grid;
      grid-template-columns: 280px 1fr;
      gap: 24px;
      align-items: start;
    }

    body.case-page .tabs {
      position: sticky;
      top: 22px;
      display: grid;
      gap: 10px;
    }

    body.case-page .tab-button {
      text-align: left;
      border: 1px solid var(--line);
      background: rgba(255,255,255,0.72);
      padding: 18px;
      border-radius: 18px;
      cursor: pointer;
      color: var(--muted);
      transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
    }

    body.case-page .tab-button:hover {
      transform: translateX(4px);
      border-color: rgba(124, 58, 237, 0.35);
    }

    body.case-page .tab-button.active {
      color: var(--ink);
      background: white;
      border-color: rgba(31, 182, 170, 0.45);
      box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
    }

    body.case-page .tab-kicker {
      display: block;
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      font-weight: 900;
      color: var(--purple);
      margin-bottom: 4px;
    }

    body.case-page .tab-title {
      display: block;
      font-weight: 900;
      font-size: 1rem;
      color: currentColor;
    }

    body.case-page .tab-panel {
      display: none;
      background: white;
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      padding: 30px;
      box-shadow: 0 20px 50px rgba(15, 23, 42, 0.07);
      animation: panelIn 260ms ease;
    }

    body.case-page .tab-panel.active {
      display: block;
    }

    @keyframes panelIn {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }

    body.case-page .panel-grid {
      display: grid;
      grid-template-columns: 0.9fr 1.1fr;
      gap: 30px;
      align-items: center;
    }

    body.case-page .panel-copy h3 {
      margin: 0 0 12px;
      font-size: 1.9rem;
      letter-spacing: -0.05em;
      line-height: 1.08;
    }

    body.case-page .panel-copy p {
      margin: 0 0 16px;
      color: var(--muted);
    }

    body.case-page .bullet-list {
      display: grid;
      gap: 10px;
      padding: 0;
      margin: 0;
      list-style: none;
    }

    body.case-page .bullet-list li {
      display: flex;
      gap: 10px;
      align-items: flex-start;
    }

    body.case-page .bullet-list li::before {
      content: "✓";
      width: 21px;
      height: 21px;
      flex: 0 0 auto;
      display: grid;
      place-items: center;
      border-radius: 50%;
      color: #08766d;
      background: var(--teal-soft);
      font-size: 0.75rem;
      font-weight: 900;
      margin-top: 2px;
    }

    body.case-page .artifact {
      border-radius: 22px;
      padding: 18px;
      background: #f8fafc;
      border: 1px solid var(--line);
      min-height: 340px;
    }

    body.case-page .sticky-wall {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
    }

    body.case-page .sticky-note {
      min-height: 72px;
      border-radius: 12px;
      padding: 10px;
      background: #fff7cc;
      box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
      color: #6b5b00;
      font-size: 0.68rem;
      font-weight: 800;
    }

    body.case-page .sticky-note:nth-child(3n) { background: #e9d5ff; color: #581c87; }
    body.case-page .sticky-note:nth-child(4n) { background: #ccfbf1; color: #115e59; }

    body.case-page .persona-card {
      background: white;
      border: 1px solid var(--line);
      border-radius: 20px;
      padding: 20px;
      box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    }

    body.case-page .persona-head {
      display: flex;
      gap: 14px;
      align-items: center;
      margin-bottom: 16px;
    }

    body.case-page .avatar {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--teal), var(--purple));
    }

    body.case-page .wireframe {
      display: grid;
      gap: 12px;
    }

    body.case-page .wf-bar, body.case-page .wf-block, body.case-page .wf-card {
      background: #e5e7eb;
      border-radius: 10px;
    }

    body.case-page .wf-bar { height: 28px; }

    body.case-page .wf-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    body.case-page .wf-card { height: 100px; }
    body.case-page .wf-block { height: 150px; }

    body.case-page .final-screen-mini {
      background: white;
      border: 1px solid var(--line);
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    }

    body.case-page .mini-top {
      height: 38px;
      background: var(--navy);
    }

    body.case-page .mini-body {
      padding: 16px;
    }

    body.case-page .mini-metrics {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-bottom: 12px;
    }

    body.case-page .mini-card {
      height: 54px;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: #f8fafc;
    }

    body.case-page .mini-content {
      display: grid;
      grid-template-columns: 1fr 0.8fr;
      gap: 12px;
    }

    body.case-page .mini-chart, body.case-page .mini-table {
      height: 150px;
      border-radius: 14px;
      background: linear-gradient(135deg, var(--teal-soft), var(--purple-soft));
      border: 1px solid var(--line);
    }

    body.case-page .decision-grid, body.case-page .impact-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
    }

    body.case-page .decision-card, body.case-page .impact-card {
      position: relative;
      min-height: 210px;
      padding: 22px;
      border-radius: var(--radius-md);
      background: white;
      border: 1px solid var(--line);
      overflow: hidden;
      transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
    }

    body.case-page .decision-card:hover, body.case-page .impact-card:hover {
      transform: translateY(-5px);
      border-color: rgba(31, 182, 170, 0.42);
      box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    }

    body.case-page .decision-card::after, body.case-page .impact-card::after {
      content: "";
      position: absolute;
      inset: auto -30px -40px auto;
      width: 110px;
      height: 110px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--teal-soft), var(--purple-soft));
    }

    body.case-page .card-number {
      display: inline-grid;
      place-items: center;
      width: 34px;
      height: 34px;
      border-radius: 12px;
      background: var(--purple-soft);
      color: var(--purple);
      font-weight: 900;
      margin-bottom: 18px;
    }

    body.case-page .decision-card h3, body.case-page .impact-card h3 {
      margin: 0 0 10px;
      font-size: 1.04rem;
      line-height: 1.2;
      letter-spacing: -0.03em;
    }

    body.case-page .decision-card p, body.case-page .impact-card p {
      margin: 0;
      color: var(--muted);
      font-size: 0.93rem;
    }

    body.case-page .takeaway {
      padding: 54px;
      border-radius: 34px;
      background: linear-gradient(135deg, var(--navy), #15294d);
      color: white;
      position: relative;
      overflow: hidden;
    }

    body.case-page .takeaway::before {
      content: "";
      position: absolute;
      width: 360px;
      height: 360px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(31, 182, 170, 0.32), transparent 65%);
      right: -120px;
      top: -160px;
    }

    body.case-page .takeaway h2 {
      position: relative;
      margin: 0 0 14px;
      font-size: clamp(2rem, 4vw, 3.4rem);
      line-height: 1.05;
      letter-spacing: -0.06em;
      max-width: 820px;
    }

    body.case-page .takeaway p {
      position: relative;
      margin: 0;
      max-width: 780px;
      color: rgba(255,255,255,0.78);
      font-size: 1.06rem;
    }

    body.case-page .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 600ms ease, transform 600ms ease;
    }

    body.case-page .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    @media (max-width: 980px) {
      body.case-page .hero-grid, body.case-page .problem-card, body.case-page .tabs-wrap, body.case-page .panel-grid {
        grid-template-columns: 1fr;
      }

      body.case-page .tabs {
        position: static;
        grid-template-columns: repeat(2, 1fr);
      }

      body.case-page .snapshot-grid, body.case-page .decision-grid, body.case-page .impact-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      body.case-page .metric-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      body.case-page .dashboard-body {
        grid-template-columns: 1fr;
      }

      body.case-page .sidebar {
        display: none;
      }

      body.case-page .product-shell {
        transform: none;
      }
    }

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

      body.case-page .hero {
        padding-top: 58px;
      }

      body.case-page .snapshot-grid, body.case-page .decision-grid, body.case-page .impact-grid, body.case-page .tabs, body.case-page .viz-grid, body.case-page .donut-wrap, body.case-page .mini-content {
        grid-template-columns: 1fr;
      }

      body.case-page .dashboard {
        min-height: auto;
      }

      body.case-page .dashboard-header, body.case-page .filter-row {
        flex-direction: column;
      }

      body.case-page .table-head, body.case-page .table-row {
        grid-template-columns: 1fr 0.8fr;
      }

      body.case-page .table-head span:nth-child(3), body.case-page .table-head span:nth-child(4), body.case-page .table-row span:nth-child(3), body.case-page .table-row span:nth-child(4) {
        display: none;
      }

      body.case-page .takeaway {
        padding: 34px;
      }
    }

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

body.case-page .nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--line);
}

body.case-page .nav-wrap nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

body.case-page .brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

body.case-page .brand strong {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

body.case-page .brand span {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.25;
}

body.case-page .nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

body.case-page .nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 160ms ease;
}

body.case-page .nav-links a:hover {
  color: var(--teal);
}

/* ===== MOBILE NAV - NO HTML CHANGES ===== */

@media (max-width: 720px) {
  body.case-page .nav-wrap nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  body.case-page .brand {
    width: 100%;
  }

  body.case-page .brand span {
    font-size: 0.72rem;
  }

  body.case-page .nav-links {
    display: flex !important;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
  }

  body.case-page .nav-links a {
    font-size: 0.85rem;
  }
}

@media (max-width: 420px) {
  body.case-page .nav-links {
    justify-content: flex-start;
  }

  body.case-page .nav-links a {
    padding-right: 8px;
  }
}
  

    body.case-page {
      --bg: #f7f8fb;
      --surface: #ffffff;
      --surface-soft: #eef2f7;
      --ink: #172033;
      --muted: #667085;
      --line: #d9e0ea;
      --teal: #1fb6aa;
      --teal-soft: rgba(31, 182, 170, 0.12);
      --purple: #7c3aed;
      --purple-soft: rgba(124, 58, 237, 0.12);
      --navy: #07172d;
      --gm-blue: #0b5cab;
      --gm-blue-dark: #062a52;
      --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
      --radius-lg: 28px;
      --radius-md: 18px;
      --radius-sm: 12px;
      --max: 1180px;
    }

    * { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body.case-page {
      margin: 0;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--ink);
      background:
        radial-gradient(circle at 8% 8%, rgba(31, 182, 170, 0.16), transparent 28%),
        radial-gradient(circle at 85% 12%, rgba(124, 58, 237, 0.13), transparent 30%),
        var(--bg);
      line-height: 1.6;
    }

    body.case-page a { color: inherit; text-decoration: none; }
    body.case-page img { max-width: 100%; display: block; }

    body.case-page .case-study { overflow: hidden; }

    body.case-page .container {
      width: min(var(--max), calc(100% - 40px));
      margin: 0 auto;
    }

    body.case-page .case-breadcrumb {
      position: relative;
      top: 70px;
    }

    body.case-page .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: var(--purple);
      font-size: 0.78rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      margin-bottom: 18px;
    }

    body.case-page .eyebrow::before {
      content: "";
      width: 28px;
      height: 2px;
      border-radius: 99px;
      background: linear-gradient(90deg, var(--teal), var(--purple));
    }

    body.case-page .hero { padding: 92px 0 52px; }

    body.case-page .hero-grid {
      display: grid;
      grid-template-columns: 0.9fr 1.1fr;
      gap: 54px;
      align-items: center;
    }

    body.case-page .hero h1 {
      font-size: clamp(3.4rem, 9vw, 6.8rem);
      line-height: 0.92;
      margin: 0 0 24px;
      letter-spacing: -0.075em;
    }

    body.case-page .hero h1 span {
      display: block;
      background: linear-gradient(135deg, var(--ink), #394157 45%, var(--purple));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    body.case-page .hero-lede {
      max-width: 570px;
      font-size: clamp(1.05rem, 2vw, 1.25rem);
      color: var(--muted);
      margin: 0 0 28px;
    }

    body.case-page .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      margin-top: 28px;
    }

    body.case-page .button {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      min-height: 46px;
      padding: 0 18px;
      border-radius: 999px;
      font-weight: 800;
      font-size: 0.92rem;
      transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    }

    body.case-page .button:hover { transform: translateY(-2px); }

    body.case-page .button-primary {
      color: white;
      background: linear-gradient(135deg, var(--teal), var(--purple));
      box-shadow: 0 14px 30px rgba(31, 182, 170, 0.22);
    }

    body.case-page .button-secondary {
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.75);
      color: var(--ink);
    }

    body.case-page .hero-note {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      margin-top: 26px;
      color: var(--muted);
      font-size: 0.92rem;
    }

    body.case-page .hero-note span {
      flex: 0 0 auto;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      color: var(--teal);
      background: var(--teal-soft);
      font-weight: 900;
      line-height: 1;
    }

    body.case-page .product-shell {
      position: relative;
      border-radius: 32px;
      padding: 12px;
      background: linear-gradient(135deg, rgba(255,255,255,0.86), rgba(255,255,255,0.35));
      box-shadow: var(--shadow);
      transform: perspective(1100px) rotateY(-5deg) rotateX(3deg);
      transition: transform 450ms ease;
    }

    body.case-page .product-shell:hover { transform: perspective(1100px) rotateY(0deg) rotateX(0deg) translateY(-4px); }

    body.case-page .people-app {
      border: 1px solid rgba(255,255,255,0.28);
      background: var(--surface);
      border-radius: 24px;
      overflow: hidden;
      min-height: 560px;
    }

    body.case-page .people-topbar {
      height: 58px;
      padding: 0 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      color: white;
      background: linear-gradient(135deg, var(--gm-blue-dark), #083b73 60%, var(--gm-blue));
    }

    body.case-page .brand-mark {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 900;
      letter-spacing: -0.03em;
    }

    body.case-page .gm-badge {
      width: 34px;
      height: 24px;
      display: grid;
      place-items: center;
      border-radius: 6px;
      font-size: 0.68rem;
      letter-spacing: -0.06em;
      font-weight: 900;
    }

    body.case-page .top-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      color: rgba(255,255,255,0.78);
      font-size: 0.72rem;
      font-weight: 800;
    }

    body.case-page .pulse-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: var(--teal);
      box-shadow: 0 0 0 rgba(31, 182, 170, 0.55);
      animation: case-pulse 1800ms infinite;
    }

    @keyframes case-pulse {
      0% { box-shadow: 0 0 0 0 rgba(31, 182, 170, 0.45); }
      70% { box-shadow: 0 0 0 9px rgba(31, 182, 170, 0); }
      100% { box-shadow: 0 0 0 0 rgba(31, 182, 170, 0); }
    }

    body.case-page .people-body {
      display: grid;
      grid-template-columns: 190px 1fr;
      min-height: 502px;
    }

    body.case-page .people-sidebar {
      background: #07172d;
      color: #cbd5e1;
      padding: 18px 12px;
    }

    body.case-page .nav-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border-radius: 12px;
      font-size: 0.82rem;
      margin-bottom: 6px;
      color: rgba(255,255,255,0.72);
    }

    body.case-page .nav-item.active { background: rgba(31, 182, 170, 0.14); color: white; }
    body.case-page .nav-icon { width: 8px; height: 8px; border-radius: 2px; background: currentColor; opacity: 0.75; }

    body.case-page .people-content {
      padding: 22px;
      background: linear-gradient(180deg, #ffffff, #f8fafc);
    }

    body.case-page .people-header {
      display: flex;
      justify-content: space-between;
      gap: 20px;
      align-items: flex-start;
      margin-bottom: 18px;
    }

    body.case-page .people-title h2 { font-size: 1.18rem; margin: 0 0 4px; letter-spacing: -0.04em; }
    body.case-page .people-title p { margin: 0; color: var(--muted); font-size: 0.84rem; }

    body.case-page .view-toggle {
      display: inline-flex;
      padding: 4px;
      border-radius: 999px;
      background: #eef2f7;
      border: 1px solid var(--line);
    }

    body.case-page .view-toggle span {
      padding: 7px 11px;
      border-radius: 999px;
      color: var(--muted);
      font-size: 0.72rem;
      font-weight: 900;
    }

    body.case-page .view-toggle span.active { background: white; color: var(--gm-blue-dark); box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08); }

    body.case-page .search-panel {
      border: 1px solid var(--line);
      background: white;
      border-radius: 18px;
      padding: 14px;
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
      margin-bottom: 14px;
    }

    body.case-page .search-bar {
      display: flex;
      align-items: center;
      gap: 10px;
      border: 1px solid #cfd8e6;
      border-radius: 14px;
      padding: 12px 14px;
      background: #f8fafc;
      color: var(--muted);
      font-size: 0.86rem;
      transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
    }

    body.case-page .search-bar:hover {
      border-color: rgba(31, 182, 170, 0.7);
      box-shadow: 0 0 0 4px rgba(31, 182, 170, 0.08);
      background: white;
    }

    body.case-page .search-icon {
      width: 15px;
      height: 15px;
      border: 2px solid var(--gm-blue);
      border-radius: 50%;
      position: relative;
      flex: 0 0 auto;
    }

    body.case-page .search-icon::after {
      content: "";
      width: 7px;
      height: 2px;
      background: var(--gm-blue);
      position: absolute;
      right: -6px;
      bottom: -3px;
      transform: rotate(45deg);
      border-radius: 99px;
    }

    body.case-page .filter-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 12px;
    }

    body.case-page .chip {
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 6px 10px;
      color: #475467;
      background: white;
      font-size: 0.72rem;
      font-weight: 800;
    }

    body.case-page .chip.active { color: #08766d; background: var(--teal-soft); border-color: rgba(31, 182, 170, 0.38); }

    body.case-page .directory-grid {
      display: grid;
      grid-template-columns: 1fr 0.88fr;
      gap: 14px;
      align-items: stretch;
    }

    .directory-grid {
  grid-template-columns: 1fr !important;
}

.profile-stack {
  grid-template-columns: 1fr 1fr;
}

.profile-meta {
  grid-template-columns: 1fr;
}

    body.case-page .results-list, body.case-page .profile-panel, body.case-page .org-panel {
      background: white;
      border: 1px solid var(--line);
      border-radius: 18px;
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    }

    body.case-page .results-list { overflow: hidden; }

    body.case-page .result-row {
      display: grid;
      grid-template-columns: 42px 1fr auto;
      gap: 12px;
      align-items: center;
      padding: 13px 14px;
      border-bottom: 1px solid #eef2f7;
      transition: background 180ms ease;
    }

    body.case-page .result-row:hover { background: #f8fafc; }
    body.case-page .result-row.active { background: linear-gradient(90deg, rgba(11,92,171,0.08), rgba(31,182,170,0.06)); }

    body.case-page .face {
      width: 42px;
      height: 42px;
      border-radius: 14px;
      background: linear-gradient(135deg, var(--gm-blue), var(--teal));
      position: relative;
      overflow: hidden;
    }

    body.case-page .face::before {
      content: "";
      width: 13px;
      height: 13px;
      border-radius: 50%;
      background: rgba(255,255,255,0.9);
      position: absolute;
      top: 9px;
      left: 14px;
    }

    body.case-page .face::after {
      content: "";
      width: 24px;
      height: 14px;
      border-radius: 999px 999px 0 0;
      background: rgba(255,255,255,0.75);
      position: absolute;
      bottom: 6px;
      left: 9px;
    }

    body.case-page .result-copy strong { display: block; font-size: 0.82rem; letter-spacing: -0.02em; }
    body.case-page .result-copy span { display: block; color: var(--muted); font-size: 0.7rem; line-height: 1.35; }

    body.case-page .result-tag {
      display: inline-flex;
      padding: 4px 8px;
      border-radius: 999px;
      color: var(--gm-blue-dark);
      background: rgba(11, 92, 171, 0.1);
      font-size: 0.66rem;
      font-weight: 900;
      white-space: nowrap;
    }

    body.case-page .profile-stack {
      display: grid;
      gap: 14px;
    }

    body.case-page .profile-panel { padding: 16px; }

    body.case-page .profile-head {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 14px;
    }

    body.case-page .profile-avatar {
      width: 54px;
      height: 54px;
      border-radius: 18px;
      background: linear-gradient(135deg, var(--gm-blue), var(--purple));
      box-shadow: 0 10px 22px rgba(11, 92, 171, 0.18);
    }

    body.case-page .profile-head strong { display: block; font-size: 0.94rem; }
    body.case-page .profile-head span { display: block; color: var(--muted); font-size: 0.74rem; }

    body.case-page .profile-meta {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    body.case-page .meta-card {
      border: 1px solid #eef2f7;
      background: #f8fafc;
      border-radius: 13px;
      padding: 10px;
    }

    body.case-page .meta-card span { display: block; color: var(--muted); font-size: 0.65rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; }
    body.case-page .meta-card strong { display: block; font-size: 0.76rem; margin-top: 2px; }

    body.case-page .org-panel { padding: 16px; }
    body.case-page .org-title { display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; font-weight: 900; margin-bottom: 12px; }

    body.case-page .org-chart {
      display: grid;
      justify-items: center;
      gap: 10px;
      padding-top: 4px;
    }

    body.case-page .org-node {
      min-width: 128px;
      border: 1px solid var(--line);
      background: #f8fafc;
      border-radius: 12px;
      padding: 8px 10px;
      text-align: center;
      font-size: 0.68rem;
      color: var(--muted);
      font-weight: 800;
    }

    body.case-page .org-node.active {
      background: linear-gradient(135deg, rgba(11,92,171,0.1), rgba(31,182,170,0.12));
      color: var(--gm-blue-dark);
      border-color: rgba(11, 92, 171, 0.24);
    }

    body.case-page .org-line { width: 1px; height: 14px; background: var(--line); }
    body.case-page .org-children { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

    body.case-page .section { padding: 72px 0; }

    body.case-page .section-header {
      max-width: 780px;
      margin-bottom: 34px;
    }

    body.case-page .section-header h2 {
      margin: 0 0 12px;
      font-size: clamp(2rem, 4vw, 3.1rem);
      line-height: 1.05;
      letter-spacing: -0.06em;
    }

    body.case-page .section-header p { margin: 0; color: var(--muted); font-size: 1.05rem; }

    body.case-page .snapshot-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
    }

    body.case-page .snapshot-card {
      background: rgba(255,255,255,0.78);
      border: 1px solid rgba(217,224,234,0.9);
      border-radius: var(--radius-md);
      padding: 22px;
      transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    }

    body.case-page .snapshot-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
      border-color: rgba(31, 182, 170, 0.35);
    }

    body.case-page .snapshot-card span {
      display: block;
      color: var(--muted);
      font-size: 0.78rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      font-weight: 900;
      margin-bottom: 8px;
    }

    body.case-page .snapshot-card strong { display: block; font-size: 1rem; line-height: 1.35; }

    body.case-page .problem-card {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      padding: 28px;
      box-shadow: 0 20px 50px rgba(15, 23, 42, 0.07);
    }

    body.case-page .before-after {
      border-radius: 22px;
      padding: 20px;
      background: linear-gradient(180deg, #f8fafc, #ffffff);
      border: 1px solid var(--line);
    }

    body.case-page .ba-toggle {
      display: inline-flex;
      background: #eef2f7;
      border-radius: 999px;
      padding: 4px;
      margin-bottom: 18px;
    }

    body.case-page .ba-toggle button {
      border: 0;
      background: transparent;
      border-radius: 999px;
      padding: 8px 14px;
      cursor: pointer;
      color: var(--muted);
      font-weight: 900;
    }

    body.case-page .ba-toggle button.active {
      background: white;
      color: var(--ink);
      box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    }

    body.case-page .experience-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
    body.case-page .experience-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
    body.case-page .experience-list li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--purple); margin-top: 8px; flex: 0 0 auto; }

    body.case-page .tabs-wrap {
      display: grid;
      grid-template-columns: 280px 1fr;
      gap: 24px;
      align-items: start;
    }

    body.case-page .tabs { position: sticky; top: 22px; display: grid; gap: 10px; }

    body.case-page .tab-button {
      text-align: left;
      border: 1px solid var(--line);
      background: rgba(255,255,255,0.72);
      padding: 18px;
      border-radius: 18px;
      cursor: pointer;
      color: var(--muted);
      transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
    }

    body.case-page .tab-button:hover { transform: translateX(4px); border-color: rgba(124, 58, 237, 0.35); }

    body.case-page .tab-button.active {
      color: var(--ink);
      background: white;
      border-color: rgba(31, 182, 170, 0.45);
      box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
    }

    body.case-page .tab-kicker { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 900; color: var(--purple); margin-bottom: 4px; }
    body.case-page .tab-title { display: block; font-weight: 900; font-size: 1rem; color: currentColor; }

    body.case-page .tab-panel {
      display: none;
      background: white;
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      padding: 30px;
      box-shadow: 0 20px 50px rgba(15, 23, 42, 0.07);
      animation: panelIn 260ms ease;
    }

    body.case-page .tab-panel.active { display: block; }

    @keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

    body.case-page .panel-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 30px; align-items: center; }
    body.case-page .panel-copy h3 { margin: 0 0 12px; font-size: 1.9rem; letter-spacing: -0.05em; line-height: 1.08; }
    body.case-page .panel-copy p { margin: 0 0 16px; color: var(--muted); }

    body.case-page .bullet-list { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
    body.case-page .bullet-list li { display: flex; gap: 10px; align-items: flex-start; }
    body.case-page .bullet-list li::before { content: "✓"; width: 21px; height: 21px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #08766d; background: var(--teal-soft); font-size: 0.75rem; font-weight: 900; margin-top: 2px; }

    body.case-page .artifact {
      border-radius: 22px;
      padding: 18px;
      background: #f8fafc;
      border: 1px solid var(--line);
      min-height: 340px;
    }

    body.case-page .journey-map { display: grid; gap: 12px; }
    body.case-page .journey-step { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: start; padding: 12px; background: white; border: 1px solid var(--line); border-radius: 14px; }
    body.case-page .journey-step span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--purple-soft); color: var(--purple); font-weight: 900; }
    body.case-page .journey-step strong { display: block; font-size: 0.86rem; }
    body.case-page .journey-step p { margin: 2px 0 0; color: var(--muted); font-size: 0.76rem; }

    body.case-page .persona-card { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06); }
    body.case-page .persona-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
    body.case-page .avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--purple)); }

    body.case-page .wireframe { display: grid; gap: 12px; }
    body.case-page .wf-bar, body.case-page .wf-block, body.case-page .wf-card { background: #e5e7eb; border-radius: 10px; }
    body.case-page .wf-bar { height: 28px; }
    body.case-page .wf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    body.case-page .wf-card { height: 100px; }
    body.case-page .wf-block { height: 150px; }

    body.case-page .mini-directory {
      background: white;
      border: 1px solid var(--line);
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    }

    body.case-page .mini-top { height: 38px; background: linear-gradient(135deg, var(--gm-blue-dark), var(--gm-blue)); }
    body.case-page .mini-body { padding: 16px; }
    body.case-page .mini-search { height: 42px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; margin-bottom: 12px; }
    body.case-page .mini-layout { display: grid; grid-template-columns: 1fr 0.8fr; gap: 12px; }
    body.case-page .mini-results, body.case-page .mini-profile { height: 170px; border-radius: 14px; background: linear-gradient(135deg, var(--teal-soft), rgba(11,92,171,0.08)); border: 1px solid var(--line); }

    body.case-page .decision-grid, body.case-page .impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

    body.case-page .decision-card, body.case-page .impact-card {
      position: relative;
      min-height: 210px;
      padding: 22px;
      border-radius: var(--radius-md);
      background: white;
      border: 1px solid var(--line);
      overflow: hidden;
      transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
    }

    body.case-page .decision-card:hover, body.case-page .impact-card:hover { transform: translateY(-5px); border-color: rgba(31, 182, 170, 0.42); box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08); }
    body.case-page .decision-card::after, body.case-page .impact-card::after { content: ""; position: absolute; inset: auto -30px -40px auto; width: 110px; height: 110px; border-radius: 50%; background: linear-gradient(135deg, var(--teal-soft), var(--purple-soft)); }

    body.case-page .card-number { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: var(--purple-soft); color: var(--purple); font-weight: 900; margin-bottom: 18px; }
    body.case-page .decision-card h3, body.case-page .impact-card h3 { margin: 0 0 10px; font-size: 1.04rem; line-height: 1.2; letter-spacing: -0.03em; }
    body.case-page .decision-card p, body.case-page .impact-card p { margin: 0; color: var(--muted); font-size: 0.93rem; }

    body.case-page .takeaway {
      padding: 54px;
      border-radius: 34px;
      background: linear-gradient(135deg, var(--navy), #15294d);
      color: white;
      position: relative;
      overflow: hidden;
    }

    body.case-page .takeaway::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(31, 182, 170, 0.32), transparent 65%); right: -120px; top: -160px; }
    body.case-page .takeaway h2 { position: relative; margin: 0 0 14px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.06em; max-width: 820px; }
    body.case-page .takeaway p { position: relative; margin: 0; max-width: 780px; color: rgba(255,255,255,0.78); font-size: 1.06rem; }

    body.case-page .reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
    body.case-page .reveal.visible { opacity: 1; transform: translateY(0); }

    @media (max-width: 980px) {
      body.case-page .hero-grid, body.case-page .problem-card, body.case-page .tabs-wrap, body.case-page .panel-grid { grid-template-columns: 1fr; }
      body.case-page .tabs { position: static; grid-template-columns: repeat(2, 1fr); }
      body.case-page .snapshot-grid, body.case-page .decision-grid, body.case-page .impact-grid { grid-template-columns: repeat(2, 1fr); }
      body.case-page .people-body { grid-template-columns: 1fr; }
      body.case-page .people-sidebar { display: none; }
      body.case-page .product-shell { transform: none; }
      body.case-page .directory-grid { grid-template-columns: 1fr; }
    }

    @media (max-width: 680px) {
      body.case-page .container { width: min(100% - 28px, var(--max)); }
      body.case-page .hero { padding-top: 58px; }
      body.case-page .snapshot-grid, body.case-page .decision-grid, body.case-page .impact-grid, body.case-page .tabs, body.case-page .mini-layout, body.case-page .directory-grid, body.case-page .profile-meta { grid-template-columns: 1fr; }
      body.case-page .people-header { flex-direction: column; }
      body.case-page .result-row { grid-template-columns: 42px 1fr; }
      body.case-page .result-tag { display: none; }
      body.case-page .takeaway { padding: 34px; }
    }

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

body.case-page .nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--line);
}

body.case-page .nav-wrap nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

body.case-page .brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

body.case-page .brand strong {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

body.case-page .brand span {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.25;
}

body.case-page .nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

body.case-page .nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 160ms ease;
}

body.case-page .nav-links a:hover {
  color: var(--teal);
}

/* ===== MOBILE NAV - NO HTML CHANGES ===== */

@media (max-width: 720px) {
  body.case-page .nav-wrap nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  body.case-page .brand {
    width: 100%;
  }

  body.case-page .brand span {
    font-size: 0.72rem;
  }

  body.case-page .nav-links {
    display: flex !important;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
  }

  body.case-page .nav-links a {
    font-size: 0.85rem;
  }
}

@media (max-width: 420px) {
  body.case-page .nav-links {
    justify-content: flex-start;
  }

  body.case-page .nav-links a {
    padding-right: 8px;
  }
}
  

    body.case-page {
      --bg: #f7f8fb;
      --surface: #ffffff;
      --surface-soft: #eef2f7;
      --ink: #172033;
      --muted: #667085;
      --line: #d9e0ea;
      --teal: #1fb6aa;
      --teal-soft: rgba(31, 182, 170, 0.12);
      --purple: #7c3aed;
      --purple-soft: rgba(124, 58, 237, 0.12);
      --navy: #07172d;
      --gm-blue: #0b5cab;
      --gm-blue-dark: #062a52;
      --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
      --radius-lg: 28px;
      --radius-md: 18px;
      --radius-sm: 12px;
      --max: 1180px;
    }

    * { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body.case-page {
      margin: 0;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--ink);
      background:
        radial-gradient(circle at 8% 8%, rgba(31, 182, 170, 0.16), transparent 28%),
        radial-gradient(circle at 85% 12%, rgba(124, 58, 237, 0.13), transparent 30%),
        var(--bg);
      line-height: 1.6;
    }

    body.case-page a { color: inherit; text-decoration: none; }
    body.case-page img { max-width: 100%; display: block; }

    body.case-page .case-study { overflow: hidden; }

    body.case-page .button.secondary {
    background: rgba(255, 255, 255, .72);
    border-color: var(--line);
    color: var(--ink);
}

    body.case-page .container {
      width: min(var(--max), calc(100% - 40px));
      margin: 0 auto;
    }

     body.case-page .case-breadcrumb {
      position: relative;
      top: 70px;
    }

    body.case-page .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: var(--purple);
      font-size: 0.78rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      margin-bottom: 18px;
    }

    body.case-page .eyebrow::before {
      content: "";
      width: 28px;
      height: 2px;
      border-radius: 99px;
      background: linear-gradient(90deg, var(--teal), var(--purple));
    }

    body.case-page .hero { padding: 92px 0 52px; }

    body.case-page .hero-grid {
      display: grid;
      grid-template-columns: 0.9fr 1.1fr;
      gap: 54px;
      align-items: center;
    }

    body.case-page .hero h1 {
      font-size: clamp(3.4rem, 9vw, 6.8rem);
      line-height: 0.92;
      margin: 0 0 24px;
      letter-spacing: -0.075em;
    }

    body.case-page .hero h1 span {
      display: block;
      background: linear-gradient(135deg, var(--ink), #394157 45%, var(--purple));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    body.case-page .hero-lede {
      max-width: 570px;
      font-size: clamp(1.05rem, 2vw, 1.25rem);
      color: var(--muted);
      margin: 0 0 28px;
    }

    body.case-page .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      margin-top: 28px;
    }

    body.case-page .button {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      min-height: 46px;
      padding: 0 18px;
      border-radius: 999px;
      font-weight: 800;
      font-size: 0.92rem;
      transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    }

    body.case-page .button:hover { transform: translateY(-2px); }

    body.case-page .button-primary {
      color: white;
      background: linear-gradient(135deg, var(--teal), var(--purple));
      box-shadow: 0 14px 30px rgba(31, 182, 170, 0.22);
    }

    body.case-page .button-secondary {
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.75);
      color: var(--ink);
    }

    body.case-page .hero-note {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      margin-top: 26px;
      color: var(--muted);
      font-size: 0.92rem;
    }

    body.case-page .hero-note span {
      flex: 0 0 auto;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      color: var(--teal);
      background: var(--teal-soft);
      font-weight: 900;
      line-height: 1;
    }

    body.case-page .product-shell {
      position: relative;
      border-radius: 32px;
      padding: 12px;
      background: linear-gradient(135deg, rgba(255,255,255,0.86), rgba(255,255,255,0.35));
      box-shadow: var(--shadow);
      transform: perspective(1100px) rotateY(-5deg) rotateX(3deg);
      transition: transform 450ms ease;
    }

    body.case-page .product-shell:hover { transform: perspective(1100px) rotateY(0deg) rotateX(0deg) translateY(-4px); }

    body.case-page .people-app {
      border: 1px solid rgba(255,255,255,0.28);
      background: var(--surface);
      border-radius: 24px;
      overflow: hidden;
      min-height: 560px;
    }

    body.case-page .people-topbar {
      height: 58px;
      padding: 0 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      color: white;
      background: linear-gradient(135deg, var(--gm-blue-dark), #083b73 60%, var(--gm-blue));
    }

    body.case-page .brand-mark {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 900;
      letter-spacing: -0.03em;
    }

    body.case-page .gm-badge {
      width: 34px;
      height: 24px;
      display: grid;
      place-items: center;
      border-radius: 6px;
      font-size: 0.68rem;
      letter-spacing: -0.06em;
      font-weight: 900;
    }

    body.case-page .top-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      color: rgba(255,255,255,0.78);
      font-size: 0.72rem;
      font-weight: 800;
    }

    body.case-page .pulse-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: var(--teal);
      box-shadow: 0 0 0 rgba(31, 182, 170, 0.55);
      animation: case-pulse 1800ms infinite;
    }

    @keyframes case-pulse {
      0% { box-shadow: 0 0 0 0 rgba(31, 182, 170, 0.45); }
      70% { box-shadow: 0 0 0 9px rgba(31, 182, 170, 0); }
      100% { box-shadow: 0 0 0 0 rgba(31, 182, 170, 0); }
    }

    body.case-page .people-body {
      display: grid;
      grid-template-columns: 190px 1fr;
      min-height: 502px;
    }

    body.case-page .people-sidebar {
      background: #07172d;
      color: #cbd5e1;
      padding: 18px 12px;
    }

    body.case-page .nav-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border-radius: 12px;
      font-size: 0.82rem;
      margin-bottom: 6px;
      color: rgba(255,255,255,0.72);
    }

    body.case-page .nav-item.active { background: rgba(31, 182, 170, 0.14); color: white; }
    body.case-page .nav-icon { width: 8px; height: 8px; border-radius: 2px; background: currentColor; opacity: 0.75; }

    body.case-page .people-content {
      padding: 22px;
      background: linear-gradient(180deg, #ffffff, #f8fafc);
    }

    body.case-page .people-header {
      display: flex;
      justify-content: space-between;
      gap: 20px;
      align-items: flex-start;
      margin-bottom: 18px;
    }

    body.case-page .people-title h2 { font-size: 1.18rem; margin: 0 0 4px; letter-spacing: -0.04em; }
    body.case-page .people-title p { margin: 0; color: var(--muted); font-size: 0.84rem; }

    body.case-page .view-toggle {
      display: inline-flex;
      padding: 4px;
      border-radius: 999px;
      background: #eef2f7;
      border: 1px solid var(--line);
    }

    body.case-page .view-toggle span {
      padding: 7px 11px;
      border-radius: 999px;
      color: var(--muted);
      font-size: 0.72rem;
      font-weight: 900;
    }

    body.case-page .view-toggle span.active { background: white; color: var(--gm-blue-dark); box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08); }

    body.case-page .search-panel {
      border: 1px solid var(--line);
      background: white;
      border-radius: 18px;
      padding: 14px;
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
      margin-bottom: 14px;
    }

    body.case-page .search-bar {
      display: flex;
      align-items: center;
      gap: 10px;
      border: 1px solid #cfd8e6;
      border-radius: 14px;
      padding: 12px 14px;
      background: #f8fafc;
      color: var(--muted);
      font-size: 0.86rem;
      transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
    }

    body.case-page .search-bar:hover {
      border-color: rgba(31, 182, 170, 0.7);
      box-shadow: 0 0 0 4px rgba(31, 182, 170, 0.08);
      background: white;
    }

    body.case-page .search-icon {
      width: 15px;
      height: 15px;
      border: 2px solid var(--gm-blue);
      border-radius: 50%;
      position: relative;
      flex: 0 0 auto;
    }

    body.case-page .search-icon::after {
      content: "";
      width: 7px;
      height: 2px;
      background: var(--gm-blue);
      position: absolute;
      right: -6px;
      bottom: -3px;
      transform: rotate(45deg);
      border-radius: 99px;
    }

    body.case-page .filter-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 12px;
    }

    body.case-page .chip {
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 6px 10px;
      color: #475467;
      background: white;
      font-size: 0.72rem;
      font-weight: 800;
    }

    body.case-page .chip.active { color: #08766d; background: var(--teal-soft); border-color: rgba(31, 182, 170, 0.38); }

    body.case-page .directory-grid {
      display: grid;
      grid-template-columns: 1fr 0.88fr;
      gap: 14px;
      align-items: stretch;
    }

    body.case-page .results-list, body.case-page .profile-panel, body.case-page .org-panel {
      background: white;
      border: 1px solid var(--line);
      border-radius: 18px;
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    }

    body.case-page .results-list { overflow: hidden; }

    body.case-page .result-row {
      display: grid;
      grid-template-columns: 42px 1fr auto;
      gap: 12px;
      align-items: center;
      padding: 13px 14px;
      border-bottom: 1px solid #eef2f7;
      transition: background 180ms ease;
    }

    body.case-page .result-row:hover { background: #f8fafc; }
    body.case-page .result-row.active { background: linear-gradient(90deg, rgba(11,92,171,0.08), rgba(31,182,170,0.06)); }

    body.case-page .face {
      width: 42px;
      height: 42px;
      border-radius: 14px;
      background: linear-gradient(135deg, var(--gm-blue), var(--teal));
      position: relative;
      overflow: hidden;
    }

    body.case-page .face::before {
      content: "";
      width: 13px;
      height: 13px;
      border-radius: 50%;
      background: rgba(255,255,255,0.9);
      position: absolute;
      top: 9px;
      left: 14px;
    }

    body.case-page .face::after {
      content: "";
      width: 24px;
      height: 14px;
      border-radius: 999px 999px 0 0;
      background: rgba(255,255,255,0.75);
      position: absolute;
      bottom: 6px;
      left: 9px;
    }

    body.case-page .result-copy strong { display: block; font-size: 0.82rem; letter-spacing: -0.02em; }
    body.case-page .result-copy span { display: block; color: var(--muted); font-size: 0.7rem; line-height: 1.35; }

    body.case-page .result-tag {
      display: inline-flex;
      padding: 4px 8px;
      border-radius: 999px;
      color: var(--gm-blue-dark);
      background: rgba(11, 92, 171, 0.1);
      font-size: 0.66rem;
      font-weight: 900;
      white-space: nowrap;
    }

    body.case-page .profile-stack {
      display: grid;
      gap: 14px;
    }

    body.case-page .profile-panel { padding: 16px; }

    body.case-page .profile-head {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 14px;
    }

    body.case-page .profile-avatar {
      width: 54px;
      height: 54px;
      border-radius: 18px;
      background: linear-gradient(135deg, var(--gm-blue), var(--purple));
      box-shadow: 0 10px 22px rgba(11, 92, 171, 0.18);
    }

    body.case-page .profile-head strong { display: block; font-size: 0.94rem; }
    body.case-page .profile-head span { display: block; color: var(--muted); font-size: 0.74rem; }

    body.case-page .profile-meta {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    body.case-page .meta-card {
      border: 1px solid #eef2f7;
      background: #f8fafc;
      border-radius: 13px;
      padding: 10px;
    }

    body.case-page .meta-card span { display: block; color: var(--muted); font-size: 0.65rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; }
    body.case-page .meta-card strong { display: block; font-size: 0.76rem; margin-top: 2px; }

    body.case-page .org-panel { padding: 16px; }
    body.case-page .org-title { display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; font-weight: 900; margin-bottom: 12px; }

    body.case-page .org-chart {
      display: grid;
      justify-items: center;
      gap: 10px;
      padding-top: 4px;
    }

    body.case-page .org-node {
      min-width: 128px;
      border: 1px solid var(--line);
      background: #f8fafc;
      border-radius: 12px;
      padding: 8px 10px;
      text-align: center;
      font-size: 0.68rem;
      color: var(--muted);
      font-weight: 800;
    }

    body.case-page .org-node.active {
      background: linear-gradient(135deg, rgba(11,92,171,0.1), rgba(31,182,170,0.12));
      color: var(--gm-blue-dark);
      border-color: rgba(11, 92, 171, 0.24);
    }

    body.case-page .org-line { width: 1px; height: 14px; background: var(--line); }
    body.case-page .org-children { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

    body.case-page .section { padding: 72px 0; }

    body.case-page .section-header {
      max-width: 780px;
      margin-bottom: 34px;
    }

    body.case-page .section-header h2 {
      margin: 0 0 12px;
      font-size: clamp(2rem, 4vw, 3.1rem);
      line-height: 1.05;
      letter-spacing: -0.06em;
    }

    body.case-page .section-header p { margin: 0; color: var(--muted); font-size: 1.05rem; }

    body.case-page .snapshot-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
    }

    body.case-page .snapshot-card {
      background: rgba(255,255,255,0.78);
      border: 1px solid rgba(217,224,234,0.9);
      border-radius: var(--radius-md);
      padding: 22px;
      transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    }

    body.case-page .snapshot-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
      border-color: rgba(31, 182, 170, 0.35);
    }

    body.case-page .snapshot-card span {
      display: block;
      color: var(--muted);
      font-size: 0.78rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      font-weight: 900;
      margin-bottom: 8px;
    }

    body.case-page .snapshot-card strong { display: block; font-size: 1rem; line-height: 1.35; }

    body.case-page .problem-card {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      padding: 28px;
      box-shadow: 0 20px 50px rgba(15, 23, 42, 0.07);
    }

    body.case-page .before-after {
      border-radius: 22px;
      padding: 20px;
      background: linear-gradient(180deg, #f8fafc, #ffffff);
      border: 1px solid var(--line);
    }

    body.case-page .ba-toggle {
      display: inline-flex;
      background: #eef2f7;
      border-radius: 999px;
      padding: 4px;
      margin-bottom: 18px;
    }

    body.case-page .ba-toggle button {
      border: 0;
      background: transparent;
      border-radius: 999px;
      padding: 8px 14px;
      cursor: pointer;
      color: var(--muted);
      font-weight: 900;
    }

    body.case-page .ba-toggle button.active {
      background: white;
      color: var(--ink);
      box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    }

    body.case-page .experience-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
    body.case-page .experience-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
    body.case-page .experience-list li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--purple); margin-top: 8px; flex: 0 0 auto; }

    body.case-page .tabs-wrap {
      display: grid;
      grid-template-columns: 280px 1fr;
      gap: 24px;
      align-items: start;
    }

    body.case-page .tabs { position: sticky; top: 22px; display: grid; gap: 10px; }

    body.case-page .tab-button {
      text-align: left;
      border: 1px solid var(--line);
      background: rgba(255,255,255,0.72);
      padding: 18px;
      border-radius: 18px;
      cursor: pointer;
      color: var(--muted);
      transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
    }

    body.case-page .tab-button:hover { transform: translateX(4px); border-color: rgba(124, 58, 237, 0.35); }

    body.case-page .tab-button.active {
      color: var(--ink);
      background: white;
      border-color: rgba(31, 182, 170, 0.45);
      box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
    }

    body.case-page .tab-kicker { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 900; color: var(--purple); margin-bottom: 4px; }
    body.case-page .tab-title { display: block; font-weight: 900; font-size: 1rem; color: currentColor; }

    body.case-page .tab-panel {
      display: none;
      background: white;
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      padding: 30px;
      box-shadow: 0 20px 50px rgba(15, 23, 42, 0.07);
      animation: panelIn 260ms ease;
    }

    body.case-page .tab-panel.active { display: block; }

    @keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

    body.case-page .panel-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 30px; align-items: center; }
    body.case-page .panel-copy h3 { margin: 0 0 12px; font-size: 1.9rem; letter-spacing: -0.05em; line-height: 1.08; }
    body.case-page .panel-copy p { margin: 0 0 16px; color: var(--muted); }

    body.case-page .bullet-list { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
    body.case-page .bullet-list li { display: flex; gap: 10px; align-items: flex-start; }
    body.case-page .bullet-list li::before { content: "✓"; width: 21px; height: 21px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #08766d; background: var(--teal-soft); font-size: 0.75rem; font-weight: 900; margin-top: 2px; }

    body.case-page .artifact {
      border-radius: 22px;
      padding: 18px;
      background: #f8fafc;
      border: 1px solid var(--line);
      min-height: 340px;
    }

    body.case-page .journey-map { display: grid; gap: 12px; }
    body.case-page .journey-step { display: grid; grid-template-columns: 55px 1fr; gap: 10px; align-items: start; padding: 12px; background: white; border: 1px solid var(--line); border-radius: 14px; }
    body.case-page .journey-step span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--purple-soft); color: var(--purple); font-weight: 900; }
    body.case-page .journey-step strong { display: block; font-size: 0.86rem; }
    body.case-page .journey-step p { margin: 2px 0 0; color: var(--muted); font-size: 0.76rem; }

    body.case-page .persona-card { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06); }
    body.case-page .persona-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
    body.case-page .avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--purple)); }

    body.case-page .wireframe { display: grid; gap: 12px; }
    body.case-page .wf-bar, body.case-page .wf-block, body.case-page .wf-card { background: #e5e7eb; border-radius: 10px; }
    body.case-page .wf-bar { height: 28px; }
    body.case-page .wf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    body.case-page .wf-card { height: 100px; }
    body.case-page .wf-block { height: 150px; }

    body.case-page .mini-directory {
      background: white;
      border: 1px solid var(--line);
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    }

    body.case-page .mini-top { height: 38px; background: linear-gradient(135deg, var(--gm-blue-dark), var(--gm-blue)); }
    body.case-page .mini-body { padding: 16px; }
    body.case-page .mini-search { height: 42px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; margin-bottom: 12px; }
    body.case-page .mini-layout { display: grid; grid-template-columns: 1fr 0.8fr; gap: 12px; }
    body.case-page .mini-results, body.case-page .mini-profile { height: 170px; border-radius: 14px; background: linear-gradient(135deg, var(--teal-soft), rgba(11,92,171,0.08)); border: 1px solid var(--line); }

    body.case-page .decision-grid, body.case-page .impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

    body.case-page .decision-card, body.case-page .impact-card {
      position: relative;
      min-height: 210px;
      padding: 22px;
      border-radius: var(--radius-md);
      background: white;
      border: 1px solid var(--line);
      overflow: hidden;
      transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
    }

    body.case-page .decision-card:hover, body.case-page .impact-card:hover { transform: translateY(-5px); border-color: rgba(31, 182, 170, 0.42); box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08); }
    body.case-page .decision-card::after, body.case-page .impact-card::after { content: ""; position: absolute; inset: auto -30px -40px auto; width: 110px; height: 110px; border-radius: 50%; background: linear-gradient(135deg, var(--teal-soft), var(--purple-soft)); }

    body.case-page .card-number { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: var(--purple-soft); color: var(--purple); font-weight: 900; margin-bottom: 18px; }
    body.case-page .decision-card h3, body.case-page .impact-card h3 { margin: 0 0 10px; font-size: 1.04rem; line-height: 1.2; letter-spacing: -0.03em; }
    body.case-page .decision-card p, body.case-page .impact-card p { margin: 0; color: var(--muted); font-size: 0.93rem; }

    body.case-page .takeaway {
      padding: 54px;
      border-radius: 34px;
      background: linear-gradient(135deg, var(--navy), #15294d);
      color: white;
      position: relative;
      overflow: hidden;
    }

    body.case-page .takeaway::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(31, 182, 170, 0.32), transparent 65%); right: -120px; top: -160px; }
    body.case-page .takeaway h2 { position: relative; margin: 0 0 14px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.06em; max-width: 820px; }
    body.case-page .takeaway p { position: relative; margin: 0; max-width: 780px; color: rgba(255,255,255,0.78); font-size: 1.06rem; }

    body.case-page .reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
    body.case-page .reveal.visible { opacity: 1; transform: translateY(0); }

    @media (max-width: 980px) {
      body.case-page .hero-grid, body.case-page .problem-card, body.case-page .tabs-wrap, body.case-page .panel-grid { grid-template-columns: 1fr; }
      body.case-page .tabs { position: static; grid-template-columns: repeat(2, 1fr); }
      body.case-page .snapshot-grid, body.case-page .decision-grid, body.case-page .impact-grid { grid-template-columns: repeat(2, 1fr); }
      body.case-page .people-body { grid-template-columns: 1fr; }
      body.case-page .people-sidebar { display: none; }
      body.case-page .product-shell { transform: none; }
      body.case-page .directory-grid { grid-template-columns: 1fr; }
    }

    @media (max-width: 680px) {
      body.case-page .container { width: min(100% - 28px, var(--max)); }
      body.case-page .hero { padding-top: 58px; }
      body.case-page .snapshot-grid, body.case-page .decision-grid, body.case-page .impact-grid, body.case-page .tabs, body.case-page .mini-layout, body.case-page .directory-grid, body.case-page .profile-meta { grid-template-columns: 1fr; }
      body.case-page .people-header { flex-direction: column; }
      body.case-page .result-row { grid-template-columns: 42px 1fr; }
      body.case-page .result-tag { display: none; }
      body.case-page .takeaway { padding: 34px; }
    }
    body.case-page .case-card-grid {
  display: grid;
  gap: 24px;
}

body.case-page .case-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.07);
}

body.case-page .case-card:nth-child(even) .case-image {
  order: 2;
}

body.case-page .case-image {
  min-height: 280px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-soft), var(--purple-soft));
  border: 1px solid var(--line);
}

body.case-page .case-image img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

body.case-page .case-content h3 {
  margin: 4px 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

body.case-page .case-content p {
  color: var(--muted);
  margin: 0 0 18px;
}

body.case-page .case-kicker {
  display: inline-block;
  color: var(--purple);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

@media (max-width: 900px) {
  body.case-page .case-card, body.case-page .case-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  body.case-page .case-card:nth-child(even) .case-image {
    order: 0;
  }
}body.case-page .case-card-grid {
  display: grid;
  gap: 24px;
}

body.case-page .case-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.07);
}

body.case-page .case-card:nth-child(even) .case-image {
  order: 2;
}

body.case-page .case-image {
  min-height: 280px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-soft), var(--purple-soft));
  border: 1px solid var(--line);
}

body.case-page .case-image img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

body.case-page .case-content h3 {
  margin: 4px 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

body.case-page .case-content p {
  color: var(--muted);
  margin: 0 0 18px;
}

body.case-page .case-kicker {
  display: inline-block;
  color: var(--purple);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

@media (max-width: 900px) {
  body.case-page .case-card, body.case-page .case-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  body.case-page .case-card:nth-child(even) .case-image {
    order: 0;
  }
}body.case-page .case-card-grid {
  display: grid;
  gap: 24px;
}

body.case-page .case-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.07);
}

body.case-page .case-card:nth-child(even) .case-image {
  order: 2;
}

body.case-page .case-image {
  min-height: 280px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-soft), var(--purple-soft));
  border: 1px solid var(--line);
}

body.case-page .case-image img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

body.case-page .case-content h3 {
  margin: 4px 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

body.case-page .case-content p {
  color: var(--muted);
  margin: 0 0 18px;
}

body.case-page .case-kicker {
  display: inline-block;
  color: var(--purple);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

@media (max-width: 900px) {
  body.case-page .case-card, body.case-page .case-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  body.case-page .case-card:nth-child(even) .case-image {
    order: 0;
  }
}
body.case-page .global-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.75);
  border-bottom: 1px solid var(--line);
}

body.case-page .nav-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

body.case-page .logo {
  font-weight: 900;
  letter-spacing: -0.03em;
}

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

body.case-page .nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--line);
}

body.case-page .nav-wrap nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

body.case-page .brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

body.case-page .brand strong {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

body.case-page .brand span {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.25;
}

body.case-page .nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

body.case-page .nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 160ms ease;
}

body.case-page .nav-links a:hover {
  color: var(--teal);
}

/* ===== MOBILE NAV - NO HTML CHANGES ===== */

@media (max-width: 720px) {
  body.case-page .nav-wrap nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  body.case-page .brand {
    width: 100%;
  }

  body.case-page .brand span {
    font-size: 0.72rem;
  }

  body.case-page .nav-links {
    display: flex !important;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
  }

  body.case-page .nav-links a {
    font-size: 0.85rem;
  }
}

@media (max-width: 420px) {
  body.case-page .nav-links {
    justify-content: flex-start;
  }

  body.case-page .nav-links a {
    padding-right: 8px;
  }
}
body.case-page .case-breadcrumb a {
  color: var(--muted);
  font-weight: 600;
}

body.case-page .case-breadcrumb a:hover {
  color: var(--teal);
}
  

/* ===== Homepage identity / headshot block ===== */
body.home-page .identity-card {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 620px;
  margin-top: 28px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 40px rgba(80, 60, 160, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.home-page .identity-card img {
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 32px rgba(23, 21, 18, 0.16);
}

body.home-page .identity-copy strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

body.home-page .identity-copy span {
  display: block;
  margin-top: 4px;
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 800;
}

body.home-page .identity-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (max-width: 560px) {
  body.home-page .identity-card {
    align-items: flex-start;
    padding: 12px;
  }

  body.home-page .identity-card img {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }

  body.home-page .identity-copy p {
    font-size: 0.86rem;
  }
}

/* ===== Homepage hero-side integration ===== */
body.home-page .hero-side {
  display: grid;
  gap: 18px;
  align-self: center;
}

body.home-page .hero-side .identity-card {
  margin-top: 0;
}

body.home-page .hero-side .impact-card {
  width: 100%;
}

@media (min-width: 921px) {
  body.home-page .hero-grid {
    align-items: center;
  }
}

/* ===== Homepage hero-side integration ===== */
body.home-page .hero-side {
  display: grid;
  gap: 18px;
  align-self: center;
}

body.home-page .hero-side .identity-card {
  margin-top: 0;
}

body.home-page .hero-side .impact-card {
  width: 100%;
}

@media (min-width: 921px) {
  body.home-page .hero-grid {
    align-items: center;
  }
}

/* ===== Digital Marketplace Preview ===== */

body.case-page .digital-marketplace-shell {
  background: transparent;
  box-shadow: none;
}

body.case-page .dm-preview {
  position: relative;
  min-height: 500px;
}

body.case-page .dm-browser-dots {
  display: none;
}

body.case-page .dm-desktop {
  position: relative;
  min-height: 430px;
  padding: 28px 34px;
  color: #fff;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 36%, rgba(0, 217, 232, .28), transparent 18%),
    linear-gradient(180deg, #073f68 0%, #063758 100%);
  box-shadow: var(--shadow);
}

body.case-page .dm-desktop::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 420px;
  height: 250px;
  background: linear-gradient(135deg, rgba(0, 202, 221, .9), rgba(0, 129, 190, .72));
  border-radius: 80px;
  transform: rotate(-28deg);
  opacity: .9;
}

body.case-page .dm-topbar,
body.case-page .dm-nav,
body.case-page .dm-hero-preview {
  position: relative;
  z-index: 2;
}

body.case-page .dm-topbar {
  display: grid;
  grid-template-columns: 145px 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
}

body.case-page .dm-logo-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 145px;
  font-size: 11px;
  line-height: 1.05;
}

body.case-page .dm-logo-mark strong {
  color: #40d3e6;
  font-weight: 900;
}

body.case-page .dm-cart-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(64, 211, 230, .35), rgba(255,255,255,.08));
  border: 1px solid rgba(64, 211, 230, .42);
  position: relative;
}

body.case-page .dm-cart-icon::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px solid #40d3e6;
  border-top: 0;
  border-radius: 2px 2px 5px 5px;
}

body.case-page .dm-cart-icon::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 8px;
  width: 10px;
  height: 7px;
  border: 2px solid #40d3e6;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

body.case-page .dm-search {
  max-width: 320px;
  padding: 10px 14px;
  border-radius: 6px;
  background: rgba(0, 20, 40, .32);
  color: rgba(255,255,255,.78);
  font-size: 12px;
}

body.case-page .dm-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.case-page .dm-actions span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  opacity: .9;
}

body.case-page .dm-actions span:last-child {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #d7a15e, #6f4a24);
  border: 2px solid rgba(255,255,255,.45);
}

body.case-page .dm-nav {
  display: flex;
  gap: 36px;
  margin-bottom: 42px;
  font-size: 18px;
  font-weight: 600;
}

body.case-page .dm-hero-preview {
  display: grid;
  grid-template-columns: .9fr 1fr;
  gap: 30px;
  align-items: start;
}

body.case-page .dm-hero-copy {
  max-width: 380px;
}

body.case-page .dm-hero-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 500;
}

body.case-page .dm-hero-copy h2 span {
  color: #1dd7e8;
  font-weight: 800;
}

body.case-page .dm-hero-copy p {
  margin: 0 0 28px;
  color: rgba(255,255,255,.9);
  font-size: 15px;
  line-height: 1.45;
}

body.case-page .dm-cta-row {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

body.case-page .dm-primary-cta,
body.case-page .dm-secondary-cta {
  flex: 0 0 auto;
}

body.case-page .dm-primary-cta {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: #fff;
  color: #073f68;
  font-weight: 800;
  box-shadow: 0 18px 38px rgba(0,0,0,.18);
}

body.case-page .dm-secondary-cta {
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}

body.case-page .dm-video-card {
  position: relative;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(rgba(6, 55, 88, .08), rgba(6, 55, 88, .36)),
    radial-gradient(circle at 60% 45%, rgba(255,255,255,.38), transparent 16%),
    linear-gradient(135deg, #b9c6cf, #60798c 45%, #132d45);
  box-shadow: 0 22px 50px rgba(0,0,0,.24);
}

body.case-page .dm-video-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.12) 0 2px, transparent 2px 14px);
  opacity: .28;
}

body.case-page .dm-video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0 36%, rgba(0,0,0,.22) 100%);
}

body.case-page .dm-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.9);
  color: #073f68;
  font-size: 0;
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
}

body.case-page .dm-play::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid #073f68;
  margin-left: 4px;
}

body.case-page .dm-video-label {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 16px;
  color: rgba(255,255,255,.8);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.case-page .dm-lower-icons {
  display: none;
}

/* Phone */
body.case-page .dm-phone {
  position: absolute;
  z-index: 6;
  right: -34px;
  bottom: -42px;
  width: 190px;
  padding: 7px;
  border-radius: 34px;
  background: #111827;
  box-shadow: 0 28px 60px rgba(0,0,0,.35);
}

body.case-page .dm-phone::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 31px;
  border: 1px solid rgba(255,255,255,.28);
  pointer-events: none;
}

body.case-page .dm-phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 66px;
  height: 19px;
  border-radius: 999px;
  background: #05070b;
  z-index: 9;
}

body.case-page .dm-phone-screen {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: 28px;
  padding: 44px 18px 18px;
  background:
    radial-gradient(circle at 78% 52%, rgba(0, 217, 232, .24), transparent 22%),
    linear-gradient(180deg, #0b3f68 0%, #07385d 62%, #ffffff 62%, #ffffff 100%);
  color: #fff;
}

body.case-page .dm-phone-screen::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: 100px;
  width: 150px;
  height: 94px;
  border-radius: 36px;
  transform: rotate(-26deg);
  background: linear-gradient(135deg, #10cadc, #0879b2);
  z-index: 0;
}

body.case-page .dm-phone-top,
body.case-page .dm-phone-nav,
body.case-page .dm-phone-screen h3,
body.case-page .dm-phone-screen p,
body.case-page .dm-phone-actions,
body.case-page .dm-phone-video {
  position: relative;
  z-index: 2;
}

body.case-page .dm-phone-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

body.case-page .dm-mini-logo {
  font-size: 8px;
  line-height: 1.05;
  font-weight: 700;
}

body.case-page .dm-phone-top span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d7a15e, #6f4a24);
}

body.case-page .dm-phone-nav {
  display: flex;
  gap: 14px;
  margin-bottom: 44px;
  font-size: 8px;
  font-weight: 800;
}

body.case-page .dm-phone-screen h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 500;
}

body.case-page .dm-phone-screen h3 span {
  color: #1dd7e8;
  font-weight: 800;
}

body.case-page .dm-phone-screen p {
  width: 132px;
  margin: 0 0 16px;
  color: rgba(255,255,255,.92);
  font-size: 8.5px;
  line-height: 1.45;
}

body.case-page .dm-phone-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
  white-space: nowrap;
  margin-bottom: 42px;
}

body.case-page .dm-phone-actions span:first-child {
  display: inline-flex;
  align-items: center;
  padding: 7px 8px;
  border-radius: 999px;
  background: white;
  color: #073f68;
  font-size: 8px;
  font-weight: 900;
}

body.case-page .dm-phone-actions span:last-child {
  color: #fff;
  font-size: 7.5px;
  font-weight: 900;
}

body.case-page .dm-phone-video {
  height: 82px;
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.22), transparent 15%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.16) 0 1px, transparent 1px 8px),
    linear-gradient(135deg, #0b2440, #0a76a8);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}

body.case-page .dm-phone-video span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  color: #073f68;
  display: grid;
  place-items: center;
  font-size: 0;
}

body.case-page .dm-phone-video span::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #073f68;
  margin-left: 3px;
}

@media (max-width: 980px) {
  body.case-page .dm-phone {
    right: 14px;
    bottom: -34px;
  }

  body.case-page .dm-hero-preview {
    grid-template-columns: 1fr;
  }

  body.case-page .dm-video-card {
    max-width: 420px;
  }
}

@media (max-width: 680px) {
  body.case-page .dm-preview {
    min-height: auto;
  }

  body.case-page .dm-desktop {
    min-height: auto;
    padding: 24px;
  }

  body.case-page .dm-topbar {
    grid-template-columns: 1fr;
  }

  body.case-page .dm-search,
  body.case-page .dm-actions,
  body.case-page .dm-phone {
    display: none;
  }

  body.case-page .dm-nav {
    gap: 18px;
    font-size: 14px;
    margin-bottom: 28px;
  }

  body.case-page .dm-hero-copy h2 {
    font-size: 34px;
  }

  body.case-page .dm-video-card {
    height: 180px;
  }
}
/* ===== GLOBAL AVATAR NORMALIZATION / FIX =====
   Fixes stretched oval avatar placeholders across all case-study mockups.
   Keep this near the bottom of the stylesheet so it overrides earlier page-specific rules.
*/
body.case-page .avatar,
body.case-page .face,
body.case-page .profile-avatar,
body.case-page .profile-detail .avatar,
body.case-page .persona-head .avatar,
body.case-page .person-row .avatar,
body.case-page .profile-head .avatar {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: block;
  flex: 0 0 auto;
  min-width: var(--avatar-size, 42px);
  width: var(--avatar-size, 42px);
  height: var(--avatar-size, 42px);
  max-width: var(--avatar-size, 42px);
  max-height: var(--avatar-size, 42px);
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 50% 33%, rgba(255,255,255,.95) 0 18%, transparent 19%),
    radial-gradient(circle at 50% 92%, rgba(255,255,255,.72) 0 33%, transparent 34%),
    linear-gradient(135deg, var(--teal), var(--purple));
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.55), 0 8px 18px rgba(15,23,42,.10);
}

/* Standard small avatars */
body.case-page .person-row .avatar,
body.case-page .face {
  --avatar-size: 42px;
}

/* Persona avatars */
body.case-page .persona-head .avatar {
  --avatar-size: 48px;
}

/* Larger profile avatars */
body.case-page .profile-avatar,
body.case-page .profile-detail .avatar,
body.case-page .profile-head .avatar {
  --avatar-size: 54px;
}

/* Prevent old square/rounded avatar pseudo-elements from fighting the circular avatar shape */
body.case-page .face::before,
body.case-page .face::after {
  content: none;
}

/* Make grid/flex rows respect the fixed circular avatar width */
body.case-page .result-row,
body.case-page .person-row,
body.case-page .profile-head,
body.case-page .persona-head,
body.case-page .profile-detail {
  align-items: center;
}

body.case-page .result-row {
  grid-template-columns: 42px 1fr auto;
}

body.case-page .person-row {
  grid-template-columns: 42px 1fr auto;
}

body.case-page .profile-detail {
  grid-template-columns: 54px 1fr;
}
