/* ==========================================================================
   SFS Academy — History of SFS Academy (inner page)
   Uses the shared tokens from base.css; classes are prefixed h-.
   Section rhythm: dark hero, light journey, dark growth, soft managers,
   dark principals, light closing that curves into the footer.
   ========================================================================== */

:root { --h-curve: clamp(2.5rem, 5vw, 5rem); }

.page-history .site-footer { border-top: 0; }

.h-display {
    font-family: var(--f-serif); font-size-adjust: 0.4;
    font-size: clamp(2.4rem, 1.3rem + 3.6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.015em;
    color: var(--c-ink);
    text-wrap: balance;
}
.h-display--light { color: var(--c-white); }

/* ---------- 01 · Hero ---------- */
.h-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: clamp(32rem, 66vh, 42rem);
    overflow: hidden;
    color: var(--c-white);
    background: var(--c-maroon-950);
}

.h-hero__media { position: absolute; inset: 0; z-index: -1; }
.h-hero__media img { width: 100%; height: 100%; object-fit: cover; animation: h-settle 9s var(--ease) both; }
@keyframes h-settle { from { transform: scale(1.08); } to { transform: scale(1); } }

.h-hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgb(var(--rgb-maroon-950) / 0.9) 0%, rgb(var(--rgb-maroon-950) / 0.66) 40%, rgb(var(--rgb-maroon-950) / 0.2) 75%),
        linear-gradient(0deg, rgb(var(--rgb-maroon-950) / 0.6) 0%, rgb(var(--rgb-maroon-950) / 0) 45%),
        linear-gradient(180deg, rgb(var(--rgb-maroon-950) / 0.6) 0%, rgb(var(--rgb-maroon-950) / 0) 28%);
}

.h-hero::after {
    content: "";
    position: absolute;
    left: -6%;
    right: -6%;
    bottom: -1px;
    z-index: 1;
    height: var(--h-curve);
    background: var(--c-bg);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.h-hero__content {
    padding-top: calc(var(--header-h) + 2.25rem + 2.5rem);
    padding-bottom: calc(var(--h-curve) + clamp(2.5rem, 6vh, 4.5rem));
}

.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; margin: 0 0 1.75rem; padding: 0; list-style: none; font-size: 0.8125rem; color: rgb(255 255 255 / 0.75); }
.crumbs li + li::before { content: "/"; margin-right: 0.6rem; color: var(--c-gold-500); }
.crumbs a { transition: color 0.2s ease; }
.crumbs a:hover { color: var(--c-gold-300); text-decoration: underline; text-underline-offset: 0.25em; }
.crumbs [aria-current="page"] { color: var(--c-gold-300); }

.h-hero__eyebrow { margin-bottom: 1rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-gold-300); }

.h-hero__title { font-family: var(--f-serif); font-size-adjust: 0.4; font-size: clamp(2.4rem, 1.2rem + 3.6vw, 4rem); font-weight: 600; line-height: 0.98; letter-spacing: -0.015em; }
/* Both parts of an inner-page headline run on one line; a long headline still wraps at a space when it runs out of room */
.h-hero__line { display: inline; white-space: normal; }
.h-hero__line:last-child { color: var(--c-gold-300); font-style: italic; font-weight: 500; }

.h-hero__intro { max-width: 34rem; margin-top: 1.5rem; font-size: 1.125rem; line-height: 1.7; color: rgb(255 255 255 / 0.86); }

.crumbs,
.h-hero__eyebrow,
.h-hero__title,
.h-hero__intro { opacity: 0; animation: h-rise 1s var(--ease) forwards; }
.h-hero__eyebrow { animation-delay: 0.1s; }
.h-hero__title { animation-delay: 0.2s; }
.h-hero__intro { animation-delay: 0.4s; }
@keyframes h-rise { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }

@media (max-width: 480px) { .h-hero__line { white-space: normal; } }

/* ---------- 02 · Our Journey ---------- */
.h-journey {
    position: relative;
    padding-block: clamp(3.5rem, 7vw, 6.5rem) calc(var(--section-y) + var(--h-curve));
    background:
        radial-gradient(52rem 30rem at 100% 0%, rgb(var(--rgb-gold-500) / 0.13), transparent 60%),
        var(--c-bg);
}

