:root {
    --history-ink: var(--cream);
    --history-paper: var(--bg-main);
    --history-paper-deep: var(--bg-darker);
    --history-wine: var(--bg-main);
    --history-wine-dark: var(--bg-darker);
    --history-gold: var(--gold);
    --history-gold-pale: var(--gold-light);
    --history-line: rgba(212, 175, 55, 0.3);
}

html { scroll-behavior: smooth; }

main [id] { scroll-margin-top: 84px; }

body.history-page {
    --pointer-x: 50vw;
    --pointer-y: 32vh;
    --surface-border: rgba(243, 215, 130, .2);
    --surface-shadow: 0 28px 80px rgba(4, 0, 0, .28);
    margin: 0;
    overflow-x: hidden;
    color: var(--cream);
    background-color: var(--bg-main);
    background-image: linear-gradient(rgba(26, 8, 8, .82), rgba(41, 12, 14, .9)), var(--brand-bg-desktop);
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
    font-family: var(--font-display);
}

.history-page *, .history-page *::before, .history-page *::after { box-sizing: border-box; }
.history-page img { max-width: 100%; }
.history-page a { color: inherit; }

.history-pointer-light {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(520px circle at var(--pointer-x) var(--pointer-y), rgba(212, 175, 55, .09), transparent 70%);
    mix-blend-mode: screen;
    opacity: .82;
    transition: opacity .4s ease;
}

