/*
ABOUT PAGE
*/

/* =====================================
   HERO (sliding panel style)
===================================== */

.hero-panel{
    min-height:calc(100vh - 110px);
    position:relative;
    overflow:hidden;
    background-image:url("../images/bk1.jpg");
    background-size:cover;
    background-position:center;
    color:white;
}

.hero-panel-content{
    position:absolute;
    top:0;
    left:0;
    width:40%;
    min-width:480px;
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;
    background:rgba(47,93,78,.88);
    padding:0 5%;
    transform:translateX(-100%);
    animation:heroPanelSlideIn .7s ease forwards;
}

@keyframes heroPanelSlideIn{
    from{
        transform:translateX(-100%);
    }
    to{
        transform:translateX(0);
    }
}

.hero-panel-content h1,
.hero-panel-content p{
    opacity:0;
    animation:heroPanelTextIn .6s ease forwards;
}

.hero-panel-content h1{
    animation-delay:.8s;
}

.hero-panel-content p{
    animation-delay:1.2s;
}

@keyframes heroPanelTextIn{
    from{
        opacity:0;
        transform:translateY(15px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.hero-panel-content h1.hero-rolling{
    margin:0 0 35px;
    font-family:var(--display);
    font-weight:400;
    font-size:clamp(38px, 5vw, 62px);
    line-height:1.15;
    letter-spacing:0.5px;
}

.hero-panel-content p{
    font-size:clamp(17px, 1.4vw, 20px);
    line-height:1.7;
    max-width:500px;
    color:rgba(255,255,255,.85);
}

/* =====================================
   HERO ROLLING TEXT
===================================== */

.hero-rolling{
    display:flex;
    align-items:baseline;
    flex-wrap:wrap;
    gap:10px;
}

.hero-rolling span{
    color:white;
}

.rolling-text{
    height:1.35em;
    overflow:hidden;
    color:var(--gold);
    font-weight:400;
}

.rolling-inner{
    animation:rollText 9s infinite;
}

.rolling-inner div{
    height:1.35em;
    display:flex;
    align-items:baseline;
}

@keyframes rollText{
    0%,
    30%{
        transform:translateY(0);
    }
    33%,
    63%{
        transform:translateY(-1.35em);
    }
    66%,
    96%{
        transform:translateY(-2.7em);
    }
    100%{
        transform:translateY(0);
    }
}

/* =====================================
   SHARED SECTIONS
===================================== */

.about-story,
.mission,
.future{
    position:relative;
    overflow:hidden;
    padding:100px 0;
}

.about-story{
    background:#F8F4EA;
}

.future{
    background:#F8F4EA;
}

.about-grid{
    position:relative;
    z-index:2;
    display:flex;
    align-items:center;
    gap:70px;
}

.about-image{
    flex:1;
}

.about-image img{
    width:100%;
    height:100%;
    aspect-ratio:4/3;
    object-fit:cover;
    display:block;
    border:1px solid var(--gold);
}

.about-content{
    flex:1;
}

.eyebrow{
    display:block;
    color:var(--gold);
    font-size:13px;
    font-weight:600;
    letter-spacing:1.5px;
    margin-bottom:15px;
}

.about-content h2,
.lab-advantage h2{
    color:var(--darkgreen);
    font-size:38px;
    line-height:1.3;
    margin-bottom:25px;
}

.about-content p{
    line-height:1.8;
    color:#444;
    margin-bottom:20px;
}

.about-decoration{
    position:absolute;
    top:0;
    left:0;
    width:340px;
    height:340px;
    opacity:.5;
    pointer-events:none;
}

.about-decoration.flip{
    top:auto;
    left:auto;
    bottom:0;
    right:0;
    transform:scale(-1,-1);
}

.about-decoration svg{
    width:100%;
    height:100%;
}

/* =====================================
   WHAT SETS WHEELOCK APART
===================================== */

.lab-advantage{
    padding:100px 0;
    background:var(--darkgreen);
    color:white;
    text-align:center;
}

.lab-advantage .eyebrow{
    color:var(--gold);
}

.lab-advantage h2{
    color:white;
    margin-bottom:50px;
}

.advantage-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
}

.advantage-card{
    background:white;
    color:#444;
    padding:35px 25px;
    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.advantage-card:hover{
    transform:translateY(-8px);
    box-shadow:0 15px 30px rgba(0,0,0,.15);
}

.advantage-card h3{
    color:var(--darkgreen);
    margin-bottom:15px;
}

.advantage-card p{
    line-height:1.7;
}

.feature-icon{
    font-size:35px;
    margin-bottom:20px;
}

/* =====================================
   MISSION / FUTURE IMAGE ALIGNMENT
===================================== */

.mission .about-image img,
.future .about-image img{
    max-height:500px;
    object-fit:cover;
}

/* =====================================
   ANIMATION
===================================== */

.reveal{
    opacity:0;
    transform:translateY(25px);
    transition:
        opacity .7s ease,
        transform .7s ease;
}

.reveal.in-view{
    opacity:1;
    transform:translateY(0);
}

/* =====================================
   MOBILE
===================================== */

@media(max-width:900px){

    .about-decoration,
    .about-decoration.flip{
        display:none;
    }

    .about-grid{
        flex-direction:column;
        gap:40px;
    }

    .hero-panel{
        min-height:calc(100vh - 90px);
    }

    .hero-panel-content{
        width:100%;
        min-width:0;
        padding:0 25px;
    }

    .hero-panel-content h1.hero-rolling{
        font-size:clamp(2.3rem,5vw,4rem);
        line-height:1.5;
    }

    .hero-panel-content p{
        font-size:16px;
    }

    .about-content h2,
    .lab-advantage h2{
        font-size:30px;
    }

    .advantage-grid{
        grid-template-columns:1fr;
    }

    .about-story,
    .mission,
    .future,
    .lab-advantage{
        padding:70px 0;
    }

}