/* about page styles — extracted from templates/about.html */
/* FOUT guard — revealed after CSS loads */
.about-page { visibility: visible; }

/* ============================================================
   SECTION 1 — HERO
   ============================================================ */
#about-hero {
    background: var(--black);
    justify-content: center;
    align-items: flex-start;
}

#about-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vw;
    max-width: 1100px;
    max-height: 1100px;
    background: radial-gradient(circle, rgba(56, 87, 173, 0.18) 0%, transparent 65%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 85%;
    width: 100%;
}

.section-headline {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--h1-size);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--white);
    position: relative;
    padding-bottom: 1.25rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-headline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--pink), var(--bright-blue));
}

.hero-quote {
    font-family: var(--font-body);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    max-width: 780px;
    border-left: 2px solid var(--pink);
    padding-left: clamp(1.5rem, 3vw, 2.5rem);
}

/* ============================================================
   SECTION 2 — STORY
   ============================================================ */
#about-story {
    background: var(--black);
    justify-content: center;
}

.story-inner {
    position: relative;
    z-index: 2;
    max-width: 780px;
    width: 100%;
}

.story-body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.story-callout {
    font-family: var(--font-hero);
    font-weight: 700;
    font-size: clamp(2.5rem, 8vw, 7rem);
    line-height: 0.9;
    letter-spacing: -0.02em;
    color: var(--white);
    text-shadow: 0 0 80px rgba(101, 162, 210, 0.3), 0 0 120px rgba(56, 87, 173, 0.2);
    display: block;
}

.story-callout-1 {
    background: linear-gradient(90deg, var(--pink), var(--bright-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background-size: 200% 100%;
    animation: gradient-shift 6s ease-in-out infinite;
}

.story-callout-2 {
    background: linear-gradient(90deg, var(--bright-blue), var(--mid-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background-size: 200% 100%;
    animation: gradient-shift 6s ease-in-out infinite;
}

.story-callout-3 {
    background: linear-gradient(90deg, var(--light-blue), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background-size: 200% 100%;
    animation: gradient-shift 6s ease-in-out infinite;
}

/* ============================================================
   ANIMATION KEYFRAMES
   ============================================================ */
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes gear-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes brain-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes globe-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* ============================================================
   PILLAR SVG ANIMATIONS
   ============================================================ */
.pillar-icon svg.gear-icon {
    animation: gear-rotate 20s linear infinite;
}

.pillar-icon svg.brain-icon {
    animation: brain-pulse 2.5s ease-in-out infinite;
}

.pillar-icon svg.globe-icon {
    animation: globe-float 3s ease-in-out infinite;
}

/* ============================================================
   SECTION 3 — PILLARS
   ============================================================ */
#about-pillars {
    background: var(--black);
    justify-content: center;
    gap: clamp(2rem, 4vh, 3rem);
}

.pillars-intro {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    max-width: 720px;
    margin-bottom: 0.5rem;
}

.pillars-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.pillar-item {
    flex: 1;
    min-width: 280px;
    border: 1px solid rgba(101, 162, 210, 0.12);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: rgba(56, 87, 173, 0.02);
    border-radius: 4px;
    margin-bottom: 0;
    transition: border-color 0.4s ease;
}

.pillar-item:hover {
    border-color: rgba(224, 35, 135, 0.5);
}

.pillar-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.pillar-number {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    color: var(--light-blue);
    display: block;
    margin-bottom: 0.25rem;
    transition: color 0.4s ease;
}

.pillar-item:hover .pillar-number {
    color: var(--pink);
}

.pillar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--light-blue);
    transition: color 0.4s ease, transform 0.4s ease;
    flex-shrink: 0;
}

.pillar-item:hover .pillar-icon {
    color: var(--pink);
    transform: translateX(4px) scale(1.1);
}

.pillar-title {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--h2-size);
    line-height: 1.1;
    color: var(--white);
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.pillar-item:hover .pillar-title {
    color: var(--pink);
}

.pillar-desc {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: var(--body-size);
    color: rgba(255, 255, 255, 0.65);
    max-width: 540px;
    line-height: 1.6;
}

.pillar-learn-more {
    display: inline-block;
    margin-top: 1.25rem;
    font-size: 0.8rem;
}

.pillars-closing {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    max-width: 720px;
    margin-top: clamp(1rem, 2vw, 2rem);
    position: relative;
    padding-top: 1.5rem;
}

.pillars-closing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--pink), var(--bright-blue));
}

