.site-header {
    background-image: url("headerbg_cropped.jpg");
    background-position: bottom;
}

.site-header.site-header--slim {
    height: 50vh;
}

.site-header.site-header--slim .header-content {
    bottom: 4vh;
}

.site-header.site-header--slim .header-content h1 {
    font-size: clamp(2rem, 4.3vw, 3.4rem);
    margin-bottom: 0;
    text-align: center;
    width: 80vw;
}

.header-bar {
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.header-nav a {
    display: inline-flex !important;
    height: auto !important;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    text-decoration: none;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.header-nav a:hover,
.header-nav a:focus-visible,
.header-nav a[aria-current="page"] {
    background-color: #fff;
    color: #0a2640;
    border-color: #fff;
    text-decoration: none;
}

.section {
    min-height: auto;
}

.section .project-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.section h2 {
    margin-bottom: 2.25rem;
    color: #fff;
}

.project-card {
    position: relative;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 3px 4px 12px 0 rgba(0, 0, 0, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    color: #243746;
}

.project-card:not(.project-card--winner) {
    opacity: 0.7;
}

.section--turquoise .project-card {
    box-shadow: 4px 5px 14px 0 rgba(3, 18, 30, 0.22);
}

.project-card:hover {
    box-shadow: 5px 7px 16px 0 rgba(0, 0, 0, 0.2);
}

.project-card--winner {
    overflow: visible;
    border: 3px solid #cfa24f;
    box-shadow: 0 6px 16px rgba(181, 136, 81, 0.22), 3px 4px 12px rgba(0, 0, 0, 0.16);
    opacity: 1;
    animation: winnerGlow 3.4s ease-in-out infinite;
}

@keyframes winnerGlow {

    0%,
    100% {
        box-shadow: 0 6px 16px rgba(181, 136, 81, 0.2), 3px 4px 12px rgba(0, 0, 0, 0.16);
    }

    50% {
        box-shadow: 0 10px 22px rgba(207, 162, 79, 0.32), 0 0 26px rgba(207, 162, 79, 0.24), 3px 4px 12px rgba(0, 0, 0, 0.14);
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-card--winner {
        animation: none;
    }
}

.winner-badge {
    position: absolute;
    left: -64px;
    top: -74px;
    z-index: 3;
    width: 126px;
    height: 126px;
    transform: rotate(-25deg);
    filter: drop-shadow(0 5px 7px rgba(11, 23, 33, 0.22));
    pointer-events: none;
    object-fit: contain;
}

.project-card>img:not(.winner-badge) {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    position: relative;
    z-index: 5;
}

.project-card .content {
    padding: 1.2rem 1.25rem 1.35rem;
}

.project-card .content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
}

.project-card .team {
    margin-bottom: 0.75rem;
    color: #0a2640;
    font-weight: 800;
    font-size: 1rem;
}

.project-card p {
    font-size: 0.97rem;
    line-height: 1.55;
    margin-bottom: 0.65rem;
}

@media (max-width: 1024px) {
    .section .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .project-card--winner {
        order: -1;
    }
}

@media (max-width: 760px) {
    .site-header.site-header--slim {
        height: 30vh;
    }
    
    .header-nav {
        display: none;
    }

    .section .project-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .project-card--winner {
        order: -1;
    }
}