/* ============================================================
   AUREX CORE — Premium Theme CSS
   Version: 2.0.0
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES
   ============================================================ */
:root {
  --ac-ivory:       #F0F4F5;
  --ac-ivory-warm:  #F7F9FA;
  --ac-white:       #FAFCFC;
  --ac-graphite:    #182126;
  --ac-graphite-2:  #0D1419;
  --ac-slate:       #5E6A71;
  --ac-teal:        #0F8D8A;
  --ac-teal-dark:   #0B6664;
  --ac-aqua:        #7ED6CF;
  --ac-champagne:   #C8B79E;
  --ac-border:      #E6DED2;
  --ac-dark-bg:     #0D1419;
  --ac-dark-card:   #141E24;

  --ac-font-heading: 'Sora', sans-serif;
  --ac-font-body:    'Inter', sans-serif;

  --ac-radius-sm:   8px;
  --ac-radius-md:   16px;
  --ac-radius-lg:   24px;
  --ac-radius-pill: 100px;

  --ac-shadow-card: 0 4px 32px rgba(13,20,25,0.18);
  --ac-shadow-teal: 0 4px 32px rgba(15,141,138,0.22);

  --ac-transition: 0.35s cubic-bezier(0.4,0,0.2,1);
  --ac-transition-slow: 0.6s cubic-bezier(0.4,0,0.2,1);
}

/* ============================================================
   2. RESET + BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  /* Reserve scrollbar gutter so layout never shifts when it appears/disappears */
  scrollbar-gutter: stable;
}

body {
  font-family: var(--ac-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ac-graphite);
  background: var(--ac-ivory-warm);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ---- Custom scrollbar — thin teal, brand-consistent ---- */
::-webkit-scrollbar              { width: 4px; }
::-webkit-scrollbar-track        { background: transparent; }
::-webkit-scrollbar-thumb        { background: rgba(14,185,181,0.35); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover  { background: rgba(14,185,181,0.65); }
* { scrollbar-width: thin; scrollbar-color: rgba(14,185,181,0.35) transparent; }

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ac-teal);
  text-decoration: none;
  transition: color var(--ac-transition);
}

a:hover {
  color: var(--ac-teal-dark);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--ac-font-body);
}

input, textarea, select {
  font-family: var(--ac-font-body);
}

::selection {
  background: var(--ac-teal);
  color: #fff;
}

/* ============================================================
   3. PRELOADER
   ============================================================ */
body.ac-loading { overflow: hidden; }

#ac-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #060D18;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Iris-close exit: clip-path collapses to centre point */
  clip-path: circle(150% at 50% 50%);
  transition: clip-path 0.75s cubic-bezier(0.55, 0, 0.9, 0.45),
              opacity 0.25s ease 0.55s;
  opacity: 1;
}
#ac-preloader.done {
  clip-path: circle(0% at 50% 50%);
  opacity: 0;
  pointer-events: none;
}

/* Ambient teal radial glow — breathes slowly */
.ac-pl-glow {
  position: absolute;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(14,157,152,0.13) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: ac-pl-breathe 3.5s ease-in-out infinite alternate;
}
@keyframes ac-pl-breathe {
  from { transform: scale(0.82); opacity: 0.6; }
  to   { transform: scale(1.12); opacity: 1;   }
}

/* Sonar ring pulses — expand outward from mark */
.ac-pl-ring {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 1px solid rgba(14,185,181,0.55);
  pointer-events: none;
  animation: ac-pl-ring-expand 2.6s ease-out infinite;
}
.ac-pl-ring:nth-child(2) { animation-delay: 0.85s; }
.ac-pl-ring:nth-child(3) { animation-delay: 1.7s;  }

@keyframes ac-pl-ring-expand {
  0%   { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(3.2);  opacity: 0;   }
}

/* L-shaped corner brackets */
.ac-pl-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  opacity: 0;
  animation: ac-pl-fade-in 0.5s ease 0.3s forwards;
}
.ac-pl-corner--tl { top: 32px;    left: 36px;  border-top:    1px solid rgba(14,157,152,0.45); border-left:   1px solid rgba(14,157,152,0.45); }
.ac-pl-corner--tr { top: 32px;    right: 36px; border-top:    1px solid rgba(14,157,152,0.45); border-right:  1px solid rgba(14,157,152,0.45); }
.ac-pl-corner--bl { bottom: 32px; left: 36px;  border-bottom: 1px solid rgba(14,157,152,0.45); border-left:   1px solid rgba(14,157,152,0.45); }
.ac-pl-corner--br { bottom: 32px; right: 36px; border-bottom: 1px solid rgba(14,157,152,0.45); border-right:  1px solid rgba(14,157,152,0.45); }

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

/* Center stage */
.ac-pl-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* Mark wrapper — spring scale-in */
.ac-pl-mark-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ac-pl-mark-spring 0.75s cubic-bezier(0.34, 1.45, 0.64, 1) 0.05s both;
}
@keyframes ac-pl-mark-spring {
  from { transform: scale(0.45) translateY(24px); opacity: 0; }
  to   { transform: scale(1)    translateY(0);    opacity: 1; }
}

/* The actual PNG mark */
.ac-pl-mark {
  width: 120px;
  height: auto;
  display: block;
  /* Brighten teal logo on dark preloader bg + teal glow */
  filter: brightness(1.4) saturate(1.15)
          drop-shadow(0 0 28px rgba(126,214,207,0.7))
          drop-shadow(0 10px 40px rgba(0,0,0,0.6));
}

/* Metallic scan-light sweep */
.ac-pl-scan {
  position: absolute;
  inset: -8px;
  overflow: hidden;
  pointer-events: none;
}
.ac-pl-scan::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -50%;
  width: 40%;
  height: 140%;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255,255,255,0.0) 30%,
    rgba(255,255,255,0.22) 50%,
    rgba(255,255,255,0.0) 70%,
    transparent 100%
  );
  transform: skewX(-12deg);
  animation: ac-pl-scan-sweep 2.4s ease-in-out 0.8s infinite;
}
@keyframes ac-pl-scan-sweep {
  0%   { left: -50%; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}

/* Wordmark reveal via clip mask */
.ac-pl-wordmark {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ac-pl-mask {
  overflow: hidden;
}
.ac-pl-w1,
.ac-pl-w2 {
  display: block;
  font-family: var(--ac-font-heading);
  font-size: clamp(26px, 4.5vw, 38px);
  letter-spacing: 0.25em;
  transform: translateY(105%);
  animation: ac-pl-slide-up 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.ac-pl-w1 {
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  animation-delay: 0.52s;
}
.ac-pl-w2 {
  font-weight: 300;
  color: #0EB9B5;
  animation-delay: 0.66s;
}
@keyframes ac-pl-slide-up {
  to { transform: translateY(0); }
}

/* Thin separator */
.ac-pl-sep {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
  opacity: 0;
  animation: ac-pl-fade-in 0.4s ease 0.72s forwards;
}

/* Tagline */
.ac-pl-tagline {
  font-family: var(--ac-font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin: 0;
  opacity: 0;
  animation: ac-pl-fade-up 0.6s ease 0.82s forwards;
}
@keyframes ac-pl-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Bottom: counter + glowing progress bar */
.ac-pl-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  animation: ac-pl-fade-in 0.5s ease 0.35s forwards;
}
.ac-pl-counter {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 2px;
  user-select: none;
}
#ac-pl-num {
  font-family: var(--ac-font-heading);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
  text-align: right;
}
.ac-pl-pct-sign {
  font-family: var(--ac-font-heading);
  font-size: 10px;
  color: rgba(255,255,255,0.28);
}
.ac-pl-bar {
  height: 1px;
  background: rgba(255,255,255,0.07);
  width: 100%;
  overflow: hidden;
  border-radius: 1px;
}
.ac-pl-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0B7A77, #0EB9B5, #6AD9D6);
  box-shadow: 0 0 8px rgba(14,185,181,0.7);
  border-radius: 1px;
  transition: width 0.1s linear;
}

/* ============================================================
   4. TYPOGRAPHY SYSTEM
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ac-font-heading);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ac-display {
  font-family: var(--ac-font-heading);
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h1, .ac-h1 {
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 800;
}

h2, .ac-h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
}

h3, .ac-h3 {
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 600;
}

h4, .ac-h4 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
}

p {
  line-height: 1.75;
}

.ac-body-lg {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.75;
}

.ac-body-xl {
  font-size: clamp(18px, 1.8vw, 20px);
  line-height: 1.75;
}

.ac-caption {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ac-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ac-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ac-teal);
  margin-bottom: 20px;
}

.ac-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--ac-teal);
  flex-shrink: 0;
}

/* ============================================================
   5. CONTAINER
   ============================================================ */
.ac-container {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 60px);
  padding-right: clamp(20px, 4vw, 60px);
}

