/* ==========================================================================
   Automation Consulting Homepage — Faithful Figma Implementation v2
   ========================================================================== */

/* --- CSS Custom Properties --- */
:root {
  --ac-bg: #010D12;
  --ac-bg-alt: #020F15;
  --ac-primary: #07A9D1;
  --ac-secondary: #0A576B;
  --ac-dark-card: #06212C;
  --ac-dark-card-border: rgba(7, 169, 209, 0.12);
  --ac-light-bg: #FAFFFF;
  --ac-light-card: #F1FEFF;
  --ac-text-light: #FFFFFF;
  --ac-text-muted: #c8c8c8;
  --ac-text-dark: #1A1A1A;
  --ac-glow: rgba(7, 169, 209, 0.15);
  --ac-radius: 12px;
  --ac-radius-lg: 20px;
  --ac-max-width: 1340px;
  --ac-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --ac-bg-gradient-start: #020d18;
  --ac-bg-gradient-mid: #042028;
  --ac-bg-gradient-end: #093e4c;
  --ac-grey-border: #c8c8c8;
  --ac-grey-text: #5A6B75;
  --ac-grey-muted: #8899A4;
  --ac-grey-dark: #4a5568;
  --ac-grey-light: #E4E8EB;
  --ac-error: #E05252;
}

/* --- Global Resets --- */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--ac-bg);
  color: var(--ac-text-light);
  font-family: 'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
}

/* --- Homepage zoom-out so hero landing frame fits entirely --- */
body.ac-homepage {
  zoom: 0.80;
}

/* --- Font family assignments per Figma spec --- */
/* Nav links, CTAs, tool names, labels */
.ac-nav__list a,
.ac-btn,
.ac-label,
.ac-industry-pill,
.ac-cap-pill,
.ac-case-study__industry--light,
.ac-industries__banner-text {
  font-family: 'Manrope', sans-serif;
}

/* Hero heading */
.ac-hero__title,
.ac-hero__subtitle {
  font-family: 'Inter', sans-serif;
}

/* Major section headings */
.ac-industries__title,
.ac-case-studies__title,
.ac-cta__title,
.ac-capabilities__title {
  font-family: 'Inter', sans-serif;
}

/* Brand name in navbar */
.ac-logo-text {
  font-family: 'Inter', sans-serif;
}

/* Process step titles */
/* Process step numbers */
.wp-site-blocks {
  padding: 0 !important;
}

.wp-site-blocks > * + * {
  margin-block-start: 0 !important;
}

/* Kill WP default margins on headings/paragraphs inside our sections */
[class*="ac-"] .wp-block-heading,
[class*="ac-"] .wp-block-paragraph {
  margin-top: 0;
}

/* Override WP constrained layout max-width for decoration containers */
.ac-hero__decorations,
.ac-industries__decorations,
.ac-cta__decorations {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Override WP default link underline for our elements */
.ac-nav__list a,
.ac-btn,
.ac-footer__links a,
.ac-logo,
.ac-footer__brand a {
  text-decoration: none !important;
}

/* --- Buttons --- */
.ac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  border-radius: 100px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  transition: all var(--ac-transition);
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
  line-height: 1.2;
}

