
@font-face {
    font-family: 'Overused';
    src: url('/fonts/OverusedGrotesk-Roman.ttf') format('truetype');
}
@font-face {
    font-family: 'Overused-Italic';
    src: url('/fonts/OverusedGrotesk-Italic.ttf') format('truetype');
}

@font-face {
    font-family: 'Overused-Medium';
    src: url('/fonts/OverusedGrotesk-Medium.ttf') format('truetype');
}
@font-face {
    font-family: 'Overused-MI';
    src: url('/fonts/OverusedGrotesk-MediumItalic.ttf') format('truetype');
}
@font-face {
    font-family: 'Overused-Light';
    src: url('/fonts/OverusedGrotesk-Light.ttf') format('truetype');
}
@font-face {
    font-family: 'Overused-LI';
    src: url('/fonts/OverusedGrotesk-LightItalic.ttf') format('truetype');
}


:root {
    font-family: 'Overused', sans-serif;

    --section-blue: #384A89;
    --button-gray: #D5DAE1;
    --button-click: #A8B8E2;
    --text-navy: #31313C;
    --heading-fill: #006AFF;
    --heading-stroke:#000000;
    --white: #fafafa;

}

html {
    scroll-behavior: smooth;
    height:100%;
}
@media (780px <= width <= 1280px) {

}
@media (width > 1280px) {

}

body {
    color: var(--text-navy);
    background: var(--white);
    overflow-x: hidden;
    
    -webkit-font-smoothing: antialiased;

    height: 100vh;

    display:flex;
    flex-direction:column;
    /* justify-content: space-between; */
    
}

a {
    color: inherit;
    text-decoration: none;
}

em {
    font-style: italic;
}


/* HERO */

.hero {
    width: 100vw;
    /* max-width: 100; */
    display: block;
}



.hero-logo-wrap {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 100;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

.hero-logo {
    display: block;
    transition: opacity 0.25s ease;
}

.hero-logo--hover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
}

.hero-logo-wrap:hover .hero-logo--default {
    opacity: 0;
}

.hero-logo-wrap:hover .hero-logo--hover {
    opacity: 1;
}


.hero-label {
    font-family: "Overused-Medium";
    font-size: 0.75rem;
    -webkit-text-stroke: .09px var(--heading-stroke);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--heading-fill);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.15s forwards;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 0.3em;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.3s forwards;
}
@media (780px <= width <= 1280px) {
    .hero h1 {
        font-size: 5rem;
    }
}
@media (width > 1280px) {
    .hero h1 {
        font-size: 6rem;
    }
}

.hero h1 em {
    color: var(--heading-fill);
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    color: var(--blue-muted);
    max-width: 440px;
    line-height: 1.6;
    margin-top: 1rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.45s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    margin-inline: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue-muted);
    opacity: 0;
    animation: fadeUp 0.8s ease 0.7s forwards;
}

.hero-scroll::after {
    content: '';
    display: block;
    width: 1px;
    height: 32px;
    background: var(--blue-muted);
    margin: 0.75rem auto 0;
    animation: scrollLine 1.8s ease-in-out infinite;
}


/* MAIN GRID */

.main-grid{
    display:grid;
    grid-template-columns:1fr auto;
    align-items:end;
    padding:1.5rem;
    gap: 4rem;
    margin-block-start:auto;
    
}


/* PROJECTS */

.projects {
    display:flex;
    flex-direction:column;
    gap:1.8rem;
}

.project a{
    display:flex;
    flex-direction:row;
}

.project-link{
    display:flex;
    align-items:center;
    gap:1.1rem;
    cursor:pointer;
}


.project-link {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    cursor: pointer;
}

.project-icon-outer {
    width: 4rem;
    height: 4rem;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    animation: spin 8s linear infinite;
}

.project-icon-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.25s ease;
}

.project a:hover .project-icon-inner,
.project a:focus-within .project-icon-inner {
    transform: scale(1.1);
}

.project-icon-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.25s ease;
}

.project-icon-img--hover {
    opacity: 0;
}

.project a:hover .project-icon-img--default,
.project a:focus-within .project-icon-img--default {
    opacity: 0;
}