.ac-container--wide {
  max-width: 1440px;
}

.ac-container--narrow {
  max-width: 860px;
}

/* ============================================================
   6. HEADER
   ============================================================ */
#ac-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--ac-transition), box-shadow var(--ac-transition), padding var(--ac-transition);
  padding: 20px 0;
}

#ac-header.scrolled {
  background: var(--ac-ivory-warm);
  box-shadow: 0 1px 0 var(--ac-border);
  padding: 14px 0;
}

.ac-header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.ac-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: auto;
  gap: 10px;
  text-decoration: none;
}

/* Mark image — actual logo PNG with transparent background */
.ac-logo-mark-img {
  height: 48px;
  width: auto;
  display: block;
  flex-shrink: 0;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Wordmark: AUREX CORE as HTML spans (color switches per context) */
.ac-logo-wordmark {
  display: flex;
  align-items: baseline;
  gap: 5px;
  line-height: 1;
}

.ac-logo-aurex-text {
  font-family: 'Sora', Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #354B60;
  white-space: nowrap;
}

.ac-logo-core-text {
  font-family: 'Sora', Arial, sans-serif;
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 4px;
  color: #354B60;
  white-space: nowrap;
}

/* ============================================================
   LOGO — context-aware colour switching
   Mark PNG is teal on transparent bg.
   On dark backgrounds: brighten mark so it stays crisp.
   On light backgrounds: natural teal colour.
   ============================================================ */

/* Header on dark hero — brighten logo mark + white text */
#ac-header:not(.scrolled) .ac-logo-mark-img {
  filter: brightness(1.35) saturate(1.1) drop-shadow(0 0 6px rgba(126,214,207,0.35));
}
#ac-header:not(.scrolled) .ac-logo-aurex-text,
#ac-header:not(.scrolled) .ac-logo-core-text {
  color: rgba(255,255,255,0.92);
}

/* Scrolled header (ivory bg) — natural logo + dark text */
#ac-header.scrolled .ac-logo-mark-img {
  filter: none;
}
#ac-header.scrolled .ac-logo-aurex-text,
#ac-header.scrolled .ac-logo-core-text {
  color: #1E2D3A;
}

/* Footer (ivory bg) — natural logo + dark text */
#ac-footer .ac-logo-mark-img {
  filter: none;
}
#ac-footer .ac-logo-aurex-text,
#ac-footer .ac-logo-core-text {
  color: #1E2D3A;
}

/* Mobile nav (dark overlay) — brighten logo mark + white text */
#ac-mobile-nav .ac-logo-mark-img {
  filter: brightness(1.35) saturate(1.1) drop-shadow(0 0 6px rgba(126,214,207,0.35));
}
#ac-mobile-nav .ac-logo-aurex-text,
#ac-mobile-nav .ac-logo-core-text {
  color: rgba(255,255,255,0.92);
}

/* Preloader (dark bg) — brighten logo mark + white text */
#ac-preloader .ac-logo-aurex-text,
#ac-preloader .ac-logo-core-text {
  color: rgba(255,255,255,0.92);
}

/* Legacy: keep old .ac-logo img rule for any leftover img tags */
.ac-logo svg,
.ac-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

/* Logo mark animation hook */
#ac-logo-mark {
  transform-origin: center;
}

#ac-logo-mark.animated {
  animation: ac-mark-enter 0.6s ease-out both;
}

@keyframes ac-mark-enter {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* Nav */
.ac-nav {
  display: none;
}

.ac-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ac-nav a {
  font-family: var(--ac-font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: var(--ac-radius-sm);
  transition: color var(--ac-transition), background var(--ac-transition);
  white-space: nowrap;
}

.ac-nav a:hover {
  color: var(--ac-aqua);
  background: rgba(255,255,255,0.06);
}

#ac-header.scrolled .ac-nav a {
  color: var(--ac-graphite);
}

#ac-header.scrolled .ac-nav a:hover {
  color: var(--ac-teal);
  background: rgba(15,141,138,0.07);
}

/* Solutions dropdown */
.ac-nav-item--dropdown {
  position: relative;
}

.ac-nav-item--dropdown > a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ac-nav-item--dropdown > a::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--ac-transition);
  flex-shrink: 0;
}

.ac-nav-item--dropdown:hover > a::after,
.ac-nav-item--dropdown.open > a::after {
  transform: rotate(-135deg) translateY(-2px);
}

.ac-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--ac-ivory-warm);
  border: 1px solid var(--ac-border);
  border-radius: var(--ac-radius-md);
  padding: 16px;
  min-width: 580px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  box-shadow: 0 12px 48px rgba(13,20,25,0.14);
  z-index: 10;
}

.ac-nav-item--dropdown:hover .ac-dropdown,
.ac-nav-item--dropdown.open .ac-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.ac-dropdown a {
  color: var(--ac-graphite) !important;
  background: transparent !important;
  padding: 10px 14px;
  border-radius: var(--ac-radius-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ac-dropdown a:hover {
  background: rgba(15,141,138,0.07) !important;
  color: var(--ac-teal) !important;
}

.ac-dropdown-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ac-graphite);
}

.ac-dropdown-sub {
  font-size: 12px;
  color: var(--ac-slate);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

/* Header CTA */
.ac-header-cta {
  display: none;
  flex-shrink: 0;
}

/* Hamburger */
.ac-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  margin-left: auto;
}

.ac-hamburger span {
  display: block;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--ac-transition), opacity var(--ac-transition), background var(--ac-transition);
  transform-origin: center;
}

#ac-header.scrolled .ac-hamburger span {
  background: var(--ac-graphite);
}

.ac-hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

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

.ac-hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav overlay */
#ac-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ac-graphite-2);
  display: flex;
  flex-direction: column;
  padding: 100px clamp(20px,6vw,60px) 40px;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.77,0,0.18,1);
  overflow-y: auto;
}

#ac-mobile-nav.open {
  transform: translateX(0);
}

.ac-mobile-nav-logo {
  margin-bottom: 32px;
  display: inline-flex;
}

.ac-mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 40px;
}

.ac-mobile-nav-links a {
  font-family: var(--ac-font-heading);
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: block;
  transition: color var(--ac-transition);
}

.ac-mobile-nav-links a:hover {
  color: var(--ac-aqua);
}

.ac-mobile-nav-sub {
  padding-left: 20px;
}

.ac-mobile-nav-sub a {
  font-size: clamp(16px, 3vw, 20px) !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,0.55) !important;
  border-bottom-color: rgba(255,255,255,0.04) !important;
}

.ac-mobile-nav-cta {
  margin-top: auto;
}

/* ============================================================
   7. BUTTONS
   ============================================================ */
.ac-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--ac-radius-pill);
  font-family: var(--ac-font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background var(--ac-transition), color var(--ac-transition),
              border-color var(--ac-transition), box-shadow var(--ac-transition),
              transform var(--ac-transition);
  white-space: nowrap;
  border: 2px solid transparent;
  cursor: pointer;
}

.ac-btn:hover {
  transform: translateY(-1px);
}

.ac-btn--teal {
  background: var(--ac-teal);
  color: #fff;
  border-color: var(--ac-teal);
}

.ac-btn--teal:hover {
  background: var(--ac-teal-dark);
  border-color: var(--ac-teal-dark);
  color: #fff;
  box-shadow: var(--ac-shadow-teal);
}

.ac-btn--outline-white {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.4);
}

.ac-btn--outline-white:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}

.ac-btn--outline-teal {
  background: transparent;
  color: var(--ac-teal);
  border-color: var(--ac-teal);
}

.ac-btn--outline-teal:hover {
  background: var(--ac-teal);
  color: #fff;
}

.ac-btn--white {
  background: #fff;
  color: var(--ac-teal);
  border-color: #fff;
}

.ac-btn--white:hover {
  background: var(--ac-ivory);
  border-color: var(--ac-ivory);
  box-shadow: 0 4px 20px rgba(255,255,255,0.2);
}

.ac-btn--sm {
  padding: 10px 20px;
  font-size: 13px;
}

.ac-btn--lg {
  padding: 18px 40px;
  font-size: 17px;
}

.ac-btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ac-teal);
  letter-spacing: 0.02em;
  transition: gap var(--ac-transition), color var(--ac-transition);
}

.ac-btn-arrow::after {
  content: '→';
  font-size: 16px;
  transition: transform var(--ac-transition);
}

.ac-btn-arrow:hover {
  gap: 12px;
  color: var(--ac-teal-dark);
}

.ac-btn-arrow:hover::after {
  transform: translateX(4px);
}

/* ============================================================
   8. SECTIONS
   ============================================================ */
.ac-section {
  padding: 70px 0;
}

.ac-section--dark {
  background: var(--ac-dark-bg);
  color: var(--ac-white);
}

