/* A still gallery backdrop, with a brief entrance on the first page visit. */
.immersive-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    min-height: min(860px, max(720px, calc(100svh - 90px)));
    background: #f5f1e7;
}
.archive-atmosphere {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 42%, #fffdf5 0%, #f5f1e7 48%, #e6dfcd 100%);
}
.archive-atmosphere::before {
    content: '';
    position: absolute;
    inset: 25px 30px;
    border: 1px solid #a89e7d35;
}
.archive-atmosphere::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ffffff40, transparent 45%, #aa916411);
}
.archive-studies {
    position: absolute;
    inset: 0;
    mask-image: linear-gradient(90deg, #000 0%, #000 11%, transparent 29%, transparent 71%, #000 89%, #000);
}
.archive-study {
    position: absolute;
    width: clamp(180px, 17vw, 260px);
    padding: 8px;
    border: 1px solid #a89e7d80;
    background: #e4dcc6;
    box-shadow: 0 18px 35px #574a3020, inset 0 0 0 3px #f9f5e855;
    opacity: .6;
}
.archive-study-mat {
    padding: 17px;
    background: #faf6eb;
    border: 1px solid #b0a48955;
}
.archive-study img { width: 100%; aspect-ratio: .8; object-fit: cover; filter: saturate(.65) sepia(.12); }
.archive-study > span { display: block; padding: 9px 3px 2px; color: #746e56; font-size: 7px; letter-spacing: .16em; }
.archive-study-0 { top: 10%; left: -48px; }
.archive-study-1 { bottom: 8%; left: 4vw; width: clamp(140px, 12vw, 185px); }
.archive-study-1 img { aspect-ratio: 1.15; }
.archive-study-2 { top: 8%; right: -45px; }
.archive-study-3 { bottom: 7%; right: 4vw; width: clamp(150px, 13vw, 200px); }
.archive-study-3 img { aspect-ratio: 1.1; }
.archive-grain {
    position: absolute;
    inset: 0;
    opacity: .1;
    background-image: radial-gradient(#75674755 .55px, transparent .55px);
    background-size: 4px 4px;
}
.immersive-hero .discovery-hero-copy {
    position: relative;
    z-index: 2;
    width: min(100%, 1000px);
    padding: 85px 40px 125px;
    text-align: center;
    margin: 0 auto;
}
.immersive-hero .eyebrow { justify-content: center; margin-bottom: 28px; color: #697052; }
.immersive-hero .eyebrow::before, .immersive-hero .eyebrow::after { content: ''; width: 25px; height: 1px; background: #96977580; }
.immersive-hero h1 { font-size: clamp(48px, 5.9vw, 86px); line-height: 1.12; letter-spacing: -.055em; color: #2d3327; }
.immersive-hero h1 em { color: #69734b; }
.title-line { display: block; overflow: clip; padding: .08em .1em .12em; margin: -.08em -.1em -.12em; }
.title-line > span { display: block; }
.immersive-hero .discovery-intro { max-width: 620px; margin: 28px auto 36px; font-size: 16px; line-height: 1.8; color: #6c6d5f; }
.hero-search-stage { position: relative; }
.immersive-hero .art-search { max-width: 780px; margin: 0 auto; text-align: left; }
.immersive-hero .art-search-form { padding: 10px; border-radius: 8px; border-color: #b8baa4; background: #fffefb; box-shadow: 0 14px 40px #6a604715, 0 2px 5px #6a604708; }
.immersive-hero .art-search-form > svg { width: 25px; height: 25px; margin: 0 17px; }
.immersive-hero .art-search input { font-size: 18px; padding-block: 20px; }
.immersive-hero .art-search-form > button { min-height: 62px; padding-inline: 29px; border-radius: 5px; font-size: 14px; }
.immersive-hero .search-prompts { justify-content: center; gap: 10px; margin-top: 20px; }
.immersive-hero .search-prompts > span { margin-right: 4px; }
.immersive-hero .search-prompts a { padding: 8px 13px; border: 1px solid #c9c9b6; border-radius: 30px; background: #faf8f0; text-decoration: none; }
.immersive-hero .search-prompts a:hover { background: #e5e8d9; }
.immersive-hero .search-suggestions { border-radius: 8px; padding: 10px 20px; max-height: min(470px, 60svh); overflow-y: auto; }
.immersive-hero .search-result { padding-block: 12px; }
.immersive-hero .search-result img { width: 56px; height: 60px; border-radius: 3px; }
.hero-bottom { position: absolute; z-index: 2; bottom: 32px; left: 6vw; right: 6vw; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.hero-explore { display: flex; gap: 16px; align-items: center; text-decoration: none; text-transform: uppercase; font-size: 9px; letter-spacing: .16em; color: #626d4e; }
.hero-explore > span { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #a7ae9570; border-radius: 50%; font-size: 18px; }
.hero-collection-note { color: #7a7c6a; font-size: 11px; letter-spacing: .03em; }

/* The static page is visible by default, including when JavaScript is unavailable. */
.archive-opening { display: none; position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.opening-panel { position: absolute; top: 0; bottom: 0; width: 50%; background: #f5f1e7; }
.opening-panel-left { left: 0; transform-origin: left center; }
.opening-panel-right { right: 0; transform-origin: right center; }
.opening-signature { position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%); text-align: center; color: #4f5c3f; }
.opening-signature svg { display: block; width: 78px; height: 78px; margin: 0 auto 23px; stroke-width: .7; }
.opening-ring { stroke: #929b7880; stroke-width: .4; }
.opening-signature p { margin: 0 0 11px; font: 600 11px 'Manrope', sans-serif; letter-spacing: .18em; white-space: nowrap; }
.opening-signature p > span { color: #7c8561; font-weight: 400; }
.opening-caption { display: block; font: italic 18px Georgia, serif; color: #85846d; }

.intro-playing .archive-opening { display: block; }
.intro-playing .opening-panel { animation: gallery-open .9s cubic-bezier(.76, 0, .24, 1) .6s both; }
.intro-playing .opening-signature { animation: signature-depart 1.15s ease both; }
.intro-playing .opening-ring { animation: ring-arrive .55s ease both; transform-origin: center; }
.intro-playing .opening-outline, .intro-playing .opening-detail { stroke-dasharray: 1; animation: archive-draw .65s cubic-bezier(.4, 0, .2, 1) .05s both; }
.intro-playing .opening-detail { animation-delay: .2s; }
.intro-playing .opening-signature p, .intro-playing .opening-caption { animation: content-unveil .5s ease .12s backwards; }
.intro-playing .opening-caption { animation-delay: .22s; }
.intro-playing .title-line > span { animation: title-unveil .85s cubic-bezier(.16, 1, .3, 1) .75s backwards; }
.intro-playing .title-line + .title-line > span { animation-delay: .88s; }
.intro-playing .hero-reveal { animation: content-unveil .65s ease 1s backwards; }
.intro-playing .eyebrow.hero-reveal { animation-duration: .55s; animation-delay: .64s; }
.intro-playing .hero-search-stage { animation: content-unveil .7s cubic-bezier(.16, 1, .3, 1) 1.12s backwards; }
.intro-playing .hero-bottom { animation: content-unveil .6s ease 1.18s backwards; }
.immersive-hero:focus-within .archive-opening { display: none; }
.immersive-hero:focus-within .title-line > span, .immersive-hero:focus-within .hero-reveal, .immersive-hero:focus-within .hero-search-stage, .immersive-hero:focus-within .hero-bottom { animation: none; }

.gallery-card { position: relative; isolation: isolate; display: flex; flex-direction: column; container: art-card / inline-size; background: #fffdf8; border: 1px solid #dbddcf; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 12px #30372504; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.gallery-card-link::after { content: ''; position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.gallery-card-link:focus-visible::after { outline: 2px solid #455536; outline-offset: -4px; border-radius: 10px; }
.gallery-card .tag-row a, .gallery-card-footer a { position: relative; z-index: 2; }
.gallery-card:hover, .gallery-card:focus-within { transform: translateY(-6px); border-color: #aab494; box-shadow: 0 20px 40px #30372514; }
.gallery-card .discovery-card-image { aspect-ratio: 1.16; padding: 28px; border-bottom: 1px solid #dbddcf; background: radial-gradient(ellipse at 50% 25%, #f3f1e8, #e4e1d6); }
.gallery-card .discovery-card-image img { filter: drop-shadow(0 8px 10px #28251626); }
.gallery-card .discovery-card-image > .card-open-icon { left: auto; right: 15px; bottom: 15px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; opacity: 1; border: 1px solid #d4d9c8; border-radius: 50%; background: #fffefaed; font-size: 18px; color: #4c5939; }
.gallery-card-body { padding: 23px 24px 0; display: flex; flex-direction: column; flex: 1; }
.gallery-card .discovery-card-meta { margin: 0 0 13px; font-size: 9px; line-height: 1.6; }
.gallery-card h3 { font-size: clamp(24px, 2.1vw, 30px); line-height: 1.18; }
.gallery-artist { font-size: 12px; line-height: 1.6; color: #626b56; margin: 10px 0 0; }
.gallery-summary { color: #767b6d; font-size: 13px; line-height: 1.8; margin: 16px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gallery-card .tag-row { margin-block: 18px 24px; }
.gallery-card .tag-row a { background: #f0f2e9; border: 1px solid #e1e5d6; border-radius: 20px; padding: 6px 10px; }
.gallery-card-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 15px; border-top: 1px solid #e2e5d8; padding: 18px 0; margin-top: auto; }
.gallery-card-footer .card-story-link { grid-column: 1; justify-self: start; }
.gallery-card-footer .article-view-count { grid-column: 2; justify-self: center; }
.card-story-link { display: inline-flex; align-items: center; gap: 16px; color: #455536; font-size: 12px; font-weight: 600; text-decoration: none; }
.card-story-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.gallery-card-footer .edition-link { grid-column: 3; justify-self: end; margin: 0; color: #697752; }

@container art-card (max-width: 380px) {
    .gallery-card-footer { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
    .gallery-card-footer .article-view-count { justify-self: end; }
    .gallery-card-footer .edition-link { grid-column: 1 / -1; }
}

@keyframes gallery-open { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes signature-depart { 0%, 55% { opacity: 1; transform: translate(-50%, -50%); } 100% { opacity: 0; transform: translate(-50%, -56%); } }
@keyframes ring-arrive { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }
@keyframes archive-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes title-unveil { from { opacity: 0; transform: translateY(85%); } to { opacity: 1; transform: translateY(0); } }
@keyframes content-unveil { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1000px) {
    .archive-study { opacity: .4; }
    .archive-study-0 { left: -75px; }
    .archive-study-2 { right: -75px; }
    .archive-study-1 { left: -25px; }
    .archive-study-3 { right: -25px; }
    .immersive-hero .discovery-hero-copy { padding-inline: 6vw; }
}
@media (max-width: 760px) {
    .immersive-hero { min-height: 650px; }
    .immersive-hero .discovery-hero-copy { padding-block: 75px 125px; }
    .immersive-hero h1 { font-size: clamp(39px, 7.1vw, 57px); }
    .immersive-hero .discovery-intro { font-size: 14px; max-width: 410px; }
    .archive-study { display: none; }
    .archive-atmosphere::before { inset: 18px 16px; }
    .hero-bottom { bottom: 30px; }
    .hero-collection-note { font-size: 10px; }
    .immersive-hero .art-search-form { padding: 7px; }
    .immersive-hero .art-search input { font-size: 16px; padding-block: 17px; }
    .immersive-hero .art-search-form > svg { width: 20px; margin-inline: 10px; }
    .immersive-hero .art-search-form > button { min-height: 54px; padding-inline: 18px; }
    .gallery-card-body { padding: 20px 19px 0; }
    .gallery-card .discovery-card-image { padding: 22px; }
    .desktop-break { display: none; }
}
@media (max-width: 480px) {
    .immersive-hero { min-height: 620px; }
    .immersive-hero .discovery-hero-copy { padding-inline: 7vw; padding-block: 65px 135px; }
    .immersive-hero h1 { font-size: clamp(28px, 8.3vw, 40px); }
    .immersive-hero .eyebrow { font-size: 8px; gap: 10px; letter-spacing: .15em; }
    .immersive-hero .eyebrow::before, .immersive-hero .eyebrow::after { width: 16px; }
    .immersive-hero .art-search-form > button { padding-inline: 13px; font-size: 12px; }
    .immersive-hero .search-prompts { gap: 7px; font-size: 10px; }
    .immersive-hero .search-prompts > span { width: 100%; margin-bottom: 3px; }
    .hero-bottom { flex-direction: column; align-items: flex-start; gap: 10px; left: 7vw; right: 7vw; }
    .hero-explore { font-size: 8px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .archive-opening { display: none !important; }
    .gallery-card:hover, .gallery-card:focus-within { transform: none; }
}