.h-journey__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(1rem, 2vw, 2rem);
    align-items: start;
}

.h-journey__visual { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 2rem); }

.h-journey__arch {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: 999px 999px 0 0;
    background: var(--c-maroon-900);
    box-shadow: 0 40px 60px -40px rgb(var(--rgb-maroon-950) / 0.5);
}
.h-journey__arch img { width: 100%; height: 100%; object-fit: cover; }

.h-journey__year {
    position: absolute;
    right: -2.5rem;
    bottom: -1.5rem;
    font-family: var(--f-serif); font-size-adjust: 0.4;
    font-size: clamp(6rem, 4rem + 8vw, 11rem);
    font-weight: 600;
    line-height: 0.8;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--c-gold-500);
    pointer-events: none;
}

.h-journey__copy { grid-column: 7 / span 6; }
.h-journey__copy .h-display { margin-bottom: clamp(2rem, 4vw, 3.25rem); font-size: clamp(2.2rem, 1.3rem + 2.8vw, 3.6rem); }

.beats { border-top: 3px solid var(--c-maroon-700); }
.beat { display: grid; grid-template-columns: 3.75rem minmax(0, 1fr); gap: 1rem; padding: clamp(1.4rem, 2.5vw, 2rem) 0; border-bottom: 1px solid var(--c-line); }
.beat__no { font-family: var(--f-serif); font-size-adjust: 0.4; font-size: 2.5rem; font-weight: 600; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--c-gold-500); transition: color 0.35s ease; }
.beat:hover .beat__no { color: var(--c-gold-500); }
.beat__title { margin-bottom: 0.4rem; font-family: var(--f-serif); font-size-adjust: 0.4; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; line-height: 1.12; color: var(--c-ink); }
.beat__text { max-width: 34rem; font-size: 0.9875rem; line-height: 1.75; }

@media (max-width: 960px) {
    .h-journey__visual,
    .h-journey__copy { grid-column: 1 / -1; position: static; }
    .h-journey__visual { max-width: 24rem; margin: 0 auto 4rem; width: 100%; }
    .h-journey__year { right: -1rem; }
}

/* ---------- 03 · Our Growth and Legacy ---------- */
.h-growth {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: calc(var(--h-curve) * -1);
    padding-block: calc(var(--section-y) + var(--h-curve)) var(--section-y);
    clip-path: polygon(0 var(--h-curve), 100% 0, 100% 100%, 0 100%);
    color: rgb(255 255 255 / 0.82);
    background: var(--c-maroon-900);
}

.h-growth__bg { position: absolute; inset: 0; z-index: -2; margin: 0; }
.h-growth__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.38; }
.h-growth::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(44rem 28rem at 90% 0%, rgb(var(--rgb-gold-500) / 0.2), transparent 60%),
        linear-gradient(180deg, rgb(var(--rgb-maroon-900) / 0.85), rgb(var(--rgb-maroon-900) / 0.92));
}

.h-growth__head { max-width: 44rem; margin-bottom: clamp(3rem, 6vw, 5rem); }

.track { display: grid; grid-template-columns: auto minmax(2rem, 1fr) auto; align-items: end; gap: clamp(1rem, 3vw, 3rem); }
.track__node { display: grid; gap: 0.5rem; }
.track__node--end { text-align: right; }
.track__value { font-family: var(--f-serif); font-size-adjust: 0.4; font-size: clamp(4rem, 2rem + 9vw, 10rem); font-weight: 600; line-height: 0.85; color: var(--c-gold-300); }
.track__node--end .track__value { color: var(--c-white); }
.track__label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-gold-300); }

.track__line {
    position: relative;
    align-self: center;
    height: 1px;
    margin-bottom: 2rem;
    background: rgb(var(--rgb-gold-500) / 0.5);
    transform-origin: 0 50%;
}
.track__line::before,
.track__line::after { content: ""; position: absolute; top: 50%; width: 0.6rem; height: 0.6rem; margin-top: -0.3rem; background: var(--c-gold-500); transform: rotate(45deg); }
.track__line::before { left: 0; }
.track__line::after { right: 0; }