.ac-btn--primary {
  background: linear-gradient(135deg, #07A9D1, #06CFC3);
  color: var(--ac-text-light);
  border: none;
}

.ac-btn--primary:hover {
  background: linear-gradient(135deg, #06CFC3, #07A9D1);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(7, 169, 209, 0.35);
  color: var(--ac-text-light);
}

.ac-btn--outline {
  background: transparent;
  color: var(--ac-text-light);
  border-color: rgba(255, 255, 255, 0.25);
}

.ac-btn--outline:hover {
  border-color: var(--ac-primary);
  color: var(--ac-primary);
  transform: translateY(-2px);
}

.ac-btn--dark {
  color: var(--ac-text-dark);
  border-color: rgba(26, 26, 26, 0.15);
}

.ac-btn--dark:hover {
  border-color: var(--ac-primary);
  color: var(--ac-primary);
}

/* --- Badge --- */
.ac-badge {
  display: inline-block;
  padding: 0.5rem 1.75rem;
  border: 1px solid rgba(7, 169, 209, 0.5);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ac-primary);
  letter-spacing: 0.03em;
  background: rgba(7, 169, 209, 0.06);
}

/* --- Section label --- */
.ac-label {
  margin-bottom: 0.75rem !important;
}

/* --- Accent text --- */
.ac-text-accent {
  color: var(--ac-primary);
}

strong.ac-text-accent {
  font-weight: 800;
}


/* ==========================================================================
   DECORATIVE ELEMENTS — shared across sections
   ========================================================================== */

/* Glow orbs */
.ac-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* Dot grid pattern */
.ac-dots-grid {
  position: absolute;
  background-image: radial-gradient(circle, var(--ac-secondary) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  opacity: 0.45;
  pointer-events: none;
}

/* Watermark styles removed — section decorations handled inline */

/* ==========================================================================
   UNDER CONSTRUCTION BANNER
   ========================================================================== */
.ac-construction-banner {
  background: var(--ac-primary);
  color: #fff;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.45rem 1rem;
  position: relative;
  z-index: 1001;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.ac-header-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease, border 0.4s ease;
  border-bottom: 1px solid transparent;
}

.ac-header-wrap.scrolled {
  background: rgba(1, 13, 18, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(7, 169, 209, 0.08);
}

.ac-header {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.ac-header > .wp-block-group {
  max-width: var(--ac-max-width);
  margin: 0 auto;
}

.ac-header__left {
  gap: 0.6rem !important;
}

.ac-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  gap: 0;
}

.ac-logo svg {
  display: block;
}

.ac-logo-text {
  margin: 0 !important;
  display: none;
}

/* Nav links */
.ac-nav__list {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ac-nav__list a {
  color: var(--ac-text-light);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color var(--ac-transition);
  opacity: 0.85;
}

.ac-nav__list a:hover {
  color: var(--ac-primary);
  opacity: 1;
}

.ac-header .ac-btn {
  margin-left: 2rem;
  padding: 0.55rem 1.4rem;
  font-size: 0.82rem;
}

.ac-header .ac-btn--primary {
  display: inline-flex;
  gap: 0.4rem;
}

/* Right arrow in Let's Talk button */
.ac-header .ac-btn--primary::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Hamburger */
.ac-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: 1rem;
}

.ac-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ac-text-light);
  transition: all var(--ac-transition);
  border-radius: 2px;
}

.ac-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.ac-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.ac-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.ac-mobile-menu {
  position: fixed;
  top: 55px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(1, 13, 18, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.ac-mobile-menu[hidden] {
  display: none !important;
}

.ac-mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.ac-mobile-menu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ac-mobile-menu a {
  display: block;
  padding: 1.15rem 0;
  color: var(--ac-text-light);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color var(--ac-transition);
}

.ac-mobile-menu a:hover {
  color: var(--ac-primary);
}

.ac-mobile-menu .ac-btn {
  margin-top: 1.5rem;
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.ac-hero {
  position: relative;
  height: calc(100vh / 0.80) !important;
  min-height: calc(100vh / 0.80) !important;
  max-height: calc(100vh / 0.80) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  justify-content: center !important;
  text-align: center;
  overflow: hidden !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
  background-color: var(--ac-bg);
  background-image:
    linear-gradient(rgba(0,200,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

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

/* Hero center content — fills available space, vertically centers */
.ac-hero__center-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 200px;
  box-sizing: border-box;
}

/* --- Hero decorations container --- */
.ac-hero__decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

/* Hero car background image — centered behind hero copy */
.ac-hero__car-bg {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  max-width: 900px;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
  animation: ac-hero-car-drift 8s ease-in-out infinite;
}

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

/* Ensure hero content sits above decorations */
.ac-hero > .wp-block-group,
.ac-hero > .wp-block-heading,
.ac-hero > .wp-block-paragraph,
.ac-hero__badge-wrap,
.ac-hero__title,
.ac-hero__subtitle,
.ac-hero__ctas,
.ac-hero__bottom {
  position: relative;
  z-index: 1;
}

/* --- Figma decoration images (shared base) --- */
.ac-deco-figma {
  position: absolute;
  pointer-events: none;
  display: block;
}

/* Main ambient glow — CSS radial gradient (SVG filters don't work in <img>) */
.ac-deco-glow {
  display: none;
}

.ac-glow--hero-main {
  width: 1200px;
  height: 1000px;
  background: radial-gradient(ellipse at 50% 40%,
    rgba(7, 169, 209, 0.40) 0%,
    rgba(7, 169, 209, 0.25) 20%,
    rgba(6, 207, 195, 0.10) 45%,
    transparent 70%);
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(80px);
  z-index: 0;
}

/* Central hero triangle logo decoration (glowing "A") — hidden, SVG filters don't render */
.ac-deco-hero-triangle {
  display: none;
}

/* CTA section triangle */
.ac-deco-cta-triangle {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.2;
}

/* Badge wrap */
.ac-hero__badge-wrap {
  margin-bottom: 1.75rem !important;
  position: relative;
  z-index: 2;
}

/* Hero title */
.ac-hero__title {
  margin-bottom: 1.25rem !important;
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Hero rotating text */
.ac-hero-rotator {
  display: inline-block;
  position: relative;
  vertical-align: bottom;
  overflow: hidden;
  height: 1.15em;
  line-height: 1.15;
  background: linear-gradient(135deg, #07A9D1, #06CFC3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ac-hero-rotator__inner {
  display: inline-block;
  position: relative;
}

.ac-hero-rotator__phrase {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  background: linear-gradient(135deg, #07A9D1, #06CFC3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ac-hero-rotator__phrase--active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

.ac-hero-rotator__phrase--exit {
  opacity: 0;
  transform: translateY(-100%);
}

/* Hero subtitle */
.ac-hero__subtitle {
  max-width: 560px;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 2rem !important;
  position: relative;
  z-index: 2;
}

/* CTA buttons */
.ac-hero__ctas {
  gap: 1rem !important;
  margin-bottom: 2.5rem !important;
  position: relative;
  z-index: 2;
}

/* --- Chatbot input (decorative, non-functional) --- */
.ac-hero__chatbot {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.ac-chatbot-input {
  display: flex;
  align-items: center;
  background: rgba(6, 33, 44, 0.7);
  border: 1px solid rgba(7, 169, 209, 0.18);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  transition: border-color var(--ac-transition);
}

.ac-chatbot-input:hover {
  border-color: rgba(7, 169, 209, 0.35);
}

.ac-chatbot-input input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--ac-text-muted);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  padding: 0;
}

.ac-chatbot-input input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.ac-chatbot-input__send {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity var(--ac-transition);
}

.ac-chatbot-input__send:hover {
  opacity: 1;
}

.ac-chatbot-actions {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.ac-chatbot-action {
  background: rgba(6, 33, 44, 0.5);
  border: 1px solid rgba(7, 169, 209, 0.12);
  border-radius: 100px;
  padding: 0.45rem 1.1rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: default;
  transition: border-color var(--ac-transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ac-chatbot-action:hover {
  border-color: rgba(7, 169, 209, 0.3);
}

/* --- Trusted-by infinite carousel --- */
.ac-trust-carousel {
  position: relative !important;
  bottom: auto !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 2;
  overflow: hidden;
  padding: 0 0 0.5rem;
  text-align: center;
  margin-top: 40px;
}

.ac-trust-carousel__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 1rem;
}

.ac-trust-carousel__track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  width: max-content;
  margin: 0 auto;
  animation: ac-trust-scroll 20s linear infinite;
}

.ac-trust-carousel__track:hover {
  animation-play-state: paused;
}

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

/* Fade edges */
.ac-trust-carousel::before,
.ac-trust-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.ac-trust-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--ac-bg), transparent);
}

.ac-trust-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--ac-bg), transparent);
}

.ac-trust-logo {
  filter: brightness(0) invert(1);
  opacity: 1;
  object-fit: contain;
  flex-shrink: 0;
}

.ac-trust-logo--no-filter {
  filter: none;
}

.ac-trust-logo--square {
  /* Link Foundation is square-ish, needs slightly different sizing */
}

/* --- Hero address badge (matches Google Reviews style) --- */
.ac-hero__address-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  text-decoration: none !important;
  transition: all var(--ac-transition);
}

.ac-hero__address-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(7, 169, 209, 0.3);
  transform: translateY(-2px);
}

.ac-hero__address-icon {
  flex-shrink: 0;
}

.ac-hero__address-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.ac-hero__address-line1 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ac-text-light);
  white-space: nowrap;
}

