:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
    --page-ink: #16202a;
    --page-muted: #627081;
    --page-line: rgba(22, 32, 42, 0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: #f5f7fa;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--page-ink);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 248, 251, 0.96) 55%, #f2f5f8 100%);
}

a {
    color: inherit;
}

.page-glow {
    position: fixed;
    z-index: 0;
    width: 34rem;
    height: 34rem;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(4px);
    opacity: 0.42;
}

.page-glow-one {
    top: -19rem;
    left: -13rem;
    background: radial-gradient(circle, rgba(34, 91, 119, 0.18), transparent 70%);
}

.page-glow-two {
    right: -15rem;
    bottom: -20rem;
    background: radial-gradient(circle, rgba(90, 49, 93, 0.14), transparent 70%);
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(100% - 2.5rem, 1240px);
    margin: 0 auto;
    padding: clamp(3rem, 7vw, 6.25rem) 0 2.25rem;
}

.page-header {
    width: min(100%, 760px);
    margin: 0 auto clamp(2.25rem, 5vw, 4rem);
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1.15rem;
    color: #566475;
    font-size: 0.73rem;
    font-weight: 750;
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
    width: 1.7rem;
    height: 1px;
    content: "";
    background: #aeb8c3;
}

h1 {
    margin: 0;
    color: #17212b;
    font-size: clamp(2.1rem, 5vw, 4.25rem);
    font-weight: 720;
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.introduction {
    max-width: 640px;
    margin: 1.25rem auto 0;
    color: var(--page-muted);
    font-size: clamp(1rem, 1.8vw, 1.16rem);
    line-height: 1.7;
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.1rem, 2.4vw, 1.75rem);
}

.faculty-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(27, 39, 51, 0.1);
    border-radius: 1.35rem;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--faculty-surface) 54%, white), white 48%);
    box-shadow:
        0 1px 2px rgba(21, 31, 42, 0.04),
        0 18px 45px rgba(31, 43, 56, 0.075);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.faculty-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--faculty-primary) 28%, transparent);
    box-shadow:
        0 2px 4px rgba(21, 31, 42, 0.04),
        0 24px 54px rgba(31, 43, 56, 0.11);
}

.card-stripe {
    height: 0.32rem;
    background: linear-gradient(90deg, var(--faculty-primary), var(--faculty-secondary) 62%, var(--faculty-accent));
}

.card-content {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.card-heading {
    position: relative;
    display: flex;
    min-height: 13rem;
    align-items: center;
    justify-content: center;
    padding: 1.35rem 1.5rem;
    overflow: hidden;
    border-radius: 1rem;
    background:
        radial-gradient(circle at 80% 10%, color-mix(in srgb, var(--faculty-accent) 42%, transparent), transparent 38%),
        linear-gradient(135deg, var(--faculty-primary), var(--faculty-secondary));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.faculty-code {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    padding: 0.38rem 0.62rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(8px);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
}

.faculty-logo-link {
    display: inline-flex;
    width: 100%;
    min-height: 10rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    outline: none;
}

.faculty-logo-link:focus-visible,
.network-link:focus-visible,
.service-link:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--faculty-accent) 70%, white);
    outline-offset: 3px;
}

.faculty-logo {
    display: block;
    width: min(100%, 20rem);
    height: auto;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.18));
}

.faculty-logo-fallback {
    color: var(--faculty-primary);
    font-size: 1.2rem;
    font-weight: 750;
    line-height: 1.35;
    text-align: center;
}

.network-links {
    display: flex;
    min-height: 2.8rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 0.65rem;
}

.network-link {
    display: inline-flex;
    width: 2.55rem;
    height: 2.55rem;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--faculty-primary) 14%, #d7dde4);
    border-radius: 999px;
    color: var(--faculty-primary);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 4px 12px rgba(27, 39, 51, 0.055);
    transition: color 150ms ease, background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.network-link:hover {
    transform: translateY(-2px);
    border-color: var(--faculty-primary);
    color: #fff;
    background: var(--faculty-primary);
}

.network-link svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.network-link svg .icon-fill {
    fill: currentColor;
    stroke: none;
}

.website-link {
    margin-right: 0.55rem;
    color: white;
    background: var(--faculty-primary);
    box-shadow: 0 5px 14px color-mix(in srgb, var(--faculty-primary) 24%, transparent);
}

