:root {
  --client-case-green: #0f5d38;
  --client-case-green-dark: #083b25;
  --client-case-green-soft: #e7f0e5;
  --client-case-cream: #fffaf0;
  --client-case-white: #fffefa;
  --client-case-ink: #123525;
  --client-case-muted: #66766b;
  --client-case-line: rgba(15, 93, 56, .18);
  --client-case-shadow: 0 14px 36px rgba(8, 59, 37, .09);
  --client-case-radius: 10px;
}

.client-case,
.client-case * {
  box-sizing: border-box;
}

.client-case {
  position: relative;
  min-width: 0;
  margin-top: -132px;
  overflow: clip;
  color: var(--client-case-ink);
  background: var(--client-case-cream);
  font-family: "Montserrat", Arial, sans-serif;
}

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

.client-case a {
  color: inherit;
}

.client-case-shell {
  width: min(1520px, calc(100% - 60px));
  min-width: 0;
  margin-inline: auto;
}

.client-case-hero {
  position: relative;
  isolation: isolate;
  min-height: 720px;
  padding: calc(132px + 138px) 0 76px;
  display: flex;
  align-items: flex-end;
  color: var(--client-case-cream);
  background: var(--client-case-green-dark);
}

.client-case-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(90deg, rgba(5, 38, 23, .92) 0%, rgba(5, 38, 23, .77) 54%, rgba(5, 38, 23, .5) 100%), var(--case-cover);
  background-position: center;
  background-size: cover;
}

.client-case-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 220px;
  background: linear-gradient(180deg, transparent, rgba(5, 38, 23, .44));
  pointer-events: none;
}

.client-case-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: none;
  margin-bottom: 34px;
  color: rgba(255, 250, 240, .78);
  font-size: 13px;
  font-weight: 900;
  line-height: normal;
}

.client-case-crumbs a {
  color: var(--client-case-cream);
  text-underline-offset: 4px;
}

.client-case-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 20px;
}

.client-case-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 250, 240, .42);
  border-radius: 999px;
  background: rgba(5, 38, 23, .42);
  color: var(--client-case-cream);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
  backdrop-filter: blur(7px);
}

.client-case-hero h1 {
  max-width: 1080px;
  margin: 0;
  color: var(--client-case-cream);
  font-size: clamp(42px, 4.8vw, 76px);
  font-weight: 950;
  line-height: .99;
  letter-spacing: -.04em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.client-case-lead {
  max-width: 900px;
  margin: 24px 0 0;
  color: rgba(255, 250, 240, .9);
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.55;
}

.client-case-hero-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 38px;
  border: 1px solid rgba(255, 250, 240, .28);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 250, 240, .22);
  backdrop-filter: blur(10px);
}

.client-case-hero-facts:has(> .client-case-hero-fact:nth-child(4):last-child) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.client-case-hero-fact {
  min-width: 0;
  padding: 17px 18px 18px;
  background: rgba(5, 38, 23, .58);
}

.client-case-hero-fact span,
.client-case-hero-fact strong {
  display: block;
}

.client-case-hero-fact span {
  margin-bottom: 6px;
  color: rgba(255, 250, 240, .65);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.client-case-hero-fact strong {
  color: var(--client-case-cream);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.client-case-section,
.client-case-gallery-section {
  padding: 96px 0;
}

.client-case-gallery-section {
  background: #f0f4ea;
}

.client-case-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr);
  gap: 38px;
  align-items: start;
}

.client-case-copy,
.client-case-status {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--client-case-line);
  border-radius: var(--client-case-radius);
  background: var(--client-case-white);
  box-shadow: 0 12px 30px rgba(8, 59, 37, .06);
}

.client-case-status {
  position: sticky;
  top: 28px;
  border-color: rgba(15, 93, 56, .3);
  background: linear-gradient(145deg, #edf5e9, #fffefa);
}

.client-case-eyebrow {
  display: block;
  margin-bottom: 11px;
  color: var(--client-case-green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.client-case h2 {
  margin: 0;
  color: var(--client-case-green-dark);
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 950;
  line-height: 1.06;
  letter-spacing: -.03em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.client-case-copy p,
.client-case-status p,
.client-case-related p {
  margin: 19px 0 0;
  font-size: 17px;
  line-height: 1.7;
}

.client-case-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 26px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.client-case-list li {
  position: relative;
  min-width: 0;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.5;
}

.client-case-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--client-case-green);
}

.client-case-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .65fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 34px;
}

.client-case-heading > p {
  margin: 0;
  color: var(--client-case-muted);
  font-size: 16px;
  line-height: 1.6;
}

.client-case-gallery {
  position: relative;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--client-case-line);
  border-radius: 12px;
  background: var(--client-case-white);
  box-shadow: var(--client-case-shadow);
}

