:root {
    --itv-content-width: 1160px;
}

body.page-home,
body.page-faculty {
    background: var(--dark-background);
    color: var(--text-secondary);
    font-family: Tahoma, Arial, sans-serif;
    line-height: 1.7;
}

body.page-home::before,
body.page-faculty::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(ellipse at 12% 12%, rgba(8, 117, 249, 0.09), transparent 34%),
        radial-gradient(ellipse at 88% 42%, rgba(20, 202, 202, 0.07), transparent 30%);
}

.page-home a,
.page-faculty a {
    color: inherit;
    text-decoration: none;
}

.page-home .section-shell,
.page-faculty .section-shell {
    width: min(var(--itv-content-width), calc(100% - 48px));
    margin-inline: auto;
}

.page-home .site-header,
.page-faculty .site-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: min(var(--itv-content-width), calc(100% - 48px));
    min-height: 88px;
    margin-inline: auto;
    border-bottom: 1px solid var(--border-color);
}

.page-home .brand,
.page-faculty .brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}

.page-home .brand-mark,
.page-faculty .brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-color);
    border-radius: 13px;
    background: linear-gradient(145deg, var(--deep-blue), var(--surface-dark));
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.5px;
    direction: ltr;
}

.page-home .brand-name,
.page-faculty .brand-name {
    color: var(--text-primary);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.3px;
    direction: ltr;
}

.page-home .brand-name strong,
.page-faculty .brand-name strong {
    color: var(--sky-blue);
}

.page-home .main-nav,
.page-faculty .main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-home .nav-link,
.page-faculty .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--text-secondary);
    font-size: 13px;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.page-home .nav-link:hover,
.page-home .nav-link.is-active,
.page-faculty .nav-link:hover,
.page-faculty .nav-link.is-active {
    border-color: var(--border-color);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-primary);
}

.page-home .nav-link.is-active,
.page-faculty .nav-link.is-active {
    box-shadow: inset 0 -2px 0 var(--turquoise);
}

.page-home :focus-visible,
.page-faculty :focus-visible {
    outline: 3px solid var(--sky-blue);
    outline-offset: 4px;
}

.page-home .section-kicker,
.page-faculty .section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--sky-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.page-home .kicker-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--turquoise);
    box-shadow: 0 0 0 4px rgba(20, 202, 202, 0.1);
}

.page-home .button,
.page-faculty .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 50px;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.page-home .button:hover,
.page-faculty .button:hover {
    transform: translateY(-2px);
}

.page-home .button-primary,
.page-faculty .button-primary {
    background: var(--primary-blue);
    color: var(--black);
    box-shadow: 0 8px 20px rgba(8, 117, 249, 0.14);
}

.page-home .button-primary:hover,
.page-faculty .button-primary:hover {
    background: var(--deep-blue);
    color: var(--text-primary);
}

.page-home .button-outline,
.page-faculty .button-outline {
    border-color: var(--border-color);
    background: rgba(16, 23, 34, 0.72);
    color: var(--text-primary);
}

.page-home .button-outline:hover,
.page-faculty .button-outline:hover {
    border-color: var(--sky-blue);
    background: var(--surface-dark);
}

.page-home .home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
    align-items: center;
    gap: clamp(36px, 7vw, 90px);
    min-height: 570px;
    padding-block: 72px 84px;
}

.page-home .hero-copy { max-width: 620px; }

.page-home .hero-title {
    margin-top: 23px;
    color: var(--text-primary);
    font-size: clamp(38px, 5.1vw, 66px);
    font-weight: 800;
    line-height: 1.34;
    letter-spacing: -1.5px;
}

.page-home .hero-title span { color: var(--sky-blue); }

.page-home .hero-description {
    max-width: 570px;
    margin-top: 22px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 2.15;
}

.page-home .hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
}

.page-home .hero-note { color: var(--text-secondary); font-size: 11px; }

.page-home .hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 390px;
    isolation: isolate;
}

.page-home .hero-image {
    position: relative;
    z-index: 1;
    width: min(260px, 62vw);
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    filter: drop-shadow(0 24px 35px rgba(0, 0, 0, 0.35));
}

.page-home .hero-visual::before {
    position: absolute;
    z-index: -2;
    inset: 10% 5%;
    content: "";
    border: 1px solid rgba(56, 215, 215, 0.14);
    border-radius: 50%;
    transform: rotate(-20deg);
}

