*, *::before, *::after { box-sizing: border-box; }

  :root {
    --cs-panel: #f6f7fb;
    --cs-ink: #0b1020;
    --cs-muted: #586178;
    --cs-line: #e6e8f0;
    --cs-accent: #3d5afe;
    --cs-accent-2: #7a6dff;
    --cs-accent-deep: #2337c9;
    --cs-accent-soft: rgba(61,90,254,0.07);
    --cs-mint: #00b57a;
    --cs-dark: #0b0c1a;
    --cs-header-h: 76px;
    --ease: cubic-bezier(.16,1,.3,1);

    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  }

  html { scroll-behavior: smooth; }
  html, body {
    max-width: 100%;
    background: #ffffff !important;
    color: var(--cs-ink);
    font-family: var(--font-body);
    margin: 0; padding: 0;
    -webkit-font-smoothing: antialiased;
  }
  /* Stops sideways scroll WITHOUT breaking sticky elements.
     (overflow-x:hidden on <body> turns it into a scroll box, which is what
     stopped the section index from staying pinned.) */
  html { overflow-x: hidden; }
  body { overflow-x: clip !important; overflow-y: visible !important; }
  body.csd-lock { overflow: hidden !important; }

  #cs-header-wrap {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 1000; background: #ffffff;
    border-bottom: 1px solid var(--cs-line);
  }

  img, svg { max-width: 100%; height: auto; }
  h1, h2, h3, h4, h5 { font-family: var(--font-heading); margin: 0; }

  .csd-wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 32px; }

  /* Reveal on scroll */
  .csd-js .csd-reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
  .csd-js .csd-reveal.is-in { opacity: 1; transform: none; }

  /* Reading progress */
  .csd-progress { position: fixed; left: 0; right: 0; top: var(--cs-header-h); height: 3px; z-index: 999; pointer-events: none; }
  .csd-progress span { display: block; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--cs-accent-2), var(--cs-accent), var(--cs-mint)); }

  /* Buttons */
  .csd-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 26px; border-radius: 999px;
    font-family: var(--font-heading); font-weight: 700; font-size: 15px;
    text-decoration: none; white-space: nowrap; cursor: pointer; border: 1px solid transparent;
    transition: transform .25s var(--ease), background .2s ease, border-color .2s ease, color .2s ease, box-shadow .25s ease;
  }
  .csd-btn svg { width: 17px; height: 17px; flex-shrink: 0; transition: transform .25s var(--ease); }
  .csd-btn:hover { transform: translateY(-2px); }
  .csd-btn:hover svg { transform: translateX(3px); }
  .csd-btn--primary { background: var(--cs-accent); color: #fff; box-shadow: 0 14px 30px -12px rgba(61,90,254,.7); }
  .csd-btn--primary:hover { background: var(--cs-accent-deep); }
  .csd-btn--glass { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .csd-btn--glass:hover { background: rgba(255,255,255,.18); }
  .csd-btn--glass:hover svg { transform: translateY(3px); }
  .csd-btn--ink { background: var(--cs-ink); color: #fff; }
  .csd-btn--ink:hover { background: var(--cs-accent); }
  .csd-btn--line { background: #fff; color: var(--cs-ink); border-color: var(--cs-line); }
  .csd-btn--line:hover { border-color: var(--cs-accent); color: var(--cs-accent); }
  .csd-btn--white { background: #fff; color: var(--cs-ink); }
  .csd-btn--white:hover { background: #eef1ff; }

  /* ================= HERO ================= */
  .csd-hero {
    position: relative; isolation: isolate; overflow: hidden;
    margin-top: var(--cs-header-h);
    min-height: calc(100vh - var(--cs-header-h));
    min-height: calc(100svh - var(--cs-header-h));
    display: flex; flex-direction: column; justify-content: flex-end;
    background: var(--cs-dark); color: #fff;
  }
  .csd-hero__media { position: absolute; inset: 0; z-index: -2; display: block; }
  .csd-hero__media img {
    width: 100%; height: 100%; max-width: none; display: block;
    object-fit: cover; object-position: center center;
    filter: brightness(0.70);
  }
  .csd-hero__shade {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(8,10,26,.30) 0%, rgba(8,10,26,.60) 100%);
  }
  /* Sizes scale with screen height so the facts bar is always visible on load */
  .csd-hero { --fit: 1; }
  .csd-hero__inner { padding-top: calc(clamp(24px, 7vh, 120px) * var(--fit)); padding-bottom: clamp(48px, 8vh, 84px); }
  .csd-hero__inner > * { animation: csd-up 1s var(--ease) both; }
  .csd-hero__inner > *:nth-child(2) { animation-delay: .1s; }
  .csd-hero__inner > *:nth-child(3) { animation-delay: .2s; }
  .csd-hero__inner > *:nth-child(4) { animation-delay: .3s; }
  .csd-hero__inner > *:nth-child(5) { animation-delay: .4s; }
  @keyframes csd-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

  .csd-crumbs {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
    color: rgba(255,255,255,.65); margin-bottom: calc(clamp(10px, 2.6vh, 26px) * var(--fit));
  }
  .csd-crumbs a { color: inherit; text-decoration: none; transition: color .2s ease; }
  .csd-crumbs a:hover { color: #fff; }
  .csd-crumbs i { width: 18px; height: 1px; background: rgba(255,255,255,.4); display: inline-block; }
  .csd-crumbs span { color: #fff; }

  .csd-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: calc(clamp(10px, 2.2vh, 22px) * var(--fit)); }
  .csd-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: 999px;
    font-size: 12.5px; font-weight: 600; color: #fff;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .csd-chip--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cs-mint); box-shadow: 0 0 0 4px rgba(0,181,122,.25); }

  .csd-hero h1 {
    font-size: calc(clamp(32px, min(6vw, 8.5vh), 80px) * var(--fit)); font-weight: 500;
    letter-spacing: -.03em; line-height: 1.15; padding-bottom: 0.12em;
    margin: 0 0 calc(clamp(10px, 2.4vh, 24px) * var(--fit)); color: #fff !important;
  }
  .csd-hero__tagline {
    font-size: max(14px, calc(clamp(15.5px, min(1.9vw, 2.7vh), 23px) * var(--fit))); line-height: 1.5;
    color: rgba(255,255,255,.82); max-width: 50ch; margin: 0 0 calc(clamp(14px, 3.4vh, 34px) * var(--fit));
  }
  .csd-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
  .csd-hero__actions .csd-btn { padding: clamp(11px, 1.9vh, 15px) clamp(18px, 2vw, 26px); }


  .csd-hero__facts {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin-bottom: calc(clamp(12px, 2.8vh, 28px) * var(--fit)); border-radius: 20px; overflow: hidden;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    animation: csd-up .9s var(--ease) .25s both;
  }
  .csd-fact { padding: clamp(10px, 2vh, 18px) 22px; min-width: 0; box-shadow: -1px 0 0 rgba(255,255,255,.12), 0 -1px 0 rgba(255,255,255,.12); }
  .csd-fact span { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 6px; }
  .csd-fact b { display: block; font-family: var(--font-heading); font-size: 15px; font-weight: 600; color: #fff; line-height: 1.35; overflow-wrap: anywhere; }
  .csd-fact a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
  .csd-fact a svg { width: 14px; height: 14px; }
  .csd-fact a:hover { color: #b3c0ff; }

  /* ================= MOBILE SECTION NAV ================= */
  .csd-mnav {
    display: none; position: sticky; top: var(--cs-header-h); z-index: 50;
    background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cs-line);
  }
  .csd-mnav__track { display: flex; gap: 8px; overflow-x: auto; padding: 12px 20px; scrollbar-width: none; }
  .csd-mnav__track::-webkit-scrollbar { display: none; }
  .csd-mnav a {
    flex: 0 0 auto; padding: 8px 14px; border-radius: 999px;
    font-size: 13.5px; font-weight: 600; color: var(--cs-muted); text-decoration: none;
    border: 1px solid var(--cs-line); background: #fff; transition: all .2s ease;
  }
  .csd-mnav a.is-active { background: var(--cs-ink); border-color: var(--cs-ink); color: #fff; }

  /* ================= STORY LAYOUT ================= */
  .csd-layout {
    display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 72px;
    padding-top: 100px; padding-bottom: 110px; align-items: start;
  }
  .csd-side {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .csd-side__card { border: 1px solid var(--cs-line); border-radius: 22px; padding: 18px 18px 22px; background: linear-gradient(180deg, #fafbff, #fff); }
  .csd-side__thumb { border-radius: 14px; overflow: hidden; background: var(--cs-panel); margin-bottom: 18px; border: 1px solid var(--cs-line); }
  .csd-side__thumb img { width: 100%; height: auto; display: block; }
  .csd-side dl { margin: 0; padding: 0 4px; display: grid; gap: 14px; }
  .csd-side dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: #8a91a5; }
  .csd-side dd { margin: 3px 0 0; font-size: 14.5px; font-weight: 600; color: var(--cs-ink); line-height: 1.45; }
  .csd-side .csd-btn { width: 100%; justify-content: center; margin-top: 20px; padding: 13px 20px; font-size: 14.5px; }

  .csd-toc {
    position: sticky;
    top: calc(var(--cs-header-h) + 32px);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--cs-line);
  }
  .csd-toc a {
    position: relative; display: flex; align-items: center; gap: 12px;
    padding: 9px 16px; margin-left: -1px;
    font-size: 14px; font-weight: 500; color: var(--cs-muted); text-decoration: none;
    border-left: 2px solid transparent; transition: color .2s ease, border-color .2s ease, background .2s ease;
  }
  .csd-toc a span { font-family: var(--font-mono); font-size: 11.5px; color: #a3a9ba; transition: color .2s ease; }
  .csd-toc a:hover { color: var(--cs-ink); }
  .csd-toc a.is-active { color: var(--cs-ink); font-weight: 600; border-left-color: var(--cs-accent); background: linear-gradient(90deg, var(--cs-accent-soft), transparent); }
  .csd-toc a.is-active span { color: var(--cs-accent); }

  /* Short screens: trim the project card so the whole section list stays visible */
  .csd-article { min-width: 0; display: flex; flex-direction: column; gap: 104px; }
  .csd-sec { scroll-margin-top: calc(var(--cs-header-h) + 72px); }

  .csd-eyebrow {
    display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
    font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--cs-accent);
  }
  .csd-eyebrow b {
    display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
    background: var(--cs-accent); color: #fff; font-weight: 600; letter-spacing: 0; font-size: 10.5px;
  }
  .csd-h2 { font-size: clamp(20px, 2.1vw, 26px); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; margin: 0 0 18px; color: var(--cs-ink); }
  .csd-details {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin: 0 0 32px; border: 1px solid var(--cs-line); border-radius: 18px; overflow: hidden; background: #fff;
  }
  .csd-details > div { padding: 16px 18px; min-width: 0; border-right: 1px solid var(--cs-line); border-bottom: 1px solid var(--cs-line); margin: 0 -1px -1px 0; }
  .csd-details span { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: #8a91a5; margin-bottom: 5px; }
  .csd-details b { display: block; font-family: var(--font-heading); font-size: 14.5px; font-weight: 600; color: var(--cs-ink); line-height: 1.4; }
  .csd-details a { color: var(--cs-accent); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
  .csd-details a svg { width: 13px; height: 13px; }
  .csd-details a:hover { text-decoration: underline; }
  .csd-lead { font-family: var(--font-heading); font-size: clamp(16px, 1.35vw, 18.5px); line-height: 1.6; font-weight: 500; letter-spacing: -.01em; color: var(--cs-ink); margin: 0; }

  /* Overview story cards */
  .csd-story { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; }
  .csd-story article {
    padding: 28px; border-radius: 22px; background: var(--cs-panel); border: 1px solid var(--cs-line);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .3s ease;
  }
  .csd-story article:hover { transform: translateY(-4px); background: #fff; box-shadow: 0 30px 60px -40px rgba(15,23,42,.4); }
  .csd-story h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.35; margin: 0 0 10px; color: var(--cs-ink); }
  .csd-story p { margin: 0; font-size: 15.5px; line-height: 1.75; color: var(--cs-muted); }

  /* Challenge */
  .csd-challenge {
    position: relative; overflow: hidden; isolation: isolate;
    padding: 44px 48px; border-radius: 26px;
    background: linear-gradient(135deg, #f2f3ff 0%, #f6fbff 55%, #f1fcf7 100%);
    border: 1px solid #e2e6ff;
  }
  .csd-challenge > svg { position: absolute; z-index: -1; right: 28px; top: 20px; width: 120px; height: 120px; color: rgba(61,90,254,.1); }
  .csd-challenge p { margin: 0; font-family: var(--font-heading); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.65; font-weight: 500; color: var(--cs-ink); }

  /* Requirements */
  .csd-reqs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .csd-reqs li {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 20px; border: 1px solid var(--cs-line); border-radius: 18px; background: #fff;
    font-size: 15px; line-height: 1.6; color: var(--cs-muted);
    transition: border-color .25s ease, transform .4s var(--ease);
  }
  .csd-reqs li:hover { border-color: rgba(61,90,254,.4); transform: translateY(-3px); }
  .csd-reqs li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .csd-reqs .n { flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #eef0ff; color: var(--cs-accent); font-family: var(--font-mono); font-size: 12px; font-weight: 600; }

  /* Solution */
  .csd-sol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .csd-sol li {
    position: relative; overflow: hidden; isolation: isolate;
    padding: 26px 24px 24px; border-radius: 22px; background: #fff; border: 1px solid var(--cs-line);
    font-size: 15.5px; line-height: 1.65; color: var(--cs-muted);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s ease;
  }
  .csd-sol li::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s ease;
    background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(61,90,254,.09), transparent 60%);
  }
  .csd-sol li:hover::before { opacity: 1; }
  .csd-sol li:hover { transform: translateY(-4px); border-color: rgba(61,90,254,.35); box-shadow: 0 30px 60px -40px rgba(30,40,120,.45); }
  .csd-sol li b { color: var(--cs-ink); font-weight: 700; }
  .csd-sol li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .csd-sol__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
  .csd-sol__ic {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #fff;
    background: linear-gradient(135deg, var(--cs-accent-2), var(--cs-accent));
    box-shadow: 0 12px 24px -12px rgba(61,90,254,.8); transition: transform .5s var(--ease);
  }
  .csd-sol__ic svg { width: 20px; height: 20px; }
  .csd-sol li:hover .csd-sol__ic { transform: rotate(-10deg) scale(1.08); }
  .csd-sol__n { font-family: var(--font-mono); font-size: 12px; color: #a3a9ba; letter-spacing: .08em; }

  /* Under the hood */
  .csd-tech {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; gap: 22px; align-items: flex-start;
    padding: 32px; border-radius: 24px; background: var(--cs-dark); color: #fff;
  }
  .csd-tech::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(122,109,255,.55), transparent 65%); }
  .csd-tech__ic { flex-shrink: 0; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #b3abff; }
  .csd-tech__ic svg { width: 22px; height: 22px; }
  .csd-tech p { margin: 0; font-size: 16px; line-height: 1.75; color: rgba(255,255,255,.8); }
  .csd-tech__pills { display: flex; flex-wrap: wrap; gap: 8px; }
  .csd-tech__pills span { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 13.5px; font-weight: 500; }

  /* Results: stats + list */
  .csd-stats {
    position: relative; overflow: hidden; isolation: isolate;
    display: grid; grid-template-columns: repeat(3, 1fr);
    border-radius: 26px; background: var(--cs-dark); margin-bottom: 22px;
  }
  .csd-stats::before { content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; left: -200px; bottom: -360px; border-radius: 50%; background: radial-gradient(circle, rgba(61,90,254,.7), transparent 65%); }
  .csd-stats::after { content: ""; position: absolute; z-index: -1; width: 380px; height: 380px; right: -120px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(0,181,122,.35), transparent 65%); }
  .csd-stat { padding: 34px 28px; border-left: 1px solid rgba(255,255,255,.1); }
  .csd-stat:first-child { border-left: none; }
  .csd-stat__v {
    font-family: var(--font-heading); font-size: clamp(32px, 4vw, 52px); font-weight: 600;
    letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #fff 40%, #b3abff 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  }
  .csd-stat__l { margin-top: 12px; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.66); }

  .csd-stats.is-4 { grid-template-columns: repeat(4, 1fr); }
  .csd-stat__v.is-text { font-size: clamp(24px, 2.4vw, 36px); line-height: 1.15; }
  @media (max-width: 991px) {
    .csd-stats.is-4 { grid-template-columns: repeat(2, 1fr); }
    .csd-stats.is-4 .csd-stat:nth-child(3) { border-left: none; border-top: 1px solid rgba(255,255,255,.1); }
    .csd-stats.is-4 .csd-stat:nth-child(4) { border-top: 1px solid rgba(255,255,255,.1); }
  }
  @media (max-width: 600px) {
    .csd-stats.is-4 { grid-template-columns: 1fr; }
    .csd-stats.is-4 .csd-stat { border-left: none; border-top: 1px solid rgba(255,255,255,.1); }
    .csd-stats.is-4 .csd-stat:first-child { border-top: none; }
  }

  /* Prose block for story sections */
  .csd-prose-block { font-size: 16.5px; line-height: 1.8; color: #374151; }
  .csd-prose-block p { margin: 0 0 16px; }
  .csd-prose-block p:last-child { margin-bottom: 0; }
  .csd-prose-block strong { color: var(--cs-ink); font-weight: 700; }

  .csd-cta-textlink {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
    font-size: 15.5px; font-weight: 700; color: var(--cs-accent); text-decoration: none;
    transition: gap .2s ease, color .2s ease;
  }
  .csd-cta-textlink:hover { color: var(--cs-accent-deep); gap: 12px; text-decoration: underline; }
  .csd-cta-textlink svg { width: 16px; height: 16px; flex-shrink: 0; }

  /* Institutions: Collage / Masonry Grid (tight, zero empty space) */
  .csd-inst-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
    margin-top: 28px;
  }
  .csd-inst-col {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  .csd-inst-card {
    position: relative; overflow: hidden; isolation: isolate;
    padding: 28px 26px 24px; border-radius: 22px;
    background: #FFFFFF; border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 16px 36px -14px rgba(11, 19, 36, .1), 0 2px 6px -2px rgba(11, 19, 36, .04);
    display: flex; flex-direction: column;
    height: fit-content;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  }
  .csd-inst-card::before {
    content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3.5px;
    background: linear-gradient(90deg, #3d5afe 0%, #00b4d8 100%);
    opacity: 0;
    transition: opacity .3s ease;
  }
  .csd-inst-card--featured::before,
  .csd-inst-card:hover::before {
    opacity: 1;
  }
  .csd-inst-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -18px rgba(61, 90, 254, .25), 0 4px 12px -2px rgba(11, 19, 36, .06);
    border-color: rgba(61, 90, 254, .3);
  }

  .csd-inst-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
  }
  .csd-inst-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: #F1F5F9; color: #334155;
    display: grid; place-items: center;
    flex-shrink: 0;
    transition: background .3s ease, color .3s ease, transform .3s ease;
  }
  .csd-inst-card:hover .csd-inst-icon {
    background: var(--csd-grad); color: #fff; transform: rotate(-8deg);
  }
  .csd-inst-card__num {
    font-family: var(--font-heading);
    font-size: 46px; font-weight: 700; line-height: 1; letter-spacing: -0.04em;
    color: transparent; -webkit-text-stroke: 1.5px #CBD5E1;
    transition: -webkit-text-stroke-color .3s ease;
    user-select: none;
  }
  .csd-inst-card:hover .csd-inst-card__num {
    -webkit-text-stroke-color: #818CF8;
  }

  .csd-inst-card h3 {
    font-size: 19px; font-weight: 700; color: var(--cs-ink);
    margin: 0 0 10px; letter-spacing: -0.015em;
    line-height: 1.35;
  }
  .csd-inst-card p {
    font-size: 14.5px; line-height: 1.68; color: var(--cs-muted);
    margin: 0 0 12px;
  }
  .csd-inst-card p:last-of-type {
    margin-bottom: 0;
  }
  .csd-inst-link {
    display: inline-flex; align-items: center; gap: 7px;
    margin-top: 16px; align-self: flex-start;
    padding: 8px 18px; border-radius: 999px;
    background: #ffffff; border: 1.5px solid #E2E8F0;
    color: var(--cs-accent); font-family: var(--font-heading);
    font-size: 13px; font-weight: 600; text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,.03);
    transition: all .25s ease;
  }
  .csd-inst-card:hover .csd-inst-link {
    background: var(--cs-accent); color: #fff; border-color: var(--cs-accent);
    transform: translateY(-2px);
  }
  .csd-inst-link svg { width: 14px; height: 14px; flex-shrink: 0; }

  @media (max-width: 767px) {
    .csd-inst-grid { display: flex; flex-direction: column; gap: 16px; }
    .csd-inst-col { display: contents; }
    .csd-inst-card { order: var(--card-order); padding: 22px 18px 20px; }
    .csd-inst-card__num { font-size: 36px; }
    .csd-inst-icon { width: 40px; height: 40px; }
  }

  /* Live Websites Showcase: Alternating Zigzag Layout */
  .csd-web-rows {
    display: flex;
    flex-direction: column;
    gap: 36px;
    margin-top: 32px;
  }
  .csd-web-row {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 44px;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 24px;
    padding: 32px 36px;
    box-shadow: 0 16px 36px -16px rgba(11, 19, 36, .08), 0 2px 6px -2px rgba(11, 19, 36, .04);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  }
  .csd-web-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 48px -18px rgba(61, 90, 254, .2), 0 6px 16px -4px rgba(11, 19, 36, .06);
    border-color: rgba(61, 90, 254, .3);
  }
  .csd-web-row--reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  }
  .csd-web-row--reverse .csd-web-row__media {
    order: 2;
  }
  .csd-web-row--reverse .csd-web-row__content {
    order: 1;
  }

  .csd-web-row__media .csd-shot {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 12px 28px -12px rgba(11, 19, 36, .12);
    transition: transform .3s ease;
  }
  .csd-web-row:hover .csd-web-row__media .csd-shot {
    transform: translateY(-2px);
  }
  .csd-web-row__media .csd-shot__view img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
  }

  .csd-web-row__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .csd-web-row__content h3 {
    font-size: 21px;
    font-weight: 700;
    color: var(--cs-ink);
    margin: 0 0 12px;
    line-height: 1.35;
    letter-spacing: -0.015em;
  }
  .csd-web-row__desc p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--cs-muted);
    margin: 0 0 14px;
  }
  .csd-web-row__desc p:last-child {
    margin-bottom: 0;
  }

  @media (max-width: 900px) {
    .csd-web-rows {
      gap: 24px;
    }
    .csd-web-row,
    .csd-web-row--reverse {
      grid-template-columns: 1fr;
      gap: 22px;
      padding: 24px 20px;
    }
    .csd-web-row--reverse .csd-web-row__media {
      order: 1;
    }
    .csd-web-row--reverse .csd-web-row__content {
      order: 2;
    }
  }

  /* ================= BEFORE & AFTER STAGE (OVERLAPPING SHOWCASE) ================= */
  .csd-compare-group { margin-top: 48px; }
  .csd-compare-group:first-of-type { margin-top: 28px; }
  .csd-compare-group__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--cs-ink);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .csd-compare-group__title span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: #F1F5F9;
    border: 1px solid var(--cs-line);
    border-radius: 999px;
    font-size: 21px;
    font-weight: 600;
    color: #334155;
  }

  .csd-compare-stage {
    position: relative;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    border: none;
    padding: 24px 0 36px;
    box-shadow: none;
  }

  .csd-compare-row {
    position: relative;
    display: grid;
    align-items: center;
  }

  /* Top: Before mockup on left, "| Before" on right */
  .csd-compare-row--before {
    grid-template-columns: minmax(0, 1.35fr) minmax(130px, 0.85fr);
    gap: 36px;
    z-index: 1;
  }

  /* Bottom: "After |" on left, After mockup on right with overlap */
  .csd-compare-row--after {
    grid-template-columns: minmax(130px, 0.85fr) minmax(0, 1.35fr);
    gap: 36px;
    z-index: 2;
    margin-top: -68px; /* Staggered overlap like the reference image */
  }

  /* Mockup Frame */
  .csd-compare-mockup {
    position: relative;
  }
  .csd-compare-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform .35s var(--ease), box-shadow .35s ease;
  }
  .csd-compare-card:hover {
    transform: translateY(-4px);
  }

  .csd-compare-mockup--before .csd-compare-card {
    box-shadow: 0 20px 42px -16px rgba(15, 23, 42, 0.2), 0 4px 12px -4px rgba(15, 23, 42, 0.08);
  }
  .csd-compare-mockup--after .csd-compare-card {
    box-shadow: 0 32px 64px -20px rgba(15, 23, 42, 0.28), 0 12px 24px -10px rgba(15, 23, 42, 0.14);
  }

  .csd-compare-card__bar {
    display: none;
  }

  .csd-compare-card__view {
    display: block;
    background: #f8fafc;
    overflow: hidden;
  }
  .csd-compare-card__view img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
  }

  /* Tags / Labels */
  .csd-compare-tag {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    user-select: none;
  }
  .csd-compare-tag--before {
    justify-content: flex-start;
    padding-left: 12px;
  }
  .csd-compare-tag--after {
    justify-content: flex-end;
    padding-right: 12px;
  }
  .csd-compare-tag__bar {
    width: 3.5px;
    height: 42px;
    border-radius: 3px;
    background: #00b4d8; /* Cyan accent from reference image */
    flex-shrink: 0;
  }
  .csd-compare-tag__title {
    font-family: var(--font-heading);
    font-size: clamp(30px, 3.2vw, 42px);
    font-weight: 300;
    letter-spacing: -0.015em;
    color: #475569;
    line-height: 1;
  }

  @media (max-width: 900px) {
    .csd-compare-stage {
      padding: 36px 20px 40px;
      border-radius: 20px;
      background: #edf0f4;
    }
    .csd-compare-row--before,
    .csd-compare-row--after {
      grid-template-columns: 1fr;
      gap: 16px;
      margin-top: 0;
    }
    .csd-compare-row--after {
      margin-top: 36px;
    }
    .csd-compare-tag--before {
      order: -1;
      padding-left: 0;
    }
    .csd-compare-tag--after {
      order: -1;
      justify-content: flex-start;
      padding-right: 0;
    }
    .csd-compare-tag--after .csd-compare-tag__bar {
      order: -1;
    }
    .csd-compare-tag__bar {
      height: 32px;
      width: 3px;
    }
    .csd-compare-tag__title {
      font-size: 26px;
    }
  }

  /* Browser frame topbar on screenshots */
  .csd-shot__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #f8fafc;
    border-bottom: 1px solid var(--cs-line);
  }
  .csd-shot__bar i { width: 9px; height: 9px; border-radius: 50%; display: block; flex-shrink: 0; }
  .csd-shot__bar i:nth-child(1) { background: #ff5f57; }
  .csd-shot__bar i:nth-child(2) { background: #febc2e; }
  .csd-shot__bar i:nth-child(3) { background: #28c840; }
  .csd-shot__url {
    margin-left: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--cs-line);
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 500;
    color: var(--cs-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 260px;
  }

  .csd-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
  .csd-results li {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 18px 20px; border-radius: 16px;
    background: linear-gradient(90deg, #effbf6, #ffffff 75%); border: 1px solid #d5f0e4;
    font-size: 15.5px; line-height: 1.6; color: #273142;
    transition: transform .4s var(--ease), border-color .25s ease;
  }
  .csd-results li:hover { transform: translateX(4px); border-color: #9fdfc3; }
  .csd-results li b { color: var(--cs-ink); }
  .csd-results .ck { flex-shrink: 0; display: grid; place-items: center; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; background: var(--cs-mint); color: #fff; box-shadow: 0 6px 14px -6px rgba(0,181,122,.8); }
  .csd-results .ck svg { width: 13px; height: 13px; }

  /* ================= GALLERY ================= */
  .csd-gallery { padding: 0; }
  .csd-gallery__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
  .csd-gallery__head .csd-h2 { margin: 0; }
  .csd-gallery__hint { font-size: 14.5px; color: var(--cs-muted); margin: 0; }
  .csd-gallery__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
  .csd-gallery__grid.is-single { grid-template-columns: 1fr; }
  .csd-gallery__grid.is-many .csd-shot:first-child { grid-column: 1 / -1; }
  .csd-shot {
    position: relative;
    display: block; width: 100%; padding: 0; margin: 0; text-align: left; font: inherit;
    border: 1px solid var(--cs-line); border-radius: 20px; overflow: hidden; background: #fff; cursor: default;
    box-shadow: 0 20px 40px -28px rgba(15,23,42,.35);
  }
  .csd-shot__zoom-badge { display: none !important; }
  .csd-shot__view { display: block; background: #f8fafc; }
  .csd-shot__view img { width: 100%; height: auto; display: block; }

  /* ================= PROJECT FACTS ================= */
  .csd-facts-sec { }
  .csd-facts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f9faff 100%);
    border: 1px solid var(--cs-line);
    border-radius: 24px;
    padding: 34px 36px;
    box-shadow: 0 20px 40px -28px rgba(24,32,79,.12);
  }
  .csd-facts-grid__item {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
  }
  .csd-facts-grid__item--full {
    grid-column: 1 / -1;
  }
  .csd-facts-grid__label {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #7b849b;
    font-weight: 600;
  }
  .csd-facts-grid__val {
    font-size: 16px;
    font-weight: 600;
    color: var(--cs-ink);
    line-height: 1.55;
  }
  .csd-facts-grid__val--text {
    font-size: 15px;
    font-weight: 400;
    color: #4b5565;
    line-height: 1.7;
  }
  .csd-facts-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--cs-accent);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
  }
  .csd-facts-sites-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 3px;
  }
  .csd-facts-site-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--cs-accent);
    text-decoration: none;
    transition: color .2s ease;
  }
  .csd-facts-site-link:hover {
    color: var(--cs-accent-deep);
    text-decoration: underline;
  }
  .csd-facts-site-link svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
  }
  .csd-facts-site-sep {
    color: #a3a9ba;
    font-weight: bold;
    user-select: none;
  }

  /* ================= NEXT PROJECT ================= */
  .csd-next-wrap { padding-bottom: 90px; }
  .csd-next {
    position: relative; overflow: hidden; isolation: isolate;
    display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 48px;
    padding: 52px; border-radius: 32px; background: var(--cs-dark); color: #fff; text-decoration: none;
  }
  .csd-next::before { content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; left: -240px; bottom: -420px; border-radius: 50%; background: radial-gradient(circle, rgba(61,90,254,.75), transparent 65%); transition: transform 1.2s var(--ease); }
  .csd-next:hover::before { transform: translate(60px, -40px); }
  .csd-next__label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #b3abff; margin-bottom: 18px; }
  .csd-next__label::before { content: ""; width: 24px; height: 1px; background: #b3abff; }
  .csd-next h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: #fff !important; margin: 0 0 14px; }
  .csd-next p { margin: 0 0 30px; font-size: 16.5px; line-height: 1.6; color: rgba(255,255,255,.68); max-width: 40ch; }
  .csd-next__go { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #fff; color: var(--cs-ink); transition: transform .5s var(--ease), background .2s ease, color .2s ease; }
  .csd-next__go svg { width: 22px; height: 22px; }
  .csd-next:hover .csd-next__go { transform: translateX(10px); background: var(--cs-accent); color: #fff; }
  .csd-next__img { border-radius: 20px; overflow: hidden; background: #1a1b2e; border: 1px solid rgba(255,255,255,.12); transform: rotate(-2.5deg) translateY(8px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); transition: transform .8s var(--ease); }
  .csd-next:hover .csd-next__img { transform: rotate(0deg) translateY(0) scale(1.02); }
  .csd-next__img img { width: 100%; height: auto; display: block; }

  /* ================= MORE WORK SLIDER ================= */
  .csd-more { padding-bottom: 100px; position: relative; }
  .csd-more__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
  .csd-more__head .csd-h2 { margin: 0; }
  .csd-more__nav { display: flex; align-items: center; gap: 10px; }
  .csd-slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--cs-line);
    color: var(--cs-ink);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    padding: 0;
  }
  .csd-slider-btn svg { width: 18px; height: 18px; }
  .csd-slider-btn:hover:not(:disabled) {
    background: var(--cs-accent);
    border-color: var(--cs-accent);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -4px rgba(61, 90, 254, 0.35);
  }
  .csd-slider-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
  }
  .csd-more__slider {
    container-type: inline-size;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0 28px;
    margin: -10px 0 -28px;
    cursor: grab;
  }
  .csd-more__slider:active {
    cursor: grabbing;
  }
  .csd-more__slider::-webkit-scrollbar {
    display: none;
  }
  .csd-more__track {
    display: flex;
    gap: 24px;
    width: max-content;
  }
  .csd-more__track .csd-card {
    flex: 0 0 var(--card-w, calc((100cqw - 48px) / 3));
    width: var(--card-w, calc((100cqw - 48px) / 3));
    max-width: var(--card-w, calc((100cqw - 48px) / 3));
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: auto;
    scroll-snap-align: start;
    transition: transform .35s var(--ease);
  }
  .csd-more__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
  .csd-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; height: 100%; }
  .csd-card__media {
    display: block; position: relative; border-radius: 20px; overflow: hidden;
    background: var(--cs-panel); border: 1px solid var(--cs-line); margin-bottom: 16px;
    width: 100%; aspect-ratio: 4 / 3; flex-shrink: 0;
  }
  .csd-card__media img {
    width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
    transition: transform .7s var(--ease);
  }
  .csd-card:hover .csd-card__media img { transform: scale(1.05); }
  .csd-card__go { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--cs-accent); color: #fff; opacity: 0; transform: translateY(8px); transition: all .35s var(--ease); }
  .csd-card__go svg { width: 17px; height: 17px; }
  .csd-card:hover .csd-card__go { opacity: 1; transform: none; }
  .csd-card__chip { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--cs-accent); margin-bottom: 8px; }
  .csd-card__name { font-size: 16.5px; font-weight: 700; letter-spacing: -.015em; color: var(--cs-ink); margin: 0 0 6px; transition: color .2s ease; }
  .csd-card:hover .csd-card__name { color: var(--cs-accent); }
  .csd-card__role { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--cs-muted); flex-grow: 1; }

  @media (max-width: 1024px) {
    .csd-more__track {
      gap: 20px;
    }
    .csd-more__track .csd-card {
      flex: 0 0 var(--card-w, calc((100cqw - 20px) / 2));
      width: var(--card-w, calc((100cqw - 20px) / 2));
      max-width: var(--card-w, calc((100cqw - 20px) / 2));
    }
  }
  @media (max-width: 640px) {
    .csd-more__head { gap: 14px; }
    .csd-more__nav { width: 100%; justify-content: space-between; }
    .csd-more__track {
      gap: 16px;
    }
    .csd-more__track .csd-card {
      flex: 0 0 var(--card-w, 100cqw);
      width: var(--card-w, 100cqw);
      max-width: var(--card-w, 100cqw);
    }
  }

  /* ================= CTA ================= */
  .csd-cta-wrap { padding-bottom: 110px; }
  .csd-cta {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
    padding: 56px; border-radius: 32px;
    background: linear-gradient(135deg, #5a4cff 0%, var(--cs-accent) 50%, #1f2fb8 100%); color: #fff;
  }
  .csd-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1.2px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); }
  .csd-cta h2 { font-size: clamp(21px, 2.3vw, 30px); font-weight: 800; letter-spacing: -.025em; line-height: 1.2; color: #fff !important; margin: 0 0 10px; max-width: 22ch; }
  .csd-cta p { margin: 0; font-size: 16px; color: rgba(255,255,255,.8); }
  .csd-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

  /* ================= RESPONSIVE ================= */
  @media (max-width: 1100px) {
    .csd-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 48px; }
  }

  @media (max-width: 1024px) {
    .csd-mnav { display: block; }
    .csd-layout { grid-template-columns: 1fr; gap: 56px; padding-top: 56px; }
    .csd-side { align-self: auto; }
    .csd-toc { display: none; }
    .csd-side__card { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 24px; align-items: center; padding: 18px; }
    .csd-side__thumb { margin: 0; }
    .csd-side dl { grid-template-columns: 1fr 1fr; }
    .csd-side .csd-btn { grid-column: 1 / -1; margin-top: 0; }
    .csd-hero__facts { grid-template-columns: 1fr 1fr; }
    .csd-fact:nth-child(3) { border-left: none; }
    .csd-fact:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
    .csd-next { grid-template-columns: 1fr; padding: 40px; }
    .csd-more { margin-top: 60px; }
    .csd-more__grid { grid-template-columns: 1fr 1fr; }
  }

  /* Mobile hero: separate banner image + its own focus point */
  @media (max-width: 767px) {
    .csd-wrap { padding: 0 20px; }
    .csd-hero { min-height: calc(100vh - var(--cs-header-h)); min-height: calc(100svh - var(--cs-header-h)); }
    .csd-hero__media img { object-position: var(--focus-m); }
    .csd-hero__shade {
      background: linear-gradient(180deg, rgba(8,10,26,.30) 0%, rgba(8,10,26,.64) 100%);
    }
    .csd-hero__inner { padding-top: calc(clamp(20px, 6vh, 90px) * var(--fit)); padding-bottom: 14px; }
    .csd-crumbs { margin-bottom: 12px; font-size: 10.5px; }
    .csd-hero__chips { margin-bottom: 12px; }
    .csd-chip { padding: 6px 12px; font-size: 12px; }
    .csd-hero h1 { font-size: calc(clamp(34px, min(11vw, 7.2vh), 58px) * var(--fit)); line-height: 1.15; padding-bottom: 0.1em; margin-bottom: 10px; }
    .csd-hero__tagline { font-size: 15px; margin-bottom: 16px; }
    .csd-hero__actions { gap: 10px; }
    .csd-hero__actions .csd-btn { flex: 1 1 auto; justify-content: center; padding: 12px 14px; font-size: 14px; gap: 8px; }
    .csd-hero__facts { margin-bottom: 14px; border-radius: 16px; }
    .csd-fact { padding: 10px 14px; }
    .csd-fact span { font-size: 10px; margin-bottom: 3px; }
    .csd-fact b { font-size: 13px; line-height: 1.3; }

    .csd-article { gap: 72px; }
    .csd-side__card { grid-template-columns: 1fr; }
    .csd-side dl { grid-template-columns: 1fr 1fr; }
    .csd-story, .csd-reqs, .csd-sol { grid-template-columns: 1fr; }
    .csd-sol li:last-child:nth-child(odd), .csd-reqs li:last-child:nth-child(odd) { grid-column: auto; }
    .csd-challenge { padding: 30px 24px; border-radius: 22px; }
    .csd-challenge > svg { width: 80px; height: 80px; right: 16px; top: 12px; }
    .csd-tech { flex-direction: column; padding: 26px 22px; }
    .csd-stats { grid-template-columns: 1fr; }
    .csd-stat { border-left: none; border-top: 1px solid rgba(255,255,255,.1); padding: 24px 22px; }
    .csd-stat:first-child { border-top: none; }
    .csd-gallery__grid { grid-template-columns: 1fr; gap: 18px; }
    .csd-facts-grid { grid-template-columns: 1fr; padding: 24px 20px; gap: 18px; }
    .csd-next { padding: 30px 24px; border-radius: 24px; gap: 30px; }
    .csd-next__img { transform: none; }
    .csd-next-wrap { padding-bottom: 72px; }
    .csd-more { margin-top: 84px; }
    .csd-more__grid { grid-template-columns: 1fr; }
    .csd-cta { padding: 36px 24px; border-radius: 24px; }
    .csd-cta__actions, .csd-cta__actions .csd-btn { width: 100%; justify-content: center; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .csd-hero__media img, .csd-hero__inner > *, .csd-hero__facts { animation: none !important; }
    .csd-js .csd-reveal { opacity: 1; transform: none; transition: none; }
    .csd-shot__view img { transition: none; }
  }

  /* =========================================================
     DESIGN REFRESH (motion, depth and colour; content unchanged)
     ========================================================= */
  :root { --csd-grad: linear-gradient(135deg, #5a4cff 0%, #3d5afe 50%, #0ea5e9 100%); }

  /* ---------- Hero (single clean background, no effects) ---------- */
  .csd-hero__media img { animation: none !important; transform: none !important; }
  .csd-hero__shade::before, .csd-hero__shade::after { display: none !important; }
  .csd-hero h1 {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    animation: none !important;
  }
  .csd-btn--primary { position: relative; overflow: hidden; background: var(--csd-grad); }
  .csd-btn--primary::after, .csd-btn--white::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
    transform: skewX(-20deg); transition: left .7s ease; pointer-events: none;
  }
  .csd-btn--white { position: relative; overflow: hidden; }
  .csd-btn--primary:hover::after, .csd-btn--white:hover::after { left: 120%; }

  /* ---------- Story body ---------- */
  .csd-body { position: relative; isolation: isolate; }
  .csd-body::before {
    content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 900px; pointer-events: none;
    background: radial-gradient(ellipse 60% 70% at 85% 0%, rgba(61, 90, 254, .07), transparent 70%);
  }
  .csd-eyebrow b { background: var(--csd-grad); box-shadow: 0 8px 18px -8px rgba(61, 90, 254, .7); }
  .csd-h2 { position: relative; }
  .csd-sec > .csd-h2::after, .csd-gallery__head .csd-h2::after {
    content: ""; display: block; width: 42px; height: 3px; margin-top: 12px; border-radius: 3px;
    background: var(--csd-grad); transform-origin: left; transform: scaleX(0);
    transition: transform .9s var(--ease) .25s;
  }
  .csd-reveal.is-in .csd-h2::after, html:not(.csd-js) .csd-h2::after { transform: scaleX(1); }
  .csd-side__card { transition: box-shadow .3s ease; }
  .csd-side__card:hover { box-shadow: 0 30px 56px -30px rgba(61, 90, 254, .35); }
  .csd-toc a { position: relative; }

  /* story paragraphs (relationship / group) as soft cards */
  #relationship .csd-prose-block, #group .csd-prose-block {
    position: relative; overflow: hidden; isolation: isolate;
    padding: 30px 32px 30px 36px; border-radius: 22px;
    background: linear-gradient(135deg, #F5F7FF 0%, #FFFFFF 70%); border: 1px solid var(--cs-line);
  }
  #relationship .csd-prose-block::before, #group .csd-prose-block::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--csd-grad);
  }
  #relationship .csd-prose-block::after, #group .csd-prose-block::after {
    content: ""; position: absolute; z-index: -1; right: -20px; bottom: -30px; width: 150px; height: 150px; opacity: .06;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d5afe' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E") center/contain no-repeat;
  }
  #group .csd-prose-block::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d5afe' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 1l4 4-4 4'/%3E%3Cpath d='M3 11V9a4 4 0 0 1 4-4h14'/%3E%3Cpath d='M7 23l-4-4 4-4'/%3E%3Cpath d='M21 13v2a4 4 0 0 1-4 4H3'/%3E%3C/svg%3E");
  }

  /* project details card */
  .csd-facts-grid { position: relative; overflow: hidden; }
  .csd-facts-grid::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--csd-grad); }

  /* infrastructure: domains and email as two tiles */
  #infrastructure .csd-prose-block { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  #infrastructure .csd-prose-block p { margin: 0; }
  #infrastructure .csd-prose-block p:has(strong) {
    position: relative; padding: 76px 24px 24px; border-radius: 20px;
    background: #FFFFFF; border: 1px solid var(--cs-line); font-size: 15.5px; line-height: 1.72;
    transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease;
  }
  #infrastructure .csd-prose-block p:has(strong):hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 26px 50px -30px rgba(61, 90, 254, .45); }
  #infrastructure .csd-prose-block p:has(strong)::before {
    content: ""; position: absolute; left: 24px; top: 22px; width: 40px; height: 40px; border-radius: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") center/20px no-repeat, var(--csd-grad);
    box-shadow: 0 10px 22px -10px rgba(61, 90, 254, .7);
  }
  #infrastructure .csd-prose-block p:has(strong):nth-child(2)::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E") center/20px no-repeat, linear-gradient(135deg, #059669, #34D399);
    box-shadow: 0 10px 22px -10px rgba(5, 150, 105, .7);
  }
  #infrastructure .csd-prose-block p:not(:has(strong)) { grid-column: 1 / -1; }

  /* screenshots */
  .csd-shot { transition: transform .4s var(--ease), box-shadow .4s ease; }
  .csd-shot:hover { transform: translateY(-6px); }

  /* lists used on the other case studies */
  .csd-reqs li, .csd-results li { transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease; }
  .csd-reqs li:hover, .csd-results li:hover { transform: translateY(-3px); }

  /* more work */
  .csd-card { transition: transform .35s var(--ease); }
  .csd-card:hover { transform: translateY(-6px); }
  .csd-card__media { position: relative; }
  .csd-card__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, transparent 55%, rgba(11,16,32,.35)); opacity: 0; transition: opacity .35s ease; pointer-events: none; }
  .csd-card:hover .csd-card__media::after { opacity: 1; }

  /* CTA */
  .csd-cta::after {
    content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -140px; top: -240px; border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, .5), transparent 65%); animation: csd-glow 14s ease-in-out infinite alternate; pointer-events: none;
  }
  .csd-cta .csd-btn--white { animation: csd-pulse 2.8s ease-in-out infinite; }
  @keyframes csd-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.5); } 50% { box-shadow: 0 0 0 12px rgba(255,255,255,0); } }

  @media (max-width: 767px) {
    #relationship .csd-prose-block, #group .csd-prose-block { padding: 22px 20px 22px 24px; border-radius: 18px; }
    #infrastructure .csd-prose-block { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    #infrastructure .csd-prose-block p:has(strong) { padding: 70px 20px 20px; }
    .csd-inst-card::after { font-size: 36px; right: 16px; }
    .csd-inst-card:hover, .csd-shot:hover, .csd-card:hover, #infrastructure .csd-prose-block p:has(strong):hover { transform: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .csd-hero__media img, .csd-hero h1, .csd-hero__shade::before, .csd-hero__shade::after, .csd-cta::after, .csd-cta .csd-btn--white, .csd-compare__badge--accent::before { animation: none !important; }
    .csd-h2::after { transform: scaleX(1) !important; transition: none !important; }
  }

  /* =========================================================
     PROJECT DETAILS: bento tiles (content unchanged)
     ========================================================= */
  .csd-facts-grid {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 16px;
    padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible;
  }
  .csd-facts-grid::before { display: none; }

  .csd-facts-grid__item {
    position: relative; isolation: isolate; overflow: hidden; gap: 0;
    padding: 26px 28px 28px; border-radius: 22px; background: #FFFFFF; border: 1px solid var(--cs-line);
    box-shadow: 0 18px 40px -32px rgba(30, 41, 110, .35);
    transition: transform .35s var(--ease), box-shadow .35s ease, border-color .35s ease;
  }
  .csd-facts-grid__item:hover { transform: translateY(-4px); border-color: #D5DCF5; box-shadow: 0 30px 56px -34px rgba(61, 90, 254, .45); }
  .csd-facts-grid__item--full { grid-column: auto; }

  /* spans */
  .csd-facts-grid__item--client { grid-column: span 8; }
  .csd-facts-grid__item--since  { grid-column: span 4; }
  .csd-facts-grid--nosince .csd-facts-grid__item--client { grid-column: 1 / -1; }
  .csd-facts-grid__item--row:nth-child(3) { grid-column: span 7; }
  .csd-facts-grid__item--row:nth-child(4) { grid-column: span 5; }
  .csd-facts-grid__item--row:nth-child(5) { grid-column: span 5; }
  .csd-facts-grid__item--row:nth-child(6) { grid-column: span 7; }
  .csd-facts-grid--nosince .csd-facts-grid__item--row:nth-child(2) { grid-column: span 7; }
  .csd-facts-grid--nosince .csd-facts-grid__item--row:nth-child(3) { grid-column: span 5; }
  .csd-facts-grid--nosince .csd-facts-grid__item--row:nth-child(4) { grid-column: span 5; }
  .csd-facts-grid--nosince .csd-facts-grid__item--row:nth-child(5) { grid-column: span 7; }

  /* client tile: gradient hero */
  .csd-facts-grid__item--client {
    justify-content: flex-end; min-height: 190px; padding: 30px 32px; border: 0; color: #fff;
    background:
      radial-gradient(circle at 100% 0%, rgba(255,255,255,.22), transparent 45%),
      radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.3px) 0 0 / 20px 20px,
      var(--csd-grad);
    box-shadow: 0 30px 60px -32px rgba(61, 90, 254, .7);
  }
  .csd-facts-grid__item--client::after {
    content: ""; position: absolute; z-index: -1; right: -26px; bottom: -40px; width: 200px; height: 200px; opacity: .14;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M5 21V7l7-4 7 4v14'/%3E%3Cpath d='M10 21v-5h4v5'/%3E%3Cpath d='M12 8v4M10 10h4'/%3E%3C/svg%3E") center/contain no-repeat;
    transition: transform .6s var(--ease);
  }
  .csd-facts-grid__item--client:hover { box-shadow: 0 36px 70px -32px rgba(61, 90, 254, .8); }
  .csd-facts-grid__item--client:hover::after { transform: rotate(-6deg) scale(1.06); }
  .csd-facts-grid__item--client .csd-facts-grid__label {
    align-self: flex-start; padding: 5px 12px; border-radius: 999px; color: #fff;
    background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px);
  }
  .csd-facts-grid__item--client .csd-facts-grid__val {
    margin-top: 14px; max-width: 30ch; color: #fff; font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; line-height: 1.18; letter-spacing: -0.03em;
  }

  /* since tile */
  .csd-facts-grid__item--since {
    justify-content: space-between; gap: 18px;
    background: radial-gradient(circle at 100% 100%, rgba(14,165,233,.12), transparent 55%), linear-gradient(180deg, #FFFFFF, #F6F8FF);
  }
  .csd-facts-grid__item--since .csd-facts-grid__label { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
  .csd-facts-pill {
    padding: 0; border-radius: 0; font-family: inherit;
    font-size: clamp(48px, 5vw, 68px); font-weight: 800; line-height: .9; letter-spacing: -0.05em;
    background: var(--csd-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  }

  /* labels + icons */
  .csd-facts-grid__label { font-size: 11.5px; letter-spacing: .12em; color: #5B6478; line-height: 1.35; }
  .csd-facts-grid__item--row .csd-facts-grid__label { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--cs-ink); }
  .csd-facts-ic {
    flex: 0 0 auto; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
    background: #EEF2FF; color: var(--cs-accent); font-style: normal;
    transition: background .3s ease, color .3s ease, transform .35s var(--ease);
  }
  .csd-facts-ic svg { width: 18px; height: 18px; }
  .csd-facts-grid__item:hover .csd-facts-ic { background: var(--csd-grad); color: #fff; transform: rotate(-8deg); }
  .csd-facts-grid__val { min-width: 0; }
  .csd-facts-grid__val--text { font-size: 15.5px; line-height: 1.75; color: #4B5565; }

  /* tags */
  .csd-facts-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
  .csd-facts-tags li {
    display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 10px;
    background: #F5F7FC; border: 1px solid #E6E9F2; color: var(--cs-ink); font-size: 14px; font-weight: 600; line-height: 1.3;
  }
  .csd-facts-tags--tech li { background: #0B1324; border-color: #0B1324; color: #E0E7FF; font-size: 13.5px; }

  /* live sites: link list */
  .csd-facts-sites-wrap { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: -6px 0 0; }
  .csd-facts-site-sep { display: none; }
  .csd-facts-site-link {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 2px;
    border-bottom: 1px dashed #E2E6F0; color: var(--cs-ink); font-size: 14.5px; font-weight: 600;
    transition: color .25s ease, padding .25s ease;
  }
  .csd-facts-site-link:last-child { border-bottom: 0; padding-bottom: 0; }
  .csd-facts-site-link span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .csd-facts-site-link svg { flex: 0 0 auto; width: 26px; height: 26px; padding: 6px; border-radius: 50%; background: #EEF2FF; color: var(--cs-accent); transition: background .25s ease, color .25s ease, transform .25s ease; }
  .csd-facts-site-link:hover { color: var(--cs-accent); text-decoration: none; padding-left: 8px; }
  .csd-facts-site-link:hover svg { background: var(--csd-grad); color: #fff; transform: rotate(45deg); }

  /* entrance */
  .csd-js .csd-facts-sec .csd-facts-grid__item { opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .6s ease, transform .6s var(--ease), box-shadow .35s ease, border-color .35s ease; }
  .csd-js .csd-facts-sec.is-in .csd-facts-grid__item { opacity: 1; transform: none; }
  .csd-js .csd-facts-sec.is-in .csd-facts-grid__item:hover { transform: translateY(-4px); transition-delay: 0s; }
  .csd-js .csd-facts-sec.is-in .csd-facts-grid__item:nth-child(2) { transition-delay: .08s; }
  .csd-js .csd-facts-sec.is-in .csd-facts-grid__item:nth-child(3) { transition-delay: .16s; }
  .csd-js .csd-facts-sec.is-in .csd-facts-grid__item:nth-child(4) { transition-delay: .24s; }
  .csd-js .csd-facts-sec.is-in .csd-facts-grid__item:nth-child(5) { transition-delay: .32s; }
  .csd-js .csd-facts-sec.is-in .csd-facts-grid__item:nth-child(6) { transition-delay: .40s; }

  @media (max-width: 1024px) {
    .csd-facts-grid { gap: 14px; }
    .csd-facts-grid .csd-facts-grid__item--row { grid-column: span 6 !important; }
    .csd-facts-grid .csd-facts-grid__item--row:has(.csd-facts-grid__val--text),
    .csd-facts-grid .csd-facts-grid__item--row:has(.csd-facts-sites-wrap) { grid-column: 1 / -1 !important; }
    .csd-facts-sites-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
    .csd-facts-site-link:last-child { border-bottom: 1px dashed #E2E6F0; padding-bottom: 11px; }
  }
  @media (max-width: 767px) {
    .csd-facts-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 0; }
    .csd-facts-grid .csd-facts-grid__item { grid-column: 1 / -1 !important; padding: 20px; border-radius: 18px; }
    .csd-facts-sites-wrap { grid-template-columns: minmax(0, 1fr); }
    .csd-facts-site-link:last-child { border-bottom: 0; padding-bottom: 0; }
    .csd-facts-grid__item--client { min-height: 0; padding: 24px 20px !important; }
    .csd-facts-grid__item--client::after { width: 130px; height: 130px; right: -20px; bottom: -26px; }
    .csd-facts-grid__item--client .csd-facts-grid__val { font-size: 21px; }
    .csd-facts-grid__item--since { flex-direction: row; align-items: center; }
    .csd-facts-grid__item--since .csd-facts-grid__label { flex-direction: row; align-items: center; gap: 10px; max-width: 150px; }
    .csd-facts-pill { font-size: 40px; }
    .csd-facts-ic { width: 34px; height: 34px; border-radius: 10px; }
    .csd-facts-grid__item--row .csd-facts-grid__label { margin-bottom: 14px; }
    .csd-facts-tags li { font-size: 13px; padding: 6px 11px; }
    .csd-facts-grid__item:hover, .csd-js .csd-facts-sec.is-in .csd-facts-grid__item:hover { transform: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .csd-js .csd-facts-sec .csd-facts-grid__item { opacity: 1; transform: none; transition: none; }
  }
  .csd-facts-grid__item--row:has(.csd-facts-tags--tech)::after {
    content: ""; position: absolute; z-index: -1; right: -18px; bottom: -22px; width: 150px; height: 150px; opacity: .07;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d5afe' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 16 4-4-4-4M6 8l-4 4 4 4M14.5 4l-5 16'/%3E%3C/svg%3E") center/contain no-repeat;
  }


  /* =========================================================
     Hero spacing, websites showcase fit, before/after stage
     ========================================================= */
  /* Hero: more room under the buttons (also keeps them clear of the
     floating WhatsApp / chat buttons in the bottom corners) */
  .csd-hero__inner { padding-bottom: clamp(104px, 14vh, 150px); }

  /* The BMH Institution Websites: show each screenshot whole, no crop */
  .csd-web-row__media .csd-shot__view { overflow: visible; }
  .csd-web-row__media .csd-shot__view img { aspect-ratio: auto; height: auto; object-fit: initial; object-position: initial; }

  @media (max-width: 767px) {
    /* Phones: hero fills the screen; content sits higher so the bottom strip
       stays free for the WhatsApp / Tawk chat buttons */
    .csd-hero__inner { padding-bottom: calc(min(108px, 17svh) + env(safe-area-inset-bottom, 0px)); }
  }
  /* =========================================================
     Comparison Table (Before / Now, with the system)
     ========================================================= */
  .csd-comp-table {
    margin-top: 28px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    background: #ffffff;
    box-shadow: 0 10px 30px -10px rgba(11, 20, 55, 0.06);
  }
  .csd-comp-table__head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
  }
  .csd-comp-table__th {
    padding: 16px 24px;
    font-weight: 700;
    font-size: 15px;
  }
  .csd-comp-table__th--before {
    border-right: 1px solid #e2e8f0;
    color: #64748b;
  }
  .csd-comp-table__th--after {
    color: #0b1437;
  }
  .csd-comp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }
  .csd-comp-badge--before {
    background: #fee2e2;
    color: #dc2626;
  }
  .csd-comp-badge--after {
    background: #dcfce7;
    color: #16a34a;
  }
  .csd-comp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s ease;
  }
  .csd-comp-row:last-child {
    border-bottom: none;
  }
  .csd-comp-row:hover {
    background: #f8fafc;
  }
  .csd-comp-col {
    padding: 20px 24px;
    font-size: 15px;
    line-height: 1.6;
  }
  .csd-comp-col--before {
    border-right: 1px solid #e2e8f0;
    color: #64748b;
    background: rgba(254, 242, 242, 0.2);
  }
  .csd-comp-col--after {
    color: #1e293b;
    font-weight: 500;
    background: rgba(240, 253, 244, 0.2);
  }
  @media (max-width: 767px) {
    .csd-comp-table__head {
      display: none;
    }
    .csd-comp-row {
      grid-template-columns: 1fr;
      border-bottom: 2px solid #e2e8f0;
    }
    .csd-comp-col--before {
      border-right: none;
      border-bottom: 1px dashed #e2e8f0;
      padding-bottom: 16px;
    }
    .csd-comp-col--before::before {
      content: "Before: ";
      font-weight: 700;
      color: #dc2626;
      display: block;
      margin-bottom: 4px;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    .csd-comp-col--after::before {
      content: "Now, with the system: ";
      font-weight: 700;
      color: #16a34a;
      display: block;
      margin-bottom: 4px;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
  }


  /* Tech logos helper */
  .csd-tech-logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
  }
  .csd-tech-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  }
  .csd-tech-item img {
    width: 20px;
    height: 20px;
    object-fit: contain;
  }