.ac-hero__address-line2 {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--ac-text-muted);
  white-space: nowrap;
}

.ac-hero__address-arrow {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.2s ease;
}

.ac-hero__address-badge:hover .ac-hero__address-arrow {
  color: var(--ac-primary);
}

/* --- Scroll indicator --- */
.ac-hero-scroll-indicator {
  position: absolute;
  bottom: 55px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.35);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.ac-hero-scroll-arrow {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.35);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Hero bottom (Google reviews + address badge) --- */
.ac-hero__bottom {
  position: absolute !important;
  bottom: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--ac-max-width);
  padding: 0 var(--wp--preset--spacing--50, 2rem) !important;
  box-sizing: border-box !important;
  z-index: 2;
}

.ac-hero__scroll {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ac-text-light);
  opacity: 0.7;
}

.ac-hero__scroll svg {
  animation: ac-bounce 2s ease-in-out infinite;
}

@keyframes ac-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* Google Reviews badge */
.ac-google-review {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  text-decoration: none !important;
  transition: all var(--ac-transition);
}

.ac-google-review:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.ac-google-review__icon {
  flex-shrink: 0;
}

.ac-google-review__stars {
  display: flex;
  align-items: center;
}

.ac-google-review__text {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ac-text-muted);
  white-space: nowrap;
}

/* ==========================================================================
   FRICTION SECTION ANIMATION — Innovation Shouldn't Feel This Hard
   ========================================================================== */
.friction-scroll {
  position: relative;
  height: 400vh;
}

.friction-section {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: var(--ac-bg);
}