.ac-section--dark h1,
.ac-section--dark h2,
.ac-section--dark h3,
.ac-section--dark h4 {
  color: #FFFFFF;
}

.ac-section--dark p,
.ac-section--dark .ac-body-lg,
.ac-section--dark .ac-body-xl {
  color: rgba(255,255,255,0.80);
}

/* Cards inside dark sections — keep readable */
.ac-section--dark .ac-card {
  background: #1E2F3A;
  border-color: rgba(255,255,255,0.08);
}

.ac-section--dark .ac-card p {
  color: rgba(255,255,255,0.82);
}

.ac-section--dark .ac-card h3 {
  color: #FFFFFF;
}

.ac-section--ivory {
  background: var(--ac-ivory);
}

.ac-section--ivory-warm {
  background: var(--ac-ivory-warm);
}

.ac-section--teal {
  background: var(--ac-teal);
  color: #fff;
}

.ac-section--teal h1,
.ac-section--teal h2,
.ac-section--teal h3 {
  color: #fff;
}

.ac-section--teal p {
  color: rgba(255,255,255,0.8);
}

.ac-section--teal .ac-eyebrow {
  color: rgba(255,255,255,0.75);
}

.ac-section--teal .ac-eyebrow::before {
  background: rgba(255,255,255,0.5);
}

.ac-section-header {
  margin-bottom: 52px;
}

.ac-section-header--centered {
  text-align: center;
}

.ac-section-header--centered .ac-eyebrow {
  justify-content: center;
}

.ac-section-header--centered .ac-eyebrow::before {
  display: none;
}

.ac-section-header--centered .ac-eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--ac-teal);
  flex-shrink: 0;
}

/* ============================================================
   9. HERO SECTIONS
   ============================================================ */
.ac-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ac-dark-bg);
}

.ac-hero--short {
  min-height: 50vh;
}

.ac-hero--tall {
  min-height: 95vh;
}

.ac-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}

.ac-hero-bg img {
  width: 100%;
  height: 110%;
  object-fit: cover;
  object-position: center;
}

.ac-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(13,20,25,0.90) 0%, rgba(11,102,100,0.48) 100%);
}

.ac-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 120px 0 80px;
}

.ac-hero-content-inner {
  max-width: 900px;
}

.ac-hero h1 {
  color: #fff;
  margin-bottom: 24px;
}

.ac-hero .ac-display {
  color: #fff;
}

.ac-hero-sub {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
  max-width: 660px;
  margin-bottom: 40px;
}

.ac-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.ac-hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.55;
  transition: opacity var(--ac-transition);
}

.ac-hero-scroll:hover {
  opacity: 0.9;
}

.ac-hero-scroll-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 500;
}

.ac-hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: ac-scroll-line 1.8s ease-in-out infinite;
}

@keyframes ac-scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   10. CAPABILITY / SERVICE CARDS
   ============================================================ */
.ac-card {
  background: var(--ac-white);
  border-radius: var(--ac-radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--ac-border);
  border-left: 3px solid var(--ac-teal);
  transition: transform 0.38s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow 0.38s cubic-bezier(0.25,0.46,0.45,0.94),
              border-color 0.38s cubic-bezier(0.25,0.46,0.45,0.94),
              background 0.38s cubic-bezier(0.25,0.46,0.45,0.94);
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.ac-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(15,141,138,0.04) 0%, rgba(15,141,138,0) 60%);
  opacity: 0;
  transition: opacity 0.38s cubic-bezier(0.25,0.46,0.45,0.94);
  pointer-events: none;
}

.ac-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 48px rgba(15,141,138,0.14), 0 4px 16px rgba(24,33,38,0.08);
  border-left-color: var(--ac-teal);
  border-color: rgba(15,141,138,0.3);
}

.ac-card:hover::before {
  opacity: 1;
}

.ac-card h3 {
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ac-graphite);
  line-height: 1.3;
  transition: transform 0.38s cubic-bezier(0.25,0.46,0.45,0.94), color 0.38s ease;
}

.ac-card:hover h3 {
  transform: translateY(-2px);
  color: var(--ac-teal-dark);
}

.ac-card--light {
  background: var(--ac-white);
  border: 1px solid var(--ac-border);
  border-left: 3px solid var(--ac-teal);
}

.ac-card--light::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(15,141,138,0.04) 0%, rgba(15,141,138,0) 60%);
  opacity: 0;
  transition: opacity 0.38s cubic-bezier(0.25,0.46,0.45,0.94);
  pointer-events: none;
}

.ac-card--light:hover {
  box-shadow: 0 20px 48px rgba(15,141,138,0.14), 0 4px 16px rgba(24,33,38,0.08);
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(15,141,138,0.3);
}

.ac-card--light:hover::before {
  opacity: 1;
}

.ac-card-number {
  font-family: var(--ac-font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--ac-teal);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.ac-card h3 {
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ac-graphite);
  line-height: 1.3;
}

.ac-card--light h3 {
  color: var(--ac-graphite);
}

.ac-card p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ac-slate);
  margin-bottom: 0;
}

.ac-card--light p {
  color: var(--ac-slate);
}

/* ============================================================
   11. SOLUTIONS GRID (HOMEPAGE)
   ============================================================ */
.ac-solutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.ac-solution-panel {
  background: var(--ac-white);
  border-radius: var(--ac-radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--ac-border);
  border-left: 3px solid var(--ac-teal);
  transition: transform 0.38s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow 0.38s cubic-bezier(0.25,0.46,0.45,0.94),
              border-color 0.38s cubic-bezier(0.25,0.46,0.45,0.94),
              background 0.38s cubic-bezier(0.25,0.46,0.45,0.94);
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.ac-solution-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(15,141,138,0.05) 0%, rgba(15,141,138,0) 65%);
  opacity: 0;
  transition: opacity 0.38s cubic-bezier(0.25,0.46,0.45,0.94);
  pointer-events: none;
}

.ac-solution-panel:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(15,141,138,0.3);
  border-left-color: var(--ac-teal);
  box-shadow: 0 20px 48px rgba(15,141,138,0.14), 0 4px 16px rgba(24,33,38,0.08);
  background: var(--ac-white);
}

.ac-solution-panel:hover::before {
  opacity: 1;
}

.ac-solution-panel h3 {
  color: var(--ac-graphite);
  font-size: clamp(20px, 2.2vw, 26px);
  margin-bottom: 12px;
  transition: transform 0.38s cubic-bezier(0.25,0.46,0.45,0.94), color 0.38s ease;
}

.ac-solution-panel:hover h3 {
  transform: translateY(-2px);
  color: var(--ac-teal-dark);
}

.ac-solution-panel--large {
  padding: 48px 40px;
}

.ac-solution-num {
  font-family: var(--ac-font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--ac-teal);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.ac-solution-panel p {
  color: var(--ac-slate);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 22px;
}

/* ============================================================
   12. WHY AUREX CORE — NUMBERED POINTS
   ============================================================ */
.ac-numbered-points {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ac-numbered-point {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: start;
  transition: transform 0.32s cubic-bezier(0.25,0.46,0.45,0.94);
}

.ac-numbered-point:hover {
  transform: translateX(4px);
}

.ac-numbered-point-num {
  transition: color 0.32s ease;
}

.ac-numbered-point:hover .ac-numbered-point-num {
  color: var(--ac-teal-dark);
}

.ac-numbered-point-num {
  font-family: var(--ac-font-heading);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--ac-teal);
  line-height: 1;
  padding-top: 4px;
}

.ac-numbered-point-content h4 {
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ac-graphite);
}

.ac-numbered-point-content p {
  font-size: 15px;
  color: var(--ac-slate);
  line-height: 1.7;
}

/* ============================================================
   13. PROCESS TIMELINE
   ============================================================ */
.ac-process-timeline {
  position: relative;
}

.ac-process-track {
  display: none;
}

.ac-process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.ac-process-step {
  position: relative;
  padding: 32px 0 32px 40px;
  border-left: 2px solid var(--ac-border);
  transition: border-left-color 0.32s ease;
}

.ac-process-step:hover {
  border-left-color: rgba(15,141,138,0.5);
}

.ac-process-step h3 {
  transition: color 0.32s ease, transform 0.32s cubic-bezier(0.25,0.46,0.45,0.94);
}

.ac-process-step:hover h3 {
  color: var(--ac-teal-dark);
  transform: translateX(3px);
}

.ac-process-step::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 36px;
  width: 12px;
  height: 12px;
  background: var(--ac-teal);
  border-radius: 50%;
  border: 2px solid var(--ac-ivory);
}

.ac-process-step-num {
  font-family: var(--ac-font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ac-teal);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ac-process-step h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ac-graphite);
}

.ac-section--dark .ac-process-step h3 {
  color: var(--ac-white);
}

.ac-process-step p {
  font-size: 15px;
  color: var(--ac-slate);
  line-height: 1.7;
}