.client-case-gallery-viewport {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #e2e8dc;
}

.client-case-gallery-track {
  display: flex;
  width: 100%;
  min-width: 0;
  transition: transform .42s cubic-bezier(.22, .7, .22, 1);
  touch-action: pan-y;
  outline: none;
  will-change: transform;
}

.client-case-gallery-track:focus-visible {
  box-shadow: inset 0 0 0 3px #65a982;
}

.client-case-slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
}

.client-case-slide button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  background: #dce5d8;
}

.client-case-slide img {
  width: 100%;
  height: min(70vh, 760px);
  object-fit: contain;
  background: #e7ebe2;
}

.client-case-slide figcaption {
  min-height: 56px;
  padding: 15px 20px;
  color: var(--client-case-ink);
  background: var(--client-case-white);
  font-size: 15px;
  line-height: 1.45;
}

.client-case-gallery-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 32px;
  left: 32px;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.client-case-gallery-arrow {
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  color: #fff;
  background: rgba(8, 59, 37, .82);
  box-shadow: 0 8px 24px rgba(8, 59, 37, .25);
  cursor: pointer;
  font: 300 36px/42px Arial, sans-serif;
  pointer-events: auto;
  transition: transform .2s ease, background .2s ease;
}

.client-case-gallery-arrow:hover,
.client-case-gallery-arrow:focus-visible {
  background: var(--client-case-green);
  transform: scale(1.06);
}

.client-case-gallery-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 4px 4px;
}

.client-case-gallery-counter {
  color: var(--client-case-muted);
  font-size: 13px;
  font-weight: 800;
}

.client-case-gallery-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.client-case-gallery-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: #b6c4b8;
  transition: width .2s ease, border-radius .2s ease, background .2s ease;
}

.client-case-gallery-dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: var(--client-case-green);
}

.client-case-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.client-case-thumb {
  min-width: 0;
  padding: 3px;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  background: transparent;
}

.client-case-thumb img {
  width: 100%;
  aspect-ratio: 1.41;
  border-radius: 8px;
  object-fit: cover;
}

.client-case-thumb.is-active {
  border-color: var(--client-case-green);
}

.client-case-solutions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.client-case-solution {
  position: relative;
  min-width: 0;
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--client-case-line);
  border-radius: 10px;
  background: var(--client-case-white);
  box-shadow: 0 12px 30px rgba(8, 59, 37, .06);
}

.client-case-solution::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: 18px;
  border-radius: 99px;
  background: var(--client-case-green);
}

.client-case-solution p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.client-case-pdf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  margin-top: 28px;
  padding: 28px 30px;
  border-radius: 10px;
  color: var(--client-case-cream);
  background: var(--client-case-green-dark);
}

.client-case-pdf strong,
.client-case-pdf span {
  display: block;
}

.client-case-pdf strong {
  font-size: 19px;
  line-height: 1.3;
}

.client-case-pdf span {
  margin-top: 7px;
  color: rgba(255, 250, 240, .76);
  font-size: 14px;
  line-height: 1.5;
}

.client-case-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 1px solid currentColor;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.client-case-button:hover,
.client-case-button:focus-visible {
  transform: translateY(-2px);
}

.client-case .client-case-button--light {
  flex: 0 0 auto;
  color: #111111;
  border-color: var(--client-case-cream);
  background: var(--client-case-cream);
}

.client-case .client-case-button--light:hover,
.client-case .client-case-button--light:focus-visible {
  color: #111111;
  border-color: var(--client-case-white);
  background: var(--client-case-white);
  box-shadow: 0 8px 20px rgba(8, 59, 37, .16);
}

.client-case-related {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, .7fr);
  gap: 58px;
  padding: 34px;
  border-radius: 10px;
  color: var(--client-case-cream);
  background: linear-gradient(125deg, var(--client-case-green-dark), #197348);
  box-shadow: var(--client-case-shadow);
}

.client-case-related h2,
.client-case-related .client-case-eyebrow {
  color: var(--client-case-cream);
}

.client-case-related .client-case-button {
  margin-top: 26px;
}

.client-case-links {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  padding: 22px;
  border: 1px solid rgba(255, 250, 240, .2);
  border-radius: 10px;
  background: rgba(255, 250, 240, .08);
}

.client-case-link {
  display: block;
  min-width: 0;
  padding: 11px 13px;
  border-radius: 11px;
  color: var(--client-case-cream) !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  transition: background .2s ease;
}

.client-case-link:hover,
.client-case-link:focus-visible {
  background: rgba(255, 250, 240, .13);
}

