/* ============================================================
   @font-face — Neue Haas Grotesk Display Pro
   Naming: NHaasGroteskDSPro-{weight}{style}
   Weight map: 15=100, 25=200, 35=300, 45=400, 55=450, 65=500, 75=700, 95=900
   ============================================================ */

@font-face {
  font-family: "Neue Haas Grotesk Display Pro";
  src: url("./fonts/Neue Haas Grotesk/NHaasGroteskDSPro-15UltTh.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Display Pro";
  src: url("./fonts/Neue Haas Grotesk/NHaasGroteskDSPro-16UltThIt.woff2") format("woff2");
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Display Pro";
  src: url("./fonts/Neue Haas Grotesk/NHaasGroteskDSPro-25Th.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Display Pro";
  src: url("./fonts/Neue Haas Grotesk/NHaasGroteskDSPro-26ThIt.woff2") format("woff2");
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Display Pro";
  src: url("./fonts/Neue Haas Grotesk/NHaasGroteskDSPro-35XLt.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Display Pro";
  src: url("./fonts/Neue Haas Grotesk/NHaasGroteskDSPro-36XLtIt.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Display Pro";
  src: url("./fonts/Neue Haas Grotesk/NHaasGroteskDSPro-45Lt.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Display Pro";
  src: url("./fonts/Neue Haas Grotesk/NHaasGroteskDSPro-46LtIt.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Display Pro";
  src: url("./fonts/Neue Haas Grotesk/NHaasGroteskDSPro-55Rg.woff2") format("woff2");
  font-weight: 450;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Display Pro";
  src: url("./fonts/Neue Haas Grotesk/NHaasGroteskDSPro-56It.woff2") format("woff2");
  font-weight: 450;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Display Pro";
  src: url("./fonts/Neue Haas Grotesk/NHaasGroteskDSPro-65Md.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Display Pro";
  src: url("./fonts/Neue Haas Grotesk/NHaasGroteskDSPro-66MdIt.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Display Pro";
  src: url("./fonts/Neue Haas Grotesk/NHaasGroteskDSPro-75Bd.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Display Pro";
  src: url("./fonts/Neue Haas Grotesk/NHaasGroteskDSPro-76BdIt.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Display Pro";
  src: url("./fonts/Neue Haas Grotesk/NHaasGroteskDSPro-95Blk.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Display Pro";
  src: url("./fonts/Neue Haas Grotesk/NHaasGroteskDSPro-96BlkIt.woff2") format("woff2");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ============================================================
   @font-face — Neue Haas Grotesk Text Pro
   Available: 55Rg (400), 65Md (500), 75Bd (700) + italics
   ============================================================ */

@font-face {
  font-family: "Neue Haas Grotesk Text Pro";
  src: url("./fonts/Neue Haas Grotesk/NHaasGroteskTXPro-55Rg.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Text Pro";
  src: url("./fonts/Neue Haas Grotesk/NHaasGroteskTXPro-56It.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Text Pro";
  src: url("./fonts/Neue Haas Grotesk/NHaasGroteskTXPro-65Md.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Text Pro";
  src: url("./fonts/Neue Haas Grotesk/NHaasGroteskTXPro-66MdIt.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Text Pro";
  src: url("./fonts/Neue Haas Grotesk/NHaasGroteskTXPro-75Bd.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Text Pro";
  src: url("./fonts/Neue Haas Grotesk/NHaasGroteskTXPro-76BdIt.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ============================================================
   @font-face — Helvetica Neue
   Weight map: UltraLight=100, Thin=200, Light=300, Roman=400,
               Medium=500, Bold=700, Heavy=800, Black=900
   ============================================================ */

@font-face {
  font-family: "Helvetica Neue";
  src: url("./fonts/Helvetica Neue/HelveticaNeue-UltraLight.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue";
  src: url("./fonts/Helvetica Neue/HelveticaNeue-UltraLightItalic.woff2") format("woff2");
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue";
  src: url("./fonts/Helvetica Neue/HelveticaNeue-Thin.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue";
  src: url("./fonts/Helvetica Neue/HelveticaNeue-ThinItalic.woff2") format("woff2");
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue";
  src: url("./fonts/Helvetica Neue/HelveticaNeue-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue";
  src: url("./fonts/Helvetica Neue/HelveticaNeue-LightItalic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue";
  src: url("./fonts/Helvetica Neue/HelveticaNeue-Roman.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue";
  src: url("./fonts/Helvetica Neue/HelveticaNeue-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue";
  src: url("./fonts/Helvetica Neue/HelveticaNeue-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue";
  src: url("./fonts/Helvetica Neue/HelveticaNeue-MediumItalic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue";
  src: url("./fonts/Helvetica Neue/HelveticaNeue-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue";
  src: url("./fonts/Helvetica Neue/HelveticaNeue-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue";
  src: url("./fonts/Helvetica Neue/HelveticaNeue-Heavy.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue";
  src: url("./fonts/Helvetica Neue/HelveticaNeue-HeavyItalic.woff2") format("woff2");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue";
  src: url("./fonts/Helvetica Neue/HelveticaNeue-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue";
  src: url("./fonts/Helvetica Neue/HelveticaNeue-BlackItalic.woff2") format("woff2");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* Global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth
}

/* Cap-height trimming — aligns CSS line boxes to Figma's cap-height/baseline
   spacing model. Without this, spacing tokens measure from the full line box
   (includes ascender/descender whitespace) and won't match Figma values.
   Supported: Chrome 123+, Safari 17.4+ */
h1, h2, h3, h4, h5, h6, p, button,
.metric-value, .metric-label, .tag,
.collab-cell-label, .collab-item-name, .collab-item-type,
.nav-mobile-links a,
.cs-title, .cs-subtitle, .cs-footnote,
.cs-card-value, .cs-keyboard-hint,
.cs-label, .cs-next-link, .cs-prev-link {
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

:root {
  --font-display: "Neue Haas Grotesk Display Pro", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Neue Haas Grotesk Text Pro", "Helvetica Neue", Arial, sans-serif;

  /* Type scale tokens (per design.md) — size / weight / line-height / letter-spacing */

  /* Display — Neue Haas Display Pro 55 Roman */
  --type-display-size:   96px;
  --type-display-weight: 450;
  --type-display-lh:     104px;
  --type-display-ls:     0;

  /* H2 — Neue Haas Display Pro 55 Roman */
  --type-h2-size:   64px;
  --type-h2-weight: 450;
  --type-h2-lh:     64px;
  --type-h2-ls:     -0.01em;

  /* H3 — Neue Haas Display Pro 65 Medium */
  --type-h3-size:   48px;
  --type-h3-weight: 500;
  --type-h3-lh:     56px;
  --type-h3-ls:     -0.01em;

  /* Title Large — Neue Haas Display Pro 55 Roman */
  --type-title-l-size:   40px;
  --type-title-l-weight: 450;
  --type-title-l-lh:     48px;
  --type-title-l-ls:     0;

  /* Title Medium — Neue Haas Display Pro 55 Roman */
  --type-title-m-size:   32px;
  --type-title-m-weight: 450;
  --type-title-m-lh:     40px;
  --type-title-m-ls:     0;

  /* Title Small — Neue Haas Text Pro 55 Roman */
  --type-title-s-size:   24px;
  --type-title-s-weight: 400;
  --type-title-s-lh:     1.2;
  --type-title-s-ls:     0;

  /* Body — Neue Haas Text Pro 55 Roman */
  --type-body-size:   16px;
  --type-body-weight: 400;
  --type-body-lh:     23px;
  --type-body-ls:     0.0em;

  /* Body Small — Neue Haas Text Pro 65 Medium */
  --type-body-sm-size:   11px;
  --type-body-sm-weight: 500;
  --type-body-sm-lh:     14px;
  --type-body-sm-ls:     0.02em;

  /* Single column width at each breakpoint — drives cs-progress-seg width.
     Formula: (viewport_or_max - 2×margin - (cols-1)×gutter) / cols
     Desktop 12-col uses min(100vw, 1600px) to cap at max content width. */
  --cs-col-width: calc((min(100vw, 1600px) - 2 * var(--space-3) - 11 * var(--space-2)) / 12);

  /* Spacing tokens — 8px grid (--space-N = N × 8px) */
  --space-1:  8px;
  --space-2:  16px;
  --space-3:  24px;
  --space-4:  32px;
  --space-5:  40px;
  --space-6:  48px;
  --space-7:  56px;
  --space-8:  64px;
  --space-9:  72px;
  --space-10: 80px;
  --space-11: 88px;
  --space-12: 96px;
  --space-13: 104px;
  --space-14: 112px;
  --space-15: 120px;
}

body {
  font-family: var(--font-text);
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
  line-height: var(--type-body-lh);
  letter-spacing: var(--type-body-ls);
  color: #222;
  background: #E5E2DB;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #1b1717;
}

.site-header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #E5E2DB;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 999;
}

.site-header .inner-nav {
  width: 100rem;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-5);
  padding: var(--space-1) var(--space-2);
  box-sizing: border-box;
}

.site-header .nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.site-header .nav-links a {
  font-family: var(--font-text);
  font-size: var(--type-title-s-size);
  font-weight: var(--type-title-s-weight);
  line-height: var(--type-title-s-lh);
  letter-spacing: var(--type-title-s-ls);
  color: #1b1717;
  text-align: center;
  text-decoration: none;
}

.site-header .nav-links a:hover,
.site-header .nav-links a[aria-current="page"] {
  color: #1b1717;
}

.site-header .nav-hamburger {
  display: none; /* desktop: hidden */
}

.btn-contact {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  gap: var(--space-1);
  height: var(--space-5);
  padding: var(--space-1) var(--space-2);
  border-radius: 1rem;
  background: #1b1717;
  color: #fff;
  text-align: center;
  font-family: var(--font-text);
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
  line-height: var(--type-body-lh);
  letter-spacing: var(--type-body-ls);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.site-header .btn-contact {
  margin-left: auto;
}

.nav-mobile-overlay {
  display: none; /* hidden on desktop; mobile block overrides to flex */
}

/* Mobile navbar: Contact (left) + hamburger (right), no nav links */
@media (max-width: 1023px) {
  .site-header .inner-nav {
    justify-content: space-between;
  }

  .site-header .btn-contact {
    margin-left: 0;
  }

  .site-header .nav-links {
    display: none;
  }

  .site-header .nav-hamburger {
    display: flex;
    justify-content: center;
    align-items: center;
    width: var(--space-5);
    height: var(--space-5);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
  }

  .site-header .nav-hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-1);
    width: var(--space-5);
    height: var(--space-5);
  }

  .site-header .nav-hamburger-icon span {
    display: block;
    width: var(--space-5);
    height: 4px;
    background: #1b1717;
    border-radius: 100px;
    flex-shrink: 0;
    transition: transform 0.3s ease, opacity 0.2s ease;
  }

  /* Hamburger → X: top bar down + rotate, middle fade, bottom bar up + rotate.
     12px = half-span(2px) + gap(8px) + half-span(2px) */
  .site-header .nav-hamburger.is-open .nav-hamburger-icon span:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
  }

  .site-header .nav-hamburger.is-open .nav-hamburger-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .site-header .nav-hamburger.is-open .nav-hamburger-icon span:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
  }

  /* Mobile overlay — slides down from top, sits below sticky header (z-index 998 < 999) */
  .nav-mobile-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 998;
    background: #E5E2DB;
    flex-direction: column;
    /* 112px top padding = navbar height (72px) + --space-5 gap (40px), matching Figma y:112 */
    padding: var(--space-14) var(--space-3) var(--space-3);
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }

  .nav-mobile-overlay.is-open {
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-mobile-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
  }

  .nav-mobile-links a {
    font-family: var(--font-text);
    font-size: var(--type-title-s-size);
    font-weight: var(--type-title-s-weight);
    line-height: var(--type-title-s-lh);
    color: #1b1717;
    text-decoration: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-mobile-overlay,
  .site-header .nav-hamburger-icon span {
    transition: none;
  }
}

.hero {
  display: grid;
  grid-template-columns: subgrid;
  align-items: end;
  row-gap: var(--space-15); /* space between hero row and CTA row */
  padding: var(--space-12) 0;
  background: transparent;
  text-align: left;
}

.hero-left {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}

.hero-right {
  grid-column: 9 / span 4;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hero-role {
  font-family: var(--font-display);
  font-size: var(--type-display-size);
  font-weight: var(--type-display-weight);
  line-height: var(--type-display-lh);
  letter-spacing: var(--type-display-ls);
  color: #1b1717;
  margin: 0;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: var(--type-title-l-size);
  font-weight: var(--type-title-l-weight);
  line-height: var(--type-title-l-lh);
  letter-spacing: var(--type-title-l-ls);
  color: #1b1717;
  margin: 0;
}

.hero-name {
  font-family: var(--font-display);
  font-size: var(--type-h2-size);
  font-weight: var(--type-h2-weight);
  line-height: var(--type-h2-lh);
  letter-spacing: var(--type-h2-ls);
  color: #1b1717;
  margin: 0;
}

.hero-bio {
  font-family: var(--font-text);
  font-size: var(--type-body-sm-size);
  font-weight: var(--type-body-sm-weight);
  line-height: var(--type-body-sm-lh);
  letter-spacing: var(--type-body-sm-ls);
  color: #1b1717;
  margin: 0;
}

.hero-cta {
  grid-column: span 12;
  width: fit-content;
  font-family: var(--font-display);
  font-size: var(--type-title-l-size);
  font-weight: var(--type-title-l-weight);
  line-height: var(--type-title-l-lh);
  letter-spacing: var(--type-title-l-ls);
  color: #1b1717;
}

.hero-cta-content {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-1);
  border-bottom: 2px solid currentColor;
}

.hero-cta-arrow {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.hero-cta:hover .hero-cta-arrow {
  transform: translateY(3px);
}

/* 1280px: hero-left widens to span 5 to avoid appearing narrow */
@media (max-width: 1280px) {
  .hero-left {
    grid-column: span 5;
  }
}

/* 9-col: hero-left cols 1–4, hero-right cols 6–9 */
@media (max-width: 1024px) {
  .hero-right {
    grid-column: 6 / span 4;
  }

  .hero-cta {
    grid-column: span 9;
  }
}

/* 768px tablet: horizontal layout, 9-col, type scales to 64px */
@media (max-width: 768px) {
  .hero-left {
    grid-column: span 4; /* cols 1–4 of 9 */
  }

  /* hero-right inherits 6 / span 4 from the 1024px rule above (also 9-col) */

  .hero-role {
    font-size: var(--type-h2-size);
    line-height: var(--type-h2-lh);
    letter-spacing: var(--type-h2-ls);
  }

  .hero-tagline {
    font-family: var(--font-text);
    font-size: var(--type-title-s-size);
    font-weight: var(--type-title-s-weight);
    line-height: var(--type-title-s-lh);
    letter-spacing: var(--type-title-s-ls);
  }
}

/* 500px mobile: stacked vertical layout */
@media (max-width: 500px) {
  .hero {
    row-gap: var(--space-7);
    align-items: start;
    padding: var(--space-7) 0;
  }

  .hero-left {
    grid-column: span 5;
    gap: var(--space-4);
  }

  .hero-right {
    grid-column: span 5;
  }

  .hero-role {
    font-size: var(--type-h2-size);
    line-height: var(--type-h2-lh);
    letter-spacing: var(--type-h2-ls);
  }

  .hero-tagline {
    font-family: var(--font-text);
    font-size: var(--type-title-s-size);
    font-weight: var(--type-title-s-weight);
    line-height: var(--type-title-s-lh);
    letter-spacing: var(--type-title-s-ls);
  }

  .hero-name {
    font-family: var(--font-text);
    font-size: var(--type-title-s-size);
    font-weight: var(--type-title-s-weight);
    line-height: var(--type-title-s-lh);
  }

  .hero-cta {
    display: block;
    grid-column: span 5;
    font-family: var(--font-text);
    font-size: var(--type-title-s-size);
    font-weight: var(--type-title-s-weight);
    line-height: var(--type-title-s-lh);
    letter-spacing: var(--type-title-s-ls);
    color: #1b1717;
  }
}

/* ============================================================
   Case Studies Section
   ============================================================ */

.case-studies {
  display: grid;
  grid-template-columns: subgrid;
  row-gap: var(--space-3); /* 24px between wrapped rows */
  scroll-margin-top: var(--space-10);
  margin-bottom: var(--space-15);
}

.case-study-card {
  grid-column: span 4;
  background: #fff;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transform: translateY(0);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.case-study-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card-image {
  width: 100%;
  aspect-ratio: 453 / 340;
  border-bottom: 1px solid #e5e7eb;
}

.casper-card-image {
  position: relative;
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}

.casper-cross-sell {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  display: flex;
  align-items: center;
  gap: 26px;
}

.verizon-scaler {
  position: absolute;
  top: 0;
  left: 0;
  width: 453px;
  height: 340px;
  transform-origin: top left;
  overflow: hidden;
}

.casper-cross-sell-nav {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
}

.casper-cross-sell-card {
  width: 280px;
  height: 237px;
  background: #D7F1FF;
  border: 1px solid #D4E8F3;
  border-radius: 6px;
  position: relative;
  flex-shrink: 0;
}

.casper-cross-sell-title {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 220px;
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: #515151;
}

.casper-title-name {
  font-weight: 700;
}

.casper-cross-sell-product-wrap {
  position: absolute;
  left: 76px;
  top: 99px;
  width: 128px;
  height: 44px;
}

.casper-cross-sell-product-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/casper-foundation.png') center / contain no-repeat;
  filter: drop-shadow(0px 14px 10px rgba(34, 70, 83, 0.4));
}

.casper-cross-sell-product {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}

/* Verizon card illustration */
.verizon-card-image {
  position: relative;
}

.verizon-upgrade {
  position: absolute;
  padding: 40px 24px 0px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.verizon-upgrade-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.verizon-upgrade-heading {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.05em;
  color: #1b1717;
}

.verizon-upgrade-body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #1b1717;
}

.verizon-upgrade-divider {
  width: 379px;
  height: 5px;
  background: #1b1717;
  flex-shrink: 0;
}

.verizon-upgrade-device {
  position: relative;
  height: 188px;
  flex-shrink: 0;
}

.verizon-device-label {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.06em;
  color: #1b1717;
}

.verizon-device-add {
  position: absolute;
  top: 40px;
  left: 0;
  background: none;
  border: 1px solid #1b1717;
  border-radius: 100px;
  padding: 5px 12px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #1b1717;
  cursor: pointer;
}

.verizon-device-phone {
  position: absolute;
  top: 4px;
  left: 250px;
  width: 94px;
  height: 184px;
  object-fit: contain;
}

.casper-cross-sell-btn {
  position: absolute;
  left: 20px;
  top: 183px;
  width: 240px;
  height: 34px;
  background: #fff;
  border: none;
  border-radius: 6px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.028em;
  color: #00237E;
  cursor: pointer;
}

.card-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.tag {
  font-family: var(--font-text);
  font-size: var(--type-body-sm-size);
  font-weight: var(--type-body-sm-weight);
  line-height: var(--type-body-sm-lh);
  letter-spacing: var(--type-body-sm-ls);
  padding: 6px var(--space-1);
  background-color: #D4E8F3;
  color:#54656e;
  border-radius: 100px;
  white-space: nowrap;
}

.card-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--type-title-l-size);
  font-weight: var(--type-title-l-weight);
  line-height: var(--type-title-l-lh);
  letter-spacing: var(--type-title-l-ls);
  color: #1b1717;
  margin: 0;
}

.card-description {
  font-family: var(--font-text);
  font-size: var(--type-title-s-size);
  font-weight: var(--type-title-s-weight);
  line-height: var(--type-title-s-lh);
  letter-spacing: var(--type-title-s-ls);
  color: #1b1717;
  margin: 0;
}

.card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
}

.card-metrics {
  display: flex;
  gap: var(--space-2);
}

.metric {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.metric-value {
  font-family: var(--font-text);
  font-size: var(--type-title-s-size);
  font-weight: var(--type-title-s-weight);
  line-height: var(--type-title-s-lh);
  letter-spacing: var(--type-title-s-ls);
  color: #1b1717;
}

.metric-label {
  font-family: var(--font-text);
  font-size: var(--type-body-sm-size);
  font-weight: var(--type-body-sm-weight);
  line-height: var(--type-body-sm-lh);
  letter-spacing: var(--type-body-sm-ls);
  color: #1b1717;
}

.card-arrow {
  display: block;
  flex-shrink: 0;
  color: #1b1717;
  transform: translateX(0);
  transition: transform 0.2s ease;
}

.case-study-card:hover .card-arrow {
  transform: translateX(6px);
}

/* Finde card illustration */
.finde-card-image {
  position: relative;
  background: #f7f7f7;
}

.finde-scaler {
  position: absolute;
  top: 0;
  left: 0;
  width: 453px;
  height: 339px;
  transform-origin: top left;
  overflow: hidden;
}

.finde-viewport {
  position: absolute;
  left: 31px;
  top: 32px;
  width: 390px;
  height: 308px;
  overflow: hidden;
}

.finde-phone-body {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
}

.finde-filter-bar {
  display: flex;
  align-items: center;
  padding: 18px 18px;
  gap: 38px;
}

.finde-chip {
  background: #f0edea;
  border-radius: 100px;
  padding: 12px 16px;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #1b1717;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.finde-filter-label {
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #1b1717;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.finde-close {
  position: absolute;
  top: 4px;
  right: 4px;
  color: #1b1717;
}

.finde-filter-divider {
  height: 1px;
  background: #d6d6d6;
}

.finde-list {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
}

.finde-row {
  display: flex;
  align-items: center;
  height: 56px;
  color: #1b1717;
}

.finde-icon-zone {
  width: 62px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.finde-name {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #1b1717;
  letter-spacing: 0.02em;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}


/* Case studies responsive */
@media (max-width: 1024px) {
  .case-study-card { grid-column: span 3; } /* 3 per row on 9-col */

  .card-body {
    padding: var(--space-4) var(--space-3); /* 32px top/bottom, 24px left/right */
    gap: var(--space-4);
  }

  .card-text {
    gap: var(--space-2);
  }

  .card-title {
    font-size: var(--type-title-m-size);
    line-height: var(--type-title-m-lh);
  }

  .card-description {
    font-size: var(--type-body-size);
    line-height: var(--type-body-lh);
    letter-spacing: var(--type-body-ls);
  }
}

@media (max-width: 768px) {
  .case-study-card { grid-column: span 4; } /* 2 per row on 9-col, 3rd wraps */
}

@media (max-width: 500px) {
  .case-study-card { grid-column: span 6; } /* 1 per row on 6-col */
}

/* ============================================================
   Technology Section
   ============================================================ */

.tech-section {
  background: #1b1717;
  color: #fff;
  padding: var(--space-15) 0;
}

.tech-heading {
  font-family: var(--font-display);
  font-size: var(--type-title-l-size);
  font-weight: var(--type-title-l-weight);
  line-height: var(--type-title-l-lh);
  letter-spacing: var(--type-title-l-ls);
  color: #fff;
}

/* Col 1: space-between to match col 2 height */
.tech-col-1 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Col 2: rainbow circle SVG */
.tech-col-rainbow {
  overflow: hidden;
  border-radius: 32px;
  position: relative;
  min-height: 643px;
}

.tech-rainbow-svg {
  position: absolute;
  width: 700px;
  height: 700px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Col 3: gap 31px ≈ var(--space-4) */
.tech-col-3 {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.tech-card {
  background: #282222;
  border-radius: 32px;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.tech-card-title {
  font-family: var(--font-text);
  font-size: var(--type-title-s-size);
  font-weight: var(--type-title-s-weight);
  line-height: var(--type-title-s-lh);
  letter-spacing: var(--type-title-s-ls);
  color: #fff;
  margin: 0;
}

.tech-card-body {
  font-family: var(--font-text);
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
  line-height: var(--type-body-lh);
  letter-spacing: var(--type-body-ls);
  color: #fff;
  margin: 0;
}

.tech-pixel-totem {
  width: 100%;
  display: block;
}

.tech-star-animation {
  background: #dad2be;
  border-radius: var(--space-4);
  flex: 1;
  min-height: 443px;
  overflow: hidden;
  position: relative;
}

.tech-star-animation canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


/* ============================================================
   Values Section
   ============================================================ */

.values-section {
  background: #dad2be;
  padding: var(--space-15) 0;
  overflow-x: hidden;
}

.values-heading {
  font-family: var(--font-display);
  font-size: var(--type-title-l-size);
  font-weight: var(--type-title-l-weight);
  line-height: var(--type-title-l-lh);
  letter-spacing: var(--type-title-l-ls);
  color: #1b1717;
  margin: 0 0 var(--space-7);
}

.values-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-self: end; /* bottom-align cols 2 & 3 to match col 1's taller height */
}

.values-col-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.values-col-title {
  font-family: var(--font-text);
  font-size: var(--type-title-s-size);
  font-weight: var(--type-title-s-weight);
  line-height: var(--type-title-s-lh);
  letter-spacing: var(--type-title-s-ls);
  color: #1b1717;
  margin: 0;
}

.values-col-body {
  font-family: var(--font-text);
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
  line-height: var(--type-body-lh);
  letter-spacing: var(--type-body-ls);
  color: #1b1717;
  margin: 0;
}

.illustration-wrapper {
  width: 100%;
  aspect-ratio: 352 / 256;
  position: relative;
}

.illustration-values-pixel-art {
  width: 100%;
  height: 100%;
  display: block;
}

.illustration-wrapper--blur {
  overflow: visible;
}

.illustration-values-ethical-blur {
  position: absolute;
  width: 160%;
  left: -29%;
  top: -42%;
  height: auto;
}

.illustration-values-systems {
  display: block;
  width: 100%;
  height: 100%;
}

/* ============================================================
   Collaborators Section
   ============================================================ */

.collab-section {
  padding: var(--space-15) 0;
}

.collab-heading {
  font-family: var(--font-display);
  font-size: var(--type-title-l-size);
  font-weight: var(--type-title-l-weight);
  line-height: var(--type-title-l-lh);
  letter-spacing: var(--type-title-l-ls);
  color: #1b1717;
  margin: 0;
  align-self: start;
}

.collab-description {
  grid-column: 5 / span 6;
  font-family: var(--font-text);
  font-size: var(--type-title-s-size);
  font-weight: var(--type-title-s-weight);
  line-height: var(--type-title-s-lh);
  letter-spacing: var(--type-title-s-ls);
  color: #1b1717;
  margin: 0;
  align-self: start;
}

.collab-groups {
  grid-column: 5 / span 7;
  display: flex;
  flex-direction: column;
  gap: var(--space-11); /* 88px between project and agency groups */
  padding-top: var(--space-7); 
}

.collab-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-6); /* 48px ≈ figma 49px between heading and grid */
}

.collab-group-heading {
  font-family: var(--font-display);
  font-size: var(--type-title-m-size);
  font-weight: var(--type-title-m-weight);
  line-height: var(--type-title-m-lh);
  letter-spacing: var(--type-title-m-ls);
  color: #1b1717;
  margin: 0;
}

/* Module grid: 6 cols at desktop/tablet, each cell spans --cols modules */
.collab-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}

.collab-row {
  display: contents;
}

.collab-cell {
  grid-column: span var(--cols, 1);
  aspect-ratio: calc(var(--cols, 1) / 1);
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--cell-color, transparent);
}

/* Branding: full row (6 modules wide), 1 row of 6 items at desktop/tablet */
.collab-cell--branding {
  grid-column: 1 / span 6;
  aspect-ratio: 6 / 1;
}

.collab-cell-label {
  position: absolute;
  top: var(--space-1);
  left: var(--space-1);
  z-index: 1;
  font-family: var(--font-text);
  font-size: var(--type-body-sm-size);
  font-weight: var(--type-body-sm-weight);
  line-height: var(--type-body-sm-lh);
  letter-spacing: var(--type-body-sm-ls);
  color: #1b1717;
}

/* Items grid: N columns matching --cols (or 6 for branding) */
.collab-cell-items {
  display: grid;
  grid-template-columns: repeat(var(--cols, 1), 1fr);
  height: 100%;
  align-items: center;
  align-content: center;
}

.collab-cell--branding .collab-cell-items {
  grid-template-columns: repeat(6, 1fr);
}

/* Each item is a 1:1 module square */
.collab-item {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-1);
  padding-inline: var(--space-1);
}

.collab-item-name {
  font-family: var(--font-text);
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
  line-height: var(--type-body-lh);
  letter-spacing: var(--type-body-ls);
  color: #1b1717;
}

.collab-item-type {
  font-family: var(--font-text);
  font-size: var(--type-body-sm-size);
  font-weight: var(--type-body-sm-weight);
  line-height: var(--type-body-sm-lh);
  letter-spacing: var(--type-body-sm-ls);
  color: #1b1717;
}

footer {
  background: #dad2be;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-2);
  align-items: center;
  min-height: 258px;
}

.footer-blob {
  grid-column: 1 / span 3;
  justify-self: end;
  width: 101px;
  height: 93px;
  border-radius: 50%;
  background: #caffd5;
  filter: blur(27px);
  flex-shrink: 0;
}

.footer-tagline {
  grid-column: 5 / span 7;
  font-family: var(--font-text);
  font-size: var(--type-title-s-size);
  font-weight: var(--type-title-s-weight);
  line-height: var(--type-title-s-lh);
  letter-spacing: var(--type-title-s-ls);
  color: #1b1717;
  margin: 0;
}

.footer-tagline a {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.footer-tagline .hero-cta-arrow {
  transform: rotate(-90deg);
  flex-shrink: 0;
  margin-left: calc(var(--space-1) / 2);
  transition: transform 0.2s ease;
}

.footer-tagline a:hover .hero-cta-arrow {
  transform: translateX(5px) rotate(-90deg);
}

@media (max-width: 1439px) {
  .footer-inner {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }

  .footer-blob {
    grid-column: 1 / span 2;
  }

  .footer-tagline {
    grid-column: 4 / span 5;
  }
}

@media (max-width: 500px) {
  .footer-inner {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .footer-tagline {
    grid-column: 3 / span 4;
  }
}

/* Page structure + 12-col grid (24px margin / 16px gutter) */
.page-shell {
  max-width: 1600px;
  min-width: 320px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.grid-inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-2);
  row-gap: var(--space-2);
  width: 100%;
}

.grid-item {
  grid-column: span 12;
}

.span-1  { grid-column: span 1; }
.span-2  { grid-column: span 2; }
.span-3  { grid-column: span 3; }
.span-4  { grid-column: span 4; }
.span-5  { grid-column: span 5; }
.span-6  { grid-column: span 6; }
.span-7  { grid-column: span 7; }
.span-8  { grid-column: span 8; }
.span-9  { grid-column: span 9; }
.span-10 { grid-column: span 10; }
.span-11 { grid-column: span 11; }
.span-12 { grid-column: span 12; }

/* Large tablet: 9-col */
@media (max-width: 1024px) {
  .grid-inner { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .span-1  { grid-column: span 1; }
  .span-2  { grid-column: span 2; }
  .span-3  { grid-column: span 3; }
  .span-4  { grid-column: span 4; }
  .span-5  { grid-column: span 5; }
  .span-6  { grid-column: span 6; }
  .span-7  { grid-column: span 7; }
  .span-8  { grid-column: span 8; }
  .span-9  { grid-column: span 9; }
  .span-10, .span-11, .span-12 { grid-column: span 9; }
}

/* Small tablet: 9-col */
@media (max-width: 768px) {
  .grid-inner { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .span-1  { grid-column: span 1; }
  .span-2  { grid-column: span 2; }
  .span-3  { grid-column: span 3; }
  .span-4  { grid-column: span 4; }
  .span-5  { grid-column: span 5; }
  .span-6  { grid-column: span 6; }
  .span-7  { grid-column: span 7; }
  .span-8  { grid-column: span 8; }
  .span-9  { grid-column: span 9; }
  .span-10, .span-11, .span-12 { grid-column: span 9; }
}

/* Mobile + mini mobile: 6-col */
@media (max-width: 500px) {
  .grid-inner { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .span-1 { grid-column: span 1; }
  .span-2 { grid-column: span 2; }
  .span-3 { grid-column: span 3; }
  .span-4 { grid-column: span 4; }
  .span-5 { grid-column: span 5; }
  .span-6 { grid-column: span 6; }
  .span-7, .span-8, .span-9, .span-10, .span-11, .span-12 { grid-column: span 6; }
}

/* ============================================================
   Tech section responsive — after grid system so these win cascade
   ============================================================ */
@media (max-width: 1024px) {
  .tech-col-1,
  .tech-col-rainbow,
  .tech-col-3 { grid-column: span 3; } /* override span-4 → span-3 on 9-col */

  .tech-col-rainbow { min-height: 457px; }
  .tech-star-animation { min-height: 0; }
  .tech-col-3 { gap: var(--space-6); }
}

@media (max-width: 768px) {
  .tech-heading { margin-bottom: var(--space-4); }
  .tech-col-1 { grid-column: span 4; }
  .tech-col-rainbow { grid-column: span 1; }
  .tech-col-3 { grid-column: span 4; }
}

@media (max-width: 500px) {
  .tech-col-1,
  .tech-col-rainbow,
  .tech-col-3 { grid-column: span 6; }

  .tech-col-1 { justify-content: flex-start; gap: var(--space-3); }
  .tech-col-3 { gap: var(--space-3); }
  .tech-star-animation { aspect-ratio: 4 / 3; flex: none; }
  .tech-card { padding: var(--space-4) var(--space-3); }
}

/* ============================================================
   Values section responsive — after grid system so these win cascade
   ============================================================ */
/* Values col 2 and 3: 1-col gap on either side of the middle column */
.values-col:nth-child(3) { grid-column: 5 / span 3; }
.values-col:nth-child(4) { grid-column: 9 / span 3; }

@media (max-width: 1024px) {
  .values-col { grid-column: span 3; align-self: stretch; }
  .values-col:nth-child(3),
  .values-col:nth-child(4) { grid-column: span 3; }
}

@media (max-width: 500px) {
  .values-col,
  .values-col:nth-child(3),
  .values-col:nth-child(4) { grid-column: span 6; }
}

/* ============================================================
   Case Study pages — template layout (cs-*)
   Shared by: finde.html, verizon.html, casper.html
   Layout: 12-col grid, hero split (cols 1–4 | cols 6–12),
           detail section (overview cols 2–5 | metadata cols 7–9)
   ============================================================ */

/* ── Hero ───────────────────────────────────────────────────── */

.cs-hero {
  padding-top: var(--space-6);
}

.cs-hero-left {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: auto;
}

.cs-hero-headline {
  display: flex;
  flex-direction: column;
  gap: var(--space-6); /* 48px — Figma Frame 597 gap */
}

.cs-title {
  font-family: var(--font-display);
  font-size: var(--type-display-size);
  font-weight: var(--type-display-weight);
  line-height: var(--type-display-lh);
  letter-spacing: var(--type-display-ls);
  color: #1b1717;
  margin: 0;
}

.cs-subtitle, .cs-hero-annotation {
  font-family: var(--font-display);
  font-size: var(--type-title-l-size);
  font-weight: var(--type-title-l-weight);
  line-height: var(--type-title-l-lh);
  letter-spacing: var(--type-title-l-ls);
  color: #1b1717;
  margin: 0;
}

.cs-footnote {
  font-family: var(--font-text);
  font-size: var(--type-body-sm-size);
  font-weight: var(--type-body-sm-weight);
  line-height: var(--type-body-sm-lh);
  letter-spacing: var(--type-body-sm-ls);
  color: #1b1717;
  margin: 0;
}

/* Right: slide container, cols 6–12 (7 cols).
   Each .cs-hero-slide is a card+image pair — shown one at a time. */
.cs-hero-right {
  grid-column: 6 / span 7;
  height: auto;
  aspect-ratio: 3 / 2;
}

.cs-hero-slide {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2); /* 16px — matches grid gutter */
  height: 100%;
}

.cs-hero-slide--active {
  display: grid;
}

/* Dark overlay card (left half)
   PRODUCT anchored top, ROLE anchored bottom — space-between pushes them apart */
.cs-hero-card {
  border-radius: 48px;
  background: #141414;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-4); /* 32px minimum between meta items */
  padding: var(--space-6) var(--space-5); /* 48px top/bottom, 40px left/right */
}

.cs-card-meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2); 
}

.cs-label {
  font-family: var(--font-text);
  font-size: var(--type-body-sm-size);
  font-weight: var(--type-body-sm-weight);
  line-height: var(--type-body-sm-lh);
  letter-spacing: var(--type-body-sm-ls);
  color: inherit;
  display: block;
}

.cs-card-value {
  font-family: var(--font-text);
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
  line-height: var(--type-body-lh);
  letter-spacing: var(--type-body-ls);
  color: inherit;
  margin: 0;
}

/* Hero image (right half) */
.cs-hero-img-wrap {
  border-radius: 48px;
  overflow: hidden;
  height: 100%;
  background: #D9D9D9; /* placeholder until image loads */
}

.cs-hero-img-wrap--annotated {
  position: relative;
}

.cs-hero-img-wrap--dark-grad {
  background: linear-gradient(180deg, #141414 0%, #7A7A7A 100%);
}

.cs-hero-img-wrap--video {
  background: #fff;
  display: flex;
  align-items: center;
}

.cs-hero-video-mask {
  width: 89.6%; /* 353/395 per Figma */
  overflow: hidden;
  flex-shrink: 0;
  margin: -2px;
}

.cs-hero-video {
  display: block;
  width: calc(100% + 10px);
  height: auto;
  margin: -8px;
}

/* Brand slide (finde slide 4) */
.cs-brand-wrap {
  background: #fff;
  display: grid;
  padding: var(--space-4);
}

.cs-brand-panel {
  grid-area: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cs-brand-icons 10s ease-in-out infinite;
}

.cs-brand-panel--icons {
  animation: cs-brand-ui 10s ease-in-out infinite;
}

.cs-brand-icons-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  width: 100%;
}

.cs-brand-wordmark {
  width: 160px;
  height: auto;
}

.cs-brand-tagline {
  width: 100%;
  max-width: 305px;
  height: auto;
  position: relative;
  left:-5%; /* to optically center the text with the wordmark above it */
}

.cs-brand-iconset {
  width: 100%;
  max-width: 320px;
  height: auto;
}

@keyframes cs-brand-ui {
  0%, 40%  { opacity: 1; }
  50%, 90% { opacity: 0; }
  100%     { opacity: 1; }
}

@keyframes cs-brand-icons {
  0%, 40%  { opacity: 0; }
  50%, 90% { opacity: 1; }
  100%     { opacity: 0; }
}

.cs-finde-ui {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 100%;
  max-width: 320px;
}

.cs-finde-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-2);
  align-items: center;
}

.cs-finde-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px 7px 14px;
  border-radius: 100px;
  border: 1px solid transparent;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  color: #48110C;
  white-space: nowrap;
  cursor: default;
}

.cs-finde-pill--outline {
  background: #fff;
  border-color: #C3BEBB;
  color: #1b1717;
}

.cs-finde-pill--search {
  display: inline-flex;
  height: 40px;
  padding: 16px 15px;
  gap: 6px;
  border-radius: 16px;
  border: 1px solid #C3BEBB;
  background: #FFF;
  min-width: 150px;
}

.cs-finde-pill--search svg {
  width: 18.75px;
  height: 18.75px;
  flex-shrink: 0;
}

.cs-finde-pill--icon-search {
  padding: 6.5px;
  line-height: 0;
}

.cs-finde-caret {
  display: inline-block;
  flex-shrink: 0;
}

.cs-finde-size {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #C3BEBB;
  background: transparent;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px; /* 133.333% */
  letter-spacing: 0.12px;
  color: #1b1717;
  cursor: default;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.cs-finde-size--selected {
  background: #E4DBD6;
  border-color: #E4DBD6;
}

.cs-finde-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 49px;
  padding: 3px;
  border-radius: 100px;
  background: #8A8A8A;
  border: 1px solid #8A8A8A;
  box-sizing: border-box;
  flex-shrink: 0;
  cursor: default;
}

.cs-finde-toggle::after {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}

.cs-finde-toggle--on {
  background: #69964C;
  border-color: #69964C;
  justify-content: flex-end;
}

.cs-finde-swatch {
  display: inline-block;
  padding: 7.5px 16px 10px 16px;
  height: 32px;
  border-radius: 6px;
  flex-shrink: 0;
  color: #1b1717;
  text-align: center;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 15px; /* 100% */
  letter-spacing: 0.15px;
}

/* eBay API slide (finde slide 3) */
.cs-ebay-wrap {
  background: #fff;
  position: relative;
}

.cs-ebay-logo {
  position: absolute;
  left: 12.2%;
  top: 40.1%;
  width: 75.7%;
}

.cs-ebay-caption {
  position: absolute;
  left: 10.1%;
  bottom: 7%;
  width: 79.7%;
  text-align: center;
}

/* Image → video crossfade (finde slide 2) */
.cs-morph-wrap {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
}

.cs-morph-inner {
  display: grid;
  place-items: center;
  width: 100%;
}

.cs-morph-video,
.cs-morph-img {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  display: block;
}

.cs-morph-img {
  animation: cs-morph-fade 1.2s ease-in-out 1.5s forwards;
  border-radius: 3px;
}

.cs-morph-video {
  transform-origin: top left;
  animation: cs-morph-zoom 1.5s ease-in-out 3s forwards;
  border-radius: 3px;
}

@keyframes cs-morph-fade {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes cs-morph-zoom {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-10%, -78%) scale(2.6); }
}

.cs-morph-caption {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  font-size: var(--type-body-sm-size);
  opacity: 1;
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

.cs-morph-caption--wireframe {
  opacity: 1;
  animation: cs-morph-caption-out 1.5s ease-in-out 1.5s forwards;
}

@keyframes cs-morph-caption-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.cs-morph-caption--final {
  opacity: 0;
  animation: cs-morph-caption-in-out 2s ease-in-out 2.3s forwards;
}

@keyframes cs-morph-caption-in-out {
  0%   { opacity: 0; }
  50%  { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes cs-morph-caption-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Laptop ground shadow (finde slide 6) */
.cs-laptop-wrap {
  position: relative;
  width: 100%;
  isolation: isolate;
}

.cs-laptop-wrap::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 2%;
  width: 98%;
  height: 5px;
  background: rgba(0, 0, 0, 0.4);
  filter: blur(5px);
  border-radius: 40%;
  z-index: -1;
}

/* iPhone mockup (finde slide 4) */
.cs-iphone-mockup-wrap {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-iphone-mockup {
  position: relative;
  height: 88%;
  aspect-ratio: 536 / 1102;
}

.cs-iphone-video {
  position: absolute;
  top: 1.8%;
  left: 4.48%;
  width: 90.86%;
  height: 96.3%;
  object-fit: cover;
  border-radius: 6%;
}

.cs-iphone-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* Outcomes stat block (slide 5) */
.cs-outcomes-stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-5);
  height: 100%;
  box-sizing: border-box;
}

.cs-stat-intro {
  font-family: var(--font-text);
  font-size: var(--type-title-s-size);
  font-weight: var(--type-title-s-weight);
  line-height: var(--type-title-s-lh);
  color: #cfd7ffa7;
  margin: 0;
}

.cs-stat-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.cs-hero-annotation {
  position: absolute;
  bottom: var(--space-7);
  left: var(--space-4);
  right: var(--space-4);
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.369);
  margin: 0;
  pointer-events: none;
}

.cs-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Casper iteration crossfade */
.cs-iter-wrap {
  display: grid;
}

/* Casper problem slide — top overlay to highlight cross-sell module */
.cs-problem-wrap {
  position: relative;
}

.cs-problem-wrap::after {
  content: '';
  position: absolute;
  inset: 0 0 30% 0; /* covers top 75% */
  background: #181642;
  opacity: 0;
  pointer-events: none;
}

.cs-problem-wrap.is-animated::after {
  animation: cs-problem-overlay 3s ease-out 0.5s forwards;
}

@keyframes cs-problem-overlay {
  to { opacity: 0.9; }
}

/* Casper design slide — top overlay */
.cs-design-wrap {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-design-inner {
  position: relative;
  overflow: hidden;
  margin: 48px;
}

.cs-design-inner::after {
  content: '';
  position: absolute;
  inset: 0 0 49% 0;
  background: #ADD3EB;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

.cs-design-wrap.is-animated .cs-design-inner::after {
  animation: cs-design-overlay 3s ease-out 2s forwards;
}

@keyframes cs-design-overlay {
  to { opacity: 0.9; }
}

.cs-design-cart-img {
  display: block;
  width: 100%;
  position: relative;
  z-index: 2;
}

.cs-design-scroll-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  transform: translateY(0);
  transition: transform 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}


.cs-iter-caption {
  grid-area: 1/1;
  align-self: end;
  justify-self: center;
  padding-bottom: 40px;
  font-size: var(--type-body-sm-size);;
  color: #141414;
  opacity: 0.65;
  text-align: center;
}

.cs-iter-img {
  grid-area: 1/1;
  opacity: 0;
}

.cs-iter-img--1 { animation: cs-iter-1 9s ease-in-out infinite; }
.cs-iter-img--2 { animation: cs-iter-2 9s ease-in-out infinite; }
.cs-iter-img--3 { animation: cs-iter-3 9s ease-in-out infinite; }

@keyframes cs-iter-1 {
  0%, 25%  { opacity: 1; }
  33%      { opacity: 0; }
  92%      { opacity: 0; }
  100%     { opacity: 1; }
}

@keyframes cs-iter-2 {
  0%, 25%  { opacity: 0; }
  33%      { opacity: 1; }
  58%      { opacity: 1; }
  66%      { opacity: 0; }
  100%     { opacity: 0; }
}

@keyframes cs-iter-3 {
  0%, 58%  { opacity: 0; }
  66%      { opacity: 1; }
  92%      { opacity: 1; }
  100%     { opacity: 0; }
}

/* ── Navigation strip ───────────────────────────────────────── */

.cs-nav-strip {
  padding-top: var(--space-2);   
  padding-bottom: var(--space-7);
}

/* Grid mirrors the 12-col hero so nav elements sit centered under hero-right (col 6–12) */
.cs-nav-inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-2);
}

.cs-nav-right {
  grid-column: 6 / span 7;
  display: flex;
  flex-direction: column;
  align-items: center; /* centered under the full width of cs-hero-right */
  gap: var(--space-2);
}

/* 2px progress bar — each segment = one column width at the active breakpoint */
.cs-progress {
  display: flex;
  align-items: center;
  gap: var(--space-2); /* 16px */
}

.cs-progress-seg {
  display: block;
  width: var(--cs-col-width); /* tracks the current grid column width */
  height: 18px;
  background: #B5B5B5;
  background-clip: content-box;
  border-radius: 2px;
  padding-block: 8px;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cs-progress-seg--active {
  background-color: #535353;
  background-clip: content-box;
}

/* Arrow navigation — circular stroke buttons */
.cs-arrows {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  position: relative;
}

.cs-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid #1b1717;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.cs-arrow:hover:not([disabled]) {
  background: #1b1717;
}

.cs-arrow:hover:not([disabled]) svg {
  color: #fff;
}

.cs-arrow[disabled] {
  opacity: 0.25;
  cursor: default;
}

.cs-arrow svg {
  display: block;
  color: #1b1717;
}

/* Flip the same SVG arrow to point left for the previous button */
.cs-arrow--prev svg {
  transform: scaleX(-1);
}

.cs-keyboard-hint {
  font-family: var(--font-text);
  font-size: var(--type-body-sm-size);
  font-weight: var(--type-body-weight);
  line-height: var(--type-body-sm-lh);
  letter-spacing: var(--type-body-sm-ls);
  color: #2C2C2C;
  margin: 0;
  position: absolute;
  left: calc(100% + var(--space-2));
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.2s ease .5s; /* fade-out: hold .5s, then 0.2s fade */
  pointer-events: none;
  white-space: nowrap;
}

.cs-keyboard-hint--visible {
  opacity: 1;
  transition: opacity 0.2s ease; /* fade-in */
}

@media (max-width: 768px) {
  .cs-keyboard-hint { display: none; }
}

/* ── Case study navigation links (top Next + bottom Prev/Next) ── */

.cs-next-bar {
  padding-top: var(--space-5);     /* 40px */
  padding-bottom: var(--space-10); /* 80px */
}

.cs-next-bar .page-shell {
  display: flex;
  justify-content: flex-end;
}

/* Bottom nav: Previous (left) and Next (right) after detail section */
.cs-bottom-nav {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
  border-top: 1px solid #1b1717;
}

.cs-bottom-nav .page-shell {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.cs-next-link,
.cs-prev-link {
  font-family: var(--font-text);
  font-size: var(--type-title-s-size);
  font-weight: var(--type-title-s-weight);
  line-height: var(--type-title-s-lh);
  color: #1b1717;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.cs-next-link svg {
  transform: rotate(-90deg);
  flex-shrink: 0;
  margin-left: 3px; /* compensate for rotation visual overflow */
  transition: transform 0.2s ease;
}

.cs-prev-link svg {
  transform: rotate(90deg);
  flex-shrink: 0;
  margin-right: 3px; /* compensate for rotation visual overflow */
  transition: transform 0.2s ease;
}

.cs-next-link:hover,
.cs-prev-link:hover {
  color: #1b1717;
}

.cs-next-link:hover svg {
  transform: translateX(5px) rotate(-90deg);
}

.cs-prev-link:hover svg {
  transform: translateX(-5px) rotate(90deg);
}

/* ── Case study responsive ── (showcase + detail removed) ────── */


/* ── Case study responsive ── */
@media (max-width: 1370px) {
  .cs-finde-row, .cs-finde-ui {
    gap: var(--space-1) var(--space-1);
  }
  .cs-finde-pill {
    font-size: 15px;
  }
}

/* ≤1279px: stacked, centered, scaled type */
@media (max-width: 1279px) {
  .cs-title {
    font-size:      var(--type-h2-size);
    line-height:    var(--type-h2-lh);
    letter-spacing: var(--type-h2-ls);
  }
  .cs-hero-headline { gap: var(--space-5); }
  .cs-subtitle {
    font-family:    var(--font-display);
    font-size:      var(--type-title-m-size);
    font-weight:    var(--type-title-m-weight);
    line-height:    var(--type-title-m-lh);
    letter-spacing: var(--type-title-m-ls);
  }
  .cs-hero-left     { grid-column: 2 / -8; height: auto; }
  .cs-hero-right    { grid-column: 2 / -2; height: auto; aspect-ratio: 3 / 2; }
  .cs-footnote      { margin-top: var(--space-5); margin-bottom: var(--space-7); }
  .cs-nav-right     { grid-column: span 12; }
  .cs-next-link svg *,
  .cs-prev-link svg * { stroke-width: 1.25; }
  .cs-bottom-nav .page-shell { align-items: flex-end; }
}

/* 1024px (9-col): hero indented — col 2 start, text 6-wide, slides 7-wide */
@media (max-width: 1024px) {
  :root { --cs-col-width: calc((100vw - 2 * var(--space-3) - 8 * var(--space-2)) / 9); }
  .cs-hero { padding-top: var(--space-7);}
  .cs-hero-left     { grid-column: 1 / -2; height: auto; }
  .cs-hero-right    { grid-column: 1 / -1; height: auto; aspect-ratio: 3 / 2; }
  .cs-hero-card,
  .cs-hero-img-wrap { min-height: 320px; }
  .cs-nav-inner { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .cs-nav-right { grid-column: 2 / span 7; }
  .cs-subtitle,
  .cs-footnote { max-width: calc(3 * var(--cs-col-width) + 4 * var(--space-2)); }
}

/* 768px: no column offset — text and hero full 9-col width, hero height 468px */
@media (max-width: 768px) {
  .cs-hero-left  { grid-column: span 9; }
  .cs-hero-right { grid-column: span 9; height: 468px; }
  .cs-nav-inner  { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .cs-nav-right  { grid-column: span 9; }
  .cs-subtitle,
  .cs-footnote { max-width: calc(7 * var(--cs-col-width) + 6 * var(--space-2)); }
}

/* 767px: stacked scrollable slides, H2 type, col-3 left-aligned, pagination hidden */
@media (max-width: 768px) {
  .cs-next-link svg *,
  .cs-prev-link svg * { stroke-width: 1.25; }
  .page-shell      { align-items: flex-end; }
  .cs-bottom-nav   { align-items: flex-end;  margin-top: var(--space-6);}
  .cs-hero-left    { grid-column: 3 / span 6; }
  .cs-hero-right   { grid-column: 3 / span 5; height: auto; }
  .cs-nav-inner    { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .cs-nav-right    { grid-column: 3 / span 5; }
  .cs-title {
    font-size:      var(--type-h2-size);
    line-height:    var(--type-h2-lh);
    letter-spacing: var(--type-h2-ls);
  }
  .cs-hero-headline { gap: var(--space-5); }
  .cs-subtitle {
    font-family:    var(--font-text);
    font-size:      var(--type-title-s-size);
    font-weight:    var(--type-title-s-weight);
    line-height:    var(--type-title-s-lh);
    letter-spacing: var(--type-title-s-ls);
  }
  .cs-subtitle,
  .cs-footnote     { max-width: calc(5 * var(--cs-col-width) + 4 * var(--space-2)); }
  .cs-hero-slide   { display: grid; grid-template-columns: 1fr; height: auto; gap: var(--space-2); margin-bottom: var(--space-2); }
  .cs-hero-card     { min-height: calc((5 * var(--cs-col-width) + 4 * var(--space-2)) * 4 / 3); max-width: unset; height: auto; }
  .cs-hero-img-wrap { min-height: unset; aspect-ratio: 3 / 4; max-width: unset; width: 100%; }
  .cs-brand-wrap    { aspect-ratio: auto; height: auto; align-self: start; }
  .cs-nav-strip    { display: none; }
}

/* 500px (6-col): same type/gaps, left-aligned */
@media (max-width: 500px) {
  :root { --cs-col-width: calc((100vw - 2 * var(--space-3) - 5 * var(--space-2)) / 6); }
  .cs-title,
  .cs-subtitle,
  .cs-footnote     { max-width: calc(5 * var(--cs-col-width) + 5 * var(--space-2)); }
  .cs-hero-left    { grid-column: span 6; }
  .cs-hero-right   { grid-column: span 6; }
  .cs-hero-card,
  .cs-hero-img-wrap { max-width: unset; margin-left: 0; margin-right: 0; }
  .cs-nav-inner    { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cs-nav-right    { grid-column: span 6; }
}

/* 425px (6-col) */
@keyframes cs-morph-zoom-sm {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-13%, -78%) scale(2.6); }
}

@media (max-width: 425px) {
  .cs-morph-video { animation-name: cs-morph-zoom-sm; }
  .cs-brand-wrap {
    padding: var(--space-2);
  }
  .cs-finde-ui,
  .cs-brand-icons-wrap {
    transform: scale(0.88);
    transform-origin: center center;
  }
}

@media (max-width: 375px) {
  .cs-stat-intro {
    font-family: var(--font-text);
    font-size: var(--type-body-size);
    font-weight: var(--type-body-weight);
    line-height: var(--type-body-lh);
  }
  .cs-stat-group {
    gap: var(--space-1);
  }
}

@keyframes cs-morph-zoom-xs {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-18%, -78%) scale(2.6); }
}

@media (max-width: 320px) {
  .cs-morph-video { animation-name: cs-morph-zoom-xs; }
  .cs-brand-wrap {
    align-items: center;
    justify-items: center;
    padding: 0px;
  }
  .cs-brand-panel {
    width: 100%;
    height: 100%;
  }
  .cs-finde-ui,
  .cs-brand-icons-wrap {
    transform: scale(0.75);
    transform-origin: center center;
  }
  .cs-subtitle,
  .cs-footnote     { max-width: calc(5 * var(--cs-col-width) + 6 * var(--space-2)); }
}

/* ============================================================
   Collab section responsive — after grid system so these win cascade
   ============================================================ */

/* 769px–1024px: side-by-side heading (3 cols) + description+groups (6 cols) */
@media (min-width: 769px) and (max-width: 1024px) {
  .collab-heading { grid-column: 1 / span 3; }
  .collab-description { grid-column: 4 / span 6; }
  .collab-groups { grid-column: 4 / span 6; }
}

/* 501–720px and 769–1200px: collab-item-name scales down to match collab-item-type style */
@media (min-width: 501px) and (max-width: 720px),
       (min-width: 769px) and (max-width: 1200px) {
  .collab-item-name {
    font-size: var(--type-body-sm-size);
    font-weight: var(--type-body-sm-weight);
    line-height: var(--type-body-sm-lh);
    letter-spacing: var(--type-body-sm-ls);
  }
}

/* ≤768px: stacked full-width */
@media (max-width: 768px) {
  .collab-heading { grid-column: 1 / span 9; margin-bottom: var(--space-4); }
  .collab-description { grid-column: 1 / span 9; }
  .collab-groups { grid-column: 1 / span 9; }
}

/* 500px: stacked layout, 3 modules per row */
@media (max-width: 570px) {
  .collab-heading { grid-column: 1 / span 6; margin-bottom: var(--space-4);}
  .collab-description { grid-column: 1 / span 7; }
  .collab-groups { grid-column: 1 / span 6; padding-top: var(--space-7); }

  /* 3 modules per row (each module = 2 of 6 page cols) */
  .collab-grid { grid-template-columns: repeat(3, 1fr); }

  /* Branding: full width, 3 items/row × 2 rows */
  .collab-cell--branding {
    grid-column: 1 / span 3;
    aspect-ratio: 3 / 2;
  }
  .collab-cell--branding .collab-cell-items {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Intern forced to col 1, cascades to its own row below Mid-Level */
  .collab-group--agencies .collab-cell:last-child { grid-column: 1 / span 1; }
}