.ac-section--dark .ac-process-step {
  border-left-color: rgba(255,255,255,0.12);
}

.ac-section--dark .ac-process-step::before {
  border-color: var(--ac-dark-bg);
}

.ac-section--dark .ac-process-step p {
  color: rgba(255,255,255,0.6);
}

.ac-section--ivory-warm .ac-process-step::before {
  border-color: var(--ac-ivory-warm);
}

.ac-section--ivory .ac-process-step::before {
  border-color: var(--ac-ivory);
}

/* ============================================================
   14. INDUSTRIES — EDITORIAL TEXT LIST
   ============================================================ */
.ac-industries-list {
  display: flex;
  flex-direction: column;
}

.ac-industry-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid transparent;
  padding-left: 0;
  transition: padding-left 0.35s cubic-bezier(0.25,0.46,0.45,0.94),
              border-left-color 0.35s ease;
  cursor: default;
}

.ac-section--ivory .ac-industry-row,
.ac-section--ivory-warm .ac-industry-row {
  border-bottom-color: var(--ac-border);
}

.ac-industry-row:first-child {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.ac-section--ivory .ac-industry-row:first-child,
.ac-section--ivory-warm .ac-industry-row:first-child {
  border-top-color: var(--ac-border);
}

.ac-industry-row:hover {
  padding-left: 16px;
  border-left-color: var(--ac-teal);
}

.ac-industry-name {
  font-family: var(--ac-font-heading);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  color: var(--ac-white);
  transition: color var(--ac-transition);
  letter-spacing: -0.02em;
}

.ac-section--ivory .ac-industry-name,
.ac-section--ivory-warm .ac-industry-name {
  color: var(--ac-graphite);
}

.ac-industry-row:hover .ac-industry-name {
  color: var(--ac-aqua);
}

.ac-section--ivory .ac-industry-row:hover .ac-industry-name,
.ac-section--ivory-warm .ac-industry-row:hover .ac-industry-name {
  color: var(--ac-teal);
}

.ac-industry-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

.ac-section--ivory .ac-industry-desc,
.ac-section--ivory-warm .ac-industry-desc {
  color: var(--ac-slate);
}

/* ============================================================
   15. STATS STRIP
   ============================================================ */
.ac-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 24px;
}

.ac-stat-item {
  text-align: center;
  transition: transform 0.38s cubic-bezier(0.25,0.46,0.45,0.94);
  cursor: default;
}

.ac-stat-item:hover {
  transform: translateY(-4px);
}

.ac-stat-number {
  font-family: var(--ac-font-heading);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  color: var(--ac-teal);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
  transition: color 0.38s ease, transform 0.38s cubic-bezier(0.25,0.46,0.45,0.94);
  display: block;
}

.ac-stat-item:hover .ac-stat-number {
  color: var(--ac-aqua, #2DD4BF);
  transform: scale(1.05);
}

.ac-stat-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
  transition: color 0.38s ease;
}

.ac-stat-item:hover .ac-stat-label {
  color: rgba(255,255,255,0.85);
}

/* ============================================================
   16. INSIGHTS / BLOG CARDS
   ============================================================ */
.ac-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.ac-post-card {
  background: var(--ac-white);
  border-radius: var(--ac-radius-lg);
  overflow: hidden;
  border: 1px solid var(--ac-border);
  transition: transform 0.38s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow 0.38s cubic-bezier(0.25,0.46,0.45,0.94),
              border-color 0.38s cubic-bezier(0.25,0.46,0.45,0.94);
  will-change: transform;
}

.ac-post-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 48px rgba(15,141,138,0.14), 0 4px 16px rgba(24,33,38,0.08);
  border-color: rgba(15,141,138,0.3);
}

.ac-post-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.ac-post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94),
              filter 0.38s ease;
}

.ac-post-card:hover .ac-post-card-img img {
  transform: scale(1.07);
  filter: brightness(1.04);
}

.ac-post-card h2,
.ac-post-card h3 {
  transition: transform 0.38s cubic-bezier(0.25,0.46,0.45,0.94), color 0.38s ease;
}

.ac-post-card:hover h2,
.ac-post-card:hover h3 {
  transform: translateY(-2px);
  color: var(--ac-teal-dark) !important;
}

.ac-post-card .ac-btn-arrow {
  transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.75;
}

.ac-post-card:hover .ac-btn-arrow {
  opacity: 1;
  color: var(--ac-teal) !important;
  transform: translateX(3px);
}

.ac-post-card-body {
  padding: 24px;
}

.ac-post-card-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ac-teal);
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.ac-post-card-meta span {
  color: var(--ac-champagne);
  font-weight: 400;
}

.ac-post-card h3 {
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--ac-graphite);
  margin-bottom: 10px;
  line-height: 1.3;
}

.ac-post-card p {
  font-size: 14px;
  color: var(--ac-slate);
  line-height: 1.6;
}

/* ============================================================
   17. IMAGE ZOOM
   ============================================================ */
.ac-img-zoom {
  overflow: hidden;
  border-radius: var(--ac-radius-lg);
  position: relative;
  transition: box-shadow 0.42s cubic-bezier(0.25,0.46,0.45,0.94),
              border-color 0.42s ease;
  transform: translateZ(0); /* GPU compositing layer */
  backface-visibility: hidden;
}

.ac-img-zoom::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(15,141,138,0) 55%, rgba(11,102,100,0.18) 100%);
  opacity: 0;
  transition: opacity 0.42s cubic-bezier(0.25,0.46,0.45,0.94);
  pointer-events: none;
  z-index: 1;
}

.ac-img-zoom:hover::after {
  opacity: 1;
}

.ac-img-zoom img {
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94),
              filter 0.42s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.ac-img-zoom:hover img {
  transform: scale(1.06);
  filter: brightness(1.05) contrast(1.03);
}

/* ============================================================
   18. SCROLL REVEAL
   ============================================================ */
.ac-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}

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

.ac-reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.ac-reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.ac-reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.ac-reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   19. FOOTER
   ============================================================ */
#ac-footer {
  background: #E6ECEE;
  padding: 70px 0 0;
  border-top: 1px solid var(--ac-border);
}

.ac-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--ac-border);
}

.ac-footer-col-brand .ac-logo {
  margin-bottom: 18px;
}
.ac-footer-col-brand .ac-logo-mark-img {
  height: 44px;
}

.ac-footer-tagline {
  font-size: 14px;
  color: var(--ac-slate);
  line-height: 1.6;
  max-width: 260px;
  margin-bottom: 24px;
}

.ac-social-links {
  display: flex;
  gap: 12px;
}

.ac-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ac-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ac-slate);
  font-size: 14px;
  transition: border-color var(--ac-transition), color var(--ac-transition), background var(--ac-transition);
  text-decoration: none;
}

.ac-social-link:hover {
  border-color: var(--ac-teal);
  color: var(--ac-teal);
  background: rgba(15,141,138,0.1);
}

.ac-footer-heading {
  font-family: var(--ac-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ac-champagne);
  margin-bottom: 18px;
}

.ac-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ac-footer-links a {
  font-size: 14px;
  color: var(--ac-graphite);
  transition: color var(--ac-transition);
}

.ac-footer-links a:hover {
  color: var(--ac-teal);
}

.ac-footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
}

.ac-footer-contact-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ac-teal);
}

.ac-footer-contact-value {
  font-size: 14px;
  color: var(--ac-graphite);
}

.ac-footer-contact-value a {
  color: var(--ac-graphite);
}

.ac-footer-contact-value a:hover {
  color: var(--ac-teal);
}

.ac-footer-bottom {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}

.ac-footer-bottom-text {
  font-size: 13px;
  color: var(--ac-slate);
}

.ac-footer-bottom-links {
  display: flex;
  gap: 20px;
}

.ac-footer-bottom-links a {
  font-size: 13px;
  color: var(--ac-slate);
  transition: color var(--ac-transition);
}

.ac-footer-bottom-links a:hover {
  color: var(--ac-teal);
}

/* Footer logo colours handled by context-aware block above */

/* ============================================================
   20. BACK TO TOP
   ============================================================ */
#ac-back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 50;
  width: 48px;
  height: 48px;
  background: var(--ac-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 4px 20px rgba(15,141,138,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--ac-transition), visibility var(--ac-transition),
              transform var(--ac-transition), background var(--ac-transition);
  cursor: pointer;
  border: none;
}

#ac-back-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#ac-back-top:hover {
  background: var(--ac-teal-dark);
}

/* ============================================================
   21. SCROLL PROGRESS BAR
   ============================================================ */

/* ============================================================
   CURSOR PARALLAX — elements with [data-mouse-parallax]
   JS applies translateX/Y via inline style.
   Use will-change so browser composites on GPU.
   ============================================================ */
[data-mouse-parallax] {
  will-change: transform;
  transition: transform 0.08s linear;
}

