:root {
    --bg-deep: #0f1e2c;
    --bg-mid: #1c3244;
    --surface: rgba(255, 255, 255, 0.94);
    --surface-soft: rgba(255, 255, 255, 0.82);
    --text-main: #13253a;
    --text-soft: #4a5a6a;
    --brand: #0d5873;
    --brand-dark: #0a4156;
    --accent: #2e8b8f;
    --line: rgba(19, 37, 58, 0.12);
    --shadow: 0 20px 45px rgba(6, 20, 35, 0.2);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Barlow", "Segoe UI", sans-serif;
    color: #e9f1f8;
    background:
        radial-gradient(circle at 85% 12%, rgba(46, 139, 143, 0.42), transparent 46%),
        radial-gradient(circle at 12% 88%, rgba(13, 88, 115, 0.38), transparent 52%),
        linear-gradient(150deg, rgba(15, 30, 44, 0.96), rgba(28, 50, 68, 0.93));
    min-height: 100vh;
}

a {
    color: inherit;
}

.page-wrap {
    width: min(1500px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.25rem 0 4rem;
}

.topbar {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    background: rgba(26, 12, 38, 0.5);
    backdrop-filter: blur(6px);
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-mark {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    object-fit: cover;
    cursor: zoom-in;
}

.wsu-mark {
    width: 170px;
    height: auto;
    filter: none;
    opacity: 1;
    background: rgba(20, 11, 32, 0.92);
    border-radius: 10px;
    padding: 0.35rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 6px 14px rgba(8, 4, 14, 0.35);
}

.top-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pill-link {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pill-link:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.42);
    transform: translateY(-1px);
}

.hero {
    margin-top: 1.1rem;
    border-radius: 24px;
    background: linear-gradient(120deg, rgba(22, 15, 36, 0.86), rgba(73, 35, 101, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow);
    padding: clamp(1.3rem, 4vw, 2.2rem);
    display: flex;
    gap: 1.5rem;
    align-items: center;
    animation: rise 0.5s ease both;
}

.hero.profile {
    align-items: flex-start;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    flex-shrink: 0;
}

.hero-text h1 {
    margin: 0;
    font-family: "Merriweather", Georgia, serif;
    font-size: clamp(1.65rem, 4vw, 2.6rem);
    line-height: 1.2;
}

.hero-kicker {
    margin: 0 0 0.55rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(233, 241, 248, 0.76);
}

.hero p {
    margin: 0.7rem 0 0;
    font-size: 1rem;
    max-width: 78ch;
    line-height: 1.5;
    color: rgba(233, 241, 248, 0.94);
}

.button-row {
    margin-top: 1rem;
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    color: #1f2b38;
}

.btn-secondary {
    background: rgba(122, 62, 168, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.36);
    color: #ffffff;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.section-block {
    margin-top: 1.6rem;
    background: var(--surface-soft);
    color: var(--text-main);
    border-radius: 18px;
    border: 1px solid var(--line);
    padding: 1rem;
    box-shadow: var(--shadow);
    animation: rise 0.5s ease both;
}

.section-title {
    margin: 0 0 0.9rem;
    font-family: "Merriweather", Georgia, serif;
    font-size: 1.3rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 8px 18px rgba(7, 24, 43, 0.12);
}

.card h3 {
    margin: 0;
    font-size: 1.02rem;
    color: var(--text-main);
}

.card p {
    margin: 0.55rem 0 0;
    color: var(--text-soft);
    line-height: 1.45;
}

.link-row {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}

.link-chip {
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand);
    border: 1px solid rgba(73, 35, 101, 0.28);
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
    background: rgba(73, 35, 101, 0.08);
}

.link-chip:hover {
    color: var(--brand-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(12, 7, 20, 0.14);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
}

.report-pages {
    padding: 0.7rem;
}

.meta-list {
    margin: 0;
    padding-left: 1.1rem;
    line-height: 1.55;
    color: var(--text-soft);
}

.site-footer {
    margin-top: 1.3rem;
    text-align: center;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(26, 12, 38, 0.5);
    color: rgba(233, 241, 248, 0.95);
    font-size: 0.94rem;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(8, 5, 14, 0.78);
    z-index: 1000;
    padding: 1rem;
}

.modal-backdrop.is-open {
    display: flex;
}

.modal-card {
    position: relative;
    max-width: min(92vw, 760px);
    max-height: 92vh;
}

.modal-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.modal-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(20, 11, 32, 0.95);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

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

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

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .page-wrap {
        width: calc(100% - 1rem);
        padding-top: 0.7rem;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-links {
        width: 100%;
    }

    .pill-link {
        flex: 1 1 auto;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero,
    .hero.profile {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-image {
        width: 104px;
        height: 104px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .section-block {
        padding: 0.85rem;
    }

    .wsu-mark {
        width: 128px;
    }
}
