/* ==========================================================================
   The Firm — Automation Consulting
   Builds on the global design system defined in ac-homepage.css
   Aligned with homepage & capabilities design language
   ========================================================================== */

/* ==========================================================================
   SECTION LABEL — base + left-aligned variant
   (Duplicated from capabilities CSS so firm page is self-contained)
   ========================================================================== */
/* Section pill tags — matches homepage .ac-section-tag / .ac-badge */
.ac-section-label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #07A9D1;
  border: 1px solid rgba(7, 169, 209, 0.5);
  border-radius: 100px;
  padding: 8px 20px;
  background: rgba(7, 169, 209, 0.06);
  margin-bottom: 20px;
}

/* Kill WP block-gap on all children inside firm sections so pill→heading
   spacing is controlled solely by the label's margin-bottom: 20px */
.ac-firm-page.is-layout-constrained > *,
.ac-firm-page .is-layout-constrained > *,
.ac-firm-page .wp-block-heading,
.ac-firm-page .wp-block-paragraph {
  margin-block-start: 0 !important;
  margin-top: 0 !important;
}

/* Kill browser default margins & WP flex gap inside hero center-content
   and stats-reveal (children aren't direct constrained-layout children) */
.ac-firm-hero__center-content > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.ac-firm-hero__center-content .is-layout-flex {
  gap: 0 !important;
}
/* Re-apply controlled spacing: pill label → 20px → heading */
.ac-firm-hero__center-content .ac-firm-hero__badge-wrap {
  margin-bottom: 20px !important;
}
.ac-firm-hero__center-content .ac-firm-hero__title {
  margin-bottom: 0.75rem !important;
}
.ac-firm-hero__center-content .ac-firm-hero__body {
  margin-bottom: 1.5rem !important;
}

.ac-firm-stats-reveal > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
/* Re-apply controlled spacing: pill label → 20px → heading */
.ac-firm-stats-reveal > .ac-section-label {
  margin-bottom: 20px !important;
}

/* ==========================================================================
   SECTION 1 — HERO
   Centered layout matching homepage .ac-hero & capabilities .ac-cap-hero
   ========================================================================== */

/* Zoom to match homepage scale */
body.ac-firm-page {
  zoom: 0.75;
  overflow-x: clip;
}

.ac-firm-hero {
  position: relative;
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  justify-content: center !important;
  text-align: center;
  overflow: hidden !important;
  background-color: var(--ac-bg);
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
}

.admin-bar .ac-firm-hero {
  height: calc(100vh - 32px) !important;
  min-height: calc(100vh - 32px) !important;
  max-height: calc(100vh - 32px) !important;
}

.ac-firm-hero__center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* ---- Hero background image ---- */
.ac-firm-hero__bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.ac-firm-hero__bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 1;
  animation: ac-hero-bg-drift 25s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes ac-hero-bg-drift {
  0% {
    transform: scale(1.05) translateY(0);
  }
  100% {
    transform: scale(1.12) translateY(-15px);
  }
}

/* Gradient fade overlay — ensures text readability */
.ac-firm-hero__bg-fade {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, transparent 0%, var(--ac-bg) 100%),
    linear-gradient(180deg, rgba(1, 13, 18, 0.15) 0%, var(--ac-bg) 95%);
}

/* Content sits above background image */
.ac-firm-hero > .wp-block-group,
.ac-firm-hero > .wp-block-heading,
.ac-firm-hero > .wp-block-paragraph,
.ac-firm-hero__badge-wrap,
.ac-firm-hero__title,
.ac-firm-hero__body,
.ac-firm-hero__ctas {
  position: relative;
  z-index: 1;
}

.ac-firm-hero__badge-wrap {
  margin-bottom: 0 !important;
  position: relative;
  z-index: 2;
}

.ac-firm-hero__title {
  font-family: 'Inter', sans-serif;
  margin-bottom: 0.75rem !important;
  max-width: 900px;
  margin-left: auto !important;
  margin-right: auto !important;
  position: relative;
  z-index: 2;
}

/* Gradient text on all accent text across the Firm page */
.ac-firm-page .ac-text-accent,
.ac-firm-hero__title .ac-word--pitstop {
  background: linear-gradient(135deg, #07A9D1, #06CFC3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: inherit;
}

.ac-firm-hero__body {
  max-width: 560px;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 1.25rem !important;
  position: relative;
  z-index: 2;
}

.ac-firm-hero__ctas {
  gap: 1rem !important;
  margin-bottom: 0 !important;
  position: relative;
  z-index: 2;
}

.ac-firm-hero .ac-trust-carousel {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  z-index: 2;
  overflow: hidden;
  margin-top: 32px;
  margin-bottom: 0;
}

.ac-firm-hero .ac-hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  position: absolute !important;
  bottom: 32px !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  padding: 0 40px !important;
  box-sizing: border-box !important;
  margin-top: 0;
  z-index: 10;
}

.ac-firm-hero .ac-hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0;
  z-index: 10;
}

/* Mobile hero */
@media (max-width: 768px) {
  .ac-firm-hero {
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
  }

  .ac-firm-hero .ac-hero__bottom {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem !important;
    bottom: 20px !important;
  }

  .ac-firm-hero .ac-hero-scroll-indicator {
    display: none;
  }

  .ac-firm-hero .ac-trust-carousel {
    margin-top: 24px;
  }

  .ac-firm-hero__ctas {
    flex-direction: column;
    align-items: center;
  }
}


/* ==========================================================================
   SECTION 2 — WHAT WE DO (Services)
   Light-background card grid matching .ac-cap-core
   ========================================================================== */
.ac-firm-services {
  position: relative;
  overflow: visible;
}

.ac-firm-services__title {
  font-family: 'Inter', sans-serif;
  margin-bottom: 0.5rem !important;
  color: #FFFFFF !important;
}

/* =============================================
   NEW WHAT WE DO SECTION (Figma hi-fi)
   ============================================= */

.ac-what-we-do {
  padding: 6rem 2rem;
  color: #fff;
  overflow: visible;
}

.ac-what-we-do__inner {
  max-width: 1340px;
  margin: 0 auto;
}

.ac-what-we-do__header {
  text-align: center;
  margin-bottom: 4rem;
}

.ac-what-we-do__headline {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.11;
  color: #FFFFFF;
  margin: 1rem 0 1.25rem;
}

.ac-gradient-text {
  background: linear-gradient(90deg, #07A9D1, #06CFC3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ac-what-we-do__subtext {
  font-size: 18px;
  line-height: 1.7;
  color: #5A6B75;
  max-width: 620px;
  margin: 0 auto;
}

/* --- Scroll wrapper --- */
.ac-cards-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2rem 0 3rem;
  cursor: grab;
  scroll-snap-type: x mandatory;
}
.ac-cards-scroll-wrapper::-webkit-scrollbar {
  display: none;
}
.ac-cards-scroll-wrapper:active {
  cursor: grabbing;
}

.ac-cards-track {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 2rem;
  width: max-content;
}

/* --- Service card --- */
a.ac-service-card {
  text-decoration: none;
  color: #0D1B22;
}
.ac-service-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  padding: 0;
  width: 600px;
  min-width: 600px;
  max-width: 600px;
  display: flex;
  flex-direction: row;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
  flex-shrink: 0;
  overflow: hidden;
  scroll-snap-align: start;
}

.ac-service-card:hover {
  box-shadow: 0 8px 40px rgba(7,169,209,0.18);
  transform: translateY(-2px);
}

/* Card image */
.ac-service-card__img {
  width: 210px;
  min-width: 210px;
  overflow: hidden;
  flex-shrink: 0;
}
.ac-service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.ac-service-card:hover .ac-service-card__img img {
  transform: scale(1.06);
}
.ac-service-card--1 .ac-service-card__img img {
  transform: scale(1.18);
  transform-origin: center center;
  object-position: 60% center;
}
.ac-service-card--1:hover .ac-service-card__img img {
  transform: scale(1.24);
}

/* Card content area */
.ac-service-card__content {
  padding: 28px 30px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Card outcomes line */
.ac-service-card__outcomes {
  margin: 16px 0 0;
  padding: 12px 14px;
  background: rgba(7,169,209,0.07);
  border-left: 3px solid #07A9D1;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  line-height: 1.65;
  color: #4A5568;
  letter-spacing: 0.01em;
}
.ac-service-card__outcomes strong {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #07A9D1;
}

/* Card link — Explore → bottom right */
.ac-service-card__link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #07A9D1;
  transition: gap 0.3s ease, color 0.3s ease;
  text-align: right;
}
.ac-service-card:hover .ac-service-card__link {
  gap: 10px;
  color: #06CFC3;
}

/* No rotations for horizontal rectangular cards */

