/* ============================================================
   EECG — About Us page (white + orange grid bento system)
   ============================================================ */
.ab {
  --ink: #1a1a1a;
  --ink-2: #2d2d2d;
  --muted: #6b6b6b;
  --line: rgba(26, 26, 26, 0.12);
  --ember: #e85d3a;
  --ember-2: #ff5e14;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink-2);
  background: #fff;
  position: relative;
  overflow: hidden;
}

.ab *,
.ab *::before,
.ab *::after { box-sizing: border-box; }

.ab__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(232, 93, 58, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(232, 93, 58, 0.12) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(#000 0%, #000 70%, transparent 100%);
}

.ab__section {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 7vw, 6.5rem) clamp(1.15rem, 5vw, 4rem);
}
.ab__wrap { max-width: 1280px; margin: 0 auto; }

/* ---------- shared type ---------- */
.ab__eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
}
.ab__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ember);
}
.ab__h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.85rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 1rem;
}
.ab__lead {
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  max-width: 62ch;
}

/* ---------- HERO BENTO ---------- */
.ab-hero { padding-top: clamp(3.2rem, 8vw, 6rem); }
.ab-hero__bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.ab-tile {
  border: 1px solid var(--line);
  background: #fff;
  padding: clamp(1.2rem, 2.2vw, 1.9rem);
  position: relative;
  overflow: hidden;
}
.ab-tile--copy { grid-column: span 7; }
.ab-tile--media { grid-column: span 5; padding: 0; min-height: 320px; }
.ab-tile--metric { grid-column: span 3; }
.ab-tile--wide { grid-column: span 6; }

.ab-hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 1.1rem;
}
.ab-hero__title em {
  font-style: normal;
  color: var(--ember);
}
.ab-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}
.ab-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.95rem 1.5rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.ab-btn:hover { background: var(--ember); border-color: var(--ember); color: #fff; transform: translateY(-2px); }
.ab-btn--ghost { background: transparent; color: var(--ink); }
.ab-btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.ab-tile--media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 1.2s ease;
}
.ab-tile--media:hover img { transform: scale(1.07); }
.ab-tile__tag {
  position: absolute;
  left: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.55rem 0.9rem;
}

.ab-metric__num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.ab-tile--metric.is-ember { background: var(--ember); border-color: var(--ember); }
.ab-tile--metric.is-ember .ab-metric__num,
.ab-tile--metric.is-ember .ab-metric__label { color: #fff; }
.ab-metric__label {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- OVERVIEW ---------- */
.ab-over {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: start;
}
.ab-over p + p { margin-top: 1rem; }
.ab-facts {
  display: grid;
  gap: 12px;
}
.ab-fact {
  border: 1px solid var(--line);
  border-left: 3px solid var(--ember);
  padding: 1rem 1.15rem;
  background: #fff;
}
.ab-fact h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.35rem;
}
.ab-fact p { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--muted); }

/* ---------- VISION / MISSION ---------- */
.ab-vm { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ab-vm__card {
  border: 1px solid var(--line);
  padding: clamp(1.4rem, 2.6vw, 2.2rem);
  background: #fff;
  position: relative;
}
.ab-vm__card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.ab-vm__card:hover::after { transform: scaleX(1); }
.ab-vm__k {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
}
.ab-vm__card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--ink);
  margin: 0.7rem 0 0.7rem;
}
.ab-vm__card p { margin: 0; line-height: 1.65; color: var(--muted); }

/* ---------- MD MESSAGE ---------- */
.ab-md {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.4rem, 3.5vw, 3rem);
  align-items: stretch;
  border: 1px solid var(--line);
  background: #fff;
}
.ab-md__photo { position: relative; min-height: 340px; overflow: hidden; }
.ab-md__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-md__body { padding: clamp(1.5rem, 3vw, 2.8rem); }
.ab-md__quote {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.15rem, 2.1vw, 1.65rem);
  line-height: 1.4;
  color: var(--ink);
  margin: 0.8rem 0 1.2rem;
}
.ab-md__who {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink);
  font-weight: 600;
}
.ab-md__who span { display: block; font-family: 'DM Sans', sans-serif; font-weight: 400; color: var(--muted); font-size: 0.9rem; margin-top: 0.2rem; }

