/* =========================================================
   QBANK PREMIUM RAINBOW EDITION
   FULL RESPONSIVE + NO OVERLAP
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #111111;
    overflow-x: hidden;
    max-width: 100%;
}

button,
a,
input,
select {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}

img,
svg,
video {
    max-width: 100%;
}


/* =========================================================
   RAINBOW VARIABLES
========================================================= */

:root {
    --pink: #ff287f;
    --purple: #7657ff;
    --blue: #00a8ff;
    --cyan: #00d9ff;
    --yellow: #ffc400;
    --green: #39e58c;

    --rainbow:
        linear-gradient(
            90deg,
            #ff287f 0%,
            #ff4f91 20%,
            #7657ff 45%,
            #00a8ff 70%,
            #ffc400 100%
        );

    --rainbow-full:
        linear-gradient(
            135deg,
            #ff287f,
            #ff7a18,
            #ffc400,
            #39e58c,
            #00b8ff,
            #7657ff,
            #ff287f
        );

    --border: #e8e8e8;
    --muted: #777;
}


/* =========================================================
   GLOBAL RAINBOW TEXT
========================================================= */

.rainbow-text,
.rainbow-paper,
.brand-q {
    background: var(--rainbow);
    background-size: 250% auto;

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;

    animation: rainbowText 5s linear infinite;
}

@keyframes rainbowText {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 250% center;
    }
}


/* =========================================================
   SPLASH SCREEN
========================================================= */

.splash-screen {
    position: fixed;
    inset: 0;

    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(118, 87, 255, .25),
            transparent 35%
        ),
        #050505;

    color: white;

    overflow: hidden;

    transition:
        opacity .7s ease,
        visibility .7s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


/* ---------- Animated Background ---------- */

.splash-bg {
    position: absolute;
    inset: -20%;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(255, 40, 127, .35),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 15%,
            rgba(0, 168, 255, .32),
            transparent 28%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(118, 87, 255, .35),
            transparent 30%
        ),
        radial-gradient(
            circle at 20% 85%,
            rgba(255, 196, 0, .25),
            transparent 28%
        );

    filter: blur(10px);

    animation: splashColors 10s ease-in-out infinite alternate;
}

@keyframes splashColors {
    0% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.12) rotate(4deg);
    }

    100% {
        transform: scale(1.05) rotate(-4deg);
    }
}


/* ---------- Rainbow Aura ---------- */

.splash-screen::before {
    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    border-radius: 50%;

    background:
        conic-gradient(
            #ff287f,
            #ff7a18,
            #ffc400,
            #39e58c,
            #00b8ff,
            #7657ff,
            #ff287f
        );

    filter: blur(90px);

    opacity: .22;

    animation:
        splashOrbit 12s linear infinite;
}

@keyframes splashOrbit {
    to {
        transform: rotate(360deg);
    }
}


/* ---------- Grid ---------- */

.splash-grid {
    position: absolute;
    inset: 0;

    opacity: .12;

    background-image:
        linear-gradient(
            rgba(255,255,255,.12) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.12) 1px,
            transparent 1px
        );

    background-size: 45px 45px;

    mask-image:
        linear-gradient(
            to bottom,
            transparent,
            black 20%,
            black 80%,
            transparent
        );
}


/* ---------- Splash Core ---------- */

.qbank-splash-core {
    width: min(700px, calc(100% - 30px));

    text-align: center;

    position: relative;
    z-index: 5;

    max-height: 100vh;
}


/* ---------- Institute ---------- */

.splash-institute {
    font-size: 11px;
    letter-spacing: 4px;
    opacity: .7;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 15px;

    margin-bottom: 25px;
}

.splash-institute span {
    width: 45px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.7),
            transparent
        );
}


/* =========================================================
   SPLASH LOGO
========================================================= */

.qbank-logo-wrap {
    width: 110px;
    height: 110px;

    margin: auto;

    position: relative;

    display: grid;
    place-items: center;
}

.qbank-logo {
    width: 82px;
    height: 82px;

    position: absolute;
    inset: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.4);

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.16),
            rgba(255,255,255,.03)
        );

    backdrop-filter: blur(18px);

    transform: rotate(-8deg);

    box-shadow:
        0 0 35px rgba(118,87,255,.25),
        inset 0 0 30px rgba(255,255,255,.05);

    animation:
        logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%,
    100% {
        transform: rotate(-8deg) translateY(0);
    }

    50% {
        transform: rotate(4deg) translateY(-7px);
    }
}

.logo-q,
.logo-b {
    font-size: 34px;
    font-weight: 900;
}

.logo-b {
    margin-left: -4px;
}

.logo-ring {
    position: absolute;
    inset: 0;

    border: 1px solid rgba(255,255,255,.18);

    border-radius: 50%;

    animation:
        ringRotate 8s linear infinite;
}

.ring-2 {
    inset: 7px;

    border-color:
        rgba(255,255,255,.1);
}

@keyframes ringRotate {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   SPLASH BRAND
========================================================= */

.splash-brand h1 {
    margin-top: 22px;

    font-size: 48px;

    letter-spacing: -2px;
}

.splash-brand p {
    font-size: 10px;

    letter-spacing: 3px;

    opacity: .55;
}

.brand-line {
    width: 70px;
    height: 2px;

    margin: 10px auto;

    background:
        linear-gradient(
            90deg,
            #ff287f,
            #7657ff,
            #00a8ff,
            #ffc400
        );

    box-shadow:
        0 0 15px rgba(118,87,255,.8);
}


/* =========================================================
   ACADEMIC PIPELINE
========================================================= */

.academic-pipeline {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 10px;

    margin: 35px 0;
}

.pipeline-item {
    display: flex;
    flex-direction: column;

    gap: 5px;

    min-width: 100px;
}

.pipeline-item span {
    font-size: 10px;
    opacity: .45;
}

.pipeline-item strong {
    font-size: 11px;
}

.pipeline-item.active strong {
    color: #ffcf33;

    text-shadow:
        0 0 12px rgba(255,196,0,.5);
}

.academic-pipeline i {
    width: 30px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            #ff287f,
            #7657ff,
            #00a8ff,
            #ffc400
        );
}