/* Icon */
.ac-service-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(7, 169, 209, 0.18);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.ac-service-card__icon .ac-firm-svc-svg {
  width: 36px;
  height: 36px;
}

/* SVG stroke-draw animation for new service cards */
.ac-service-card .ac-svg-draw {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.ac-service-card .ac-svg-dot {
  opacity: 0;
  transition: opacity 0.6s ease 0.6s;
}
.ac-service-card.ac-strokes-drawn .ac-svg-draw {
  stroke-dashoffset: 0;
}
.ac-service-card.ac-strokes-drawn .ac-svg-dot {
  opacity: 1;
}
.ac-service-card.ac-strokes-flowing .ac-svg-draw {
  stroke-dasharray: 8 12;
  stroke-dashoffset: 0;
  animation: ac-stroke-flow 3s linear infinite;
}
.ac-service-card--2.ac-strokes-flowing .ac-svg-draw { animation-duration: 3.5s; animation-direction: reverse; }
.ac-service-card--3.ac-strokes-flowing .ac-svg-draw { animation-duration: 4s; }
.ac-service-card--4.ac-strokes-flowing .ac-svg-draw { animation-duration: 3.2s; animation-direction: reverse; }
.ac-service-card--5.ac-strokes-flowing .ac-svg-draw { animation-duration: 3.8s; }
.ac-service-card--6.ac-strokes-flowing .ac-svg-draw { animation-duration: 4.2s; animation-direction: reverse; }

/* Staggered draw delays for new cards */
.ac-service-card--1.ac-strokes-drawn .ac-svg-draw { transition-delay: 0s; }
.ac-service-card--2.ac-strokes-drawn .ac-svg-draw { transition-delay: 0.1s; }
.ac-service-card--3.ac-strokes-drawn .ac-svg-draw { transition-delay: 0.2s; }
.ac-service-card--4.ac-strokes-drawn .ac-svg-draw { transition-delay: 0.3s; }
.ac-service-card--5.ac-strokes-drawn .ac-svg-draw { transition-delay: 0.4s; }
.ac-service-card--6.ac-strokes-drawn .ac-svg-draw { transition-delay: 0.5s; }
.ac-service-card--1.ac-strokes-drawn .ac-svg-dot { transition-delay: 0.6s; }
.ac-service-card--2.ac-strokes-drawn .ac-svg-dot { transition-delay: 0.7s; }
.ac-service-card--3.ac-strokes-drawn .ac-svg-dot { transition-delay: 0.8s; }
.ac-service-card--4.ac-strokes-drawn .ac-svg-dot { transition-delay: 0.9s; }
.ac-service-card--5.ac-strokes-drawn .ac-svg-dot { transition-delay: 1.0s; }
.ac-service-card--6.ac-strokes-drawn .ac-svg-dot { transition-delay: 1.1s; }

/* Title */
.ac-service-card__title {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  color: #0D1B22;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  white-space: nowrap;
}

/* Body */
.ac-service-card__body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: #4A5568;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .ac-what-we-do {
    padding: 4rem 1rem;
  }
  .ac-what-we-do__header {
    margin-bottom: 2.5rem;
  }
  .ac-service-card {
    flex-direction: column;
    width: 80vw;
    min-width: 80vw;
    max-width: 80vw;
  }
  .ac-service-card__img {
    width: 100%;
    min-width: unset;
    height: 150px;
  }
  .ac-service-card__content {
    padding: 20px 22px 24px;
  }
  .ac-cards-track {
    gap: 1.25rem;
    padding: 1rem 1rem;
  }
}

/* Scroll hint indicator */
.ac-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 2rem;
  margin-top: 12px;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.ac-scroll-hint--hidden {
  opacity: 0;
  pointer-events: none;
}

.ac-scroll-hint__text {
  font-family: 'Inter', sans-serif;
  font-size: var(--body-4-size);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(7, 169, 209, 0.6);
}

.ac-scroll-hint__arrow {
  animation: ac-scroll-nudge 1.5s ease-in-out infinite;
}

@keyframes ac-scroll-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

@media (max-width: 768px) {
  .ac-scroll-hint {
    padding: 0 1rem;
  }
}

/* More capabilities CTA */
.ac-what-we-do__footer {
  display: flex;
  justify-content: flex-end;
  padding: 0.5rem 2rem 0;
}

.ac-what-we-do__more-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #07A9D1;
  text-decoration: none;
  transition: gap 0.25s ease, color 0.25s ease;
}

.ac-what-we-do__more-cta:hover {
  gap: 10px;
  color: #06CFC3;
}

@media (max-width: 768px) {
  .ac-what-we-do__footer {
    padding: 0.5rem 1rem 0;
  }
}

/* =============================================
   END NEW WHAT WE DO SECTION
   ============================================= */

.ac-firm-services__intro {
  max-width: 620px;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 3rem !important;
}

/* --- Card grid (3-col matching .ac-cap-core__grid) --- */
.ac-firm-services__grid {
  display: flex;
  gap: 1.5rem;
  margin: 0 auto 3.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2rem 0;
}
.ac-firm-services__grid::-webkit-scrollbar {
  display: none;
}

/* Individual service card (matching .ac-cap-card) */
.ac-firm-svc-card {
  background: linear-gradient(160deg, rgba(7, 30, 38, 0.9) 0%, rgba(7, 169, 209, 0.15) 50%, rgba(7, 169, 209, 0.25) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  border: 1px solid rgba(7, 169, 209, 0.2);
  padding: 32px 24px 28px;
  min-width: 260px;
  max-width: 280px;
  min-height: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  transform: rotate(3deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.ac-firm-svc-card:hover {
  transform: rotate(0deg) translateY(-6px) !important;
  box-shadow: 0 16px 48px rgba(7, 169, 209, 0.25);
}
/* Card tilt — Figma-matched stagger */

.ac-firm-svc-card:hover {
  transform: rotate(0deg) translateY(-6px) !important;
}


.ac-firm-svc-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(7, 169, 209, 0.18);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: auto;
  padding-bottom: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}


.ac-firm-svc-card__icon .ac-firm-svc-svg {
  width: 28px;
  height: 28px;
}
.ac-firm-svc-card:hover .ac-firm-svc-card__icon {
  transform: scale(1.06);
  background: rgba(7, 169, 209, 0.14);
}

/* SVG stroke draw-in (same as capabilities bento) */
.ac-firm-svc-svg .ac-svg-draw {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ac-firm-svc-svg .ac-svg-dot {
  opacity: 0;
  transition: opacity 0.6s ease 0.6s;
}

.ac-firm-svc-card.ac-strokes-drawn .ac-svg-draw {
  stroke-dashoffset: 0;
}

/* After draw-in completes, switch to flowing dash animation */
.ac-firm-svc-card.ac-strokes-flowing .ac-svg-draw {
  stroke-dasharray: 8 12;
  stroke-dashoffset: 0;
  animation: ac-stroke-flow 3s linear infinite;
}

.ac-firm-svc-card:nth-child(2).ac-strokes-flowing .ac-svg-draw { animation-duration: 3.5s; animation-direction: reverse; }
.ac-firm-svc-card:nth-child(3).ac-strokes-flowing .ac-svg-draw { animation-duration: 4s; }
.ac-firm-svc-card:nth-child(4).ac-strokes-flowing .ac-svg-draw { animation-duration: 3.2s; animation-direction: reverse; }
.ac-firm-svc-card:nth-child(5).ac-strokes-flowing .ac-svg-draw { animation-duration: 3.8s; }
.ac-firm-svc-card:nth-child(6).ac-strokes-flowing .ac-svg-draw { animation-duration: 4.2s; animation-direction: reverse; }

@keyframes ac-stroke-flow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -40; }
}

.ac-firm-svc-card.ac-strokes-drawn .ac-svg-dot {
  opacity: 1;
}

/* Staggered card reveal */
.ac-firm-svc-card {
  opacity: 0;
  transform: rotate(3deg) translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease;
}

.ac-firm-svc-card.ac-revealed {
  opacity: 1;
  transform: rotate(3deg) translateY(0);
}

/* Staggered SVG draw delays per card */
.ac-firm-services__grid .ac-firm-svc-card:nth-child(1).ac-strokes-drawn .ac-svg-draw { transition-delay: 0s; }
.ac-firm-services__grid .ac-firm-svc-card:nth-child(2).ac-strokes-drawn .ac-svg-draw { transition-delay: 0.1s; }
.ac-firm-services__grid .ac-firm-svc-card:nth-child(3).ac-strokes-drawn .ac-svg-draw { transition-delay: 0.2s; }
.ac-firm-services__grid .ac-firm-svc-card:nth-child(4).ac-strokes-drawn .ac-svg-draw { transition-delay: 0.3s; }
.ac-firm-services__grid .ac-firm-svc-card:nth-child(5).ac-strokes-drawn .ac-svg-draw { transition-delay: 0.4s; }
.ac-firm-services__grid .ac-firm-svc-card:nth-child(6).ac-strokes-drawn .ac-svg-draw { transition-delay: 0.5s; }

/* Staggered dot fade delays per card */
.ac-firm-services__grid .ac-firm-svc-card:nth-child(1).ac-strokes-drawn .ac-svg-dot { transition-delay: 0.6s; }
.ac-firm-services__grid .ac-firm-svc-card:nth-child(2).ac-strokes-drawn .ac-svg-dot { transition-delay: 0.7s; }
.ac-firm-services__grid .ac-firm-svc-card:nth-child(3).ac-strokes-drawn .ac-svg-dot { transition-delay: 0.8s; }
.ac-firm-services__grid .ac-firm-svc-card:nth-child(4).ac-strokes-drawn .ac-svg-dot { transition-delay: 0.9s; }
.ac-firm-services__grid .ac-firm-svc-card:nth-child(5).ac-strokes-drawn .ac-svg-dot { transition-delay: 1.0s; }
.ac-firm-services__grid .ac-firm-svc-card:nth-child(6).ac-strokes-drawn .ac-svg-dot { transition-delay: 1.1s; }

.ac-firm-svc-card__title {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #FFFFFF;
  margin: 1.5rem 0 0.75rem;
}

.ac-firm-svc-card__desc {
  font-size: var(--body-4-size);
  line-height: 1.65;
  color: var(--ac-grey-text);
  font-weight: 400;
  margin: 0;
  flex: 1;
}

/* --- Do vs Don't comparison --- */
.ac-firm-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0 3rem;
  padding: 3rem 0;
  margin-bottom: 3.5rem;
  border-top: 1px solid rgba(7, 169, 209, 0.1);
  border-bottom: 1px solid rgba(7, 169, 209, 0.1);
}

