:root {
    --navy: #032d60;
    --blue: #0b5cab;
    --blue-light: #eaf5fe;
    --cloud: #f4f7fa;
    --white: #ffffff;
    --ink: #181818;
    --muted: #444746;
    --border: #c9c9c9;
    --gold: #8a5700;
    --gold-light: #fff4d6;
    --focus: #0176d3;
    --shadow: 0 4px 18px rgba(3, 45, 96, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cloud);
    font-family: "Salesforce Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

button,
input {
    font: inherit;
}

a {
    color: var(--blue);
}

a:hover {
    text-decoration-thickness: 2px;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 1000;
    padding: 0.75rem 1rem;
    color: var(--white);
    background: var(--navy);
    border-radius: 0.35rem;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero {
    background: #d9f5f5;
}

.hero-banner {
    display: block;
    width: 100%;
    height: auto;
}

.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(3, 45, 96, 0.08);
}

.nav-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    max-width: 75rem;
    margin: 0 auto;
}

.nav-btn {
    min-height: 2.75rem;
    padding: 0.6rem 1.1rem;
    color: var(--navy);
    background: var(--white);
    border: 2px solid #b6c8dc;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 750;
}

.nav-btn:hover {
    background: var(--blue-light);
    border-color: var(--blue);
}

.nav-btn.active {
    color: var(--white);
    background: var(--blue);
    border-color: var(--blue);
}

.container {
    max-width: 78rem;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 30rem);
    align-items: end;
    gap: 2rem;
    margin-bottom: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid #d8e2ed;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.search-panel h2,
.search-panel p {
    margin: 0;
}

.search-panel h2 {
    color: var(--navy);
    font-size: 1.5rem;
}

.search-field label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--navy);
    font-weight: 750;
}

.search-field input {
    width: 100%;
    min-height: 3rem;
    padding: 0.7rem 0.9rem;
    color: var(--ink);
    background: var(--white);
    border: 2px solid #8a9bad;
    border-radius: 0.5rem;
}

.results-status {
    min-height: 2rem;
    margin: 1.2rem 0;
    color: var(--muted);
    font-weight: 650;
}

.track-section {
    margin: 3.5rem 0 5rem;
}

.track-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.55rem;
    margin: 0 0 2rem;
    padding-bottom: 0.85rem;
    color: var(--navy);
    border-bottom: 4px solid var(--blue);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.2;
}

.count {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
}

.project-group {
    margin-bottom: 3rem;
}

.section-header {
    margin: 0 0 1.25rem;
    color: var(--navy);
    font-size: 1.35rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
    gap: 1.5rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    background: var(--white);
    border: 1px solid #d8e2ed;
    border-radius: 0.85rem;
    box-shadow: var(--shadow);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 26px rgba(3, 45, 96, 0.18);
}

.project-card.winner {
    border: 3px solid #c78d21;
    box-shadow: 0 5px 22px rgba(138, 87, 0, 0.2);
}

.project-thumbnail {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 10rem;
    overflow: hidden;
    background: linear-gradient(135deg, #e9f5ff 0%, #f7fbff 55%, #e1effd 100%);
    border-bottom: 1px solid #d8e2ed;
}

.thumbnail-shape {
    position: absolute;
    display: block;
    border-radius: 999px;
    transform: rotate(-28deg);
}

.thumbnail-shape--one {
    top: -3rem;
    left: -2rem;
    width: 11rem;
    height: 5rem;
    background: rgba(1, 118, 211, 0.18);
}

.thumbnail-shape--two {
    right: -2rem;
    bottom: -3rem;
    width: 13rem;
    height: 7rem;
    background: rgba(11, 92, 171, 0.17);
}

.video-thumbnail-link {
    color: var(--white);
    text-decoration: none;
}

.project-thumbnail--image {
    padding: 0;
    background: #dce8f5;
}

.project-image {
    display: block;
    width: 100%;
    height: 10rem;
    object-fit: cover;
}

.video-thumbnail-link.project-thumbnail--image::after {
    position: absolute;
    inset: 0;
    background: rgba(3, 45, 96, 0.12);
    content: "";
}

.video-thumbnail-link:hover {
    color: var(--white);
    text-decoration: none;
}

.video-play-mark {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: 3.5rem;
    height: 3.5rem;
    align-items: center;
    justify-content: center;
    padding-left: 0.2rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 14px rgba(3, 45, 96, 0.28);
    border-radius: 50%;
    color: var(--navy);
    font-size: 1.4rem;
}

.video-thumbnail-link:hover .video-play-mark {
    background: var(--navy);
    color: var(--white);
}

.project-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.35rem;
}

