/* ==========================================================
   HORMUUD UNIVERSITY
   FACILITIES

   CONCEPT:
   THE CAMPUS APERTURE
   ========================================================== */


.hf-page {
    /* Hormuud University identity */
    --hf-green: #148154;
    --hf-green-hover: #0F6843;
    --hf-green-dark: #0a3420;
    --hf-green-soft: #E8F3EE;

    --hf-blue: #2C85B7;
    --hf-blue-dark: #236E98;
    --hf-blue-soft: #EAF4F9;

    --hf-cream: #F1F5F2;
    --hf-paper: #F8FAF9;
    --hf-soft: #F1F5F2;
    --hf-white: #FFFFFF;

    --hf-text: #202522;
    --hf-text-soft: #606862;
    --hf-muted: #7B857E;

    --hf-line: #D9E0DC;
    --hf-line-dark: #C8D1CB;

    /* Legacy semantic slots retained so layout selectors do not
       need rewriting. Both now resolve to HU secondary blue. */
    --hf-gold: var(--hf-blue);
    --hf-clay: var(--hf-blue);

    --hf-display: "Fraunces", Georgia, serif;
    --hf-body: "Inter", Arial, sans-serif;
    --hf-mono: "DM Mono", monospace;

    width: 100%;

    color:
        var(--hf-text);

    background:
        var(--hf-paper);

    font-family:
        var(--hf-body);

    font-size: 17px;
    line-height: 1.7;

    -webkit-font-smoothing: antialiased;

    overflow: visible;
}


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


.hf-page button {
    font: inherit;

    -webkit-tap-highlight-color:
        transparent;
}


.hf-shell {
    width:
        min(
            1260px,
            calc(100% - 56px)
        );

    margin-inline: auto;
}


.hf-svg-library {
    position: absolute;

    width: 0;
    height: 0;

    overflow: hidden;
}


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

.hf-kicker {
    display: block;

    color:
        var(--hf-green);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .1em;

    text-transform: uppercase;
}


.hf-section-index > span {
    color:
        var(--hf-gold);

    font-family:
        var(--hf-mono);

    font-size: 12px;
}


.hf-section-index > p {
    margin:
        10px
        0
        0;

    color:
        var(--hf-green);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;
}


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

.hf-hero {
    position: relative;

    padding-bottom: 0;

    background:
        var(--hf-white);

    border-bottom:
        1px solid
        var(--hf-line-dark);

    overflow: hidden;
}


.hf-hero::before {
    content: "HU";

    position: absolute;

    right: -40px;
    top: 85px;

    color:
        rgba(20,129,84,.030);

    font-family:
        var(--hf-display);

    font-size:
        clamp(
            220px,
            31vw,
            480px
        );

    font-weight: 600;

    line-height: .75;

    letter-spacing: -.09em;

    pointer-events: none;
}


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

.hf-hero-top {
    position: relative;

    z-index: 5;

    min-height: 78px;

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

    gap: 30px;

    border-bottom:
        1px solid
        var(--hf-line);
}


.hf-hero-brand {
    display: flex;
    align-items: center;

    gap: 12px;
}


.hf-hero-logo {
    width: 39px;
    height: 39px;

    display: grid;
    place-items: center;

    color: #ffffff;

    background:
        var(--hf-green);

    font-family:
        var(--hf-display);

    font-size: 15px;
    font-weight: 600;
}


.hf-hero-brand strong {
    display: block;

    color:
        var(--hf-green-dark);

    font-size: 13px;
}


.hf-hero-brand small {
    display: block;

    margin-top: 2px;

    color:
        var(--hf-muted);

    font-size: 11px;
}


.hf-hero-coordinate {
    display: flex;
    align-items: center;

    gap: 10px;

    color:
        var(--hf-muted);
}


.hf-hero-coordinate span {
    font-family:
        var(--hf-mono);

    font-size: 10px;
}


.hf-hero-coordinate i {
    width: 38px;
    height: 1px;

    background:
        var(--hf-line-dark);
}


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

.hf-hero-intro {
    position: relative;

    z-index: 3;

    display: grid;

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

    gap: 75px;

    padding:
        82px
        0
        72px;
}


.hf-hero-index {
    padding-top: 9px;
}


.hf-hero-index > span {
    color:
        var(--hf-gold);

    font-family:
        var(--hf-mono);

    font-size: 12px;
}


.hf-hero-index p {
    margin:
        11px
        0
        0;

    color:
        var(--hf-muted);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;
}


.hf-hero-title h1 {
    max-width: 980px;

    margin:
        16px
        0
        0;

    color:
        var(--hf-green-dark);

    font-family:
        var(--hf-display);

    font-size:
        clamp(
            68px,
            9.2vw,
            122px
        );

    font-weight: 500;

    line-height: .88;

    letter-spacing: -.062em;
}


.hf-hero-title h1 span {
    display: block;

    color:
        var(--hf-clay);
}


.hf-hero-description {
    max-width: 850px;

    display: grid;

    grid-template-columns:
        1fr
        auto;

    align-items: end;

    gap: 50px;

    margin-top: 37px;
}


.hf-hero-description p {
    max-width: 630px;

    margin: 0;

    color:
        var(--hf-text-soft);

    font-size: 18px;

    line-height: 1.75;
}


.hf-enter {
    min-height: 47px;

    display: inline-flex;
    align-items: center;

    gap: 10px;

    padding:
        0
        15px;

    color: #ffffff;

    background:
        var(--hf-green);

    border:
        1px solid
        var(--hf-green);

    cursor: pointer;

    font-size: 13px;
    font-weight: 700;

    transition:
        background
        180ms ease,
        transform
        180ms ease;
}


.hf-enter:hover {
    background:
        var(--hf-green-hover);

    transform:
        translateY(-2px);
}


.hf-enter svg {
    width: 15px;
    height: 15px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;
}


/* ==========================================================
   THE CAMPUS APERTURE
   ========================================================== */

.hf-aperture {
    position: relative;

    z-index: 4;

    width: 100%;
    height: 610px;

    display: flex;

    overflow: hidden;

    background:
        var(--hf-green-dark);

    border-top:
        1px solid
        var(--hf-green-dark);

    border-bottom:
        1px solid
        var(--hf-green-dark);

    cursor: none;
}


/* ==========================================================
   APERTURE PANEL
   ========================================================== */

.hf-aperture-panel {
    position: relative;

    min-width: 0;

    flex:
        1
        1
        0;

    height: 100%;

    padding: 0;

    overflow: hidden;

    color: #ffffff;

    background:
        var(--hf-green-dark);

    border: 0;

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

    cursor: none;

    transition:
        flex
        620ms
        cubic-bezier(
            .16,
            1,
            .3,
            1
        );
}


.hf-aperture-panel:last-child {
    border-right: 0;
}


.hf-aperture:hover
.hf-aperture-panel {
    flex:
        .72
        1
        0;
}


.hf-aperture:hover
.hf-aperture-panel:hover,
.hf-aperture-panel.is-focused {
    flex:
        2.4
        1
        0;
}


/* ==========================================================
   APERTURE IMAGE
   ========================================================== */

.hf-aperture-image {
    position: absolute;

    inset: 0;

    overflow: hidden;
}


.hf-aperture-image::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        rgba(4,31,18,.25);

    transition:
        background
        400ms ease;
}


.hf-aperture-panel:hover
.hf-aperture-image::after,
.hf-aperture-panel.is-focused
.hf-aperture-image::after {
    background:
        rgba(4,31,18,.08);
}


