/* V6 · Customer identities are public only in this logo band.
   Two equal-width groups guarantee a seamless right-to-left loop. */
.client-marquee-section {
  --client-card-width: 188px;
  --client-gap: 36px;
  --client-duration: 48s;
  /* Equal-visual-area logo sizing. --logo-unit = sqrt(target area);
     box width = unit * sqrt(ratio), then clamped by card width and --logo-max-h. */
  --logo-unit: 75px;
  --logo-max-h: 52px;
  padding: 24px 0;
  overflow: hidden;
  background: #f6f8f9;
}
.client-marquee-section .container.client-marquee-shell {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}
.client-marquee-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.client-marquee-section #clients-heading { margin: 0; color: #748791; font-size: 12px; line-height: 1.8; text-align: left; flex: none; }
.client-marquee-section #clients-heading strong { font-weight: 600; color: #486170; font-size: 14px; }
.client-motion-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 3px 9px; border: 1px solid #d7e2e7; border-radius: 99px; background: transparent; color: #536c78; font-size: 10px; line-height: 1.5; }
.client-motion-toggle:hover { background: #eaf0f3; border-color: #afc5ce; }
.client-motion-symbol { display: inline-flex; width: 10px; align-items: center; justify-content: center; }
.client-marquee { min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.client-track { display: flex; width: max-content; will-change: transform; animation: toads-client-loop var(--client-duration) linear infinite; }
.client-logo-group { list-style: none; padding: 0 var(--client-gap) 0 0; margin: 0; display: flex; gap: var(--client-gap); flex-shrink: 0; width: max-content; align-items: center; }
.client-logo-item { width: var(--client-card-width); height: 92px; flex: 0 0 var(--client-card-width); display: flex; align-items: center; justify-content: center; position: relative; }
.client-logo-frame { width: 100%; height: 78px; display: flex; align-items: center; justify-content: center; padding: 11px 6px; visibility: hidden; }
.has-logo .client-logo-frame { visibility: visible; }
/* Blend outside the masked/animated stacking contexts so white image
   backgrounds disappear against the section instead of remaining white tiles. */
.client-marquee { mix-blend-mode: multiply; }
.client-logo-frame, .client-logo-window, .client-logo-window img { background: transparent; }
.client-logo-frame { border: 0; box-shadow: none; }
.client-logo-dark { border-radius: 6px; background: #122d41; padding: 14px 16px; }
.client-logo-window {
  display: block; position: relative; overflow: hidden;
  /* width from equal-area rule, capped by available card width and by max height (h = width/ratio <= max-h). */
  width: min(100%, calc(var(--logo-unit, 75px) * var(--logo-ratio-sqrt, 2) * var(--logo-scale, 1)), calc(var(--logo-max-h, 52px) * var(--logo-ratio, 4)));
}
.client-logo-window img { width: 100%; height: 100%; object-fit: contain; display: block; }
.client-logo-window.is-cropped img { position: absolute; height: auto; max-width: none; }
.client-logo-fallback { text-align: center; color: #536b79; padding: 8px 4px; line-height: 1.5; position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; }
.client-logo-fallback>span { font-size: 16px; font-weight: 600; letter-spacing: -.4px; }
.client-logo-fallback small { font-size: 9px; font-weight: 400; color: #9aabb3; letter-spacing: .2px; margin-top: 6px; }
.client-marquee-section .clients-noscript { font-size: 12px; color: #657580; grid-column: 1 / -1; }
@keyframes toads-client-loop { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Longer anonymized labels should stay readable on narrow cards. */
.case-card h3 { overflow-wrap: break-word; }
.case-card .case-multi { font-size: 19px; line-height: 1.65; }
.case-card .case-multi span { font-size: 23px; }
.case-card a { font-size: 11px; gap: 12px; }
@media(max-width: 900px) {
  .client-marquee-section .container.client-marquee-shell { grid-template-columns: 140px minmax(0,1fr); gap: 20px; }
}
@media(max-width: 700px) {
  .client-marquee-section { --client-card-width: 162px; --client-gap: 28px; --client-duration: 45s; --logo-unit: 56px; --logo-max-h: 40px; padding: 20px 0 18px; }
  .client-marquee-section .container.client-marquee-shell { display: block; }
  .client-marquee-heading { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
  .client-marquee-section #clients-heading { font-size: 11px; }
  .client-marquee-section #clients-heading br { display: none; }
  .client-marquee-section #clients-heading strong { font-size: 11px; padding-left: 3px; }
  .client-logo-item { height: 76px; }
  .client-logo-frame { height: 64px; }
  .client-logo-fallback>span { font-size: 14px; }
  .case-card .case-multi { font-size: 17px; }
  .case-card .case-multi span { font-size: 21px; }
}
@media(max-width: 540px) {
  .case-grid { grid-template-columns: 1fr; }
  .case-card, .case-card+.case-card, .case-card:nth-child(even) { padding: 27px 0; border-left: 0; min-height: 0; }
  .case-card+.case-card { border-top: 1px solid var(--line); }
  .case-card h3 { font-size: 24px; min-height: 0; margin: 14px 0 0; }
  .case-card h3 span { font-size: 19px; }
  .case-card .case-multi { font-size: 21px; }
  .case-card .case-multi span { font-size: 24px; }
  .case-card>p { font-size: 12px; margin: 12px 0 18px; }
  .case-card a { font-size: 12px; }
  .case-category { font-size: 10px; }
}
/* With motion reduction all 9 entries are visible, never hidden off-screen. */
.reduced-client-motion .client-marquee { mask-image: none; -webkit-mask-image: none; }
.reduced-client-motion .client-track { animation: none; transform: none; width: 100%; will-change: auto; }
.reduced-client-motion .client-logo-group { flex-wrap: wrap; width: 100%; padding: 0; gap: 16px 24px; justify-content: center; }
.reduced-client-motion .client-logo-copy { display: none; }
.reduced-client-motion .client-logo-item { flex-basis: calc(33.333% - 16px); width: calc(33.333% - 16px); min-width: 128px; }
@media(prefers-reduced-motion: reduce) {
  .client-track { animation: none; transform: none; width: 100%; }
  .client-marquee { mask-image: none; -webkit-mask-image: none; }
  .client-logo-copy { display: none; }
  .client-logo-group { flex-wrap: wrap; width: 100%; padding: 0; gap: 16px 24px; justify-content: center; }
  .client-motion-toggle { display: none; }
}

/* Requested uniform red K Shipbuilding identity, without a surrounding tile. */
.client-logo-item[data-client=kshipbuilding] .client-logo-frame { background: transparent; border: 0; border-radius: 0; }
.client-logo-item[data-client=kshipbuilding] img { filter: brightness(0) saturate(100%) invert(15%) sepia(100%) saturate(6000%) hue-rotate(340deg) brightness(90%) contrast(115%); }

/* Normalize the light-gray source canvas before blending it away. */
.client-logo-item[data-client=gmarine] img { filter: brightness(1.067); }
