/* A specimen becomes the threshold to the collection's physical home. */
.collection-threshold{height:340svh;background:#fff;position:relative;--entry:0;--paper:1;--intro:1;--mineral:1;--story:0;--facts:0;--fade:0;--travel:0px;--room-scale:1.035;--room-edge:56%;--story-lift:28px;--progress:0}
.threshold-stage{position:sticky;top:0;height:100svh;min-height:680px;overflow:hidden;isolation:isolate;background:#fff;color:#263d4d}
.threshold-room{position:absolute;inset:0;clip-path:inset(0 0 0 var(--room-edge));z-index:0;will-change:clip-path}
.threshold-room img{width:100%;height:100%;object-fit:cover;object-position:65% center;transform:scale(var(--room-scale));will-change:transform}
.threshold-paper{position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,#fff 0%,#fff 37%,#ffffffed 44%,transparent 62%),linear-gradient(0deg,#fff 0%,#ffffffee 8%,transparent 38%);opacity:var(--paper);pointer-events:none}
.threshold-shade{position:absolute;inset:0;z-index:2;background:linear-gradient(90deg,rgba(8,20,27,.87),rgba(8,20,27,.58) 35%,rgba(8,20,27,.06) 80%);opacity:var(--story);pointer-events:none}
.threshold-intro{position:absolute;z-index:4;left:6.4%;top:15%;width:40%;opacity:var(--intro);transform:translateY(calc(var(--entry) * -35px));will-change:opacity,transform}
.threshold-intro .eyebrow{display:block;margin-bottom:28px;font-size:.72rem}
.route-home .threshold-intro h2{font:400 clamp(2.8rem,4.5vw,5.7rem)/1.07 Outfit,sans-serif;letter-spacing:-.04em;margin:0 0 28px}
.threshold-intro h2 em,.threshold-story h2 em{color:#629cd3;font-style:normal}
.threshold-intro p{font-size:.95rem;line-height:1.75;margin-bottom:30px}
.threshold-enter{display:flex;gap:24px;align-items:center;background:none;border:0;border-bottom:1px solid #a7b8c2;padding:10px 0;color:#263d4d;font-size:.8rem;min-height:44px}
.threshold-enter span{font-size:1.4rem;transition:transform .3s}.threshold-enter:hover span{transform:translateY(4px)}
.wf-entry-specimen{position:absolute;z-index:3;left:39%;bottom:6%;width:49%;height:63%;margin:0;opacity:var(--mineral);transform:translate3d(calc(var(--entry) * 8vw),var(--travel),0) scale(calc(1 + var(--entry) * .08));transform-origin:center bottom;pointer-events:none;will-change:transform,opacity}
.wf-entry-specimen img{width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 18px 14px #142c3220)}
.threshold-story{position:absolute;z-index:5;left:7%;top:50%;width:min(580px,47%);opacity:var(--story);transform:translateY(calc(-50% + var(--story-lift)));color:#fff;visibility:hidden}
.collection-threshold[data-room-visible] .threshold-story{visibility:visible}
.threshold-story>.eyebrow{color:#dde8ef;font-size:.74rem;display:block;margin-bottom:24px}
.route-home .threshold-story h2{font:400 clamp(3.2rem,5.7vw,6.8rem)/1.02 Outfit,sans-serif;letter-spacing:-.04em;margin:0 0 24px;color:#fff}
.threshold-story h2 em{color:#8fc0ea}
.threshold-story>p{max-width:46ch;font-size:.96rem;line-height:1.8;color:#edf1f4;margin:0 0 28px}
.threshold-facts{display:flex;gap:clamp(24px,3vw,48px);padding-top:24px;margin:0 0 28px;border-top:1px solid #ffffff42;opacity:var(--facts);transform:translateY(calc((1 - var(--facts)) * 18px))}
.threshold-facts dt{font:400 clamp(2rem,3vw,3.1rem)/1.1 Outfit,sans-serif;letter-spacing:-.025em}.threshold-facts dd{margin:8px 0 0;font-size:.74rem;color:#dce7ed;line-height:1.5}
.threshold-actions{display:flex;flex-wrap:wrap;gap:18px 24px;align-items:center;opacity:var(--facts)}
.threshold-actions .cta-link{background:#426f91;color:white;font-size:.83rem;padding:15px 19px;min-height:48px;white-space:normal;line-height:1.4}
.threshold-visit{font-size:.73rem;color:#e1eaf0;border-bottom:1px solid #ffffff66;padding-bottom:4px}
.threshold-guide{position:absolute;left:7%;right:7%;bottom:24px;z-index:6;display:flex;gap:20px;align-items:center;font-size:.67rem;color:#5c7281;opacity:calc(1 - var(--story));pointer-events:none}
.threshold-guide i{display:block;width:90px;height:1px;background:#acbdc7}.threshold-guide b{display:block;width:100%;height:1px;background:#263d4d;transform:scaleX(var(--progress));transform-origin:left}
.threshold-stage:after{content:'';position:absolute;inset:0;z-index:7;pointer-events:none;background:linear-gradient(0deg,#fff,transparent 55%);opacity:var(--fade)}
.route-home .collection-threshold+.home-voices{margin-top:0!important;clip-path:none!important;padding-top:clamp(64px,8vw,110px)!important;background:#fff}
@media(min-width:741px) and (max-height:750px){.threshold-stage{min-height:580px}.threshold-intro{top:10%}.route-home .threshold-intro h2{font-size:clamp(2.6rem,4vw,4.6rem)}.route-home .threshold-story h2{font-size:3.7rem}.threshold-story>p{font-size:.86rem;margin-bottom:18px}.threshold-facts{padding-top:18px;margin-bottom:20px}.threshold-story>.eyebrow{margin-bottom:16px}}
@media(max-width:740px){
 .collection-threshold{height:320svh;--room-edge:35%}
 .threshold-stage{height:100svh;min-height:640px}
 .threshold-room img{object-position:64% center}
 .threshold-paper{background:linear-gradient(180deg,#fff 0%,#fff 24%,#ffffffd9 36%,transparent 65%),linear-gradient(0deg,#fff,transparent 32%)}
 .threshold-intro{left:7%;top:7%;width:86%}
 .threshold-intro .eyebrow{font-size:.62rem;margin-bottom:18px}
 .route-home .threshold-intro h2{font-size:clamp(2.3rem,8.4vw,3.4rem);line-height:1.06;margin-bottom:18px}
 .threshold-intro h2 br:nth-of-type(1),.threshold-intro h2 em br{display:none}
 .threshold-intro p{font-size:.8rem;margin-bottom:10px}
 .threshold-enter{font-size:.71rem;gap:20px;padding:7px 0}
 .wf-entry-specimen{left:4%;bottom:7%;width:92%;height:46%}
 .threshold-shade{background:linear-gradient(0deg,#071723f5 0%,#071723dc 38%,#07172333 80%)}
 .threshold-story{left:7%;top:auto;bottom:8%;width:86%;transform:translateY(var(--story-lift))}
 .threshold-story>.eyebrow{font-size:.62rem;margin-bottom:18px}
 .route-home .threshold-story h2{font-size:clamp(3rem,12vw,4rem);margin-bottom:18px}
 .threshold-story>p{font-size:.82rem;line-height:1.7;margin-bottom:20px;max-width:42ch}
 .threshold-facts{gap:24px;justify-content:space-between;margin-bottom:24px;padding-top:18px}
 .threshold-facts dt{font-size:2.1rem}.threshold-facts dd{font-size:.66rem;max-width:90px}
 .threshold-actions{gap:14px;align-items:flex-start;flex-direction:column}.threshold-actions .cta-link{font-size:.76rem;padding:13px 17px}
 .threshold-guide{bottom:20px;gap:12px;font-size:.57rem}.threshold-guide i{width:40px}
 body.threshold-active .mobile-dock{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
}
/* On short displays and with reduced motion, keep both chapters in ordinary flow. */
@media(prefers-reduced-motion:reduce),(max-height:540px){
 .collection-threshold{height:auto!important}
 .threshold-stage{height:auto!important;min-height:0!important;position:relative;display:grid;grid-template-columns:1fr}
 .threshold-intro{position:relative;inset:auto;width:auto;margin:0;padding:64px 7% 20px;opacity:1!important;transform:none!important}
 .wf-entry-specimen{position:relative;inset:auto;width:80%;height:340px;margin:0 auto 40px;opacity:1!important;transform:none!important}
 .threshold-room{clip-path:none!important;top:auto;height:660px;bottom:0}
 .threshold-room img{transform:none!important}
 .threshold-story{position:relative;inset:auto;align-self:end;width:auto;min-height:660px;padding:64px 7%;display:flex;flex-direction:column;justify-content:center;background:#071723ad;opacity:1!important;visibility:visible!important;transform:none!important}
 .threshold-story>p{max-width:46ch}.threshold-facts,.threshold-actions{opacity:1!important;transform:none!important}
 .threshold-shade,.threshold-paper,.threshold-guide,.threshold-enter,.threshold-stage:after{display:none!important}
 .threshold-facts{justify-content:flex-start}.threshold-actions{align-items:flex-start}
}
@media(max-width:740px) and (min-height:541px) and (max-height:680px){.threshold-stage{min-height:0}.threshold-intro{top:5%}.route-home .threshold-intro h2{font-size:2.35rem}.threshold-intro .eyebrow{margin-bottom:12px}.threshold-intro p{font-size:.75rem}.wf-entry-specimen{height:43%;bottom:7%}.threshold-story{bottom:5%}.route-home .threshold-story h2{font-size:2.8rem}.threshold-story>.eyebrow{margin-bottom:14px}.threshold-story>p{font-size:.78rem;margin-bottom:16px}.threshold-facts{padding-top:14px;margin-bottom:18px}.threshold-facts dt{font-size:1.9rem}}
/* Reference correction: clean photography and a solid white architectural plane. */
.threshold-paper,.threshold-shade,.threshold-stage:after{display:none!important}
.collection-threshold{--floor-left:74%;--floor-right:86%;--room-scale:1}
.threshold-room{clip-path:polygon(var(--room-edge) 0,100% 0,100% var(--floor-right),var(--room-edge) var(--floor-left))}
.threshold-room img,.wf-entry-specimen img{filter:none!important;box-shadow:none!important;opacity:1}
.threshold-intro{top:14%;left:6.4%;width:36%}
.route-home .threshold-intro h2{font-size:clamp(2.8rem,3.9vw,5rem);line-height:1.09;margin-bottom:26px}
.threshold-intro .eyebrow{margin-bottom:44px}
.wf-entry-specimen{left:35%;bottom:10%;width:40%;height:53%;transform:translate3d(calc(var(--entry) * 4vw),var(--travel),0);transform-origin:center bottom}
.threshold-story{left:0;top:0;bottom:0;box-sizing:border-box;width:44%;padding:6vh 4.5vw 5vh 6.4vw;background:#fff;color:#263d4d;display:flex;flex-direction:column;justify-content:center;transform:translateX(calc((1 - var(--story)) * -40px))}
.route-home .threshold-story h2{color:#263d4d;font-size:clamp(3rem,4.6vw,5.5rem)}
.threshold-story h2 em{color:#629cd3}
.threshold-story>.eyebrow,.threshold-story>p,.threshold-facts dd,.threshold-visit{color:#536c7c}
.threshold-story>p{font-size:.88rem;line-height:1.8}
.threshold-facts{border-top-color:#c9d5de;gap:clamp(16px,2.3vw,36px)}
.threshold-facts dt{font-size:clamp(1.8rem,2.5vw,2.9rem)}
.threshold-visit{border-bottom-color:#a5b8c4}
.threshold-guide{left:6.4%;bottom:5%;width:auto;right:auto}
.threshold-guide-first{display:none}.threshold-guide{flex-direction:column;align-items:flex-start;gap:14px}.threshold-guide i{height:60px;width:1px}.threshold-guide b{height:100%;width:1px;transform:scaleY(var(--progress));transform-origin:top}
@media(max-width:740px){
 .collection-threshold{--room-edge:50%;--floor-left:75%;--floor-right:88%}
 .threshold-intro{top:6%;left:7%;width:86%;background:#fff;padding-bottom:18px}
 .route-home .threshold-intro h2{font-size:clamp(2.25rem,8vw,3.3rem);margin-bottom:16px}
 .threshold-intro .eyebrow{margin-bottom:20px}
 .threshold-room img{object-position:65% center}
 .wf-entry-specimen{left:11%;bottom:11%;width:78%;height:43%}
 .threshold-story{top:auto;bottom:0;left:0;width:100%;padding:30px 7% 32px;transform:translateY(calc((1 - var(--story)) * 40px));min-height:0}
 .route-home .threshold-story h2{font-size:clamp(2.5rem,9vw,3.3rem);margin-bottom:16px}
 .threshold-story h2 br{display:none}.threshold-story h2 em:before{content:' '}
 .threshold-story>.eyebrow{margin-bottom:14px}
 .threshold-story>p{font-size:.79rem;margin-bottom:18px}
 .threshold-facts{padding-top:16px;margin-bottom:18px;gap:24px}
 .threshold-facts dt{font-size:1.9rem}
 .threshold-actions{gap:12px}
 .threshold-guide{bottom:4%;left:7%;font-size:.56rem;gap:8px}.threshold-guide i{height:30px}
}
@media(prefers-reduced-motion:reduce),(max-height:540px){
 .threshold-room{position:relative;inset:auto;height:55svh;min-height:260px;clip-path:none!important;grid-row:3}
 .threshold-intro{position:relative;inset:auto;width:auto;padding:54px 7% 20px;grid-row:1}
 .wf-entry-specimen{position:relative;inset:auto;width:70%;height:340px;grid-row:2;margin:0 auto 40px}
 .threshold-story{position:relative;inset:auto;width:100%;min-height:0;padding:54px 7%;grid-row:4;background:#fff;transform:none!important}
 .threshold-story h2 br{display:none}.threshold-story h2 em:before{content:' '}
}
/* Position the supplied original by its natural aspect ratio, without scaling it into a short frame. */
@media(min-width:741px) and (min-height:541px){
 .wf-entry-specimen{left:33.5%;bottom:9.5%;width:40%;height:auto;aspect-ratio:1402/1122}
 .wf-entry-specimen img{width:100%;height:auto;aspect-ratio:1402/1122;object-fit:contain;display:block}
}
@media(max-width:740px) and (min-height:541px){
 .wf-entry-specimen{left:7%;bottom:9%;width:86%;height:auto;aspect-ratio:1402/1122}
 .wf-entry-specimen img{width:100%;height:auto;aspect-ratio:1402/1122;object-fit:contain;display:block}
}
@media(prefers-reduced-motion:reduce){.wf-entry-specimen{position:relative;inset:auto;width:min(80%,680px);height:auto;aspect-ratio:1402/1122;margin:0 auto 40px}.wf-entry-specimen img{height:auto}}
/* Isolated from the legacy museum threshold effect. */
.route-home .collection-threshold .wf-entry-specimen{top:auto;right:auto;filter:none!important;box-shadow:none!important;animation:none}
.route-home .collection-threshold .wf-entry-specimen img{position:static;inset:auto;filter:none!important;transform:none!important;animation:none;box-shadow:none!important;opacity:1}
/* A smaller specimen, grounded by a restrained contact shadow. */
.route-home .collection-threshold .wf-entry-specimen{isolation:isolate}
.route-home .collection-threshold .wf-entry-specimen:before{content:'';position:absolute;z-index:-1;left:12%;bottom:-2%;width:76%;height:9%;border-radius:50%;background:radial-gradient(ellipse at center,rgba(27,39,43,.2) 0%,rgba(27,39,43,.09) 36%,rgba(27,39,43,0) 72%);pointer-events:none}
@media(min-width:741px) and (min-height:541px){.route-home .collection-threshold .wf-entry-specimen{left:35.1%;width:36.8%}}
@media(max-width:740px) and (min-height:541px){.route-home .collection-threshold .wf-entry-specimen{left:10.5%;width:79%}}
@media(prefers-reduced-motion:reduce){.route-home .collection-threshold .wf-entry-specimen{left:auto;width:min(74%,625px)}}
/* The museum invitation accompanies the rest of the homepage. */
.museum-follow-actions{position:fixed;z-index:65;left:50%;bottom:26px;display:flex;gap:10px;padding:8px;max-width:calc(100vw - 32px);background:#fffffff5;border:1px solid #dce5eb;box-shadow:0 6px 24px #17364c14;opacity:0;visibility:hidden;transform:translate(-50%,24px);transition:opacity .4s,transform .55s cubic-bezier(.16,1,.3,1),visibility .4s,bottom .3s;pointer-events:none}
.museum-follow-actions.is-visible{opacity:1;visibility:visible;transform:translate(-50%,0);pointer-events:auto}
.museum-follow-actions .cta-link{display:flex;align-items:center;justify-content:center;gap:20px;min-height:48px;padding:13px 20px;background:#315f80;color:#fff;font:500 .82rem/1.35 Poppins,sans-serif;white-space:nowrap}
.museum-follow-actions .visit-action{background:#263d4d}
.museum-follow-actions a:hover{background:#447ca3}.museum-follow-actions a:focus-visible{outline:2px solid #629cd3;outline-offset:3px}
.museum-actions-visible .threshold-actions{visibility:hidden}
.museum-actions-visible .trade-note{bottom:110px}
.route-home .footer{padding-bottom:130px!important}
body:has(.overlay.open) .museum-follow-actions,body:has(.dock-panel.open) .museum-follow-actions{opacity:0;visibility:hidden;pointer-events:none}
@media(max-width:740px){
 .museum-follow-actions{width:calc(100% - 28px);bottom:calc(16px + env(safe-area-inset-bottom));gap:6px;padding:6px}
 .museum-follow-actions .cta-link{flex:1;min-width:0;font-size:.68rem;white-space:normal;text-align:center;padding:11px 8px;gap:8px;min-height:48px}
 .museum-follow-actions .button-mark{width:18px;flex-shrink:0}
 .dock-visible .museum-follow-actions{bottom:calc(94px + env(safe-area-inset-bottom))}
 .route-home .footer{padding-bottom:190px!important}
}
@media(prefers-reduced-motion:reduce){.museum-follow-actions{transition:none}}

/* Present the invitation centrally, then retain it below the content. */
.museum-follow-actions{transition:opacity .4s,transform .75s cubic-bezier(.16,1,.3,1),visibility .4s,bottom .75s cubic-bezier(.16,1,.3,1)}
.museum-follow-actions.is-visible.is-introducing{bottom:50%;transform:translate(-50%,50%)}
@media(prefers-reduced-motion:reduce){.museum-follow-actions{transition:none}}

/* Museum invitations use the same blue as the room title. */
.threshold-actions .cta-link,.museum-follow-actions .cta-link,.museum-follow-actions .visit-action{background:#629cd3!important;border-color:#629cd3!important;color:#fff!important;font-weight:600}
.threshold-actions .cta-link:hover,.museum-follow-actions .cta-link:hover{background:#508bc3!important;border-color:#508bc3!important}
.threshold-actions .button-mark,.museum-follow-actions .button-mark{display:block!important;flex:0 0 22px!important;width:22px!important;min-width:22px!important;height:28px!important;margin:0!important;background:url('/button-logo.svg') center/contain no-repeat!important;filter:brightness(0) invert(1)!important;overflow:visible!important;transform:none!important}
@media(max-width:740px){.threshold-actions .button-mark,.museum-follow-actions .button-mark{flex-basis:18px!important;width:18px!important;min-width:18px!important;height:23px!important}}