.hf-aperture-image img {
    position: absolute;

    left: -6%;
    top: -4%;

    width: 112%;
    height: 108%;

    object-fit: cover;

    transform:
        translate3d(
            var(--hf-image-x, 0px),
            var(--hf-image-y, 0px),
            0
        )
        scale(1.03);

    transition:
        transform
        200ms ease-out,
        filter
        450ms ease;

    will-change: transform;
}


/* ==========================================================
   PANEL NUMBER
   ========================================================== */

.hf-aperture-number {
    position: absolute;

    z-index: 5;

    left: 20px;
    top: 19px;

    min-width: 38px;
    min-height: 29px;

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

    color:
        var(--hf-green-dark);

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

    font-family:
        var(--hf-mono);

    font-size: 10px;

    transition:
        background
        200ms ease,
        color
        200ms ease;
}


.hf-aperture-panel:hover
.hf-aperture-number {
    color: #ffffff;

    background:
        var(--hf-green);
}


/* ==========================================================
   PANEL CAPTION
   ========================================================== */

.hf-aperture-caption {
    position: absolute;

    z-index: 6;

    left: 0;
    right: 0;
    bottom: 0;

    min-height: 125px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding:
        28px
        23px;

    background:
        rgba(15,104,67,.88);
}


.hf-aperture-caption small {
    display: block;

    color:
        rgba(255,255,255,.67);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: .05em;

    white-space: nowrap;

    opacity: .78;
}


.hf-aperture-caption strong {
    display: block;

    margin-top: 5px;

    color:
        #ffffff;

    font-family:
        var(--hf-display);

    font-size:
        clamp(
            20px,
            2.2vw,
            34px
        );

    font-weight: 500;

    line-height: 1.08;

    white-space: nowrap;
}


/*
 * Compact panels vertically display title
 * until opened.
 */

.hf-aperture-panel:not(:hover)
.hf-aperture-caption strong {
    writing-mode:
        vertical-rl;

    transform:
        rotate(180deg);

    margin:
        0
        auto;

    font-size: 21px;

    white-space: nowrap;
}


.hf-aperture-panel:not(:hover)
.hf-aperture-caption small {
    display: none;
}


.hf-aperture-panel:not(:hover)
.hf-aperture-caption {
    min-height: 220px;

    align-items: center;

    padding:
        25px
        10px;
}


/* ==========================================================
   APERTURE POINTER
   ========================================================== */

.hf-aperture-cursor {
    position: absolute;

    z-index: 100;

    width: 68px;
    height: 35px;

    display: grid;
    place-items: center;

    color:
        var(--hf-green-dark);

    background:
        var(--hf-white);

    border:
        1px solid
        rgba(15,104,67,.20);

    font-family:
        var(--hf-mono);

    font-size: 9px;
    font-weight: 500;

    letter-spacing: .05em;

    opacity: 0;

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

    pointer-events: none;

    box-shadow:
        0
        10px
        28px
        rgba(0,0,0,.16);

    transition:
        opacity
        140ms ease;
}


.hf-aperture.is-pointer-active
.hf-aperture-cursor {
    opacity: 1;
}


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

.hf-hero-foot {
    min-height: 115px;

    display: grid;

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

    align-items: center;

    gap: 30px;
}


.hf-hero-foot > div {
    display: flex;
    align-items: center;

    gap: 15px;
}


.hf-hero-foot strong {
    color:
        var(--hf-green);

    font-family:
        var(--hf-display);

    font-size: 32px;
    font-weight: 500;
}


.hf-hero-foot span {
    max-width: 190px;

    color:
        var(--hf-muted);

    font-size: 12px;

    line-height: 1.5;
}


.hf-hero-foot > i {
    width: 1px;
    height: 46px;

    background:
        var(--hf-line-dark);
}


/* ==========================================================
   LIBRARY
   ========================================================== */

.hf-library {
    padding:
        125px
        0;

    background:
        var(--hf-paper);
}


.hf-library-layout {
    display: grid;

    grid-template-columns:
        minmax(150px, .3fr)
        minmax(0, 1.7fr);

    gap: 90px;
}


.hf-library-heading h2 {
    margin:
        15px
        0
        0;

    color:
        var(--hf-green-dark);

    font-family:
        var(--hf-display);

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

    font-weight: 500;

    line-height: .95;

    letter-spacing: -.05em;
}


.hf-library-image {
    margin:
        55px
        0
        0;
}


.hf-library-image > img {
    display: block;

    width: 100%;
    height: 520px;

    object-fit: cover;
}


.hf-library-image figcaption {
    min-height: 50px;

    display: flex;
    align-items: center;

    gap: 12px;

    color:
        var(--hf-muted);

    font-family:
        var(--hf-mono);

    font-size: 10px;

    border-bottom:
        1px solid
        var(--hf-line-dark);
}


.hf-library-image figcaption i {
    height: 1px;

    flex: 1;

    background:
        var(--hf-line-dark);
}


.hf-library-copy {
    display: grid;

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

    gap: 40px;

    margin-top: 50px;
}


.hf-library-copy p {
    margin: 0;

    color:
        var(--hf-text-soft);

    font-size: 16px;

    line-height: 1.82;
}


/* ==========================================================
   VIDEO
   ========================================================== */

.hf-video-shell {
    margin-top: 70px;

    background: var(--hf-white);

    border:
        1px solid
        var(--hf-line-dark);
}


.hf-video-label {
    min-height: 56px;

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

    gap: 20px;

    padding:
        0
        17px;

    border-bottom:
        1px solid
        var(--hf-line);
}


.hf-video-label > div {
    display: flex;
    align-items: center;

    gap: 10px;
}


.hf-video-label svg {
    width: 16px;
    height: 16px;

    fill: none;

    color:
        var(--hf-green);

    stroke: currentColor;
    stroke-width: 1.7;
}


.hf-video-label span,
.hf-video-label strong {
    font-family:
        var(--hf-mono);

    font-size: 10px;
}


.hf-video-label strong {
    color:
        var(--hf-green);
}


.hf-video-frame {
    position: relative;

    aspect-ratio:
        16 / 9;

    overflow: hidden;
}


.hf-video-frame iframe {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    border: 0;
}


/* ==========================================================
   ENGINEERING
   ========================================================== */

.hf-engineering {
    padding:
        120px
        0
        135px;

    background:
        var(--hf-cream);

    border-top:
        1px solid
        var(--hf-line);

    border-bottom:
        1px solid
        var(--hf-line);
}


.hf-engineering-heading,
.hf-register-heading {
    display: grid;

    grid-template-columns:
        minmax(150px, .3fr)
        minmax(0, 1.7fr);

    gap: 90px;
}


.hf-engineering-copy h2,
.hf-register-copy h2 {
    max-width: 850px;

    margin:
        15px
        0
        0;

    color:
        var(--hf-green-dark);

    font-family:
        var(--hf-display);

    font-size:
        clamp(
            44px,
            5vw,
            65px
        );

    font-weight: 500;

    line-height: 1.05;

    letter-spacing: -.04em;
}


/* ==========================================================
   PRIMARY LABS
   ========================================================== */

.hf-primary-labs {
    margin-top: 80px;
}


.hf-primary-lab {
    min-height: 450px;

    display: grid;

    grid-template-columns:
        1fr
        1.1fr;

    border-top:
        1px solid
        var(--hf-line-dark);
}


.hf-primary-lab:last-child {
    border-bottom:
        1px solid
        var(--hf-line-dark);
}


