/* About Us — premium page layout */

.about-page {
  --ap-ink: #0f1419;
  --ap-ink-soft: #1a222d;
  --ap-muted: #5c6675;
  --ap-muted-light: rgba(244, 247, 250, 0.72);
  --ap-white: #ffffff;
  --ap-accent: var(--saintblue, #1abaef);
  --ap-accent-deep: #0e9fd4;
  --ap-accent-glow: rgba(26, 186, 239, 0.35);
  --ap-line: rgba(15, 20, 25, 0.08);
  --ap-line-light: rgba(255, 255, 255, 0.12);
  --ap-radius: 18px;
  --ap-radius-sm: 12px;
  --ap-shadow: 0 18px 50px rgba(8, 15, 24, 0.12);
  --ap-container: 1180px;
  --ap-gutter: clamp(1.25rem, 4.5vw, 2.5rem);
  background: var(--ap-white);
  color: var(--ap-ink);
}

.about-page .ap-page h1,
.about-page .ap-page h2,
.about-page .ap-page h3,
.about-page .ap-page h4,
.about-page .ap-page p {
  text-align: inherit;
  letter-spacing: normal;
  text-transform: none;
  margin-top: 0;
}

.ap-container {
  width: min(var(--ap-container), calc(100% - (var(--ap-gutter) * 2)));
  margin-inline: auto;
}

.ap-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--ap-accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ap-kicker--light {
  color: rgba(26, 186, 239, 0.92);
}

.ap-h2 {
  font-family: Mulish, sans-serif;
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ap-ink);
  text-wrap: balance;
}

.ap-h2--light {
  color: var(--ap-white);
}

.ap-accent-dot {
  color: var(--ap-accent);
}

.ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: Mulish, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.ap-btn:hover {
  transform: translateY(-2px);
}

.ap-btn--primary {
  background: var(--ap-accent);
  color: var(--ap-white);
  box-shadow: 0 10px 28px var(--ap-accent-glow);
}

.ap-btn--primary:hover {
  background: var(--ap-accent-deep);
}

.ap-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--ap-white);
  backdrop-filter: blur(8px);
}

.ap-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.ap-btn--large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.ap-text-link {
  color: var(--ap-accent);
  font-weight: 700;
  text-decoration: none;
}

.ap-text-link:hover {
  text-decoration: underline;
}

/* Hero */
.ap-hero {
  position: relative;
  min-height: clamp(28rem, 78vh, 42rem);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.ap-hero__media {
  position: absolute;
  inset: 0;
}

.ap-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.ap-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 12, 18, 0.35) 0%, rgba(8, 12, 18, 0.15) 34%, rgba(8, 12, 18, 0.82) 100%),
    radial-gradient(circle at 80% 20%, rgba(26, 186, 239, 0.18), transparent 42%);
}

.ap-hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(7rem, 14vw, 9rem) 0 clamp(3rem, 6vw, 4.5rem);
  max-width: 46rem;
}

.ap-hero__title {
  margin: 0;
  font-family: Mulish, sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--ap-white);
  text-wrap: balance;
}

.ap-hero__title span {
  color: rgba(255, 255, 255, 0.88);
}

.ap-hero__lead {
  max-width: 34rem;
  margin: 1.25rem 0 0;
  color: var(--ap-muted-light);
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.ap-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* Stats */
.ap-stats {
  position: relative;
  z-index: 2;
  margin-top: -2.5rem;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.ap-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0.35rem;
  border-radius: calc(var(--ap-radius) + 4px);
  background: var(--ap-line);
  box-shadow: var(--ap-shadow);
}

.ap-stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--ap-white);
}

.ap-stat:first-child {
  border-radius: var(--ap-radius) 0 0 var(--ap-radius);
}

.ap-stat:last-child {
  border-radius: 0 var(--ap-radius) var(--ap-radius) 0;
}

