/*
|--------------------------------------------------------------------------
| Fast About page
|--------------------------------------------------------------------------
*/

body.af-about-page {
    margin: 0;
    min-height: 100vh;
    color: var(--af-text);
    background:
        radial-gradient(
            circle at 8% 0%,
            rgba(34, 211, 238, 0.13),
            transparent 28rem
        ),
        radial-gradient(
            circle at 92% 12%,
            rgba(139, 92, 246, 0.14),
            transparent 32rem
        ),
        var(--af-bg);
}

.af-about-main,
.af-about-article {
    width: 100%;
    min-width: 0;
}

.af-about-container {
    width: min(calc(100% - 40px), 1180px);
    margin-inline: auto;
}

.af-about-hero {
    padding: clamp(54px, 7vw, 94px) 0;
    border-bottom: 1px solid var(--af-border);
}

.af-about-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    align-items: center;
    gap: clamp(40px, 7vw, 90px);
}

.af-about-kicker,
.af-about-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: var(--af-primary);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.af-about-kicker::before,
.af-about-section-label::before {
    width: 28px;
    height: 1px;
    content: "";
    background: currentColor;
}

.af-about-hero h1 {
    max-width: 760px;
    margin: 0 0 22px;
    color: var(--af-text);
    font-size: clamp(3.2rem, 8vw, 6.5rem);
    font-weight: 850;
    line-height: 0.95;
    letter-spacing: -0.065em;
    overflow-wrap: anywhere;
}