.hf-primary-lab-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding:
        60px
        60px
        60px
        0;
}


.hf-primary-lab--reverse
.hf-primary-lab-copy {
    padding:
        60px
        0
        60px
        60px;
}


.hf-primary-lab-copy > span {
    color:
        var(--hf-gold);

    font-family:
        var(--hf-mono);

    font-size: 10px;
}


.hf-primary-lab-copy h3 {
    max-width: 540px;

    margin:
        14px
        0
        0;

    color:
        var(--hf-green-dark);

    font-family:
        var(--hf-display);

    font-size:
        clamp(
            34px,
            4vw,
            49px
        );

    font-weight: 500;

    line-height: 1.08;

    letter-spacing: -.03em;
}


.hf-primary-lab-copy p {
    max-width: 540px;

    margin:
        22px
        0
        0;

    color:
        var(--hf-text-soft);

    font-size: 16px;

    line-height: 1.8;
}


.hf-primary-lab figure {
    margin: 0;

    min-height: 450px;

    overflow: hidden;
}


.hf-primary-lab figure img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* ==========================================================
   GEOTECHNICAL
   ========================================================== */

.hf-geo-intro {
    display: grid;

    grid-template-columns:
        1fr
        430px;

    align-items: end;

    gap: 60px;

    margin-top: 105px;
}


.hf-geo-intro h2 {
    max-width: 700px;

    margin:
        15px
        0
        0;

    color:
        var(--hf-green-dark);

    font-family:
        var(--hf-display);

    font-size:
        clamp(
            43px,
            5vw,
            63px
        );

    font-weight: 500;

    line-height: 1.05;
}


.hf-geo-intro figure {
    margin: 0;

    height: 280px;

    overflow: hidden;
}


.hf-geo-intro img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* ==========================================================
   LAB CONSOLE
   ========================================================== */

.hf-lab-console {
    display: grid;

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

    margin-top: 55px;

    background:
        var(--hf-white);

    border:
        1px solid
        var(--hf-line-dark);
}


.hf-lab-nav {
    border-right:
        1px solid
        var(--hf-line-dark);
}


.hf-lab-nav button {
    position: relative;

    width: 100%;

    min-height: 76px;

    display: grid;

    grid-template-columns:
        38px
        1fr;

    align-items: center;

    gap: 9px;

    padding:
        10px
        17px;

    text-align: left;

    color:
        var(--hf-text-soft);

    background:
        transparent;

    border: 0;

    border-bottom:
        1px solid
        var(--hf-line);

    cursor: pointer;

    transition:
        color
        180ms ease,
        background
        180ms ease,
        padding-left
        230ms ease;
}


.hf-lab-nav button::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 3px;

    background:
        var(--hf-green);

    transform:
        scaleY(0);

    transition:
        transform
        220ms ease;
}


.hf-lab-nav button:hover,
.hf-lab-nav button.is-active {
    padding-left: 23px;

    color:
        var(--hf-green-dark);

    background:
        var(--hf-green-soft);
}


.hf-lab-nav button:hover::before,
.hf-lab-nav button.is-active::before {
    transform:
        scaleY(1);
}


.hf-lab-nav button span {
    color:
        var(--hf-muted);

    font-family:
        var(--hf-mono);

    font-size: 11px;
}


.hf-lab-nav button strong {
    font-size: 14px;
    font-weight: 600;

    line-height: 1.35;
}


/* ==========================================================
   LAB DISPLAY
   ========================================================== */

.hf-lab-display {
    position: relative;

    min-height: 680px;

    display: grid;

    grid-template-rows:
        auto
        1fr
        auto;

    overflow: hidden;
}


.hf-lab-display::after {
    content: "LAB";

    position: absolute;

    right: -18px;
    bottom: 48px;

    color:
        rgba(20,129,84,.040);

    font-family:
        var(--hf-display);

    font-size: 180px;

    pointer-events: none;
}


.hf-lab-display-top {
    min-height: 57px;

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

    gap: 20px;

    padding:
        0
        27px;

    border-bottom:
        1px solid
        var(--hf-line);
}


.hf-lab-display-top span,
.hf-lab-display-top strong {
    color:
        var(--hf-muted);

    font-family:
        var(--hf-mono);

    font-size: 11px;
}


/* ==========================================================
   LAB PANEL
   ========================================================== */

.hf-lab-panel {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        120px
        1fr;

    gap: 35px;

    padding:
        55px;

    opacity: 1;

    transform: none;

    transition:
        opacity
        250ms ease,
        transform
        420ms
        cubic-bezier(
            .22,
            1,
            .36,
            1
        );
}


.hf-lab-panel.is-leaving {
    opacity: 0;

    transform:
        translateY(12px);
}


.hf-lab-panel-number {
    color:
        var(--hf-green);

    font-family:
        var(--hf-display);

    font-size: 73px;
    font-weight: 500;

    line-height: 1;
}


.hf-lab-panel h3 {
    margin: 0;

    color:
        var(--hf-green-dark);

    font-family:
        var(--hf-display);

    font-size:
        clamp(
            36px,
            4vw,
            51px
        );

    font-weight: 500;

    line-height: 1.07;

    letter-spacing: -.03em;
}


.hf-lab-panel p {
    max-width: 720px;

    margin:
        21px
        0
        0;

    color:
        var(--hf-text-soft);

    font-size: 16px;

    line-height: 1.82;
}


.hf-lab-location {
    max-width: 720px;

    margin-top: 28px;

    padding:
        19px
        0;

    border-top:
        1px solid
        var(--hf-line-dark);

    border-bottom:
        1px solid
        var(--hf-line-dark);
}


.hf-lab-location span {
    color:
        var(--hf-green);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;
}


.hf-lab-location p {
    margin-top: 8px;
}


/* ==========================================================
   LAB CONTROLS
   ========================================================== */

.hf-lab-controls {
    position: relative;

    z-index: 3;

    min-height: 68px;

    display: grid;

    grid-template-columns:
        47px
        1fr
        47px;

    align-items: center;

    gap: 18px;

    padding:
        0
        27px;

    border-top:
        1px solid
        var(--hf-line);
}


.hf-lab-controls button {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    padding: 0;

    color:
        var(--hf-green-dark);

    background:
        transparent;

    border:
        1px solid
        var(--hf-line-dark);

    cursor: pointer;
}


.hf-lab-controls button:hover {
    color: #ffffff;

    background:
        var(--hf-green);

    border-color:
        var(--hf-green);
}


.hf-lab-controls svg {
    width: 16px;
    height: 16px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;
}


.hf-lab-progress {
    position: relative;

    height: 2px;

    overflow: hidden;

    background:
        var(--hf-line-dark);
}


.hf-lab-progress i {
    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width:
        calc(100% / 9);

    background:
        var(--hf-green);

    transition:
        width
        480ms
        cubic-bezier(
            .22,
            1,
            .36,
            1
        );
}


/* ==========================================================
   CAREER
   ========================================================== */

.hf-career {
    padding:
        125px
        0;

    background:
        var(--hf-paper);
}


.hf-career-layout {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    align-items: center;

    gap: 85px;
}


.hf-career-film {
    position: relative;

    height: 660px;
}


.hf-film-frame {
    position: absolute;

    margin: 0;

    overflow: hidden;

    background:
        var(--hf-white);

    border:
        1px solid
        var(--hf-line-dark);

    box-shadow:
        0
        15px
        38px
        rgba(14,21,17,.08);

    transition:
        transform
        500ms
        cubic-bezier(
            .22,
            1,
            .36,
            1
        );
}