.history-header {
    position: sticky;
    top: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: 66px;
    padding: 14px clamp(20px, 4vw, 56px);
    color: var(--cream);
    background: rgba(26, 8, 8, 0.72);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.history-header__brand {
    font-family: var(--font-display);
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 700;
    letter-spacing: .12em;
    text-decoration: none;
    text-transform: uppercase;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #e6c886;
}

.history-header__back { color: #f3ead2; opacity: .9; border-bottom: 1px solid rgba(243,234,210,.45); font-family: var(--font-display); font-size: clamp(15px, 1.4vw, 18px); font-weight: 600; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.history-header__back:hover { color: #f3d782; opacity: 1; }

.section-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.story-section, .archive, .honour-code { padding-block: clamp(68px, 7.5vw, 108px); }

.section-heading {
    display: grid;
    grid-template-columns: 78px 1fr;
    align-items: start;
    margin-bottom: clamp(34px, 4.5vw, 58px);
}

.section-number { margin: 0; color: var(--history-gold); font-size: 13px; letter-spacing: .18em; }
.section-eyebrow { margin: 0 0 10px; color: var(--gold-light); font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.section-heading h2, .history-intro h2, .anthem h2, .history-journal-cta h2, .history-finale h2 { margin: 0; font-size: clamp(42px, 6vw, 78px); font-weight: 500; line-height: .94; letter-spacing: -.035em; }
.section-heading--light h2, .section-heading--light .section-eyebrow { color: #fff6e7; }

.history-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr);
    align-items: center;
    gap: clamp(34px, 7vw, 110px);
    min-height: min(820px, calc(100svh - 66px));
    padding: clamp(54px, 6.5vw, 88px) max(20px, calc((100vw - 1260px) / 2));
    overflow: hidden;
    color: var(--cream);
    background-color: var(--bg-main);
    background-image: linear-gradient(90deg, rgba(26,8,8,.9), rgba(41,12,14,.5)), var(--brand-bg-desktop);
    background-position: center;
    background-size: cover;
}

.history-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .2;
    pointer-events: none;
    background: repeating-linear-gradient(100deg, transparent 0 34px, rgba(255,255,255,.025) 35px 36px);
}

.history-hero__veil { position: absolute; inset: 0; background: rgba(26, 8, 8, .18); pointer-events: none; }
.history-hero__content, .history-hero__photo { position: relative; z-index: 1; }
.history-kicker { margin: 0 0 22px; color: var(--history-gold-pale); font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.history-hero h1 { margin: 0; font-size: clamp(58px, 7.3vw, 108px); font-weight: 500; line-height: .82; letter-spacing: -.055em; }
.history-hero h1 em { color: var(--history-gold-pale); font-weight: 400; }
.history-hero__lead { max-width: 590px; margin: 34px 0 28px; color: rgba(255,249,237,.76); font-size: clamp(20px, 2vw, 27px); line-height: 1.4; }
.history-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-left: 17px; border-left: 2px solid var(--history-gold); }
.history-hero__meta span { color: rgba(255,255,255,.58); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.history-hero__date { display: flex; flex-direction: column; gap: 3px; padding-left: 17px; border-left: 2px solid var(--history-gold); }
.history-hero__date span { color: rgba(255,255,255,.55); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.history-hero__date strong { font-size: 24px; font-weight: 500; }
.history-hero__photo { --frame: rgba(233,213,160,.62); justify-self: end; }
.history-hero__photo img { filter: sepia(.14) contrast(1.04); }
.history-hero__photo figcaption { color: rgba(255,249,237,.64); }
.history-photo { position: relative; --frame: rgba(83,49,24,.32); margin: 0; }
.history-photo img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, var(--asset-width));
    margin-inline: auto;
    object-fit: contain;
    border: 1px solid var(--frame);
    box-shadow: 0 22px 55px rgba(27, 14, 9, .2);
}
.history-photo figcaption { max-width: var(--asset-width); margin: 10px auto 0; color: rgba(244,228,193,.72); font-size: 13px; font-style: italic; text-align: center; }
.parallax-media { transform: translate3d(0, var(--parallax-y, 0), 0); }

.history-intro { display: grid; grid-template-columns: 78px minmax(0, 1fr) minmax(260px, .7fr); gap: 0 clamp(30px, 5vw, 80px); padding-block: clamp(64px, 7.5vw, 108px); }
.history-intro__content { max-width: 700px; }
.history-intro__lead { margin: 30px 0 18px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.34; }
.history-intro__content > p:last-child { color: rgba(244,228,193,.78); font-size: 19px; line-height: 1.65; }
.history-intro blockquote { align-self: center; margin: 0; padding: 28px 0 28px 28px; color: var(--gold-light); border-left: 1px solid var(--history-gold); font-size: clamp(28px, 3.1vw, 44px); font-style: italic; line-height: 1.1; }

.editorial-lead { display: grid; grid-template-columns: minmax(240px, .42fr) minmax(0, 1fr); align-items: center; gap: 46px; max-width: 1040px; margin: 0 auto clamp(58px, 8vw, 100px); }
.story-year { margin: 0; color: var(--gold-light); font-size: clamp(72px, 8.5vw, 124px); line-height: .82; letter-spacing: -.055em; }
.editorial-lead > p:last-child { margin: 0; font-size: clamp(23px, 2.5vw, 34px); line-height: 1.43; }

.foundation-split {
    display: grid;
    grid-template-columns: minmax(280px, .72fr) minmax(360px, 1.28fr);
    align-items: center;
    gap: clamp(42px, 8vw, 112px);
}
.foundation-split .history-photo { max-width: 470px; }
.longform-prose h3 { margin: 0 0 20px; color: var(--history-gold-pale); font-size: clamp(35px, 4vw, 54px); font-weight: 500; }
.longform-prose p { color: rgba(244,228,193,.8); font-size: 19px; line-height: 1.76; }
.longform-prose p:first-child { margin-top: 0; }
.dropcap::first-letter { float: left; margin: .04em .12em 0 0; color: var(--history-gold-pale); font-size: 4.4em; line-height: .76; }
.standfirst { color: #fff5dd !important; font-size: clamp(23px, 2.5vw, 32px) !important; line-height: 1.42 !important; }
.longform-quote {
    max-width: 940px;
    margin: clamp(56px, 6.5vw, 84px) auto 0;
    padding: clamp(34px, 5vw, 68px);
    color: var(--history-gold-pale);
    background: rgba(26,8,8,.62);
    border: 1px solid var(--history-line);
    border-top: 3px solid var(--history-gold);
    font-size: clamp(27px, 3.2vw, 44px);
    font-style: italic;
    line-height: 1.35;
    text-align: center;
}
.longform-quote span { display: block; margin-bottom: 17px; font-size: 12px; font-style: normal; letter-spacing: .2em; }
.longform-quote--compact { margin-top: 70px; }

.profile-row {
    display: grid;
    grid-template-columns: 1.2fr .72fr;
    align-items: center;
    gap: clamp(45px, 9vw, 130px);
    margin-bottom: clamp(54px, 7vw, 84px);
}
.profile-row:last-child { margin-bottom: 0; }
.profile-row .history-photo { max-width: 420px; justify-self: end; }
.profile-row--reverse { grid-template-columns: .72fr 1.2fr; }
.profile-row--reverse .history-photo { order: -1; justify-self: start; }

.academicians {
    position: relative;
    margin-top: clamp(70px, 8vw, 105px);
    padding-top: 0;
    border-top: 0;
}

.academicians__intro {
    display: grid;
    grid-template-columns: minmax(300px, .9fr) minmax(340px, 1.1fr);
    gap: clamp(35px, 7vw, 100px);
    align-items: end;
    margin: 0 0 clamp(38px, 5vw, 58px) 78px;
}

.academicians__intro .section-eyebrow { grid-column: 1 / -1; margin-bottom: -18px; }
.academicians__intro h3 { margin: 0; color: var(--history-gold-pale); font-size: clamp(44px, 5.3vw, 72px); font-weight: 500; line-height: .98; }
.academicians__intro > p:last-child { margin: 0; color: rgba(255, 249, 237, .68); font-size: clamp(18px, 1.8vw, 23px); line-height: 1.58; }

.academicians__chronology {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(62, 26, 27, .52), rgba(25, 8, 9, .7));
    border: 1px solid rgba(233, 213, 160, .2);
    box-shadow: 0 35px 90px rgba(5, 0, 0, .28);
}

.academicians__chronology::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 47px;
    width: 1px;
    content: "";
    background: linear-gradient(to bottom, transparent, var(--history-gold) 8%, var(--history-gold) 92%, transparent);
    opacity: .52;
}