.js .track .track__line { transform: scaleX(0); transition: transform 1.6s var(--ease) 0.3s; }
.js .track.is-in .track__line { transform: scaleX(1); }

.h-growth__text { max-width: 40rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid rgb(var(--rgb-gold-500) / 0.35); font-size: 1.0625rem; line-height: 1.8; }

@media (max-width: 640px) {
    .track { grid-template-columns: 1fr; gap: 1.25rem; }
    .track__node--end { text-align: left; }
    .track__line { width: 100%; margin: 0; }
}

/* ---------- 04 · Our Managers: two round portraits joined by a gold line that marks the 2016 handover ---------- */
.h-managers { padding-block: var(--section-y); text-align: center; background: var(--c-bg, #fff); }
.h-managers__head { display: grid; justify-items: center; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.h-managers .eyebrow::after { content: ""; width: 1.75rem; height: 1px; background: currentColor; }

.managers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(4.5rem, 0.5fr) minmax(0, 1fr); align-items: start; max-width: 66rem; margin: 0 auto; padding: 0; list-style: none; }

.manager { display: grid; justify-items: center; gap: 0.6rem; }
.manager__photo { width: clamp(12rem, 24vw, 320px); aspect-ratio: 1; margin: 0 0 0.6rem; overflow: hidden; background: var(--c-maroon-800); border-radius: 50%; box-shadow: 0 0 0 5px #fff, 0 0 0 8px var(--c-gold-500), 0 24px 36px -18px rgb(var(--rgb-maroon-950) / 0.55); transition: transform 0.5s var(--ease); }
.manager:hover .manager__photo { transform: scale(1.05); }
.manager__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

.manager__years { font-family: var(--f-serif); font-size-adjust: 0.4; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-style: italic; font-weight: 600; line-height: 1; color: var(--c-maroon-700, var(--c-maroon-700)); }
.manager--current .manager__years { color: var(--c-gold-700); }
.manager__name { max-width: 17rem; font-family: var(--f-serif); font-size-adjust: 0.4; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); font-weight: 600; line-height: 1.25; color: var(--c-maroon-900, var(--c-maroon-950)); }
.manager__role { padding: 0.22rem 0.75rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-gold-700); background: rgb(var(--rgb-gold-500) / 0.2); border-radius: 999px; }
.manager--current .manager__role { color: var(--c-maroon-950, var(--c-maroon-950)); background: var(--c-gold-500); }

/* the connecting line sits at the height of the portraits' centre */
.managers__link { position: relative; display: grid; place-items: center; height: clamp(12rem, 24vw, 320px); }
.managers__link::before { content: ""; position: absolute; left: -0.25rem; right: -0.25rem; top: 50%; height: 2px; background: linear-gradient(90deg, var(--c-gold-500), var(--c-gold-300), var(--c-gold-500)); }
.managers__link span { position: relative; padding: 0.35rem 0.9rem; font-family: var(--f-serif); font-size-adjust: 0.4; font-size: 1.1rem; font-style: italic; font-weight: 600; color: var(--c-maroon-950, var(--c-maroon-950)); background: var(--c-gold-500); border: 4px solid #fff; border-radius: 999px; }

@media (max-width: 640px) {
    .managers { grid-template-columns: 1fr; gap: 1.5rem; }
    .managers__link { height: 3.5rem; }
    .managers__link::before { left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
}

/* ---------- 05 · Our Principals: a timeline of three tenures, each with a portrait card ---------- */
.h-principals { padding-block: var(--section-y); background: var(--c-soft); }
.h-principals__head { display: grid; justify-items: start; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.h-principals .eyebrow::after { content: ""; width: 1.75rem; height: 1px; background: currentColor; }

.chapters { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
/* the timeline rule runs behind the three year markers */
.chapters::before { content: ""; position: absolute; left: 0; right: 0; top: 0.55rem; height: 2px; background: linear-gradient(90deg, var(--c-gold-500), rgb(var(--rgb-gold-500) / 0.25)); }

.chapter { position: relative; }
.chapter__years { position: relative; display: flex; align-items: center; gap: 0.75rem; margin: 0 0 1.5rem; font-family: var(--f-serif); font-size-adjust: 0.4; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 600; font-style: italic; line-height: 1; color: var(--c-maroon-700, var(--c-maroon-700)); }
.chapter__dot { flex: none; width: 1.1rem; height: 1.1rem; background: var(--c-gold-500); border: 3px solid var(--c-soft); border-radius: 50%; box-shadow: 0 0 0 2px var(--c-gold-500); }
.chapter__years { background: linear-gradient(var(--c-soft), var(--c-soft)) no-repeat left center / calc(100% - 0px) 1.9rem; width: max-content; padding-right: 0.9rem; }

.chapter__card { overflow: hidden; background: #fff; border: 1px solid rgb(var(--rgb-gold-700) / 0.22); border-bottom: 4px solid var(--c-gold-500); border-radius: 15px; box-shadow: 0 24px 44px -30px rgb(var(--rgb-maroon-950) / 0.5); transition: transform 0.35s var(--ease), box-shadow 0.35s ease; }
.chapter:hover .chapter__card { transform: translateY(-6px); box-shadow: 0 32px 50px -30px rgb(var(--rgb-maroon-950) / 0.6); }
.chapter__photo { margin: 0; aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--c-maroon-800); }
.chapter__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.chapter:hover .chapter__photo img { transform: scale(1.04); }

.chapter__body { padding: 1.25rem 1.5rem 1.4rem; }
.chapter__name { font-family: var(--f-serif); font-size-adjust: 0.4; font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.65rem); font-weight: 600; line-height: 1.2; color: var(--c-maroon-900, var(--c-maroon-950)); }
.chapter__role { display: inline-block; margin-top: 0.7rem; padding: 0.25rem 0.7rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-gold-700); background: rgb(var(--rgb-gold-500) / 0.16); border-radius: 999px; }

.chapter--current .chapter__card { border-color: var(--c-gold-500); box-shadow: 0 0 0 2px var(--c-gold-500), 0 28px 48px -30px rgb(var(--rgb-maroon-950) / 0.55); }
.chapter--current .chapter__role { color: var(--c-maroon-950, var(--c-maroon-950)); background: var(--c-gold-500); }
.chapter--current .chapter__dot { animation: h-pulse 2s ease-out infinite; }
@keyframes h-pulse { 0% { box-shadow: 0 0 0 2px var(--c-gold-500), 0 0 0 0 rgb(var(--rgb-gold-500) / 0.55); } 100% { box-shadow: 0 0 0 2px var(--c-gold-500), 0 0 0 0.9rem rgb(var(--rgb-gold-500) / 0); } }

@media (max-width: 860px) {
    .chapters { grid-template-columns: 1fr; gap: 2rem; }
    .chapters::before { display: none; }
    .chapter__photo { aspect-ratio: 4 / 3.6; }
}

/* ---------- 06 · Closing: motto, curving into the footer ---------- */
.h-closing {
    position: relative;
    overflow: hidden;
    padding-block: var(--section-y) calc(var(--section-y) + var(--h-curve));
    text-align: center;
    background:
        radial-gradient(40rem 22rem at 50% 0%, rgb(var(--rgb-gold-500) / 0.16), transparent 70%),
        var(--c-soft);
}

.h-closing::after {
    content: "";
    position: absolute;
    left: -6%;
    right: -6%;
    bottom: -1px;
    height: var(--h-curve);
    background: var(--c-maroon-950);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.h-closing__inner { display: grid; justify-items: center; gap: 1.5rem; }
.h-closing .eyebrow::after { content: ""; width: 1.75rem; height: 1px; background: currentColor; }

.h-closing__motto { font-family: var(--f-serif); font-size-adjust: 0.4; font-size: clamp(3rem, 1.4rem + 6.4vw, 7rem); font-weight: 600; line-height: 1; letter-spacing: -0.02em; color: var(--c-ink); }
.h-closing__motto span { display: block; }
.h-closing__motto span:last-child { font-style: italic; font-weight: 500; color: var(--c-maroon-700); }

.h-closing__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 2.5rem; margin-top: 1rem; padding-top: 1.75rem; border-top: 1px solid var(--c-line); }

@media (prefers-reduced-motion: reduce) {
    .h-hero__media img,
    .stop--current .stop__dot { animation: none; }
    .crumbs, .h-hero__eyebrow, .h-hero__title, .h-hero__intro { opacity: 1; animation: none; }
    .js .track .track__line,
    .js .timeline::before { transform: none; }
}

/* Rounded image corners */
:is(.h-journey, .h-managers, .h-principals) :is(img, :has(> img)) { border-radius: 15px; }
:is(.h-journey, .h-managers, .h-principals) :has(> img) { overflow: hidden; }

/* Our Managers: each manager sits in a coffee-coloured card */
.managers { --mgr-pad: clamp(1.5rem, 3vw, 2.25rem); }
.manager {
    padding: var(--mgr-pad) var(--mgr-pad) calc(var(--mgr-pad) + 0.25rem);
    color: rgb(255 255 255 / 0.82);
    background: radial-gradient(22rem 14rem at 50% 0%, rgb(var(--rgb-gold-500) / 0.18), transparent 70%), linear-gradient(160deg, #48725f 0%, #2f5041 100%);
    border: 1px solid rgb(var(--rgb-gold-500) / 0.35);
    border-bottom: 4px solid var(--c-gold-500);
    border-radius: 15px;
    box-shadow: 0 30px 50px -32px rgb(23 47 37 / 0.8);
}
.manager__photo { box-shadow: 0 24px 36px -18px rgb(0 0 0 / 0.6); }
.manager__years,
.manager--current .manager__years { color: var(--c-gold-300); }
.manager__name { color: var(--c-white); }
.manager__role { color: var(--c-gold-300); background: transparent; border: 1px solid rgb(var(--rgb-gold-500) / 0.55); }
.manager--current .manager__role { color: var(--c-maroon-950, var(--c-maroon-950)); background: var(--c-gold-500); border-color: var(--c-gold-500); }
.managers__link { margin-top: var(--mgr-pad); }
@media (max-width: 640px) { .managers__link { margin-top: 0; } }

/* British Council recognition badge, at the right of every inner-page banner (above the curve) */
.h-hero__badge {
    position: absolute;
    z-index: 3;
    right: clamp(1rem, 4vw, 4.5rem);
    bottom: calc(var(--h-curve) + 1.75rem);
    display: block;
    width: clamp(7.5rem, 10vw, 9.5rem);
    border: 3px solid #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 22px 40px -18px rgb(0 0 0 / 0.65);
    transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.h-hero__badge img { display: block; width: 100%; height: auto; }
.h-hero__badge:hover,
.h-hero__badge:focus-visible { transform: translateY(-4px) rotate(-1.5deg); box-shadow: 0 28px 46px -18px rgb(0 0 0 / 0.75); }
@media (max-width: 900px) { .h-hero__badge { display: none; } }
/* a long intro line wraps before it reaches the badge (headlines stay on one line) */
@media (min-width: 901px) {
    .h-hero:has(.h-hero__badge) .h-hero__intro { max-width: calc(100% - 11rem); }
}

/* ==========================================================================
   Our Managers: two centred portraits with the years, name and role beneath.
   Our Principals: three profile cards, each a framed photograph above the name, designation and years.
   ========================================================================== */
.hx { padding-block: var(--section-y); text-align: center; background: var(--c-soft); }
.hx__head, .hy__head { display: grid; justify-items: center; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); text-align: center; }
.hx .eyebrow::after, .hy .eyebrow::after { content: ""; width: 1.75rem; height: 1px; background: currentColor; }

.hx__list { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.5rem, 4vw, 3rem); margin: 0; padding: 0; list-style: none; }
.hx__tile { position: relative; width: min(100%, 22rem); aspect-ratio: 4 / 4.6; overflow: hidden; background: var(--c-maroon-900); border-radius: 15px; box-shadow: 0 30px 50px -34px rgb(var(--rgb-maroon-950) / 0.8); isolation: isolate; text-align: left; }
.hx__tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.hx__tile:hover img { transform: scale(1.05); }
.hx__tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(var(--rgb-maroon-950) / 0.94) 0%, rgb(var(--rgb-maroon-950) / 0.55) 38%, transparent 66%); }
.hx__caption { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 0.4rem; padding: clamp(1.1rem, 2.4vw, 1.5rem); color: var(--c-white); }
.hx__years { margin: 0; font-family: var(--f-serif); font-size-adjust: 0.4; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 600; line-height: 1; color: var(--c-gold-300); }
.hx__name { margin: 0; font-family: var(--f-serif); font-size-adjust: 0.4; font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); font-weight: 600; line-height: 1.25; color: var(--c-white); }
.hx__role { margin: 0; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgb(255 255 255 / 0.8); }

