/*
 * Miras homepage, Figma 26.08 (node 1:2).
 * This file is intentionally scoped to the front page and loaded after main.css.
 */

.miras-main:has(.miras-home-hero) {
    overflow: clip;
    background: #fcfdfd;
}

.miras-home-container {
    position: relative;
    width: min(1280px, calc(100% - 160px));
    margin-inline: auto;
}

.miras-home-section-heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.miras-home-section-heading h2,
.miras-home-stats h2,
.miras-home-academic h2,
.miras-home-universities h2,
.miras-home-life h2,
.miras-home-recognitions h2 {
    margin: 0;
    color: #153052;
    font-size: clamp(34px, 2.78vw, 40px);
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.miras-home-section-heading p {
    max-width: 1280px;
    margin: 0;
    color: #231f20;
    font-size: 20px;
    line-height: 1.2;
}

/* Hero */

.miras-home-hero {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--miras-shell-header-height, 75px) - var(--miras-hero-admin-offset, 0px));
    height: calc(100dvh - var(--miras-shell-header-height, 75px) - var(--miras-hero-admin-offset, 0px));
    min-height: 0;
    overflow: hidden;
    color: #fff;
    background: #153052;
    isolation: isolate;
}

.admin-bar .miras-home-hero {
    --miras-hero-admin-offset: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 782px) {
    .admin-bar .miras-home-hero {
        --miras-hero-admin-offset: var(--wp-admin--admin-bar--height, 46px);
    }
}

.miras-home-hero-slides,
.miras-home-hero-slide,
.miras-home-hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.miras-home-hero-slides {
    z-index: 0;
}

.miras-home-hero-slide {
    z-index: 0;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 700ms, opacity 700ms ease;
}

.miras-home-hero-slide.is-active {
    z-index: 1;
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.miras-home-hero-slide img {
    max-width: none;
    object-fit: cover;
}

.miras-home-hero-overlay {
    position: absolute;
    z-index: 2;
    inset: 0;
    background:
        linear-gradient(0deg, rgb(1 13 31 / 89%) 0%, rgb(2 17 39 / 63%) 20%, rgb(2 17 39 / 16%) 40%, rgb(2 17 39 / 12%) 65%),
        linear-gradient(180deg, rgb(1 13 31 / 19%), rgb(1 13 31 / 18%));
    pointer-events: none;
}

.miras-home-hero-copy {
    position: absolute;
    z-index: 3;
    right: max(5.55vw, calc((100% - 1280px) / 2));
    bottom: 106px;
    left: max(5.55vw, calc((100% - 1280px) / 2));
}

.miras-home-hero-copy h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(52px, 5vw, 72px);
    font-weight: 720;
    letter-spacing: -0.035em;
    line-height: 1.05;
    white-space: nowrap;
}

.miras-home-hero-copy h1 span {
    color: #ffd03a;
}

.miras-home-hero-copy p {
    margin: 2px 0 0;
    color: rgb(255 255 255 / 73%);
    font-size: clamp(24px, 2.22vw, 32px);
    line-height: 1.2;
}

.miras-home-hero-pagination {
    position: absolute;
    z-index: 3;
    right: max(5.55vw, calc((100% - 1280px) / 2));
    bottom: 32px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.miras-home-hero-dot,
.miras-home-hero-rotation {
    appearance: none;
    padding: 0;
    border: 0;
    cursor: pointer;
}

.miras-home-hero-dot {
    position: relative;
    width: 24px;
    height: 24px;
    background: transparent;
    transition: width 240ms ease;
}

.miras-home-hero-dot::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgb(255 255 255 / 46%);
    content: "";
    transform: translate(-50%, -50%);
    transition: width 240ms ease, background-color 240ms ease;
}

.miras-home-hero-dot.is-active {
    width: 55px;
    background: transparent;
}