/* ---------- CAPABILITIES ---------- */
.ab-caps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 2.2rem;
}
.ab-cap {
  border: 1px solid var(--line);
  padding: 1.4rem;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.ab-cap:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 93, 58, 0.5);
  box-shadow: 0 18px 40px -26px rgba(232, 93, 58, 0.55);
}
.ab-cap__n {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--ember);
}
.ab-cap h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.06rem;
  color: var(--ink);
  margin: 0.6rem 0 0.5rem;
}
.ab-cap p { margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--muted); }

/* ---------- SECTORS ---------- */
.ab-sectors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 2.2rem;
}
.ab-sector {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
}
.ab-sector img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease, filter 0.5s ease;
  filter: saturate(0.85);
}
.ab-sector::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.82) 0%, rgba(26, 26, 26, 0.15) 60%, transparent 100%);
}
.ab-sector:hover img { transform: scale(1.08); filter: saturate(1.05); }
.ab-sector span {
  position: relative;
  z-index: 1;
  padding: 1rem 1.1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #fff;
}

/* ---------- PRINCIPALS ---------- */
.ab-brands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 2.2rem;
}
.ab-brand {
  border: 1px solid rgba(232, 93, 58, 0.28);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.3rem 1rem;
  text-decoration: none;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.ab-brand:hover {
  transform: translateY(-4px);
  border-color: var(--ember);
  box-shadow: 0 16px 34px -24px rgba(232, 93, 58, 0.6);
}
.ab-brand img { max-width: 118px; max-height: 46px; object-fit: contain; }
.ab-brand b {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}
.ab-brand small { font-size: 0.72rem; color: var(--muted); text-align: center; }

/* ---------- CLIENT MARQUEE ---------- */
.ab-marquee {
  margin-top: 2.2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1.1rem 0;
  background: #fff;
}
.ab-marquee__track {
  display: flex;
  gap: 2.6rem;
  width: max-content;
  animation: ab-scroll 38s linear infinite;
  align-items: center;
}
.ab-marquee:hover .ab-marquee__track { animation-play-state: paused; }
.ab-marquee__track img { height: 42px; width: auto; object-fit: contain; }
@keyframes ab-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- CTA ---------- */
.ab-cta {
  background: var(--ink);
  color: #fff;
  padding: clamp(2.4rem, 5vw, 4rem) clamp(1.2rem, 5vw, 4rem);
  position: relative;
  z-index: 1;
}
.ab-cta__wrap {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  align-items: center;
  justify-content: space-between;
}
.ab-cta h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  margin: 0;
  line-height: 1.1;
  color: #fff;
}
.ab-cta h3 span { color: var(--ember); }
.ab-cta .ab-btn { background: var(--ember); border-color: var(--ember); }
.ab-cta .ab-btn:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- reveal animation ---------- */
[data-ab-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-ab-reveal].is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .ab-tile--copy, .ab-tile--media, .ab-tile--wide { grid-column: span 12; }
  .ab-tile--metric { grid-column: span 6; }
  .ab-over, .ab-vm, .ab-md { grid-template-columns: 1fr; }
  .ab-md__photo { min-height: 260px; }
}
@media (max-width: 520px) {
  .ab-tile--metric { grid-column: span 6; }
  .ab-marquee__track img { height: 32px; }
}

/* ---------- services ---------- */
.ab-svcs {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(26, 26, 26, 0.12);
  border: 1px solid rgba(26, 26, 26, 0.12);
}
.ab-svc {
  background: #fff;
  padding: 2rem 1.6rem 2.1rem;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.ab-svc::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 3px; width: 0;
  background: var(--ember);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.ab-svc:hover { background: #fffaf7; transform: translateY(-4px); }
.ab-svc:hover::after { width: 100%; }
.ab-svc__n {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--ember);
}
.ab-svc h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.12rem;
  line-height: 1.25;
  margin: 0.7rem 0 0.6rem;
  color: var(--ink);
}
.ab-svc p { margin: 0; font-size: 0.94rem; line-height: 1.65; color: rgba(26, 26, 26, 0.68); }
@media (max-width: 991px) { .ab-svcs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ab-svcs { grid-template-columns: 1fr; } }