.awards-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.award-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.25rem 0.65rem;
    color: #593a00;
    background: var(--gold-light);
    border: 1px solid #d6a43d;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.25;
}

.award-badge.place {
    color: var(--navy);
    background: var(--blue-light);
    border-color: #78b8e8;
}

.project-title {
    margin: 0 0 0.45rem;
    color: var(--navy);
    font-size: 1.35rem;
    line-height: 1.25;
}

.project-team,
.project-track {
    margin: 0 0 0.55rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.project-track {
    color: var(--blue);
    font-weight: 750;
}

.project-pitch {
    display: -webkit-box;
    overflow: hidden;
    margin: 0.5rem 0 1.2rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e2e8ef;
}

.button,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.6rem 0.95rem;
    border-radius: 0.45rem;
    cursor: pointer;
    font-weight: 750;
    text-decoration: none;
}

.button {
    color: var(--white);
    background: var(--blue);
    border: 2px solid var(--blue);
}

.button:hover {
    color: var(--white);
    background: var(--navy);
    border-color: var(--navy);
    text-decoration: none;
}

.button-secondary {
    color: var(--blue);
    background: var(--white);
    border: 2px solid var(--blue);
}

.button-secondary:hover {
    color: var(--navy);
    background: var(--blue-light);
    text-decoration: none;
}

.empty-state {
    padding: 4rem 1.5rem;
    text-align: center;
}

.empty-state h2 {
    color: var(--navy);
}

.footer {
    padding: 2.5rem 1.5rem;
    color: var(--white);
    background: var(--navy);
    text-align: center;
}

.footer p {
    margin: 0.3rem 0;
}

.project-modal {
    width: min(48rem, calc(100% - 2rem));
    max-height: calc(100vh - 2rem);
    padding: 0;
    overflow: hidden;
    color: var(--ink);
    background: var(--white);
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.project-modal::backdrop {
    background: rgba(3, 22, 43, 0.72);
}

.modal-shell {
    position: relative;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 2.25rem;
}

.modal-close {
    position: sticky;
    top: 0;
    float: right;
    width: 2.75rem;
    height: 2.75rem;
    margin: -1rem -1rem 0.5rem 1rem;
    color: var(--navy);
    background: var(--white);
    border: 2px solid var(--navy);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.7rem;
    line-height: 1;
}

.modal-kicker {
    margin: 0 0 0.5rem;
    color: var(--blue);
    font-weight: 800;
}

.project-modal h2 {
    margin: 0 0 0.5rem;
    color: var(--navy);
    font-size: clamp(1.7rem, 5vw, 2.3rem);
    line-height: 1.15;
}

.modal-description {
    white-space: pre-line;
}

.modal-section {
    margin-top: 1.75rem;
}

.modal-section h3 {
    margin-bottom: 0.6rem;
    color: var(--navy);
}

.resource-list {
    padding-left: 1.3rem;
}

.resource-list li {
    margin: 0.5rem 0;
}

.hidden {
    display: none !important;
}

@media (max-width: 700px) {
    .hero {
        padding: 4rem 1.25rem 3.5rem;
    }

    .sticky-nav {
        position: static;
    }

    .nav-container {
        align-items: stretch;
        flex-direction: column;
    }

    .search-panel {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .container {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .modal-shell {
        padding: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