.ap-stat__value {
  color: var(--ap-accent);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.ap-stat__label {
  color: var(--ap-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

/* Story */
.ap-story {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.ap-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.ap-story__media {
  position: relative;
  max-width: 32rem;
  margin-inline: auto;
}

.ap-story__media::after {
  content: none;
}

.ap-story__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.ap-story__copy p {
  margin: 0 0 1rem;
  color: var(--ap-muted);
  font-size: 1rem;
  line-height: 1.72;
  text-wrap: pretty;
}

.ap-story__emphasis {
  padding: 0.85rem 1rem;
  border-radius: var(--ap-radius-sm);
  background: rgba(26, 186, 239, 0.08);
  color: var(--ap-ink) !important;
  font-weight: 600;
}

.ap-story__copy .ap-btn {
  margin-top: 0.5rem;
}

/* Timeline */
.ap-timeline {
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(3.5rem, 7vw, 5rem);
  background:
    radial-gradient(circle at 15% 0%, rgba(26, 186, 239, 0.14), transparent 34%),
    linear-gradient(180deg, #101820 0%, #0b1016 100%);
  overflow: hidden;
}

.ap-timeline__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.ap-timeline__intro {
  max-width: 30rem;
  margin: 0.85rem 0 0;
  color: var(--ap-muted-light);
  line-height: 1.65;
}

.ap-timeline__controls {
  display: flex;
  gap: 0.65rem;
}

.ap-timeline__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--ap-line-light);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ap-white);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ap-timeline__nav:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(26, 186, 239, 0.45);
}

.ap-timeline__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.ap-timeline__nav svg {
  width: 1.1rem;
  height: 1.1rem;
}

.ap-timeline__progress {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.ap-timeline__progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ap-accent), #67d8ff);
  transition: width 0.15s ease;
}

.ap-timeline__viewport {
  position: relative;
  margin-top: 2rem;
}

.ap-timeline__viewport::before,
.ap-timeline__viewport::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 1.5rem;
  width: clamp(2rem, 7vw, 5rem);
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.ap-timeline__viewport::before {
  left: 0;
  background: linear-gradient(90deg, #0b1016 20%, transparent);
}

.ap-timeline__viewport::after {
  right: 0;
  background: linear-gradient(270deg, #0b1016 20%, transparent);
}

.ap-timeline__viewport.is-at-start::before,
.ap-timeline__viewport.is-at-end::after {
  opacity: 0;
}

.ap-timeline__track,
.about-page .company-timeline {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0.25rem var(--ap-gutter) 1.5rem;
  overflow-x: auto;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--ap-gutter);
  scrollbar-width: none;
  -ms-overflow-style: none;
  align-items: stretch;
}

.ap-timeline__track::-webkit-scrollbar,
.about-page .company-timeline::-webkit-scrollbar {
  display: none;
}

.ap-milestone,
.about-page .timeline-block {
  position: relative;
  flex: 0 0 auto;
  width: min(19.5rem, 78vw);
  min-height: unset !important;
  height: auto;
  margin: 0;
  padding: 1.35rem 1.35rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--ap-radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  scroll-snap-align: start;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.ap-milestone::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.35rem;
  right: 1.35rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ap-accent), transparent);
  opacity: 0.85;
}

