/* EECG — Clients section (charcoal & ember, machined tiles) */
.eecg-clients {
  --ink: #1a1a1a;
  --ink-2: #2d2d2d;
  --ink-3: #4a4a4a;
  --ember: #e85d3a;
  position: relative;
  background: #ffffff;
  color: var(--ink);
  padding: 90px 0 70px;
  overflow: hidden;
  font-family: "DM Sans", system-ui, sans-serif;
}
.eecg-clients::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(232,93,58,.13) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(232,93,58,.13) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.eecg-clients__inner {
  position: relative;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}
.eecg-clients__head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(26,26,26,.12);
}
.eecg-clients__eyebrow {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ember);
  display: flex; align-items: center; gap: 10px;
}
.eecg-clients__eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--ember);
}
.eecg-clients__title {
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-weight: 500; letter-spacing: -.02em; line-height: 1.02;
  font-size: clamp(30px, 4.2vw, 54px);
  margin: 12px 0 0; color: var(--ink);
}
.eecg-clients__title em { font-style: normal; color: var(--ember); }
.eecg-clients__note {
  max-width: 330px; font-size: 14px; line-height: 1.6;
  color: rgba(26,26,26,.6); margin: 0;
}
.eecg-clients__note b { color: var(--ink); font-weight: 600; }

.eecg-clients__grid {
  margin-top: 2px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  border-left: 1px solid rgba(232,93,58,.22);
  border-top: 1px solid rgba(232,93,58,.22);
}
.eecg-client {
  position: relative;
  border-right: 1px solid rgba(232,93,58,.22);
  border-bottom: 1px solid rgba(232,93,58,.22);
  padding: 26px 20px 18px;
  min-height: 150px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: rgba(255,255,255,.6);
  opacity: 0; transform: translateY(14px);
  transition: background .35s ease, transform .5s cubic-bezier(.22,.7,.3,1), opacity .5s ease;
}
.eecg-client.is-in { opacity: 1; transform: none; }
.eecg-client:hover { background: rgba(232,93,58,.06); }
.eecg-client::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: var(--ember); transition: width .4s cubic-bezier(.22,.7,.3,1);
}
.eecg-client:hover::after { width: 100%; }
.eecg-client__logo {
  height: 66px; display: flex; align-items: center;
  background: #fff;
  border-radius: 3px; padding: 8px 12px; align-self: flex-start;
  max-width: 100%;
  transition: background .35s ease, transform .35s ease, box-shadow .35s ease;
}
.eecg-client__logo img {
  max-height: 50px; max-width: 100%; width: auto; object-fit: contain;
  filter: none; opacity: 1;
  transition: transform .35s ease;
}
.eecg-client:hover .eecg-client__logo {
  background: #fff; transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(26,26,26,.14);
}
.eecg-client:hover .eecg-client__logo img { transform: scale(1.04); }
.eecg-client__meta {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
}
.eecg-client__name { color: rgba(26,26,26,.8); font-weight: 600; }
.eecg-client__idx { color: rgba(26,26,26,.35); }
.eecg-client:hover .eecg-client__idx { color: var(--ember); }

/* marquee strip */
.eecg-clients__strip {
  margin-top: 46px; padding-top: 26px;
  border-top: 1px solid rgba(26,26,26,.12);
}
.eecg-clients__striplabel {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(26,26,26,.45); margin-bottom: 18px;
}
.eecg-marquee {
  position: relative; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.eecg-marquee__track {
  display: flex; align-items: center; gap: 64px; width: max-content;
  animation: eecg-marquee 38s linear infinite;
}
.eecg-marquee:hover .eecg-marquee__track { animation-play-state: paused; }
.eecg-marquee__track img {
  height: 40px; width: auto; object-fit: contain;
  background: #fff; border-radius: 3px; padding: 5px 9px;
  border: 1px solid rgba(232,93,58,.18);
  transition: transform .3s ease, box-shadow .3s ease;
}
.eecg-marquee__track img:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(26,26,26,.12); }
@keyframes eecg-marquee { to { transform: translateX(-50%); } }

@media (max-width: 640px) {
  .eecg-clients { padding: 64px 0 52px; }
  .eecg-clients__inner { width: calc(100% - 32px); }
  .eecg-clients__grid { grid-template-columns: repeat(2, 1fr); }
  .eecg-client { min-height: 128px; padding: 18px 14px 14px; }
  .eecg-client__logo { height: 42px; }
  .eecg-client__logo img { max-height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .eecg-marquee__track { animation: none; }
  .eecg-client { opacity: 1; transform: none; }
}