.hf-career-film:hover
.hf-film-frame--one {
    transform:
        translate(-9px, -8px)
        rotate(-4deg);
}


.hf-career-film:hover
.hf-film-frame--two {
    transform:
        translate(10px, -8px)
        rotate(3deg);
}


.hf-career-film:hover
.hf-film-frame--three {
    transform:
        translate(-8px, 10px)
        rotate(-2deg);
}


.hf-career-film:hover
.hf-film-frame--four {
    transform:
        translate(9px, 9px)
        rotate(4deg);
}


.hf-film-frame img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.hf-film-frame--one {
    left: 1%;
    top: 2%;

    width: 58%;
    height: 42%;

    transform:
        rotate(-2.5deg);
}


.hf-film-frame--two {
    right: 1%;
    top: 9%;

    width: 46%;
    height: 35%;

    transform:
        rotate(2deg);
}


.hf-film-frame--three {
    left: 11%;
    bottom: 5%;

    width: 54%;
    height: 43%;

    transform:
        rotate(-1deg);
}


.hf-film-frame--four {
    right: 3%;
    bottom: 12%;

    width: 39%;
    height: 33%;

    transform:
        rotate(3deg);
}


.hf-film-label {
    position: absolute;

    left: 0;
    bottom: 0;

    color:
        var(--hf-muted);

    font-family:
        var(--hf-mono);

    font-size: 10px;
}


.hf-career-copy h2 {
    margin:
        15px
        0
        0;

    color:
        var(--hf-green-dark);

    font-family:
        var(--hf-display);

    font-size:
        clamp(
            42px,
            5vw,
            61px
        );

    font-weight: 500;

    line-height: 1.05;

    letter-spacing: -.04em;
}


.hf-career-copy > p {
    margin:
        28px
        0
        0;

    color:
        var(--hf-text-soft);

    font-size: 16px;

    line-height: 1.82;
}


/* ==========================================================
   CAMPUS REGISTER
   ========================================================== */

.hf-campus-register {
    padding:
        120px
        0
        130px;

    background:
        var(--hf-cream);

    border-top:
        1px solid
        var(--hf-line);

    border-bottom:
        1px solid
        var(--hf-line);
}


.hf-register-list {
    margin-top: 80px;

    border-top:
        1px solid
        var(--hf-line-dark);
}


.hf-register-item {
    position: relative;

    min-height: 245px;

    display: grid;

    grid-template-columns:
        55px
        265px
        1fr;

    align-items: center;

    gap: 40px;

    padding:
        32px
        0;

    overflow: hidden;

    border-bottom:
        1px solid
        var(--hf-line-dark);

    transition:
        padding-left
        320ms
        cubic-bezier(
            .22,
            1,
            .36,
            1
        ),
        background
        220ms ease;
}


.hf-register-item::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 3px;

    background:
        var(--hf-green);

    transform:
        scaleY(0);

    transition:
        transform
        250ms ease;
}


.hf-register-item:hover {
    padding-left: 22px;

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


.hf-register-item:hover::before {
    transform:
        scaleY(1);
}


.hf-register-number {
    align-self: start;

    padding-top: 10px;

    color:
        var(--hf-muted);

    font-family:
        var(--hf-mono);

    font-size: 11px;
}


.hf-register-item figure {
    margin: 0;

    height: 165px;

    overflow: hidden;
}


.hf-register-item figure img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform
        500ms
        cubic-bezier(
            .22,
            1,
            .36,
            1
        );
}


.hf-register-item:hover
figure img {
    transform:
        scale(1.045);
}


.hf-register-item h3 {
    max-width: 720px;

    margin: 0;

    color:
        var(--hf-green-dark);

    font-family:
        var(--hf-display);

    font-size:
        clamp(
            27px,
            3vw,
            37px
        );

    font-weight: 500;

    line-height: 1.12;
}


.hf-register-item p {
    max-width: 800px;

    margin:
        16px
        0
        0;

    color:
        var(--hf-text-soft);

    font-size: 15px;

    line-height: 1.78;
}


/* ==========================================================
   STUDENT POLICY
   IMAGE-FREE
   ========================================================== */

.hf-policy {
    padding:
        130px
        0
        145px;

    background:
        var(--hf-paper);

    overflow: hidden;
}


.hf-policy-layout {
    display: grid;

    grid-template-columns:
        minmax(150px, .3fr)
        minmax(0, 1.7fr);

    gap: 90px;
}


/* ==========================================================
   POLICY SHEET
   ========================================================== */

.hf-policy-paper {
    position: relative;

    max-width: 980px;

    display: grid;

    grid-template-columns:
        90px
        1fr;

    background:
        var(--hf-white);

    border:
        1px solid
        var(--hf-line-dark);

    box-shadow:
        0
        32px
        70px
        rgba(14,21,17,.08);

    transform-style:
        preserve-3d;

    transition:
        transform
        150ms ease-out;
}


.hf-policy-paper::before {
    content: "";

    position: absolute;

    z-index: -1;

    left: 18px;
    right: -18px;
    top: 18px;
    bottom: -18px;

    background:
        var(--hf-cream);

    border:
        1px solid
        var(--hf-line-dark);
}


/* ==========================================================
   POLICY SPINE
   ========================================================== */

.hf-policy-spine {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

    padding:
        30px
        0;

    color:
        #ffffff;

    background:
        var(--hf-green-dark);
}


.hf-policy-spine span {
    font-family:
        var(--hf-display);

    font-size: 33px;
}


.hf-policy-spine strong {
    writing-mode:
        vertical-rl;

    transform:
        rotate(180deg);

    font-family:
        var(--hf-mono);

    font-size: 10px;
    font-weight: 500;

    letter-spacing: .16em;
}


/* ==========================================================
   POLICY DOCUMENT
   ========================================================== */

.hf-policy-document > header {
    min-height: 74px;

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

    gap: 25px;

    padding:
        0
        32px;

    border-bottom:
        1px solid
        var(--hf-line);
}


.hf-policy-document header span {
    display: block;

    color:
        var(--hf-green);

    font-family:
        var(--hf-mono);

    font-size: 10px;
}


.hf-policy-document header strong {
    display: block;

    margin-top: 3px;

    color:
        var(--hf-text);

    font-size: 13px;
}


.hf-policy-document header small {
    color:
        var(--hf-muted);

    font-family:
        var(--hf-mono);

    font-size: 10px;
}


/* ==========================================================
   POLICY CONTENT
   ========================================================== */

.hf-policy-content {
    padding:
        62px
        64px
        66px;
}


.hf-policy-content h2 {
    max-width: 750px;

    margin:
        15px
        0
        0;

    color:
        var(--hf-green-dark);

    font-family:
        var(--hf-display);

    font-size:
        clamp(
            40px,
            5vw,
            59px
        );

    font-weight: 500;

    line-height: 1.05;

    letter-spacing: -.04em;
}


.hf-policy-rule {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-top: 36px;
}


.hf-policy-rule span {
    flex: none;

    color:
        var(--hf-gold);

    font-family:
        var(--hf-mono);

    font-size: 10px;
}


.hf-policy-rule i {
    height: 1px;

    flex: 1;

    background:
        var(--hf-line-dark);
}


.hf-policy-content > p {
    max-width: 760px;

    margin:
        34px
        0
        0;

    color:
        var(--hf-text-soft);

    font-size: 16px;

    line-height: 1.88;
}