/* =========================================================
   TERMINAL
========================================================= */

.question-terminal {
    border: 1px solid rgba(255,255,255,.15);

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.08),
            rgba(255,255,255,.025)
        );

    backdrop-filter: blur(20px);

    text-align: left;

    box-shadow:
        0 25px 80px rgba(0,0,0,.3);

    overflow: hidden;
}

.terminal-top {
    padding: 10px 14px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom:
        1px solid rgba(255,255,255,.08);
}

.terminal-dots {
    display: flex;
    gap: 5px;
}

.terminal-dots span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #ff287f,
            #7657ff
        );
}

.terminal-top small {
    font-size: 9px;
    letter-spacing: 2px;
    opacity: .5;
}

.terminal-top b {
    font-size: 9px;
    color: #66ffb3;
}

.terminal-body {
    display: flex;

    gap: 20px;

    padding: 25px;
}

.terminal-number {
    font-size: 28px;
    font-weight: 800;

    opacity: .4;
}

.terminal-content {
    flex: 1;
    min-width: 0;
}

.terminal-line {
    height: 8px;

    background:
        linear-gradient(
            90deg,
            rgba(255,40,127,.25),
            rgba(118,87,255,.25),
            rgba(0,168,255,.25)
        );

    margin-bottom: 10px;

    border-radius: 5px;
}

.line-big {
    width: 80%;
}

.line-small {
    width: 50%;
}

.terminal-options {
    display: flex;

    gap: 8px;

    margin-top: 18px;
}

.terminal-options span {
    width: 30px;
    height: 25px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255,255,255,.15);

    font-size: 9px;

    transition: .3s ease;
}

.terminal-options span:hover {
    background: var(--rainbow);
    color: white;
    transform: translateY(-3px);
}

.terminal-progress {
    height: 3px;

    background: rgba(255,255,255,.08);
}

.terminal-progress span {
    display: block;

    height: 100%;
    width: 62%;

    background:
        linear-gradient(
            90deg,
            #ff287f,
            #7657ff,
            #00b8ff,
            #ffc400
        );

    background-size: 200% auto;

    animation:
        rainbowMove 3s linear infinite;
}

@keyframes rainbowMove {
    to {
        background-position: 200% center;
    }
}


/* =========================================================
   SPLASH LOADING
========================================================= */

.splash-loading {
    margin-top: 25px;
}

.loading-header {
    display: flex;

    justify-content: space-between;

    font-size: 9px;

    letter-spacing: 1px;

    opacity: .6;
}

.loading-track {
    height: 5px;

    background: rgba(255,255,255,.1);

    margin-top: 9px;

    overflow: hidden;
}

.loading-track span {
    display: block;

    height: 100%;
    width: 0;

    background:
        linear-gradient(
            90deg,
            #ff2d7d,
            #7b61ff,
            #00b8ff,
            #ffc400
        );

    background-size: 200% auto;

    animation:
        rainbowMove 2s linear infinite;

    transition:
        width .15s ease;
}

.loading-status {
    margin-top: 8px;

    font-size: 9px;

    opacity: .4;
}

.splash-bottom {
    position: absolute;

    bottom: 25px;

    display: flex;

    gap: 12px;

    font-size: 9px;

    letter-spacing: 2px;

    opacity: .35;
}


/* =========================================================
   SPLASH FLOATING CARDS
========================================================= */

.academic-float {
    position: absolute;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px 16px;

    border: 1px solid rgba(255,255,255,.12);

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.09),
            rgba(255,255,255,.03)
        );

    backdrop-filter: blur(15px);

    font-size: 10px;

    box-shadow:
        0 20px 50px rgba(0,0,0,.15);

    animation:
        floatCard 5s ease-in-out infinite;
}

.academic-float small {
    display: block;
    opacity: .45;
}

.float-icon {
    font-weight: 800;
}

.float-1 {
    left: 8%;
    top: 25%;
}

.float-2 {
    right: 8%;
    top: 25%;

    animation-delay: -1s;
}

.float-3 {
    left: 10%;
    bottom: 25%;

    animation-delay: -2s;
}

.float-4 {
    right: 10%;
    bottom: 25%;

    animation-delay: -3s;
}

@keyframes floatCard {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}


/* =========================================================
   MAIN SITE
========================================================= */

.main-site {
    opacity: 0;
    visibility: hidden;

    transition:
        opacity .5s ease;
}

.main-site.visible {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: sticky;

    top: 0;

    z-index: 500;

    background:
        rgba(255,255,255,.88);

    backdrop-filter: blur(18px);

    border-bottom: 1px solid #eaeaea;
}

.nav-wrapper {
    width: 100%;
    max-width: 1250px;

    margin: auto;

    padding: 16px 25px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}

.brand {
    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;

    flex: 0 0 auto;

    display: grid;
    place-items: center;

    background: #111;
    color: white;

    font-weight: 900;

    position: relative;

    overflow: hidden;
}

.brand-mark::after {
    content: "";

    position: absolute;

    inset: -100%;

    background:
        var(--rainbow);

    opacity: 0;

    transition: .3s ease;
}

.brand:hover .brand-mark::after {
    opacity: 1;

    animation:
        brandSweep .7s linear;
}

@keyframes brandSweep {
    to {
        transform: translate(50%, 50%);
    }
}

.brand-name strong {
    display: block;

    font-size: 17px;
}

.brand-name small {
    display: block;

    font-size: 9px;

    color: #777;
}

.navigation {
    display: flex;

    gap: 28px;
}

.navigation a {
    position: relative;

    font-size: 13px;

    color: #555;

    transition: .25s ease;
}

.navigation a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background:
        var(--rainbow);

    transition: width .3s ease;
}