.ac-firm-compare__divider {
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(7, 169, 209, 0.25), transparent);
}

.ac-firm-compare__heading {
  font-family: var(--font-primary);
  font-size: var(--body-5-size);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
}

.ac-firm-compare__col--do .ac-firm-compare__heading {
  color: #07A9D1;
}

.ac-firm-compare__col--dont .ac-firm-compare__heading {
  color: var(--ac-error);
}

.ac-firm-compare__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ac-firm-compare__item {
  font-family: var(--font-primary);
  font-size: var(--body-4-size);
  line-height: 1.65;
  padding: 0.65rem 0 0.65rem 2rem;
  position: relative;
}

.ac-firm-compare__item::before {
  position: absolute;
  left: 0;
  top: 0.65rem;
  font-size: var(--body-5-size);
  font-weight: 700;
  line-height: 1.65;
}

.ac-firm-compare__col--do .ac-firm-compare__item {
  color: rgba(255, 255, 255, 0.75);
}

.ac-firm-compare__col--do .ac-firm-compare__item::before {
  content: '\2713';
  color: #07A9D1;
}

.ac-firm-compare__col--dont .ac-firm-compare__item {
  color: rgba(255, 255, 255, 0.4);
  position: relative;
  width: fit-content;
}

.ac-firm-compare__col--dont .ac-firm-compare__item::before {
  content: '\2717';
  color: var(--ac-error);
}

/* Strikethrough line that draws across on animation */
.ac-firm-compare__col--dont .ac-firm-compare__item::after {
  content: '';
  position: absolute;
  left: 2rem;
  right: 0;
  top: 50%;
  height: 1.5px;
  background: rgba(224, 82, 82, 0.35);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ac-firm-compare__col--dont .ac-firm-compare__item.ac-struck::after {
  transform: scaleX(1);
}

/* Scroll animation states */
.ac-firm-compare__item.ac-animate {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ac-firm-compare__item.ac-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   ROOT CAUSES — White bg, 3-col Do / Logo / Don't (Figma hi-fi)
   ========================================================================== */

.ac-root-causes {
  background: #FFFFFF;
  position: relative;
  padding: 6rem 2rem;
  overflow: hidden;
}

/* Radial blue glow behind centre logo */
.ac-root-causes__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(7,169,209,0.12) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
  z-index: 0;
}

.ac-root-causes__inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Headline */
.ac-root-causes__headline {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 48px;
  line-height: 1.11;
  color: var(--ac-text-dark, #1a1a2e);
  max-width: 760px;
  margin: 0 auto 48px;
}

/* 3-column grid */
.ac-root-causes__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: start;
}

/* Column headings */
.ac-root-causes__col-heading {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 20px;
  color: var(--ac-text-dark, #1a1a2e);
  margin: 0 0 20px;
}

/* Centre logo column */
.ac-root-causes__logo-col {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  align-self: center;
  position: relative;
}

.ac-root-causes__logo {
  width: 160px;
  height: auto;
  opacity: 0;
  transform: translateY(-60px) scale(0.8) rotate(13.6deg);
  filter: drop-shadow(0px 4px 20px rgba(7,169,209,0.3));
  animation: none;
}

/* Shadow blob beneath logo — scales with float */
.ac-root-causes__logo-col::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) scale(0.6);
  width: 120px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(7,169,209,0.18) 0%, transparent 70%);
  opacity: 0;
  animation: none;
}

/* Entrance: fade in + drop down with bounce */
.ac-root-causes__logo.ac-logo-dropped {
  animation: ac-logo-enter 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             ac-logo-float 4s ease-in-out 1.2s infinite;
}

.ac-root-causes__logo-col.ac-logo-active::after {
  animation: ac-shadow-enter 0.9s ease forwards,
             ac-shadow-float 4s ease-in-out 1.2s infinite;
}

/* Entrance keyframes */
@keyframes ac-logo-enter {
  0% {
    opacity: 0;
    transform: translateY(-60px) scale(0.8) rotate(13.6deg);
  }
  70% {
    opacity: 1;
    transform: translateY(6px) scale(1.03) rotate(13.6deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(13.6deg);
  }
}

@keyframes ac-shadow-enter {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.4);
  }
  70% {
    opacity: 0.9;
    transform: translateX(-50%) scale(1.1);
  }
  100% {
    opacity: 0.7;
    transform: translateX(-50%) scale(0.85);
  }
}

/* Continuous float — logo rises and falls gently */
@keyframes ac-logo-float {
  0%, 100% {
    transform: translateY(0) scale(1) rotate(13.6deg);
    filter: drop-shadow(0px 8px 24px rgba(7,169,209,0.35))
            drop-shadow(0px 0px 50px rgba(6,207,195,0.15));
  }
  50% {
    transform: translateY(-14px) scale(1.015) rotate(13.6deg);
    filter: drop-shadow(0px 20px 40px rgba(7,169,209,0.2))
            drop-shadow(0px 0px 60px rgba(6,207,195,0.25));
  }
}

/* Shadow expands & fades as logo rises, contracts when it falls */
@keyframes ac-shadow-float {
  0%, 100% {
    opacity: 0.7;
    transform: translateX(-50%) scale(0.85);
  }
  50% {
    opacity: 0.35;
    transform: translateX(-50%) scale(1.2);
  }
}

/* Card base */
.ac-root-causes__card {
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
}

.ac-root-causes__card:last-child {
  margin-bottom: 0;
}

