/* InfersioAI — About page */

html.about-page {
    min-height: 100%;
    overflow-x: hidden;
    scroll-padding-top: var(--site-header-h);
}

/* --- Mobile / tablet: no robot bg — matches services page feel --- */
body.about-page {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
    background: #000000;
    color: rgba(255, 255, 255, 0.92);
    -webkit-font-smoothing: antialiased;
    line-height: 1.65;
}

.about-bg {
    display: none;
}

.about-page .site-header--dark {
    background: rgba(0, 0, 0, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.about-page .site-header--dark.is-scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.about-page .logo,
.about-page .nav-menu a,
.about-page .nav-toggle {
    color: #ffffff;
}

.about-page .nav-menu a:hover,
.about-page .nav-menu a[aria-current="page"] {
    color: #93c5fd;
}

.about-page .nav-toggle {
    border-color: rgba(255, 255, 255, 0.25);
}

.about-main {
    position: relative;
    z-index: 1;
    padding-top: var(--site-header-h);
}

.about-page .ai-site-footer {
    position: relative;
    z-index: 2;
}

/* --- Reveal --- */
.about-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--about-reveal-delay, 0ms);
}

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

/* --- Hero --- */
.about-hero {
    position: relative;
    min-height: auto;
    display: block;
    overflow: visible;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.about-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1120px, 92%);
    margin: 0 auto;
    padding: clamp(48px, 10vh, 88px) 0;
}

.about-hero-copy {
    max-width: 36rem;
}

.about-hero-eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 14px;
}