.navigation a:hover {
    color: #000;
}

.navigation a:hover::after {
    width: 100%;
}

.nav-status {
    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 11px;

    color: #555;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #2bb673;

    box-shadow:
        0 0 12px rgba(43,182,115,.7);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    padding: 110px 25px 70px;

    overflow: hidden;
}

.hero::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -250px;
    top: -200px;

    border-radius: 50%;

    background:
        conic-gradient(
            #ff287f,
            #7657ff,
            #00a8ff,
            #ffc400,
            #ff287f
        );

    opacity: .08;

    filter: blur(50px);

    animation:
        heroGlow 10s linear infinite;
}

@keyframes heroGlow {
    to {
        transform: rotate(360deg);
    }
}

.hero-wrapper {
    width: 100%;
    max-width: 1250px;

    margin: auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 70px;

    align-items: center;
}

.eyebrow {
    font-size: 10px;

    letter-spacing: 2px;

    color: #777;

    display: flex;

    align-items: center;

    gap: 8px;
}

.eyebrow-dot {
    width: 6px;
    height: 6px;

    flex: 0 0 auto;

    border-radius: 50%;

    background:
        var(--rainbow);

    box-shadow:
        0 0 12px rgba(118,87,255,.5);
}

.hero-copy h1 {
    margin-top: 22px;

    font-size:
        clamp(55px, 7vw, 92px);

    line-height: .9;

    letter-spacing: -6px;

    overflow-wrap: break-word;
}

.hero-description {
    margin-top: 30px;

    max-width: 590px;

    font-size: 16px;

    line-height: 1.8;

    color: #666;
}

.highlight-line {
    color: #111;

    font-weight: 600;
}

.hero-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;
}


/* =========================================================
   PREMIUM BUTTONS
========================================================= */

.primary-button,
.outline-button {
    position: relative;

    padding: 14px 20px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    font-size: 12px;

    font-weight: 700;

    overflow: hidden;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.primary-button {
    background: #111;
    color: white;

    isolation: isolate;
}

.primary-button::before,
.outline-button::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        var(--rainbow);

    background-size: 300% auto;

    transform: translateX(-105%);

    transition: transform .45s ease;

    z-index: -1;
}

.primary-button:hover,
.outline-button:hover {
    transform: translateY(-4px);

    box-shadow:
        0 15px 35px rgba(0,0,0,.15);
}

.primary-button:hover::before,
.outline-button:hover::before {
    transform: translateX(0);

    animation:
        rainbowMove 2s linear infinite;
}

.outline-button {
    border: 1px solid #ddd;

    background: white;
}

.outline-button:hover {
    border-color: transparent;

    color: white;
}


/* =========================================================
   HERO NOTE
========================================================= */

.hero-note {
    margin-top: 20px;

    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 10px;

    color: #888;
}

.hero-note i {
    width: 20px;
    height: 1px;

    background:
        var(--rainbow);
}


/* =========================================================
   ARCHIVE VISUAL
========================================================= */

.archive-visual {
    position: relative;

    min-height: 500px;

    display: grid;

    place-items: center;

    min-width: 0;
}

.archive-paper {
    width: min(320px, 75%);

    min-height: 420px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #fafafa
        );

    border: 1px solid #ddd;

    box-shadow:
        30px 30px 80px rgba(0,0,0,.12);

    transform: rotate(4deg);

    padding: 25px;

    position: relative;

    z-index: 2;

    transition:
        transform .5s ease,
        box-shadow .5s ease;
}

.archive-paper:hover {
    transform:
        rotate(0deg)
        translateY(-8px);

    box-shadow:
        20px 30px 80px rgba(118,87,255,.15);
}

.paper-top,
.paper-bottom {
    display: flex;

    justify-content: space-between;

    gap: 10px;

    font-size: 8px;

    letter-spacing: 2px;

    color: #888;
}

.paper-center {
    text-align: center;

    margin-top: 75px;
}

.paper-seal {
    width: 55px;
    height: 55px;

    display: grid;

    place-items: center;

    margin: auto auto 25px;

    border: 1px solid #111;

    font-weight: 900;

    position: relative;
}

.paper-seal::before {
    content: "";

    position: absolute;

    inset: -4px;

    border: 1px solid transparent;

    border-top-color: #ff287f;
    border-right-color: #7657ff;
    border-bottom-color: #00a8ff;
    border-left-color: #ffc400;

    animation:
        sealSpin 4s linear infinite;
}

@keyframes sealSpin {
    to {
        transform: rotate(360deg);
    }
}

.paper-small {
    font-size: 9px;

    letter-spacing: 4px;
}

.paper-center h2 {
    font-size: 36px;

    line-height: .95;

    letter-spacing: -2px;
}

.paper-rule {
    width: 70px;
    height: 2px;

    background:
        var(--rainbow);

    margin: 20px auto;
}

.paper-center p {
    font-size: 8px;

    letter-spacing: 1px;

    color: #888;
}

.paper-bottom {
    position: absolute;

    left: 25px;
    right: 25px;

    bottom: 25px;
}

.paper-bottom strong {
    color: #111;
}


/* =========================================================
   FLOATING VISUAL CARDS
========================================================= */

.visual-floating {
    position: absolute;

    z-index: 5;

    padding: 12px 15px;

    background: rgba(255,255,255,.9);

    backdrop-filter: blur(12px);

    border: 1px solid #eee;

    box-shadow:
        0 15px 40px rgba(0,0,0,.08);

    font-size: 10px;

    transition: .3s ease;
}

.visual-floating:hover {
    transform: translateY(-5px);

    border-color: #7657ff;

    box-shadow:
        0 20px 50px rgba(118,87,255,.15);
}

.visual-floating span {
    font-weight: 900;

    margin-right: 6px;
}

.vf-one {
    left: 2%;
    top: 15%;
}

.vf-two {
    right: 0;
    top: 30%;
}

.vf-three {
    left: 5%;
    bottom: 15%;
}