.hf-policy-signature {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-top: 45px;

    color:
        var(--hf-muted);

    font-family:
        var(--hf-mono);

    font-size: 10px;
}


.hf-policy-signature i {
    height: 1px;

    flex: 1;

    background:
        var(--hf-line-dark);
}


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

.hf-policy-document > footer {
    min-height: 68px;

    display: grid;

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

    align-items: center;

    border-top:
        1px solid
        var(--hf-line);
}


.hf-policy-document > footer span {
    display: grid;
    place-items: center;

    min-height: 68px;

    color:
        var(--hf-muted);

    font-family:
        var(--hf-mono);

    font-size: 9px;

    border-right:
        1px solid
        var(--hf-line);
}


.hf-policy-document > footer span:last-child {
    border-right: 0;
}


/* ==========================================================
   CLOSING
   ========================================================== */

.hf-closing {
    padding:
        115px
        0;

    background:
        var(--hf-green-soft);

    border-top:
        1px solid
        #D9E0DC;
}


.hf-closing-layout {
    display: grid;

    grid-template-columns:
        210px
        1fr;

    gap: 80px;
}


.hf-closing-mark > span {
    display: block;

    color:
        var(--hf-green);

    font-family:
        var(--hf-display);

    font-size: 67px;

    line-height: 1;
}


.hf-closing-mark > small {
    display: block;

    margin-top: 14px;

    color:
        var(--hf-muted);

    font-family:
        var(--hf-mono);

    font-size: 10px;
}


.hf-closing-copy h2 {
    max-width: 800px;

    margin:
        15px
        0
        0;

    color:
        var(--hf-green-dark);

    font-family:
        var(--hf-display);

    font-size:
        clamp(
            46px,
            6vw,
            70px
        );

    font-weight: 500;

    line-height: 1.02;

    letter-spacing: -.045em;
}


.hf-closing-copy > p {
    max-width: 680px;

    margin:
        22px
        0
        0;

    color:
        var(--hf-text-soft);

    font-size: 17px;
}


.hf-closing-copy button {
    min-height: 48px;

    display: inline-flex;
    align-items: center;

    gap: 9px;

    margin-top: 31px;

    padding:
        0
        17px;

    color: #ffffff;

    background:
        var(--hf-green);

    border:
        1px solid
        var(--hf-green);

    cursor: pointer;

    font-size: 13px;
    font-weight: 700;
}


.hf-closing-copy button:hover {
    background:
        var(--hf-green-hover);
}


.hf-closing-copy svg {
    width: 15px;
    height: 15px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;
}


/* ==========================================================
   REVEALS
   ========================================================== */

.hf-page.js-ready
.hf-reveal {
    opacity: 0;

    transform:
        translateY(18px);

    transition:
        opacity
        740ms ease,
        transform
        740ms
        cubic-bezier(
            .16,
            1,
            .3,
            1
        );
}


.hf-page.js-ready
.hf-reveal.is-visible {
    opacity: 1;

    transform: none;
}


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

@media (max-width: 980px) {

    .hf-hero-intro {
        grid-template-columns: 1fr;

        gap: 34px;
    }


    .hf-hero-description {
        grid-template-columns: 1fr;

        align-items: start;

        gap: 25px;
    }


    .hf-enter {
        justify-self: start;
    }


    .hf-aperture {
        height: 560px;
    }


    .hf-aperture-panel:hover {
        flex:
            2
            1
            0;
    }


    .hf-library-layout,
    .hf-engineering-heading,
    .hf-register-heading,
    .hf-policy-layout {
        grid-template-columns: 1fr;

        gap: 35px;
    }


    .hf-library-copy {
        grid-template-columns: 1fr;
    }


    .hf-primary-lab {
        grid-template-columns: 1fr;
    }


    .hf-primary-lab--reverse figure {
        order: 2;
    }


    .hf-primary-lab-copy,
    .hf-primary-lab--reverse
    .hf-primary-lab-copy {
        padding:
            50px
            0;
    }


    .hf-geo-intro {
        grid-template-columns: 1fr;
    }


    .hf-geo-intro figure {
        height: 390px;
    }


    .hf-lab-console {
        grid-template-columns: 1fr;
    }


    .hf-lab-nav {
        display: flex;

        overflow-x: auto;

        border-right: 0;

        border-bottom:
            1px solid
            var(--hf-line-dark);

        scrollbar-width: none;
    }


    .hf-lab-nav::-webkit-scrollbar {
        display: none;
    }


    .hf-lab-nav button {
        min-width: 190px;

        border-right:
            1px solid
            var(--hf-line);
    }


    .hf-career-layout {
        grid-template-columns: 1fr;

        gap: 60px;
    }


    .hf-career-film {
        max-width: 720px;
    }


    .hf-register-item {
        grid-template-columns:
            45px
            220px
            1fr;

        gap: 25px;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 720px) {

    .hf-shell {
        width:
            min(
                100% - 30px,
                1260px
            );
    }


    .hf-hero-coordinate {
        display: none;
    }


    .hf-hero-intro {
        padding:
            58px
            0
            50px;
    }


    .hf-hero-title h1 {
        font-size:
            clamp(
                59px,
                18vw,
                80px
            );
    }


    .hf-hero-description p {
        font-size: 16px;
    }


    /*
     * On mobile the aperture becomes a horizontal
     * swipe gallery instead of tiny vertical columns.
     */

    .hf-aperture {
        height: 520px;

        display: flex;

        gap: 10px;

        padding:
            10px;

        overflow-x: auto;

        background:
            var(--hf-green-dark);

        cursor: auto;

        scroll-snap-type:
            x mandatory;

        scrollbar-width: none;
    }


    .hf-aperture::-webkit-scrollbar {
        display: none;
    }


    .hf-aperture-panel,
    .hf-aperture:hover
    .hf-aperture-panel,
    .hf-aperture:hover
    .hf-aperture-panel:hover {
        min-width: 82vw;

        flex:
            0
            0
            82vw;

        scroll-snap-align:
            center;

        cursor: pointer;

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


    .hf-aperture-panel:not(:hover)
    .hf-aperture-caption {
        min-height: 125px;

        align-items: initial;

        padding:
            28px
            23px;
    }


    .hf-aperture-panel:not(:hover)
    .hf-aperture-caption strong {
        writing-mode:
            initial;

        transform: none;

        margin-top: 5px;

        font-size: 28px;
    }


    .hf-aperture-panel:not(:hover)
    .hf-aperture-caption small {
        display: block;
    }


    .hf-aperture-cursor {
        display: none;
    }


    .hf-hero-foot {
        grid-template-columns: 1fr;

        gap: 0;

        padding:
            15px
            0;
    }


    .hf-hero-foot > div {
        min-height: 76px;

        border-bottom:
            1px solid
            var(--hf-line);
    }


    .hf-hero-foot > i {
        display: none;
    }


    .hf-library,
    .hf-engineering,
    .hf-career,
    .hf-campus-register,
    .hf-policy,
    .hf-closing {
        padding:
            82px
            0;
    }


    .hf-library-image > img {
        height: 340px;
    }


    .hf-library-heading h2 {
        font-size: 56px;
    }


    .hf-engineering-copy h2,
    .hf-register-copy h2,
    .hf-career-copy h2,
    .hf-closing-copy h2 {
        font-size: 40px;
    }


    .hf-primary-lab figure {
        min-height: 330px;
    }


    .hf-geo-intro figure {
        height: 300px;
    }


    .hf-lab-display {
        min-height: 640px;
    }


    .hf-lab-panel {
        grid-template-columns: 1fr;

        gap: 20px;

        padding:
            38px
            28px;
    }


    .hf-lab-panel-number {
        font-size: 48px;
    }


    .hf-lab-panel h3 {
        font-size: 35px;
    }


    .hf-career-film {
        height: 540px;
    }


    .hf-register-item {
        grid-template-columns:
            36px
            1fr;

        align-items: start;

        gap:
            15px
            18px;

        padding:
            28px
            0;
    }


    .hf-register-item figure {
        grid-column:
            2;

        width: 100%;
        height: 210px;
    }


    .hf-register-item > div {
        grid-column:
            2;
    }


    .hf-register-item:hover {
        padding-left: 0;
    }


    .hf-policy-paper {
        grid-template-columns:
            56px
            1fr;
    }


    .hf-policy-paper::before {
        left: 10px;
        right: -10px;
        top: 10px;
        bottom: -10px;
    }


    .hf-policy-spine span {
        font-size: 23px;
    }


    .hf-policy-document > header {
        padding:
            0
            20px;
    }


    .hf-policy-document header small {
        display: none;
    }


    .hf-policy-content {
        padding:
            42px
            28px;
    }


    .hf-policy-content h2 {
        font-size: 36px;
    }


    .hf-policy-document > footer {
        grid-template-columns:
            1fr
            1fr;
    }


    .hf-policy-document > footer span:nth-child(2) {
        border-right: 0;
    }


    .hf-policy-document > footer span:nth-child(-n + 2) {
        border-bottom:
            1px solid
            var(--hf-line);
    }


    .hf-closing-layout {
        grid-template-columns: 1fr;

        gap: 35px;
    }

}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 460px) {

    .hf-shell {
        width:
            min(
                100% - 22px,
                1260px
            );
    }


    .hf-hero-brand small {
        display: none;
    }


    .hf-aperture {
        height: 470px;
    }


    .hf-aperture-panel,
    .hf-aperture:hover
    .hf-aperture-panel,
    .hf-aperture:hover
    .hf-aperture-panel:hover {
        min-width: 88vw;

        flex-basis: 88vw;
    }


    .hf-library-image > img {
        height: 275px;
    }


    .hf-video-label strong {
        display: none;
    }


    .hf-lab-nav button {
        min-width: 165px;
    }


    .hf-lab-display {
        min-height: 710px;
    }


    .hf-career-film {
        height: 480px;
    }


    .hf-register-item figure {
        height: 185px;
    }


    .hf-policy-paper {
        grid-template-columns:
            45px
            1fr;
    }


    .hf-policy-content {
        padding:
            34px
            21px;
    }


    .hf-policy-spine {
        padding:
            24px
            0;
    }


    .hf-policy-spine strong {
        font-size: 8px;
    }


    .hf-policy-signature {
        align-items: flex-start;

        flex-direction: column;
    }


    .hf-policy-signature i {
        width: 70px;

        flex: none;
    }

}


/* ==========================================================
   SCROLL SAFETY
   ========================================================== */

html,
body {
    height: auto !important;

    min-height: 100% !important;

    overflow-y: auto !important;

    overflow-x: hidden;
}


.hf-page {
    height: auto !important;

    max-height: none !important;

    overflow: visible !important;
}


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

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

    .hf-page *,
    .hf-page *::before,
    .hf-page *::after {
        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .01ms !important;

        scroll-behavior:
            auto !important;
    }


    .hf-page.js-ready
    .hf-reveal {
        opacity: 1;

        transform: none;
    }


    .hf-aperture-cursor {
        display: none;
    }

}