.academician-entry {
    position: relative;
    display: grid;
    grid-template-columns: 72px minmax(170px, 220px) minmax(320px, 1fr) minmax(130px, 175px);
    gap: clamp(22px, 3vw, 42px);
    align-items: center;
    min-height: 226px;
    padding: clamp(22px, 3vw, 32px) clamp(24px, 3.5vw, 42px) clamp(22px, 3vw, 32px) 12px;
    border-bottom: 1px solid rgba(233, 213, 160, .16);
}

.academician-entry:last-child { border-bottom: 0; }
.academician-entry::before { position: absolute; top: 50%; left: 42px; z-index: 1; width: 11px; height: 11px; content: ""; background: var(--history-wine-dark); border: 2px solid var(--history-gold); border-radius: 50%; transform: translateY(-50%); box-shadow: 0 0 0 7px rgba(212, 175, 55, .08); }
.academician-entry__number { position: relative; z-index: 2; margin: 0; color: rgba(243, 215, 130, .72); font-size: 12px; letter-spacing: .15em; text-align: center; }
.academician-entry__portrait { display: grid; width: 100%; height: 176px; place-items: center; margin: 0; overflow: hidden; background: rgba(9, 5, 4, .66); border: 1px solid rgba(233, 213, 160, .24); box-shadow: 0 18px 38px rgba(0, 0, 0, .26); }
.academician-entry__portrait img { display: block; width: 100%; height: 100%; object-fit: contain; filter: saturate(.78) sepia(.08) contrast(1.04); }
.academician-entry__honour { margin: 0 0 9px; color: var(--history-gold); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.academician-entry__content h4 { margin: 0; color: #fff9ed; font-size: clamp(31px, 3.3vw, 47px); font-weight: 500; line-height: 1.02; }
.academician-entry__role { margin: 18px 0 0; color: rgba(255, 249, 237, .64); font-size: clamp(16px, 1.55vw, 20px); line-height: 1.45; }
.academician-entry__years { display: flex; flex-direction: column; align-items: stretch; margin: 0; color: var(--history-gold-pale); font-size: clamp(19px, 2vw, 26px); line-height: 1; text-align: center; }
.academician-entry__years i { height: 1px; margin: 13px 0; background: rgba(233, 213, 160, .38); }
.academician-entry__years strong { margin-top: 10px; color: rgba(255, 249, 237, .54); font-size: 11px; font-weight: 500; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase; }
.academician-entry--current { background: linear-gradient(90deg, rgba(212, 175, 55, .04), rgba(212, 175, 55, .1)); }
.academician-entry--current::after { position: absolute; top: 0; right: 0; bottom: 0; width: 3px; content: ""; background: var(--history-gold); }

.visual-break { padding-block: clamp(58px, 7vw, 96px); }
.visual-break .history-photo { width: 100%; }
.visual-break .history-photo img { width: 100%; }

.school-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); align-items: start; gap: clamp(45px, 8vw, 120px); }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(46px, 5.5vw, 68px); border-block: 1px solid var(--history-line); }
.principle-grid p { display: flex; flex-direction: column; margin: 0; padding: 34px clamp(20px, 3vw, 42px); color: rgba(244,228,193,.75); border-right: 1px solid var(--history-line); font-size: 16px; line-height: 1.55; }
.principle-grid p:last-child { border-right: 0; }
.principle-grid span { color: var(--history-gold); font-size: 10px; letter-spacing: .18em; }
.principle-grid strong { margin: 10px 0 14px; color: var(--history-gold-pale); font-size: 32px; font-weight: 500; }

.founders-grid { display: grid; gap: clamp(65px, 9vw, 120px); }
.founder-card { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(320px, 1fr); align-items: center; gap: clamp(35px, 7vw, 105px); }
.founder-card--reverse figure { order: 2; }
.founder-card h3 { margin: 0 0 20px; color: var(--gold-light); font-size: clamp(36px, 4vw, 57px); font-weight: 500; }
.founder-card p { margin: 0; color: rgba(244,228,193,.8); font-size: 20px; line-height: 1.67; }
.founders-note { max-width: 900px; margin: clamp(70px, 9vw, 125px) auto 0; padding: 32px clamp(25px, 5vw, 58px); background: rgba(26,8,8,.64); border: 1px solid var(--history-line); }
.founders-note p { margin: 0; font-size: clamp(20px, 2.1vw, 27px); line-height: 1.55; text-align: center; }