/* =========================================================
   HERO STATS
========================================================= */

.hero-stats {
    width: 100%;
    max-width: 1250px;

    margin: 60px auto 0;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.stat-card {
    padding: 25px;

    border-right: 1px solid #eee;

    transition: .3s ease;
}

.stat-card:hover {
    background:
        linear-gradient(
            135deg,
            rgba(255,40,127,.03),
            rgba(118,87,255,.04),
            rgba(0,168,255,.03)
        );
}

.stat-card:last-child {
    border-right: 0;
}

.stat-card strong {
    display: block;

    font-size: 30px;
}

.stat-card span {
    font-size: 10px;

    color: #888;
}


/* =========================================================
   COMMON SECTIONS
========================================================= */

.section {
    width: 100%;
    max-width: 1250px;

    margin: auto;

    padding: 110px 25px;
}

.section-label {
    font-size: 9px;

    letter-spacing: 3px;

    color: #888;
}

.two-column {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 80px;

    margin-top: 45px;
}

.two-column h2,
.section-heading-row h2,
.benefits-layout h2 {
    font-size:
        clamp(40px, 5vw, 70px);

    line-height: .95;

    letter-spacing: -4px;
}

em {
    font-family: Georgia, serif;

    font-weight: 400;
}

.section-description {
    color: #666;

    line-height: 1.8;
}

.about-box {
    padding: 30px;

    border: 1px solid #eee;

    transition: .3s ease;
}

.about-box:hover {
    border-color: #7657ff;

    box-shadow:
        0 20px 50px rgba(118,87,255,.08);
}

.academic-chain-box {
    margin-top: 20px;

    padding: 25px;

    border: 1px solid #eee;
}

.chain-heading {
    font-size: 9px;

    letter-spacing: 2px;

    color: #888;

    margin-bottom: 20px;
}

.academic-chain {
    display: flex;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;
}

.chain-item {
    display: flex;

    flex-direction: column;
}

.chain-item small {
    font-size: 8px;

    color: #999;
}

.chain-item strong {
    font-size: 11px;

    color: #111;
}


/* =========================================================
   DEPARTMENTS
========================================================= */

.section-heading-row {
    margin-top: 35px;

    display: flex;

    justify-content: space-between;

    gap: 50px;

    align-items: end;
}

.section-heading-row p {
    max-width: 400px;

    color: #777;

    line-height: 1.7;

    font-size: 13px;
}

.department-grid {
    margin-top: 55px;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 15px;
}

.department-card {
    position: relative;

    min-height: 240px;

    padding: 25px;

    text-align: left;

    background: white;

    border: 1px solid #e8e8e8;

    cursor: pointer;

    overflow: hidden;

    isolation: isolate;

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}


/* Rainbow animated border */

.department-card::before {
    content: "";

    position: absolute;

    inset: -2px;

    background:
        conic-gradient(
            #ff287f,
            #ff7a18,
            #ffc400,
            #39e58c,
            #00a8ff,
            #7657ff,
            #ff287f
        );

    z-index: -2;

    opacity: 0;

    transition: opacity .35s ease;
}

.department-card::after {
    content: "";

    position: absolute;

    inset: 1px;

    background: white;

    z-index: -1;
}

.department-card:hover::before,
.department-card.selected::before {
    opacity: 1;

    animation:
        departmentSpin 2.5s linear infinite;
}

@keyframes departmentSpin {
    to {
        transform: rotate(360deg);
    }
}

.department-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 25px 60px rgba(118,87,255,.13);
}

.department-card.selected {
    transform: translateY(-5px);

    border-color: transparent;

    box-shadow:
        0 25px 60px rgba(118,87,255,.15);
}

.department-number {
    display: block;

    font-size: 10px;

    color: #999;
}

.department-code {
    display: block;

    margin-top: 25px;

    font-size: 34px;

    font-weight: 900;

    letter-spacing: -2px;

    transition: .3s ease;
}

.department-card:hover .department-code {
    background: var(--rainbow);

    background-size: 250% auto;

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;

    animation:
        rainbowText 2s linear infinite;
}

.department-card h3 {
    margin-top: 8px;

    max-width: 270px;

    font-size: 18px;

    line-height: 1.2;
}

.department-card p {
    margin-top: 8px;

    font-size: 10px;

    color: #999;
}

.department-arrow {
    position: absolute;

    right: 22px;
    bottom: 22px;

    font-size: 25px;

    transition: .3s ease;
}

