/* ==========================================================================
   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)
   ========================================================================== */
.ac-section-label {
  display: block;
  text-align: center;
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ac-primary);
  margin-bottom: 0.75rem;
}

.ac-section-label--left {
  text-align: left;
}

/* ==========================================================================
   SECTION 1 — HERO
   Centered layout matching homepage .ac-hero & capabilities .ac-cap-hero
   ========================================================================== */
.ac-firm-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background: var(--ac-bg);
}

/* Decorations container (particles + glow + flow lines injected by JS) */
.ac-firm-hero__decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Content sits above decorations */
.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: 1.75rem !important;
}

.ac-firm-hero__title {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  margin-bottom: 1.25rem !important;
  max-width: 820px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.ac-firm-hero__body {
  max-width: 600px;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 2rem !important;
}

.ac-firm-hero__ctas {
  gap: 1rem !important;
  margin-bottom: 2.5rem !important;
}

/* Animated tech/pit crew SVG visual */
.ac-firm-hero__visual {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Flow decoration lines — reuse homepage classes so they inherit
   the ac-float / ac-float-alt CSS animations from ac-homepage.css */

/* Hero particle dots — floating (mirrors .ac-hero__decorations circle) */
.ac-firm-hero__decorations circle {
  animation: ac-particle-float 8s ease-in-out infinite;
}

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

.ac-firm-services__title {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  margin-bottom: 0.5rem !important;
}

.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: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto 3.5rem;
}

/* Individual service card (matching .ac-cap-card) */
.ac-firm-svc-card {
  background: #FFFFFF;
  border-radius: var(--ac-radius-lg);
  border: 1px solid rgba(7, 169, 209, 0.12);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--ac-transition), box-shadow var(--ac-transition);
}

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

.ac-firm-svc-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(7, 169, 209, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.ac-firm-svc-card__title {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 0.75rem;
}

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

/* --- What We Don't Do row --- */
.ac-firm-dont {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  justify-content: center;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(7, 169, 209, 0.1);
  border-bottom: 1px solid rgba(7, 169, 209, 0.1);
  margin-bottom: 3.5rem;
}

.ac-firm-dont__item {
  font-family: 'Manrope', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(90, 107, 117, 0.55);
  text-decoration: line-through;
  text-decoration-color: rgba(90, 107, 117, 0.35);
}

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

.ac-firm-callout__text {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.65;
  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: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  margin-bottom: 0.75rem !important;
}

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

/* Zigzag container */
.ac-firm-steps {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  z-index: 2;
  padding: 2rem 0;
}

/* Dashed center line */
.ac-firm-steps::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(
    180deg,
    var(--ac-primary) 0px,
    var(--ac-primary) 8px,
    transparent 8px,
    transparent 16px
  );
  opacity: 0.35;
  transform: translateX(-50%);
  clip-path: inset(0 0 var(--firm-line-undrawn, 100%) 0);
  transition: clip-path 0.1s linear;
}

/* Step row */
.ac-firm-step {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

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

.ac-firm-step--left {
  justify-content: flex-start;
  padding-right: 52%;
}

.ac-firm-step--right {
  justify-content: flex-end;
  padding-left: 52%;
}

/* Step number circle */
.ac-firm-step__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ac-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 20px rgba(7, 169, 209, 0.3);
}

/* Step card — white bg like homepage process cards */
.ac-firm-step__card {
  flex: 1;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.ac-firm-step__title {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ac-primary);
  margin: 0 0 0.5rem;
}

.ac-firm-step__desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #5A6B75;
  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: 0.95rem;
  line-height: 1.75;
  color: var(--ac-text-muted);
}

/* ==========================================================================
   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: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  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: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--ac-primary);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.ac-firm-stat__label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ac-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Sub-heading */