.hy { padding-block: var(--section-y); background: var(--c-white); }
.hy__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.25rem); max-width: 68rem; margin: 0 auto; padding: 0; list-style: none; }
.hy__card { display: grid; align-content: start; background: var(--c-white); border: 1px solid rgb(var(--rgb-gold-700) / 0.25); border-radius: 6px; overflow: hidden; box-shadow: 0 20px 34px -30px rgb(var(--rgb-maroon-950) / 0.55); }
.hy__photo { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--c-soft); }
.hy__photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.hy__body { display: grid; gap: 0.35rem; padding: 1.25rem 1.4rem 1.5rem; text-align: left; border-top: 3px solid var(--c-gold-500); }
.hy__name { margin: 0; font-family: var(--f-serif); font-size-adjust: 0.4; font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); font-weight: 600; line-height: 1.25; color: var(--c-maroon-900); }
.hy__role { margin: 0; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-gold-700); }
.hy__years { margin: 0.5rem 0 0; padding-top: 0.6rem; font-size: 0.85rem; font-weight: 600; color: var(--c-muted); border-top: 1px solid var(--c-line); }
.hy__card--current .hy__body { background: var(--c-soft); }

@media (max-width: 860px) {
    .hy__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .hy__grid { grid-template-columns: 1fr; max-width: 22rem; }
}

