/* About page: the red community artwork fades into the site's dark canvas. */
.about-page .about-main {
    width: min(1120px, calc(100% - 48px));
    min-height: 0;
    margin: 32px auto 40px;
}

.about-intro {
    position: relative;
}

.about-art {
    position: relative;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    isolation: isolate;
}

.about-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #080d11 0%, rgba(8, 13, 17, 0.7) 8%, transparent 32%),
                linear-gradient(90deg, rgba(8, 13, 17, 0.45), transparent 16%, transparent 84%, rgba(8, 13, 17, 0.45));
    pointer-events: none;
}

.about-community-banner {
    display: block;
    width: 100%;
    height: clamp(240px, 30vw, 340px);
    object-fit: cover;
    object-position: center 55%;
}

.about-identity {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    margin-top: -35px;
    padding: 0 28px 30px;
    background: linear-gradient(180deg, transparent, #080d11 32%);
}

.about-mascot {
    display: block;
    flex: 0 0 auto;
    width: 112px;
    height: 112px;
    border-radius: 24px;
    overflow: hidden;
    border: 3px solid #29181c;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    object-fit: cover;
}

.about-mascot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-introduction {
    flex: 1;
    min-width: 0;
}

.about-eyebrow {
    color: #ff9d8d;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.about-introduction h1 {
    color: #f5f6f8;
    font-size: clamp(1.75rem, 3vw, 2.45rem);
    line-height: 1.15;
    letter-spacing: -0.04em;
    margin: 0 0 12px;
}

.about-introduction > p:last-child {
    max-width: 590px;
    color: #aeb7c1;
    font-size: 0.98rem;
    line-height: 1.7;
    margin: 0;
}

.about-youtube {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 20px;
    border: 1px solid #ee5149;
    border-radius: 10px;
    background: #ca302a;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.about-youtube:hover {
    background: #e13b33;
    border-color: #ff8c7c;
}

.about-youtube i {
    font-size: 1.15rem;
}

.about-details {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    margin-top: 12px;
}

.about-detail-card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border-radius: 18px;
    border: 1px solid #26333b;
    background: rgba(15, 23, 30, 0.92);
}

.about-card-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.about-card-heading > i {
    color: #50c5e9;
    font-size: 1.3rem;
}

.about-card-heading h2 {
    color: #f4f6f8;
    font-size: 1.3rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin: 0;
}

.about-detail-card > p {
    color: #acb7c1;
    font-size: 0.96rem;
    line-height: 1.7;
    margin: 0 0 22px;
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
    margin-top: auto;
}

.about-actions .btn {
    padding: 11px 16px;
    font-size: 0.9rem;
    border-radius: 9px;
}

.about-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    color: #d4e4ec;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.about-text-link:hover {
    color: #54d4f6;
}

.about-email {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #35434c;
    border-radius: 10px;
    background: #101a22;
    margin-top: auto;
    color: #e5f3f8;
    font-size: 0.96rem;
    text-decoration: none;
    transition: border-color 160ms ease;
}

.about-email span {
    overflow-wrap: anywhere;
}

.about-email i {
    color: #58cbe9;
    font-size: 0.8rem;
}

.about-email:hover {
    border-color: #5bafc6;
}

.about-main a:focus-visible {
    outline: 2px solid #77dcfa;
    outline-offset: 5px;
}

.about-page .banner-section {
    margin-top: 0;
}

@media (max-width: 900px) {
    .about-identity {
        display: grid;
        grid-template-columns: 112px 1fr;
        align-items: start;
    }

    .about-mascot {
        grid-row: span 2;
    }

    .about-youtube {
        justify-self: start;
    }

    .about-details {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .about-detail-card {
        padding: 22px;
    }
}

@media (max-width: 640px) {
    .about-page .about-main {
        width: calc(100% - 28px);
        margin-top: 20px;
        margin-bottom: 28px;
    }

    .about-community-banner {
        height: auto;
        aspect-ratio: 1672 / 941;
        object-fit: contain;
    }

    .about-art {
        border-radius: 16px 16px 0 0;
    }

    .about-identity {
        grid-template-columns: 72px 1fr;
        align-items: center;
        gap: 16px;
        padding: 0 8px 24px;
        margin-top: -12px;
    }

    .about-mascot {
        width: 72px;
        height: 72px;
        border-radius: 16px;
        grid-row: 1;
        align-self: start;
    }

    .about-eyebrow {
        font-size: 0.6rem;
        line-height: 1.5;
        letter-spacing: 0.08em;
        margin-bottom: 6px;
    }

    .about-introduction h1 {
        font-size: 1.65rem;
        letter-spacing: -0.035em;
    }

    .about-introduction > p:last-child {
        font-size: 0.92rem;
    }

    .about-youtube {
        grid-column: 2;
        margin-top: -3px;
    }

    .about-details {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 0;
    }

    .about-detail-card {
        padding: 22px;
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .about-identity {
        grid-template-columns: 64px 1fr;
        gap: 12px 16px;
    }

    .about-mascot {
        width: 64px;
        height: 64px;
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .about-introduction { display: contents; }
    .about-eyebrow { grid-column: 2; grid-row: 1; margin: 0; }
    .about-introduction h1 { grid-column: 2; grid-row: 2; margin: 0; font-size: 1.45rem; }
    .about-introduction > p:last-child { grid-column: 1 / -1; }
    .about-youtube { grid-column: 1 / -1; }
}

/* Keep mobile actions centered and independent of the mascot/text grid. */
@media (max-width: 640px) {
    .about-identity { grid-template-columns: 64px minmax(0, 1fr); gap: 12px 16px; }
    .about-mascot { width: 64px; height: 64px; grid-column: 1; grid-row: 1 / 3; }
    .about-introduction { display: contents; }
    .about-eyebrow { grid-column: 2; grid-row: 1; margin: 0; }
    .about-introduction h1 { grid-column: 2; grid-row: 2; margin: 0; }
    .about-introduction > p:last-child { grid-column: 1 / -1; }
    .about-youtube {
        grid-column: 1 / -1;
        justify-self: center;
        margin: 4px 0 0;
        min-height: 48px;
        min-width: 180px;
        max-width: 100%;
        padding: 12px 24px;
        line-height: 1.5;
        white-space: nowrap;
    }
    .about-actions { flex-direction: column; align-items: center; width: 100%; gap: 8px; }
    .about-actions .btn { width: 100%; max-width: 100%; margin: 0; min-height: 48px; justify-content: center; line-height: 1.5; }
    .about-text-link { justify-content: center; min-height: 44px; }
    .about-email { font-size: 0.875rem; padding: 12px; }
}