.miras-home-hero-dot.is-active::before {
    width: 43px;
    background: linear-gradient(90deg, #f5f5f5, #9dbfe9);
}

.miras-home-hero-dot:focus-visible,
.miras-home-hero-rotation:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.miras-home-hero-rotation {
    position: relative;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    margin-right: 8px;
    border: 1px solid rgb(255 255 255 / 45%);
    border-radius: 50%;
    color: #fff;
    background: rgb(5 27 64 / 48%);
    box-shadow: 0 8px 24px rgb(1 13 31 / 18%);
    backdrop-filter: blur(8px);
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.miras-home-hero-rotation:hover,
.miras-home-hero-rotation:focus-visible {
    border-color: rgb(255 208 58 / 80%);
    background: rgb(5 27 64 / 72%);
    transform: translateY(-1px);
}

.miras-home-hero-rotation::before {
    content: none;
}

.miras-home-hero-rotation span::before,
.miras-home-hero-rotation span::after {
    position: absolute;
    top: 13px;
    width: 2px;
    height: 12px;
    border-radius: 2px;
    background: #fff;
    content: "";
}

.miras-home-hero-rotation span::before { left: 14px; }
.miras-home-hero-rotation span::after { right: 14px; }

.miras-home-hero-rotation[data-paused="true"] span::before {
    top: 11px;
    left: 15px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #fff;
    border-radius: 0;
    background: transparent;
}

.miras-home-hero-rotation[data-paused="true"] span::after { display: none; }

/* Programmes */

.miras-home-programs {
    position: relative;
    min-height: 528px;
    padding: 60px 0;
    overflow: hidden;
    background: #fff;
}

.miras-home-programs::before {
    position: absolute;
    inset: 0;
    background: url("../images/home-2026/figma/programmes-wavy-lines.webp") center / cover no-repeat;
    content: "";
    mix-blend-mode: difference;
    opacity: 0.02;
    pointer-events: none;
}

.miras-home-programs .miras-home-container { z-index: 1; }

.miras-home-programs .miras-home-section-heading p {
    font-size: 18px;
    line-height: 24px;
}

.miras-home-program-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.miras-home-program-card {
    position: relative;
    min-width: 0;
    height: 280px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid #fff;
    border-radius: 16px;
    background: #fdfdfd;
    isolation: isolate;
    text-decoration: none;
}

.miras-home-program-card::before,
.miras-home-program-card::after {
    position: absolute;
    z-index: 2;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
    pointer-events: none;
    transition: opacity 240ms ease;
}

.miras-home-program-card::before {
    top: -8px;
    right: -182px;
    width: 434px;
    height: 434px;
    background-image: url("../images/home-2026/figma/programmes-ellipse-large.svg");
}

.miras-home-program-card::after {
    bottom: -118px;
    left: -88px;
    width: 242px;
    height: 242px;
    background-image: url("../images/home-2026/figma/programmes-ellipse-small.svg");
}

.miras-home-program-media,
.miras-home-program-media::after {
    position: absolute;
    inset: 0;
}

.miras-home-program-media img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.miras-home-program-media::after {
    background: linear-gradient(5deg, #fff 18%, rgb(255 255 255 / 72%) 30%, rgb(255 255 255 / 8%) 52%, transparent 68%);
    content: "";
    transition: opacity 240ms ease;
}

.miras-home-program-card:nth-child(2) .miras-home-program-media img { object-position: 50% 42%; }
.miras-home-program-card:nth-child(3) .miras-home-program-media img { object-position: 50% 34%; }

.miras-home-program-content {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px 16px 16px 25px;
    color: #234680;
    isolation: isolate;
}

.miras-home-program-content::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, rgb(21 48 82 / 4%) 8%, rgb(21 48 82 / 76%) 53%, #153052 100%);
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms ease;
}

.miras-home-program-meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    transition: color 240ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.miras-home-program-meta strong {
    font-size: 25px;
    font-weight: 650;
    line-height: 1.12;
    transition: color 240ms ease;
}

.miras-home-program-meta span {
    flex: none;
    font-size: 20px;
    line-height: 1.2;
    white-space: nowrap;
}

.miras-home-program-description {
    display: block;
    max-width: 360px;
    max-height: 0;
    margin: 0;
    overflow: hidden;
    color: rgb(255 255 255 / 88%);
    font-size: 15px;
    line-height: 1.35;
    opacity: 0;
    transform: translateY(10px);
    transition:
        max-height 360ms cubic-bezier(0.22, 1, 0.36, 1),
        margin-top 320ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 200ms ease,
        transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.miras-home-program-card:hover .miras-home-program-media img,
.miras-home-program-card:focus-visible .miras-home-program-media img,
.miras-home-program-card:focus-within .miras-home-program-media img {
    transform: scale(1.035);
}

.miras-home-program-card:hover .miras-home-program-media::after,
.miras-home-program-card:focus-visible .miras-home-program-media::after,
.miras-home-program-card:focus-within .miras-home-program-media::after {
    opacity: 0;
}

.miras-home-program-card:hover::before,
.miras-home-program-card:hover::after,
.miras-home-program-card:focus-visible::before,
.miras-home-program-card:focus-visible::after,
.miras-home-program-card:focus-within::before,
.miras-home-program-card:focus-within::after {
    opacity: 0.1;
}

.miras-home-program-card:hover .miras-home-program-content::before,
.miras-home-program-card:focus-visible .miras-home-program-content::before,
.miras-home-program-card:focus-within .miras-home-program-content::before {
    opacity: 1;
}

.miras-home-program-card:hover .miras-home-program-meta,
.miras-home-program-card:focus-visible .miras-home-program-meta,
.miras-home-program-card:focus-within .miras-home-program-meta {
    color: #fff;
    transform: translateY(-1px);
}

.miras-home-program-card:hover .miras-home-program-meta strong,
.miras-home-program-card:focus-visible .miras-home-program-meta strong,
.miras-home-program-card:focus-within .miras-home-program-meta strong {
    color: #ffd03a;
}

.miras-home-program-card:hover .miras-home-program-description,
.miras-home-program-card:focus-visible .miras-home-program-description,
.miras-home-program-card:focus-within .miras-home-program-description {
    max-height: 6em;
    margin-top: 10px;
    opacity: 1;
    transform: translateY(0);
}

.miras-home-program-card:focus-visible {
    outline: 3px solid #f6bc36;
    outline-offset: 3px;
}

/* Why Miras */

.miras-home-why {
    position: relative;
    min-height: 748px;
    padding: 65px 0 32px;
    overflow: hidden;
    background:
        url("../images/home-2026/figma/why-miras-wordmark.svg") right 5% top 46px / min(43vw, 597px) auto no-repeat,
        radial-gradient(ellipse at right center, #fffde8 0%, rgb(255 253 232 / 0%) 72%) right -100px top -145px / min(65vw, 700px) 400px no-repeat,
        #fdfdfd;
}

.miras-home-why::after {
    content: none;
}

.miras-home-section-heading--accent h2 {
    font-size: clamp(40px, 3.34vw, 48px);
}

.miras-home-section-heading--accent::after {
    order: 1;
    width: 64px;
    height: 2px;
    margin-top: 8px;
    background: #d4a843;
    content: "";
}

.miras-home-section-heading--accent p {
    order: 2;
    color: rgb(21 48 82 / 90%);
    font-size: 20px;
    font-weight: 350;
    line-height: 1.1;
}

.miras-home-why-layout {
    display: grid;
    grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
    gap: clamp(16px, 1.25vw, 24px);
    min-height: 479px;
    align-items: start;
    margin-top: 33px;
}

.miras-home-why-media {
    position: relative;
    width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 558 / 479;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #f3f5f7;
}

.miras-home-why-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.miras-home-why-media a {
    position: absolute;
    bottom: 27px;
    left: 50%;
    display: inline-flex;
    width: max-content;
    max-width: calc(100% - 32px);
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    color: #fff;
    background: #021b47;
    font-size: 14px;
    font-weight: 560;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-align: center;
    text-transform: uppercase;
    transform: translateX(-50%);
    white-space: normal;
    transition: background-color 180ms ease, transform 180ms ease;
}

.miras-home-why-media a:hover,
.miras-home-why-media a:focus-visible {
    background: #0d46a6;
    transform: translateX(-50%) translateY(-2px);
}

.miras-home-why-accordion {
    width: 100%;
    min-width: 0;
    min-height: 479px;
    overflow: visible;
    border-radius: 12px;
}

.miras-home-why-item {
    position: relative;
    min-height: 0;
    border: 1px solid transparent;
    border-radius: 12px;
}

.miras-home-why-item + .miras-home-why-item::before {
    position: absolute;
    top: -1px;
    right: 12px;
    left: 12px;
    height: 1px;
    background: rgb(21 48 82 / 10%);
    pointer-events: none;
    content: "";
}

/* Never draw a separator against either edge of the expanded outline. */
.miras-home-why-item.is-open::before,
.miras-home-why-item.is-open + .miras-home-why-item::before {
    opacity: 0;
}

.miras-home-why-item.is-open {
    border-color: rgb(76 136 219 / 22%);
    background:
        url("../images/home-2026/figma/why-ellipse-card-small.svg") right -86px top -108px / 284px 284px no-repeat,
        url("../images/home-2026/figma/why-ellipse-card-large.svg") right -242px bottom -310px / 436px 436px no-repeat,
        linear-gradient(115deg, #f6f6f6 55%, #edf8ff 100%);
    box-shadow: 0 14px 38px rgb(21 48 82 / 6%);
}

.miras-home-why-item h3 { margin: 0; }

.miras-home-why-item button {
    display: grid;
    width: 100%;
    min-height: 84px;
    grid-template-columns: 32px minmax(0, 1fr) 24px;
    align-items: start;
    gap: 8px;
    padding: 15px 12px 11px;
    border: 0;
    color: #153052;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: color 180ms ease;
}

.miras-home-why-item:not(.is-open) button:hover,
.miras-home-why-item:not(.is-open) button:focus-visible {
    color: #0d46a6;
}

.miras-home-why-item button:focus-visible {
    border-radius: 12px;
    outline: 3px solid #4c88db;
    outline-offset: -3px;
}

.miras-home-why-number {
    color: #4c88db;
    font-size: 24px;
    font-weight: 550;
    line-height: 32px;
    transition: color 160ms ease;
}

.miras-home-why-item.is-open .miras-home-why-number {
    color: #153052;
}

.miras-home-why-label {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.miras-home-why-label strong {
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
}

.miras-home-why-label small {
    color: #6c6c6c;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.025em;
    line-height: 20px;
}

.miras-home-why-sign {
    position: relative;
    width: 18px;
    height: 18px;
    margin-top: 4px;
    border: 1px solid #4c88db;
    border-radius: 50%;
    transition: border-color 160ms ease, background-color 160ms ease;
}

.miras-home-why-sign::before,
.miras-home-why-sign::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 1px;
    background: #4c88db;
    content: "";
    transform: translate(-50%, -50%);
    transition: background-color 160ms ease, opacity 160ms ease;
}

.miras-home-why-sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.miras-home-why-item.is-open .miras-home-why-sign {
    border-color: #4c88db;
    background: #4c88db;
}
.miras-home-why-item.is-open .miras-home-why-sign::before,
.miras-home-why-item.is-open .miras-home-why-sign::after { background: #fff; }
.miras-home-why-item.is-open .miras-home-why-sign::after {
    opacity: 0;
}

.miras-home-why-panel {
    display: grid;
    overflow: hidden;
    grid-template-rows: 0fr;
    margin: 0 26px 0 52px;
    opacity: 0;
    visibility: hidden;
    transition:
        grid-template-rows 200ms var(--miras-ease),
        opacity 200ms var(--miras-ease),
        visibility 0s linear 200ms;
}

.miras-home-why-item.is-open .miras-home-why-panel {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.miras-home-why-panel-inner {
    min-height: 0;
    overflow: hidden;
}

.miras-home-why-panel p {
    padding-bottom: 24px;
    margin: 0;
    color: rgb(21 48 82 / 90%);
    font-size: 16px;
    font-weight: 350;
    line-height: 1.375;
}

/* Statistics */

.miras-home-stats {
    position: relative;
    min-height: 1009px;
    padding: 48px 0 91px;
    overflow: hidden;
    background:
        url("../images/home-2026/figma/stats-ellipse-right.svg") calc(50% + 340px) -220px / 598px 598px no-repeat,
        url("../images/home-2026/figma/stats-ellipse-left.svg") calc(50% - 1000px) 520px / 746px 746px no-repeat,
        #fcfdfd;
}

.miras-home-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 238px 249px 216px;
    gap: 20px;
    margin-top: 24px;
}

.miras-home-stat {
    position: relative;
    min-width: 0;
    padding: 32px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    text-align: left;
}

.miras-home-stat strong {
    display: block;
    color: #073171;
    font-size: 60px;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1;
}

.miras-home-stat h3 {
    margin: 16px 0 0;
    color: #153052;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.4;
    text-transform: uppercase;
}

.miras-home-stat p {
    margin: 12px 0 0;
    color: #0a0a0a;
    font-size: 16px;
    line-height: 1.375;
}

.miras-home-stat-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.miras-home-stat-icon {
    display: block;
    width: auto;
    max-width: 32px;
    height: auto;
    max-height: 32px;
    flex: 0 0 auto;
}

.miras-home-stat-icon--enrollment {
    width: 32px;
    height: 28px;
}

.miras-home-stat--feature {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    border: 0;
    color: #fff;
    background: #153052;
}

.miras-home-stat--feature > img,
.miras-home-stat-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.miras-home-stat--feature > img { object-fit: cover; }
.miras-home-stat-shade { background: linear-gradient(0deg, rgb(21 48 82 / 74%), rgb(21 48 82 / 4%) 62%); }
.miras-home-stat--feature > div { position: relative; z-index: 1; }
.miras-home-stat--feature strong { color: #fff; font-size: 96px; line-height: 0.9; }
.miras-home-stat--feature h3 { display: inline-block; margin: 0 0 0 8px; color: #fff; font-weight: 500; }
.miras-home-stat--feature p { color: rgb(255 255 255 / 90%); }

.miras-home-stat--winners { grid-column: 3; grid-row: 1; color: #fff; border: 0; background: linear-gradient(133deg, #153052 7%, #2f6cb8); }
.miras-home-stat--graduates { grid-column: 4; grid-row: 1; color: #fff; border: 0; background: linear-gradient(135deg, #c9b208 5%, #ffcf4c); }
.miras-home-stat--nationalities { grid-column: 3; grid-row: 2; background: linear-gradient(#e2f5ff, #fff); }
.miras-home-stat--altyn { grid-column: 4; grid-row: 2; background: linear-gradient(#feffe2, #fff); }
.miras-home-stat--ib { grid-column: 3; grid-row: 3; background: linear-gradient(165deg, #fff, #f5fdff); }
.miras-home-stat--grants { grid-column: 4; grid-row: 3; padding-block: 30px; background: linear-gradient(25deg, #fff 34%, #fefff5 82%); }

.miras-home-stat--winners strong,
.miras-home-stat--winners h3,
.miras-home-stat--winners p,
.miras-home-stat--graduates strong,
.miras-home-stat--graduates h3,
.miras-home-stat--graduates p { color: #fff; }

.miras-home-stat--winners p,
.miras-home-stat--graduates p { color: rgb(255 255 255 / 82%); }

.miras-home-stat--enrollment {
    grid-column: 1 / span 2;
    grid-row: 3;
    padding: 32px;
    background: radial-gradient(circle at 60% 20%, #fff, #f8fbff 88%);
}

.miras-home-stat--enrollment .miras-home-stat-top > div {
    display: block;
}

.miras-home-stat--enrollment strong { font-size: 68px; }
.miras-home-stat--enrollment h3 { margin: 8px 0 0; }
.miras-home-stat--enrollment p { margin-top: 8px; }

/* Academic excellence */

.miras-home-academic {
    position: relative;
    isolation: isolate;
    min-height: 538px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    border: 1px solid #ebebeb;
    background:
        url("../images/home-2026/figma/academic-ellipse-small.svg") calc(50% - 1019px) -179px / 796px 796px no-repeat,
        url("../images/home-2026/figma/academic-ellipse-large.svg") calc(50% - 1063px) 117px / 930px 930px no-repeat,
        url("../images/home-2026/figma/academic-ellipse-large.svg") calc(50% + 100px) -266px / 930px 930px no-repeat,
        #051b40;
}

.miras-home-academic::before {
    content: none;
}

.miras-home-academic::after {
    position: absolute;
    z-index: 0;
    top: 217px;
    left: calc(50% - 518px);
    width: 1035px;
    height: 517px;
    /* Opaque silhouette: decorative glows cannot tint or cross the logo. */
    background: #1c3458;
    mask: url("../images/home-2026/figma/academic-miras-symbol.svg") center / contain no-repeat;
    content: "";
    pointer-events: none;
}

.miras-home-academic .miras-home-container { z-index: 1; padding-inline: 48px; }

.miras-home-academic header { text-align: center; }
.miras-home-academic h2 { color: #fff; }
.miras-home-academic header p { margin: 8px 0 0; color: rgb(200 221 248 / 70%); font-size: 16px; line-height: 1.375; }

.miras-home-academic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.miras-home-academic-grid article {
    min-width: 0;
    padding: 0 32px;
    text-align: center;
}

.miras-home-academic-grid article + article { border-left: 1px solid rgb(0 6 93 / 10%); }

.miras-home-academic-grid strong {
    display: block;
    color: #fff;
    font-size: clamp(72px, 6.67vw, 96px);
    font-weight: 750;
    letter-spacing: -0.04em;
    line-height: 1;
}

.miras-home-academic-grid h3 { margin: 12px 0 0; color: #fff; font-size: 20px; font-weight: 650; line-height: 1.4; }
.miras-home-academic-grid p { margin: 8px 0 0; color: rgb(200 221 248 / 70%); font-size: 16px; line-height: 1.375; }

/* Graduate universities */

.miras-home-universities {
    position: relative;
    min-height: 468px;
    padding: 89px 0 64px;
    overflow: hidden;
    background: #fcfdfd;
}

.miras-home-universities-heading {
    position: relative;
    z-index: 2;
    display: grid;
    width: min(1184px, calc(100% - 160px));
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    margin-inline: auto;
    text-align: center;
}

.miras-home-universities-heading h2 { grid-column: 2; }
.miras-home-universities-heading h2 { font-size: clamp(36px, 3vw, 48px); }

.miras-home-university-motion {
    position: absolute;
    top: 7px;
    right: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgb(21 48 82 / 18%);
    border-radius: 50%;
    color: #153052;
    background: rgb(255 255 255 / 72%);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.miras-home-university-motion:focus-visible {
    opacity: 1;
    pointer-events: auto;
}

.miras-home-university-motion span::before,
.miras-home-university-motion span::after {
    position: absolute;
    top: 10px;
    width: 2px;
    height: 10px;
    border-radius: 2px;
    background: currentcolor;
    content: "";
}

.miras-home-university-motion span::before { left: 11px; }
.miras-home-university-motion span::after { right: 11px; }

.miras-home-university-motion[data-paused="true"] span::before {
    top: 9px;
    left: 12px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid currentcolor;
    border-radius: 0;
    background: transparent;
}

.miras-home-university-motion[data-paused="true"] span::after { display: none; }

.miras-home-university-motion:hover,
.miras-home-university-motion:focus-visible {
    color: #0d46a6;
    border-color: #4c88db;
    background: #fff;
}

.miras-home-university-motion[hidden] { display: none; }

.miras-home-universities-watermark {
    position: absolute;
    top: 76px;
    left: 50%;
    display: block;
    width: calc(100% - 32px);
    height: auto;
    max-width: 1338px;
    color: #f1f6ff;
    font-size: clamp(20px, 6.4vw, 100px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.015em;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    transform: translateX(-50%);
}

.miras-home-universities-dots {
    position: absolute;
    top: -21px;
    left: 50%;
    display: block;
    width: 422px;
    height: 296px;
    max-width: none;
    pointer-events: none;
    transform: translateX(-650px);
}

.miras-home-logo-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 62px;
}

.miras-home-logo-viewport {
    position: relative;
    width: 100%;
    /* Reserve room for a native horizontal scrollbar during keyboard focus. */
    height: 116px;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.miras-home-logo-track {
    display: flex;
    width: max-content;
    animation: miras-home-logo-scroll 55s linear infinite;
    will-change: auto;
}

.miras-home-logo-track--reverse { animation-direction: reverse; }

.miras-home-logo-group {
    display: flex;
    flex: none;
    align-items: center;
}

.miras-home-university-logo {
    --miras-logo-gap: 80px;

    position: relative;
    display: grid;
    grid-template-rows: 72px auto;
    row-gap: 10px;
    width: max-content;
    min-width: var(--miras-logo-width, 180px);
    height: auto;
    flex: none;
    margin: 0 var(--miras-logo-gap) 0 0;
    padding: 0;
}

.miras-home-university-logo-link {
    display: flex;
    width: 100%;
    height: 72px;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 200ms ease;
}

.miras-home-university-logo img { width: auto; max-width: var(--miras-logo-width, 180px); height: auto; max-height: 72px; }

.miras-home-university-logo figcaption {
    position: static;
    width: max-content;
    min-width: 100%;
    max-width: none;
    margin: 0;
    color: #153052;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 180ms ease;
}

.miras-home-university-logo:hover .miras-home-university-logo-link,
.miras-home-university-logo:focus-within .miras-home-university-logo-link { opacity: 1; }
.miras-home-university-logo:hover figcaption,
.miras-home-university-logo:focus-within figcaption { opacity: 1; }

.miras-home-logo-rows:focus-within .miras-home-logo-track {
    animation-play-state: paused;
}

.miras-home-logo-rows:focus-within .miras-home-logo-viewport {
    overflow-x: auto;
    mask-image: none;
}

@keyframes miras-home-logo-scroll { to { transform: translateX(-50%); } }

/* Life at Miras */

.miras-home-life {
    position: relative;
    min-height: 642px;
    padding: 56px 0 64px;
    overflow: hidden;
    background:
        url("../images/home-2026/figma/life-dots.svg") calc(50% + 243px) 26px / 422px 296px no-repeat,
        url("../images/home-2026/figma/life-ellipse-right.svg") calc(50% + 83px) 289px / 598px 598px no-repeat,
        url("../images/home-2026/figma/life-ellipse-left.svg") calc(50% - 1039px) 152px / 806px 806px no-repeat,
        #fafafa;
}

.miras-home-life::before {
    position: absolute;
    inset: 0;
    background: url("../images/home-2026/figma/life-wavy-lines.webp") center / cover no-repeat;
    content: "";
    mix-blend-mode: difference;
    opacity: 0.02;
    pointer-events: none;
}

.miras-home-life > * { position: relative; z-index: 1; }

.miras-home-life-heading {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(1184px, calc(100% - 160px));
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    margin-inline: auto;
    text-align: center;
}

.miras-home-life-heading > div { grid-column: 2; }

.miras-home-life-heading p { margin: 8px 0 0; color: rgb(21 48 82 / 70%); font-size: 16px; line-height: 1.375; }

.miras-home-life-motion {
    position: absolute;
    right: 0;
    bottom: -50px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgb(21 48 82 / 18%);
    border-radius: 50%;
    color: #153052;
    background: rgb(255 255 255 / 88%);
    box-shadow: 0 8px 24px rgb(21 48 82 / 10%);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.miras-home-life-motion:hover,
.miras-home-life-motion:focus-visible {
    color: #0d46a6;
    border-color: rgb(76 136 219 / 56%);
    background: #fff;
    transform: translateY(-1px);
}

.miras-home-life-motion span::before,
.miras-home-life-motion span::after {
    position: absolute;
    top: 13px;
    width: 2px;
    height: 12px;
    border-radius: 2px;
    background: currentcolor;
    content: "";
}

.miras-home-life-motion span::before { left: 14px; }
.miras-home-life-motion span::after { right: 14px; }

.miras-home-life-motion[data-paused="true"] span::before {
    top: 11px;
    left: 15px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid currentcolor;
    border-radius: 0;
    background: transparent;
}

.miras-home-life-motion[data-paused="true"] span::after { display: none; }

/* One stable, discoverable control pattern for every autoplaying component. */
.miras-home-motion-control,
.miras-home-hero-rotation,
.miras-home-university-motion,
.miras-home-life-motion {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 0;
    border: 1px solid rgb(21 48 82 / 18%);
    border-radius: 50%;
    color: #153052;
    background: rgb(255 255 255 / 90%);
    box-shadow: 0 8px 24px rgb(21 48 82 / 10%);
    backdrop-filter: blur(8px);
    cursor: pointer;
    opacity: 1;
    pointer-events: auto;
    transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.miras-home-universities-heading .miras-home-university-motion,
.miras-home-life-heading .miras-home-life-motion {
    grid-column: 3;
    justify-self: end;
}

.miras-home-motion-control span::before,
.miras-home-motion-control span::after {
    position: absolute;
    top: 15px;
    width: 2px;
    height: 12px;
    border: 0;
    border-radius: 2px;
    background: currentcolor;
    content: "";
}

.miras-home-motion-control span::before { left: 16px; }
.miras-home-motion-control span::after { right: 16px; }

.miras-home-motion-control[data-paused="true"] span::before {
    top: 14px;
    left: 17px;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 10px solid currentcolor;
    border-radius: 0;
    background: transparent;
}

.miras-home-motion-control[data-paused="true"] span::after { display: none; }

.miras-home-motion-control:hover,
.miras-home-motion-control:focus-visible {
    color: #0d46a6;
    border-color: rgb(76 136 219 / 56%);
    background: #fff;
    transform: translateY(-1px);
}

.miras-home-motion-control:focus-visible {
    outline: 3px solid #4c88db;
    outline-offset: 3px;
}

.miras-home-motion-control--dark,
.miras-home-hero-rotation {
    margin-right: 8px;
    color: #fff;
    border-color: rgb(255 255 255 / 45%);
    background: rgb(5 27 64 / 48%);
    box-shadow: 0 8px 24px rgb(1 13 31 / 18%);
}

.miras-home-motion-control--dark:hover,
.miras-home-motion-control--dark:focus-visible,
.miras-home-hero-rotation:hover,
.miras-home-hero-rotation:focus-visible {
    color: #fff;
    border-color: rgb(255 208 58 / 80%);
    background: rgb(5 27 64 / 72%);
}

.miras-home-life-viewport {
    position: relative;
    width: 100%;
    margin-top: 48px;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.miras-home-life-track {
    display: flex;
    width: max-content;
    animation: miras-home-life-scroll 44s linear infinite;
    will-change: auto;
}

.miras-home-life-group {
    display: flex;
    flex: none;
    gap: 22px;
    padding-right: 22px;
}

.miras-home-life-group figure {
    width: 231px;
    height: 318px;
    flex: none;
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #e4e4e4;
}

.miras-home-life-group img { width: 100%; height: 100%; object-fit: cover; }

/* Cached Instagram posts: native links, no embeds, carousel timer or remote script. */
.miras-home-life-grid--instagram {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: min(var(--miras-page-wide, 1440px), calc(100% - 2 * var(--miras-page-gutter, 24px)));
    margin: 36px auto 0;
}
.miras-home-life-grid--instagram figure { min-width: 0; margin: 0; }
.miras-home-instagram-post { position: relative; display: block; border-radius: 8px; }
.miras-home-instagram-post img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: inherit; }
.miras-home-instagram-post:focus-visible { outline: 3px solid #c6a044; outline-offset: 4px; }
.miras-home-instagram-type { position: absolute; inset: auto 8px 8px auto; padding: 5px 8px; border-radius: 4px; color: #fff; background: #153052; font-size: 12px; line-height: 1.3; }
@media (max-width: 1023px) {
    .miras-home-life-grid--instagram { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

.miras-home-life-action { margin: 27px 0 0; text-align: center; }

.miras-home-life-action a {
    display: inline-flex;
    min-width: 198px;
    min-height: 41px;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 8px 20px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(86deg, #051b40, #0d46a6 165%);
    font-size: 18px;
    font-weight: 550;
    line-height: 1.1;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.miras-home-life-action a:hover,
.miras-home-life-action a:focus-visible {
    color: #fff;
    box-shadow: 0 8px 24px rgb(5 27 64 / 18%);
    transform: translateY(-2px);
}

.miras-home-life-action img { width: 20px; height: 20px; filter: brightness(0) invert(1); }

@keyframes miras-home-life-scroll { to { transform: translateX(-50%); } }

/* Recognition marks */

.miras-home-recognitions {
    position: relative;
    min-height: 348px;
    padding: 56px 0 76px;
    overflow: hidden;
    background:
        url("../images/home-2026/figma/recognitions-ellipse-left.svg") calc(50% - 620px) calc(100% + 618px) / 796px 796px no-repeat,
        url("../images/home-2026/figma/recognitions-ellipse-right.svg") calc(50% + 72px) 105px / 930px 930px no-repeat,
        #f7f8fa;
}

.miras-home-recognitions::before {
    content: none;
}

.miras-home-recognitions header { display: flex; flex-direction: column; align-items: center; }
.miras-home-recognitions header span { width: 64px; height: 2px; margin-top: 29px; background: #d4a843; }

.miras-home-recognition-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 72px;
    max-width: 960px;
    margin: 40px auto 0;
}

.miras-home-recognition {
    position: relative;
    display: flex;
    min-width: 0;
    height: 148px;
    padding-bottom: 64px;
    align-items: center;
    justify-content: center;
    opacity: 1;
    text-decoration: none;
}

.miras-home-recognition img { width: auto; max-width: min(100%, 150px); height: auto; max-height: 80px; object-fit: contain; opacity: 1; filter: none; }
.miras-home-recognition__name {
    position: absolute;
    top: 96px;
    left: 50%;
    width: calc(100% + 40px);
    max-width: 220px;
    color: var(--miras-navy);
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    text-align: center;
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity 160ms ease;
}
.miras-home-recognition:hover .miras-home-recognition__name,
.miras-home-recognition:focus-visible .miras-home-recognition__name { opacity: 1; }
.miras-home-recognition:focus-visible { outline: 2px solid var(--miras-blue); outline-offset: 4px; }
@media (hover: none) {
    .miras-home-recognition__name { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .miras-home-recognition__name { transition: none; }
}

/* Responsive */

@media (max-width: 1180px) {
    .miras-home-container { width: min(100% - 64px, 1040px); }
    .miras-home-hero-copy { right: 32px; left: 32px; }
    .miras-home-hero-copy h1 { font-size: clamp(44px, 5.3vw, 62px); white-space: normal; }
    .miras-home-hero-pagination { right: 32px; }
    .miras-home-program-meta strong { font-size: 21px; }
    .miras-home-program-meta span { font-size: 16px; }
    .miras-home-why-layout { grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); gap: 16px; }
    .miras-home-why-label strong { font-size: 20px; line-height: 27px; }
    .miras-home-why-panel p { font-size: 14px; }
    .miras-home-stat { padding: 24px; }
    .miras-home-stat p { font-size: 14px; }
    .miras-home-stat--feature { padding: 32px; }
    .miras-home-life-heading { width: calc(100% - 64px); }
}

@media (min-width: 901px) and (max-width: 1439px) {
    .miras-home-why-layout,
    .miras-home-why-accordion {
        height: auto;
    }

    .miras-home-why-accordion {
        overflow: visible;
    }

    .miras-home-stats-grid {
        grid-template-rows: minmax(238px, auto) minmax(249px, auto) minmax(216px, auto);
    }
}

@media (max-width: 900px) {
    .miras-home-container { width: calc(100% - 48px); }
    .miras-home-hero-copy { bottom: 104px; left: 24px; right: 24px; }
    .miras-home-hero-copy h1 { font-size: clamp(40px, 8vw, 58px); }
    .miras-home-hero-copy p { max-width: 680px; font-size: clamp(20px, 3.4vw, 28px); }
    .miras-home-hero-pagination { right: 24px; }
    .miras-home-programs { padding: 48px 0; }
    .miras-home-program-grid { grid-template-columns: 1fr; }
    .miras-home-program-card { height: 300px; }
    .miras-home-program-meta strong { font-size: 25px; }
    .miras-home-program-meta span { font-size: 20px; }
    .miras-home-why { padding: 56px 0; }
    .miras-home-why-layout { display: flex; height: auto; flex-direction: column; }
    .miras-home-why-media { height: 440px; }
    .miras-home-why-accordion { height: auto; }
    .miras-home-why-label strong { font-size: 22px; line-height: 30px; }
    .miras-home-why-panel p { font-size: 16px; }
    .miras-home-stats { padding: 64px 0; }
    .miras-home-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 460px repeat(3, minmax(200px, auto)) 220px; }
    .miras-home-stat--feature { grid-column: 1 / -1; grid-row: 1; }
    .miras-home-stat--winners { grid-column: 1; grid-row: 2; }
    .miras-home-stat--graduates { grid-column: 2; grid-row: 2; }
    .miras-home-stat--nationalities { grid-column: 1; grid-row: 3; }
    .miras-home-stat--altyn { grid-column: 2; grid-row: 3; }
    .miras-home-stat--ib { grid-column: 1; grid-row: 4; }
    .miras-home-stat--grants { grid-column: 2; grid-row: 4; }
    .miras-home-stat--enrollment { grid-column: 1 / -1; grid-row: 5; }
    .miras-home-academic { padding: 72px 0; }
    .miras-home-academic .miras-home-container { padding-inline: 0; }
    .miras-home-academic-grid { gap: 0; }
    .miras-home-academic-grid article { padding: 0 18px; }
    .miras-home-academic-grid strong { font-size: 64px; }
    .miras-home-universities { padding-block: 72px 48px; }
    .miras-home-life-heading { width: calc(100% - 48px); }
    .miras-home-recognition-grid { gap: 32px; }
}

@media (max-width: 600px) {
    .miras-home-container { width: calc(100% - 32px); }
    .miras-home-section-heading h2,
    .miras-home-stats h2,
    .miras-home-academic h2,
    .miras-home-universities h2,
    .miras-home-life h2,
    .miras-home-recognitions h2 { font-size: 32px; }
    .miras-home-section-heading p { font-size: 17px; line-height: 1.35; }
    .miras-home-hero-copy { bottom: 94px; left: 16px; right: 16px; }
    .miras-home-hero-copy h1 { font-size: clamp(38px, 12vw, 52px); line-height: 0.98; }
    .miras-home-hero-copy h1 span { display: block; }
    .miras-home-hero-copy p { margin-top: 12px; font-size: 19px; line-height: 1.25; }
    .miras-home-hero-pagination { right: auto; bottom: 24px; left: 16px; gap: 0; }
    .miras-home-hero-dot { width: 24px; height: 24px; }
    .miras-home-hero-dot::before { width: 10px; height: 10px; }
    .miras-home-hero-dot.is-active { width: 46px; }
    .miras-home-hero-dot.is-active::before { width: 32px; }
    .miras-home-programs { padding: 40px 0; }
    .miras-home-programs .miras-home-section-heading p { font-size: 17px; line-height: 1.35; }
    .miras-home-program-grid { margin-top: 20px; }
    .miras-home-program-card { height: 236px; }
    .miras-home-program-content { padding: 20px; }
    .miras-home-program-meta strong { font-size: 21px; }
    .miras-home-program-meta span { font-size: 16px; }
    .miras-home-program-description { font-size: 14px; }
    .miras-home-why { padding: 44px 0; }
    .miras-home-section-heading--accent h2 { font-size: 36px; }
    .miras-home-section-heading--accent p { font-size: 17px; line-height: 1.35; }
    .miras-home-why-layout { margin-top: 28px; }
    .miras-home-why-media { height: 340px; }
    .miras-home-why-media a { right: 12px; bottom: 12px; left: 12px; width: auto; max-width: none; min-height: 48px; padding: 12px 16px; transform: none; white-space: normal; }
    .miras-home-why-media a:hover,
    .miras-home-why-media a:focus-visible { transform: translateY(-2px); }
    .miras-home-why-item button { grid-template-columns: 28px minmax(0, 1fr) 20px; min-height: 88px; padding-inline: 8px; }
    .miras-home-why-number { font-size: 20px; }
    .miras-home-why-label strong { font-size: 19px; line-height: 1.25; }
    .miras-home-why-panel { margin: 0 16px 0 44px; }
    .miras-home-stats { padding: 48px 0; }
    .miras-home-stats-grid { display: flex; flex-direction: column; }
    .miras-home-stat { min-height: 210px; }
    .miras-home-stat strong { font-size: 54px; }
    .miras-home-stat--feature { min-height: 430px; }
    .miras-home-stat--feature strong { font-size: 74px; }
    .miras-home-stat--enrollment .miras-home-stat-top > div { display: block; }
    .miras-home-stat--enrollment h3 { margin-top: 8px; }
    .miras-home-academic { padding: 56px 0; }
    .miras-home-academic-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
    .miras-home-academic-grid article { padding: 0; }
    .miras-home-academic-grid article + article { padding-top: 32px; border-top: 1px solid rgb(255 255 255 / 8%); border-left: 0; }
    .miras-home-academic-grid strong { font-size: 76px; }
    .miras-home-universities { min-height: 430px; padding-top: 56px; }
    .miras-home-universities-heading { width: 100%; padding-inline: 16px; }
    .miras-home-university-motion { right: auto; }
    .miras-home-universities-watermark { top: 44px; }
    .miras-home-universities-dots { left: 50%; transform: translateX(-430px); }
    .miras-home-logo-rows { margin-top: 48px; }
    .miras-home-university-logo { --miras-logo-gap: 48px; }
    .miras-home-university-logo img { max-width: min(var(--miras-logo-width, 160px), 170px); }
    .miras-home-life { padding-top: 48px; }
    .miras-home-life-heading { width: calc(100% - 32px); align-items: center; }
    .miras-home-life-motion { right: auto; bottom: auto; }
    .miras-home-life-heading > div { padding-inline: 12px; }
    .miras-home-life-viewport { margin-top: 36px; }
    .miras-home-life-group figure { width: 220px; height: 302px; }
    .miras-home-recognitions { padding: 48px 0; }
    .miras-home-recognition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; margin-top: 32px; }
    .miras-home-recognition:last-child { grid-column: 1 / -1; }
}

@media (hover: none), (pointer: coarse) {
    .miras-home-program-card::before,
    .miras-home-program-card::after {
        opacity: 0.1;
        transition: none;
    }
    .miras-home-program-media::after {
        opacity: 0;
        transition: none;
    }
    .miras-home-program-content::before {
        opacity: 1;
        transition: none;
    }
    .miras-home-program-meta {
        color: #fff;
        transition: none;
    }
    .miras-home-program-meta strong { color: #ffd03a; }
    .miras-home-program-description {
        max-height: 6em;
        margin-top: 10px;
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Keep the first screen usable on phones held horizontally. */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 900px) {
    .miras-home-hero-copy { bottom: 80px; }
    .miras-home-hero-copy h1 { font-size: clamp(26px, 5vw, 40px); line-height: 1.05; }
    .miras-home-hero-copy h1 span { display: inline; }
    .miras-home-hero-copy p { margin-top: 8px; font-size: 16px; line-height: 1.25; }
    .miras-home-hero-pagination { bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .miras-home-hero-slide,
    .miras-home-program-media img,
    .miras-home-program-media::after,
    .miras-home-program-card::before,
    .miras-home-program-card::after,
    .miras-home-program-content::before,
    .miras-home-program-meta,
    .miras-home-program-description,
    .miras-home-why-item,
    .miras-home-why-item button,
    .miras-home-why-number,
    .miras-home-why-sign,
    .miras-home-why-sign::before,
    .miras-home-why-sign::after,
    .miras-home-why-panel,
    .miras-home-why-panel p,
    .miras-home-logo-track,
    .miras-home-life-track,
    .miras-home-hero-dot,
    .miras-home-hero-dot::before { animation: none !important; transition: none !important; }
    .miras-home-logo-track,
    .miras-home-life-track { transform: none !important; }
    .miras-home-logo-viewport,
    .miras-home-life-viewport { overflow-x: auto; mask-image: none; }
    .miras-home-logo-group[aria-hidden="true"],
    .miras-home-life-group[aria-hidden="true"] { display: none; }
}

html.cya11y-stop-animations .miras-home-logo-track,
html.cya11y-stop-animations .miras-home-life-track {
    animation: none !important;
    transform: none !important;
}

html.cya11y-stop-animations .miras-home-why-item,
html.cya11y-stop-animations .miras-home-why-item button,
html.cya11y-stop-animations .miras-home-why-number,
html.cya11y-stop-animations .miras-home-why-sign,
html.cya11y-stop-animations .miras-home-why-sign::before,
html.cya11y-stop-animations .miras-home-why-sign::after,
html.cya11y-stop-animations .miras-home-why-panel,
html.cya11y-stop-animations .miras-home-why-panel p {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

html.cya11y-stop-animations .miras-home-logo-viewport,
html.cya11y-stop-animations .miras-home-life-viewport {
    overflow-x: auto;
    mask-image: none;
}

html.cya11y-stop-animations .miras-home-logo-group[aria-hidden="true"],
html.cya11y-stop-animations .miras-home-life-group[aria-hidden="true"] {
    display: none;
}