/* Deeper layer floats (decorative shapes, section bg images) */
[data-mouse-parallax="deep"] {
  transition: transform 0.12s ease-out;
}

#ac-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--ac-teal);
  z-index: 9998;
  width: 0%;
  transition: width 0.1s linear;
}

/* ============================================================
   22. CUSTOM CURSOR
   ============================================================ */
#ac-cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--ac-teal);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease, opacity 0.2s ease, width 0.2s ease, height 0.2s ease, background 0.2s ease;
  opacity: 0;
  display: none;
}

/* ============================================================
   23. SPLIT LAYOUTS
   ============================================================ */
.ac-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.ac-split--reverse-mobile > :first-child {
  order: 2;
}

.ac-split--reverse-mobile > :last-child {
  order: 1;
}

.ac-split-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ============================================================
   24. CONTACT FORM
   ============================================================ */
.ac-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ac-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ac-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.ac-form label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ac-slate);
}

.ac-section--dark .ac-form label {
  color: rgba(255,255,255,0.5);
}

.ac-form input,
.ac-form textarea,
.ac-form select {
  padding: 14px 18px;
  background: var(--ac-white);
  border: 1.5px solid var(--ac-border);
  border-radius: var(--ac-radius-md);
  font-size: 15px;
  color: var(--ac-graphite);
  transition: border-color var(--ac-transition), box-shadow var(--ac-transition);
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}

.ac-section--dark .ac-form input,
.ac-section--dark .ac-form textarea,
.ac-section--dark .ac-form select {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
}

.ac-form input::placeholder,
.ac-form textarea::placeholder {
  color: rgba(94,106,113,0.6);
}

.ac-section--dark .ac-form input::placeholder,
.ac-section--dark .ac-form textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.ac-form input:focus,
.ac-form textarea:focus,
.ac-form select:focus {
  border-color: var(--ac-teal);
  box-shadow: 0 0 0 3px rgba(15,141,138,0.15);
}

.ac-form textarea {
  min-height: 140px;
  resize: vertical;
}

.ac-form-message {
  padding: 16px 20px;
  border-radius: var(--ac-radius-md);
  font-size: 15px;
  font-weight: 500;
  display: none;
}

.ac-form-message.success {
  background: rgba(15,141,138,0.12);
  border: 1px solid rgba(15,141,138,0.3);
  color: var(--ac-teal);
  display: block;
}

.ac-form-message.error {
  background: rgba(220,60,60,0.1);
  border: 1px solid rgba(220,60,60,0.3);
  color: #dc3c3c;
  display: block;
}

/* ============================================================
   25. CONTACT INFO CARDS
   ============================================================ */
.ac-info-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ac-info-card {
  background: var(--ac-white);
  border-radius: var(--ac-radius-lg);
  padding: 28px;
  border: 1px solid var(--ac-border);
  border-left: 3px solid var(--ac-teal);
  transition: transform 0.38s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow 0.38s cubic-bezier(0.25,0.46,0.45,0.94),
              border-color 0.38s ease;
}

.ac-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(15,141,138,0.12), 0 2px 12px rgba(24,33,38,0.06);
  border-color: rgba(15,141,138,0.25);
  border-left-color: var(--ac-teal-dark);
}

.ac-info-card-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ac-teal);
  margin-bottom: 10px;
}

.ac-info-card-content {
  font-size: 15px;
  color: var(--ac-slate);
  line-height: 1.6;
}

.ac-info-card-content a {
  color: var(--ac-teal);
}

/* ============================================================
   26. TEAM CARDS
   ============================================================ */
.ac-team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.ac-team-card {
  background: var(--ac-white);
  border-radius: var(--ac-radius-lg);
  overflow: hidden;
  border: 1px solid var(--ac-border);
  position: relative;
  transition: transform 0.38s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow 0.38s cubic-bezier(0.25,0.46,0.45,0.94),
              border-color 0.38s cubic-bezier(0.25,0.46,0.45,0.94);
  will-change: transform;
}

.ac-team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(15,141,138,0.04) 0%, rgba(15,141,138,0) 60%);
  opacity: 0;
  transition: opacity 0.38s cubic-bezier(0.25,0.46,0.45,0.94);
  pointer-events: none;
  z-index: 1;
}

.ac-team-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 48px rgba(15,141,138,0.14), 0 4px 16px rgba(24,33,38,0.08);
  border-color: rgba(15,141,138,0.3);
}

.ac-team-card:hover::before { opacity: 1; }

.ac-team-card-photo {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ac-ivory) 0%, var(--ac-ivory-warm) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ac-team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.38s ease;
}

.ac-team-card:hover .ac-team-card-photo img {
  transform: scale(1.07);
  filter: brightness(1.04);
}

.ac-team-placeholder {
  width: 80px;
  height: 80px;
}

.ac-team-card-body {
  padding: 24px;
}

.ac-team-card-name {
  font-family: var(--ac-font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--ac-graphite);
  margin-bottom: 4px;
  transition: transform 0.38s cubic-bezier(0.25,0.46,0.45,0.94), color 0.38s ease;
}

.ac-team-card:hover .ac-team-card-name {
  transform: translateY(-2px);
  color: var(--ac-teal-dark);
}

.ac-team-card-role {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ac-teal);
  margin-bottom: 14px;
}

.ac-team-card-bio {
  font-size: 14px;
  color: var(--ac-slate);
  line-height: 1.65;
}

.ac-team-card-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ac-teal);
  text-decoration: none;
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
  opacity: 0.8;
}

.ac-team-card-linkedin:hover,
.ac-team-card:hover .ac-team-card-linkedin {
  opacity: 1;
  color: var(--ac-teal-dark);
  transform: translateX(2px);
}

/* ============================================================
   27. CAPABILITY LIST (SERVICE PAGES)
   ============================================================ */
.ac-capability-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ac-capability-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ac-border);
  transition: transform 0.32s cubic-bezier(0.25,0.46,0.45,0.94);
}

.ac-capability-item:hover {
  transform: translateX(5px);
}

.ac-capability-item h4 {
  transition: color 0.32s ease;
}

.ac-capability-item:hover h4 {
  color: var(--ac-teal-dark);
}

.ac-section--dark .ac-capability-item {
  border-bottom-color: rgba(255,255,255,0.08);
}

.ac-capability-item::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--ac-teal);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

.ac-capability-item-text {
  flex: 1;
}

.ac-capability-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--ac-graphite);
}

.ac-section--dark .ac-capability-item h4 {
  color: var(--ac-white);
}

.ac-capability-item p {
  font-size: 14px;
  color: var(--ac-slate);
  line-height: 1.6;
}

.ac-section--dark .ac-capability-item p {
  color: rgba(255,255,255,0.55);
}

/* ============================================================
   28. OUTCOMES LIST
   ============================================================ */
.ac-outcomes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ac-outcome-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
}

.ac-outcome-icon {
  width: 20px;
  height: 20px;
  background: rgba(15,141,138,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.ac-outcome-icon::after {
  content: '';
  width: 7px;
  height: 4px;
  border-left: 1.5px solid var(--ac-teal);
  border-bottom: 1.5px solid var(--ac-teal);
  transform: rotate(-45deg) translateY(-1px);
}

/* ============================================================
   29. CALLOUT BOX
   ============================================================ */
.ac-callout {
  background: rgba(15,141,138,0.1);
  border: 1px solid rgba(15,141,138,0.25);
  border-left: 4px solid var(--ac-teal);
  border-radius: var(--ac-radius-md);
  padding: 28px 32px;
}

.ac-callout-title {
  font-family: var(--ac-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--ac-teal);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.ac-callout p {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
}

/* ============================================================
   30. SINGLE POST STYLES
   ============================================================ */
.ac-post-content {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.8;
  color: var(--ac-graphite);
}

.ac-post-content h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin: 48px 0 20px;
}

.ac-post-content h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  margin: 36px 0 16px;
}

.ac-post-content p {
  margin-bottom: 24px;
}

.ac-post-content ul,
.ac-post-content ol {
  margin-bottom: 24px;
  padding-left: 0;
}

.ac-post-content ul li {
  padding: 6px 0 6px 24px;
  position: relative;
}

.ac-post-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  background: var(--ac-teal);
  border-radius: 50%;
}

.ac-post-content ol {
  counter-reset: list-counter;
  list-style: none;
}

.ac-post-content ol li {
  counter-increment: list-counter;
  padding: 6px 0 6px 32px;
  position: relative;
}

.ac-post-content ol li::before {
  content: counter(list-counter) '.';
  position: absolute;
  left: 0;
  color: var(--ac-teal);
  font-weight: 700;
}

