/* ==========================================================
   HORMUUD UNIVERSITY
   OUR HISTORY
   LIVING ARCHIVE EXPERIENCE
   ========================================================== */


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

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

    --history-cream: #F1F5F2;
    --history-paper: #F8FAF9;
    --history-soft: #F1F5F2;

    --history-white: #FFFFFF;

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

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

    /* Legacy editorial slots now resolve to HU blue. */
    --history-gold: var(--history-blue);
    --history-gold-light: var(--history-blue);

    --history-display: "Fraunces", Georgia, serif;
    --history-body: "Inter", Arial, sans-serif;

    width: 100%;

    min-height: 100vh;

    color: var(--history-text);

    background: var(--history-white);

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

    font-size: 16px;

    line-height: 1.65;

    -webkit-font-smoothing: antialiased;

    overflow: visible;
}


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


.history-page a {
    color: inherit;
    text-decoration: none;
}


.history-page button {
    font: inherit;

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


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

    margin-inline: auto;
}


.history-icons {
    position: absolute;

    width: 0;
    height: 0;

    overflow: hidden;
}


.history-icon {
    width: 17px;
    height: 17px;

    fill: none;

    flex: none;

    stroke: currentColor;
    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}


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

.history-hero {
    position: relative;

    padding:
        88px
        0
        80px;

    background:
        var(--history-cream);

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

    overflow: hidden;
}


.history-hero::before {
    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    left: -390px;
    top: -300px;

    border-radius: 50%;

    border:
        1px solid
        rgba(20,129,84,.08);

    pointer-events: none;
}


.history-hero-grid {
    display: grid;

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

    align-items: center;

    gap: 85px;
}


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

.history-kicker {
    margin:
        0
        0
        22px;

    color:
        var(--history-green);

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

    letter-spacing: .13em;

    text-transform: uppercase;
}


.history-hero h1 {
    max-width: 760px;

    margin: 0;

    color:
        var(--history-text);

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

    font-size:
        clamp(
            54px,
            6vw,
            79px
        );

    font-weight: 600;

    line-height: .99;

    letter-spacing: -.045em;
}


.history-hero h1 span {
    display: block;

    color:
        var(--history-green);
}


.history-hero-lead {
    max-width: 680px;

    margin:
        31px
        0
        0;

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

    font-size: 16px;

    line-height: 1.82;
}


.history-explore {
    min-height: 48px;

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

    gap: 9px;

    margin-top: 34px;

    padding: 0;

    color:
        var(--history-green);

    background: transparent;

    border: 0;

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

    cursor: pointer;
}


.history-explore
.history-icon {
    transition:
        transform
        180ms ease;
}


.history-explore:hover
.history-icon {
    transform:
        translateY(4px);
}


/* ==========================================================
   TIME CAPSULE
   ========================================================== */

.history-time-stage {
    --time-tilt-x: 0deg;
    --time-tilt-y: 0deg;

    position: relative;

    width: min(100%, 520px);

    aspect-ratio: 1;

    justify-self: end;

    perspective: 900px;

    transform:
        rotateX(var(--time-tilt-x))
        rotateY(var(--time-tilt-y));

    transition:
        transform
        280ms ease-out;
}


.history-time-stage::before {
    content: "";

    position: absolute;

    inset: 8%;

    border-radius: 50%;

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

    box-shadow:
        0
        35px
        80px
        rgba(10,52,32,.17);
}


.history-time-frame {
    position: absolute;

    inset: 1%;

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

    border-radius: 50%;

    opacity: .7;
}


/* ==========================================================
   TIME CORE
   ========================================================== */

