/* Anayanex About — light section, dark accents on key components */
.ax-about.wpr-about-area,
.ax-about {
  --ax-blue: #0066FF;
  --ax-cyan: #00E0FF;
  --ax-ink: #0b1220;
  --ax-muted: #5b6472;
  --ax-icon-blue: #3b82f6;
  --ax-icon-green: #22c55e;
  --ax-icon-orange: #f97316;
  position: relative;
  overflow: visible;
  background: #fff !important;
  padding: 56px 0 40px !important;
  margin-bottom: 0 !important;
  border: 0 !important;
}

/* Kill legacy agenio about layout leftovers */
.ax-about .section-inner,
.ax-about .bottom-shape-area,
.ax-about .about-bottom-content,
.ax-about .section-top-area {
  all: unset;
  display: none !important;
}

.ax-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px 56px;
  align-items: center;
}

.ax-about__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--ax-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ax-about__eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--ax-blue), var(--ax-cyan));
}

.ax-about__title {
  margin: 0 0 18px;
  color: var(--ax-ink);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 14em;
}

.ax-about-highlight {
  color: var(--ax-blue);
  position: relative;
  display: inline;
}

.ax-about-highlight::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.05em;
  height: 0.28em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' fill='none'%3E%3Cpath d='M2 8c28-6 58-6 86 0 10 2 20 2 30-1' stroke='%2370b0ff' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  z-index: -1;
  animation: ax-about-draw 1.1s ease-out 0.4s both;
}

.ax-about__lead {
  margin: 0 0 28px;
  max-width: 42ch;
  color: var(--ax-muted);
  font-size: 17px;
  line-height: 1.65;
}

.ax-about-underline {
  text-decoration: underline;
  text-decoration-color: rgba(0, 102, 255, 0.45);
  text-underline-offset: 3px;
}

.ax-about__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

/* Dark theme — stat cards only */
.ax-about__stat {
  border-radius: 18px;
  padding: 18px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, #0b1220 0%, #121a2b 55%, #0d1524 100%);
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.ax-about__stat:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
}

.ax-about__stat--blue {
  background: linear-gradient(160deg, #0b1220 0%, #102038 100%);
  border-color: rgba(59, 130, 246, 0.28);
}

.ax-about__stat--green {
  background: linear-gradient(160deg, #0b1220 0%, #10281c 100%);
  border-color: rgba(34, 197, 94, 0.28);
}

.ax-about__stat--orange {
  background: linear-gradient(160deg, #0b1220 0%, #2a1a10 100%);
  border-color: rgba(249, 115, 22, 0.28);
}

.ax-about__stat-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  margin-bottom: 16px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
}

.ax-about__stat--blue .ax-about__stat-icon { background: var(--ax-icon-blue); }
.ax-about__stat--green .ax-about__stat-icon { background: var(--ax-icon-green); }
.ax-about__stat--orange .ax-about__stat-icon { background: var(--ax-icon-orange); }

.ax-about__stat-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.ax-about__stat-value {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.ax-about__stat-suffix {
  font-size: 0.55em;
  font-weight: 700;
  vertical-align: middle;
  color: rgba(255, 255, 255, 0.85);
}

.ax-about__stat-desc {
  margin: 0;
  color: rgba(226, 232, 240, 0.7);
  font-size: 13px;
  line-height: 1.45;
}

.ax-about__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.ax-about__checks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ax-ink);
  font-size: 14px;
  font-weight: 600;
}

.ax-about__check-icon {
  display: inline-flex;
  flex-shrink: 0;
}

.ax-about__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

/* Dark theme — CTA button only */
.ax-about__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  background: linear-gradient(160deg, #0b1220 0%, #162033 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.ax-about__btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  color: #fff !important;
  background: linear-gradient(160deg, #121a2b 0%, #1a2740 100%);
  box-shadow:
    0 16px 34px rgba(15, 23, 42, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.ax-about__link {
  color: var(--ax-ink) !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline !important;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.ax-about__visual {
  position: relative;
  min-height: 520px;
}

.ax-about__media {
  position: absolute;
  inset: 0 0 0 8%;
  border-radius: 28px 28px 28px 0;
  overflow: hidden;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%, 0 22%);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.14);
}

.ax-about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
}

.ax-about__float {
  position: absolute;
  z-index: 3;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
  padding: 12px 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ax-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.ax-about__float--tl {
  top: 12%;
  left: 0;
  max-width: 170px;
}

.ax-about__float--tr {
  top: 8%;
  right: 4%;
  max-width: 180px;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

/* Dark theme — Industries float only */
.ax-about__float--br {
  right: 6%;
  bottom: 12%;
  background: linear-gradient(160deg, #0b1220 0%, #162033 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow:
    0 14px 32px rgba(15, 23, 42, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ax-about__float-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eaf2ff;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.ax-about__float-icon--light {
  background: rgba(255, 255, 255, 0.18);
}

.ax-about__float-dash {
  width: 28px;
  height: 3px;
  border-radius: 99px;
  background: var(--ax-blue);
  margin-top: 4px;
}

.ax-about__scribble {
  position: absolute;
  z-index: 4;
  top: 20%;
  left: 18%;
  width: 70px;
  height: auto;
  animation: ax-about-scribble 2.8s ease-in-out infinite;
}

.ax-about__dots {
  position: absolute;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(rgba(15, 23, 42, 0.14) 1.4px, transparent 1.5px);
  background-size: 12px 12px;
  z-index: 1;
  pointer-events: none;
}

.ax-about__dots--tr {
  top: -10px;
  right: -8px;
}

.ax-about__dots--bl {
  left: 8%;
  bottom: -8px;
  width: 90px;
  height: 90px;
}

/* Reveal + float animations — visible by default if JS delayed */
.ax-about-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--ax-delay, 0s);
}

.ax-about-reveal--right {
  transform: translateX(36px);
}

.ax-about.is-inview .ax-about-reveal,
.ax-about.ax-about--ready .ax-about-reveal {
  opacity: 1;
  transform: none;
}

.ax-about-float {
  animation: ax-about-bob 4.2s ease-in-out infinite;
}

.ax-about__float--tr {
  animation-delay: 0.6s;
}

.ax-about__float--br {
  animation-delay: 1.1s;
}

@keyframes ax-about-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes ax-about-scribble {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(4px, -3px) rotate(2deg); }
}

@keyframes ax-about-draw {
  from { transform: scaleX(0); transform-origin: left center; opacity: 0; }
  to { transform: scaleX(1); transform-origin: left center; opacity: 1; }
}

@media (max-width: 1100px) {
  .ax-about__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .ax-about__title {
    max-width: none;
  }
  .ax-about__visual {
    min-height: 420px;
  }
  .ax-about__media {
    inset: 0;
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%, 0 14%);
  }
}

@media (max-width: 767px) {
  .ax-about__stats {
    grid-template-columns: 1fr;
  }
  .ax-about__visual {
    min-height: 360px;
  }
  .ax-about__float--tr {
    display: none;
  }
  .ax-about__scribble {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ax-about-reveal,
  .ax-about-float,
  .ax-about__scribble,
  .ax-about-highlight::after {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Neutralize old about chrome when new layout is active */
.ax-about.wpr-about-area .border-1,
.ax-about.wpr-about-area .bg-white {
  background: transparent !important;
  border: 0 !important;
}
