.staff-portal {
    background: #00020e;
}

.staff-main {
    position: relative;
    overflow: hidden;
    background: #00020e;
}

.staff-main::before {
    display: none;
}

.staff-dot-matrix {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.staff-dot-matrix canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.staff-hero {
    position: relative;
    z-index: 1;
    padding-top: clamp(88px, 11vw, 154px);
    padding-bottom: clamp(78px, 10vw, 130px);
    text-align: center;
}

.staff-intro {
    max-width: none;
}

.staff-hero .portal-title {
    max-width: 100%;
    margin: -0.08em auto -0.12em;
    padding: 0.08em 0 0.16em;
    font-size: clamp(2.6rem, 5.9vw, 5.4rem);
    line-height: 1.08;
    letter-spacing: -0.055em;
    white-space: nowrap;
    overflow: visible;
}

.staff-hero .portal-lead {
    max-width: none;
    margin-inline: auto;
    white-space: nowrap;
}

.auth-gate {
    position: relative;
    z-index: 1;
    padding-top: clamp(96px, 14vw, 180px);
    padding-bottom: clamp(96px, 14vw, 180px);
    display: flex;
    justify-content: center;
}

.auth-gate-card {
    width: min(100%, 500px);
    padding: 40px 36px;
    text-align: center;
    border: 1px solid var(--vic-border);
    border-radius: var(--portal-radius);
    background: rgba(255, 255, 255, 0.025);
    box-shadow: var(--portal-shadow);
}

.auth-gate-card .portal-title {
    display: grid;
    row-gap: 0.08em;
    margin: 0.1em 0 0.06em;
    font-size: clamp(1.9rem, 7vw, 2.6rem);
    line-height: 1.1;
}

.auth-gate-card .portal-title span {
    display: block;
    white-space: nowrap;
}

.auth-gate-card .portal-lead {
    margin-inline: auto;
    max-width: none;
}

.auth-google-btn {
    margin: 26px auto 0;
    background: var(--vic-white);
    color: #1f1f1f;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.auth-google-btn:hover {
    filter: none;
    background: #f5f5f5;
}

.auth-google-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.auth-gate-note {
    margin: 18px 0 0;
    padding: 12px 14px;
    border: 1px solid rgba(243, 154, 24, 0.34);
    border-radius: 12px;
    background: rgba(243, 154, 24, 0.08);
    color: #f3c98a;
    font-size: 0.82rem;
    line-height: 1.5;
}

.systems-section {
    position: relative;
    z-index: 1;
    padding-bottom: clamp(80px, 11vw, 144px);
}

.systems-heading {
    padding-top: 32px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    border-top: 1px solid var(--vic-border);
}

.systems-heading .portal-eyebrow {
    margin-bottom: 10px;
}

.systems-heading h2 {
    margin: 0;
    color: var(--vic-white);
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.6vw, 3rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.systems-heading > p {
    margin: 0 0 4px;
    color: var(--vic-faint);
    font-size: 0.84rem;
}

.systems-grid {
    margin-top: clamp(36px, 5vw, 56px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.system-card {
    --system-accent: 69, 201, 219;
    position: relative;
    min-height: 390px;
    overflow: hidden;
    padding: clamp(26px, 3vw, 34px);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--vic-border);
    border-radius: var(--portal-radius);
    color: var(--vic-white);
    background: rgba(9, 12, 42, 0.9);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    text-decoration: none;
    transition:
        transform 360ms var(--ease-out),
        border-color 300ms ease,
        box-shadow 360ms ease,
        background-color 300ms ease;
}

.system-card::after {
    display: none;
}

.system-card:hover {
    border-color: rgba(var(--system-accent), 0.5);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    transform: translateY(-8px);
}

.system-card.is-learning {
    --system-accent: 243, 154, 24;
}

.system-card.is-brand {
    --system-accent: 216, 179, 41;
}

.system-icon {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(var(--system-accent), 0.3);
    border-radius: 16px;
    color: rgb(var(--system-accent));
    background: rgba(var(--system-accent), 0.08);
}

.system-icon svg {
    width: 38px;
    height: 38px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.system-category {
    position: relative;
    z-index: 1;
    margin-top: 34px;
    color: rgb(var(--system-accent));
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.system-card h3 {
    position: relative;
    z-index: 1;
    margin: 12px 0 12px;
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 2.4vw, 2.05rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.system-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--vic-muted);
    font-size: 0.94rem;
}

.system-link {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--vic-white);
    font-family: var(--font-display);
    font-size: 0.77rem;
    font-weight: 800;
}

.system-link > span {
    color: rgb(var(--system-accent));
    font-size: 1.25rem;
    transition: transform 250ms var(--ease-out);
}

.system-card:hover .system-link > span {
    transform: translate(4px, -4px);
}

.access-note {
    margin-top: 22px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--vic-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.access-note-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(69, 201, 219, 0.32);
    border-radius: 50%;
    color: var(--vic-cyan);
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 800;
}

.access-note p {
    margin: 0;
    color: var(--vic-muted);
    font-size: 0.86rem;
}

@media (max-width: 900px) {
    .systems-grid {
        grid-template-columns: 1fr;
    }

    .system-card {
        min-height: 310px;
    }
}

@media (max-width: 720px) {
    .staff-hero {
        padding-top: 76px;
        padding-bottom: 80px;
    }

    .staff-hero .portal-title {
        font-size: clamp(1.85rem, 8.2vw, 2.4rem);
    }

    .staff-hero .portal-lead {
        font-size: clamp(0.68rem, 2.8vw, 0.9rem);
        white-space: nowrap;
    }

    .systems-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .system-card {
        min-height: 320px;
        padding: 26px 24px;
    }

    .system-icon {
        width: 58px;
        height: 58px;
    }

    .system-category {
        margin-top: 28px;
    }

    .access-note {
        align-items: flex-start;
    }
}