/* ==========================================================
   HORMUUD UNIVERSITY — FACILITIES DARK MODE 2026
   Complete page-specific dark mode.

   IMPORTANT:
   Light mode above has also been corrected from the former
   green/cream/gold/clay palette to the HU green/blue identity.
   ========================================================== */


/* ==========================================================
   DARK — CANONICAL PAGE TOKENS
   ========================================================== */

html[data-theme="dark"] .hf-page {
    --hf-green: #66C59B;
    --hf-green-hover: #86D5B2;
    --hf-green-dark: #86D5B2;
    --hf-green-soft: #183A2C;

    --hf-blue: #72BCE3;
    --hf-blue-dark: #97D1EC;
    --hf-blue-soft: #173442;

    --hf-cream: #18241D;
    --hf-paper: #0E1511;
    --hf-soft: #121B16;
    --hf-white: #151E18;

    --hf-text: #EDF3EF;
    --hf-text-soft: #A9B5AE;
    --hf-muted: #7F8B84;

    --hf-line: #2D3A32;
    --hf-line-dark: #3A493F;

    --hf-gold: var(--hf-blue);
    --hf-clay: var(--hf-blue);

    color: var(--hf-text) !important;
    background: var(--hf-paper) !important;
}


/* ==========================================================
   DARK — HERO
   ========================================================== */

html[data-theme="dark"] .hf-page .hf-hero {
    background: #0E1511 !important;
    border-bottom-color: var(--hf-line) !important;
}

html[data-theme="dark"] .hf-page .hf-hero::before {
    color: rgba(102, 197, 155, .035) !important;
}

html[data-theme="dark"] .hf-page .hf-hero-top {
    border-bottom-color: var(--hf-line) !important;
}

html[data-theme="dark"] .hf-page .hf-hero-logo {
    color: #0E1511 !important;
    background: var(--hf-green) !important;
}

html[data-theme="dark"] .hf-page .hf-hero-brand strong {
    color: var(--hf-green-dark) !important;
}

html[data-theme="dark"] .hf-page .hf-hero-brand small,
html[data-theme="dark"] .hf-page .hf-hero-coordinate,
html[data-theme="dark"] .hf-page .hf-hero-index p {
    color: var(--hf-muted) !important;
}

html[data-theme="dark"] .hf-page .hf-hero-coordinate i {
    background: var(--hf-line-dark) !important;
}

html[data-theme="dark"] .hf-page .hf-hero-index > span,
html[data-theme="dark"] .hf-page .hf-section-index > span {
    color: var(--hf-blue) !important;
}

html[data-theme="dark"] .hf-page .hf-kicker,
html[data-theme="dark"] .hf-page .hf-section-index > p {
    color: var(--hf-green) !important;
}

html[data-theme="dark"] .hf-page .hf-hero-title h1 {
    color: var(--hf-green-dark) !important;
}

html[data-theme="dark"] .hf-page .hf-hero-title h1 span {
    color: var(--hf-blue) !important;
}

html[data-theme="dark"] .hf-page .hf-hero-description p {
    color: var(--hf-text-soft) !important;
}

html[data-theme="dark"] .hf-page .hf-enter {
    color: #0E1511 !important;
    background: var(--hf-green) !important;
    border-color: var(--hf-green) !important;
}

html[data-theme="dark"] .hf-page .hf-enter:hover,
html[data-theme="dark"] .hf-page .hf-enter:focus-visible {
    background: var(--hf-green-dark) !important;
    border-color: var(--hf-green-dark) !important;
}


/* ==========================================================
   DARK — CAMPUS APERTURE
   Keep this as a strong HU-green photographic field.
   ========================================================== */

html[data-theme="dark"] .hf-page .hf-aperture {
    background: #0B3322 !important;
    border-color: #315944 !important;
}