.story-section--dark { color: var(--cream); background: rgba(26, 8, 8, .76); }
.principles-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: clamp(45px, 8vw, 120px); align-items: start; }
.principles-copy .large-copy { margin-top: 0; color: #fff9ed; font-size: clamp(25px, 3vw, 39px); line-height: 1.35; }
.principles-copy > p:not(.large-copy) { color: rgba(255,249,237,.72); font-size: 20px; line-height: 1.65; }
.principles-copy blockquote { margin: 45px 0 0; padding: 26px 0 26px 28px; color: var(--history-gold-pale); border-left: 1px solid var(--history-gold); font-size: clamp(25px, 2.8vw, 37px); font-style: italic; line-height: 1.35; }
.emblem-card { padding: 35px; background: rgba(41,12,14,.72); border: 1px solid rgba(212,175,55,.34); }
.emblem-card__figure { max-width: 220px; margin: 0 auto 28px; overflow: visible; background: transparent; border: 0; }
.emblem-card__figure img { display: block; width: 100%; height: auto; }
.emblem-card h3 { margin: 0 0 18px; font-size: 37px; font-weight: 500; }
.emblem-card p:last-child { margin: 0; color: rgba(255,249,237,.68); font-size: 18px; line-height: 1.62; }

.section-intro { max-width: 790px; margin: -18px 0 42px 78px; color: rgba(244,228,193,.78); font-size: clamp(21px, 2.2vw, 29px); line-height: 1.5; }
.tradition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; background: transparent; border: 0; }
.tradition-card { overflow: hidden; background: rgba(26,8,8,.72); border: 1px solid rgba(212,175,55,.32); }
.tradition-card > :is(img, picture) { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--bg-darker); }
.tradition-card > img { height: auto; object-fit: contain; }
.tradition-card > picture > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tradition-card > div { padding: clamp(25px, 3vw, 38px); }
.tradition-card span { color: var(--gold-light); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.tradition-card h3 { margin: 12px 0 16px; color: var(--cream); font-size: clamp(31px, 3.2vw, 45px); font-weight: 500; }
.tradition-card p { margin: 0; color: rgba(244,228,193,.78); font-size: 18px; line-height: 1.63; }
.musketeer-rule { max-width: 930px; margin: clamp(50px, 6vw, 72px) auto 0; padding: clamp(32px, 4.5vw, 52px); background: rgba(26,8,8,.72); border: 1px solid rgba(212,175,55,.34); border-top: 3px solid var(--gold); text-align: center; }
.musketeer-rule blockquote { margin: 22px 0; color: var(--gold-light); font-size: clamp(27px, 3.1vw, 42px); font-style: italic; line-height: 1.3; }
.musketeer-rule > p:last-child { margin: 0; color: rgba(244,228,193,.78); font-size: 18px; line-height: 1.6; }

.story-section--wine { color: var(--cream); background: rgba(41, 12, 14, .72); }
.legacy-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: clamp(48px, 6vw, 72px); border-block: 1px solid rgba(233,213,160,.22); }
.legacy-stats p { display: flex; flex-direction: column; margin: 0; padding: 34px 25px; border-right: 1px solid rgba(233,213,160,.17); }
.legacy-stats p:last-child { border-right: 0; }
.legacy-stats strong { color: var(--history-gold-pale); font-size: clamp(43px, 5vw, 70px); font-weight: 500; line-height: 1; }
.legacy-stats span { margin-top: 10px; color: rgba(255,249,237,.58); font-size: 14px; line-height: 1.35; }
.legacy-story { display: grid; grid-template-columns: minmax(320px, .85fr) minmax(300px, 1fr); align-items: center; gap: clamp(40px, 8vw, 115px); }
.legacy-story .history-photo { --frame: rgba(233,213,160,.3); }
.legacy-story .history-photo figcaption { color: rgba(255,249,237,.55); }
.legacy-story > div p { color: rgba(255,249,237,.74); font-size: clamp(20px, 2.1vw, 27px); line-height: 1.6; }
.archive-pair { display: grid; grid-template-columns: .7fr 1.3fr; align-items: end; gap: clamp(28px, 5vw, 64px); max-width: 980px; margin: clamp(54px, 7vw, 86px) auto 0; }
.archive-pair .history-photo:first-child { max-width: 350px; }
.archive-grid { columns: 3; column-gap: 18px; max-width: 1100px; margin-inline: auto; }
.archive-card { display: inline-block; width: 100%; margin: 0 0 18px; padding: 12px 12px 14px; background: rgba(26, 8, 8, .56); border: 1px solid rgba(212, 175, 55, .24); break-inside: avoid; }
.archive-card img { display: block; width: 100%; height: auto; max-width: 100%; margin-inline: auto; object-fit: contain; background: transparent; box-shadow: none; }
.archive-card figcaption { margin-top: 12px; }

