/* ============================================================
   FACES.CSS — Faces of AcrobatAnt page template
   ============================================================ */

/* ── Hero — same treatment as the Insights page hero ────────
   (faces.css and blog.css load on different templates, so these
   rules are duplicated here rather than sharing the file — same
   pattern used for Pluralytics/Industry reusing the Our Model hero) */
.faces-hero.blog-hero {
  background: var(--color-dark);
  padding: clamp(64px, 8vw, 100px) 0 clamp(48px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}
.faces-hero .blog-hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.faces-hero .blog-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.faces-hero .blog-hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.4) 55%,
      rgba(0, 0, 0, 0.15) 100%
    ),
    linear-gradient(to bottom, transparent 20%, rgba(0, 0, 0, 0.55) 100%);
}
.faces-hero .container {
  position: relative;
  z-index: 1;
}
.faces-hero .blog-hero__eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
}
.faces-hero .blog-hero__headline {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  line-height: 0.92;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.faces-hero .blog-hero__sub {
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
  max-width: 640px;
}

/* ── Intro ───────────────────────────────────────────────── */
.faces-intro {
  background: var(--color-white);
}

/* ── Group heading ───────────────────────────────────────── */
.faces-group__heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  line-height: 1;
  color: var(--color-black);
  border-left: 4px solid var(--color-red);
  padding-left: 16px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

/* ── Leadership section ──────────────────────────────────── */
.faces-leadership {
  background: var(--color-off);
}

.faces-grid--leadership {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

/* ── All team grid ───────────────────────────────────────── */
.faces-dept {
  background: var(--color-white);
}
.faces-dept:nth-child(even) {
  background: var(--color-off);
}

.faces-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ── Face card — photo only; name/title reveal on hover ───── */
.face-card {
  display: block;
  position: relative;
  text-decoration: none;
}
.face-card__photo {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--color-line);
  border-radius: 4px;
}
.face-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}
.face-card:hover .face-card__photo img {
  transform: scale(1.08);
}
.face-card__photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--color-charcoal) 0%,
    var(--color-dark) 100%
  );
}

/* Hover-reveal overlay — name + title slide up over a dark scrim */
.face-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    transparent 75%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 4px;
}
.face-card:hover .face-card__overlay,
.face-card:focus-visible .face-card__overlay {
  opacity: 1;
}

.face-card__name {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.9vw, 36px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.2px;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 4px;
  transform: translateY(10px);
  transition: transform 0.35s ease 0.03s;
}
.face-card__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-red);
  transform: translateY(10px);
  transition: transform 0.35s ease 0.06s;
}
.face-card:hover .face-card__name,
.face-card:hover .face-card__title {
  transform: translateY(0);
}

/* Leadership cards — slightly larger type in the overlay */
.face-card--leader .face-card__name {
  font-size: clamp(20px, 2.2vw, 36px);
}
.face-card--leader .face-card__title {
  font-size: 12px;
}

/* ============================================================
   SINGLE ANT PROFILE (single-team_member.php)
   ============================================================ */
.ant-profile {
  padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 7vw, 96px);
  background: var(--color-white);
}

.ant-profile__back {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-mid);
  text-decoration: none;
  margin-bottom: 40px;
  transition: color 0.18s;
}
.ant-profile__back:hover {
  color: var(--color-red);
}

.ant-profile__intro {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
.ant-profile__photo {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 4px;
}
.ant-profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ant-profile__photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--color-charcoal) 0%,
    var(--color-dark) 100%
  );
}

.ant-profile__name {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 0.95;
  color: var(--color-black);
  margin-bottom: 8px;
}
.ant-profile__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 20px;
}
.ant-profile__contact {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.ant-profile__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.18s;
}
.ant-profile__phone:hover {
  color: var(--color-red);
}

.ant-profile__bio {
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 300;
  color: var(--color-text);
  line-height: 1.8;
  max-width: 700px;
  margin-bottom: 32px;
}

.ant-profile__lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  max-width: 820px;
  margin-bottom: 8px;
}
.ant-profile__qa-link {
  margin-top: 24px;
}
.ant-profile__list-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-black);
  margin-bottom: 12px;
}
.ant-profile__list ul {
  list-style: none;
}
.ant-profile__list li {
  font-size: 13.5px;
  font-weight: 300;
  color: var(--color-text);
  line-height: 1.9;
  padding-left: 14px;
  position: relative;
}
.ant-profile__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  background: var(--color-red);
  border-radius: 50%;
}

/* Fun facts */
.ant-profile__fun-facts {
  margin-top: clamp(56px, 6vw, 80px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--color-line);
}
.ant-profile__fun-facts-heading {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: var(--color-black);
  margin-bottom: 28px;
}
.ant-profile__fun-facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
}
.ant-fun-fact__q {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-red);
  margin-bottom: 6px;
}
.ant-fun-fact__a {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-black);
  line-height: 1.6;
}

.ant-profile__cta {
  margin-top: clamp(48px, 5vw, 64px);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .faces-grid--leadership {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .faces-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ant-profile__intro {
    grid-template-columns: 240px 1fr;
  }
}
@media (max-width: 768px) {
  .ant-profile__intro {
    grid-template-columns: 1fr;
  }
  .ant-profile__photo {
    max-width: 280px;
  }
  .ant-profile__lists {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ant-profile__fun-facts-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .faces-grid--leadership {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .faces-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .face-card__photo {
    aspect-ratio: 2/3;
  }
}