html[data-theme="dark"] .hf-page .hf-aperture-panel {
    color: #FFFFFF !important;
    background: #0B3322 !important;
    border-right-color: rgba(255, 255, 255, .18) !important;
}

html[data-theme="dark"] .hf-page .hf-aperture-image::after {
    background: rgba(4, 20, 13, .38) !important;
}

html[data-theme="dark"] .hf-page .hf-aperture-panel:hover .hf-aperture-image::after,
html[data-theme="dark"] .hf-page .hf-aperture-panel.is-focused .hf-aperture-image::after {
    background: rgba(4, 20, 13, .12) !important;
}

html[data-theme="dark"] .hf-page .hf-aperture-number {
    color: var(--hf-green-dark) !important;
    background: rgba(21, 30, 24, .94) !important;
    border: 1px solid rgba(134, 213, 178, .24);
}

html[data-theme="dark"] .hf-page .hf-aperture-panel:hover .hf-aperture-number,
html[data-theme="dark"] .hf-page .hf-aperture-panel.is-focused .hf-aperture-number {
    color: #0E1511 !important;
    background: var(--hf-green) !important;
}

html[data-theme="dark"] .hf-page .hf-aperture-caption {
    background: rgba(7, 35, 23, .88) !important;
}

html[data-theme="dark"] .hf-page .hf-aperture-caption small {
    color: rgba(255, 255, 255, .72) !important;
}