.friction-header {
  text-align: center;
  margin-bottom: 3rem;
}

.friction-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
}

.friction-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.25;
  color: #ffffff;
  margin: 0;
}

/* Two-column layout: 55% diagram, 45% text */
.friction-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* LEFT COLUMN */
.friction-col-left {
  flex: 0 0 48%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Diagram container */
.friction-diagram {
  position: relative;
  width: 460px;
  height: 460px;
  max-width: 100%;
}

/* Large circle — CENTERED in diagram */
.friction-circle-large {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background-color: var(--ac-bg-alt, #0a1628);
  border: none;
  box-shadow: 0 0 60px 10px rgba(0, 200, 180, 0.15),
              0 0 120px 40px rgba(0, 200, 180, 0.08);
}

/* Teal circles — positioned by JS */
.friction-teal {
  position: absolute;
  border-radius: 50%;
  background: #07A9D1;
  box-shadow: 0 0 30px rgba(7, 169, 209, 0.35);
  z-index: 2;
  will-change: top, left, width, height;
  transition: none;
}

/* Label groups — positioned OUTSIDE the large circle, never overlapping teal */
.friction-label-group {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 5;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.friction-label {
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 8px 16px;
}

.friction-connector {
  display: block;
  flex-shrink: 0;
}

/* Top-left: label then connector line angling down-right to circle edge */
.friction-label-group--tl {
  top: 20px;
  left: 0;
}

/* Top-right: connector then label, positioned at far right */
.friction-label-group--tr {
  top: 20px;
  right: 0;
}

/* Middle-left: label then horizontal connector to circle edge */
.friction-label-group--ml {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

/* Bottom-right: "Teams Stretch Too Thin" at 4-5 o'clock position */
.friction-label-group--br {
  bottom: 14%;
  left: auto;
  right: 2%;
  transform: none;
  flex-direction: row;
  align-items: center;
}

/* RIGHT COLUMN */
.friction-text-column {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  min-height: 460px;
}

.friction-text-wrap {
  position: relative;
  max-width: 460px;
  width: 100%;
  min-height: 460px;
}

.friction-paragraph {
  font-family: 'Inter', sans-serif;
  font-size: 1.35rem;
  line-height: 1.4;
  font-weight: 700;
  color: #ffffff;
  max-width: 460px;
  width: 100%;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  margin: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
  text-align: left;
}

.friction-paragraph--teal {
  color: #07A9D1;
}

.friction-paragraph.active {
  opacity: 1;
  pointer-events: auto;
}

/* Progress dots */
.friction-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.friction-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.3s ease;
}

.friction-dot--active {
  background: #07A9D1;
}


/* === RACETRACK SECTION START === */
.racetrack-section {
  position: relative;
  background: #ffffff !important;
  padding: 120px 40px;
  overflow: hidden;
}

.racetrack-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 3;
}

.racetrack-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #07A9D1;
  border: 1px solid #07A9D1;
  border-radius: 20px;
  padding: 6px 18px;
  margin-bottom: 24px;
}

.racetrack-headline {
  font-size: 52px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.2;
  max-width: 700px;
  margin: 0 auto 20px;
}

.racetrack-subheadline {
  font-size: 18px;
  color: rgba(0,0,0,0.5);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.racetrack-track {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  height: 1600px;
}

.racetrack-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: visible;
}

.racetrack-path-base {
  stroke: rgba(0,0,0,0.1);
  stroke-width: 2.5;
  stroke-dasharray: 12 10;
  fill: none;
}

.racetrack-path-glow {
  stroke: #07A9D1;
  stroke-width: 2.5;
  fill: none;
  filter: drop-shadow(0 0 6px #07A9D1) drop-shadow(0 0 16px rgba(7,169,209,0.4));
  stroke-dasharray: var(--path-length);
  stroke-dashoffset: var(--path-length);
  transition: stroke-dashoffset 0.05s linear;
}

.racetrack-marker-outer {
  fill: #ffffff;
  stroke: rgba(7,169,209,0.25);
  stroke-width: 2;
  transition: stroke 0.4s ease;
}

.racetrack-marker-inner {
  fill: rgba(7,169,209,0.25);
  transition: fill 0.4s ease;
}

.racetrack-marker-group--active .racetrack-marker-outer {
  stroke: #07A9D1;
  filter: drop-shadow(0 0 12px rgba(7,169,209,0.6));
}

.racetrack-marker-group--active .racetrack-marker-inner {
  fill: #07A9D1;
  filter: drop-shadow(0 0 6px #07A9D1);
}

.racetrack-step {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 40px;
  z-index: 2;
}

.racetrack-bg-num {
  font-size: 200px;
  font-weight: 900;
  color: rgba(0,0,0,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  position: absolute;
  z-index: 0;
}

.racetrack-card {
  background: rgba(7,169,209,0.02);
  border: 1px solid rgba(7,169,209,0.12);
  border-radius: 16px;
  padding: 32px;
  max-width: 340px;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, border-color 0.6s ease-out;
}

.racetrack-card--visible {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(7,169,209,0.35);
}

.racetrack-card__tag {
  display: inline-block;
  color: #07A9D1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.racetrack-card__title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 12px;
  line-height: 1.3;
}

.racetrack-card__body {
  font-size: 15px;
  line-height: 1.7;
  color: #666;
  margin: 0;
}

/* Step 1 — card RIGHT of path, 01 LEFT */
.racetrack-step--1 {
  top: 140px;
  right: 0;
  left: auto;
}
.racetrack-step--1 .racetrack-bg-num {
  left: -380px;
  top: -20px;
}

/* Step 2 — card LEFT of path, 02 RIGHT */
.racetrack-step--2 {
  top: 460px;
  left: 0;
  right: auto;
}
.racetrack-step--2 .racetrack-bg-num {
  right: -380px;
  top: -40px;
}

/* Step 3 — card RIGHT of path, 03 LEFT */
.racetrack-step--3 {
  top: 840px;
  right: 0;
  left: auto;
}
.racetrack-step--3 .racetrack-bg-num {
  left: -380px;
  top: -40px;
}

/* Step 4 — card LEFT of path, 04 RIGHT */
.racetrack-step--4 {
  top: 1220px;
  left: 0;
  right: auto;
}
.racetrack-step--4 .racetrack-bg-num {
  right: -380px;
  top: -40px;
}

/* === RACETRACK SECTION END === */

/* === RACETRACK RESPONSIVE — Mobile === */
@media (max-width: 768px) {
  .racetrack-headline { font-size: 32px; }
  .racetrack-subheadline { font-size: 16px; }
  .racetrack-svg { display: none; }
  .racetrack-bg-num { display: none; }
  .racetrack-track { height: auto; padding-left: 40px; border-left: 2px solid rgba(7,169,209,0.2); }
  .racetrack-step { position: relative; top: auto !important; left: auto !important; right: auto !important; flex-direction: row !important; margin-bottom: 40px; }
  .racetrack-card { opacity: 1; transform: none; max-width: 100%; }
}

  .racetrack-card__title {
    font-size: 20px;
  }

  .racetrack-card__body {
    font-size: 14px;
  }
}


/* ==========================================================================
   INDUSTRIES (Light background section) — matching Figma
   ========================================================================== */
.ac-industries {
  position: relative;
  overflow: hidden;
  background: #ffffff !important;
  padding: 100px 40px 200px;
  text-align: center;
}

.ac-industries__header {
  text-align: center;
  margin-bottom: 0;
}
.ac-industries__header .racetrack-badge {
  margin-bottom: 24px;
}

.ac-industries__title {
  font-family: 'Inter', sans-serif;
  font-size: 52px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.15;
  margin: 0 auto 50px;
  text-align: center;
}

/* Dark gradient banner */
.ac-industries__banner {
  max-width: 740px;
  margin: 0 auto 48px;
  background: linear-gradient(160deg, #1a2a3a 0%, #0d1b2a 60%, #0a1622 100%);
  border-radius: 24px;
  padding: 48px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* Subtle glow at bottom of banner */
.ac-industries__banner::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #07A9D1, transparent);
  filter: blur(1px);
}

.ac-industries__banner-text {
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.55;
  margin: 0 0 32px;
  letter-spacing: -0.01em;
}

/* Search input — rectangular rounded */
.ac-industries__search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(7, 169, 209, 0.4);
  border-radius: 10px;
  padding: 14px 20px;
  max-width: 420px;
  margin: 0 auto;
  transition: border-color 0.3s ease;
}

.ac-industries__search:hover {
  border-color: rgba(7, 169, 209, 0.7);
}

.ac-industries__search input {
  flex: 1;
  background: transparent;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  outline: none;
  cursor: default;
}

.ac-industries__search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.ac-industries__search svg {
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

/* Industry pills */
.ac-industries__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

.ac-industry-pill {
  display: inline-block;
  padding: 12px 28px;
  border: 1.5px solid #07A9D1;
  border-radius: 100px;
  color: #07A9D1;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  background: transparent;
}

.ac-industry-pill--active {
  background: linear-gradient(135deg, #07A9D1, #06CFC3);
  color: #ffffff;
  border-color: transparent;
}

.ac-industry-pill:hover {
  background: linear-gradient(135deg, #07A9D1, #06CFC3);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(7, 169, 209, 0.25);
}

/* ==========================================================================
   CAPABILITIES — pills around central logo, matching Figma
   ========================================================================== */
.ac-capabilities {
  position: relative;
  overflow: hidden;
}

.ac-capabilities__title {
  margin-bottom: 2rem !important;
  position: relative;
  z-index: 1;
}

/* Orbit layout — pills around central logo */
.ac-capabilities__orbit {
  position: relative;
  width: 700px;
  height: 460px;
  margin: 0 auto;
}

.ac-capabilities__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  background: var(--ac-dark-card);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(205, 205, 205, 0.3);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.ac-capabilities__center img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

/* Pill buttons positioned around the center — white bg, thick teal border per Figma */
.ac-cap-pill {
  position: absolute;
  display: inline-block;
  padding: 0.85rem 2.5rem;
  border: 3px solid var(--ac-primary);
  border-radius: 20px;
  color: var(--ac-primary);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--ac-transition);
  background: #fff;
  white-space: nowrap;
  z-index: 1;
}

.ac-cap-pill:hover {
  background: var(--ac-primary);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(7, 169, 209, 0.25);
}

.ac-cap-pill--tl { top: 15%; left: 0; }
.ac-cap-pill--tr { top: 15%; right: 0; }
.ac-cap-pill--bl { bottom: 15%; left: 5%; }
.ac-cap-pill--br { bottom: 15%; right: 5%; }

/* ==========================================================================
   CASE STUDIES — light background matching Figma
   ========================================================================== */
.ac-case-studies {
  position: relative;
  overflow: hidden;
}

.ac-case-studies__title {
  margin-bottom: 3rem !important;
  position: relative;
  z-index: 1;
}

/* Light variant of case study card */
.ac-case-study--light {
  background: #fff;
  border: 1px solid rgba(7, 169, 209, 0.08);
  border-radius: var(--ac-radius-lg);
  padding: 2.5rem;
  max-width: 900px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.ac-case-study__header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ac-case-study__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ac-case-study__client {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ac-text-dark);
}

.ac-case-study__industry--light {
  font-size: 0.8rem;
  color: var(--ac-primary);
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(7, 169, 209, 0.25);
  border-radius: 100px;
  font-weight: 500;
}

.ac-case-study__body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.ac-case-study__label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ac-primary);
  margin: 0 0 0.4rem;
  letter-spacing: 0.02em;
}

.ac-case-study__section p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ac-grey-text);
  margin: 0;
}

.ac-case-study__footer {
  text-align: right;
}

.ac-link-arrow {
  color: var(--ac-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--ac-transition);
}

.ac-link-arrow:hover {
  opacity: 0.8;
}

.ac-case-studies__more {
  text-align: center;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.ac-cta {
  position: relative;
  text-align: center;
  overflow: hidden;
  width: 100% !important;
  max-width: 100% !important;
  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 !important;
}



.ac-cta__decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ac-glow--cta-left {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(7, 169, 209, 0.25) 0%, rgba(6, 207, 195, 0.08) 40%, transparent 70%);
  bottom: -150px;
  left: -150px;
  filter: blur(60px);
}

.ac-glow--cta-right {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(7, 169, 209, 0.20) 0%, rgba(10, 87, 107, 0.10) 40%, transparent 70%);
  top: -100px;
  right: -100px;
  filter: blur(60px);
}