/* keep the framed portraits square-edged (the shared rule for history images rounds them to 15px) */
.hy .hy__photo { border-radius: 0; }

/* the large outlined year hangs past the portrait on narrow screens: clip it at the section edge so the page does not scroll sideways */
.h-journey { overflow-x: clip; }
@media (max-width: 560px) { .h-journey__year { right: 0; } }

.hy__body { justify-items: center; text-align: center; }
.hy__years { width: 100%; }

/* Campus photographs: the heading and one row of four pictures fit a single screen */
.h-campus { padding-block: clamp(2rem, 5vh, 4rem); background: var(--c-white); }
.h-campus__head { margin-bottom: clamp(1rem, 3vh, 2rem); text-align: left; }
.h-campus__head .h-display { margin: 0; font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); }
.h-campus__grid { display: grid; grid-template-columns: 1.35fr 1.35fr 1.35fr 1fr; gap: clamp(0.6rem, 1.4vw, 1.1rem); height: clamp(18rem, calc(100vh - 17rem), 40rem); }
.h-campus__photo { position: relative; min-width: 0; margin: 0; overflow: hidden; border-radius: 24px; box-shadow: var(--soft-shadow, 0 14px 36px -16px rgb(25 47 37 / 0.16)); }
.h-campus__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; transition: transform 0.8s var(--ease); }
.h-campus__photo:hover img { transform: scale(1.04); }
@media (max-width: 900px) {
    .h-campus__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); height: clamp(22rem, calc(100vh - 14rem), 40rem); }
}
@media (max-width: 520px) { .h-campus__grid { grid-template-columns: 1fr; grid-template-rows: none; height: auto; } .h-campus__photo { aspect-ratio: 4 / 3; } }
.h-campus__link { position: absolute; inset: 0; display: block; }