/* DO cards */
.ac-root-causes__card--do {
  background: #FFFFFF;
  border: 1px solid rgba(7,169,209,0.15);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.ac-root-causes__card--do .ac-root-causes__card-text {
  font-weight: 700;
  font-size: var(--body-4-size);
  line-height: 1.5;
  color: var(--ac-text-dark, #1a1a2e);
  margin: 0;
}

/* DON'T cards */
.ac-root-causes__card--dont {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.ac-root-causes__card--dont .ac-root-causes__card-text {
  font-weight: 400;
  font-size: var(--body-4-size);
  line-height: 1.5;
  color: var(--ac-grey-text, #5A6B75);
  margin: 0;
}

/* Icon circles */
.ac-root-causes__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.ac-root-causes__icon--check {
  background: linear-gradient(135deg, #07A9D1, #06CFC3);
}

.ac-root-causes__icon--x {
  background: #C4C4C4;
}

/* Responsive */
@media (max-width: 768px) {
  .ac-root-causes {
    padding: 4rem 1.25rem;
  }
  .ac-root-causes__headline {
    font-size: 32px;
    margin-bottom: 32px;
  }
  .ac-root-causes__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .ac-root-causes__logo-col {
    order: -1;
  }
  .ac-root-causes__logo {
    width: 100px;
  }
}

/* --- Full-width callout (large quote text) --- */
.ac-firm-callout {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.ac-firm-callout__text {
  font-family: 'Inter', sans-serif;
  font-size: clamp(21px, 2.5vw, 28px);
  font-weight: 600;
  font-style: normal;
  line-height: 1.5;
  color: #1A1A1A;
  margin: 0;
}

/* ==========================================================================
   SECTION 3 — OUR APPROACH
   Zigzag process steps with dashed center line
   ========================================================================== */
.ac-firm-approach {
  position: relative;
  overflow: hidden;
  background: var(--ac-bg);
}

/* Decorations container for triangle + glow */
.ac-firm-approach__decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 60px;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.ac-firm-approach__decorations::before {
  content: '';
  position: absolute;
  top: 40px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle,
    rgba(7, 169, 209, 0.18) 0%,
    rgba(6, 207, 195, 0.06) 50%,
    transparent 75%);
  filter: blur(50px);
  border-radius: 50%;
}

.ac-firm-approach__triangle {
  position: relative;
  width: 320px;
  height: 320px;
  opacity: 0.5;
}

.ac-firm-approach__triangle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: ac-rotate-slow 70s linear infinite;
}

.ac-firm-approach__header {
  position: relative;
  z-index: 2;
  margin-bottom: 3rem;
}

.ac-firm-approach__title {
  font-family: 'Inter', sans-serif;
  margin-bottom: 0.75rem !important;
}

.ac-firm-approach__intro {
  max-width: 650px;
}

/* Horizontal timeline */
.ac-firm-timeline {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Connecting track line */
.ac-firm-timeline__track {
  position: absolute;
  top: 26px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(7, 169, 209, 0.3) 10%,
    rgba(7, 169, 209, 0.3) 90%,
    transparent 100%
  );
}

.ac-firm-timeline__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.ac-firm-timeline__step {
  text-align: center;
  position: relative;
}

.ac-firm-timeline__num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ac-bg);
  border: 2px solid var(--ac-primary);
  color: var(--ac-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: var(--body-5-size);
  font-weight: 800;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 2;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.ac-firm-timeline__step:hover .ac-firm-timeline__num {
  background: var(--ac-primary);
  color: #fff;
  box-shadow: 0 0 24px rgba(7, 169, 209, 0.4);
}

.ac-firm-timeline__title {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.5rem;
}

.ac-firm-timeline__desc {
  font-size: 1rem;
  line-height: 1.7;
  color: #c8c8c8;
  margin: 0;
}

/* Footer text below process steps */
.ac-firm-approach__footer {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  margin: 3.5rem auto 0;
}

.ac-firm-approach__footer p {
  font-size: var(--body-4-size);
  line-height: 1.75;
  color: var(--ac-text-muted);
}

.ac-firm-approach__footer p strong {
  font-weight: 700;
  color: var(--ac-light-bg);
}

/* ==========================================================================
   OUR APPROACH SECTION (Figma hi-fi)
   ========================================================================== */

.ac-approach {
  background: #040f1a !important;
  color: #ffffff;
  padding: 100px 0 0;
  overflow: visible !important;
}

.ac-how-we-build {
  position: relative;
  overflow: hidden !important;
  background: #ffffff !important;
  color: #040f1a !important;
  padding-top: 16px !important;
  --glow-x: 50%;
  --glow-y: 50%;
}

/* The moving glow blob */
.ac-how-we-build::before {
  content: '';
  position: absolute;
  width: 70%;
  aspect-ratio: 2 / 1;
  top: 0;
  left: 0;
  transform: translate(calc(var(--glow-x) - 50%), calc(var(--glow-y) - 50%));
  background-image: url('/wp-content/themes/ac-theme/assets/images/how-we-build-glow.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
  opacity: 1;
  transition: transform 0.12s ease-out;
  pointer-events: none;
  z-index: 0;
}

/* White vignette that fades the glow at the edges */
.ac-how-we-build::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(255,255,255,0.85) 70%, #ffffff 100%);
  pointer-events: none;
  z-index: 1;
}

/* Keep text above both layers */
.ac-how-we-build > * {
  position: relative;
  z-index: 2;
}

/* Reset the h2 wrapper — children control their own sizes */
.ac-how-we-build .ac-approach__quote-text {
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
  line-height: 1 !important;
  margin: 0 0 24px !important;
}

/* "How We Build Is" — matches .ac-root-causes__headline */
.ac-how-we-build-subtitle {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.11;
  color: #1a1a2e;
  margin-bottom: 8px;
}

/* "DIFFERENT" — font-size set by JS to fill container width */
.ac-how-we-build-word {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  line-height: 0.9;
  white-space: nowrap;
  color: #1a1a2e;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

/* First paragraph: half size, black, no gradient */
.ac-how-we-build .ac-approach__quote-accent:first-of-type {
  font-size: 24px !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #000000 !important;
  background-clip: unset !important;
  color: #000000 !important;
}

.ac-approach__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --- HEADER --- */
.ac-approach__header {
  text-align: center;
  margin-bottom: 80px;
}

.ac-approach__headline {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.11;
  color: #ffffff;
  margin: 16px 0 20px;
  letter-spacing: -0.02em;
}

.ac-approach__subtext {
  font-family: 'Inter', sans-serif;
  font-size: var(--body-4-size);
  line-height: 1.65;
  color: var(--ac-grey-text, #5A6B75);
  max-width: 580px;
  margin: 0 auto;
}

/* --- STEPS CONTAINER — ascending stagger (01 lowest, 04 highest) --- */
.ac-approach__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 0;
  position: relative;
  padding-bottom: 0;
}

/* --- INDIVIDUAL STEPS — staggered heights ascending left→right --- */
.ac-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  padding: 0 12px;
}

.ac-step--1 { padding-top: 200px; }
.ac-step--2 { padding-top: 120px; }
.ac-step--3 { padding-top: 60px; }
.ac-step--4 { padding-top: 0; }

/* --- STEP BADGE (number circle + label) --- */
.ac-step__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(7, 169, 209, 0.12);
  border: 1px solid rgba(7, 169, 209, 0.4);
  border-radius: 100px;
  padding: 6px 14px 6px 8px;
  position: relative;
  z-index: 2;
  white-space: nowrap;
  margin-bottom: 12px;
}

/* Short connector line from badge down to body text */
.ac-step__badge::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 22px;
  width: 1px;
  height: 12px;
  background: rgba(7, 169, 209, 0.5);
}

.ac-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #07A9D1, #06CFC3);
  border-radius: 50%;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.2px #ffffff;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.ac-step__label {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.01em;
}

/* --- VERTICAL LINE below body — extends to wave --- */
.ac-step__line {
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(7, 169, 209, 0.5) 0%,
    rgba(7, 169, 209, 0.15) 100%
  );
  margin-left: 22px;
  flex: 1;
  min-height: 60px;
  margin-bottom: -20px;
  position: relative;
  z-index: 1;
}