.department-card:hover .department-arrow {
    transform: translateX(6px);

    background: var(--rainbow);

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.available-badge,
.coming-badge {
    position: absolute;

    top: 22px;
    right: 22px;

    font-size: 7px;

    letter-spacing: 1px;

    padding: 6px 8px;
}

.available-badge {
    background: #111;

    color: white;
}

.coming-badge {
    background: #f2f2f2;

    color: #777;
}

.section-footnote {
    margin-top: 30px;

    font-size: 8px;

    letter-spacing: 2px;

    color: #aaa;
}


/* =========================================================
   EXPLORER
========================================================= */

.qbank-explorer-section {
    display: none;

    background:
        linear-gradient(
            180deg,
            #f8f8f8,
            #ffffff
        );

    border-top: 1px solid #eee;

    border-bottom: 1px solid #eee;
}

.qbank-explorer-section.active {
    display: block;

    animation:
        explorerIn .5s ease;
}

@keyframes explorerIn {
    from {
        opacity: 0;

        transform:
            translateY(25px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}

.explorer-wrapper {
    width: 100%;
    max-width: 1250px;

    margin: auto;

    padding: 90px 25px;
}

.explorer-heading {
    margin-top: 25px;

    display: flex;

    justify-content: space-between;

    align-items: end;

    gap: 30px;
}

.selected-department-label {
    font-size: 8px;

    letter-spacing: 3px;

    color: #999;
}

.explorer-heading h2 {
    margin-top: 8px;

    font-size:
        clamp(35px, 5vw, 60px);

    letter-spacing: -3px;
}

.close-explorer {
    background: white;

    border: 1px solid #ddd;

    padding: 11px 16px;

    cursor: pointer;

    font-size: 11px;

    transition: .3s ease;
}

.close-explorer:hover {
    color: white;

    border-color: transparent;

    background:
        var(--rainbow);

    transform: translateY(-3px);
}


/* =========================================================
   FILTER STEPS
========================================================= */

.filter-step {
    margin-top: 60px;

    transition:
        opacity .3s ease,
        filter .3s ease;
}

.filter-step.disabled-step {
    opacity: .35;

    pointer-events: none;
}

.filter-step-heading {
    display: flex;

    align-items: center;

    gap: 18px;

    margin-bottom: 25px;
}

.filter-step-heading > span {
    width: 40px;
    height: 40px;

    flex: 0 0 auto;

    display: grid;

    place-items: center;

    background: #111;

    color: white;

    font-size: 11px;

    font-weight: 800;

    position: relative;
}

.filter-step-heading > span::after {
    content: "";

    position: absolute;

    inset: -2px;

    z-index: -1;

    background:
        var(--rainbow);

    opacity: .5;
}

.filter-step-heading small {
    display: block;

    font-size: 8px;

    letter-spacing: 2px;

    color: #999;
}

.filter-step-heading h3 {
    margin-top: 4px;

    font-size: 22px;
}


/* =========================================================
   OPTIONS
========================================================= */

.option-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;
}

.filter-option {
    position: relative;

    padding: 25px;

    text-align: left;

    background: white;

    border: 1px solid #e3e3e3;

    cursor: pointer;

    overflow: hidden;

    transition:
        .3s ease;
}

.filter-option::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 3px;

    background:
        var(--rainbow);

    transform: scaleX(0);

    transform-origin: left;

    transition: transform .35s ease;
}

.filter-option:hover {
    border-color: #7657ff;

    transform: translateY(-4px);

    box-shadow:
        0 15px 35px rgba(118,87,255,.1);
}

.filter-option:hover::after,
.filter-option.selected::after {
    transform: scaleX(1);
}

.filter-option strong {
    display: block;

    font-size: 16px;
}

.filter-option small {
    display: block;

    margin-top: 7px;

    color: #999;

    font-size: 10px;
}

.filter-option.selected {
    background: #111;

    color: white;

    border-color: #111;

    box-shadow:
        0 15px 35px rgba(0,0,0,.16);
}

.filter-option.selected small {
    color: #bbb;
}


/* =========================================================
   SUBJECT SELECTOR
========================================================= */

.subject-selector-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;
}

.subject-selector {
    display: grid;

    grid-template-columns:
        85px minmax(0, 1fr) 30px;

    align-items: center;

    gap: 15px;

    padding: 17px;

    text-align: left;

    background: white;

    border: 1px solid #e4e4e4;

    cursor: pointer;

    transition:
        .3s ease;
}

.subject-selector:hover {
    border-color: #7657ff;

    transform: translateY(-2px);

    box-shadow:
        0 12px 30px rgba(118,87,255,.08);
}

.subject-selector.selected {
    border-color: #111;

    box-shadow:
        inset 4px 0 #111,
        0 15px 30px rgba(0,0,0,.06);
}

.subject-selector.selected .subject-code {
    background: var(--rainbow);

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.subject-code {
    font-size: 12px;

    font-weight: 900;
}

.subject-selector-info {
    min-width: 0;
}

.subject-selector-info strong {
    display: block;

    font-size: 13px;

    line-height: 1.3;
}

.subject-selector-info span {
    display: inline-block;

    margin-top: 5px;

    font-size: 8px;

    text-transform: uppercase;

    letter-spacing: 1px;

    color: #999;
}

.subject-arrow {
    font-size: 20px;

    transition: .3s ease;
}

.subject-selector:hover .subject-arrow {
    transform: translateX(4px);

    background: var(--rainbow);

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}


/* =========================================================
   RESULTS
========================================================= */

.results-section {
    margin-top: 75px;

    padding-top: 60px;

    border-top: 1px solid #ddd;
}

.results-header {
    display: flex;

    justify-content: space-between;

    align-items: end;

    gap: 20px;
}

.results-header > div:first-child span {
    font-size: 8px;

    letter-spacing: 2px;

    color: #999;
}

.results-header h2 {
    margin-top: 8px;

    font-size: 38px;

    letter-spacing: -2px;
}

.result-count {
    padding: 8px 12px;

    background: #111;

    color: white;

    font-size: 9px;
}

.paper-results {
    margin-top: 25px;

    display: grid;

    gap: 10px;
}

.paper-card {
    display: grid;

    grid-template-columns:
        70px minmax(0, 1fr) auto;

    align-items: center;

    gap: 20px;

    padding: 20px;

    background: white;

    border: 1px solid #e4e4e4;

    transition:
        .3s ease;
}

.paper-card:hover {
    border-color: #7657ff;

    box-shadow:
        0 15px 40px rgba(118,87,255,.1);

    transform: translateY(-2px);
}

.paper-icon,
.empty-icon,
.no-papers-icon {
    width: 55px;
    height: 55px;

    display: grid;

    place-items: center;

    background:
        linear-gradient(
            135deg,
            #111,
            #222
        );

    color: white;

    font-size: 9px;

    font-weight: 900;

    position: relative;

    overflow: hidden;
}

.paper-icon::after,
.empty-icon::after,
.no-papers-icon::after {
    content: "";

    position: absolute;

    inset: -100%;

    background:
        var(--rainbow);

    opacity: .8;

    transform: rotate(25deg);

    transition: .5s ease;
}

.paper-card:hover .paper-icon::after {
    inset: 100% -100%;
}

.paper-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.paper-meta span {
    font-size: 8px;

    letter-spacing: 1px;

    padding: 5px 7px;

    background: #f2f2f2;
}

.paper-info {
    min-width: 0;
}

.paper-info h3 {
    margin-top: 8px;

    font-size: 15px;

    overflow-wrap: anywhere;
}

.paper-info p {
    margin-top: 5px;

    font-size: 10px;

    color: #999;
}

.paper-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}