.ac-firm-diff__sub {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  font-size: 1.15rem;
  line-height: 1.65;
  color: #e0e0e0;
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

/* 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: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.65;
  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: 'Source Sans 3', 'Source Sans Pro', 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: 0.92rem;
  line-height: 1.7;
  color: #5A6B75;
  margin: 0;
}

/* ==========================================================================
   SECTION 6 — OUR TEAM
   Office cards + role grid + culture quote
   ========================================================================== */
.ac-firm-team {
  position: relative;
  overflow: hidden;
  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: 4rem;
}

.ac-firm-team__title {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  margin-bottom: 1rem !important;
  max-width: 600px;
}

.ac-firm-team__body {
  max-width: 580px;
}

.ac-firm-team__tagline {
  font-family: 'Source Sans 3', 'Source Sans Pro', 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: 'Manrope', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ac-primary);
  margin: 0;
  letter-spacing: 0.3px;
}

/* Role card stagger delays */

/* 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: 'Manrope', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ac-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 0.75rem;
}

.ac-firm-office__desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ac-text-muted);
  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: 0.88rem;
  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: 'Manrope', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(7, 169, 209, 0.7);
  text-align: center;
  line-height: 1.3;
}

/* Culture hero image */
.ac-firm-culture__hero {
  margin-bottom: 3rem;
  border-radius: var(--ac-radius-lg);
  overflow: hidden;
  position: relative;
}

.ac-firm-culture__hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(2, 15, 21, 0.6) 100%);
  pointer-events: none;
}

.ac-firm-culture__hero-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(100%);
  transition: transform 0.6s ease, filter 0.6s ease;
}

.ac-firm-culture__hero:hover .ac-firm-culture__hero-img {
  transform: scale(1.03);
  filter: grayscale(0%);
}

/* Culture section */
.ac-firm-culture {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}

.ac-firm-culture__left p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ac-text-muted);
  margin: 0 0 1.5rem;
}

.ac-firm-culture__quote {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ac-text-light);
  line-height: 1.55;
  margin: 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--ac-primary);
}

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

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

/* ==========================================================================
   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: 'Source Sans 3', 'Source Sans Pro', 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: bigger travel + blur + expo-out */
.ac-firm-page .ac-fade-in {
  opacity: 0;
  transform: translateY(50px);
  filter: blur(3px);
  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 cubic-bezier(0.16, 1, 0.3, 1);
}

.ac-firm-page .ac-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(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: 3px;
  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);
}

/* Don't items: staggered slide-up */
.ac-firm-page .ac-firm-dont__item.ac-animate {
  opacity: 0;
  transform: translateY(15px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ac-firm-page .ac-firm-dont__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 columns: slide from opposite sides */
.ac-firm-page .ac-firm-diff__col.ac-animate {
  opacity: 0;
  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-diff__col.ac-animate:first-child {
  transform: translateX(-50px);
}

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

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

/* Culture hero: clip-path reveal */
.ac-firm-page .ac-firm-culture__hero.ac-animate {
  clip-path: inset(8% 5% 8% 5%);
  opacity: 0;
  transition:
    clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ac-firm-page .ac-firm-culture__hero.ac-animate.visible {
  clip-path: inset(0% 0% 0% 0%);
  opacity: 1;
}

/* Culture text columns: slide from sides */
.ac-firm-page .ac-firm-culture__left.ac-animate {
  opacity: 0;
  transform: translateX(-40px);
  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__right.ac-animate {
  opacity: 0;
  transform: translateX(40px);
  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__left.ac-animate.visible,
.ac-firm-page .ac-firm-culture__right.ac-animate.visible {
  opacity: 1;
  transform: translateX(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 grid to 2 columns */
  .ac-firm-services__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* 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 {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

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

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

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

  .ac-firm-dont {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
  }

  .ac-firm-step--left,
  .ac-firm-step--right {
    padding-left: 0;
    padding-right: 0;
    flex-direction: row;
  }

  .ac-firm-steps::before {
    display: none;
  }

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

  .ac-firm-culture__hero-img {
    height: 260px;
  }

  .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;
  }

  /* Hide flow decorations and visual on mobile */
  .ac-firm-hero .ac-deco-flow-left,
  .ac-firm-hero .ac-deco-flow-right {
    display: none;
  }

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

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

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

  .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;
  }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .ac-firm-approach__triangle img {
    animation: 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;
  }
}