/* --- STEP BODY TEXT --- */
.ac-step__body {
  font-family: 'Inter', sans-serif;
  font-size: var(--body-4-size);
  line-height: 1.6;
  color: var(--ac-grey-text, #5A6B75);
  font-weight: 400;
  margin: 0 0 12px;
  max-width: 196px;
}

/* --- WAVE GRAPHIC (Figma export) — full-bleed --- */
.ac-approach__wave {
  width: 120vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: -20px 0 0;
  height: auto;
}

.ac-approach__wave img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- CLOSING QUOTE --- */
.ac-approach__quote {
  text-align: left;
  padding: 80px 40px 100px;
  max-width: 960px;
  margin: 0 auto;
}

.ac-approach__quote-text {
  font-family: 'Inter', sans-serif;
  font-size: 48px !important;
  font-weight: 400 !important;
  font-style: normal;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

.ac-approach__quote-accent {
  font-family: 'Inter', sans-serif;
  font-size: 48px !important;
  font-weight: 400 !important;
  font-style: normal;
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #07A9D1, #06CFC3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

/* --- Approach section animations --- */
.ac-approach-anim {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.ac-approach-anim.ac-approach-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Typewriter quote */
.ac-typing-active::after {
  content: '|';
  animation: ac-blink-cursor 0.7s step-end infinite;
  color: #07A9D1;
  font-weight: 300;
}
@keyframes ac-blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .ac-approach {
  overflow: visible !important; padding: 60px 0 0; }
  .ac-approach__inner { padding: 0 20px; }
  .ac-approach__header { margin-bottom: 48px; }
  .ac-approach__headline { font-size: 32px; }

  .ac-approach__steps {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .ac-step--1,
  .ac-step--2,
  .ac-step--3,
  .ac-step--4 {
    padding-top: 0;
    margin-bottom: 32px;
  }

  .ac-step--1 .ac-step__line,
  .ac-step--2 .ac-step__line,
  .ac-step--3 .ac-step__line,
  .ac-step--4 .ac-step__line {
    height: 30px;
  }

  .ac-step__body { max-width: 100%; }

  .ac-approach__wave {
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    margin: -10px 0 0;
  }

  .ac-approach__quote { padding: 40px 20px 60px; }
  .ac-approach__quote-text,
  .ac-approach__quote-accent { font-size: 26px; }
}

/* ==========================================================================
   SECTION 4 — DIFFERENTIATOR / WHY US
   Stats strip + quote + two-column body
   ========================================================================== */
.ac-firm-diff {
  position: relative;
  overflow: hidden;
  background: var(--ac-bg-alt);
}

/* Gradient separator at top */
.ac-firm-diff::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(7, 169, 209, 0.15), transparent);
}

.ac-firm-diff__title {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.11;
  text-align: center;
  margin-bottom: 1.5rem !important;
}

/* Stats strip (like .ac-cap-stats__strip) */
.ac-firm-stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 3rem 0;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(7, 169, 209, 0.08);
}

.ac-firm-stat {
  text-align: center;
  min-width: 140px;
}

.ac-firm-stat__number {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 700;
  color: var(--ac-primary);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.ac-firm-stat__label {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ac-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- Car reveal wrapper — positions car over stats ---- */
.ac-firm-stats-reveal {
  position: relative;
  overflow: hidden;
}

/* Title sits above the car */
.ac-firm-stats-reveal .ac-firm-diff__title {
  position: relative;
  z-index: 3;
}

/* Stats sit above the car so numbers are always visible */
.ac-firm-stats-reveal .ac-firm-stats {
  position: relative;
  z-index: 3;
}

/* Car layer — decorative background behind title & stats (matches landing hero style) */
.ac-firm-car-reveal {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  will-change: transform;
}

.ac-firm-car-reveal__img {
  width: 100%;
  height: auto;
  object-fit: contain;
  position: absolute;
  top: -10%;
  left: 0;
  transform: translateY(-50%);
  opacity: 0.25;
  pointer-events: none;
  filter: drop-shadow(0 0 40px rgba(7, 169, 209, 0.2));
  clip-path: inset(0 0 12% 0);
  animation: ac-firm-car-drift 8s ease-in-out infinite;
}

@keyframes ac-firm-car-drift {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.25; }
  50% { transform: translateY(-8px) scale(1.015); opacity: 0.35; }
}

/* Exhaust particle trail — appears as car drives off to the right */
.ac-firm-car-reveal__exhaust {
  position: absolute;
  left: -20%;
  top: 40%;
  width: 300px;
  height: 60px;
  background: linear-gradient(270deg, rgba(7, 169, 209, 0.1), transparent);
  border-radius: 50%;
  opacity: 0;
  filter: blur(16px);
  transition: opacity 0.5s ease;
}

.ac-firm-car-reveal--driving .ac-firm-car-reveal__exhaust {
  opacity: 1;
}

/* Sub-heading */
.ac-firm-diff__sub {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #c8c8c8;
  max-width: 840px;
  margin: 0 auto 3rem;
  text-align: center;
  background: transparent;
  position: relative;
  z-index: 3;
}

.ac-firm-diff__sub--lead {
  font-size: 1.05rem;
  font-weight: 400;
  color: #c8c8c8;
  line-height: 1.7;
  max-width: 680px;
  white-space: nowrap;
}

/* Hero-sized subtext below stats */
.ac-firm-diff__sub--hero {
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.5;
  color: #c8c8c8;
  max-width: 100%;
  white-space: nowrap;
}

/* Typewriter effect */
.ac-firm-diff__typewriter {
  font-size: 1.35rem;
  line-height: 1.4;
  min-height: 3.5em;
  border-right: 2px solid #07A9D1;
  animation: ac-typewriter-blink 0.7s step-end infinite;
  display: block;
  text-align: center;
}

.ac-firm-diff__typewriter.ac-typewriter-done {
  border-right-color: transparent;
  animation: none;
}

@keyframes ac-typewriter-blink {
  0%, 100% { border-right-color: #07A9D1; }
  50% { border-right-color: transparent; }
}

/* Two-column body text */
.ac-firm-diff__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto 4rem;
}

.ac-firm-diff__col p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ac-text-muted);
  margin: 0;
}

/* Quote block */
.ac-firm-diff__quote {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.ac-firm-diff__quote-text {
  font-family: 'Inter', sans-serif;
  font-size: clamp(21px, 2.5vw, 28px);
  font-style: normal;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ac-text-light);
  margin: 0;
}

/* ==========================================================================
   SECTION 5 — OUR VALUES
   Light-background section with two-column layout
   White cards with cyan icon tiles
   ========================================================================== */
.ac-firm-values {
  position: relative;
  overflow: hidden;
}

.ac-firm-values__inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}

.ac-firm-values__heading {
  font-family: 'Inter', sans-serif;
  margin-bottom: 1rem !important;
}

.ac-firm-values__left-body {
  max-width: 380px;
}

.ac-firm-values__list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.ac-firm-value {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: #FFFFFF;
  border-radius: var(--ac-radius-lg);
  border: 1px solid rgba(7, 169, 209, 0.12);
  padding: 1.75rem;
  transition: transform var(--ac-transition), box-shadow var(--ac-transition);
}

.ac-firm-value:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(7, 169, 209, 0.1);
}

/* Icon tile (matches .ac-cap-card__icon language) */
.ac-firm-value__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: rgba(7, 169, 209, 0.08);
  border: 1px solid rgba(7, 169, 209, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ac-firm-value__icon svg {
  width: 26px;
  height: 26px;
  color: var(--ac-primary);
}

.ac-firm-value__name {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 0.45rem;
}

.ac-firm-value__desc {
  font-size: 1rem;
  line-height: 1.7;
  color: #5A6B75;
  margin: 0;
}

/* ==========================================================================
   SECTION 6 — OUR TEAM
   Office cards + role grid + culture quote
   ========================================================================== */
.ac-firm-team {
  position: relative;
  overflow: visible;
  background: var(--ac-bg);
}

.ac-firm-team::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(7, 169, 209, 0.12), transparent);
}

.ac-firm-team__intro {
  margin-bottom: 1rem;
  text-align: center;
}

.ac-firm-team__title {
  font-family: 'Inter', sans-serif;
  margin-bottom: 1rem !important;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.ac-firm-team__body {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.ac-firm-team__tagline {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ac-primary);
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Leadership grid — Accenture-inspired portrait cards */
.ac-firm-leadership {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.ac-firm-leader {
  background: var(--ac-dark-card);
  border-radius: var(--ac-radius-lg);
  border: 1px solid var(--ac-dark-card-border);
  overflow: hidden;
  transition: transform var(--ac-transition), box-shadow var(--ac-transition), border-color var(--ac-transition);
}

.ac-firm-leader:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(7, 169, 209, 0.15);
  border-color: rgba(7, 169, 209, 0.3);
}

.ac-firm-leader__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(7, 169, 209, 0.08) 0%, rgba(6, 207, 195, 0.04) 100%);
}

.ac-firm-leader__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.ac-firm-leader:hover .ac-firm-leader__img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.ac-firm-leader__info {
  padding: 1.25rem 1.5rem 1.5rem;
}

.ac-firm-leader__name {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ac-text-light);
  margin: 0 0 0.3rem;
  line-height: 1.3;
}

.ac-firm-leader__title {
  font-family: var(--font-primary);
  font-size: var(--body-5-size);
  font-weight: 500;
  color: var(--ac-primary);
  margin: 0;
  letter-spacing: 0.3px;
}

/* Role card stagger delays */

/* ==========================================================================
   OUR STRUCTURE SECTION (new card design)
   ========================================================================== */

.ac-structure {
  background: #010D12;
  padding: 40px 0 60px;
}

.ac-structure__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.ac-structure__header {
  text-align: center;
  margin-bottom: 48px;
}

.ac-structure__tagline {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--body-4-size);
  line-height: 1.65;
  margin: 40px auto 0;
  white-space: nowrap;
}

.ac-structure__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.ac-structure-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: #060e1a;
  border: 1px solid rgba(7, 169, 209, 0.12);
  transition: border-color 0.3s ease, transform 0.3s ease;
  cursor: default;
}

.ac-structure-card:hover {
  border-color: rgba(7, 169, 209, 0.35);
  transform: translateY(-4px);
}

.ac-structure-card--active {
  border-color: rgba(7, 169, 209, 0.25);
}

.ac-structure-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #061422;
}

.ac-structure-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}

.ac-structure-card:hover .ac-structure-card__image img {
  transform: scale(1.03);
}

.ac-structure-card__image-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(
    to bottom,
    rgba(6, 14, 26, 0) 0%,
    rgba(6, 14, 26, 0.85) 70%,
    rgba(6, 14, 26, 1) 100%
  );
  pointer-events: none;
}

.ac-structure-card__content {
  padding: 24px 28px 32px;
  flex: 1;
}