.view-pdf-button,
.download-pdf-button {
    padding: 10px 13px;

    font-size: 9px;

    font-weight: 700;

    border: 1px solid #ddd;

    position: relative;

    overflow: hidden;

    transition: .3s ease;
}

.view-pdf-button {
    background: #111;

    color: white;

    border-color: #111;
}

.view-pdf-button::before,
.download-pdf-button::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        var(--rainbow);

    transform:
        translateX(-110%);

    transition:
        transform .4s ease;

    z-index: 0;
}

.view-pdf-button span,
.download-pdf-button span {
    position: relative;

    z-index: 1;
}

.view-pdf-button:hover::before,
.download-pdf-button:hover::before {
    transform:
        translateX(0);
}

.download-pdf-button:hover {
    color: white;

    border-color: transparent;
}

.empty-results,
.no-papers {
    text-align: center;

    padding: 70px 20px;

    border: 1px dashed #d9d9d9;

    background: white;
}

.empty-icon,
.no-papers-icon {
    margin: auto;
}

.empty-results h3,
.no-papers h3 {
    margin-top: 20px;

    font-size: 20px;
}

.empty-results p,
.no-papers p {
    margin: 10px auto 0;

    max-width: 450px;

    color: #888;

    font-size: 12px;

    line-height: 1.7;
}

.paper-path {
    margin: 20px auto 0;

    display: inline-flex;

    align-items: center;

    gap: 10px;

    max-width: 100%;

    padding: 10px 15px;

    background: #f4f4f4;

    font-size: 9px;

    overflow-wrap: anywhere;
}

.paper-path span {
    color: #999;
}


/* =========================================================
   TOAST
========================================================= */

.qbank-toast {
    position: fixed;

    right: 25px;
    bottom: 25px;

    z-index: 10000;

    display: flex;

    align-items: center;

    gap: 10px;

    max-width:
        min(420px, calc(100vw - 30px));

    padding: 14px 18px;

    background: #111;

    color: white;

    font-size: 11px;

    box-shadow:
        0 20px 50px rgba(0,0,0,.2);

    opacity: 0;

    transform:
        translateY(20px);

    transition: .3s ease;
}

.qbank-toast.show {
    opacity: 1;

    transform:
        translateY(0);
}

.qbank-toast span {
    width: 20px;
    height: 20px;

    flex: 0 0 auto;

    display: grid;

    place-items: center;

    background: white;

    color: #111;

    font-weight: 900;
}


/* =========================================================
   SEMESTER
========================================================= */

.semester-section {
    position: relative;

    padding: 80px 25px;

    background: #111;

    color: white;

    overflow: hidden;
}

.semester-section::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    background:
        conic-gradient(
            #ff287f,
            #7657ff,
            #00a8ff,
            #ffc400,
            #ff287f
        );

    opacity: .08;

    filter: blur(70px);
}

.semester-inner {
    width: 100%;
    max-width: 1000px;

    margin: auto;

    position: relative;

    z-index: 2;
}

.semester-title {
    text-align: center;

    font-size: 9px;

    letter-spacing: 4px;

    opacity: .5;
}

.semester-track {
    margin-top: 35px;

    display: grid;

    grid-template-columns:
        repeat(8, minmax(0, 1fr));

    border-top:
        1px solid rgba(255,255,255,.15);

    border-bottom:
        1px solid rgba(255,255,255,.15);
}

.semester-track div {
    padding: 20px;

    text-align: center;

    border-right:
        1px solid rgba(255,255,255,.15);

    font-size: 13px;

    transition: .3s ease;
}

.semester-track div:hover {
    color: #ffc400;

    background:
        rgba(255,255,255,.04);
}

.semester-track div:last-child {
    border-right: 0;
}

.semester-caption {
    margin-top: 15px;

    text-align: center;

    font-size: 9px;

    letter-spacing: 2px;

    opacity: .4;
}


/* =========================================================
   SUBJECTS
========================================================= */

.subject-grid {
    margin-top: 50px;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;
}

.subject-card {
    padding: 22px;

    min-height: 190px;

    border: 1px solid #eee;

    background: white;

    position: relative;

    overflow: hidden;

    transition: .35s ease;
}

.subject-card::before {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 3px;

    background:
        var(--rainbow);

    transform:
        translateX(-100%);

    transition: .4s ease;
}

.subject-card:hover {
    border-color: #7657ff;

    transform:
        translateY(-5px);

    box-shadow:
        0 20px 45px rgba(118,87,255,.1);
}

.subject-card:hover::before {
    transform:
        translateX(0);
}

.subject-top {
    display: flex;

    justify-content: space-between;

    gap: 10px;

    font-size: 9px;

    color: #999;
}

.subject-top span {
    font-weight: 900;

    color: #111;
}

