.company-case-studies,
.company-case-study-home {
  --ccs-ink: #18181b;
  --ccs-muted: #71717a;
  --ccs-paper: #fcfbfb;
  --ccs-panel: #f3eeee;
  --ccs-line: #e4dedd;
  --ccs-red: #c72e32;
  --ccs-pink: #f3eeee;
  background: var(--ccs-paper);
  color: var(--ccs-ink);
  overflow-wrap: anywhere;
  word-break: keep-all;
}

/* Match the story canvas without changing the shared header's geometry. */
body[data-company-area="true"]:has(.company-case-studies) { background: #fcfbfb; }
body[data-company-area="true"]:has(.company-case-studies) #main-header:is([data-landing-header-state="expanded"], [data-landing-header-state="standard"]),
body[data-company-area="true"]:has(.company-case-studies) #main-header[data-landing-header-state] [data-landing-header-shell] { background: #fcfbfb; }

.ccs-shell { width: min(1608px, calc(100% - 120px)); margin-inline: auto; }
.ccs-index { min-height: calc(100svh - 76px); }
/* Align the list with the expanded header's content edges at every width. */
.ccs-index > .ccs-shell { box-sizing: border-box; width: min(96rem, 100%); padding-inline: 1rem; }
@media (min-width: 768px) {
  .ccs-index > .ccs-shell { padding-inline: 1.25rem; }
}
.ccs-breadcrumbs { padding-top: 94px; font-size: 16px; line-height: 24px; }
.ccs-breadcrumbs ol { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.ccs-breadcrumbs li { display: inline-flex; align-items: center; gap: 12px; color: var(--ccs-muted); }
.ccs-breadcrumbs li + li::before { content: "/"; color: var(--ccs-ink); }
.ccs-breadcrumbs a { color: inherit; text-decoration: none; }
.ccs-breadcrumbs [aria-current="page"] { color: var(--ccs-ink); }
.ccs-breadcrumbs [aria-current="page"] > span { text-decoration: underline; text-underline-offset: 5px; }
.ccs-index-hero { padding-block: 48px 80px; text-align: center; }
.ccs-index-kicker { font-size: 14px; font-weight: 400; line-height: 21px; letter-spacing: .12em; }
.ccs-index-hero h1 { margin-top: 12px; font-size: clamp(48px, 6vw, 88px); line-height: 1.12; letter-spacing: -.025em; font-weight: 400; }
.ccs-library { padding-bottom: 112px; }
.ccs-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; row-gap: 80px; }
.ccs-card { min-width: 0; }
.ccs-card-link { display: flex; height: 100%; flex-direction: column; color: inherit; text-decoration: none; }
.ccs-card-image { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: var(--ccs-panel); }
.ccs-card-image > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ccs-card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding-top: 16px; }
.ccs-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 12px; line-height: 18px; color: var(--ccs-muted); font-weight: 400; }
.ccs-card h3 { margin-top: 10px; font-size: 20px; line-height: 1.4; letter-spacing: -.025em; font-weight: 400; }
.ccs-card-copy > p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 10px; color: var(--ccs-muted); font-size: 16px; line-height: 1.5; letter-spacing: -.015em; }
.ccs-image-fallback { display: flex; flex-direction: column; justify-content: space-between; height: 100%; padding: 8%; color: var(--ccs-ink); background: var(--ccs-panel); }
.ccs-fallback-mark { display: flex; align-items: flex-start; justify-content: space-between; font-family: Arial, sans-serif; font-size: clamp(60px, 7vw, 110px); font-weight: 900; line-height: 1; letter-spacing: -.09em; }
.ccs-fallback-mark > span { font-weight: 400; font-size: .7em; letter-spacing: 0; }
.ccs-fallback-client { font-size: 18px; font-weight: 500; }
.ccs-empty { padding: 64px 28px; border-radius: 10px; text-align: center; background: var(--ccs-panel); }
.ccs-empty h2 { font-size: 26px; line-height: 1.4; font-weight: 500; }
.ccs-empty p { margin-top: 14px; color: var(--ccs-muted); font-size: 16px; }
.ccs-empty .ccs-text-link { margin-top: 20px; }
.ccs-pagination { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 64px; }
.ccs-pagination-link { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; font-size: 14px; color: var(--ccs-ink); text-decoration: none; }
.ccs-page-number { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ccs-panel); font-size: 14px; }
.ccs-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 11px; line-height: 1.5; font-weight: 700; letter-spacing: .16em; }
.ccs-eyebrow > span { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--ccs-red); }
.ccs-text-link { display: inline-flex; align-items: center; gap: 20px; min-height: 44px; color: var(--ccs-ink); font-size: 13px; line-height: 1.5; font-weight: 600; text-decoration: none; }
.ccs-text-link > span { font-size: 21px; font-weight: 400; transition: transform .2s ease; }
.ccs-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 32px; }
.ccs-section-heading h2 { font-size: 30px; font-weight: 400; line-height: 1.3; letter-spacing: -.04em; }
.ccs-related { padding-block: 76px 100px; }
.ccs-cta { background: var(--ccs-panel); }
.ccs-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding-block: 72px; }
.ccs-cta h2 { margin-top: 22px; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.3; letter-spacing: -.04em; font-weight: 400; }
.ccs-cta h2 + p { margin-top: 20px; color: var(--ccs-muted); font-size: 16px; line-height: 1.7; }
.ccs-button { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 32px; min-height: 54px; padding: 14px 24px; border: 1px solid var(--ccs-ink); border-radius: 40px; background: var(--ccs-ink); color: #fff; font-size: 14px; font-weight: 500; line-height: 1.6; text-decoration: none; transition: opacity .2s; }
.ccs-button > span { font-size: 24px; line-height: 1; font-weight: 400; }
.ccs-preview { background: #f7e8bd; color: #655013; border-bottom: 1px solid #dece9f; }
.ccs-preview .ccs-shell { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 16px; font-size: 12px; }
.ccs-preview p { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.ccs-preview a { min-height: 32px; display: inline-flex; align-items: center; flex-shrink: 0; color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.company-case-studies :is(a, button, summary):focus-visible,
.company-case-study-home a:focus-visible { outline: 2px solid var(--ccs-ink); outline-offset: 5px; }

/* The home page retains its existing featured-project presentation. */
.company-case-study-home { --ccs-ink: #262320; --ccs-muted: #706b66; --ccs-paper: #fbf9f5; --ccs-pink: #f8e7e4; padding-block: 88px; }
.company-case-study-home .ccs-shell { width: min(1280px, calc(100% - 96px)); }
.ccs-home-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 44px; }
.ccs-home-heading h2 { margin-top: 20px; font-size: clamp(34px, 3.5vw, 50px); line-height: 1.3; letter-spacing: -.055em; font-weight: 650; }
.company-case-study-home .ccs-card-image { aspect-ratio: 4 / 3; border-radius: 3px; }
.ccs-card-arrow { display: grid; place-items: center; position: absolute; right: 16px; bottom: 16px; width: 36px; height: 36px; border-radius: 50%; color: var(--ccs-ink); background: var(--ccs-paper); font-size: 22px; }
.company-case-study-home .ccs-card-copy { padding-top: 20px; }
.company-case-study-home .ccs-card-meta { gap: 8px 12px; font-size: 11px; }
.company-case-study-home .ccs-card-meta > span:first-child { color: var(--ccs-red); font-weight: 700; }
.company-case-study-home .ccs-card-meta > span + span { padding-left: 12px; border-left: 1px solid #cfc5bb; }
.company-case-study-home .ccs-card h3 { font-size: 23px; line-height: 1.48; font-weight: 650; letter-spacing: -.04em; }
.company-case-study-home .ccs-card-copy > p { margin-block: 12px; font-size: 14px; line-height: 1.8; }
.company-case-study-home .ccs-card .ccs-text-link { margin-top: auto; font-size: 12px; }
.company-case-study-home[data-case-count="1"] .ccs-card-grid { grid-template-columns: minmax(0, 1fr); }
.company-case-study-home[data-case-count="1"] .ccs-card-link { display: grid; grid-template-columns: 1.12fr 1fr; background: var(--ccs-pink); border-radius: 4px; overflow: hidden; }
.company-case-study-home[data-case-count="1"] .ccs-card-image { height: 100%; min-height: 360px; border-radius: 0; }
.company-case-study-home[data-case-count="1"] .ccs-card-copy { justify-content: center; padding: clamp(28px, 4vw, 56px); }
.company-case-study-home[data-case-count="1"] .ccs-card h3 { margin-top: 20px; font-size: clamp(27px, 2.7vw, 38px); line-height: 1.4; }
.company-case-study-home[data-case-count="1"] .ccs-card-copy > p { margin-block: 20px 28px; -webkit-line-clamp: 3; font-size: 15px; }
.company-case-study-home[data-case-count="1"] .ccs-card .ccs-text-link { margin-top: 0; }

@media (hover: hover) {
  .ccs-card-link:hover .ccs-card-image > img { transform: scale(1.025); }
  .ccs-card-link:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
  .ccs-breadcrumbs a:hover { color: var(--ccs-ink); }
  .ccs-button:hover { opacity: .85; }
  .ccs-text-link:hover > span { transform: translate(2px, -2px); }
}

@media (max-width: 1023px) {
  .ccs-shell, .company-case-study-home .ccs-shell { width: calc(100% - 64px); }
  .ccs-breadcrumbs { padding-top: 48px; font-size: 14px; }
  .ccs-index-hero { padding-block: 48px 64px; }
  .ccs-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .ccs-card h3 { font-size: 19px; }
  .ccs-card-copy > p { font-size: 15px; }
  .ccs-cta-inner { gap: 32px; }
}

@media (max-width: 639px) {
  .ccs-shell, .company-case-study-home .ccs-shell { width: calc(100% - 40px); }
  .ccs-index { min-height: calc(100svh - 48px); }
  .ccs-breadcrumbs { padding-top: 32px; font-size: 13px; }
  .ccs-index-hero { padding-block: 42px 48px; }
  .ccs-index-kicker { font-size: 11px; }
  .ccs-index-hero h1 { margin-top: 12px; font-size: clamp(34px, 9vw, 48px); letter-spacing: -.045em; }
  .ccs-card-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .ccs-card-copy { padding-top: 16px; }
  .ccs-card h3 { font-size: 20px; }
  .ccs-card-copy > p { font-size: 15px; }
  .ccs-library { padding-bottom: 64px; }
  .ccs-section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .ccs-related { padding-block: 52px 64px; }
  .ccs-empty { padding: 36px 20px; }
  .ccs-empty h2 { font-size: 23px; }
  .ccs-cta-inner { flex-direction: column; align-items: flex-start; gap: 28px; padding-block: 48px; }
  .ccs-cta h2 { font-size: 32px; }
  .ccs-button { width: 100%; max-width: 380px; }
  .ccs-preview .ccs-shell { flex-direction: column; align-items: flex-start; gap: 4px; }
  .company-case-study-home { padding-block: 56px; }
  .ccs-home-heading { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 28px; }
  .ccs-home-heading h2 { font-size: 34px; }
  .company-case-study-home[data-case-count="1"] .ccs-card-link { display: flex; }
  .company-case-study-home[data-case-count="1"] .ccs-card-image { height: auto; min-height: 0; }
  .company-case-study-home[data-case-count="1"] .ccs-card-copy { padding: 26px 24px; }
  .company-case-study-home[data-case-count="1"] .ccs-card h3 { font-size: 28px; }
  .company-case-study-home[data-case-count="1"] .ccs-card-copy > p { margin-block: 16px 20px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .company-case-studies *, .company-case-study-home * { transition: none !important; scroll-behavior: auto !important; }
}
.ccs-card-image-branded::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(0 0 0 / 5%), rgb(0 0 0 / 18%), rgb(0 0 0 / 5%));
  pointer-events: none;
}
.ccs-card-image img.ccs-thumbnail-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56%;
  height: 38%;
  object-fit: contain;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.ccs-card-link:hover .ccs-card-image img.ccs-thumbnail-logo {
  transform: translate(-50%, -50%);
}