.ac-structure-card__title {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.ac-structure-card__location {
  font-family: 'Inter', sans-serif;
  font-size: var(--body-4-size);
  font-weight: 600;
  line-height: 1.3;
  background: linear-gradient(135deg, #07A9D1, #06CFC3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 16px;
}

.ac-structure-card__body {
  font-family: 'Inter', sans-serif;
  font-size: var(--body-4-size);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ac-grey-text, #5A6B75);
  margin: 0;
}

/* SVG map inside card image area */
.ac-structure-card__map {
  background: #040c14;
}

.ac-structure-card__svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 900px) {
  .ac-structure__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

/* Office cards — dark card treatment with map visuals */
.ac-firm-offices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.ac-firm-office {
  background: var(--ac-dark-card);
  border-radius: var(--ac-radius-lg);
  border: 1px solid var(--ac-dark-card-border);
  overflow: hidden;
  transition: transform var(--ac-transition), box-shadow var(--ac-transition), border-color var(--ac-transition);
}

.ac-firm-office:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(7, 169, 209, 0.12);
  border-color: rgba(7, 169, 209, 0.25);
}

.ac-firm-office__map {
  position: relative;
  width: 100%;
  height: 160px;
  background: rgba(7, 169, 209, 0.02);
  border-bottom: 1px solid var(--ac-dark-card-border);
  overflow: hidden;
}

.ac-firm-office__svg {
  width: 100%;
  height: 100%;
}

.ac-firm-office__content {
  padding: 1.5rem 1.75rem 1.75rem;
}

.ac-firm-office__name {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ac-text-light);
  margin: 0 0 0.3rem;
}

.ac-firm-office__loc {
  font-family: var(--font-primary);
  font-size: var(--body-5-size);
  font-weight: 600;
  color: var(--ac-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 0.75rem;
}

.ac-firm-office__desc {
  font-size: 1rem;
  line-height: 1.7;
  color: #c8c8c8;
  margin: 0;
}

/* Role grid — with team member avatars */
.ac-firm-roles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.ac-firm-role {
  background: var(--ac-dark-card);
  border-radius: var(--ac-radius-lg);
  border: 1px solid rgba(7, 169, 209, 0.08);
  border-left: 3px solid var(--ac-primary);
  padding: 1.75rem;
  transition: transform var(--ac-transition), box-shadow var(--ac-transition), border-color var(--ac-transition);
}

.ac-firm-role:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(7, 169, 209, 0.12);
  border-color: rgba(7, 169, 209, 0.2);
}

.ac-firm-role__header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(7, 169, 209, 0.08);
}

.ac-firm-role__name {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ac-primary);
  margin: 0 0 0.35rem;
}

.ac-firm-role__desc {
  font-size: var(--body-5-size);
  line-height: 1.55;
  color: var(--ac-text-muted);
  margin: 0;
}

/* Team members within role cards */
.ac-firm-role__members {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.ac-firm-role__member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 80px;
}

.ac-firm-role__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(7, 169, 209, 0.2);
  background: linear-gradient(135deg, rgba(7, 169, 209, 0.08) 0%, rgba(6, 207, 195, 0.04) 100%);
  transition: border-color var(--ac-transition), box-shadow var(--ac-transition);
}

.ac-firm-role:hover .ac-firm-role__avatar {
  border-color: rgba(7, 169, 209, 0.4);
  box-shadow: 0 0 12px rgba(7, 169, 209, 0.15);
}

.ac-firm-role__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

.ac-firm-role:hover .ac-firm-role__avatar img {
  filter: grayscale(0%);
}

.ac-firm-role__member-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ac-text-light);
  text-align: center;
  line-height: 1.3;
}

.ac-firm-role__member-title {
  font-family: var(--font-primary);
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(7, 169, 209, 0.7);
  text-align: center;
  line-height: 1.3;
}

/* ==========================================================================
   INFINITY VISUALIZATION — interactive figure-8 team display
   ========================================================================== */

/* Container */
.ac-infinity-container {
  position: relative;
  aspect-ratio: 5 / 2;
  max-width: 900px;
  margin: 6rem auto 4rem;
  opacity: 0;
  transform: scale(0.92) translateY(30px);
  filter: blur(4px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s ease;
}

.ac-infinity-container.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
}

/* Mobius image wrapper */
.ac-infinity-img-wrap {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.ac-infinity-img {
  position: absolute;
  width: 115%;
  height: 142%;
  left: -3%;
  top: -10%;
  object-fit: fill;
}

/* Glow layer — disabled */
.ac-infinity-glow {
  display: none;
}

/* Centre headline over infinity */
.ac-infinity-headline {
  position: relative;
  z-index: 10;
  margin: -2rem auto 3rem;
  max-width: 100%;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 48px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
  color: #fff;
  white-space: nowrap;
}

/* Glow draw trace */
.ac-infinity-trace {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.ac-infinity-trace__path {
  stroke-dasharray: 280;
  stroke-dashoffset: 0;
  animation: ac-trace-draw 5s linear infinite;
  opacity: 0.85;
}

@keyframes ac-trace-draw {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -2240; }
}

.ac-infinity-trace__dot {
  opacity: 0.9;
}

/* Hotspots — absolute positioned */
.ac-infinity-hotspot {
  position: absolute;
  z-index: 10;
  cursor: pointer;
  padding: 0.75rem 1rem;
  white-space: nowrap;
  text-align: center;
  background: rgba(4, 15, 26, 0.85);
  border: 1px solid rgba(7, 169, 209, 0.15);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.4s ease, border-color 0.4s ease, padding 0.4s ease;
  overflow: visible;
}

.ac-infinity-hotspot:hover {
  background: rgba(4, 15, 26, 0.95);
  border-color: rgba(7, 169, 209, 0.35);
  padding: 1rem 1.25rem;
}

/* Top hotspots: positioned at the dot, expand sideways to avoid headline overlap */
.ac-infinity-hotspot--top {
  transform: translate(-50%, 0%);
  margin-top: 0;
}

.ac-infinity-hotspot--top .ac-infinity-hotspot__members {
  margin-top: 0.5rem;
}

/* Left top hotspot (Executive Leadership) — expand to the left */
.ac-infinity-hotspot--top[data-division="executive"] {
  transform: translate(-100%, -50%);
  margin-left: -1rem;
}

/* Right top hotspot (Delivery Management) — expand to the right */
.ac-infinity-hotspot--top[data-division="delivery"] {
  transform: translate(0%, -50%);
  margin-left: 1rem;
}

/* Bottom hotspots: expand UPWARD so they don't clip at section bottom */
.ac-infinity-hotspot--bottom {
  transform: translate(-50%, 0%);
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column-reverse;
}

.ac-infinity-hotspot--bottom .ac-infinity-hotspot__members {
  margin-bottom: 0.5rem;
  order: -1;
}

/* Label */
.ac-infinity-hotspot__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ac-primary);
  margin: 0 0 0.2rem;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.ac-infinity-hotspot__desc {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--ac-text-muted);
  margin: 0 0 0.3rem;
  white-space: nowrap;
}

/* Member reveal panel — inside the same box */
.ac-infinity-hotspot__members {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition:
    opacity 0.4s ease,
    max-height 0.4s ease;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.ac-infinity-hotspot:hover .ac-infinity-hotspot__members,
.ac-infinity-hotspot--active .ac-infinity-hotspot__members {
  opacity: 1;
  max-height: 300px;
  overflow: visible;
}

/* Avatars inside infinity hotspots */
.ac-infinity-hotspot .ac-firm-role__avatar {
  width: 56px;
  height: 56px;
}

.ac-infinity-hotspot .ac-firm-role__avatar img {
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

.ac-infinity-hotspot:hover .ac-firm-role__avatar img,
.ac-infinity-hotspot--active .ac-firm-role__avatar img {
  filter: grayscale(0%);
}

/* Shuffle stability for department labels */
.ac-infinity-hotspot__label {
  display: inline-block;
  min-width: 100%;
}

/* Culture headline & quote */
.ac-firm-culture__headline {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 0.75rem;
}

.ac-firm-culture__quote {
  font-family: 'Inter', sans-serif;
  font-size: clamp(21px, 2.5vw, 29px);
  font-weight: 600;
  font-style: italic;
  color: var(--ac-text-light);
  line-height: 1.5;
  margin: 0;
}

.ac-firm-culture__quote .ac-text-accent {
  font-weight: 800;
  font-style: italic;
}

/* Culture gallery — CSS infinite marquee */
.ac-culture-gallery {
  overflow: hidden;
  margin: 0.5rem 0 1.5rem;
}

.ac-culture-gallery__track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: ac-culture-scroll 35s linear infinite;
  will-change: transform;
}

.ac-culture-gallery:hover .ac-culture-gallery__track {
  animation-play-state: paused;
}

@keyframes ac-culture-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ac-culture-gallery__card {
  flex-shrink: 0;
  width: 480px;
}

.ac-culture-gallery__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--ac-radius-lg, 16px);
}