.af-about-lead {
    max-width: 700px;
    margin: 0 0 30px;
    color: var(--af-muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

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

/*
|--------------------------------------------------------------------------
| Lightweight animated About-page atom
|--------------------------------------------------------------------------
*/

.af-about-visual {
    display: grid;
    min-height: 300px;
    place-items: center;
}

.af-about-orbit {
    position: relative;
    display: grid;
    width: min(300px, 72vw);
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgba(103, 232, 249, 0.18);
    border-radius: 50%;
    box-shadow:
        inset 0 0 60px rgba(103, 232, 249, 0.055),
        0 0 65px rgba(167, 139, 250, 0.07);
}

/*
 * Static decorative rings.
 */
.af-about-orbit::before,
.af-about-orbit::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.af-about-orbit::before {
    inset: 16%;
}

.af-about-orbit::after {
    inset: 31%;
}

/*
 * Round logo without a square background.
 */
.af-about-visual-core {
    position: relative;
    z-index: 5;
    display: grid;
    width: 130px;
    height: 130px;
    padding: 0;
    place-items: center;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 50%;
    box-shadow: none;
}

.af-about-logo {
    display: block;
    width: 130px;
    height: 130px;
    max-width: none;
    object-fit: cover;
    object-position: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    box-shadow:
        0 0 24px rgba(103, 232, 249, 0.25),
        0 16px 38px rgba(0, 0, 0, 0.22);
    transform: translateZ(0);
    transform-origin: center;
    animation: af-about-logo-spin 36s linear infinite;
}

.af-about-logo-placeholder {
    max-width: 88px;
    color: var(--af-muted);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

/*
 * Each transparent track rotates one dot around the logo.
 */
.af-about-orbit-track {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    border: 1px solid rgba(103, 232, 249, 0.1);
    border-radius: 50%;
    transform-origin: center;
}

.af-about-track-one {
    width: 94%;
    height: 94%;
    animation: af-about-spin-one 14s linear infinite;
}

.af-about-track-two {
    width: 67%;
    height: 67%;
    animation: af-about-spin-two 10s linear infinite reverse;
}

.af-about-track-three {
    width: 42%;
    height: 42%;
    animation: af-about-spin-three 7s linear infinite;
}

.af-about-orbit-dot {
    position: absolute;
    top: 50%;
    right: -8px;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
}

.af-about-dot-one {
    background: var(--af-secondary);
    box-shadow:
        0 0 10px var(--af-secondary),
        0 0 24px rgba(167, 139, 250, 0.65);
}

.af-about-dot-two {
    width: 13px;
    height: 13px;
    background: var(--af-primary);
    box-shadow:
        0 0 10px var(--af-primary),
        0 0 22px rgba(103, 232, 249, 0.65);
}

.af-about-dot-three {
    width: 11px;
    height: 11px;
    background: var(--af-green);
    box-shadow:
        0 0 9px var(--af-green),
        0 0 20px rgba(110, 231, 183, 0.6);
}

@keyframes af-about-spin-one {
    from {
        transform:
            translate(-50%, -50%)
            rotate(0deg);
    }

    to {
        transform:
            translate(-50%, -50%)
            rotate(360deg);
    }
}

@keyframes af-about-spin-two {
    from {
        transform:
            translate(-50%, -50%)
            rotate(45deg);
    }

    to {
        transform:
            translate(-50%, -50%)
            rotate(405deg);
    }
}

@keyframes af-about-spin-three {
    from {
        transform:
            translate(-50%, -50%)
            rotate(120deg);
    }

    to {
        transform:
            translate(-50%, -50%)
            rotate(480deg);
    }
}

/*
 * Gentle center-logo rotation.
 * Transform-only animation avoids repeated layout calculations.
 */
@keyframes af-about-logo-spin {
    from {
        transform:
            translateZ(0)
            rotate(0deg);
    }

    to {
        transform:
            translateZ(0)
            rotate(360deg);
    }
}

.af-about-content {
    padding: clamp(58px, 8vw, 105px) 0;
    color: var(--af-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.af-about-introduction {
    max-width: 850px;
    margin-bottom: 55px;
}

.af-about-content h2,
.af-about-content h3,
.af-about-content h4 {
    color: var(--af-text);
    line-height: 1.15;
}

.af-about-introduction h2,
.af-about-content > h2 {
    margin: 0 0 22px;
    font-size: clamp(2rem, 5vw, 3.7rem);
    letter-spacing: -0.045em;
}

.af-about-content h3 {
    margin-top: 1.8em;
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.af-about-content a:not(.af-button) {
    color: var(--af-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.af-about-content img {
    height: auto;
    border-radius: 18px;
}

.af-about-featured-image {
    margin: 60px 0 0;
}

.af-about-featured-image img {
    display: block;
    width: 100%;
    max-height: 620px;
    object-fit: cover;
    border: 1px solid var(--af-border);
    border-radius: var(--af-radius);
}

.af-about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.af-about-value-card {
    min-width: 0;
    padding: 28px;
    background: var(--af-surface);
    border: 1px solid var(--af-border);
    border-radius: var(--af-radius);
}

.af-about-value-card > span {
    display: inline-block;
    margin-bottom: 38px;
    color: var(--af-primary);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.1em;
}

.af-about-value-card h2 {
    margin: 0 0 12px;
    font-size: 1.5rem;
}

.af-about-value-card p {
    margin: 0;
}

.af-about-content blockquote {
    margin: 35px 0;
    padding: 24px 28px;
    color: var(--af-text);
    background: rgba(103, 232, 249, 0.07);
    border-left: 4px solid var(--af-primary);
    border-radius: 0 14px 14px 0;
}

.af-about-content pre,
.af-about-content table {
    max-width: 100%;
    overflow-x: auto;
}

.af-about-content pre {
    padding: 20px;
    color: var(--af-text);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--af-border);
    border-radius: 12px;
}

@media (max-width: 800px) {
    .af-about-hero-grid {
        grid-template-columns: 1fr;
    }

    .af-about-visual {
        min-height: 300px;
    }

    .af-about-values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .af-about-container {
        width: min(calc(100% - 28px), 1180px);
    }

    .af-about-hero {
        padding: 38px 0 45px;
    }

    .af-about-hero h1 {
        font-size: clamp(3rem, 16vw, 4.6rem);
    }

    .af-about-visual {
        min-height: 270px;
    }

    .af-about-orbit {
        width: min(270px, 78vw);
    }

    .af-about-content {
        padding: 54px 0 70px;
    }

    .af-about-value-card {
        padding: 23px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .af-about-orbit-track,
    .af-about-logo {
        animation: none !important;
        transition: none !important;
        will-change: auto;
    }
}

/*
|--------------------------------------------------------------------------
| Compact About hero spacing
|--------------------------------------------------------------------------
*/

.af-about-hero {
    padding-top: 28px;
    padding-bottom: 28px;
}

.af-about-hero-grid {
    min-height: 0;
}

.af-about-kicker {
    margin-top: 0;
    margin-bottom: 10px;
}

.af-about-hero h1 {
    margin-top: 0;
    margin-bottom: 14px;
}

.af-about-lead {
    margin-top: 0;
    margin-bottom: 20px;
}

.af-about-visual {
    min-height: 320px;
}

@media (max-width: 680px) {
    .af-about-hero {
        padding-top: 20px;
        padding-bottom: 22px;
    }

    .af-about-kicker {
        margin-bottom: 8px;
    }

    .af-about-hero h1 {
        margin-bottom: 12px;
    }

    .af-about-lead {
        margin-bottom: 18px;
    }

    .af-about-visual {
        min-height: 280px;
    }

    .af-about-orbit {
        width: min(260px, 76vw);
    }

    .af-about-visual-core,
    .af-about-logo {
        width: 105px;
        height: 105px;
        border-radius: 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .af-about-orbit-track {
        animation: none !important;
        will-change: auto;
    }
}