.about-hero-title {
    font-family: "Sora", "Inter", system-ui, sans-serif;
    font-weight: 600;
    font-size: clamp(1.85rem, 3.6vw, 2.85rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: #fff;
    margin-bottom: 1.1rem;
}

.about-hero-sub {
    font-size: clamp(1rem, 1.35vw, 1.125rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1.25rem;
}

.about-hero-founded {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
}

/* --- Section shell --- */
.about-section {
    padding: clamp(72px, 11vh, 112px) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
}

.about-section--mission {
    background: rgba(255, 255, 255, 0.02);
}

.about-section--team {
    background: transparent;
}

.about-section--clients {
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.about-section--platforms {
    background: transparent;
}

.about-section--cta {
    padding: clamp(88px, 12vh, 120px) 0 clamp(100px, 14vh, 140px);
    background: transparent;
    border-bottom: none;
}

.about-container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.about-section-title {
    font-family: "Sora", "Inter", system-ui, sans-serif;
    font-weight: 600;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 16px;
}

.about-section-lead {
    font-size: clamp(1rem, 1.2vw, 1.0625rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.55);
    max-width: 62ch;
}

.about-overview-grid {
    margin-top: 8px;
}

/* --- Mission card --- */
.about-mission-card {
    margin-top: 8px;
    padding: clamp(28px, 4vw, 40px);
    background: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    max-width: 52rem;
}

.about-mission-card .about-section-lead {
    margin-bottom: 0;
}

/* --- Team --- */
.about-team-intro {
    margin-bottom: 36px;
}

.about-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-team-card {
    background: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s ease,
        box-shadow 0.45s ease;
}

.about-team-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.about-team-photo-link {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    outline: none;
}

.about-team-photo-link:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.about-team-photo-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    filter: grayscale(0.2);
}

.about-team-card:hover .about-team-photo-link img {
    transform: scale(1.08);
}

.about-team-body {
    padding: 20px 20px 22px;
}

.about-team-name {
    font-family: "Sora", "Inter", system-ui, sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.about-team-role {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.about-team-empty {
    padding: 48px 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    background: #0b0f19;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    max-width: 36rem;
}

/* --- Clients --- */
.about-clients-head {
    margin-bottom: 28px;
}

.about-client-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 16px;
}

.about-client-logo-card {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.about-client-logo-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
}

.about-client-logo-card-inner {
    padding: 14px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-client-logo-card img {
    max-width: 100%;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(1) brightness(1.15) opacity(0.78);
    transition: filter 0.35s ease, opacity 0.35s ease;
}

.about-client-logo-card:hover img {
    filter: grayscale(0.85) brightness(1.2) opacity(0.95);
}

.about-client-empty {
    padding: 32px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

/* --- Platforms --- */
.about-platform-desc {
    margin-bottom: 28px;
}

.about-platform-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.about-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.about-btn-outline:hover,
.about-btn-outline:focus-visible {
    background: #fff;
    color: #05070d;
    border-color: #fff;
    outline: none;
}

/* --- CTA --- */
.about-cta-inner {
    text-align: left;
    max-width: 560px;
}

.about-cta-inner .about-section-title {
    margin-bottom: 14px;
}

.about-cta-inner .about-section-lead {
    margin: 0 0 28px;
}

.about-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-start;
}

.about-page .ai-site-footer .footer-social-container {
    height: auto;
    min-height: 0;
}

/* --- Desktop: fixed robot background, left-aligned content --- */
@media (min-width: 769px) {
    body.about-page {
        background: #f4f6f9;
        color: #1a1f2e;
    }

    .about-bg {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        overflow: hidden;
    }

    .about-bg__image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: right center;
        display: block;
        transform: translateZ(0);
        backface-visibility: hidden;
    }

    .about-hero {
        border-bottom: none;
    }

    .about-hero-inner,
    .about-container {
        width: min(42vw, 560px);
        max-width: 560px;
        margin-left: clamp(28px, 5vw, 80px);
        margin-right: auto;
        text-align: left;
    }

    .about-hero-copy {
        max-width: none;
    }

    .about-hero-eyebrow {
        color: rgba(26, 31, 46, 0.5);
    }

    .about-hero-title {
        color: #0a0e18;
    }

    .about-hero-sub {
        color: rgba(26, 31, 46, 0.72);
    }

    .about-hero-founded {
        color: rgba(26, 31, 46, 0.45);
    }

    .about-section {
        border-bottom: none;
        background: transparent;
    }

    .about-section-title {
        color: #0a0e18;
    }

    .about-section-lead {
        color: rgba(26, 31, 46, 0.72);
    }

    .about-mission-card {
        background: rgba(255, 255, 255, 0.88);
        border: 1px solid rgba(26, 31, 46, 0.08);
        box-shadow: 0 8px 32px rgba(26, 31, 46, 0.06);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .about-mission-card .about-section-lead {
        color: rgba(26, 31, 46, 0.75);
    }

    .about-team-card {
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(26, 31, 46, 0.08);
        box-shadow: 0 10px 36px rgba(26, 31, 46, 0.07);
    }

    .about-team-card:hover {
        box-shadow: 0 18px 48px rgba(26, 31, 46, 0.12);
        border-color: rgba(26, 31, 46, 0.14);
    }

    .about-team-photo-link {
        border-bottom-color: rgba(26, 31, 46, 0.06);
    }

    .about-team-photo-link img {
        filter: none;
    }

    .about-team-name {
        color: #0a0e18;
    }

    .about-team-role {
        color: rgba(26, 31, 46, 0.55);
    }

    .about-team-empty {
        background: rgba(255, 255, 255, 0.88);
        border-color: rgba(26, 31, 46, 0.12);
        color: rgba(26, 31, 46, 0.5);
    }

    .about-client-logo-card {
        background: rgba(255, 255, 255, 0.88);
        border-color: rgba(26, 31, 46, 0.08);
    }

    .about-client-logo-card:hover {
        background: #fff;
        border-color: rgba(26, 31, 46, 0.16);
    }

    .about-client-logo-card img {
        filter: grayscale(0.35) opacity(0.9);
    }

    .about-client-logo-card:hover img {
        filter: grayscale(0) opacity(1);
    }

    .about-client-empty {
        color: rgba(26, 31, 46, 0.45);
        border-color: rgba(26, 31, 46, 0.12);
        background: rgba(255, 255, 255, 0.7);
    }

    .about-btn-outline {
        color: #0a0e18;
        border-color: rgba(10, 14, 24, 0.55);
    }

    .about-btn-outline:hover,
    .about-btn-outline:focus-visible {
        background: #0a0e18;
        color: #fff;
        border-color: #0a0e18;
    }

    .about-team-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 560px;
    }
}

@media (max-width: 960px) {
    .about-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-hero-inner,
    .about-container {
        text-align: left;
    }

    .about-hero-copy {
        margin: 0;
    }
}

@media (max-width: 640px) {
    .about-team-grid {
        grid-template-columns: 1fr;
    }

    .about-cta-actions {
        flex-direction: column;
    }

    .about-btn-outline {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .about-team-card:hover,
    .about-team-card:hover .about-team-photo-link img {
        transform: none;
    }
}
