/* Exhibition redesign v2 · 2026-10-30. */
html{scroll-padding-top:104px}
body{--motion-accent:#143e32;--ease-out:cubic-bezier(.16,1,.3,1)}
:where(a,button){touch-action:manipulation;-webkit-tap-highlight-color:transparent}
:where(a,button):focus-visible{outline:2px solid var(--motion-accent);outline-offset:5px}
.reading-progress{position:fixed;z-index:90;inset:0 0 auto;height:2px;transform:scaleX(0);transform-origin:left;background:var(--motion-accent);pointer-events:none}
.motion-word{display:inline-block}
.motion-line{display:block}
.motion-toggle{position:fixed;right:16px;bottom:16px;z-index:30;border:1px solid currentColor;background:var(--motion-bg,#f1eee5);color:var(--motion-accent);padding:8px 13px;font:11px/1.5 system-ui,sans-serif;cursor:pointer;min-height:36px;opacity:.9}
.motion-toggle:hover{opacity:1}
header nav a{position:relative}
header nav a:after{content:"";position:absolute;bottom:-7px;height:1px;background:currentColor;left:0;width:100%;transform:scaleX(0);transform-origin:left;transition:transform .25s}
header nav a[aria-current="location"]:after{transform:scaleX(1)}
:is(.button,.primary,.arrow-link,.text-link){transition:transform .25s var(--ease-out),color .2s,background .2s}
:is(.button,.primary):active{transform:scale(.98)}
:is(.filters,.topic-filters) button{min-height:44px}
:is(.actions,.card-actions) :is(button,a){min-height:44px;display:inline-flex;align-items:center}
body:has(dialog[open]){overflow:hidden}
dialog{overscroll-behavior:contain}
dialog[open]{animation:reading-open .35s var(--ease-out)}
@keyframes reading-open{from{opacity:0;transform:translateY(20px) scale(.98)}to{opacity:1;transform:none}}
@media(hover:hover) and (pointer:fine){header nav a:hover:after{transform:scaleX(1)}.button:hover,.primary:hover{transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*:before,*:after{animation:none!important;transition:none!important}.motion-toggle{display:none}}
html.motion-paused{scroll-behavior:auto}
html.motion-paused *,html.motion-paused *:before,html.motion-paused *:after{animation-play-state:paused!important}
body{--motion-accent:#d6b37b;--motion-bg:#14120f}
.masthead{height:76px;background:#0a0908f2;border-color:#b89a6140;padding-inline:4.5%;backdrop-filter:blur(10px)}
.masthead nav{color:#d2c8b6}
.hero{min-height:790px;height:calc(100svh - 76px);max-height:1100px;background:#080807}
.hero:after{display:none}
.hero-copy{top:10%;left:5.5%;z-index:4;width:48%;pointer-events:none}
.hero-copy h1{font:normal clamp(70px,8.9vw,145px)/.9 Georgia,serif;letter-spacing:-.065em;margin:24px 0 24px}
.hero-copy h1 em{font-size:.91em;color:#d5b78d;letter-spacing:-.055em}
.hero-subtitle{font-size:clamp(16px,1.7vw,26px);letter-spacing:.1em;margin:24px 0}
.hero-copy .eyebrow{font-size:12px;color:#dfc9a4}
.intro{font-size:14px;color:#d4cabb;line-height:1.95}
.hairline{margin-block:22px;width:70px;background:#c9ae7f}
.hero-actions{margin-top:28px}
.primary{background:linear-gradient(110deg,#a47c47,#dfc294 45%,#ba935d);border:1px solid #dfc294;color:#17110b;min-height:50px;padding:14px 25px;font-size:13px}
.hero-count{color:#c4b69f;font-size:10px}
#stage{z-index:0;overflow:hidden}
#stage:after{content:"";position:absolute;inset:-20%;pointer-events:none;background:linear-gradient(115deg,transparent 42%,#d9b98112 49%,transparent 56%);opacity:0;transform:translateX(-15%)}
#stage.scene-moving:after{animation:temple-light 9s ease-in-out infinite alternate}
@keyframes temple-light{from{opacity:.2;transform:translateX(-8%)}to{opacity:.8;transform:translateX(8%)}}
.motion-hidden #stage:after,.motion-paused #stage:after,.motion-hidden .blueprint,.motion-paused .blueprint{animation-play-state:paused!important}
.hero-out .blueprint{animation-play-state:paused!important}
#fallback{background-size:cover!important;background-position:60% center!important;transform:scale(1.04);filter:none!important;transition:opacity .6s}
#scene{display:none}
.vignette{background:linear-gradient(90deg,#080807d9 0%,#080807a3 28%,transparent 58%),linear-gradient(0deg,#080807e6,transparent 35%)}
.grain{display:none}
.hero-top{z-index:5;top:20px;left:5.5%;right:5%;color:#b7a891}
.hero-top>span:last-child{display:none}
#geometry{z-index:2;left:50%;top:0;width:43%;height:77%;opacity:.12!important}
.hero .hero-roman{position:absolute;z-index:1;left:48%;top:-3%;font:520px/.95 Georgia,serif;pointer-events:none;color:transparent;-webkit-text-stroke:1px #d6b37b50}
.scene-caption{z-index:5;right:5%;bottom:170px;width:280px;padding:15px 0 15px 22px;background:linear-gradient(90deg,#080807bd,transparent);border:0;border-left:2px solid #d5b383;box-shadow:none}
.scene-caption>span{font-size:10px;letter-spacing:.18em}
.scene-caption h2{font:30px/1.5 Georgia,'Microsoft JhengHei',serif;letter-spacing:.1em;color:#f0e5d2;margin:8px 0 10px}
.scene-caption p{color:#ded4c5;line-height:1.8}
.scene-caption button{color:#e1bf86;font-size:13px;border-bottom:1px solid #b9935e70}
.hero-bottom{z-index:5;bottom:91px;left:5.5%;right:5%;color:#c3b296}
.hero-bottom button{border-color:#c7a87560;color:#ddc392}
#chapters{z-index:5;left:0;bottom:0;width:100%;height:72px;padding-inline:4%;background:#090908e8;border-color:#b89a6160;backdrop-filter:none}
#chapters button{display:flex;justify-content:center;align-items:center;gap:16px;color:#c7baa6;font-size:13px;letter-spacing:.1em;padding:10px}
#chapters button small{font:27px Georgia,serif;color:#ad956d;margin:0}
#chapters button.active{color:#eac994;background:#b89a6110}
#chapters button.active:before{height:2px;background:#d5b383}
#chapters button:after{content:"";height:2px;position:absolute;bottom:0;left:15%;right:15%;background:#d5b383;transform:scaleX(0);transition:transform .35s}
#chapters button.active:after{transform:scaleX(1)}
.course-intro{background:#12110e;padding-block:100px}
.course-intro h2{font-size:clamp(34px,3.8vw,58px);line-height:1.5}
.course-intro:before{content:"Ⅰ";font-size:330px;top:0;color:#b99a6010}
.library{background:#080807;padding-top:100px}
.library .section-heading h2{font-size:clamp(31px,3.3vw,52px);text-wrap:balance}
.topic-filters{gap:8px;border-bottom:0}
.topic-filters button{padding:8px 15px;border:1px solid #b99a6040;color:#c8bda9}
.topic-filters button[aria-pressed=true]{background:#c7ae82;color:#14100b}
.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
.card{background:transparent;border:0;border-bottom:1px solid #c7a87550;padding:0 0 25px;box-shadow:none;transition:none}
.card-image{height:auto;aspect-ratio:16/10;overflow:hidden}
.card-image img{filter:saturate(.9);transition:transform .8s var(--ease-out)}
.card h3{font:27px/1.5 Georgia,'Microsoft JhengHei',serif;color:#e4d2b3;margin:12px 0}
.card-meta{margin-top:22px}
.card p{font-size:14px;line-height:1.9;color:#bfb6a4}
.card-actions{border-top:1px solid #c7a87530;padding-top:12px}
.card-actions a{color:#e5c78e;font-size:13px}
.card:hover{box-shadow:none;transform:none;border-color:#c7a875}
#empty{border:1px dashed #b99a6050;padding:40px;color:#cabca2}
.bridge{padding-block:110px;background:#211b12}
.bridge h2{font-size:clamp(32px,3.5vw,54px);line-height:1.5}
.bridge p{font-size:14px;line-height:2;color:#cfc1ab}
@media(max-width:1000px){.hero-copy{width:55%;top:12%}.hero-copy h1{font-size:9.5vw}.scene-caption{right:4%;width:245px;bottom:175px}.scene-caption h2{font-size:25px}#chapters button{gap:8px;font-size:11px}#chapters button small{font-size:23px}.hero .hero-roman{font-size:440px;left:50%}}
@media(max-width:680px){.masthead{height:92px;gap:10px;padding:9px 5% 22px}.brand{font-size:32px}.brand i{display:none}.masthead nav{gap:12px}.masthead nav a{font-size:11px}.masthead #sound{top:auto;bottom:5px;min-height:24px}.hero{min-height:1040px;height:auto;max-height:none}.hero-copy{top:72px;left:6%;right:6%;width:auto}.hero-copy h1{font-size:clamp(52px,15.8vw,88px);margin-block:25px;line-height:.94}.hero-subtitle{font-size:16px;line-height:1.8;margin:20px 0}.intro{font-size:12px}.hero-actions{margin-top:22px;gap:18px}.primary{font-size:12px;min-height:46px;padding:12px 18px}.hero-count{font-size:9px}.hero .hero-roman{font-size:400px;left:40%;top:38%;opacity:.7}#fallback{background-size:auto 75%!important;background-position:64% 45%!important;background-repeat:no-repeat}.vignette{background:linear-gradient(180deg,#08080730,#080807c9 48%,#08080718 65%,#080807 93%)}#geometry{top:30%;left:5%;width:92%;height:44%}.scene-caption{left:6%;right:6%;width:auto;bottom:225px;padding:12px 18px;background:linear-gradient(90deg,#080807e8,#08080740)}.scene-caption h2{font-size:25px}.hero-bottom{bottom:160px;left:6%;right:6%;font-size:9px}.hero-bottom>span:last-child{display:none}#chapters{height:142px;padding:0 4%;grid-template-columns:repeat(3,1fr)}#chapters button{gap:8px;font-size:11px;letter-spacing:0}#chapters button small{font-size:22px}.cards{grid-template-columns:1fr;gap:40px}.card-image{aspect-ratio:16/10}.course-intro{padding-block:70px}.library{padding-top:70px}.bridge{padding-block:70px}.bridge h2{font-size:32px}.topic-filters button{font-size:11px}.hero-top{font-size:8px}}
