/* Case studies index v2 (owner's redesign), used as built. */
/* stylelint-disable no-duplicate-selectors, property-no-vendor-prefix */

/* Case studies index v2: centred hero with stat mosaic, filter bar, editorial card grid with CTA bands. */
.cv-hero { padding: clamp(56px, 6vw, 96px) var(--gutter) clamp(24px, 3vw, 40px); background: radial-gradient(900px 500px at 50% 0%, rgb(76 134 240 / 12%), transparent 62%), var(--paper); }
.cv-hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cv-hero .crumbs { align-self: flex-start; margin-bottom: 28px; }
.cv-hero__title { max-width: 980px; text-wrap: balance; }
.cv-hero__lead { max-width: 720px; margin: 22px auto 32px; }
.cv-mosaic { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr; grid-template-rows: 200px; gap: 14px; width: 100%; max-width: 1100px; margin-top: 56px; }
.cv-tile { overflow: hidden; border-radius: 22px; }
.cv-tile--img img { width: 100%; height: 100%; object-fit: cover; }
.cv-tile--stat { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 6px; padding: 22px; border: 1px solid var(--line); background: var(--white); text-align: left; }
.cv-tile--stat:nth-child(3) { transform: translateY(-24px); }
.cv-tile--stat strong { font-weight: 700; font-size: clamp(30px, 2.8vw, 44px); line-height: 1; letter-spacing: -1.4px; color: var(--ink); }
.cv-tile--stat span { font-size: 13px; color: var(--slate); }
.cv-tile--blue { border: 0; background: var(--blue); }
.cv-tile--blue strong, .cv-tile--blue span { color: var(--white); }
.cv-tile--gold { border: 0; background: var(--gold); }
.cv-tile--gold span { color: var(--ink-2); }

.cv-list { padding-top: clamp(56px, 6vw, 88px); }
.cv-filter { position: sticky; top: 84px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 32px; padding: 10px; border: 1px solid var(--line); border-radius: 999px; background: rgb(255 255 255 / 92%); backdrop-filter: blur(12px); box-shadow: 0 18px 40px -30px rgb(26 33 48 / 40%); }
.cv-filter__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-chip { padding: 10px 18px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; transition: background-color .25s ease, color .25s ease; }
.cv-chip:hover { background: var(--sand); }
.cv-chip.is-on { background: var(--ink); color: var(--white); }
.cv-select select { height: 42px; padding: 0 36px 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23141416' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; font: inherit; font-size: 14px; color: var(--ink); appearance: none; cursor: pointer; }
.cv-search { flex: 1; min-width: 220px; }
.cv-search input { width: 100%; height: 42px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font: inherit; font-size: 14px; }
.cv-search input:focus, .cv-select select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }

.cv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cv-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: var(--white); color: var(--ink); transition: transform .35s var(--ease), box-shadow .35s ease, border-color .35s ease; }
.cv-card:hover { border-color: transparent; color: var(--ink); transform: translateY(-6px); box-shadow: 0 34px 70px -40px rgb(26 33 48 / 50%); }
.cv-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.cv-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.cv-card:hover .cv-card__media img { transform: scale(1.04); }
.cv-card__client { position: absolute; left: 20px; bottom: 20px; padding: 9px 16px; border-radius: 999px; background: rgb(255 255 255 / 94%); backdrop-filter: blur(8px); font-weight: 700; font-size: 14px; letter-spacing: -.2px; color: var(--ink); }
.cv-card__body { display: flex; flex: 1; flex-direction: column; gap: 14px; padding: 28px 30px 30px; }
.cv-card__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.cv-card__ind { font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.cv-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-card__tags span { padding: 5px 11px; border-radius: 999px; background: var(--sand); font-size: 12.5px; color: var(--ink-2); }
.cv-card__title { font-weight: 600; font-size: clamp(22px, 1.8vw, 28px); line-height: 1.2; letter-spacing: -.7px; text-wrap: balance; }
.cv-card__text { font-size: 15.5px; line-height: 1.6; color: var(--slate); text-wrap: pretty; }
.cv-card__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 6px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.cv-card__facts div { padding-right: 14px; }
.cv-card__facts div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.cv-card__facts dt { font-weight: 700; font-size: clamp(20px, 1.7vw, 26px); letter-spacing: -.8px; line-height: 1.1; color: var(--ink); }
.cv-card__facts dd { margin: 6px 0 0; font-size: 12.5px; color: var(--slate); }
.cv-card__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 14.5px; }
.cv-card__go .ico { width: 16px; height: 16px; background: currentColor; transition: transform .3s var(--ease); }
.cv-card:hover .cv-card__go { color: var(--blue); }
.cv-card:hover .cv-card__go .ico { transform: translateX(4px); }

.cv-card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.cv-card--wide .cv-card__media { aspect-ratio: auto; min-height: 440px; }
.cv-card--wide .cv-card__body { justify-content: center; padding: clamp(32px, 3.4vw, 52px); }
.cv-card--wide .cv-card__title { font-size: clamp(26px, 2.4vw, 36px); }

