/* =========================================
   About Page: Glass Layout
   ========================================= */

.about-page-layout {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem;
    gap: 2.5rem;
    min-height: 130vh;
}

/* =========================================
   About Page: Hero Text
   ========================================= */

.about-hero-text {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-text-on-dark);
    margin-top: 6rem;
    margin-bottom: 12rem;
}

.about-hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--color-text-on-dark);
    margin: 0 0 0.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 0, 0, 0.4);
}

.about-hero-subtitle {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-light-brown-drab);
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 0, 0, 0.4);
}

/* =========================================
   About Page: Glass Cards
   ========================================= */

.about-card {
    width: 65vw !important;
    max-width: 2600px !important;
    max-height: none;
    overflow-y: visible;
    padding: 2.5rem;
    margin: 0 6rem;
}

.about-card-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-card-grid--text-right {
    grid-template-columns: 1fr 3fr;
}

.about-card-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.about-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text);
    margin: 0 0 1rem;
}

.about-card-body {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.about-card-body p {
    margin: 0 0 1rem;
}

.about-card-body p:last-child {
    margin-bottom: 0;
}

.about-card-body * {
    background-color: transparent !important;
    color: inherit !important;
}

.about-card-image-wrap {
    border-radius: 1rem;
    overflow: hidden;
    background: var(--color-surface-soft);
    aspect-ratio: 3 / 4;
}

.about-card-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

/* =========================================
   About: Mobile Layout (full-bleed scroll-reveal)
   ========================================= */

@media (max-width: 768px) {
    /* Override glass-page flex — about becomes a block stacking image then cards */
    .glass-page.about-page-layout {
        display: block;
        position: relative;
        min-height: auto;
        padding: 0;
        gap: 0;
    }

    /* Background becomes a static 100vh hero block */
    .about-page-layout .glass-bg {
        position: relative;
        inset: unset;
        height: 100vh;
        height: 100svh;
        will-change: auto;
        z-index: 0;
    }

    .about-page-layout .glass-bg-image {
        height: 100%;
    }

    .about-page-layout .glass-bg-overlay {
        height: 100%;
    }

    /* Hero text: absolutely centered over the full-bleed image */
    .about-hero-text {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        height: 100svh;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 1.5rem;
        text-align: center;
    }

    .about-hero-title {
        font-size: 3rem;
    }

    .about-hero-subtitle {
        font-size: 1.5rem;
    }

    /* Animated scroll hint */
    .about-hero-text::after {
        content: '↓';
        position: absolute;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        color: rgba(238, 226, 200, 0.55);
        font-size: 1.4rem;
        animation: about-scroll-hint 2s ease-in-out infinite;
    }

    @keyframes about-scroll-hint {
        0%, 100% { opacity: 0.55; transform: translateX(-50%) translateY(0); }
        50% { opacity: 1; transform: translateX(-50%) translateY(6px); }
    }

    /* Cards: full width, no side margin, image bleeds edge-to-edge */
    .about-page-layout .about-card {
        width: calc(100% - 2rem) !important;
        max-width: none !important;
        max-height: none !important;
        margin: 1.5rem auto !important;
        padding: 0 !important;
        overflow: hidden;
    }

    /* Single column, no gap (image and content sit flush) */
    .about-card-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Image first on all cards — photo then text */
    .about-card-image-wrap {
        order: 1;
        border-radius: 0;
        aspect-ratio: 3 / 4;
    }

    .about-card-content {
        order: 2;
        padding: 1.5rem;
    }

    /* Override the desktop text-right reordering */
    .about-card-grid--text-right .about-card-image-wrap {
        order: 1;
    }

    .about-card-grid--text-right .about-card-content {
        order: 2;
    }

    /* CTAs */
    .about-page-layout .cta-buttons {
        padding: 0 1rem 3rem;
        margin-top: 0.5rem;
    }
}