.history-time-core {
    position: absolute;

    z-index: 6;

    left: 50%;
    top: 50%;

    width: 190px;
    height: 190px;

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

    color: #fff;

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

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

    border-radius: 50%;

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


.history-time-core small {
    color:
        rgba(255,255,255,.55);

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

    letter-spacing: .12em;

    text-transform: uppercase;
}


.history-time-core strong {
    margin-top: 5px;

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

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

    line-height: .95;

    letter-spacing: -.055em;
}


.history-time-core span {
    margin-top: 10px;

    color:
        #86D5B2;

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

    letter-spacing: .08em;

    text-transform: uppercase;
}


/* ==========================================================
   TIME ORBITS
   ========================================================== */

.history-time-orbit {
    position: absolute;

    left: 50%;
    top: 50%;

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

    border-radius: 50%;

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

    pointer-events: none;
}


.history-time-orbit span {
    position: absolute;

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

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

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

    letter-spacing: .08em;

    text-transform: uppercase;
}


.history-time-orbit--one {
    width: 270px;
    height: 270px;

    animation:
        historyOrbitClockwise
        22s
        linear
        infinite;
}


.history-time-orbit--one span {
    top: -6px;
    left: 50%;

    padding:
        0
        8px;
}


.history-time-orbit--two {
    width: 355px;
    height: 355px;

    border-style: dashed;

    animation:
        historyOrbitCounter
        34s
        linear
        infinite;
}


.history-time-orbit--two span {
    right: -23px;
    top: 50%;

    padding:
        4px
        5px;
}


.history-time-orbit--three {
    width: 425px;
    height: 425px;

    opacity: .55;

    animation:
        historyOrbitClockwise
        48s
        linear
        infinite;
}


.history-time-orbit--three span {
    left: 17%;
    bottom: 4%;

    padding:
        4px
        6px;
}


@keyframes historyOrbitClockwise {

    to {
        transform:
            translate(-50%, -50%)
            rotate(360deg);
    }

}


@keyframes historyOrbitCounter {

    to {
        transform:
            translate(-50%, -50%)
            rotate(-360deg);
    }

}


/* ==========================================================
   FLOATING WORDS
   ========================================================== */

.history-time-word {
    position: absolute;

    z-index: 5;

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

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

    letter-spacing: .04em;
}


.history-time-word--one {
    left: 19%;
    top: 27%;
}


.history-time-word--two {
    right: 16%;
    top: 30%;
}


.history-time-word--three {
    right: 17%;
    bottom: 25%;
}


.history-time-word--four {
    left: 17%;
    bottom: 26%;
}


.history-time-coordinate {
    position: absolute;

    z-index: 7;

    left: 10%;
    right: 10%;
    bottom: 8%;

    display: flex;
    align-items: center;

    gap: 10px;

    color:
        rgba(255,255,255,.45);
}


.history-time-coordinate span {
    font-size: 8px;

    letter-spacing: .08em;

    text-transform: uppercase;
}


.history-time-coordinate i {
    height: 1px;

    flex: 1;

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


/* ==========================================================
   SHARED SECTION
   ========================================================== */

.history-section-grid {
    display: grid;

    grid-template-columns:
        minmax(170px, .35fr)
        minmax(0, 1.65fr);

    gap: 90px;
}


.history-section-meta > span {
    color:
        var(--history-gold);

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

    letter-spacing: .12em;
}


.history-section-meta p {
    margin:
        14px
        0
        0;

    color:
        var(--history-green);

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

    letter-spacing: .11em;

    text-transform: uppercase;
}


.history-section-kicker {
    display: block;

    margin-bottom: 15px;

    color:
        var(--history-green);

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

    letter-spacing: .11em;

    text-transform: uppercase;
}


/* ==========================================================
   OPENING
   ========================================================== */

.history-opening {
    padding:
        115px
        0;

    background: var(--history-white);
}


.history-opening-content h2 {
    max-width: 760px;

    margin: 0;

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

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

    font-size:
        clamp(
            39px,
            4.8vw,
            57px
        );

    font-weight: 600;

    line-height: 1.08;

    letter-spacing: -.03em;
}


.history-opening-content > p {
    max-width: 740px;

    margin:
        23px
        0
        0;

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

    font-size: 15px;

    line-height: 1.85;
}


/* ==========================================================
   FOUNDING
   ========================================================== */

.history-founding {
    padding:
        105px
        0;

    color: #fff;

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


.history-founding-grid {
    display: grid;

    grid-template-columns:
        .65fr
        1.35fr;

    align-items: center;

    gap: 100px;
}


.history-founding-year {
    border-right:
        1px solid
        rgba(255,255,255,.18);
}


.history-founding-year span {
    display: block;

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

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

    letter-spacing: .1em;

    text-transform: uppercase;
}


.history-founding-year strong {
    display: block;

    margin-top: 16px;

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

    font-size:
        clamp(
            92px,
            12vw,
            155px
        );

    font-weight: 600;

    line-height: .85;

    letter-spacing: -.065em;
}


.history-founding-copy
.history-section-kicker {
    color:
        #86D5B2;
}


.history-founding-copy h2 {
    max-width: 700px;

    margin: 0;

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

    font-size:
        clamp(
            39px,
            4.8vw,
            57px
        );

    font-weight: 600;

    line-height: 1.08;

    letter-spacing: -.03em;
}


.history-founding-copy p {
    max-width: 700px;

    margin:
        23px
        0
        0;

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

    font-size: 15px;

    line-height: 1.82;
}


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

.history-archive {
    padding:
        115px
        0
        125px;

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


.history-archive-heading {
    display: grid;

    grid-template-columns:
        minmax(170px, .35fr)
        minmax(0, 1.65fr);

    gap: 90px;

    margin-bottom: 65px;
}


.history-archive-heading-copy h2 {
    max-width: 760px;

    margin: 0;

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

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

    font-size:
        clamp(
            39px,
            4.8vw,
            57px
        );

    font-weight: 600;

    line-height: 1.08;

    letter-spacing: -.03em;
}


.history-archive-heading-copy p {
    max-width: 630px;

    margin:
        23px
        0
        0;

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

    font-size: 14px;

    line-height: 1.8;
}


/* ==========================================================
   GALLERY
   ========================================================== */

.history-gallery {
    outline: none;
}


.history-gallery:focus-visible {
    outline:
        2px solid
        var(--history-green);

    outline-offset: 8px;
}


/* ==========================================================
   GALLERY STAGE
   ========================================================== */

.history-gallery-stage {
    position: relative;

    height:
        clamp(
            470px,
            54vw,
            690px
        );

    overflow: visible;
}


/* paper stack behind image */

.history-gallery-sheet {
    position: absolute;

    background: var(--history-white);

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

    pointer-events: none;
}


.history-gallery-sheet--one {
    inset:
        18px
        18px
        -18px
        18px;

    transform:
        rotate(.7deg);
}


.history-gallery-sheet--two {
    inset:
        9px
        9px
        -9px
        9px;

    transform:
        rotate(-.35deg);
}


.history-gallery-slides {
    position: absolute;

    inset: 0;

    overflow: hidden;

    background:
        #D9E0DC;
}


/* ==========================================================
   SLIDE
   ========================================================== */

.history-gallery-slide {
    position: absolute;

    inset: 0;

    margin: 0;

    opacity: 0;

    pointer-events: none;

    transform:
        translateX(45px)
        scale(.985);

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


.history-gallery-slide.is-active {
    z-index: 3;

    opacity: 1;

    pointer-events: auto;

    transform:
        translateX(0)
        scale(1);
}


.history-gallery-slide.is-from-left {
    transform:
        translateX(-45px)
        scale(.985);
}


.history-gallery-slide img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transform:
        scale(1.015);

    transition:
        transform
        1.1s
        cubic-bezier(
            .22,
            1,
            .36,
            1
        );
}


@media (hover: hover) and (pointer: fine) {

    .history-gallery-slide.is-active:hover img {
        transform:
            scale(1.035);
    }

}


.history-gallery-slide::after {
    content: "";

    position: absolute;

    inset:
        55%
        0
        0;

    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(5,24,14,.72)
        );
}


.history-gallery-slide figcaption {
    position: absolute;

    z-index: 5;

    left: 34px;
    right: 120px;
    bottom: 30px;

    color: #fff;
}


.history-gallery-slide figcaption span {
    display: block;

    margin-bottom: 9px;

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

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

    letter-spacing: .1em;

    text-transform: uppercase;
}


.history-gallery-slide figcaption strong {
    display: block;

    max-width: 740px;

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

    font-size:
        clamp(
            25px,
            3.5vw,
            42px
        );

    font-weight: 600;

    line-height: 1.12;
}


/* ==========================================================
   COUNTER
   ========================================================== */

.history-gallery-counter {
    position: absolute;

    z-index: 8;

    right: 28px;
    top: 26px;

    min-width: 112px;

    display: flex;
    align-items: center;

    gap: 9px;

    padding:
        10px
        12px;

    color: #fff;

    background:
        rgba(8,35,21,.73);

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);
}


.history-gallery-counter strong,
.history-gallery-counter span {
    font-size: 10px;
}


.history-gallery-counter i {
    width: 30px;
    height: 1px;

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


/* progress */

.history-gallery-progress {
    position: absolute;

    z-index: 8;

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

    height: 3px;

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


.history-gallery-progress span {
    display: block;

    width: 25%;
    height: 100%;

    background:
        var(--history-gold-light);

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


/* ==========================================================
   GALLERY CONTROLS
   ========================================================== */

.history-gallery-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    margin-top: 38px;
}


.history-gallery-navigation {
    display: flex;

    gap: 8px;
}


.history-gallery-navigation button {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

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

    background:
        transparent;

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

    cursor: pointer;

    transition:
        color
        180ms ease,
        background
        180ms ease,
        border-color
        180ms ease;
}


.history-gallery-navigation button:hover {
    color: #fff;

    background:
        var(--history-green);

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


.history-gallery-navigation svg,
.history-gallery-play svg {
    width: 17px;
    height: 17px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.history-gallery-play {
    min-height: 48px;

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

    gap: 9px;

    padding:
        0
        17px;

    color:
        var(--history-green);

    background: transparent;

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

    cursor: pointer;

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


/* ==========================================================
   THUMBNAILS
   ========================================================== */

.history-gallery-thumbs {
    display: grid;

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

    gap: 12px;

    margin-top: 24px;
}


.history-gallery-thumb {
    position: relative;

    height: 100px;

    padding: 0;

    overflow: hidden;

    background:
        #D9E0DC;

    border:
        2px solid
        transparent;

    cursor: pointer;

    opacity: .55;

    transition:
        opacity
        180ms ease,
        border-color
        180ms ease;
}


.history-gallery-thumb:hover,
.history-gallery-thumb.is-active {
    opacity: 1;
}


.history-gallery-thumb.is-active {
    border-color:
        var(--history-green);
}


.history-gallery-thumb img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


.history-gallery-thumb span {
    position: absolute;

    left: 8px;
    bottom: 6px;

    color: #fff;

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

    text-shadow:
        0
        1px
        5px
        rgba(0,0,0,.7);
}


.history-gallery-help {
    margin:
        16px
        0
        0;

    color:
        var(--history-muted);

    font-size: 11px;
}


/* ==========================================================
   BEACON
   ========================================================== */

.history-beacon {
    padding:
        115px
        0;

    color: #fff;

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


.history-section-meta--dark > span {
    color:
        var(--history-gold-light);
}


.history-section-meta--dark p {
    color:
        rgba(255,255,255,.5);
}


.history-section-kicker--dark {
    color:
        #86D5B2;
}


.history-beacon-content h2 {
    max-width: 740px;

    margin: 0;

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

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

    font-weight: 600;

    line-height: 1.08;

    letter-spacing: -.03em;
}


.history-beacon-content > p {
    max-width: 760px;

    margin:
        24px
        0
        0;

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

    font-size: 15px;

    line-height: 1.84;
}


/* ==========================================================
   PRINCIPLES
   ========================================================== */

.history-principles {
    display: grid;

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

    margin-top: 52px;

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


.history-principles > div {
    min-height: 120px;

    padding:
        27px
        27px;

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


.history-principles > div:first-child {
    padding-left: 0;
}


.history-principles > div:last-child {
    border-right: 0;
}


.history-principles span {
    display: block;

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

    font-size: 9px;
}


.history-principles strong {
    display: block;

    margin-top: 18px;

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

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


/* ==========================================================
   COMMUNITY
   ========================================================== */

.history-community {
    padding:
        115px
        0;

    background: var(--history-white);
}


.history-community-grid {
    display: grid;

    grid-template-columns:
        .42fr
        1.58fr;

    gap: 90px;
}


.history-community-marker {
    position: relative;

    min-height: 260px;
}


.history-community-circle {
    width: 125px;
    height: 125px;

    display: grid;
    place-items: center;

    color: #fff;

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

    border-radius: 50%;
}


.history-community-circle span {
    font-family:
        var(--history-display);

    font-size: 35px;
}


.history-community-marker i {
    position: absolute;

    left: 62px;
    top: 125px;
    bottom: 0;

    width: 1px;

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


.history-community-copy h2 {
    max-width: 730px;

    margin: 0;

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

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

    font-size:
        clamp(
            39px,
            4.7vw,
            56px
        );

    font-weight: 600;

    line-height: 1.08;

    letter-spacing: -.03em;
}


.history-community-copy p {
    max-width: 750px;

    margin:
        23px
        0
        0;

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

    font-size: 15px;

    line-height: 1.84;
}


/* ==========================================================
   PURPOSE
   ========================================================== */

.history-purpose {
    padding:
        115px
        0
        125px;

    background:
        var(--history-soft);
}


.history-purpose-heading {
    display: grid;

    grid-template-columns:
        minmax(170px, .35fr)
        minmax(0, 1.65fr);

    gap: 90px;

    margin-bottom: 65px;
}


.history-purpose-title h2 {
    max-width: 780px;

    margin: 0;

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

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

    font-size:
        clamp(
            39px,
            4.8vw,
            57px
        );

    font-weight: 600;

    line-height: 1.08;

    letter-spacing: -.03em;
}


/* ==========================================================
   PURPOSE STORY
   ========================================================== */

.history-purpose-story {
    max-width: 980px;

    margin-left: auto;

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


.history-purpose-block {
    display: grid;

    grid-template-columns:
        220px
        1fr;

    gap: 60px;

    padding:
        42px
        0;

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


.history-purpose-block > span {
    color:
        var(--history-green);

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

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


.history-purpose-block p {
    margin:
        0
        0
        18px;

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

    font-size: 14px;

    line-height: 1.82;
}


.history-purpose-block p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   FUTURE STATEMENT
   ========================================================== */

.history-future {
    padding:
        120px
        0;

    color: #fff;

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


.history-future-grid {
    display: grid;

    grid-template-columns:
        190px
        1fr;

    gap: 75px;
}


.history-future-year {
    display: flex;
    flex-direction: column;

    gap: 12px;
}


.history-future-year span {
    color:
        rgba(255,255,255,.55);

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

    letter-spacing: .1em;

    text-transform: uppercase;
}


.history-future-year i {
    width: 1px;
    height: 80px;

    margin-left: 4px;

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


.history-future blockquote {
    max-width: 900px;

    margin: 0;

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

    font-size:
        clamp(
            40px,
            5.2vw,
            62px
        );

    font-weight: 600;

    line-height: 1.1;

    letter-spacing: -.035em;
}


.history-future blockquote span {
    color:
        #86D5B2;
}


/* ==========================================================
   NEXT
   ========================================================== */

.history-next {
    padding:
        95px
        0;

    background:
        var(--history-cream);
}


.history-next-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 60px;
}


.history-next-inner > div > span {
    display: block;

    margin-bottom: 12px;

    color:
        var(--history-green);

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

    letter-spacing: .1em;

    text-transform: uppercase;
}


.history-next h2 {
    max-width: 670px;

    margin: 0;

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

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

    font-size:
        clamp(
            35px,
            4.4vw,
            50px
        );

    font-weight: 600;

    line-height: 1.1;

    letter-spacing: -.03em;
}


.history-next a {
    flex: none;

    min-height: 48px;

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

    gap: 9px;

    padding:
        0
        18px;

    color: #fff;

    background:
        var(--history-green);

    border-radius: 4px;

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


.history-next a
.history-icon {
    width: 14px;
    height: 14px;

    transition:
        transform
        180ms ease;
}


.history-next a:hover
.history-icon {
    transform:
        translateX(4px);
}


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

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

    transform:
        translateY(17px);

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


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

    transform: none;
}


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

@media (max-width: 1000px) {

    .history-hero-grid {
        grid-template-columns: 1fr;

        gap: 55px;
    }


    .history-time-stage {
        width: min(
            100%,
            520px
        );

        justify-self: start;
    }


    .history-section-grid,
    .history-archive-heading,
    .history-purpose-heading {
        grid-template-columns:
            140px
            1fr;

        gap: 50px;
    }


    .history-founding-grid {
        grid-template-columns:
            .55fr
            1.45fr;

        gap: 55px;
    }


    .history-community-grid {
        grid-template-columns:
            170px
            1fr;

        gap: 50px;
    }

}


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

@media (max-width: 720px) {

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


    /* hero */

    .history-hero {
        padding:
            65px
            0
            55px;
    }


    .history-hero h1 {
        font-size:
            clamp(
                44px,
                12.5vw,
                61px
            );
    }


    .history-hero-lead {
        font-size: 15px;
    }


    .history-time-stage {
        width: 100%;
    }


    .history-time-core {
        width: 145px;
        height: 145px;
    }


    .history-time-core strong {
        font-size: 46px;
    }


    .history-time-orbit--one {
        width: 220px;
        height: 220px;
    }


    .history-time-orbit--two {
        width: 290px;
        height: 290px;
    }


    .history-time-orbit--three {
        width: 350px;
        height: 350px;
    }


    /* sections */

    .history-opening,
    .history-founding,
    .history-archive,
    .history-beacon,
    .history-community,
    .history-purpose,
    .history-future {
        padding:
            80px
            0;
    }


    .history-section-grid,
    .history-archive-heading,
    .history-purpose-heading,
    .history-community-grid,
    .history-founding-grid,
    .history-future-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }


    .history-founding-year {
        padding-bottom: 35px;

        border-right: 0;

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


    .history-founding-year strong {
        font-size: 95px;
    }


    /* gallery */

    .history-gallery-stage {
        height:
            clamp(
                360px,
                85vw,
                520px
            );
    }


    .history-gallery-slide figcaption {
        left: 20px;
        right: 20px;
        bottom: 22px;
    }


    .history-gallery-slide figcaption strong {
        font-size:
            clamp(
                24px,
                7vw,
                34px
            );
    }


    .history-gallery-controls {
        align-items: flex-start;
    }


    .history-gallery-thumbs {
        display: flex;

        overflow-x: auto;

        padding-bottom: 5px;

        scrollbar-width: none;
    }


    .history-gallery-thumbs::-webkit-scrollbar {
        display: none;
    }


    .history-gallery-thumb {
        min-width: 110px;
        height: 82px;
    }


    /* principles */

    .history-principles {
        grid-template-columns: 1fr;
    }


    .history-principles > div,
    .history-principles > div:first-child {
        min-height: 90px;

        padding:
            22px
            0;

        border-right: 0;

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


    .history-principles > div:last-child {
        border-bottom: 0;
    }


    .history-principles strong {
        margin-top: 10px;
    }


    /* community */

    .history-community-marker {
        min-height: 150px;
    }


    .history-community-circle {
        width: 100px;
        height: 100px;
    }


    .history-community-marker i {
        left: 49px;
        top: 100px;
    }


    /* purpose */

    .history-purpose-story {
        margin-left: 0;
    }


    .history-purpose-block {
        grid-template-columns: 1fr;

        gap: 16px;
    }


    /* future */

    .history-future-year {
        flex-direction: row;
        align-items: center;
    }


    .history-future-year i {
        width: 55px;
        height: 1px;

        margin: 0;
    }


    /* next */

    .history-next {
        padding:
            75px
            0;
    }


    .history-next-inner {
        display: block;
    }


    .history-next a {
        margin-top: 28px;
    }

}


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

@media (max-width: 460px) {

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


    .history-time-word {
        display: none;
    }


    .history-time-stage {
        max-height: 360px;
    }


    .history-gallery-controls {
        display: grid;

        gap: 15px;
    }


    .history-gallery-play {
        width: 100%;

        justify-content: center;
    }


    .history-next a {
        width: 100%;

        justify-content: center;
    }

}


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

html,
body {
    height: auto !important;

    min-height: 100% !important;

    overflow-y: auto !important;

    overflow-x: hidden;
}


.history-page {
    height: auto !important;

    max-height: none !important;

    overflow: visible !important;
}


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

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

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

        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .01ms !important;
    }


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

        transform: none;
    }

}

/* ==========================================================
   HORMUUD UNIVERSITY — OUR HISTORY DARK MODE 2026
   ========================================================== */

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

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

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

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

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

    --history-gold: var(--history-blue);
    --history-gold-light: var(--history-blue-dark);

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

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

html[data-theme="dark"] .history-page .history-hero h1,
html[data-theme="dark"] .history-page .history-opening-content h2,
html[data-theme="dark"] .history-page .history-archive-heading-copy h2,
html[data-theme="dark"] .history-page .history-community-copy h2,
html[data-theme="dark"] .history-page .history-purpose-title h2 {
    color: var(--history-green-dark) !important;
}

html[data-theme="dark"] .history-page .history-hero-lead,
html[data-theme="dark"] .history-page .history-opening-content > p,
html[data-theme="dark"] .history-page .history-archive-heading-copy p,
html[data-theme="dark"] .history-page .history-community-copy p,
html[data-theme="dark"] .history-page .history-purpose-block p {
    color: var(--history-text-soft) !important;
}

/* Time capsule remains a strong archival field. */
html[data-theme="dark"] .history-page .history-time-stage {
    background: #09100C !important;
    border-color: #315944 !important;
    box-shadow: 0 24px 60px rgba(0,0,0,.28) !important;
}
html[data-theme="dark"] .history-page .history-time-stage::before,
html[data-theme="dark"] .history-page .history-time-orbit span {
    background: #0F6843 !important;
}
html[data-theme="dark"] .history-page .history-time-core span {
    color: #86D5B2 !important;
}
html[data-theme="dark"] .history-page .history-time-orbit {
    border-color: rgba(134,213,178,.20) !important;
}
html[data-theme="dark"] .history-page .history-time-coordinate,
html[data-theme="dark"] .history-page .history-floating-word {
    color: rgba(237,243,239,.48) !important;
}

html[data-theme="dark"] .history-page .history-opening,
html[data-theme="dark"] .history-page .history-community {
    background: #151E18 !important;
}
html[data-theme="dark"] .history-page .history-archive {
    background: #0E1511 !important;
}
html[data-theme="dark"] .history-page .history-purpose {
    background: #121B16 !important;
}

/* Strong historical chapters. */
html[data-theme="dark"] .history-page .history-founding,
html[data-theme="dark"] .history-page .history-beacon,
html[data-theme="dark"] .history-page .history-future {
    color: #F4F7F5 !important;
    background: #0B3322 !important;
}
html[data-theme="dark"] .history-page .history-section-kicker--dark,
html[data-theme="dark"] .history-page .history-founding-copy .history-section-kicker {
    color: #86D5B2 !important;
}
html[data-theme="dark"] .history-page .history-section-meta--dark > span {
    color: #97D1EC !important;
}

/* Visual archive. */
html[data-theme="dark"] .history-page .history-gallery-sheet {
    background: #18241D !important;
    border-color: var(--history-line-dark) !important;
}
html[data-theme="dark"] .history-page .history-gallery-slides,
html[data-theme="dark"] .history-page .history-gallery-thumb {
    background: #151E18 !important;
    border-color: var(--history-line-dark) !important;
}
html[data-theme="dark"] .history-page .history-gallery-slide img,
html[data-theme="dark"] .history-page .history-gallery-thumb img {
    filter: none !important;
}
html[data-theme="dark"] .history-page .history-gallery-progress span {
    background: var(--history-blue) !important;
}
html[data-theme="dark"] .history-page .history-gallery-navigation button {
    color: #F4F7F5 !important;
}
html[data-theme="dark"] .history-page .history-gallery-navigation button:hover,
html[data-theme="dark"] .history-page .history-gallery-navigation button:focus-visible {
    color: #0E1511 !important;
    background: var(--history-green) !important;
}

/* Purpose / next. */
html[data-theme="dark"] .history-page .history-purpose-story,
html[data-theme="dark"] .history-page .history-purpose-block {
    border-color: var(--history-line-dark) !important;
}
html[data-theme="dark"] .history-page .history-purpose-block > span {
    color: var(--history-green) !important;
}
html[data-theme="dark"] .history-page .history-community-circle {
    color: #0E1511 !important;
    background: var(--history-green) !important;
}
html[data-theme="dark"] .history-page .history-community-marker i {
    background: var(--history-line-dark) !important;
}
html[data-theme="dark"] .history-page .history-next {
    background: #18241D !important;
}
html[data-theme="dark"] .history-page .history-next a {
    color: #0E1511 !important;
    background: var(--history-green) !important;
}

.history-page,
.history-page .history-hero,
.history-page .history-time-stage,
.history-page .history-opening,
.history-page .history-archive,
.history-page .history-gallery-sheet,
.history-page .history-gallery-thumb,
.history-page .history-community,
.history-page .history-purpose,
.history-page .history-next {
    transition: background-color .24s ease, color .24s ease, border-color .24s ease;
}

@media (prefers-reduced-motion: reduce) {
    .history-page,
    .history-page .history-hero,
    .history-page .history-time-stage,
    .history-page .history-opening,
    .history-page .history-archive,
    .history-page .history-gallery-sheet,
    .history-page .history-gallery-thumb,
    .history-page .history-community,
    .history-page .history-purpose,
    .history-page .history-next {
        transition: none !important;
    }
}
