/* // Sam reviews the search-first hero as an incremental UI change. */
.immersive-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    min-height: min(780px, max(700px, calc(100svh - 96px)));
    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: 110px 40px 140px;
    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; }
.hero-eyebrow { margin: 0 0 20px; color: #5e674d; font-size: 11px; font-weight: 600; letter-spacing: .14em; line-height: 1.5; text-transform: uppercase; }
.immersive-hero h1 { margin: 0; font-size: clamp(56px, 6.4vw, 84px); line-height: 1.04; 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: 570px; margin: 22px auto 30px; font-size: 16px; line-height: 1.65; color: #555d49; }
.hero-search-stage { position: relative; width: min(100%, 720px); margin-inline: auto; text-align: left; }
.hero-search-label { display: block; margin: 0 0 10px 2px; color: #46513a; font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.immersive-hero .art-search { max-width: none; margin: 0 auto; text-align: left; }
.immersive-hero .art-search-form { padding: 8px; border-radius: 12px; border-color: #a6ad94; background: #fffefb; box-shadow: 0 12px 32px #51472e14, 0 2px 4px #51472e08; }
.immersive-hero .art-search-form > svg { width: 22px; height: 22px; margin: 0 14px; }
.immersive-hero .art-search input { font-size: 16px; padding-block: 18px; }
.immersive-hero .art-search-form > button { min-height: 58px; padding-inline: 24px; border-radius: 7px; font-size: 13px; transition: background-color .15s; }
.immersive-hero .art-search-form > button:hover { background: #2e3823; }
.immersive-hero .search-prompts { justify-content: center; gap: 8px; margin-top: 18px; }
.immersive-hero .search-prompts > span { margin-right: 4px; color: #555d49; }
.immersive-hero .search-prompts a { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 9px 14px; border: 1px solid #b8bfaa; border-radius: 30px; background: #faf8f0e6; color: #3e4a31; text-decoration: none; transition: background-color .15s, border-color .15s; }
.immersive-hero .search-prompts a svg { width: 13px; height: 13px; }
.immersive-hero .search-prompts a:hover { background: #e5e8d9; border-color: #778461; }
.immersive-hero .search-prompts a:focus-visible, .hero-explore:focus-visible { outline: 2px solid #455536; outline-offset: 4px; }
.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; max-width: 45%; }
.hero-explore { display: flex; gap: 12px; align-items: center; text-decoration: none; font-size: 13px; color: #39462d; }
.hero-explore > span:first-child { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid #8b977980; border-radius: 50%; background: #faf8f0bf; font-size: 21px; transition: background-color .15s; }
.hero-explore:hover > span:first-child { background: #e5e8d9; }
.hero-explore-copy { display: flex; flex-direction: column; gap: 4px; font-weight: 500; }
.hero-explore-copy small { color: #5e674f; font-size: 11px; font-weight: 400; }

/* // A short reveal keeps the search available without an opening overlay. */
.intro-playing .title-line > span { animation: content-unveil .5s ease backwards; }
.intro-playing .title-line + .title-line > span { animation-delay: .04s; }
.intro-playing .hero-reveal { animation: content-unveil .45s ease backwards; }
.intro-playing .hero-search-stage { animation: content-unveil .5s ease .06s backwards; }
.intro-playing .hero-bottom { animation: content-unveil .45s ease .08s backwards; }
.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 auto; 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: 3; grid-row: 1; justify-self: end; }
.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: 2; grid-row: 1; 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 { grid-column: 2; }
    .gallery-card-footer .edition-link { grid-column: 1 / -1; grid-row: 2; }
}

@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: 110px 140px; }
    .immersive-hero h1 { font-size: clamp(46px, 8vw, 64px); }
    .immersive-hero .discovery-intro { font-size: 15px; max-width: 410px; }
    .archive-study { display: none; }
    .archive-atmosphere::before { inset: 18px 16px; }
    .hero-bottom { bottom: 30px; }
    .immersive-hero .art-search-form { padding: 7px; }
    .immersive-hero .art-search input { font-size: 16px; padding-block: 15px; }
    .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: 6vw; padding-block: 125px 180px; }
    .immersive-hero h1 { font-size: clamp(43px, 11vw, 54px); }
    .hero-eyebrow { font-size: 9px; letter-spacing: .1em; margin-bottom: 16px; }
    .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: 14px; font-size: 12px; }
    .immersive-hero .art-search-form > button span { display: none; }
    .immersive-hero .art-search-form > svg { margin-inline: 6px; }
    .immersive-hero .search-prompts { gap: 6px; font-size: 11px; }
    .immersive-hero .search-prompts > span { width: 100%; margin-bottom: 2px; text-align: center; }
    .immersive-hero .search-prompts a { gap: 6px; padding-inline: 10px; }
    .hero-bottom { left: 6vw; right: 6vw; max-width: none; }
    .hero-explore { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .immersive-hero .title-line > span, .immersive-hero .hero-reveal, .immersive-hero .hero-search-stage, .immersive-hero .hero-bottom { animation: none; }
    .gallery-card:hover, .gallery-card:focus-within { transform: none; }
}