.client-case-dialog {
  width: min(1500px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 54px 24px 24px;
  border: 0;
  border-radius: 24px;
  overflow: auto;
  background: #13251c;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .45);
}

.client-case-dialog::backdrop {
  background: rgba(0, 15, 8, .78);
  backdrop-filter: blur(7px);
}

.client-case-dialog img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 126px);
  margin: auto;
  object-fit: contain;
}

.client-case-dialog-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  background: rgba(255,255,255,.12);
  font: 300 27px/34px Arial, sans-serif;
}

html.client-case-dialog-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .client-case-hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .client-case-hero-facts:has(> .client-case-hero-fact:nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-case-overview,
  .client-case-related {
    grid-template-columns: 1fr;
  }

  .client-case-status {
    position: static;
  }

  .client-case-solutions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .client-case {
    margin-top: -112px;
  }

  .client-case-shell {
    width: calc(100% - 16px);
  }

  .client-case-hero {
    min-height: 760px;
    padding: calc(112px + 108px) 0 42px;
  }

  .client-case-hero::before {
    background-image: linear-gradient(180deg, rgba(5, 38, 23, .5) 0%, rgba(5, 38, 23, .88) 52%, rgba(5, 38, 23, .98) 100%), var(--case-cover);
    background-position: center top;
  }

  .client-case-crumbs {
    margin-bottom: 24px;
    font-size: 12px;
  }

  .client-case-hero h1 {
    font-size: 32px;
    line-height: 1.02;
  }

  .client-case-lead {
    font-size: 17px;
    line-height: 1.52;
  }

  .client-case-hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
  }

  .client-case-hero-fact {
    padding: 13px 14px;
  }

  .client-case-hero-fact:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .client-case-section,
  .client-case-gallery-section {
    padding: 58px 0;
  }

  .client-case-copy,
  .client-case-status {
    padding: 22px;
    border-radius: 8px;
  }

  .client-case-list,
  .client-case-heading,
  .client-case-solutions {
    grid-template-columns: 1fr;
  }

  .client-case-heading {
    gap: 14px;
    margin-bottom: 24px;
  }

  .client-case-gallery {
    padding: 8px;
    border-radius: 10px;
  }

  .client-case-gallery-viewport {
    border-radius: 7px;
  }

  .client-case-slide img {
    height: auto;
    max-height: none;
  }

  .client-case-gallery-nav {
    right: 17px;
    left: 17px;
  }

  .client-case-gallery-arrow {
    width: 42px;
    height: 42px;
    font-size: 30px;
    line-height: 36px;
  }

  .client-case-thumbs {
    display: flex;
    gap: 7px;
    margin-top: 10px;
    padding-bottom: 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .client-case-thumb {
    flex: 0 0 88px;
    scroll-snap-align: start;
  }

  .client-case-pdf {
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
    padding: 24px 22px;
  }

  .client-case-related {
    gap: 34px;
    padding: 26px 22px;
    border-radius: 8px;
  }

  .client-case-links {
    padding: 18px;
  }

  .client-case-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 48px 8px 8px;
    border-radius: 16px;
  }

  .client-case-dialog img {
    max-height: calc(100dvh - 84px);
  }
}

@media (max-width: 360px) {
  .client-case-shell {
    width: calc(100% - 16px);
  }

  .client-case-hero h1 {
    font-size: 32px;
  }

  .client-case-badge {
    font-size: 10px;
  }

  .client-case-hero-facts {
    grid-template-columns: 1fr;
  }

  .client-case-hero-facts:has(> .client-case-hero-fact:nth-child(4):last-child) {
    grid-template-columns: 1fr;
  }

  .client-case-hero-fact:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .client-case h2 {
    font-size: 29px;
  }

  .client-case-copy,
  .client-case-status,
  .client-case-related {
    padding-inline: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .client-case-gallery-track,
  .client-case-gallery-arrow,
  .client-case-button,
  .client-case-gallery-dot {
    scroll-behavior: auto;
    transition: none;
  }
}

/* publishable-remaining-assets-20260820-v2: balanced five-fact tablet grid */
@media (min-width: 761px) and (max-width: 1100px) {
  .client-case-hero-facts:has(> .client-case-hero-fact:nth-child(5):last-child) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .client-case-hero-facts:has(> .client-case-hero-fact:nth-child(5):last-child) > .client-case-hero-fact {
    grid-column: span 2;
  }

  .client-case-hero-facts:has(> .client-case-hero-fact:nth-child(5):last-child) > .client-case-hero-fact:nth-child(n + 4) {
    grid-column: span 3;
  }
}