.cv-band { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: clamp(44px, 5vw, 72px) 32px; border-radius: 28px; text-align: center; }
.cv-band--blue { background: radial-gradient(700px 320px at 50% 0%, rgb(255 255 255 / 18%), transparent 60%), linear-gradient(135deg, #0e3f8f, #1c5fd0 55%, #2b74e8); color: var(--white); }
.cv-band--gold { background: radial-gradient(700px 320px at 50% 100%, rgb(255 255 255 / 40%), transparent 60%), var(--gold); color: var(--ink); }
.cv-band--gold .btn--white { background: var(--ink); color: var(--white); }
.cv-band__title { max-width: 760px; font-weight: 600; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.15; letter-spacing: -1.1px; text-wrap: balance; }
.cv-band__text { max-width: 600px; font-size: 16.5px; line-height: 1.6; opacity: .9; }
.cv-band__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-size: 15px; }
.cv-band__list li { display: flex; align-items: center; gap: 10px; }
.cv-band__list li::before { content: '✓'; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--gold); font-size: 11px; }
.cv-band .btn { margin-top: 8px; }
.cv-grid.is-filtered .cv-band { display: none; }
.cv-grid.is-filtered .cv-card--wide { grid-column: auto; display: flex; }
.cv-grid.is-filtered .cv-card--wide .cv-card__media { aspect-ratio: 16 / 10; min-height: 0; }
.cv-card[hidden] { display: none !important; }
.cv-empty { padding: 48px 0; text-align: center; font-size: 16px; color: var(--slate); }
.cv-empty button { border: 0; background: none; font: inherit; font-weight: 600; color: var(--blue); cursor: pointer; }

@media (max-width: 1100px) {
  .cv-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 170px; }
  .cv-mosaic .cv-tile--img:last-child { display: none; }
  .cv-mosaic .cv-tile--img:first-child { display: none; }
  .cv-tile--stat:nth-child(3) { transform: none; }
  .cv-card--wide { grid-template-columns: 1fr; }
  .cv-card--wide .cv-card__media { aspect-ratio: 16 / 10; min-height: 0; }
  .cv-filter { position: static; border-radius: 22px; }
}

@media (max-width: 720px) {
  .cv-grid { grid-template-columns: 1fr; }
  .cv-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .cv-card__body { padding: 22px; }
  .cv-card__facts dt { font-size: 18px; }
}

/* industries marquee */
.cv-hero { padding-left: 0; padding-right: 0; }
.cv-hero .container { padding-left: var(--gutter); padding-right: var(--gutter); }
.cv-marquee { position: relative; display: flex; overflow: hidden; margin-top: clamp(48px, 5vw, 72px); padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.cv-marquee__track { display: flex; flex: none; align-items: center; gap: 0; animation: cv-marquee 48s linear infinite; }
.cv-marquee:hover .cv-marquee__track { animation-play-state: paused; }
.cv-marquee__track li { display: flex; align-items: center; gap: 22px; padding-right: 22px; font-weight: 500; font-size: clamp(15px, 1.2vw, 18px); letter-spacing: -.2px; white-space: nowrap; color: var(--ink); }
.cv-marquee__track li::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.cv-marquee__track li:nth-child(3n+2)::after { background: var(--blue); }

@keyframes cv-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

@media (prefers-reduced-motion: reduce) { .cv-marquee__track { animation: none; } .cv-marquee { overflow-x: auto; } }

/* ---------- spacing rhythm (same scale as the service pages) ---------- */
:root { --sec-y: clamp(72px, 8vw, 120px); --head-gap: clamp(36px, 4vw, 56px); }
.cv-hero { padding-top: clamp(56px, 6vw, 96px); padding-bottom: 0; }
.cv-hero .eyebrow { margin-bottom: 18px; }
.cv-hero__lead { margin: 22px auto 0; }
.cv-hero__inner > .btn { margin-top: 32px; }
.cv-marquee { margin-top: var(--head-gap); }
.cv-list { padding-top: var(--head-gap); padding-bottom: var(--sec-y); }
.cv-grid { gap: 24px; }
.cv-band { margin: 16px 0; }
.section, .lets-talk { padding-top: var(--sec-y); padding-bottom: var(--sec-y); }
.section .head-center, .section .head-split { margin-bottom: var(--head-gap); }
.logo-wall-section { padding-bottom: var(--sec-y); }
.review-logos { margin-top: var(--head-gap); }

@media (max-width: 720px) {
  :root { --sec-y: 64px; --head-gap: 32px; }
  .cv-grid { gap: 16px; }
  .cv-band { margin: 8px 0; padding: 40px 22px; }
}
.section.cv-list { padding-top: var(--head-gap); }
main .lets-talk { padding-top: var(--sec-y); padding-bottom: var(--sec-y); }

/* Gold band: dot pattern that fades out behind the text. */
.cv-band--gold { position: relative; overflow: hidden; isolation: isolate; }
.cv-band--gold::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgb(20 20 22 / 24%) 1.3px, transparent 1.7px); background-size: 18px 18px; -webkit-mask-image: radial-gradient(ellipse 58% 75% at 50% 50%, transparent 30%, #000 95%); mask-image: radial-gradient(ellipse 58% 75% at 50% 50%, transparent 30%, #000 95%); pointer-events: none; }