.ap-milestone:hover {
  transform: translateY(-4px);
  border-color: rgba(26, 186, 239, 0.35);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.ap-milestone.is-featured {
  width: min(21rem, 82vw);
  border-color: rgba(26, 186, 239, 0.35);
  background: linear-gradient(180deg, rgba(26, 186, 239, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.ap-milestone__year,
.about-page .text-block-151 {
  margin: 0 0 0.75rem;
  color: var(--ap-accent);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

.ap-milestone__title,
.about-page .text-block-152 {
  margin: 0 0 0.75rem;
  color: var(--ap-white);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  text-wrap: balance;
}

.ap-milestone__body,
.about-page .paragraph-226 {
  margin: 0;
  color: var(--ap-muted-light);
  font-size: 0.9375rem;
  line-height: 1.62;
  text-wrap: pretty;
}

.ap-milestone__link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--ap-accent);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.ap-milestone__link:hover {
  text-decoration: underline;
}

.ap-milestone__badge,
.about-page .image-511 {
  width: auto;
  max-width: 100%;
  max-height: 3.75rem;
  margin-top: 1rem;
  object-fit: contain;
  object-position: left center;
  filter: brightness(1.05);
}

/* Sectors */
.ap-sectors {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(26, 186, 239, 0.08), transparent 28%),
    #f7f9fb;
}

.ap-sectors__head {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.ap-sectors__head p {
  margin: 1rem 0 0;
  color: var(--ap-muted);
  line-height: 1.7;
  text-wrap: pretty;
}

.ap-sectors__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.ap-sector,
.about-page .div-block-690 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
  height: auto;
  min-height: 9.5rem;
  padding: 1.25rem 1rem;
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius-sm);
  background: var(--ap-white);
  box-shadow: 0 8px 24px rgba(15, 20, 25, 0.04);
  backdrop-filter: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.ap-sector:hover,
.about-page .div-block-690:hover {
  transform: translateY(-4px);
  border-color: rgba(26, 186, 239, 0.22);
  box-shadow: 0 16px 34px rgba(15, 20, 25, 0.08);
}

.ap-sector .heading-390.darkv,
.about-page .div-block-690 .heading-390.darkv {
  margin: 0;
  color: var(--ap-ink);
  font-size: 0.9rem;
  line-height: 1.35;
  text-align: center;
}

.ap-sector .client-type,
.about-page .client-type {
  width: 3.75rem;
  height: 3.75rem;
  transition: transform 0.22s ease;
}

.ap-sector:hover .client-type {
  transform: scale(1.06);
}

/* Proof */
.ap-proof {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.ap-proof__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: stretch;
}

.ap-proof__copy p {
  margin: 1rem 0 0;
  color: var(--ap-muted);
  line-height: 1.7;
  text-wrap: pretty;
}

.ap-proof__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
}

.ap-quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--ap-shadow);
}

.ap-quote blockquote {
  margin: 0;
  padding: 0 0 0 1.25rem;
  border-left: 4px solid #1ab1ef;
}

.ap-quote blockquote p {
  margin: 0;
  color: var(--ap-ink);
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.68;
  text-wrap: pretty;
}

.ap-quote figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ap-line);
}

.ap-quote figcaption strong {
  color: var(--ap-ink);
  font-size: 0.9375rem;
}

.ap-quote figcaption span {
  color: var(--ap-muted);
  font-size: 0.8125rem;
}

/* CTA */
.ap-cta {
  padding: clamp(4rem, 8vw, 5.5rem) 0 clamp(5rem, 10vw, 7rem);
  background:
    radial-gradient(circle at 20% 0%, rgba(26, 186, 239, 0.22), transparent 38%),
    linear-gradient(135deg, #0f1419 0%, #15202b 100%);
}

.ap-cta__inner {
  text-align: center;
}

.ap-cta__inner p {
  max-width: 32rem;
  margin: 1rem auto 0;
  color: var(--ap-muted-light);
  line-height: 1.65;
}

.ap-cta__inner .ap-btn {
  margin-top: 1.75rem;
}

/* Hide legacy Webflow sections if any remain */
.about-page .hero-min-100vh,
.about-page .standard-section,
.about-page .saintfg---restrictor,
.about-page .spacer,
.about-page .divider-home {
  display: none !important;
}

@media screen and (max-width: 991px) {
  .ap-stats__grid {
    grid-template-columns: 1fr;
  }

  .ap-stat:first-child,
  .ap-stat:last-child {
    border-radius: 0;
  }

  .ap-stat:first-child {
    border-radius: var(--ap-radius) var(--ap-radius) 0 0;
  }

  .ap-stat:last-child {
    border-radius: 0 0 var(--ap-radius) var(--ap-radius);
  }

  .ap-story__grid,
  .ap-proof__grid {
    grid-template-columns: 1fr;
  }

  .ap-sectors__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ap-timeline__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media screen and (max-width: 767px) {
  .ap-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ap-hero__actions .ap-btn {
    width: 100%;
  }

  .ap-timeline__controls {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ap-btn,
  .ap-milestone,
  .ap-sector,
  .ap-timeline__nav,
  .ap-timeline__progress-fill,
  .ap-timeline__viewport::before,
  .ap-timeline__viewport::after {
    transition: none;
  }

  .ap-milestone:hover,
  .ap-sector:hover,
  .ap-btn:hover {
    transform: none;
  }
}