.subject-card:hover .subject-top span {
    background:
        var(--rainbow);

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.subject-card h3 {
    margin-top: 35px;

    font-size: 16px;

    line-height: 1.3;
}

.subject-card p {
    margin-top: 10px;

    color: #999;

    font-size: 10px;

    line-height: 1.5;
}


/* =========================================================
   GUIDE / STEPS
========================================================= */

.steps {
    margin-top: 50px;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    border-top: 1px solid #eee;

    border-bottom: 1px solid #eee;
}

.steps article {
    padding: 30px;

    border-right: 1px solid #eee;

    transition: .3s ease;
}

.steps article:hover {
    background:
        linear-gradient(
            135deg,
            rgba(255,40,127,.03),
            rgba(118,87,255,.04),
            rgba(0,168,255,.03)
        );
}

.steps article:last-child {
    border-right: 0;
}

.step-number {
    font-size: 9px;

    color: #999;
}

.step-icon {
    margin-top: 35px;

    font-size: 30px;

    transition: .3s ease;
}

.steps article:hover .step-icon {
    transform:
        translateY(-5px)
        scale(1.08);

    filter:
        drop-shadow(
            0 8px 12px rgba(118,87,255,.25)
        );
}

.steps h3 {
    margin-top: 20px;

    font-size: 15px;
}

.steps p {
    margin-top: 10px;

    color: #888;

    font-size: 11px;

    line-height: 1.6;
}


/* =========================================================
   FINAL CTA
========================================================= */

.final-cta {
    padding: 130px 25px;

    text-align: center;

    position: relative;

    overflow: hidden;

    background: #f7f7f7;
}

.final-cta::before {
    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    background:
        conic-gradient(
            #ff287f,
            #7657ff,
            #00a8ff,
            #ffc400,
            #ff287f
        );

    opacity: .06;

    filter: blur(70px);
}

.cta-mark {
    width: 60px;
    height: 60px;

    display: grid;

    place-items: center;

    margin: auto auto 25px;

    background: #111;

    color: white;

    font-weight: 900;

    position: relative;
}

.cta-mark::before {
    content: "";

    position: absolute;

    inset: -3px;

    background:
        var(--rainbow);

    z-index: -1;

    opacity: .7;
}

.final-cta h2 {
    margin-top: 25px;

    font-size:
        clamp(45px, 6vw, 75px);

    letter-spacing: -4px;

    position: relative;
}

.final-cta p {
    max-width: 500px;

    margin: 20px auto;

    color: #777;

    line-height: 1.7;

    position: relative;
}

.cta-buttons {
    margin-top: 30px;

    position: relative;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    padding: 70px 25px 25px;

    background: #111;

    color: white;

    overflow: hidden;
}

.footer-main {
    width: 100%;
    max-width: 1250px;

    margin: auto;

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1fr;

    gap: 50px;
}

.footer-logo {
    width: 45px;
    height: 45px;

    display: grid;

    place-items: center;

    background: white;

    color: #111;

    font-weight: 900;

    position: relative;
}

.footer-brand h3 {
    margin-top: 18px;
}

.footer-brand p {
    margin-top: 7px;

    color: #777;

    font-size: 10px;
}

.footer-column {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.footer-column strong {
    font-size: 11px;
}

.footer-column a,
.footer-column span {
    font-size: 10px;

    color: #777;

    transition: .25s ease;
}

.footer-column a:hover {
    color: white;

    transform:
        translateX(4px);
}

.footer-bottom {
    width: 100%;
    max-width: 1250px;

    margin: 60px auto 0;

    padding-top: 20px;

    border-top:
        1px solid rgba(255,255,255,.1);

    display: flex;

    justify-content: space-between;

    gap: 20px;

    font-size: 8px;

    color: #555;

    letter-spacing: 1px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .navigation {
        display: none;
    }

    .hero-wrapper,
    .two-column {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 850px;

        margin: auto;
    }

    .archive-visual {
        min-height: 470px;
    }

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

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

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

    .subject-selector-grid {
        grid-template-columns: 1fr;
    }

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

    .steps article:nth-child(2) {
        border-right: 0;
    }

    .steps article:nth-child(3),
    .steps article:nth-child(4) {
        border-top: 1px solid #eee;
    }

    .footer-main {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .semester-track {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

    .semester-track div:nth-child(4) {
        border-right: 0;
    }

    .semester-track div:nth-child(n+5) {
        border-top:
            1px solid rgba(255,255,255,.15);
    }
}


/* =========================================================
   MOBILE — NO OVERLAP
========================================================= */

@media (max-width: 650px) {

    html,
    body {
        width: 100%;
        max-width: 100%;

        overflow-x: hidden;
    }

    /* ---------- Splash ---------- */

    .splash-screen {
        padding: 20px 15px;
    }

    .qbank-splash-core {
        width: 100%;

        max-height:
            calc(100vh - 40px);

        overflow: hidden;
    }

    .splash-institute {
        font-size: 8px;

        letter-spacing: 2px;

        gap: 8px;

        margin-bottom: 15px;
    }

    .splash-institute span {
        width: 25px;
    }

    .qbank-logo-wrap {
        width: 82px;
        height: 82px;
    }

    .qbank-logo {
        width: 62px;
        height: 62px;

        inset: 10px;
    }

    .logo-q,
    .logo-b {
        font-size: 26px;
    }

    .splash-brand h1 {
        margin-top: 14px;

        font-size: 35px;

        letter-spacing: -2px;
    }

    .splash-brand p {
        font-size: 7px;

        letter-spacing: 2px;
    }

    .academic-pipeline {
        gap: 5px;

        margin: 20px 0;
    }

    .pipeline-item {
        min-width: 0;

        flex: 1;
    }

    .pipeline-item span {
        font-size: 7px;
    }

    .pipeline-item strong {
        font-size: 8px;
    }

    .academic-pipeline i {
        width: 12px;
    }

    .question-terminal {
        width: 100%;
    }

    .terminal-body {
        padding: 15px;

        gap: 12px;
    }

    .terminal-number {
        font-size: 20px;
    }

    .terminal-options {
        gap: 5px;

        margin-top: 12px;
    }

    .terminal-options span {
        width: 25px;
        height: 22px;
    }

    .splash-loading {
        margin-top: 15px;
    }

    .splash-bottom {
        display: none;
    }


    /* ---------- Main Header ---------- */

    .nav-wrapper {
        padding: 12px 15px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .brand-name strong {
        font-size: 14px;
    }

    .brand-name small {
        font-size: 7px;
    }

    .nav-status {
        display: none;
    }


    /* ---------- Hero ---------- */

    .hero {
        padding:
            70px 15px 50px;
    }

    .hero-wrapper {
        gap: 45px;
    }

    .hero-copy h1 {
        font-size:
            clamp(46px, 15vw, 70px);

        letter-spacing: -4px;
    }

    .hero-description {
        font-size: 14px;

        line-height: 1.7;
    }

    .hero-actions {
        width: 100%;

        flex-direction: column;
    }

    .primary-button,
    .outline-button {
        width: 100%;
    }

    .archive-visual {
        min-height: 380px;

        width: 100%;
    }

    .archive-paper {
        width: 245px;

        min-height: 340px;

        padding: 20px;
    }

    .paper-center {
        margin-top: 55px;
    }

    .paper-center h2 {
        font-size: 30px;
    }

    .visual-floating {
        font-size: 8px;

        padding: 9px 10px;
    }

    .vf-one {
        left: 0;
        top: 10%;
    }

    .vf-two {
        right: 0;
        top: 25%;
    }

    .vf-three {
        left: 0;
        bottom: 10%;
    }


    /* ---------- Stats ---------- */

    .hero-stats {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        margin-top: 40px;
    }

    .stat-card {
        padding: 18px;
    }

    .stat-card:nth-child(2) {
        border-right: 0;
    }

    .stat-card:nth-child(3),
    .stat-card:nth-child(4) {
        border-top: 1px solid #eee;
    }

    .stat-card strong {
        font-size: 24px;
    }


    /* ---------- Sections ---------- */

    .section {
        padding:
            75px 15px;
    }

    .two-column {
        gap: 40px;
    }

    .two-column h2,
    .section-heading-row h2,
    .benefits-layout h2 {
        font-size:
            clamp(38px, 12vw, 58px);

        letter-spacing: -3px;
    }

    .section-heading-row {
        flex-direction: column;

        align-items: flex-start;

        gap: 20px;
    }


    /* ---------- Departments ---------- */

    .department-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .department-card {
        min-height: 220px;

        padding: 22px;
    }

    .department-code {
        font-size: 30px;
    }


    /* ---------- Explorer ---------- */

    .explorer-wrapper {
        padding:
            65px 15px;
    }

    .explorer-heading {
        flex-direction: column;

        align-items: flex-start;
    }

    .explorer-heading h2 {
        font-size:
            clamp(35px, 12vw, 50px);
    }

    .close-explorer {
        width: 100%;
    }


    /* ---------- Filter ---------- */

    .filter-step {
        margin-top: 45px;
    }

    .filter-step-heading {
        gap: 12px;
    }

    .filter-step-heading h3 {
        font-size: 18px;
    }

    .filter-step-heading > span {
        width: 35px;
        height: 35px;
    }

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

    .filter-option {
        padding: 20px;
    }


    /* ---------- Subject Selector ---------- */

    .subject-selector-grid {
        grid-template-columns: 1fr;
    }

    .subject-selector {
        grid-template-columns:
            65px minmax(0, 1fr) 25px;

        gap: 10px;

        padding: 14px;
    }

    .subject-selector-info strong {
        font-size: 12px;
    }


    /* ---------- Results ---------- */

    .results-section {
        margin-top: 55px;

        padding-top: 45px;
    }

    .results-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 15px;
    }

    .results-header h2 {
        font-size: 32px;
    }

    .paper-card {
        grid-template-columns:
            55px minmax(0, 1fr);

        gap: 15px;

        padding: 15px;
    }

    .paper-icon {
        width: 50px;
        height: 50px;
    }

    .paper-actions {
        grid-column:
            1 / -1;

        width: 100%;
    }

    .paper-actions a,
    .paper-actions button {
        flex: 1;

        min-width: 0;

        text-align: center;
    }


    /* ---------- Semester ---------- */

    .semester-section {
        padding:
            65px 15px;
    }

    .semester-track {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

    .semester-track div {
        padding: 15px 5px;

        font-size: 11px;
    }


    /* ---------- Subjects ---------- */

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

    .subject-card {
        min-height: 170px;
    }


    /* ---------- Steps ---------- */

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

    .steps article {
        border-right: 0;

        border-bottom:
            1px solid #eee;
    }

    .steps article:last-child {
        border-bottom: 0;
    }


    /* ---------- CTA ---------- */

    .final-cta {
        padding:
            90px 15px;
    }

    .final-cta h2 {
        font-size:
            clamp(40px, 13vw, 60px);

        letter-spacing: -3px;
    }


    /* ---------- Footer ---------- */

    .footer {
        padding:
            60px 15px 20px;
    }

    .footer-main {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .footer-bottom {
        flex-direction: column;

        gap: 10px;

        margin-top: 40px;
    }


    /* ---------- Hide floating splash cards ---------- */

    .academic-float {
        display: none;
    }
}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .hero-copy h1 {
        font-size: 43px;

        letter-spacing: -3px;
    }

    .splash-brand h1 {
        font-size: 31px;
    }

    .terminal-body {
        padding: 12px;
    }

    .terminal-number {
        display: none;
    }

    .archive-paper {
        width: 220px;

        min-height: 315px;
    }

    .paper-center h2 {
        font-size: 27px;
    }

    .semester-track div {
        font-size: 9px;

        padding: 13px 3px;
    }

    .subject-selector {
        grid-template-columns:
            55px minmax(0, 1fr) 20px;

        padding: 12px;
    }

    .subject-selector-info strong {
        font-size: 11px;
    }

    .paper-actions {
        flex-direction: column;
    }

    .paper-actions a,
    .paper-actions button {
        width: 100%;
    }
}


/* =========================================================
   TOUCH DEVICES
========================================================= */

@media (hover: none) {

    .department-card:hover {
        transform: none;
    }

    .department-card:active {
        transform: scale(.98);
    }

    .filter-option:hover,
    .subject-selector:hover,
    .subject-card:hover {
        transform: none;
    }

    .primary-button:active,
    .outline-button:active {
        transform: scale(.97);
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

button:focus-visible,
a:focus-visible {
    outline: 3px solid #7657ff;

    outline-offset: 3px;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .01ms !important;
    }
}