.page-home .hero-visual::after {
    position: absolute;
    z-index: -2;
    inset: 18% 0;
    content: "";
    background-image:
        linear-gradient(rgba(56, 215, 215, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 215, 215, 0.045) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(ellipse, #000 8%, transparent 72%);
}

.page-home .visual-orbit {
    position: absolute;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(56, 215, 215, 0.2);
    border-radius: 50%;
}

.page-home .orbit-one { transform: rotateX(63deg) rotateZ(-24deg); }

.page-home .orbit-two {
    width: 220px;
    height: 330px;
    border-color: rgba(8, 117, 249, 0.22);
    transform: rotate(52deg) scaleY(0.8);
}

.page-home .visual-core {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 164px;
    height: 164px;
    border: 1px solid rgba(56, 215, 215, 0.3);
    border-radius: 34px;
    background: linear-gradient(145deg, rgba(7, 84, 168, 0.52), var(--surface-dark) 68%);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22), inset 0 0 28px rgba(8, 117, 249, 0.1);
    transform: rotate(-4deg);
}

.page-home .core-small {
    color: var(--text-secondary);
    font-size: 8px;
    letter-spacing: 2px;
    direction: ltr;
}

.page-home .visual-core strong {
    color: var(--text-primary);
    font-size: 49px;
    line-height: 1.05;
    letter-spacing: -3px;
    direction: ltr;
}

.page-home .core-large {
    color: var(--sky-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 5px;
    direction: ltr;
}

.page-home .node {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--surface-dark);
    color: var(--text-primary);
    font-size: 11px;
}

.page-home .node > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--turquoise);
}

.page-home .node-one { top: 13%; right: 11%; }
.page-home .node-two { top: 27%; left: 1%; }
.page-home .node-three { right: 4%; bottom: 19%; }
.page-home .node-four { left: 12%; bottom: 10%; }

.page-home .visual-line {
    position: absolute;
    z-index: -1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 215, 215, 0.38), transparent);
    transform-origin: center;
}

.page-home .line-one { top: 28%; left: 20%; width: 65%; transform: rotate(26deg); }
.page-home .line-two { top: 52%; left: 15%; width: 70%; transform: rotate(-20deg); }
.page-home .line-three { top: 70%; left: 28%; width: 50%; transform: rotate(40deg); }

.page-home .purpose-section { padding-block: 25px 90px; }
.page-home .section-heading { margin-bottom: 24px; }

.page-home .section-heading h2,
.page-home .teaser-copy h2 {
    margin-top: 9px;
    color: var(--text-primary);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.5;
}

.page-home .purpose-card {
    position: relative;
    display: grid;
    grid-template-columns: 70px 1fr;
    align-items: start;
    gap: 22px;
    overflow: hidden;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: linear-gradient(110deg, rgba(16, 23, 34, 0.96), rgba(7, 20, 37, 0.92));
}

.page-home .purpose-index {
    color: var(--sky-blue);
    font-size: 20px;
    font-weight: 700;
    direction: ltr;
}

.page-home .purpose-card p {
    max-width: 850px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 2.1;
}

.page-home .purpose-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--turquoise), transparent);
}

.page-home .faculty-teaser {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 92px;
    padding: clamp(25px, 4vw, 44px);
    border: 1px solid var(--border-color);
    border-radius: 26px;
    background: radial-gradient(ellipse at 90% 0%, rgba(8, 117, 249, 0.11), transparent 52%), var(--surface-dark);
}

.page-home .teaser-copy { max-width: 700px; }

.page-home .teaser-copy p:last-child {
    margin-top: 13px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 2;
}

.page-faculty .faculty-main { overflow: hidden; }

.page-faculty .faculty-intro {
    padding-top: 36px;
    padding-bottom: 32px;
}

.page-faculty .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    color: var(--text-secondary);
    font-size: 12px;
}

.page-faculty .back-link:hover { color: var(--sky-blue); }

.page-faculty .faculty-title {
    margin-top: 18px;
    color: var(--text-primary);
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: -1px;
}

.page-faculty .faculty-title span { color: var(--sky-blue); }

.page-faculty .faculty-description {
    max-width: 790px;
    margin-top: 18px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 2.15;
}

.page-faculty .departments-section { padding-block: 12px 78px; }

.page-faculty .departments-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.page-faculty .department-card {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--surface-dark);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.page-faculty .department-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 215, 215, 0.42);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.page-faculty .department-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 76px;
}

.page-faculty .department-logo {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
    overflow: hidden;
    padding: 9px;
    border: 1px solid rgba(56, 215, 215, 0.25);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(8, 117, 249, 0.16), rgba(5, 8, 13, 0.8));
    color: var(--text-secondary);
    text-align: center;
}

.page-faculty .department-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.page-faculty .software-logo img {
    transform: scale(0.72);
}

.page-faculty .department-logo span {
    font-size: 9px;
    line-height: 1.45;
}

.page-faculty .department-heading h2 {
    color: var(--text-primary);
    font-size: 17px;
    line-height: 1.7;
}