.ac-cta__title {
  position: relative;
  z-index: 2;
  margin-bottom: 1.25rem !important;
}

.ac-cta__buttons {
  gap: 1rem !important;
  position: relative;
  z-index: 2;
  margin-top: 0 !important;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.ac-cta__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* CTA icon */
.ac-cta__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(7,169,209,0.15) 0%, rgba(6,207,195,0.1) 100%);
  border: 1px solid rgba(7,169,209,0.25);
  color: var(--ac-primary);
  margin: 0 auto 1.5rem;
  animation: ac-cta-icon-float 3s ease-in-out infinite;
}

@keyframes ac-cta-icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* CTA subtitle */
.ac-cta__subtitle {
  position: relative;
  z-index: 2;
}

/* CTA reassurance line */
.ac-cta__reassurance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.3);
  margin-top: 2rem !important;
  position: relative;
  z-index: 2;
}
.ac-cta__reassurance svg {
  color: var(--ac-primary);
  opacity: 0.6;
  flex-shrink: 0;
}

/* CTA glowing primary button */
.ac-btn--glow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #07A9D1, #06CFC3);
  border: none;
  box-shadow: 0 0 20px rgba(7,169,209,0.3), 0 0 60px rgba(7,169,209,0.1);
  animation: ac-cta-btn-glow 2.5s ease-in-out infinite;
}