.ac-post-content blockquote {
  margin: 36px 0;
  padding: 24px 32px;
  border-left: 4px solid var(--ac-teal);
  background: var(--ac-ivory);
  border-radius: 0 var(--ac-radius-md) var(--ac-radius-md) 0;
  font-size: clamp(17px, 1.6vw, 20px);
  font-style: italic;
  color: var(--ac-graphite);
  line-height: 1.65;
}

.ac-post-content a {
  color: var(--ac-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ac-post-content img {
  border-radius: var(--ac-radius-lg);
  margin: 36px 0;
}

.ac-post-content hr {
  border: none;
  border-top: 1px solid var(--ac-border);
  margin: 48px 0;
}

/* ============================================================
   31. PAGINATION
   ============================================================ */
.ac-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 52px;
}

.ac-pagination a,
.ac-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--ac-radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--ac-border);
  color: var(--ac-slate);
  transition: background var(--ac-transition), color var(--ac-transition), border-color var(--ac-transition);
}

.ac-pagination a:hover {
  background: var(--ac-teal);
  border-color: var(--ac-teal);
  color: #fff;
}

.ac-pagination .current {
  background: var(--ac-teal);
  border-color: var(--ac-teal);
  color: #fff;
}

/* ============================================================
   32. HORIZONTAL SCROLL
   ============================================================ */
.ac-h-scroll-wrap {
  overflow-x: auto;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ac-h-scroll-wrap::-webkit-scrollbar {
  display: none;
}

.ac-h-scroll-wrap.grabbing {
  cursor: grabbing;
}

.ac-h-scroll {
  display: flex;
  gap: 20px;
  width: max-content;
  padding-bottom: 4px;
}

.ac-h-scroll > * {
  flex-shrink: 0;
  width: 320px;
}

/* ============================================================
   33. 404 PAGE
   ============================================================ */
.ac-404 {
  min-height: 100vh;
  background: var(--ac-dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.ac-404-number {
  font-family: var(--ac-font-heading);
  font-size: clamp(100px, 20vw, 200px);
  font-weight: 800;
  color: var(--ac-teal);
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.05em;
  opacity: 0.8;
}

.ac-404 h1 {
  color: var(--ac-white);
  margin-bottom: 20px;
}

.ac-404 p {
  color: rgba(255,255,255,0.6);
  font-size: 18px;
  margin-bottom: 36px;
}

/* ============================================================
   34. UTILITY CLASSES
   ============================================================ */
.ac-text-teal    { color: var(--ac-teal); }
.ac-text-aqua    { color: var(--ac-aqua); }
.ac-text-white   { color: var(--ac-white); }
.ac-text-slate   { color: var(--ac-slate); }
.ac-text-center  { text-align: center; }
.ac-text-right   { text-align: right; }

.ac-mt-xs  { margin-top: 8px; }
.ac-mt-sm  { margin-top: 16px; }
.ac-mt-md  { margin-top: 28px; }
.ac-mt-lg  { margin-top: 48px; }
.ac-mt-xl  { margin-top: 72px; }

.ac-mb-xs  { margin-bottom: 8px; }
.ac-mb-sm  { margin-bottom: 16px; }
.ac-mb-md  { margin-bottom: 28px; }
.ac-mb-lg  { margin-bottom: 48px; }
.ac-mb-xl  { margin-bottom: 72px; }

.ac-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ac-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ac-gap-sm { gap: 12px; }
.ac-gap-md { gap: 24px; }
.ac-gap-lg { gap: 40px; }

.ac-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.ac-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.ac-divider {
  height: 1px;
  background: var(--ac-border);
  margin: 0;
}

.ac-divider--dark {
  background: rgba(255,255,255,0.08);
}

/* Screen reader only */
.ac-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   35. RESPONSIVE — min-width: 480px
   ============================================================ */
@media (min-width: 480px) {
  .ac-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ac-form-row {
    grid-template-columns: 1fr 1fr;
  }

  .ac-industry-row {
    flex-direction: row;
    align-items: baseline;
    gap: 0;
    justify-content: space-between;
  }

  .ac-industry-desc {
    max-width: 50%;
    text-align: right;
  }
}

/* ============================================================
   36. RESPONSIVE — min-width: 768px
   ============================================================ */
@media (min-width: 768px) {
  body {
    font-size: 18px;
  }

  .ac-section {
    padding: 100px 0;
  }

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

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

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

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

  .ac-split {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .ac-split--reverse-mobile > :first-child {
    order: unset;
  }

  .ac-split--reverse-mobile > :last-child {
    order: unset;
  }

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

  .ac-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .ac-process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .ac-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
  }

  .ac-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .ac-hero-content {
    padding: 140px 0 100px;
  }
}

/* ============================================================
   37. RESPONSIVE — min-width: 1024px
   ============================================================ */
@media (min-width: 1024px) {
  .ac-section {
    padding: 120px 0;
  }

  .ac-nav {
    display: flex;
    flex: 1;
    justify-content: center;
  }

  .ac-header-cta {
    display: flex;
  }

  .ac-hamburger {
    display: none;
  }

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

  .ac-posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ac-team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .ac-footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 48px;
  }

  /* Process horizontal timeline */
  .ac-process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
  }

  .ac-process-steps::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--ac-border);
    z-index: 0;
  }

  .ac-process-step {
    padding: 0 24px 0 0;
    border-left: none;
    padding-top: 52px;
  }

  .ac-process-step::before {
    left: 0;
    top: 16px;
    z-index: 1;
  }

  .ac-process-track {
    display: block;
  }

  .ac-split--60-40 {
    grid-template-columns: 1.3fr 1fr;
  }

  .ac-split--40-60 {
    grid-template-columns: 1fr 1.3fr;
  }
}

/* ============================================================
   38. RESPONSIVE — min-width: 1200px
   ============================================================ */
@media (min-width: 1200px) {
  .ac-solutions-grid--structured {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
  }

  .ac-solution-panel--span2 {
    grid-column: span 2;
  }

  .ac-industry-row {
    flex-direction: row;
  }

  .ac-industry-desc {
    max-width: 45%;
  }
}

/* ============================================================
   39. PRINT
   ============================================================ */
@media print {
  #ac-header,
  #ac-preloader,
  #ac-back-top,
  #ac-cursor,
  #ac-progress-bar,
  #ac-mobile-nav {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }
}

/* ============================================================
   SERVICE PAGE IMAGES
   ============================================================ */
.ac-service-img {
  border-radius: var(--ac-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(15,141,138,0.15);
  position: relative;
  transition: box-shadow 0.42s cubic-bezier(0.25,0.46,0.45,0.94),
              border-color 0.42s ease;
}

.ac-service-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(15,141,138,0) 50%, rgba(11,102,100,0.2) 100%);
  opacity: 0;
  transition: opacity 0.42s cubic-bezier(0.25,0.46,0.45,0.94);
  pointer-events: none;
  z-index: 1;
}

.ac-service-img:hover {
  box-shadow: 0 16px 48px rgba(15,141,138,0.18), 0 4px 16px rgba(24,33,38,0.08);
  border-color: rgba(15,141,138,0.35);
}

.ac-service-img:hover::after {
  opacity: 1;
}

.ac-service-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.25,0.46,0.45,0.94),
              filter 0.42s ease;
  will-change: transform;
}

.ac-service-img:hover img {
  transform: scale(1.05);
  filter: brightness(1.05) contrast(1.02);
}

/* ============================================================
   CAPABILITY GRID — Better card layout
   ============================================================ */
.ac-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

@media (max-width: 900px) {
  .ac-grid-2,
  .ac-grid-3 {
    grid-template-columns: 1fr;
  }
  .ac-service-img img {
    height: 260px;
  }
}

/* ============================================================
   CALLOUT BOX — Ivory sections
   ============================================================ */
.ac-callout {
  background: var(--ac-white);
  border-left: 3px solid var(--ac-teal);
  border-radius: var(--ac-radius-md);
  padding: 32px;
  box-shadow: 0 2px 20px rgba(15,141,138,0.08);
  transition: transform 0.38s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow 0.38s cubic-bezier(0.25,0.46,0.45,0.94),
              border-left-color 0.38s ease;
}

.ac-callout:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(15,141,138,0.14), 0 2px 12px rgba(24,33,38,0.06);
  border-left-color: var(--ac-teal-dark);
}

.ac-callout-title {
  font-family: var(--ac-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--ac-graphite) !important;
  margin-bottom: 12px;
}

.ac-callout p {
  color: var(--ac-slate) !important;
  font-size: 15px;
  line-height: 1.7;
}

/* ============================================================
   SECTION HEADERS — Consistent spacing
   ============================================================ */
.ac-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.ac-section-header h2 {
  margin-bottom: 16px;
}

.ac-section-header p {
  font-size: 18px;
  line-height: 1.7;
}

/* Ivory section text overrides for readability */
.ac-section--ivory .ac-section-header h2,
.ac-section--ivory-warm .ac-section-header h2 {
  color: var(--ac-graphite);
}