.ac-culture-gallery__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(40%);
  transition: filter 0.5s ease, transform 0.5s ease;
}

.ac-culture-gallery__card:hover .ac-culture-gallery__img img {
  filter: grayscale(0%);
  transform: scale(1.04);
}

/* Culture body text */
.ac-firm-culture__body {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.ac-firm-culture__body p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #c8c8c8;
  margin: 0 0 1rem;
}

.ac-firm-culture__body p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   SECTION — OPEN ROLES (light bg, matches Values)
   ========================================================================== */
.ac-firm-careers {
  position: relative;
}

.ac-firm-careers__header {
  margin-bottom: 3rem;
}

.ac-firm-careers__heading {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.11;
  color: #1A1A1A;
  margin: 0 0 0.75rem;
}

.ac-firm-careers__subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #5A6B75;
  margin: 0;
  max-width: 520px;
}

/* Role cards */
.ac-firm-careers__roles {
  display: flex;
  flex-direction: column;
}

.ac-careers-role {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--ac-grey-light);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.3s ease;
}

.ac-careers-role:first-child {
  border-top: 1px solid var(--ac-grey-light);
}

.ac-careers-role:hover {
  padding-left: 0.75rem;
}

.ac-careers-role__info {
  flex: 1;
  min-width: 0;
}

.ac-careers-role__title {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1A1A1A;
  margin: 0 0 0.2rem;
  transition: color 0.3s ease;
}

.ac-careers-role:hover .ac-careers-role__title {
  color: #07A9D1;
}

.ac-careers-role__dept {
  font-size: var(--body-5-size);
  color: #5A6B75;
}

.ac-careers-role__meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
}

.ac-careers-role__location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--body-5-size);
  color: #5A6B75;
  white-space: nowrap;
}

.ac-careers-role__location svg {
  flex-shrink: 0;
  opacity: 0.5;
}

.ac-careers-role__type {
  font-size: 0.75rem;
  font-weight: 600;
  color: #07A9D1;
  background: rgba(7, 169, 209, 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  white-space: nowrap;
}

.ac-careers-role__arrow {
  flex-shrink: 0;
  color: var(--ac-grey-border);
  transition: color 0.3s ease, transform 0.3s ease;
}

.ac-careers-role:hover .ac-careers-role__arrow {
  color: #07A9D1;
  transform: translateX(4px);
}

/* Email notification CTA */
.ac-careers-notify {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 3.5rem;
  padding: 2.25rem 2.5rem;
  background: #fff;
  border: 1px solid var(--ac-grey-light);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ac-careers-notify__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 169, 209, 0.08);
  border-radius: 12px;
  color: #07A9D1;
}

.ac-careers-notify__content {
  flex: 1;
  min-width: 0;
}

.ac-careers-notify__title {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 0.25rem;
}

.ac-careers-notify__desc {
  font-size: var(--body-5-size);
  line-height: 1.5;
  color: #5A6B75;
  margin: 0;
}

.ac-careers-notify__form {
  flex-shrink: 0;
}

.ac-careers-notify__input-wrap {
  display: flex;
  border-radius: 100px;
  overflow: hidden;
  border: 1px solid var(--ac-grey-light);
  background: #FAFFFF;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ac-careers-notify__input-wrap:focus-within {
  border-color: #07A9D1;
  box-shadow: 0 0 0 3px rgba(7, 169, 209, 0.1);
}

.ac-careers-notify__input {
  background: transparent;
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: var(--body-4-size);
  color: #1A1A1A;
  outline: none;
  min-width: 220px;
  font-family: 'Inter', sans-serif;
}

.ac-careers-notify__input::placeholder {
  color: var(--ac-grey-muted);
}

.ac-careers-notify__btn {
  background: #07A9D1;
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 0.75rem 1.5rem;
  font-size: var(--body-5-size);
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s ease;
}

.ac-careers-notify__btn:hover {
  background: var(--ac-primary);
}

/* Responsive — Careers */
@media (max-width: 768px) {
  .ac-careers-role {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1.25rem 0;
  }

  .ac-careers-role__meta {
    width: 100%;
    gap: 0.75rem;
  }

  .ac-careers-role__arrow {
    display: none;
  }

  .ac-careers-role:hover {
    padding-left: 0;
  }

  .ac-careers-notify {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.75rem 1.5rem;
    text-align: center;
  }

  .ac-careers-notify__input-wrap {
    flex-direction: column;
    border-radius: 12px;
    width: 100%;
  }

  .ac-careers-notify__input {
    min-width: 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--ac-grey-light);
  }

  .ac-careers-notify__btn {
    border-radius: 0 0 11px 11px;
    padding: 0.85rem;
    width: 100%;
  }
}

/* ==========================================================================
   SECTION 7 — CTA
   Matches homepage CTA: gradient bg, glows, elegant heading
   ========================================================================== */
.ac-firm-cta {
  position: relative;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(9, 62, 76, 1) 0%, rgba(4, 32, 40, 1) 42%, rgba(1, 13, 18, 1) 85%);
  border-radius: 40px 40px 0 0;
}

.ac-firm-cta__decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.ac-firm-cta__title {
  font-family: 'Inter', sans-serif;
  position: relative;
  z-index: 2;
  margin-bottom: 1.25rem !important;
}

.ac-firm-cta__body {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.ac-firm-cta__buttons {
  gap: 1rem !important;
  position: relative;
  z-index: 2;
  margin-top: 1.5rem !important;
}

/* ==========================================================================
   ENHANCED SCROLL ANIMATIONS — premium motion design
   Expo-out easing, blur transitions, staggered reveals, clip-path reveals
   ========================================================================== */

/* Override base fade-in on firm pages: match homepage */
.ac-firm-page .ac-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s ease-out;
}