@keyframes ac-cta-btn-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(7,169,209,0.3), 0 0 60px rgba(7,169,209,0.1); }
  50% { box-shadow: 0 0 30px rgba(7,169,209,0.5), 0 0 80px rgba(7,169,209,0.2); }
}

.ac-btn--glow:hover {
  animation: none;
  box-shadow: 0 0 35px rgba(7,169,209,0.6), 0 0 100px rgba(7,169,209,0.25);
  transform: translateY(-2px);
}



/* CTA pulse rings */
.ac-cta__pulse-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(7,169,209,0.08);
  pointer-events: none;
  animation: ac-cta-pulse-expand 4s ease-out infinite;
}
.ac-cta__pulse-ring--1 { width: 300px; height: 300px; animation-delay: 0s; }
.ac-cta__pulse-ring--2 { width: 500px; height: 500px; animation-delay: 1.3s; }
.ac-cta__pulse-ring--3 { width: 700px; height: 700px; animation-delay: 2.6s; }

@keyframes ac-cta-pulse-expand {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

/* CTA speed lines */
.ac-cta__speed-lines {
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ac-cta__speed-lines span {
  display: block;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(7,169,209,0.25), transparent);
  border-radius: 1px;
  animation: ac-cta-speed-shimmer 3s ease-in-out infinite;
}
.ac-cta__speed-lines span:nth-child(1) { width: 160px; animation-delay: 0s; }
.ac-cta__speed-lines span:nth-child(2) { width: 110px; animation-delay: 0.4s; opacity: 0.6; }
.ac-cta__speed-lines span:nth-child(3) { width: 70px; animation-delay: 0.8s; opacity: 0.35; }
.ac-cta__speed-lines span:nth-child(4) { width: 130px; animation-delay: 1.2s; opacity: 0.5; }

@keyframes ac-cta-speed-shimmer {
  0%, 100% { opacity: 0.2; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(20px); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.ac-footer {
  border-top: 1px solid rgba(7, 169, 209, 0.08);
}

.ac-footer__brand {
  margin-bottom: 1.25rem;
}

.ac-footer__brand .ac-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.ac-footer__brand .ac-logo span {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ac-text-light);
}

.ac-footer__desc {
  max-width: 320px;
}

.ac-footer__heading {
  margin-bottom: 1.25rem !important;
}

.ac-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ac-footer__links a {
  color: var(--ac-grey-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--ac-transition);
}

.ac-footer__links a:hover {
  color: var(--ac-primary);
}

.ac-footer__divider {
  margin: 2.5rem 0 0 !important;
  opacity: 0.2 !important;
}

/* Footer chatbot mini */
.ac-footer__chatbot-mini {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.ac-footer__chatbot-mini .ac-chatbot-input {
  max-width: 360px;
  margin: 0;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  background: rgba(6, 45, 50, 0.4);
}

.ac-footer__chatbot-mini .ac-chatbot-actions {
  margin: 0.4rem 0 0;
  gap: 0.4rem;
  justify-content: flex-end;
}

.ac-footer__chatbot-mini .ac-chatbot-action {
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
}

/* ==========================================================================
   ANIMATIONS — keyframes
   ========================================================================== */

/* Gentle floating up/down */
@keyframes ac-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Reverse-phase float */
@keyframes ac-float-alt {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Very slow rotation */
@keyframes ac-rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Counter-rotation */
@keyframes ac-rotate-slow-ccw {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* Subtle glow pulse */
@keyframes ac-pulse-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

/* Drift horizontally */
@keyframes ac-drift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(6px, -4px); }
  50% { transform: translate(-4px, 6px); }
  75% { transform: translate(4px, 2px); }
}

/* Particle float — each dot gets a unique delay via JS */
@keyframes ac-particle-float {
  0%, 100% { transform: translate(0, 0); opacity: var(--dot-opacity, 0.3); }
  33% { transform: translate(var(--dx1, 5px), var(--dy1, -8px)); opacity: calc(var(--dot-opacity, 0.3) * 1.3); }
  66% { transform: translate(var(--dx2, -4px), var(--dy2, 5px)); opacity: calc(var(--dot-opacity, 0.3) * 0.7); }
}

/* Orbit pulse for capabilities pills */
@keyframes ac-orbit-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* Dashed line flow animation for capability connecting lines */
@keyframes ac-line-dash {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -20; }
}

/* ==========================================================================
   ANIMATION ASSIGNMENTS
   ========================================================================== */

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

/* Hero glow — breathing pulse */
.ac-glow--hero-main {
  animation: ac-pulse-glow 6s ease-in-out infinite;
}

/* Problem section — center deco rotation handled inline */

/* Process triangle — slow rotation */


/* CTA glows — pulsing */
.ac-glow--cta-left {
  animation: ac-pulse-glow 7s ease-in-out infinite;
}

.ac-glow--cta-right {
  animation: ac-pulse-glow 5s ease-in-out infinite 1.5s;
}

/* Capabilities pills — subtle orbit pulse */
.ac-cap-pill {
  animation: ac-orbit-pulse 4s ease-in-out infinite;
}

.ac-cap-pill--tr { animation-delay: 1s; }
.ac-cap-pill--bl { animation-delay: 2s; }
.ac-cap-pill--br { animation-delay: 3s; }

/* Process dashed line — draw on scroll via clip-path */


/* ==========================================================================
   SCROLL ANIMATIONS — fade-in reveals
   ========================================================================== */
.ac-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* Stagger children */
.ac-industries__pills .ac-fade-in:nth-child(2) { transition-delay: 0.06s; }
.ac-industries__pills .ac-fade-in:nth-child(3) { transition-delay: 0.12s; }
.ac-industries__pills .ac-fade-in:nth-child(4) { transition-delay: 0.18s; }
.ac-industries__pills .ac-fade-in:nth-child(5) { transition-delay: 0.24s; }
.ac-industries__pills .ac-fade-in:nth-child(6) { transition-delay: 0.30s; }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Large desktop */
@media (min-width: 1440px) {
  .ac-hero__title {
    font-size: 4.2rem !important;
  }
}

/* Tablet landscape */
@media (max-width: 1200px) {
}

/* Tablet */
@media (max-width: 1024px) {
  .ac-case-study__body {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .ac-nav__list {
    gap: 1.25rem;
  }

  .ac-triangle-3d {
    width: 300px;
    height: 300px;
  }
}

/* Small tablet / large phone */
@media (max-width: 768px) {
  .ac-nav {
    display: none !important;
  }

  .ac-header .ac-btn--primary {
    display: none !important;
  }

  .ac-hamburger {
    display: flex !important;
  }

  .ac-hero {
    height: auto !important;
    min-height: 100vh !important;
    max-height: none !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .ac-hero .ac-trust-carousel {
    position: relative !important;
    bottom: auto !important;
    margin-top: 2rem;
  }

  .ac-hero__bottom {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem !important;
    margin-top: 1.5rem;
  }

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

  .ac-hero__scroll {
    order: 2;
  }

  .ac-case-study--light {
    padding: 1.5rem;
  }


  /* Friction section — mobile */
  .friction-scroll { height: 350vh; }

  .friction-body {
    flex-direction: column;
    gap: 2rem;
  }

  .friction-col-left {
    flex: none;
    width: 100%;
  }

  .friction-diagram {
    width: 300px;
    height: 300px;
    margin: 0 auto;
  }

  .friction-circle-large {
    width: 250px;
    height: 250px;
  }

  .friction-teal {
    width: 60px;
    height: 60px;
  }

  .friction-label-group {
    display: none;
  }

  .friction-text-column {
    width: 100%;
    padding: 20px;
  }

  .friction-paragraph {
    font-size: 20px;
    line-height: 1.65;
  }


  /* Industries pills */
  .ac-industries__banner {
    padding: 1.5rem;
  }

  /* Capabilities orbit collapses */
  .ac-capabilities__orbit {
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    position: static;
  }

  .ac-capabilities__center {
    position: static;
    transform: none;
    margin: 0 auto 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .ac-cap-pill {
    position: static;
  }

  .ac-case-study {
    padding: 1.5rem;
  }

  .ac-step {
    gap: 1.25rem;
  }

  .ac-step__number {
    min-width: 40px;
  }

  .wp-block-columns {
    flex-direction: column !important;
  }

  .ac-industries__input-wrap {
    padding: 1.5rem;
  }

  .ac-triangle-3d {
    width: 280px;
    height: 280px;
  }

  .ac-deco-hero-triangle {
    width: 180px;
    height: 180px;
    opacity: 0.25;
  }

  .ac-deco-glow {
    width: 500px;
    opacity: 0.25;
  }

  .ac-footer__chatbot-mini {
    align-items: flex-start;
    margin-top: 1rem;
  }

  /* Watermark responsive rules removed */
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Phone */
@media (max-width: 480px) {
  .ac-hero__ctas {
    flex-direction: column;
    align-items: center;
  }

  .ac-case-study__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .ac-hero__title {
    font-size: 2.2rem !important;
  }

  .ac-cta {
    border-radius: 0 !important;
  }
}

/* ==========================================================================
   ENQUIRY MODAL
   ========================================================================== */
.ac-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.ac-modal[hidden] {
  display: none !important;
}

.ac-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 13, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: ac-modal-fade-in 0.3s ease;
}

.ac-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 620px;
  height: 88vh;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(7, 169, 209, 0.15);
  animation: ac-modal-slide-up 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ac-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ac-grey-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2;
}

.ac-modal__close:hover {
  background: rgba(0, 0, 0, 0.12);
  color: var(--ac-text-dark);
}

.ac-modal__iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@keyframes ac-modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ac-modal-slide-up {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
  .ac-modal__dialog {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 95vh;
    align-self: flex-end;
  }

  .ac-modal__iframe {
    height: 85vh;
  }
}
