/* About Us page */
.ab-hero { position: relative; height: 80vh; min-height: 420px; overflow: hidden; margin-bottom: 60px; display: grid; place-items: center; background: #000; }
.ab-hero video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: 100%; height: 100%; object-fit: cover; transform: translate(-50%, -50%); z-index: 0; }
.ab-hero-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); z-index: 1; }
.ab-hero-title { position: relative; z-index: 2; margin: 0; text-align: center; color: #fff; font-weight: 700; font-size: clamp(34px, 4.4vw, 64px); line-height: 1.2; }
.ab-hero-line { display: block; }

.ab-intro { background: #000; color: #fff; padding: 48px 0; }
.ab-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.ab-intro-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.ab-intro-text { position: sticky; top: 100px; padding-right: 48px; }
.ab-small-title { margin: 0 0 8px; font-size: 18px; text-transform: uppercase; background: linear-gradient(153.53deg, #3567DB 2.54%, rgba(66, 52, 219, .65) 101.34%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ab-h2 { font-size: 36px; font-weight: 500; line-height: 1.25; margin: 0 0 24px; color: #fff; }
.ab-para { color: var(--muted, #999); font-size: 18px; line-height: 1.6; margin: 0; }
.ab-para a { color: inherit; text-decoration: none; }
.ab-para a:hover { color: var(--accent); }
.ab-team { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ab-member { margin: 0; }
.ab-member-img { overflow: hidden; border-radius: 6px; aspect-ratio: 1 / 1.2; background: #111; }
.ab-member-img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1); transition: filter .5s var(--ease, ease), transform .7s var(--ease, ease); }
.ab-member:hover .ab-member-img img { filter: grayscale(0); transform: scale(1.04); }
.ab-member figcaption { margin-top: 16px; }
.ab-member h3 { margin: 0 0 4px; font-size: 20px; font-weight: 500; color: #fff; }
.ab-member p { margin: 0; color: #999; font-size: 16px; line-height: 1.5; }

.ab-why { padding: 48px 0 96px; overflow-x: clip; }
.ab-why-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; align-items: start; }
.ab-why-head { position: sticky; top: 100px; }
.ab-hl { color: #265BD6; }
.ab-why-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; padding-bottom: 75px; }
.ab-why-card { background: #1D222B; border-radius: 12px; padding: 24px; min-height: 290px; color: #d1d1d1; }
/* Hidden start state only once about.js arms the reveal, so no-JS visitors and crawlers see the cards. */
.ab-why-cards.is-armed .ab-why-card { opacity: 0; transition: opacity .6s ease-out, transform .6s ease-out; }
.ab-why-cards.is-armed .ab-from-left .ab-why-card { transform: translateX(-40px); }
.ab-why-cards.is-armed .ab-from-right .ab-why-card { transform: translateX(40px); }
.ab-why-cards.is-armed .ab-why-card.is-visible { opacity: 1; transform: none; }
.ab-shift { position: relative; top: 60px; }
.ab-why-card h3 { color: #fff; margin: 0 0 10px; font-size: 24px; font-weight: 500; }
.ab-underline { display: block; width: 50px; height: 2px; margin-bottom: 15px; background: linear-gradient(153.53deg, #3567DB 2.54%, rgba(66, 52, 219, .65) 101.34%); }
.ab-why-card p { margin: 0; font-size: 16px; line-height: 1.6; color: #999; }

.ab-logos { padding: 48px var(--gutter, 20px); }
.ab-logos-desktop { display: flex; flex-direction: column; gap: 50px; }
.ab-shadow-box { position: relative; overflow: hidden; display: flex; justify-content: center; }
.ab-logo-row { display: flex; justify-content: center; align-items: center; gap: 52px; padding: 20px 0; flex-wrap: wrap; }
.ab-slide img { display: block; max-height: 56px; max-width: min(170px, 100%); width: auto; height: auto; object-fit: contain; opacity: .85; transition: opacity .3s, transform .3s; }
.ab-slide:hover img { opacity: 1; transform: scale(1.06); }
.ab-tag { display: inline-block; white-space: nowrap; font-size: clamp(20px, 1.8vw, 28px); font-weight: 600; letter-spacing: .02em; color: #fff; opacity: .7; transition: opacity .3s, transform .3s, color .3s; }
.ab-slide:hover .ab-tag { opacity: 1; color: var(--accent); transform: scale(1.06); }
.ab-track .ab-tag { font-size: 18px; white-space: normal; text-align: center; }
.ab-since { margin-top: 16px; }
.ab-case-desc, .ab-article-desc { margin: 0 0 14px; color: #999; font-size: 15px; line-height: 1.55; }
.ab-article-desc { margin-top: 8px; }
.ab-logos-mobile { display: none; }
.ab-track-wrap { overflow: hidden; }
.ab-track { display: flex; transition: transform .45s var(--ease, ease); }
.ab-track .ab-slide { flex: 0 0 50%; display: flex; justify-content: center; align-items: center; height: 90px; padding: 0 12px; }
.ab-slider-controls { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.ab-slider-controls button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line, #333); background: transparent; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.ab-slider-controls button:hover { border-color: var(--accent); color: var(--accent); }

.ab-join { padding: 64px var(--gutter, 20px); }
.ab-join-wrap { max-width: 27.75rem; }
.ab-join-title { font-size: 48px; color: #fff; margin: 0 0 16px; line-height: 1.15; }
.ab-join-text { font-size: 20px; color: #999; line-height: 1.5; margin: 0 0 28px; }

.ab-cases, .ab-articles { padding: 64px var(--gutter, 20px); }
.ab-p-head { font-size: 16px; color: #3567DB; text-transform: uppercase; margin: 0 0 8px; }
.ab-big { font-size: clamp(32px, 3.4vw, 48px); font-weight: 500; margin: 0; padding-bottom: 30px; color: #fff; }
.ab-case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ab-case { position: relative; display: flex; flex-direction: column; background: #1D222B; border-radius: 12px; padding: 16px; text-decoration: none; color: inherit; overflow: hidden; cursor: none; }
.ab-case::before { content: ""; position: absolute; inset: 0; padding: 2px; border-radius: 12px; background: linear-gradient(90deg, #3567DB, #ff4ecd, #3567DB); background-size: 200% 100%; opacity: 0; -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; z-index: 3; transition: opacity .3s; }
.ab-case:hover::before { opacity: 1; animation: ab-border 2s linear infinite; }
@keyframes ab-border { to { background-position: 200% 0; } }
.ab-case-img { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; }
.ab-case-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease, ease); }
.ab-case:hover .ab-case-img img { transform: scale(1.05); }
.ab-case-label { position: absolute; top: 50%; left: 50%; background: #fff; color: #556a9b; padding: 5px 13px; font-size: 14px; font-weight: 700; border-radius: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, -50%); transition: opacity .2s; }
.ab-case:hover .ab-case-label { opacity: 1; }
.ab-case h3 { flex-grow: 1; font-size: 20px; font-weight: 500; line-height: 1.35; color: #ddd; margin: 18px 0 12px; }
.ab-readmore { display: inline-flex; align-items: center; gap: 8px; color: #999; font-size: 13px; font-weight: 600; }
.ab-arrow { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #000; transition: transform .3s; }
.ab-case:hover .ab-arrow { transform: rotate(-45deg); }
.ab-nav-btn { display: flex; justify-content: flex-end; margin-top: 32px; }

.ab-article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ab-article-img { display: block; overflow: hidden; border-radius: 18px; }
.ab-article-img img { width: 100%; height: 16.4rem; object-fit: cover; display: block; transition: transform .6s var(--ease, ease); }
.ab-article:hover .ab-article-img img { transform: scale(1.05); }
.ab-date { color: #999; font-size: 14px; margin: 16px 0 6px; }
.ab-article h3 { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.35; }
.ab-article h3 a { color: #fff; text-decoration: none; transition: color .3s; }
.ab-article h3 a:hover { color: var(--accent); }

@media (max-width: 1024px) {
  .ab-intro-grid { grid-template-columns: 1fr; }
  .ab-intro-text { position: static; padding-right: 0; }
  .ab-why-grid { grid-template-columns: 1fr; }
  .ab-why-head { position: static; }
  .ab-why-cards { padding-bottom: 0; }
  .ab-shift { top: 0; }
  .ab-why-card { min-height: 228px; }
  .ab-case-grid, .ab-article-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .ab-hero { height: 60vh; margin-bottom: 20px; }
  .ab-h2 { font-size: 33px; line-height: 43px; }
  .ab-team { grid-template-columns: 1fr; }
  .ab-why-cards { grid-template-columns: 1fr; }
  .ab-why-head { text-align: center; }
  .ab-why-card { text-align: center; min-height: 0; }
  .ab-underline { margin-left: auto; margin-right: auto; }
  .ab-logos-desktop { display: none; }
  .ab-logos-mobile { display: block; }
  .ab-join-wrap { max-width: 20rem; }
  .ab-join-title { font-size: 33px; }
  .ab-case-grid, .ab-article-grid { grid-template-columns: 1fr; }
  .ab-case { cursor: pointer; }
  .ab-nav-btn { justify-content: center; }
}
/* Phones in landscape: the video hero fits the short screen. */
@media (max-height: 500px) and (orientation: landscape) {
  .ab-hero { height: auto; min-height: 0; padding: 72px 0; margin-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-why-card { opacity: 1; transform: none; transition: none; }
}

/* ===== LIGHT THEME (.theme-light) =====
   Video hero goes light: white veil over the video, dark title; every section
   below it sits on the light page background with white cards. */
.theme-light .ab-hero { background: radial-gradient(ellipse at 50% 40%, #ffffff 0%, #eef2fa 100%); }
.theme-light .ab-hero-overlay { background: linear-gradient(180deg, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .6) 55%, rgba(238, 242, 250, .78) 100%); }
.theme-light .ab-hero-title { color: #0e1525; }
.theme-light .ab-hero-line + .ab-hero-line { color: var(--accent); }
.theme-light .ab-intro { background: transparent; color: var(--text); }
.theme-light .ab-h2 { color: var(--text); }
.theme-light .ab-para { color: var(--muted); }
.theme-light .ab-member-img { background: #e8ecf3; box-shadow: 0 10px 30px -12px rgba(14, 21, 37, .18); }
.theme-light .ab-member h3 { color: var(--text); }
.theme-light .ab-member p { color: var(--muted); }

.theme-light .ab-why-card { background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px -12px rgba(14, 21, 37, .12); color: var(--text-2); }
.theme-light .ab-why-card h3 { color: var(--text); }
.theme-light .ab-why-card p { color: var(--muted); }

.theme-light .ab-tag { color: var(--text); opacity: .62; }
.theme-light .ab-slide:hover .ab-tag { color: var(--accent); opacity: 1; }
.theme-light .ab-slider-controls button { border-color: rgba(14, 21, 37, .2); background: #fff; color: var(--text); }
.theme-light .ab-slider-controls button:hover { border-color: var(--accent); color: var(--accent); }

.theme-light .ab-join-title { color: var(--text); }
.theme-light .ab-join-text { color: var(--muted); }

.theme-light .ab-big { color: var(--text); }
.theme-light .ab-case { background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px -12px rgba(14, 21, 37, .12); }
.theme-light .ab-case h3 { color: var(--text); }
.theme-light .ab-case-desc, .theme-light .ab-article-desc { color: var(--muted); }
.theme-light .ab-readmore { color: var(--text-2); }
.theme-light .ab-arrow { color: #fff; }
.theme-light .ab-case-label { box-shadow: 0 6px 18px rgba(14, 21, 37, .2); }

.theme-light .ab-article-img { box-shadow: 0 10px 30px -12px rgba(14, 21, 37, .18); }
.theme-light .ab-date { color: var(--muted); }
.theme-light .ab-article h3 a { color: var(--text); }
.theme-light .ab-article h3 a:hover { color: var(--accent); }