.project a:hover .project-icon-img--hover,
.project a:focus-within .project-icon-img--hover {
    opacity: 1;
}

.project a:hover .project-icon-outer,
.project a:focus-within .project-icon-outer {
    animation-play-state: paused;
}







/* offset animation */
.projects .project:nth-child(1) .project-icon {
    animation-delay: 0s; 
}
.projects .project:nth-child(2) .project-icon {
    animation-delay: -2s; 
}
.projects .project:nth-child(3) .project-icon {
    animation-delay: -4s; 
}
.projects .project:nth-child(4) .project-icon {
    animation-delay: -6s; 
}

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

.project a:hover .project-icon {
    animation-play-state:paused;
}



.project-info {
    display: flex;
    flex-direction: column;
    margin-block-start:.5rem;
    margin-inline-start:1rem;
    gap: 0.15rem;
}

.project-title {
    font-family:"Overused-Medium", sans-serif;
    font-size:  1.25rem;
    color:var(--text-navy);
    line-height: 1.2;
    transition: color 0.3s ease;
}

.project-link:hover .project-title {
    color: var(--section-blue);
}



.project-link:hover .project-desc {
    max-height: 120px;
    opacity: 1;
    margin-top: 0.3rem;
}

.project-blurb {
    position: relative;
}

.project-tag,
.project-desc {
    margin: 0;
    transition: opacity 0.3s ease, max-height 0.45s ease;
}

.project-tag {
    font-family:"Overused-Medium";
    font-size:.9rem;
    color:var(--section-blue)
}

.project-desc {
    font-size: 1rem;
    line-height: 1.3;
    color: var(--text-navy); /* or your muted token */
    max-width: 520px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}
.project a:hover .project-desc,
.project a:focus-within .project-desc {
    max-height: 12rem; /* large enough for longest paragraph; tune or use a bigger value */
    opacity: 1;
    margin-top: 0.35rem;
}
/* .project a:hover .project-tag,
.project a:focus-within .project-tag {
    opacity: 0;
    
} */










/* SIDEBAR */

.sidebar {
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:2rem;
    
}
.sidebar-nav{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:0.5rem;
}
.nav-pill{
    display:inline-block;
    font-family:'Overused-Medium',sans-serif;
    font-size:1rem;
    letter-spacing:.05em;
    color:var(--text--navy);
    background:var(--button-gray);
    border-radius:5rem;
    padding:.5em 1em;
    transition: background .2s ease;
}
.nav-pill:hover{
    background:var(--button-click);
    font-family:'Overused',sans-serif;
}
.sidebar-info{
    display:flex;
    flex-direction:column;
    gap:1rem;
    text-align:right;

}
.sidebar-desc{
    font-family:'Overused',sans-serif;
    font-size:1rem;
    line-height:1.3;
    color:var(--text-navy);
    max-width:15rem;

}












/* ABOUT / FOOTER */

.about {
    background: var(--blue-dark);
    color: var(--white);
    padding: clamp(4rem, 8vw, 7rem) 2rem;
}

.about-inner {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
}

.about-text h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 300;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.about-text p {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--blue-muted);
}

.about-links h3 {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blue-light);
    margin-bottom: 1.5rem;
}

.about-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.about-links a {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.about-links a:hover {
    color: var(--blue-light);
}

.about-links a::before {
    content: '→';
    font-size: 0.85rem;
    color: var(--blue-muted);
    transition: transform 0.3s ease, color 0.3s ease;
}

.about-links a:hover::before {
    transform: translateX(4px);
    color: var(--blue-light);
}




/* ANIMATIONS */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollLine {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(0.5);
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* RESPONSIVE */

@media (min-width: 640px) {
    .about-inner {
        grid-template-columns: 1.2fr 1fr;
        text-align: left;
        gap: 5rem;
    }
}

@media (max-width: 480px) {
    .project-link {
        grid-template-columns: 1fr auto;
        gap: 1rem;
    }

    .project-num {
        display: none;
    }

    .project-link:hover .project-desc {
        max-height: 150px;
    }
}