.website-link::after {
    position: absolute;
    width: 1px;
    height: 1.7rem;
    margin-left: 3.7rem;
    content: "";
    pointer-events: none;
    background: color-mix(in srgb, var(--faculty-primary) 15%, #d8dee5);
}

.card-divider {
    height: 1px;
    margin: 1.55rem 0 1.15rem;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--faculty-primary) 22%, #dfe4e9), transparent);
}

.service-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.service-link {
    display: flex;
    min-height: 2.8rem;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.72rem 0.85rem;
    border: 1px solid transparent;
    border-radius: 0.72rem;
    color: #344252;
    background: color-mix(in srgb, var(--faculty-surface) 58%, #f5f7f9);
    font-size: 0.87rem;
    font-weight: 680;
    line-height: 1.25;
    text-decoration: none;
    transition: color 150ms ease, background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.service-link:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.service-link:hover {
    transform: translateX(2px);
    border-color: color-mix(in srgb, var(--faculty-primary) 17%, transparent);
    color: var(--faculty-primary);
    background: color-mix(in srgb, var(--faculty-primary) 8%, white);
}

.service-link svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.page-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2.3rem 1rem 0;
    color: #788493;
    font-size: 0.75rem;
    line-height: 1.6;
    text-align: center;
}

.footer-dot {
    width: 0.24rem;
    height: 0.24rem;
    border-radius: 999px;
    background: #a8b1bc;
}

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

@media (min-width: 1000px) {
    .page-shell {
        padding-top: clamp(1.6rem, 3.2vh, 2.5rem);
        padding-bottom: 0.4rem;
    }

    .page-header {
        margin-bottom: clamp(1.2rem, 2.4vh, 1.8rem);
    }

    .eyebrow {
        margin-bottom: 0.75rem;
    }

    h1 {
        font-size: clamp(2.4rem, 3.6vw, 3.35rem);
    }

    .introduction {
        margin-top: 0.7rem;
        font-size: 1rem;
        line-height: 1.45;
    }

    .faculty-grid {
        gap: clamp(0.8rem, 1.8vh, 1.15rem) clamp(1rem, 1.8vw, 1.5rem);
    }

    .card-content {
        padding: clamp(0.85rem, 1.5vh, 1.1rem) 1.15rem;
    }

    .card-heading {
        min-height: clamp(8.6rem, 17.5vh, 10.25rem);
        padding: 0.65rem 1.1rem;
    }

    .faculty-logo-link {
        min-height: 7.8rem;
    }

    .faculty-logo {
        width: min(100%, 17rem);
    }

    .network-links {
        min-height: 2.35rem;
        gap: 0.42rem;
        margin-top: 0.5rem;
    }

    .network-link {
        width: 2.25rem;
        height: 2.25rem;
    }

    .network-link svg {
        width: 1rem;
        height: 1rem;
    }

    .website-link {
        margin-right: 0.4rem;
    }

    .website-link::after {
        height: 1.45rem;
        margin-left: 3.25rem;
    }

    .card-divider {
        margin: 0.75rem 0;
    }

    .service-links {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.38rem;
    }

    .service-link,
    .service-link:last-child:nth-child(odd) {
        grid-column: auto;
        min-height: 2.35rem;
        justify-content: center;
        padding: 0.52rem 0.32rem;
        font-size: 0.75rem;
        text-align: center;
    }

    .service-link svg {
        display: none;
    }

    .page-footer {
        padding-top: 0.5rem;
    }
}

@media (max-width: 760px) {
    .page-shell {
        width: min(100% - 1.25rem, 600px);
        padding-top: 2.75rem;
    }

    .page-header {
        margin-bottom: 2rem;
    }

    .eyebrow {
        font-size: 0.65rem;
        letter-spacing: 0.13em;
    }

    .eyebrow::before,
    .eyebrow::after {
        width: 1rem;
    }

    .faculty-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .faculty-card {
        border-radius: 1.1rem;
    }

    .card-heading {
        min-height: 11.8rem;
        padding: 1.25rem 1rem;
    }

    .faculty-logo {
        width: min(100%, 18rem);
    }
}

@media (max-width: 420px) {
    .page-shell {
        width: min(100% - 0.9rem, 390px);
    }

    .card-content {
        padding: 1rem;
    }

    .service-links {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-link:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .network-links {
        gap: 0.43rem;
    }

    .network-link {
        width: 2.4rem;
        height: 2.4rem;
    }

    .website-link {
        margin-right: 0.35rem;
    }

    .website-link::after {
        margin-left: 3.25rem;
    }

    .page-footer {
        flex-direction: column;
        gap: 0.15rem;
    }

    .footer-dot {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