.page-faculty .department-english {
    margin-top: 2px;
    color: var(--sky-blue);
    font-size: 11px;
    letter-spacing: 0.2px;
}

.page-faculty .department-description {
    margin-top: 17px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 2.05;
}

.page-faculty .department-card.will-reveal {
    opacity: 0.99;
    transform: translateY(2px);
}

.page-faculty .department-card.will-reveal:hover { transform: translateY(-3px); }

.page-faculty .department-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.45s ease, transform 0.45s ease, border-color 0.25s ease;
}

.page-faculty .department-card.is-visible:hover { transform: translateY(-3px); }

.page-home .site-footer,
.page-faculty .site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(var(--itv-content-width), calc(100% - 48px));
    margin-inline: auto;
    padding-block: 25px 30px;
    border-top: 1px solid var(--border-color);
}

.page-home .brand-footer .brand-mark,
.page-faculty .brand-footer .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 11px;
}

.page-home .brand-footer .brand-name,
.page-faculty .brand-footer .brand-name { font-size: 14px; }

.page-home .site-footer > p,
.page-faculty .site-footer > p {
    color: var(--text-secondary);
    font-size: 11px;
}

.page-home .footer-label,
.page-faculty .footer-label {
    color: var(--text-secondary);
    font-size: 9px;
    letter-spacing: 2px;
    direction: ltr;
}

@media (max-width: 900px) {
    .page-home .home-hero {
        grid-template-columns: minmax(0, 1fr) minmax(270px, 0.8fr);
        gap: 25px;
        min-height: 500px;
    }
    .page-home .hero-visual { min-height: 330px; transform: scale(0.92); }
    .page-faculty .departments-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .page-home .section-shell,
    .page-faculty .section-shell,
    .page-home .site-header,
    .page-faculty .site-header,
    .page-home .site-footer,
    .page-faculty .site-footer {
        width: min(100% - 32px, var(--itv-content-width));
    }

    .page-home .site-header,
    .page-faculty .site-header { min-height: 76px; gap: 12px; }
    .page-home .brand,
    .page-faculty .brand { gap: 8px; }
    .page-home .brand-mark,
    .page-faculty .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
    .page-home .brand-name,
    .page-faculty .brand-name { font-size: 15px; }
    .page-home .main-nav,
    .page-faculty .main-nav { gap: 2px; }
    .page-home .nav-link,
    .page-faculty .nav-link { min-height: 38px; padding: 7px 10px; font-size: 11px; }

    .page-home .home-hero {
        grid-template-columns: 1fr;
        gap: 8px;
        padding-block: 62px 48px;
    }
    .page-home .hero-title {
        margin-top: 18px;
        font-size: clamp(37px, 9vw, 52px);
        letter-spacing: -1px;
    }
    .page-home .hero-description { margin-top: 16px; font-size: 13px; line-height: 2.1; }
    .page-home .hero-actions { align-items: flex-start; flex-direction: column; gap: 13px; margin-top: 25px; }
    .page-home .hero-visual { min-height: 300px; margin-top: 8px; transform: scale(0.9); }
    .page-home .purpose-section { padding-block: 10px 60px; }
    .page-home .purpose-card { grid-template-columns: 1fr; gap: 10px; padding: 22px; }
    .page-home .purpose-card p { font-size: 13px; }
    .page-home .faculty-teaser {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
        margin-bottom: 60px;
        padding: 24px;
    }
    .page-home .teaser-copy h2 { font-size: 25px; }

    .page-home .site-footer,
    .page-faculty .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .page-faculty .faculty-intro { padding-top: 25px; padding-bottom: 27px; }
    .page-faculty .back-link { margin-bottom: 25px; }
    .page-faculty .faculty-title { margin-top: 16px; font-size: clamp(32px, 8vw, 43px); }
    .page-faculty .faculty-description { font-size: 13px; line-height: 2.1; }
    .page-faculty .departments-section { padding-block: 10px 55px; }
    .page-faculty .departments-grid { grid-template-columns: 1fr; gap: 14px; }
    .page-faculty .department-card { padding: 22px; }
    .page-faculty .department-heading { gap: 13px; }
    .page-faculty .department-logo { width: 68px; height: 68px; flex-basis: 68px; }
}

@media (max-width: 380px) {
    .page-home .site-header,
    .page-faculty .site-header {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 16px;
    }
    .page-home .main-nav,
    .page-faculty .main-nav { width: 100%; }
    .page-home .nav-link,
    .page-faculty .nav-link { flex: 1; }
    .page-home .node { padding: 7px 9px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .page-home *,
    .page-home *::before,
    .page-home *::after,
    .page-faculty *,
    .page-faculty *::before,
    .page-faculty *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