.films { padding-block: clamp(66px, 7.5vw, 102px); color: var(--cream); background: rgba(26, 8, 8, .82); }
.films__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.film-card { overflow: hidden; background: #211815; border: 1px solid rgba(233,213,160,.16); }
.film-card__player { position: relative; aspect-ratio: 16 / 9; background: #090706; }
.film-card__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-card__body { padding: 25px 28px 30px; }
.film-card__body > p { margin: 0 0 5px; color: #aa8d61; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; }
.film-card h3 { margin: 0 0 18px; font-size: 35px; font-weight: 500; }
.film-card a { color: var(--history-gold-pale); font-size: 14px; text-underline-offset: 5px; }

.honour-code__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 44px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--history-line); }
.honour-code__item { display: grid; grid-template-columns: 45px 1fr; gap: 15px; align-items: start; padding: 25px 0; border-bottom: 1px solid var(--history-line); }
.honour-code__item span { color: var(--history-gold); font-size: 13px; letter-spacing: .12em; }
.honour-code__item p { margin: 0; font-size: 19px; line-height: 1.52; }

.anthem { position: relative; padding: clamp(68px, 8vw, 108px) 20px; overflow: hidden; color: var(--cream); background: rgba(26, 8, 8, .82); }
.anthem__inner {
    position: relative;
    width: min(940px, 100%);
    margin: auto;
    padding: clamp(46px, 6vw, 74px);
    border: 1px solid rgba(233, 213, 160, .46);
    box-shadow: 0 28px 70px rgba(4,0,0,.24), inset 0 0 48px rgba(212,175,55,.035);
    text-align: center;
}
.anthem__inner::before {
    position: absolute;
    inset: 10px;
    content: "";
    pointer-events: none;
    border: 1px solid rgba(233, 213, 160, .2);
}
.anthem .section-number { margin-bottom: 20px; }
.anthem .section-eyebrow { color: var(--history-gold-pale); }
.anthem__text { column-count: 2; column-gap: clamp(40px, 7vw, 90px); margin-top: 38px; text-align: left; }
.anthem__text p { break-inside: avoid; margin: 0 0 28px; color: rgba(255,249,237,.77); font-size: 18px; line-height: 1.62; }
.anthem__text strong { color: var(--history-gold-pale); font-weight: 500; }

.history-journal-cta {
    margin-block: clamp(30px, 4.5vw, 58px);
    padding: 0;
    overflow: hidden;
    color: var(--cream);
    background:
        radial-gradient(circle at 8% 20%, rgba(212,175,55,.13), transparent 31%),
        linear-gradient(135deg, rgba(77,20,29,.97), rgba(34,8,12,.98));
    border: 1px solid rgba(212,175,55,.3);
    box-shadow: 0 20px 58px rgba(0,0,0,.2);
}
.history-journal-cta__content { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 48px); width: 100%; padding: clamp(18px, 2.7vw, 28px); background: rgba(16,3,5,.16); }
.history-journal-cta__cover { position: relative; width: 150px; height: 196px; margin: 0; justify-self: center; overflow: hidden; border: 1px solid rgba(243,215,130,.38); box-shadow: 0 14px 34px rgba(0,0,0,.34); transform: rotate(-1.2deg); }
.history-journal-cta__cover::after { position: absolute; inset: 7px; content: ""; pointer-events: none; border: 1px solid rgba(243,215,130,.2); }
.history-journal-cta__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.history-journal-cta__body { min-width: 0; padding-right: clamp(4px, 2vw, 22px); }
.history-journal-cta .section-eyebrow { color: var(--history-gold-pale); }
.history-journal-cta h2 { max-width: 700px; color: #fff6e7; font-size: clamp(34px, 4vw, 52px); line-height: .98; }
.history-journal-cta__body > p:not(.section-eyebrow) { max-width: 650px; margin: 12px 0 0; color: rgba(255,249,237,.72); font-size: 18px; line-height: 1.45; }
.history-journal-cta .history-button { min-height: 44px; margin-top: 20px; padding-inline: 20px; font-size: 12px; }

.history-finale { display: grid; place-items: center; min-height: 490px; padding: 72px 20px; color: var(--cream); background-color: rgba(26,8,8,.78); background-image: linear-gradient(rgba(26,8,8,.74), rgba(26,8,8,.9)), var(--brand-bg-desktop); background-position: center; background-size: cover; text-align: center; }
.history-finale__content { width: min(790px, 100%); }
.history-finale .section-eyebrow { color: var(--history-gold-pale); }
.history-finale p:not(.section-eyebrow) { margin: 28px auto 0; color: rgba(255,249,237,.7); font-size: 22px; line-height: 1.55; }
.history-finale__actions { display: flex; justify-content: center; gap: 14px; margin-top: 38px; }
.history-button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; padding: 0 27px; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; transition: transform .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease; }
.history-page .history-button--gold { color: #24130c; background: var(--history-gold-pale); box-shadow: 0 8px 24px rgba(212,175,55,.18); }
.history-page .history-button--ghost { color: #fff9ed; border: 1px solid rgba(255,255,255,.45); }
.history-button:hover { transform: translateY(-2px); }
.history-page .history-button--gold:hover { color: #1a0808; background: #f8e6ae; box-shadow: 0 10px 30px rgba(212,175,55,.28); }
.history-page .history-button--ghost:hover { color: #fff9ed; border-color: rgba(243,217,139,.8); background: rgba(243,217,139,.08); }
.history-button:focus-visible { outline: 3px solid #fff9ed; outline-offset: 4px; }

.history-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 25px; padding: 30px clamp(20px, 4vw, 64px); color: rgba(244,228,193,.58); background: rgba(26,8,8,.94); border-top: 1px solid rgba(212,175,55,.22); font-size: 13px; }
.history-footer a { color: var(--history-gold-pale); text-decoration: none; }
.history-footer a:last-child { justify-self: end; }

.story-section,
.archive,
.films,
.honour-code,
.anthem,
.history-journal-cta,
.history-finale {
    position: relative;
    isolation: isolate;
}

.story-section::before,
.archive::before,
.honour-code::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(620px circle at 8% 12%, rgba(212, 175, 55, .045), transparent 68%),
        linear-gradient(180deg, rgba(255, 255, 255, .012), transparent 22%);
}

.section-heading {
    position: relative;
}

.section-heading::after {
    position: absolute;
    bottom: -18px;
    left: 78px;
    width: min(180px, 22vw);
    height: 1px;
    content: "";
    background: linear-gradient(90deg, var(--history-gold), transparent);
    opacity: .62;
    transform: scaleX(.42);
    transform-origin: left;
    transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}

.section-heading.is-visible::after { transform: scaleX(1); }

[data-tilt] {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --lift-z: 0px;
    --reveal-y: 0px;
    position: relative;
    transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translate3d(0, calc(var(--parallax-y, 0px) + var(--reveal-y)), var(--lift-z));
    transform-style: preserve-3d;
    will-change: transform;
}

[data-tilt]::after {
    position: absolute;
    inset: 0;
    z-index: 3;
    content: "";
    pointer-events: none;
    border: 1px solid transparent;
    background: linear-gradient(125deg, rgba(255,255,255,.11), transparent 24%, transparent 72%, rgba(212,175,55,.07));
    opacity: 0;
    transition: opacity .35s ease;
}

.history-photo[data-tilt] img,
.academician-entry[data-tilt] .academician-entry__portrait,
.tradition-card[data-tilt] img,
.emblem-card[data-tilt] .emblem-card__figure {
    transform: translateZ(18px);
    transition: filter .45s ease, box-shadow .45s ease, transform .45s ease;
}

.reveal { opacity: 1; transform: none; }
.history-motion .reveal { opacity: 0; transform: translateY(24px); transition: opacity .68s ease, transform .78s cubic-bezier(.2, .7, .2, 1); }
.history-motion [data-motion="heading"].reveal { transform: translate3d(-26px, 10px, 0); }
.history-motion [data-motion="card"].reveal { transform: translate3d(0, 20px, 0) scale(.985); }
.history-motion [data-tilt].reveal {
    --reveal-y: 22px;
    transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translate3d(0, calc(var(--parallax-y, 0px) + var(--reveal-y)), var(--lift-z));
}
.history-motion .reveal.is-visible { opacity: 1; transform: translateY(0); }
.history-motion [data-motion="heading"].reveal.is-visible { transform: translate3d(0, 0, 0); }
.history-motion [data-motion="card"].reveal.is-visible { transform: translate3d(0, 0, 0) scale(1); }
.history-motion [data-tilt].reveal.is-visible {
    --reveal-y: 0px;
    transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translate3d(0, calc(var(--parallax-y, 0px) + var(--reveal-y)), var(--lift-z));
}

.academician-entry:nth-child(2),
.tradition-card:nth-child(2),
.archive-card:nth-child(2),
.honour-code__item:nth-child(2) { transition-delay: 60ms; }
.academician-entry:nth-child(3),
.tradition-card:nth-child(3),
.archive-card:nth-child(3),
.honour-code__item:nth-child(3) { transition-delay: 110ms; }
.academician-entry:nth-child(4),
.tradition-card:nth-child(4),
.archive-card:nth-child(4),
.honour-code__item:nth-child(4) { transition-delay: 150ms; }

@media (pointer: fine) {
    [data-tilt] {
        transition: transform .22s ease-out, border-color .35s ease, box-shadow .35s ease;
    }

    [data-tilt].is-depth-active {
        --lift-z: 9px;
        z-index: 4;
        border-color: rgba(243, 215, 130, .34);
        box-shadow: var(--surface-shadow);
    }

    [data-tilt].is-depth-active::after { opacity: 1; }
    .history-photo[data-tilt].is-depth-active img,
    .tradition-card[data-tilt].is-depth-active img { filter: saturate(.92) contrast(1.06) brightness(1.035); }
}

@media (max-width: 1050px) {
    .history-hero { grid-template-columns: 1fr 1fr; }
    .history-hero h1 { font-size: clamp(53px, 7vw, 76px); }
    .legacy-stats { grid-template-columns: repeat(2, 1fr); }
    .legacy-stats p:nth-child(2) { border-right: 0; }
    .legacy-stats p:nth-child(-n+2) { border-bottom: 1px solid rgba(233,213,160,.17); }
    .archive-grid { columns: 2; }
}

@media (max-width: 900px) {
    .history-header { min-height: 62px; }
}

@media (max-width: 760px) {
    body.history-page { background-image: linear-gradient(rgba(26, 8, 8, .84), rgba(41, 12, 14, .92)), var(--brand-bg-mobile); background-attachment: scroll; }
    .history-header { grid-template-columns: 1fr auto; padding-inline: 18px; }
    .history-header__brand { font-size: 20px; }
    .history-header__back { font-size: 11px; }
    .section-shell { width: min(100% - 30px, 1180px); }
    .story-section, .archive, .honour-code { padding-block: 58px; }
    .section-heading { grid-template-columns: 42px 1fr; margin-bottom: 36px; }
    .section-heading::after { bottom: -13px; left: 42px; }
    .section-heading h2, .history-intro h2, .anthem h2, .history-journal-cta h2, .history-finale h2 { font-size: clamp(39px, 12vw, 58px); }

    .history-hero { grid-template-columns: 1fr; min-height: auto; padding: 58px 18px 66px; background-image: linear-gradient(rgba(26,8,8,.78), rgba(41,12,14,.64)), var(--brand-bg-mobile); }
    .history-hero h1 { font-size: clamp(52px, 16vw, 76px); }
    .history-hero__lead { font-size: 21px; }
    .history-hero__photo { justify-self: center; }
    .history-intro { grid-template-columns: 38px 1fr; gap: 0 6px; padding-block: 58px; }
    .history-intro blockquote { grid-column: 2; margin-top: 26px; font-size: 30px; }
    .history-intro__lead { font-size: 24px; }

    .editorial-lead { grid-template-columns: 1fr; gap: 15px; }
    .story-year { font-size: 68px; line-height: 1; }
    .founder-card, .legacy-story { grid-template-columns: 1fr; }
    .founder-card--reverse figure { order: 0; }
    .founder-card h3 { font-size: 39px; }
    .founders-note { padding: 28px 20px; }

    .foundation-split, .profile-row, .profile-row--reverse, .school-layout { grid-template-columns: 1fr; gap: 28px; }
    .foundation-split .history-photo, .profile-row .history-photo, .profile-row--reverse .history-photo { width: min(100%, 480px); max-width: none; justify-self: start; }
    .profile-row .history-photo, .profile-row--reverse .history-photo { order: -1; }
    .academicians { margin-top: 64px; padding-top: 0; }
    .academicians__intro { grid-template-columns: 1fr; gap: 20px; margin: 0 0 38px 42px; }
    .academicians__intro .section-eyebrow { grid-column: auto; margin-bottom: -6px; }
    .academicians__intro h3 { font-size: clamp(42px, 12vw, 58px); }
    .academician-entry { grid-template-columns: 46px minmax(110px, 152px) minmax(0, 1fr); gap: 16px; min-height: 214px; padding: 20px 18px 20px 8px; }
    .academicians__chronology::before { left: 30px; }
    .academician-entry::before { left: 25px; }
    .academician-entry__portrait { height: 162px; }
    .academician-entry__number { font-size: 10px; }
    .academician-entry__content h4 { font-size: clamp(27px, 5.6vw, 36px); }
    .academician-entry__role { font-size: 16px; }
    .academician-entry__years { grid-column: 3; flex-direction: row; align-items: center; gap: 10px; justify-content: flex-start; margin-top: -18px; font-size: 18px; text-align: left; }
    .academician-entry__years i { width: 24px; height: 1px; margin: 0; }
    .academician-entry__years strong { margin: 0; }
    .longform-prose p { font-size: 18px; line-height: 1.7; }
    .longform-quote { margin-top: 48px; padding: 28px 22px; }
    .visual-break { padding-block: 54px; }
    .principle-grid { grid-template-columns: 1fr; }
    .principle-grid p { border-right: 0; border-bottom: 1px solid var(--history-line); }
    .principle-grid p:last-child { border-bottom: 0; }

    .principles-layout { grid-template-columns: 1fr; }
    .emblem-card { padding: 28px; }
    .section-intro { margin-left: 42px; }
    .tradition-grid { grid-template-columns: 1fr; }
    .musketeer-rule { padding: 30px 22px; }

    .legacy-stats { grid-template-columns: 1fr 1fr; }
    .legacy-stats p { padding: 25px 17px; }
    .legacy-story > div p { font-size: 21px; }
    .archive-pair { grid-template-columns: 1fr; align-items: start; }
    .archive-pair .history-photo:first-child { max-width: 330px; }
    .films__grid, .honour-code__list { grid-template-columns: 1fr; }
    .archive-grid { columns: 1; max-width: 500px; }
    .archive-card { margin-bottom: 16px; padding: 10px 10px 13px; }
    .anthem__text { column-count: 1; }
    .anthem__inner { padding: 42px 26px; }
    .anthem__inner::before { inset: 7px; }
    .history-journal-cta { width: calc(100% - 30px); margin-block: 28px; }
    .history-journal-cta__content { grid-template-columns: 108px minmax(0, 1fr); gap: 18px; padding: 16px; }
    .history-journal-cta__cover { width: 100px; height: 138px; }
    .history-journal-cta__body { padding-right: 0; }
    .history-journal-cta h2 { font-size: clamp(30px, 8vw, 40px); }
    .history-journal-cta__body > p:not(.section-eyebrow) { font-size: 16px; }
    .history-journal-cta .history-button { width: 100%; padding-inline: 18px; }
    .history-finale { min-height: 460px; background-image: linear-gradient(rgba(26,8,8,.74), rgba(26,8,8,.9)), var(--brand-bg-mobile); }
    .history-finale__actions { flex-direction: column; }
    .history-footer { grid-template-columns: 1fr; text-align: center; }
    .history-footer a:last-child { justify-self: center; }
}

@media (max-width: 390px) {
    .history-hero { padding-inline: 15px; }
    .history-hero h1 { font-size: 51px; }
    .history-kicker { font-size: 11px; }
    .history-hero__meta { flex-direction: column; gap: 7px; }
    .history-hero__date strong { font-size: 20px; }
    .section-shell { width: calc(100% - 24px); }
    .section-heading { grid-template-columns: 32px 1fr; }
    .section-intro { margin-left: 32px; }
    .academicians__intro { margin-left: 32px; }
    .academician-entry { grid-template-columns: 34px minmax(0, 1fr); gap: 15px; padding: 24px 16px 28px 5px; }
    .academicians__chronology::before { left: 22px; }
    .academician-entry::before { left: 17px; }
    .academician-entry__number { grid-row: 1 / span 3; align-self: center; }
    .academician-entry__portrait, .academician-entry__content, .academician-entry__years { grid-column: 2; }
    .academician-entry__portrait { width: min(100%, 235px); height: 188px; justify-self: start; }
    .academician-entry__content h4 { font-size: 32px; }
    .academician-entry__years { margin-top: 0; }
    .legacy-stats { grid-template-columns: 1fr; }
    .legacy-stats p, .legacy-stats p:nth-child(2) { border-right: 0; border-bottom: 1px solid rgba(233,213,160,.17); }
    .legacy-stats p:last-child { border-bottom: 0; }
}

@media (pointer: coarse) {
    .history-pointer-light { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .history-pointer-light { display: none; }
    .history-motion .reveal { opacity: 1; transform: none; transition: none; transition-delay: 0ms; }
    .parallax-media, [data-tilt], .history-motion [data-tilt].reveal, .history-motion [data-tilt].reveal.is-visible { transform: none; transition: none; }
    [data-tilt]::after { display: none; }
    .section-heading::after { transform: scaleX(1); transition: none; }
}

@media (min-width: 1500px) {
    .section-shell {
        width: min(var(--site-shell-max), calc(100% - var(--site-gutter) - var(--site-gutter)));
    }
    .story-section,
    .archive,
    .honour-code { padding-block: clamp(108px, 6.5vw, 144px); }
    .history-hero {
        grid-template-columns: minmax(0, .78fr) minmax(0, 1.35fr);
        gap: clamp(70px, 5.5vw, 118px);
        min-height: calc(100svh - var(--site-header-height));
        padding: clamp(72px, 5vw, 104px) var(--site-gutter);
    }
    .history-hero h1 { font-size: clamp(96px, 6.4vw, 132px); }
    .history-hero__lead { max-width: 680px; font-size: clamp(24px, 1.45vw, 31px); }
    .history-hero__photo { width: 100%; }
    .history-hero__photo img { width: 100%; max-width: 100%; }
    .history-kicker,
    .section-eyebrow { font-size: 15px; }
    .longform-prose p { font-size: var(--site-body-large); }
}