.ac-section--ivory .ac-section-header p,
.ac-section--ivory-warm .ac-section-header p {
  color: var(--ac-slate);
}

/* ============================================================
   OUTCOMES LIST — Readable on ivory
   ============================================================ */
.ac-outcomes {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.ac-outcome-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: var(--ac-white);
  border-radius: var(--ac-radius-md);
  border: 1px solid var(--ac-border);
  transition: transform 0.32s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow 0.32s cubic-bezier(0.25,0.46,0.45,0.94),
              border-color 0.32s ease;
}

.ac-outcome-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(15,141,138,0.10);
  border-color: rgba(15,141,138,0.3);
}

.ac-outcome-icon {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--ac-teal);
  margin-top: 7px;
}

.ac-outcome-item span {
  color: var(--ac-graphite) !important;
  font-size: 15px;
  line-height: 1.65;
}


/* ============================================================
   PLEXUS CANVAS — auto-injected into .ac-hero sections
   ============================================================ */
.ac-plexus {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  display: block;
}

/* Bump hero text/content above canvas */
.ac-hero-content,
.ac-hero-scroll {
  z-index: 3;
}

/* ============================================================
   TESTIMONIALS GRID
   ============================================================ */
.ac-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.ac-testimonial-card {
  background: var(--ac-white, #fff);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--ac-radius-lg, 12px);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  position: relative;
  transition: transform 0.38s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow 0.38s cubic-bezier(0.25,0.46,0.45,0.94),
              border-color 0.38s cubic-bezier(0.25,0.46,0.45,0.94);
  will-change: transform;
}
.ac-testimonial-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(15,141,138,0.05) 0%, rgba(15,141,138,0) 60%);
  opacity: 0;
  transition: opacity 0.38s cubic-bezier(0.25,0.46,0.45,0.94);
  pointer-events: none;
}
.ac-testimonial-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 48px rgba(15,141,138,0.14), 0 4px 16px rgba(24,33,38,0.06);
  border-color: rgba(15,141,138,0.25);
}
.ac-testimonial-card:hover::before { opacity: 1; }

.ac-testimonial-stars {
  display: flex;
  gap: 3px;
}

.ac-testimonial-quote {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ac-slate, #4a5568);
  font-style: italic;
  margin: 0;
  flex: 1;
}
.ac-testimonial-quote p { margin: 0; }

.ac-testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.ac-testimonial-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ac-testimonial-initials {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ac-teal, #0F8D8A);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.ac-testimonial-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ac-testimonial-author-info strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--ac-dark, #182126);
}
.ac-testimonial-author-info span {
  font-size: 13px;
  color: var(--ac-muted, #9aa5b1);
}

/* ============================================================
   HOVER ANIMATIONS — Mobile adaptation (tap interaction)
   ============================================================ */
@media (pointer: coarse) {
  .ac-card:hover,
  .ac-card--light:hover,
  .ac-solution-panel:hover,
  .ac-post-card:hover,
  .ac-team-card:hover,
  .ac-testimonial-card:hover {
    transform: translateY(-4px) scale(1.01);
  }

  .ac-info-card:hover {
    transform: translateY(-3px);
  }

  .ac-stat-item:hover {
    transform: translateY(-2px);
  }

  .ac-outcome-item:hover,
  .ac-capability-item:hover,
  .ac-numbered-point:hover,
  .ac-process-step:hover h3,
  .ac-industry-row:hover {
    transform: none;
    padding-left: 8px;
  }

  .ac-callout:hover {
    transform: translateY(-2px);
  }

  .ac-img-zoom:hover img,
  .ac-service-img:hover img {
    transform: scale(1.03);
  }
}

/* ============================================================
   HOVER ANIMATIONS — Reduced motion accessibility
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .ac-card,
  .ac-card--light,
  .ac-solution-panel,
  .ac-post-card,
  .ac-team-card,
  .ac-testimonial-card,
  .ac-callout,
  .ac-info-card,
  .ac-stat-item,
  .ac-outcome-item,
  .ac-capability-item,
  .ac-numbered-point,
  .ac-process-step,
  .ac-img-zoom,
  .ac-service-img,
  .ac-img-zoom img,
  .ac-service-img img,
  .ac-card h3,
  .ac-team-card-name,
  .ac-team-card-linkedin,
  .ac-post-card-img img,
  .ac-team-card-photo img,
  .ac-process-step h3,
  .ac-capability-item h4,
  .ac-numbered-point-num,
  .ac-stat-number,
  .ac-stat-label,
  .ac-post-card h2,
  .ac-post-card h3,
  .ac-btn-arrow {
    transition: none !important;
    will-change: auto !important;
  }

  .ac-card:hover,
  .ac-card--light:hover,
  .ac-solution-panel:hover,
  .ac-post-card:hover,
  .ac-team-card:hover,
  .ac-testimonial-card:hover,
  .ac-callout:hover,
  .ac-info-card:hover,
  .ac-stat-item:hover,
  .ac-outcome-item:hover,
  .ac-capability-item:hover,
  .ac-numbered-point:hover,
  .ac-process-step:hover h3,
  .ac-img-zoom:hover img,
  .ac-service-img:hover img {
    transform: none !important;
    filter: none !important;
  }

  .ac-img-zoom::after,
  .ac-service-img::after,
  .ac-card::before,
  .ac-card--light::before,
  .ac-solution-panel::before,
  .ac-team-card::before,
  .ac-testimonial-card::before {
    display: none !important;
  }
}

/* ============================================================
   EDITABLE INTRO — content entered via wp-admin editor
   ============================================================ */
.ac-editable-intro p {
  color: var(--ac-slate);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 18px;
}
.ac-editable-intro p:first-child {
  font-size: 18px;
  line-height: 1.7;
}
.ac-editable-intro p:last-child { margin-bottom: 0; }
.ac-editable-intro strong { color: var(--ac-graphite); }
.ac-editable-intro a { color: var(--ac-teal); text-decoration: underline; }

/* ============================================================
   PARTNER LOGO SLIDER
   ============================================================ */
.ac-logo-section {
  background: var(--ac-graphite);
  padding: 64px 0 72px;
  overflow: hidden;
}
.ac-logo-section .ac-section-header {
  margin-bottom: 48px;
}
.ac-logo-section .ac-eyebrow {
  color: var(--ac-teal-light, #4ECDC4);
  justify-content: center;
}
.ac-logo-section h2 {
  color: rgba(255,255,255,0.9);
  font-size: clamp(20px,2.5vw,28px);
  font-weight: 400;
  margin-top: 12px;
}

/* Strip wrapper — masks overflow, adds fade edges */
.ac-logo-strip {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.ac-logo-strip::before,
.ac-logo-strip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.ac-logo-strip::before {
  left: 0;
  background: linear-gradient(to right, var(--ac-graphite) 0%, transparent 100%);
}
.ac-logo-strip::after {
  right: 0;
  background: linear-gradient(to left, var(--ac-graphite) 0%, transparent 100%);
}

/* Scrolling track — duplicated items for seamless loop */
.ac-logo-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ac-logo-scroll 40s linear infinite;
  will-change: transform;
}
.ac-logo-strip:hover .ac-logo-track {
  animation-play-state: paused;
}

@keyframes ac-logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Individual logo item */
.ac-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  cursor: pointer;
  position: relative;
}
.ac-logo-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(255,255,255,0.08);
}

.ac-logo-item img {
  height: 38px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  /* Default: desaturated, dim */
  filter: grayscale(100%) opacity(0.38) brightness(1.4);
  transition: filter 0.4s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
  transform: scale(1);
  will-change: filter, transform;
}
.ac-logo-item:hover img {
  /* Hover: full real brand colour */
  filter: grayscale(0%) opacity(1) brightness(1);
  transform: scale(1.08) translateY(-2px);
}

/* Tooltip label on hover */
.ac-logo-item[data-name]::before {
  content: attr(data-name);
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
}
.ac-logo-item:hover[data-name]::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Extra bottom padding to accommodate tooltip */
.ac-logo-strip {
  padding-bottom: 40px;
}

/* Mobile */
@media (max-width: 767px) {
  .ac-logo-item {
    padding: 0 24px;
  }
  .ac-logo-item img {
    height: 30px;
    /* Brighter on mobile so logos are easier to read on small screen */
    filter: grayscale(100%) opacity(0.7) brightness(1.6);
  }
  .ac-logo-strip::before,
  .ac-logo-strip::after {
    width: 40px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ac-logo-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding: 0 40px;
  }
  .ac-logo-strip::before,
  .ac-logo-strip::after {
    display: none;
  }
}

/* ============================================================
   PARTNER LOGOS — wp-admin CPT styles
   ============================================================ */
.ac-partner-logo-preview {
  max-width: 160px;
  max-height: 50px;
  object-fit: contain;
}