/* ============================================================
   SECTION 4 — STAFF
   ============================================================ */
#about-staff {
    background: var(--black);
    justify-content: center;
    gap: clamp(2rem, 4vh, 3rem);
}

.staff-grid {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vw, 3rem);
    position: relative;
    z-index: 2;
    max-width: 100%;
    width: 100%;
}

.staff-card {
    display: flex;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
    padding: 0;
    scroll-margin-top: 120px;
}

.staff-image {
    flex: 0 0 clamp(180px, 25vw, 260px);
    max-width: 260px;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 4px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    background: rgba(56, 87, 173, 0.15);
}

.staff-card:hover .staff-image {
    opacity: 1;
}

.staff-image-placeholder {
    flex: 0 0 clamp(180px, 25vw, 260px);
    max-width: 260px;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 4px;
    background: rgba(56, 87, 173, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-image-placeholder-inner {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.15);
}

.staff-info {
    flex: 1;
    min-width: 0;
}

.staff-name {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--h2-size);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.staff-card:hover .staff-name {
    color: var(--pink);
}

.staff-role {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--light-blue);
    margin-bottom: 0.75rem;
}

.staff-bio {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: var(--body-size);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    max-width: 580px;
}

.staff-socials {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}

.staff-socials a {
    color: var(--light-blue);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.staff-socials a:hover {
    color: var(--pink);
}

/* ============================================================
   CONTACT MODAL
   ============================================================ */
.contact-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.contact-overlay.active {
    display: flex;
}

.contact-modal {
    background: #111;
    border: 1px solid rgba(101, 162, 210, 0.2);
    border-radius: 4px;
    padding: clamp(2rem, 5vw, 3rem);
    width: 90%;
    max-width: 480px;
    position: relative;
}

.contact-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--pink);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.contact-close:hover {
    opacity: 0.7;
}

.contact-modal-title {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    color: var(--white);
    margin-bottom: 1.5rem;
}

.contact-field {
    margin-bottom: 1.25rem;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(101, 162, 210, 0.25);
    padding: 0.75rem 0;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: var(--pink);
}

.contact-field textarea {
    resize: vertical;
    min-height: 80px;
}

.contact-submit {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    position: relative;
    padding-bottom: 6px;
    cursor: pointer;
    transition: color 0.3s ease, background 0.3s ease;
    background: none;
    border: none;
    display: inline-block;
}

.contact-submit::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: linear-gradient(90deg, var(--pink), var(--bright-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-submit:hover {
    background: linear-gradient(90deg, var(--pink), var(--bright-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.contact-submit:hover::after {
    transform: scaleX(1);
}

/* ============================================================
   CTA
   ============================================================ */
.about-cta {
    display: flex;
    gap: 4rem;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .hero-quote {
        font-size: clamp(1.05rem, 3.5vw, 1.3rem);
        border-left-width: 1.5px;
        padding-left: 1.25rem;
    }

    .pillars-list {
        flex-direction: column;
    }

    .pillar-item {
        flex: none;
        min-width: 0;
    }

    .story-callout {
        font-size: clamp(2rem, 12vw, 4rem);
    }

    .staff-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .staff-image,
    .staff-image-placeholder {
        flex: 0 0 auto;
        width: 100%;
        max-width: 200px;
        aspect-ratio: 3 / 4;
    }

    .staff-bio {
        max-width: 100%;
    }

    .staff-name {
        font-size: clamp(1.25rem, 4vw, 1.75rem);
    }
}