html[data-theme="dark"] .hf-page .hf-aperture-caption strong {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .hf-page .hf-aperture-cursor {
    color: var(--hf-green-dark) !important;
    background: #151E18 !important;
    border-color: #315944 !important;

    box-shadow:
        0 10px 28px
        rgba(0, 0, 0, .28) !important;
}


/* Hero facts */

html[data-theme="dark"] .hf-page .hf-hero-foot strong {
    color: var(--hf-green) !important;
}

html[data-theme="dark"] .hf-page .hf-hero-foot span {
    color: var(--hf-muted) !important;
}

html[data-theme="dark"] .hf-page .hf-hero-foot > i {
    background: var(--hf-line-dark) !important;
}


/* ==========================================================
   DARK — LIBRARY + VIDEO
   ========================================================== */

html[data-theme="dark"] .hf-page .hf-library {
    background: #0E1511 !important;
}

html[data-theme="dark"] .hf-page .hf-library-heading h2 {
    color: var(--hf-green-dark) !important;
}

html[data-theme="dark"] .hf-page .hf-library-image figcaption {
    color: var(--hf-muted) !important;
    border-bottom-color: var(--hf-line-dark) !important;
}

html[data-theme="dark"] .hf-page .hf-library-image figcaption i {
    background: var(--hf-line-dark) !important;
}

html[data-theme="dark"] .hf-page .hf-library-copy p {
    color: var(--hf-text-soft) !important;
}

html[data-theme="dark"] .hf-page .hf-video-shell {
    background: #151E18 !important;
    border-color: var(--hf-line-dark) !important;
}

html[data-theme="dark"] .hf-page .hf-video-label {
    border-bottom-color: var(--hf-line) !important;
}

html[data-theme="dark"] .hf-page .hf-video-label svg,
html[data-theme="dark"] .hf-page .hf-video-label strong {
    color: var(--hf-green) !important;
}


/* ==========================================================
   DARK — ENGINEERING
   ========================================================== */

html[data-theme="dark"] .hf-page .hf-engineering {
    background: #18241D !important;
    border-color: var(--hf-line) !important;
}

html[data-theme="dark"] .hf-page .hf-engineering-copy h2,
html[data-theme="dark"] .hf-page .hf-register-copy h2,
html[data-theme="dark"] .hf-page .hf-primary-lab-copy h3,
html[data-theme="dark"] .hf-page .hf-geo-intro h2 {
    color: var(--hf-green-dark) !important;
}

html[data-theme="dark"] .hf-page .hf-primary-lab,
html[data-theme="dark"] .hf-page .hf-primary-lab:last-child {
    border-color: var(--hf-line-dark) !important;
}

html[data-theme="dark"] .hf-page .hf-primary-lab-copy > span {
    color: var(--hf-blue) !important;
}

html[data-theme="dark"] .hf-page .hf-primary-lab-copy p {
    color: var(--hf-text-soft) !important;
}


/* ==========================================================
   DARK — INTERACTIVE LAB CONSOLE
   ========================================================== */

html[data-theme="dark"] .hf-page .hf-lab-console {
    background: #151E18 !important;
    border-color: var(--hf-line-dark) !important;
}

html[data-theme="dark"] .hf-page .hf-lab-nav {
    border-right-color: var(--hf-line-dark) !important;
}

html[data-theme="dark"] .hf-page .hf-lab-nav button {
    color: var(--hf-text-soft) !important;
    background: transparent !important;
    border-bottom-color: var(--hf-line) !important;
}

html[data-theme="dark"] .hf-page .hf-lab-nav button::before {
    background: var(--hf-green) !important;
}

html[data-theme="dark"] .hf-page .hf-lab-nav button:hover,
html[data-theme="dark"] .hf-page .hf-lab-nav button.is-active {
    color: var(--hf-green-dark) !important;
    background: var(--hf-green-soft) !important;
}

html[data-theme="dark"] .hf-page .hf-lab-nav button span {
    color: var(--hf-muted) !important;
}

html[data-theme="dark"] .hf-page .hf-lab-display::after {
    color: rgba(102, 197, 155, .045) !important;
}

html[data-theme="dark"] .hf-page .hf-lab-display-top {
    border-bottom-color: var(--hf-line) !important;
}

html[data-theme="dark"] .hf-page .hf-lab-display-top span,
html[data-theme="dark"] .hf-page .hf-lab-display-top strong {
    color: var(--hf-muted) !important;
}

html[data-theme="dark"] .hf-page .hf-lab-panel-number,
html[data-theme="dark"] .hf-page .hf-lab-location span {
    color: var(--hf-green) !important;
}

html[data-theme="dark"] .hf-page .hf-lab-panel h3 {
    color: var(--hf-green-dark) !important;
}

html[data-theme="dark"] .hf-page .hf-lab-panel p {
    color: var(--hf-text-soft) !important;
}

html[data-theme="dark"] .hf-page .hf-lab-location {
    border-color: var(--hf-line-dark) !important;
}

html[data-theme="dark"] .hf-page .hf-lab-controls {
    border-top-color: var(--hf-line) !important;
}

html[data-theme="dark"] .hf-page .hf-lab-controls button {
    color: var(--hf-green-dark) !important;
    background: transparent !important;
    border-color: var(--hf-line-dark) !important;
}

html[data-theme="dark"] .hf-page .hf-lab-controls button:hover,
html[data-theme="dark"] .hf-page .hf-lab-controls button:focus-visible {
    color: #0E1511 !important;
    background: var(--hf-green) !important;
    border-color: var(--hf-green) !important;
}

html[data-theme="dark"] .hf-page .hf-lab-progress {
    background: var(--hf-line-dark) !important;
}

html[data-theme="dark"] .hf-page .hf-lab-progress i {
    background: var(--hf-green) !important;
}


/* ==========================================================
   DARK — CAREER GUIDANCE
   ========================================================== */

html[data-theme="dark"] .hf-page .hf-career {
    background: #0E1511 !important;
}

html[data-theme="dark"] .hf-page .hf-film-frame {
    background: #151E18 !important;
    border-color: var(--hf-line-dark) !important;

    box-shadow:
        0 15px 38px
        rgba(0, 0, 0, .22) !important;
}

html[data-theme="dark"] .hf-page .hf-film-frame img {
    filter: none !important;
}

html[data-theme="dark"] .hf-page .hf-film-label {
    color: var(--hf-muted) !important;
}

html[data-theme="dark"] .hf-page .hf-career-copy h2 {
    color: var(--hf-green-dark) !important;
}

html[data-theme="dark"] .hf-page .hf-career-copy > p {
    color: var(--hf-text-soft) !important;
}


/* ==========================================================
   DARK — CAMPUS REGISTER / CAMPUS LIFE
   ========================================================== */

html[data-theme="dark"] .hf-page .hf-campus-register {
    background: #18241D !important;
    border-color: var(--hf-line) !important;
}

html[data-theme="dark"] .hf-page .hf-register-list,
html[data-theme="dark"] .hf-page .hf-register-item {
    border-color: var(--hf-line-dark) !important;
}

html[data-theme="dark"] .hf-page .hf-register-item:hover {
    background: rgba(102, 197, 155, .065) !important;
}

html[data-theme="dark"] .hf-page .hf-register-item::before {
    background: var(--hf-green) !important;
}

html[data-theme="dark"] .hf-page .hf-register-number {
    color: var(--hf-muted) !important;
}

html[data-theme="dark"] .hf-page .hf-register-item h3 {
    color: var(--hf-green-dark) !important;
}

html[data-theme="dark"] .hf-page .hf-register-item p {
    color: var(--hf-text-soft) !important;
}

html[data-theme="dark"] .hf-page .hf-register-item img {
    filter: none !important;
}


/* ==========================================================
   DARK — STUDENT POLICY PAPER
   ========================================================== */

html[data-theme="dark"] .hf-page .hf-policy {
    background: #0E1511 !important;
}

html[data-theme="dark"] .hf-page .hf-policy-paper {
    background: #151E18 !important;
    border-color: var(--hf-line-dark) !important;

    box-shadow:
        0 32px 70px
        rgba(0, 0, 0, .24) !important;
}

html[data-theme="dark"] .hf-page .hf-policy-paper::before {
    background: #18241D !important;
    border-color: var(--hf-line-dark) !important;
}

/* --hf-green-dark is a light text accent in dark mode, so the
   policy spine gets an explicit deep institutional green. */
html[data-theme="dark"] .hf-page .hf-policy-spine {
    color: #FFFFFF !important;
    background: #0F6843 !important;
}

html[data-theme="dark"] .hf-page .hf-policy-document > header {
    border-bottom-color: var(--hf-line) !important;
}

html[data-theme="dark"] .hf-page .hf-policy-document header span {
    color: var(--hf-green) !important;
}

html[data-theme="dark"] .hf-page .hf-policy-document header strong {
    color: var(--hf-text) !important;
}

html[data-theme="dark"] .hf-page .hf-policy-document header small {
    color: var(--hf-muted) !important;
}

html[data-theme="dark"] .hf-page .hf-policy-content h2 {
    color: var(--hf-green-dark) !important;
}

html[data-theme="dark"] .hf-page .hf-policy-rule span {
    color: var(--hf-blue) !important;
}

html[data-theme="dark"] .hf-page .hf-policy-rule i,
html[data-theme="dark"] .hf-page .hf-policy-signature i {
    background: var(--hf-line-dark) !important;
}

html[data-theme="dark"] .hf-page .hf-policy-content > p {
    color: var(--hf-text-soft) !important;
}

html[data-theme="dark"] .hf-page .hf-policy-signature,
html[data-theme="dark"] .hf-page .hf-policy-document > footer span {
    color: var(--hf-muted) !important;
}

html[data-theme="dark"] .hf-page .hf-policy-document > footer {
    border-top-color: var(--hf-line) !important;
}

html[data-theme="dark"] .hf-page .hf-policy-document > footer span {
    border-right-color: var(--hf-line) !important;
}


/* ==========================================================
   DARK — CLOSING
   ========================================================== */

html[data-theme="dark"] .hf-page .hf-closing {
    background: #183A2C !important;
    border-top-color: #315944 !important;
}

html[data-theme="dark"] .hf-page .hf-closing-mark > span,
html[data-theme="dark"] .hf-page .hf-closing-copy .hf-kicker {
    color: var(--hf-green) !important;
}

html[data-theme="dark"] .hf-page .hf-closing-mark > small {
    color: var(--hf-muted) !important;
}

html[data-theme="dark"] .hf-page .hf-closing-copy h2 {
    color: var(--hf-green-dark) !important;
}

html[data-theme="dark"] .hf-page .hf-closing-copy > p {
    color: var(--hf-text-soft) !important;
}

html[data-theme="dark"] .hf-page .hf-closing-copy button {
    color: #0E1511 !important;
    background: var(--hf-green) !important;
    border-color: var(--hf-green) !important;
}

html[data-theme="dark"] .hf-page .hf-closing-copy button:hover,
html[data-theme="dark"] .hf-page .hf-closing-copy button:focus-visible {
    background: var(--hf-green-dark) !important;
    border-color: var(--hf-green-dark) !important;
}


/* ==========================================================
   THEME TRANSITIONS
   ========================================================== */

.hf-page,
.hf-page .hf-hero,
.hf-page .hf-aperture,
.hf-page .hf-aperture-panel,
.hf-page .hf-aperture-number,
.hf-page .hf-aperture-cursor,
.hf-page .hf-library,
.hf-page .hf-video-shell,
.hf-page .hf-engineering,
.hf-page .hf-lab-console,
.hf-page .hf-lab-nav button,
.hf-page .hf-career,
.hf-page .hf-film-frame,
.hf-page .hf-campus-register,
.hf-page .hf-register-item,
.hf-page .hf-policy,
.hf-page .hf-policy-paper,
.hf-page .hf-policy-spine,
.hf-page .hf-closing {
    transition:
        background-color .24s ease,
        color .24s ease,
        border-color .24s ease;
}


/* ==========================================================
   MOBILE DARK MODE
   ========================================================== */

@media (max-width: 720px) {

    html[data-theme="dark"] .hf-page .hf-aperture {
        background: #0B3322 !important;
    }

    html[data-theme="dark"] .hf-page .hf-aperture-panel,
    html[data-theme="dark"] .hf-page .hf-aperture:hover .hf-aperture-panel,
    html[data-theme="dark"] .hf-page .hf-aperture:hover .hf-aperture-panel:hover {
        border-color: rgba(255, 255, 255, .16) !important;
    }

    html[data-theme="dark"] .hf-page .hf-lab-nav {
        border-right-color: transparent !important;
        border-bottom-color: var(--hf-line-dark) !important;
    }

}


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

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

    .hf-page,
    .hf-page .hf-hero,
    .hf-page .hf-aperture,
    .hf-page .hf-aperture-panel,
    .hf-page .hf-aperture-number,
    .hf-page .hf-aperture-cursor,
    .hf-page .hf-library,
    .hf-page .hf-video-shell,
    .hf-page .hf-engineering,
    .hf-page .hf-lab-console,
    .hf-page .hf-lab-nav button,
    .hf-page .hf-career,
    .hf-page .hf-film-frame,
    .hf-page .hf-campus-register,
    .hf-page .hf-register-item,
    .hf-page .hf-policy,
    .hf-page .hf-policy-paper,
    .hf-page .hf-policy-spine,
    .hf-page .hf-closing {
        transition: none !important;
    }

}
