/* Homepage composition, following the bank's observed public layout.
   Loaded after screen.css; the shared page, navigation and editor styles stay there. */
.home-template main > .history-section,
.home-template .services-section > .wrap,
.home-template .locations-section > .wrap,
.home-template .journal-official > .wrap,
.home-template .quick-entry > .wrap,
.home-template .interest-grid {
    width: min(1600px, calc(100% - 60px));
    margin-inline: auto;
}

/* The original history passage is a single oversized bronze statement. */
.history-section { position: relative; overflow: visible; padding-block: clamp(120px, 14vw, 230px) 90px; }
.history-label { display: block; border: 0; padding: 0; margin: 0 0 30px; }
.history-label .caption { color: #111; font-size: 12px; font-weight: 400; letter-spacing: .16em; margin: 0; }
.history-label .section-index { display: none; }
.history-section > .caption { color: #111; font-size: 12px; margin-bottom: 30px; }
.history-grid { display: block; }
.history-grid > h2 { display: none; }
.history-copy { max-width: none; }
.history-statement { position: relative; z-index: 2; font-family: var(--serif); font-size: clamp(42px, 5.45vw, 86px); font-weight: 400; line-height: 1.32; letter-spacing: -.018em; color: var(--bronze); margin: 0; text-wrap: pretty; }
.history-copy > p:not(.history-statement) { max-width: 760px; font-size: 15px; margin-top: 30px; }
.history-copy > .dot-link { margin-top: 18px; }
.editorial-image-history { position: relative; display: block; width: min(400px, 30%); aspect-ratio: 4 / 5; margin: 55px 9% 0 auto; background: none; overflow: hidden; }
.editorial-image-history::before, .editorial-image-history::after { display: none; }
.editorial-image-history > img, img.editorial-image-history { width: 100%; height: 100%; object-fit: cover; }
img.editorial-image-history { width: min(400px, 30%); height: auto; }

/* Four numbered links, with the photograph moving into the row on hover. */
.home-template .services-section { padding-block: 50px 115px; }
.home-template .services-section .caption { margin-bottom: 20px; font-size: 12px; }
.home-template .services-section h2 { display: none; }
.home-template .services-section h2.caption { display: block; font: 600 12px/1.5 var(--sans); letter-spacing: .16em; margin-bottom: 15px; }
.home-template .service-list { width: 100%; max-width: 960px; }
.home-template .service-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 32px; gap: 14px; align-items: center; min-height: 170px; padding: 26px 0 25px; border: 0; border-bottom: 1px solid #111; color: #111; }
.home-template .service-number { grid-column: 1 / -1; grid-row: 1; display: block; align-self: start; padding: 0; color: var(--bronze); font: 400 13px/1.3 var(--sans); letter-spacing: .15em; }
.home-template .service-name { position: relative; z-index: 2; grid-column: 1; grid-row: 2; width: max-content; max-width: 100%; font: 400 clamp(38px, 4.1vw, 62px)/1.15 var(--serif); letter-spacing: -.01em; }
.home-template .service-name::after { content: ''; position: absolute; left: calc(100% + 16px); top: 51%; width: 10px; height: 10px; border-radius: 50%; background: var(--red); opacity: 0; transform: translateY(-50%); }
.home-template .service-description { display: none; }
.home-template .service-arrow { grid-column: 2; grid-row: 2; font-size: 22px; opacity: 0; }
.home-template .service-art { position: absolute; z-index: 1; top: 50%; right: -85px; display: block; width: clamp(170px, 20vw, 300px); height: auto; aspect-ratio: 1.5; background: none; opacity: 0; transform: translateY(-30%) scale(.92); transition: opacity .3s, transform .3s; pointer-events: none; }
.home-template .service-art::before, .home-template .service-art::after { display: none; }
.home-template .service-art img { width: 100%; height: 100%; object-fit: cover; }
.home-template .service-row-feature .service-art,
.home-template .service-row:hover .service-art,
.home-template .service-row:focus-visible .service-art { opacity: 1; transform: translateY(-30%) scale(1); }
.home-template .service-row:hover .service-name::after,
.home-template .service-row:focus-visible .service-name::after,
.home-template .service-row-feature .service-name::after { opacity: 1; }
.home-template .service-row:hover { color: #111; }
.home-template .institutional-link { margin-top: 28px; }

/* Poster and text form one full-width film panel. */
.film-teaser { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 640px; height: min(100svh, 1000px); overflow: hidden; color: #fff; background: #777; text-align: center; }
.film-art { position: absolute; z-index: -2; inset: 0; opacity: 1; background: none; }
.film-art::before { position: absolute; z-index: 1; inset: 0; display: block; background: #000; opacity: .3; clip-path: none; }
.film-art::after { display: none; }
.film-art img, img.film-art { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.film-ring, .film-word { display: none; }
.film-copy { position: relative; z-index: 2; padding-block: 90px; }
.film-copy .caption { color: #fff; margin-bottom: 25px; }
.film-copy h2 { max-width: 850px; margin: 0 auto 36px; font-size: clamp(40px, 4.4vw, 66px); line-height: 1.2; }
.film-dialog { width: min(1100px, calc(100% - 40px)); }
.film-dialog video { display: block; width: 100%; max-height: 65svh; background: #000; }
.film-dialog > .note { margin: 20px 0 0; }
.home-template .outline-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 45px; max-width: 100%; padding: 12px 20px; border: 1px solid currentColor; border-radius: 0; background: transparent; color: inherit; font: 600 12px/1.5 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.home-template .outline-button::after { content: ''; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.home-template .outline-button:hover { color: #111; background: #fff; text-decoration: none; }

/* White, horizontal statement rail; no invented value cards. */
.values-strip { overflow: hidden; background: #fff; padding-block: 115px; }
.values-strip .wrap { width: 100%; }
.values-grid { display: flex; width: 100%; gap: 60px; overflow-x: auto; padding: 10px 30px 20px; scrollbar-width: thin; scrollbar-color: #ccc transparent; }
.values-grid > div:first-child:has(h2) { display: none; }
.value-item { display: flex; flex: 0 0 auto; min-height: 0; max-width: none; border: 0; padding: 0; }
.values-grid > p.value-item { display: block; margin: 0; font: 400 clamp(30px, 3vw, 48px)/1.25 var(--serif); white-space: nowrap; }
.value-item strong { display: block; font: 400 clamp(30px, 3vw, 48px)/1.25 var(--serif); white-space: nowrap; }
.value-item strong br { display: none; }
.value-item span { display: none; }

/* The interest guide is white, with rounded grey fields and a square photo. */
.interest-section { background: #fff; color: #111; padding: 0; }
.interest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; min-height: min(850px, 100svh); }
.interest-copy { grid-column: 1; grid-row: 1; align-self: center; padding: 90px 75px 90px 0; min-width: 0; }
.interest-copy .caption { color: var(--bronze); font-size: 12px; margin-bottom: 14px; }
.interest-copy > h2 { font: 400 12px/1.6 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 38px; color: #111; }
.interest-copy .topic-form { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 560px; }
.interest-copy .topic-form > label { display: block; margin: 0; font: 400 clamp(34px, 3.1vw, 46px)/1.25 var(--serif); }
.interest-copy .topic-form select { display: block; width: 100%; max-width: 440px; min-height: 60px; padding: 4px 48px 4px 22px; color: #111; background-color: #ebebeb; border: 0; border-radius: 100px; font: 400 clamp(32px, 3.05vw, 44px)/1.3 var(--serif); }
.interest-copy .topic-form select option { color: #111; background: #fff; font: 400 18px/1.5 var(--sans); }
.interest-copy .topic-form select:focus-visible, .interest-amount:focus-visible { outline-color: var(--red); }
.interest-detail { width: 100%; max-width: 540px; min-height: 0; margin: 0; padding: 0; border: 0; color: #111; }
.interest-detail[hidden] { display: none; }
.interest-sentence { display: block; margin: 0 0 14px; font: 400 clamp(32px, 3.05vw, 44px)/1.4 var(--serif); }
.interest-detail label { display: block; padding-left: 22px; margin: 8px 0 4px; font: 400 13px/1.4 var(--sans); }
.interest-inline { display: flex; align-items: center; position: relative; width: min(100%, 335px); margin: 0 0 8px; background: #ebebeb; border-radius: 100px; }
.interest-amount { display: block; width: 100%; min-width: 0; min-height: 60px; padding: 3px 68px 3px 22px; color: #111; background: transparent; border: 0; border-radius: 100px; font: 400 clamp(32px, 3.05vw, 44px)/1.3 var(--serif); appearance: textfield; }
.interest-amount::-webkit-outer-spin-button, .interest-amount::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.interest-amount::placeholder { color: #666; opacity: 1; }
.interest-inline > span { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 400 40px/1 var(--serif); pointer-events: none; }
.interest-note { max-width: 460px; margin: 12px 0 0; color: #666; font: 400 12px/1.6 var(--sans); }
.interest-copy .topic-form > .pill-button { align-self: flex-start; margin-top: 24px; padding: 12px 20px; min-height: 46px; border: 1px solid #111; border-radius: 0; background: #fff; color: #111; font-size: 11px; letter-spacing: .16em; }
.interest-copy .topic-form > .pill-button::before { order: 1; background: var(--red); }
.interest-copy .topic-form > .pill-button:hover { color: #fff; background: #111; }
.interest-art { grid-column: 2; grid-row: 1; position: relative; align-self: stretch; width: 100%; min-height: 0; margin: 0; overflow: hidden; background: #f2f2f2; }
.interest-art::before, .interest-art::after { display: none; }
.interest-art img { width: 100%; height: 100%; min-height: 620px; object-fit: cover; object-position: center; }
.interest-shape, .interest-art-label { display: none; }

/* The bank's location cards are a horizontal photo rail, not a grid of tiles. */
.locations-section { padding-block: 110px; overflow: hidden; }
.locations-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 40px; }
.locations-heading h2 { max-width: 1000px; margin: 0; font-size: clamp(34px, 3vw, 46px); line-height: 1.2; }
.locations-heading .caption { margin-bottom: 12px; font-size: 12px; }
.locations-heading > .dot-link { flex: 0 0 auto; font-size: 10px; }
.rail-controls { display: flex; flex: 0 0 auto; gap: 14px; align-items: center; }
.rail-controls button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; color: var(--bronze); font-size: 25px; line-height: 1; }
.rail-controls button:hover { color: #111; }
.rail-controls button:disabled { opacity: .3; cursor: default; }
.locations-grid { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 90px) / 4); align-items: start; gap: 30px; overflow-x: auto; padding-bottom: 24px; border: 0; background: none; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #ccc transparent; }
.location-card { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; min-width: 0; min-height: 0; padding: 0; border: 0; background: none; color: #111; scroll-snap-align: start; overflow: visible; }
.location-card::before, .location-card::after { display: none; }
.location-card > img, .location-card > picture { display: block; width: 100%; aspect-ratio: 5 / 6; object-fit: cover; margin-bottom: 20px; }
.location-card picture img { width: 100%; height: 100%; object-fit: cover; }
.location-card strong { position: static; margin: 0 0 10px; font: 400 24px/1.2 var(--serif); }
.location-card p { position: static; max-width: none; margin: 0; font-size: 13px; line-height: 1.6; color: #111; }
.location-code { display: none; }
.location-card:hover { color: #111; background: none; text-decoration: none; }
.location-card:hover strong { text-decoration: underline; text-underline-offset: 4px; }

/* Compact full-width campaign CTA. */
.home-cta { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 460px; padding: 75px 30px; overflow: hidden; background: #777; color: #fff; text-align: center; }
.home-cta > img, .home-cta > picture, .home-cta > .home-cta-art { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-cta > picture img, .home-cta-art img { width: 100%; height: 100%; object-fit: cover; }
.home-cta::before { position: absolute; z-index: -1; inset: 0; background: #0006; content: ''; }
.home-cta-inner { display: block; width: min(100%, 1080px); margin-inline: auto; }
.home-cta .caption { color: #fff; margin-bottom: 16px; font-size: 12px; }
.home-cta h2 { margin: 0 auto 28px; max-width: 1000px; font-size: clamp(36px, 3.55vw, 54px); line-height: 1.2; }
.home-cta h2 + p, .home-cta-inner > div > p:not(.caption) { margin: 0 0 28px; font: 400 clamp(27px, 2.5vw, 38px)/1.25 var(--serif); }

/* Featured story on the left, five smaller stories on the right. */
.journal-official { width: min(1600px, calc(100% - 60px)); padding-block: 110px 90px; }
.journal-official .section-heading { margin-bottom: 40px; }
.journal-official .caption { margin-bottom: 14px; font-size: 12px; }
.journal-official h2 { font-size: clamp(36px, 3.4vw, 50px); }
.journal-official-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(50px, 10vw, 145px); align-items: start; }
.news-card { min-width: 0; }
.news-card > a { display: block; text-decoration: none; }
.news-card img { display: block; width: 100%; height: auto; object-fit: cover; }
.news-card h3 { margin: 12px 0 4px; font: 600 20px/1.45 var(--sans); text-wrap: pretty; }
.news-card time { display: block; color: #666; font: 400 13px/1.5 var(--sans); }
.news-card p { margin-bottom: 0; }
.news-card.news-main { display: block; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 6px; margin-top: 20px; color: var(--bronze); font: 400 13px/1.5 var(--sans); }
.news-meta > span { color: #aaa; }
.news-card .news-more { display: none; }
.news-card .caption, .news-card .news-tag, .news-card .tag, .news-card .post-card-meta a { display: inline-flex; align-items: center; width: fit-content; margin: 18px 0 0; padding: 6px 14px; border-radius: 30px; background: #f7f5f1; color: var(--bronze); font: 400 13px/1.4 var(--sans); text-transform: none; letter-spacing: 0; }
.news-main > a > img, .news-main > img { aspect-ratio: 1.5; object-fit: cover; }
.news-list { display: flex; flex-direction: column; gap: 30px; min-width: 0; }
.news-list .news-card > a { display: grid; grid-template-columns: minmax(110px, 30%) minmax(0, 1fr); gap: 24px; align-items: start; }
.news-list > a.news-card { display: grid; grid-template-columns: minmax(110px, 30%) minmax(0, 1fr); gap: 24px; align-items: start; }
.news-list > a.news-card .news-meta { margin-top: 0; }
.news-list .news-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.news-list .news-card h3 { margin-top: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-list .news-card .caption, .news-list .news-card .news-tag, .news-list .news-card .tag { margin-top: 0; }
.news-list > .dot-link { align-self: flex-start; margin-top: 0; font-size: 12px; }
.news-card a:hover h3 { text-decoration: underline; }
.news-card:hover h3 { text-decoration: underline; }
.journal-official > .outline-button { margin: 35px 0 0 calc((100% - clamp(50px, 10vw, 145px)) * .54545 + clamp(50px, 10vw, 145px)); border: 0; padding-left: 0; }

/* Compact circular destinations directly above the footer. */
.quick-entry { padding-block: 80px 100px; background: #fff; }
.quick-entry .section-heading { margin-bottom: 28px; }
.quick-entry .section-heading h2 { display: none; }
.quick-entry .caption { font-size: 12px; }
.quick-entry > .wrap > h2.caption { margin-bottom: 28px; font: 600 12px/1.5 var(--sans); letter-spacing: .16em; }
.quick-entry-grid { display: flex; gap: 36px; align-items: center; justify-content: space-between; overflow-x: auto; padding-block: 5px 16px; border: 0; background: none; scrollbar-width: thin; scrollbar-color: #ccc transparent; }
.quick-entry-grid a { display: flex; flex-direction: column; flex: 0 0 115px; justify-content: flex-start; align-items: center; min-height: 0; padding: 0; gap: 15px; background: none; color: #111; font: 400 13px/1.5 var(--sans); text-align: center; }
.quick-entry-grid a > img, .quick-entry-grid a > picture { display: block; width: 96px; height: 96px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; overflow: hidden; }
.quick-entry-grid picture img { width: 100%; height: 100%; object-fit: cover; }
.quick-entry-grid a > span { font: inherit; color: inherit; }
.quick-entry-grid a > b { display: none; }
.quick-entry-grid a:hover { color: var(--bronze); background: none; text-decoration: none; }

@media (min-width: 992px) {
    .news-main { position: sticky; top: calc(var(--header-height) + 30px); }
}
@media (max-width: 1100px) {
    .home-template .service-list { max-width: 78%; }
    .home-template .service-art { right: -160px; }
    .interest-copy { padding-right: 40px; }
    .interest-art img { min-height: 560px; }
    .locations-grid { grid-auto-columns: calc((100% - 60px) / 3); }
    .journal-official-grid { gap: 50px; }
    .news-list .news-card > a { gap: 16px; }
    .news-list > a.news-card { gap: 16px; }
    .journal-official > .outline-button { margin-left: calc((100% - 50px) * .54545 + 50px); }
    .news-card h3 { font-size: 17px; }
    .quick-entry-grid { gap: 28px; }
}
@media (max-width: 767px) {
    .home-template main > .history-section,
    .home-template .services-section > .wrap,
    .home-template .locations-section > .wrap,
    .home-template .journal-official > .wrap,
    .home-template .quick-entry > .wrap,
    .home-template .interest-grid, .journal-official { width: calc(100% - 40px); }
    .history-section { padding-block: 85px 50px; }
    .history-label { margin-bottom: 25px; }
    .history-statement { font-size: clamp(34px, 6.5vw, 50px); line-height: 1.35; }
    .editorial-image-history, img.editorial-image-history { width: 45%; margin: 35px 0 0 auto; }
    .home-template .services-section { padding-block: 35px 65px; }
    .home-template .service-list { max-width: 100%; }
    .home-template .service-row { min-height: 145px; padding-block: 21px; }
    .home-template .service-name { font-size: clamp(31px, 5.5vw, 45px); max-width: 76%; }
    .home-template .service-name::after { left: calc(100% + 9px); width: 8px; height: 8px; }
    .home-template .service-art { width: 140px; right: 0; transform: translateY(-8%); opacity: 0; }
    .home-template .service-row-feature .service-art { opacity: 0; }
    .home-template .service-row:hover .service-art, .home-template .service-row:focus-visible .service-art { opacity: .3; transform: translateY(-8%); }
    .film-teaser { height: 75svh; min-height: 520px; }
    .film-copy { padding-block: 65px; }
    .film-copy h2 { font-size: clamp(34px, 6vw, 46px); }
    .values-strip { padding-block: 65px; }
    .values-grid { gap: 35px; padding-inline: 20px; }
    .value-item strong { font-size: 30px; }
    .values-grid > p.value-item { font-size: 30px; }
    .interest-grid { grid-template-columns: 1fr; min-height: 0; }
    .interest-copy { grid-column: 1; grid-row: 1; padding: 35px 0 55px; }
    .interest-copy > h2 { margin-bottom: 30px; }
    .interest-copy .topic-form { gap: 12px; }
    .interest-copy .topic-form > label { font-size: 34px; }
    .interest-copy .topic-form select, .interest-amount, .interest-sentence { font-size: 34px; }
    .interest-copy .topic-form select, .interest-amount { min-height: 56px; }
    .interest-copy .topic-form > .pill-button { margin-top: 20px; }
    .interest-art { grid-column: 1; grid-row: 2; aspect-ratio: 1; }
    .interest-art img { min-height: 0; height: 100%; }
    .locations-section { padding-block: 65px; }
    .locations-heading { display: block; margin-bottom: 30px; }
    .locations-heading h2 { font-size: 34px; }
    .locations-heading > .dot-link { margin-top: 20px; }
    .locations-grid { gap: 20px; grid-auto-columns: minmax(225px, 72%); }
    .location-card strong { font-size: 25px; }
    .home-cta { min-height: 420px; padding: 65px 20px; }
    .home-cta h2 { font-size: 36px; margin-bottom: 24px; }
    .journal-official { padding-block: 65px 35px; }
    .journal-official h2 { font-size: 35px; }
    .journal-official-grid { grid-template-columns: 1fr; gap: 40px; }
    .news-main { position: static; }
    .news-main h3 { font-size: 20px; }
    .news-list { gap: 25px; }
    .news-list .news-card > a { grid-template-columns: 30% minmax(0, 1fr); gap: 18px; }
    .news-list > a.news-card { grid-template-columns: 30% minmax(0, 1fr); gap: 18px; }
    .journal-official > .outline-button { margin-left: 0; }
    .news-card time { font-size: 12px; }
    .quick-entry { padding-block: 55px 65px; }
    .quick-entry-grid { justify-content: flex-start; gap: 25px; }
    .quick-entry-grid a { flex-basis: 100px; font-size: 12px; }
    .quick-entry-grid a > img, .quick-entry-grid a > picture { width: 88px; height: 88px; }
}
@media (max-width: 380px) {
    .home-template main > .history-section,
    .home-template .services-section > .wrap,
    .home-template .locations-section > .wrap,
    .home-template .journal-official > .wrap,
    .home-template .quick-entry > .wrap,
    .home-template .interest-grid, .journal-official { width: calc(100% - 32px); }
    .history-statement { font-size: 33px; }
    .home-template .service-name { font-size: 29px; }
    .film-copy h2 { font-size: 33px; }
    .interest-copy .topic-form > label, .interest-copy .topic-form select, .interest-amount, .interest-sentence { font-size: 31px; }
    .interest-inline > span { font-size: 35px; }
    .news-list .news-card > a { gap: 13px; }
    .news-list > a.news-card { gap: 13px; }
    .news-list .news-card h3 { font-size: 15px; }
    .news-card .news-tag, .news-card .tag { padding: 5px 10px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-template .service-art { transition: none; }
    .values-grid, .locations-grid, .quick-entry-grid { scroll-behavior: auto; }
}