/* ============================================================
   PRELOADER — PARTNER LOGO TICKER
   ============================================================ */
.ac-pl-logos {
  position: absolute;
  bottom: 80px;          /* sits just above the progress bar */
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: ac-pl-fade-in 0.6s ease 0.8s forwards;
}

.ac-pl-logos-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin: 0;
}

/* Strip + fade masks */
.ac-pl-logo-strip {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.ac-pl-logo-strip::before,
.ac-pl-logo-strip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.ac-pl-logo-strip::before {
  left: 0;
  background: linear-gradient(to right, #060D18 0%, transparent 100%);
}
.ac-pl-logo-strip::after {
  right: 0;
  background: linear-gradient(to left, #060D18 0%, transparent 100%);
}

/* Scrolling track — 3 copies for long seamless loop */
.ac-pl-logo-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ac-pl-logo-scroll 28s linear infinite;
  will-change: transform;
}

@keyframes ac-pl-logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); } /* 3 copies → move 1/3 */
}

/* Individual logo */
.ac-pl-logo-item {
  display: inline-flex;
  align-items: center;
  padding: 0 32px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.ac-pl-logo-item:last-child {
  border-right: none;
}

.ac-pl-logo-item img {
  height: 22px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
  /* White silhouette on dark background */
  filter: brightness(0) invert(1) opacity(0.6);
  transition: filter 0.5s ease, transform 0.4s ease;
  transform: scale(1);
}

/* On hover: drop the white-silhouette filter → real brand colours appear */
.ac-pl-logo-item:hover img {
  filter: brightness(1.05) opacity(1) saturate(1.1);
  transform: scale(1.12) translateY(-2px);
}

/* Mobile: smaller logos */
@media (max-width: 767px) {
  .ac-pl-logos {
    bottom: 72px;
  }
  .ac-pl-logo-item {
    padding: 0 20px;
  }
  .ac-pl-logo-item img {
    height: 16px;
  }
  .ac-pl-logo-strip::before,
  .ac-pl-logo-strip::after {
    width: 50px;
  }
}

/* Reduced motion: no scroll */
@media (prefers-reduced-motion: reduce) {
  .ac-pl-logo-track {
    animation: none;
  }
}

/* ============================================================
   MOBILE FIXES — Comprehensive responsive audit corrections
   ============================================================ */

/* ---- PRELOADER: logo ticker positioning fix ---- */
/* Push ticker up enough so it clears the progress bar on all phones */
@media (max-width: 767px) {
  .ac-pl-logos {
    bottom: 100px;        /* was 72px — clears the 60px progress bar */
    gap: 10px;
  }
  .ac-pl-logos-label {
    font-size: 8px;
    letter-spacing: 0.14em;
  }
  .ac-pl-logo-strip::before,
  .ac-pl-logo-strip::after {
    width: 40px;          /* narrower fade edges on small screens */
  }
  .ac-pl-logo-item {
    padding: 0 16px;      /* tighter gap between logos */
  }
  .ac-pl-logo-item img {
    height: 20px;         /* slightly larger for mobile visibility */
    max-width: 100px;
  }
  /* Preloader bottom bar */
  .ac-pl-bottom {
    padding: 0 20px 28px;
  }
}

/* ---- PRELOADER: mark + glow + corners on small screens ---- */
@media (max-width: 480px) {
  .ac-pl-mark-wrap {
    width: 80px;
    height: 80px;
  }
  .ac-pl-mark {
    width: 72px !important;
  }
  .ac-pl-glow {
    width: 320px;
    height: 320px;
  }
  .ac-pl-corner {
    width: 14px;
    height: 14px;
  }
  .ac-pl-corner--tl { top: 18px;    left: 18px;  }
  .ac-pl-corner--tr { top: 18px;    right: 18px; }
  .ac-pl-corner--bl { bottom: 18px; left: 18px;  }
  .ac-pl-corner--br { bottom: 18px; right: 18px; }
  .ac-pl-center {
    gap: 18px;
  }
  .ac-pl-wordmark {
    gap: 8px;
  }
  .ac-pl-w1,
  .ac-pl-w2 {
    font-size: 20px !important;
    letter-spacing: 0.12em;
  }
  .ac-pl-tagline {
    font-size: 10px;
    letter-spacing: 0.16em;
  }
  .ac-pl-logos {
    bottom: 90px;
  }
  .ac-pl-counter {
    font-size: 18px;
  }
}

/* ---- PRELOADER: tooltip off on mobile (touch has no hover) ---- */
@media (pointer: coarse) {
  .ac-logo-item[data-name]::before,
  .ac-logo-item:hover[data-name]::before {
    display: none;
  }
  .ac-logo-item:hover img {
    transform: scale(1);
  }
  .ac-pl-logo-item:hover img,
  .ac-pl-logo-item:active img {
    filter: brightness(1.05) opacity(1) saturate(1.1);
  }
}

/* ---- HERO: hide scroll indicator on touch / mobile ---- */
@media (max-width: 767px) {
  .ac-hero-scroll {
    display: none;
  }
  /* Reduce hero content padding so text breathes on small screens */
  .ac-hero-content {
    padding: 80px 0 50px;
  }
  .ac-hero-content-inner {
    text-align: left;
  }
  /* Short hero min-height on mobile */
  .ac-hero--short {
    min-height: 52vmax;
  }
}

/* ---- NAVIGATION: mobile nav padding too large ---- */
@media (max-width: 767px) {
  #ac-mobile-nav {
    padding: 72px clamp(20px, 6vw, 36px) 32px;
  }
}

/* ---- FORMS: prevent iOS auto-zoom + improve touch targets ---- */
@media (max-width: 767px) {
  .ac-form input[type="text"],
  .ac-form input[type="email"],
  .ac-form input[type="tel"],
  .ac-form input[type="url"],
  .ac-form textarea,
  .ac-form select {
    font-size: 16px;      /* stops iOS zoom on focus */
    padding: 16px 14px;
    min-height: 48px;     /* Apple recommended touch target */
  }
  .ac-form-row {
    gap: 14px;
  }
}

/* ---- SERVICE IMAGE: too tall on small phones ---- */
@media (max-width: 480px) {
  .ac-service-img img {
    height: 200px;
  }
}

/* ---- FOOTER: reduce gap on mobile ---- */
@media (max-width: 767px) {
  .ac-footer-grid {
    gap: 32px;
    grid-template-columns: 1fr;
  }
  .ac-footer {
    padding: 48px 0 24px;
  }
  .ac-footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ---- BACK TO TOP: reposition on mobile ---- */
@media (max-width: 767px) {
  #ac-back-top {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
  #ac-back-top svg {
    width: 16px;
    height: 16px;
  }
}

/* ---- STATS GRID: single column on very small screens ---- */
@media (max-width: 400px) {
  .ac-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .ac-stat-number {
    font-size: clamp(32px, 10vw, 48px);
  }
}

/* ---- LOGO SLIDER (homepage): fix section padding on mobile ---- */
@media (max-width: 767px) {
  .ac-logo-section {
    padding: 40px 0 56px;
  }
  .ac-logo-section .ac-section-header {
    margin-bottom: 28px;
    padding: 0 20px;
  }
  .ac-logo-section h2 {
    font-size: clamp(16px, 4vw, 22px);
  }
  /* Reduce bottom padding since no tooltip on mobile */
  .ac-logo-strip {
    padding-bottom: 20px;
  }
}

/* ---- SECTION SPACING: reduce vertical gaps on mobile ---- */
@media (max-width: 767px) {
  .ac-section {
    padding: 52px 0;
  }
  .ac-section-header {
    margin-bottom: 36px;
  }
  .ac-split {
    gap: 40px !important;
  }
  .ac-numbered-points {
    gap: 20px;
  }
  .ac-process-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ac-industries-list {
    gap: 0;
  }
  .ac-industry-row {
    padding: 16px 0;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
  .ac-industry-desc {
    font-size: 13px;
  }
  /* Team grid */
  .ac-team-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px;
  }
  /* Post cards */
  .ac-posts-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  /* Testimonials */
  .ac-testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 28px;
  }
  .ac-testimonial-card {
    padding: 24px;
  }
  /* Solutions panel grid */
  .ac-solutions-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .ac-solution-panel--span2 {
    grid-column: span 1 !important;
  }
}

/* ---- PREVENT HORIZONTAL SCROLL on all screens ---- */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
.ac-logo-section,
.ac-logo-strip,
.ac-pl-logo-strip {
  overflow-x: hidden;
}

/* ---- CONTAINER: ensure safe padding on very small phones ---- */
@media (max-width: 374px) {
  .ac-container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .ac-hero h1,
  .ac-display {
    font-size: clamp(26px, 8vw, 38px);
  }
  .ac-pl-logos {
    bottom: 82px;
  }
}