.ac-firm-page .ac-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section labels: letter-spacing expand */
.ac-firm-page .ac-section-label.ac-animate {
  opacity: 0;
  letter-spacing: 10px;
  filter: blur(2px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    letter-spacing 1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.6s ease;
}

.ac-firm-page .ac-section-label.ac-animate.visible {
  opacity: 1;
  letter-spacing: 0.19em;
  filter: blur(0);
}

/* Service cards: scale-up from below */
.ac-firm-page .ac-firm-svc-card.ac-animate {
  opacity: 0;
  transform: translateY(40px) scale(0.94);
  filter: blur(3px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.5s ease,
    box-shadow var(--ac-transition);
}

.ac-firm-page .ac-firm-svc-card.ac-animate.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.ac-firm-page .ac-firm-svc-card.ac-animate.visible:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(7, 169, 209, 0.12);
}

/* Compare items: staggered slide-up */
.ac-firm-page .ac-firm-compare__item.ac-animate {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ac-firm-page .ac-firm-compare__item.ac-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stat items: scale-up */
.ac-firm-page .ac-firm-stat.ac-animate {
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.ac-firm-page .ac-firm-stat.ac-animate.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Diff subheading: fade + blur up (reveals first) */
.ac-firm-page .ac-firm-diff__sub.ac-animate {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(2px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.6s ease;
}

.ac-firm-page .ac-firm-diff__sub.ac-animate.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Diff columns: slide from opposite sides */
.ac-firm-page .ac-firm-diff__col.ac-animate {
  opacity: 0;
  filter: blur(2px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.7s ease;
}

.ac-firm-page .ac-firm-diff__col.ac-animate:first-child {
  transform: translateX(-60px);
}

.ac-firm-page .ac-firm-diff__col.ac-animate:last-child {
  transform: translateX(60px);
}

.ac-firm-page .ac-firm-diff__col.ac-animate.visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

/* Diff quote: scale + fade + blur (reveals last) */
.ac-firm-page .ac-firm-diff__quote.ac-animate {
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  filter: blur(3px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s ease;
}

.ac-firm-page .ac-firm-diff__quote.ac-animate.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Culture headline: fade up */
.ac-firm-culture__headline.ac-animate {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ac-firm-culture__headline.ac-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Culture text columns: slide from sides */
.ac-firm-page .ac-firm-culture__body.ac-animate {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.ac-firm-page .ac-firm-culture__body.ac-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Office cards: scale from center */
.ac-firm-page .ac-firm-office.ac-animate {
  opacity: 0;
  transform: scale(0.88) translateY(20px);
  filter: blur(4px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.6s ease,
    box-shadow var(--ac-transition),
    border-color var(--ac-transition);
}

.ac-firm-page .ac-firm-office.ac-animate.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
}

.ac-firm-page .ac-firm-office.ac-animate.visible:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(7, 169, 209, 0.12);
  border-color: rgba(7, 169, 209, 0.25);
}

/* Role cards: slide from alternating sides */
.ac-firm-page .ac-firm-role.ac-animate {
  opacity: 0;
  filter: blur(3px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.6s ease,
    box-shadow var(--ac-transition),
    border-color var(--ac-transition);
}

.ac-firm-page .ac-firm-role.ac-animate:nth-child(odd) {
  transform: translateX(-50px);
}

.ac-firm-page .ac-firm-role.ac-animate:nth-child(even) {
  transform: translateX(50px);
}

.ac-firm-page .ac-firm-role.ac-animate.visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.ac-firm-page .ac-firm-role.ac-animate.visible:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(7, 169, 209, 0.12);
  border-color: rgba(7, 169, 209, 0.2);
}

/* Value cards: slide from right */
.ac-firm-page .ac-firm-value.ac-animate {
  opacity: 0;
  transform: translateX(50px);
  filter: blur(2px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.6s ease,
    box-shadow var(--ac-transition);
}

.ac-firm-page .ac-firm-value.ac-animate.visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.ac-firm-page .ac-firm-value.ac-animate.visible:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(7, 169, 209, 0.1);
}

/* ==========================================================================
   STAGGER DELAYS — scroll reveal animations
   ========================================================================== */

/* Service card stagger */
.ac-firm-services__grid .ac-firm-svc-card:nth-child(2) { transition-delay: 0.08s; }
.ac-firm-services__grid .ac-firm-svc-card:nth-child(3) { transition-delay: 0.16s; }
.ac-firm-services__grid .ac-firm-svc-card:nth-child(4) { transition-delay: 0.24s; }
.ac-firm-services__grid .ac-firm-svc-card:nth-child(5) { transition-delay: 0.32s; }
.ac-firm-services__grid .ac-firm-svc-card:nth-child(6) { transition-delay: 0.40s; }

/* Values stagger */
.ac-firm-values__list .ac-firm-value.ac-fade-in:nth-child(2) { transition-delay: 0.12s; }
.ac-firm-values__list .ac-firm-value.ac-fade-in:nth-child(3) { transition-delay: 0.24s; }

/* Office cards stagger */
.ac-firm-offices .ac-firm-office.ac-fade-in:nth-child(2) { transition-delay: 0.1s; }
.ac-firm-offices .ac-firm-office.ac-fade-in:nth-child(3) { transition-delay: 0.2s; }

/* Role cards stagger */
.ac-firm-roles .ac-firm-role.ac-fade-in:nth-child(2) { transition-delay: 0.1s; }
.ac-firm-roles .ac-firm-role.ac-fade-in:nth-child(3) { transition-delay: 0.2s; }
.ac-firm-roles .ac-firm-role.ac-fade-in:nth-child(4) { transition-delay: 0.3s; }

/* Stats counter animation */
.ac-firm-stat__number[data-target] {
  transition: color 0.3s ease;
}

/* ==========================================================================
   RESPONSIVE — Tablet (1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  /* Services scroll — no change needed at tablet */

  /* Approach decorations fade */
  .ac-firm-approach__decorations {
    opacity: 0.3;
  }

  .ac-firm-diff__columns {
    gap: 2rem;
  }

  .ac-firm-values__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .ac-firm-offices {
    grid-template-columns: 1fr 1fr;
  }

  .ac-firm-culture__body {
    max-width: 100%;
  }
}

/* ==========================================================================
   RESPONSIVE — Small tablet / large phone (768px)
   ========================================================================== */
@media (max-width: 768px) {
  .ac-firm-hero {
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    padding-top: 7rem !important;
    padding-bottom: 3rem !important;
  }

  .ac-firm-hero .ac-trust-carousel {
    bottom: 70px !important;
  }

  .ac-firm-hero .ac-hero__bottom {
    bottom: 16px !important;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem !important;
  }


  .ac-firm-hero__ctas {
    flex-direction: column;
    align-items: center;
  }

  .ac-firm-car-reveal__img {
    width: 95%;
  }

  .ac-firm-services__grid {
    gap: 1rem;
  }
  .ac-firm-svc-card {
    min-width: 240px;
    max-width: 260px;
    min-height: 270px;
  }

  .ac-firm-compare {
    grid-template-columns: 1fr;
    gap: 2rem 0;
  }

  .ac-firm-compare__divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(7, 169, 209, 0.25), transparent);
  }

  .ac-firm-timeline__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }

  .ac-firm-timeline__track {
    display: none;
  }

  .ac-firm-approach__decorations {
    display: none;
  }

  .ac-culture-gallery__card {
    width: 320px;
  }

  .ac-firm-diff__columns {
    grid-template-columns: 1fr;
  }

  .ac-firm-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .ac-firm-offices {
    grid-template-columns: 1fr;
  }

  .ac-firm-roles {
    grid-template-columns: 1fr;
  }

  /* Infinity: hide SVG, convert to vertical card list */
  .ac-infinity-container {
    aspect-ratio: auto;
    max-width: 100%;
    margin: 6rem auto 4rem;
    opacity: 1;
    transform: none;
    filter: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .ac-infinity-container.visible {
    transform: none;
  }

  .ac-infinity-svg,
  .ac-infinity-trace {
    display: none;
  }

  .ac-infinity-hotspot {
    position: static;
    transform: none;
    text-align: left;
    background: var(--ac-dark-card);
    border-radius: var(--ac-radius-lg, 16px);
    border: 1px solid rgba(7, 169, 209, 0.08);
    border-left: 3px solid var(--ac-primary);
    padding: 1.75rem;
    margin-top: 0;
    cursor: default;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .ac-infinity-hotspot__desc {
    white-space: normal;
    max-width: 100%;
  }

  .ac-infinity-hotspot__members {
    opacity: 1;
    max-height: none;
    overflow: visible;
  }

  .ac-infinity-hotspot .ac-firm-role__members {
    justify-content: flex-start;
  }

}

/* ==========================================================================
   RESPONSIVE — Phone (480px)
   ========================================================================== */
@media (max-width: 480px) {
  .ac-firm-cta {
    border-radius: 24px 24px 0 0;
  }

  .ac-firm-timeline__steps {
    grid-template-columns: 1fr;
  }

  .ac-infinity-hotspot {
    padding: 1.25rem;
  }

  .ac-infinity-hotspot .ac-firm-role__avatar {
    width: 56px;
    height: 56px;
  }

  .ac-firm-role {
    padding: 1.25rem;
  }

  .ac-firm-role__avatar {
    width: 72px;
    height: 72px;
  }

  .ac-firm-office__content {
    padding: 1.25rem;
  }

  .ac-firm-office__map {
    height: 130px;
  }

  .ac-firm-value {
    padding: 1.25rem;
    flex-direction: column;
    gap: 1rem;
  }
}


/* Culture section — white background */
.ac-culture-section {
  background: #ffffff;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.ac-culture-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(7,169,209,0.10) 0%, rgba(255,255,255,0) 90%);
  pointer-events: none;
  z-index: 0;
}

.ac-culture-section__inner {
  position: relative;
  z-index: 1;
}

.ac-culture-section__inner {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

.ac-culture-section .ac-firm-culture__quote {
  color: #1a1a2e;
}

.ac-culture-section .ac-firm-culture__body p {
  color: #5A6B75;
  font-style: italic;
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .ac-firm-approach__triangle img {
    animation: none;
  }

  .ac-firm-hero__bg-image img {
    animation: none;
    opacity: 0.35;
  }

  .ac-inf-line,
  .ac-inf-dot {
    animation: none !important;
  }

  .ac-infinity-trace__path,
  .ac-infinity-trace__dot animateMotion {
    animation: none !important;
  }

  .ac-inf-line--1,
  .ac-inf-line--2,
  .ac-inf-line--3,
  .ac-inf-line--4,
  .ac-inf-line--5 {
    stroke-dasharray: none;
    opacity: 0.5;
  }

  .ac-infinity-container {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .ac-culture-gallery__track {
    animation: none;
  }

  .ac-firm-car-reveal {
    display: none;
  }

  .ac-firm-page .ac-fade-in,
  .ac-firm-page .ac-animate,
  .ac-firm-page .ac-section-label.ac-animate {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    transition: none !important;
  }
}

/* Trust carousel: normal flow below CTAs (match Capabilities) */
.ac-firm-hero .ac-trust-carousel{position:relative!important;top:auto!important;bottom:auto!important;left:auto!important;right:auto!important;width:100%!important;margin-top:3rem!important;margin-bottom:1.5rem!important;opacity:1!important}
.ac-firm-hero .ac-trust-carousel__label{display:block;font-family:'Inter',sans-serif;font-size:0.7rem!important;font-weight:500;letter-spacing:0.13em!important;text-transform:uppercase;color:rgba(255,255,255,0.35)!important;margin-bottom:1rem;text-align:center}
