.reference-home-entry {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(20px, 4vw, 52px);
    align-items: center;
    background: #f8f5ed;
    border-block: 1px solid #ded6c3;
    padding: 22px;
}
.reference-home-entry h2 { margin: 0 0 .35em; }
.reference-home-entry p { max-width: 34ch; margin: 0 0 1.2em; }
.reference-entry-photo img { display: block; width: 100%; height: auto; aspect-ratio: 2.15; object-fit: cover; }
.reference-action {
    display: inline-flex;
    align-items: center;
    gap: .65em;
    background: linear-gradient(145deg, #a88329, #85641b);
    color: #fff;
    border: 1px solid #c8a451;
    padding: .64em 1.18em;
    font: bold 1rem/1.25 Georgia, serif;
    text-decoration: none;
}
.reference-action:hover { color: #fff; background: #735419; }
.reference-home {
    --ref-ink: #142c51;
    --ref-paper: #f9f7f0;
    --ref-gold: #876715;
    --ref-rule: #dbd6c9;
    background: #edebe4;
    color: #211f1b;
    font: 18px/1.28 var(--serif);
}
.reference-home [hidden] { display: none !important; }
.reference-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: min(1160px, 100%);
    margin: 0 auto;
    padding: 9px clamp(14px, 4vw, 40px);
    color: var(--ref-ink);
    font: 12px/1.4 var(--sans);
}
.reference-toolbar a { color: inherit; }
.reference-toolbar nav { display: flex; gap: 11px; }
.reference-toolbar [aria-current] { text-decoration: underline 2px var(--ref-gold); text-underline-offset: 4px; }
.reference-paper { max-width: 1160px; margin: 0 auto 24px; background: var(--ref-paper); box-shadow: 0 5px 25px #2a241419; }
.reference-paper > header { background: linear-gradient(110deg, #fcfbf8, #f8f5ed); padding: 0 clamp(18px, 4.3vw, 52px) 10px; }
.reference-masthead { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(150px, .9fr); align-items: center; gap: 6%; padding: 13px 0 17px; }
.reference-identity { width: fit-content; max-width: 100%; text-align: center; color: var(--ref-ink); }
.reference-arc { display: block; width: 46%; height: 33px; margin: 0 auto -5px; color: #687247; }
.reference-name { display: block; color: inherit; font: bold clamp(23px, 4vw, 49px)/1.01 var(--serif); letter-spacing: -.035em; text-decoration: none; }
.reference-name:hover { color: inherit; }
.reference-principles { font-size: clamp(8px, 1.17vw, 13px); letter-spacing: .14em; margin: 12px 0 10px; }
.reference-ims { display: flex; align-items: center; gap: 12px; color: inherit; font: italic 1rem/1.2 var(--serif); text-decoration: none; }
.reference-ims::before, .reference-ims::after { content: ""; height: 1px; background: #8390a0; flex: 1; }
.reference-motto { font: italic clamp(15px, 2.05vw, 23px)/1.28 var(--serif); color: var(--ref-ink); margin: 0; }
.reference-home #primary-nav.reference-nav { display: flex; flex-flow: row wrap; justify-content: space-between; align-items: stretch; gap: 0 13px; background: none; border-block: 1px solid var(--ref-rule); padding: 0; }
.reference-home #primary-nav.reference-nav > a, .reference-home .reference-nav .ecosystem-toggle {
    padding: 11px 0 9px;
    color: var(--ref-ink);
    border: 0;
    border-bottom: 3px solid transparent;
    font: bold clamp(12px, 1.42vw, 15px)/1.2 var(--serif);
    text-decoration: none;
}
.reference-home #primary-nav.reference-nav .reference-active,
.reference-home #primary-nav.reference-nav > a:hover,
.reference-home .reference-nav .ecosystem-toggle[aria-expanded="true"] { border-bottom-color: #a78427; }
.reference-home .reference-nav .ecosystem-menu { position: absolute; top: 100%; right: 0; left: auto; }
.reference-hero { min-height: 350px; aspect-ratio: 2.17; position: relative; display: grid; align-items: end; color: #fff; isolation: isolate; background: #263c30; }
.reference-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 47%; z-index: -2; }
.reference-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #09150eea, #09150e20 84%), linear-gradient(90deg, #10171085, transparent 82%); }
.reference-hero-copy { padding: 26px 5% 3.4%; }
.reference-kicker { text-transform: uppercase; letter-spacing: .14em; font: bold 13px/1.4 var(--sans); margin: 0 0 15px; }
.reference-kicker::after { content: ""; display: block; width: 43px; height: 3px; background: #ceac50; margin-top: 9px; }
.reference-hero h1 { color: #fff; font: bold clamp(34px, 5.1vw, 63px)/1.02 var(--serif); margin: 0; letter-spacing: -.03em; text-shadow: 0 2px 6px #0008; }
.reference-hero h1 + p { max-width: 48ch; font: italic clamp(16px, 2.13vw, 23px)/1.22 var(--serif); margin: 9px 0 18px; }
.reference-dots { position: absolute; right: 3.3%; bottom: 5%; display: flex; gap: 3px; }
.reference-dots button { display: grid; place-items: center; width: 25px; height: 30px; border: 0; padding: 0; background: transparent; cursor: pointer; }
.reference-dots button::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #f9f4deaa; border: 1px solid #fff8; }
.reference-dots button[aria-pressed="true"]::before { background: #d3ab42; }
.reference-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(15px, 4vw, 45px); padding: 28px 2.5% 31px; background: linear-gradient(130deg, #fffdf7, #f8f5ed); }
.reference-features article { display: flex; flex-direction: column; min-width: 0; }
.reference-features h2 { font: bold clamp(19px, 2.48vw, 30px)/1.08 var(--serif); color: var(--ref-ink); margin: 0 0 14px; letter-spacing: -.02em; }
.reference-features h2::after { content: ""; display: block; width: 43px; height: 2px; background: #9a8a53; margin-top: 11px; }
.reference-features img { display: block; width: 100%; height: auto; aspect-ratio: 1.8; object-fit: cover; }
.reference-features p { margin: 11px 0 13px; }
.reference-features a { align-self: start; margin-top: auto; color: #71550e; font-weight: bold; text-underline-offset: 3px; }
.reference-features a span { display: inline-block; padding-left: 4px; }
.reference-closing { position: relative; isolation: isolate; overflow: hidden; padding: 22px 5% 26px; background: #f4edda; }
.reference-closing img { position: absolute; width: 59%; height: 100%; inset: 0 0 0 auto; object-fit: cover; object-position: 51% 48%; z-index: -2; }
.reference-closing::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #f5efdd 44%, #f5efdd00 90%); z-index: -1; }
.reference-closing h2 { font: italic clamp(23px, 3.1vw, 39px)/1.1 var(--serif); color: var(--ref-ink); margin: 0 0 8px; }
.reference-closing p { max-width: 48ch; margin: 0; }
.reference-credits { border-top: 1px solid var(--ref-rule); padding: 10px 5%; font: 12px/1.55 var(--sans); }
.reference-credits summary { cursor: pointer; color: var(--ref-ink); }
.reference-credits li { margin-block: 5px; }
@media (max-width: 760px) {
    .reference-home { font-size: 16px; }
    .reference-toolbar > span { display: none; }
    .reference-masthead { grid-template-columns: 1fr; justify-items: center; gap: 10px; padding-top: 8px; }
    .reference-motto { text-align: center; }
    .reference-motto br { display: none; }
    .reference-arc { height: 22px; }
    .reference-ims { font-size: .9rem; }
    .reference-home #primary-nav.reference-nav { justify-content: center; }
    .reference-home #primary-nav.reference-nav > a, .reference-home .reference-nav .ecosystem-toggle { padding: 8px 0 5px; }
    .reference-home #primary-nav.reference-nav { position: relative; }
    .reference-home .reference-nav .ecosystem-nav { position: static; }
    .reference-home .reference-nav .ecosystem-menu { left: 0; right: 0; width: 100%; max-width: none; }
    .reference-hero { aspect-ratio: auto; min-height: 355px; }
    .reference-hero-copy { padding-bottom: 44px; }
    .reference-dots { bottom: 6px; }
    .reference-features { gap: 20px; padding-inline: 5%; }
}
@media (max-width: 560px) {
    .reference-home-entry, .reference-features { grid-template-columns: 1fr; }
    .reference-features article + article { padding-top: 16px; border-top: 1px solid var(--ref-rule); }
    .reference-closing::after { background: linear-gradient(90deg, #f5efdd 32%, #f5efddd6 69%, #f5efdd1c); }
    .reference-closing p { max-width: 29ch; }
}


@media (min-width: 561px) {
    .reference-features { row-gap: 0; grid-template-rows: auto auto 1fr auto; }
    .reference-features article { display: grid; grid-template-rows: subgrid; grid-row: span 4; }
}
