@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Baskerville&display=swap');

:root{font-family:'DM Sans',sans-serif;color:#f7ead1;background:#1c3435}
*{box-sizing:border-box}
body{margin:0;overflow:hidden}
button,a{-webkit-tap-highlight-color:transparent}
button{font:inherit;cursor:pointer}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible{outline:3px solid #ffd48a;outline-offset:4px}
#world{position:fixed;inset:0}
#world::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 46%,transparent 43%,#0b242126 100%)}
canvas{display:block;width:100%;height:100%}
.site-header{position:fixed;z-index:5;inset:0 0 auto;padding:22px 32px 45px;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;pointer-events:none;background:linear-gradient(#183735ce,#18373573 55%,transparent)}
.site-header>*{pointer-events:auto}
.brand{display:flex;align-items:center;gap:12px;white-space:nowrap;font-size:10px;font-weight:700;letter-spacing:1.6px;line-height:1.2}
.brand-mark{font:28px/.9 'Libre Baskerville',Georgia,serif;letter-spacing:-3px;border-right:1px solid #e3d2a4;padding-right:14px}
.brand small{display:block;margin-top:6px;color:#e0d4b7;font-size:10px;font-weight:400;letter-spacing:1.25px}
nav{display:flex;align-items:center;gap:9px}
nav a,nav button,footer button,footer a{background:#f8efdccc;border:1px solid #fff5d9ab;color:#23453e;border-radius:100px;padding:9px 14px;font-size:11px;box-shadow:0 3px 18px #13211d1f}
nav a:hover,nav button:hover,footer button:hover,footer a:hover{background:#fff9e9}
.room{position:fixed;z-index:3;left:32px;bottom:78px;padding:13px 17px;background:#203b37d9;border:1px solid #e4d8bd63;border-radius:15px;font:19px 'Libre Baskerville',Georgia,serif;box-shadow:0 7px 22px #11221d33;pointer-events:none}
.room span{display:block;margin-top:6px;font:11px 'DM Sans',sans-serif;color:#d8d1b5}
#prompt{position:fixed;z-index:4;left:50%;bottom:112px;transform:translateX(-50%);white-space:nowrap}
#prompt button,.primary{background:#f4dfab;border:1px solid #fff4d0;border-radius:100px;color:#24483f;padding:13px 23px;font-size:13px;font-weight:700;box-shadow:0 7px 25px #152b244d}
#prompt kbd{font:11px 'DM Sans',sans-serif;margin-left:12px;border:1px solid #7b846e;padding:3px 6px;border-radius:5px}
footer{position:fixed;z-index:3;left:32px;right:32px;bottom:21px;display:flex;align-items:center;gap:10px;pointer-events:none}
footer>*{pointer-events:auto}
footer span{margin-right:auto;background:#203b37d9;border:1px solid #e4d8bd63;border-radius:100px;padding:9px 13px;font-size:11px;color:#f3ebd8}
footer button,footer a{font-size:10px;padding:9px 12px}
.pad{position:fixed;z-index:3;right:25px;bottom:84px;display:grid;grid-template-columns:repeat(3,46px);gap:5px}
.pad button{width:46px;height:46px;border:1px solid #fff8d9b0;background:#f8f0dbdc;color:#24473e;border-radius:15px;font-size:22px;touch-action:none;user-select:none}
.pad button:first-child{grid-column:2}
.pad button:nth-child(2){grid-column:1}
.eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;color:#778273}
dialog{color:#29473e;background:#fbf7ec;border:1px solid #fff7de;border-radius:24px;padding:38px;width:min(900px,calc(100vw - 24px));max-height:85vh;overflow:auto;box-shadow:0 30px 100px #051c18a3}
dialog::backdrop{background:#102b29a8;backdrop-filter:blur(5px)}
.project-sheet{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:32px;align-items:start}
dialog h1{font:36px/1.2 'Libre Baskerville',Georgia,serif;margin:19px 0}
dialog p{font-size:14px;line-height:1.6}
dialog .lead{font-size:19px;line-height:1.5}
.availability{display:inline-block;margin:0 0 8px;padding:7px 12px;border:1px solid #cfdccf;border-radius:100px;background:#edf1e7;color:#43634e;font-size:11px;line-height:1.4}
.project-story{margin:12px 0 24px}.project-story p{margin:0 0 14px}
.project-detail{margin:18px 0}.project-detail h2{font:17px 'Libre Baskerville',Georgia,serif;margin:0 0 8px}.project-detail p{font-size:14px;line-height:1.65;margin:0}
.project-resources{border-top:1px solid #d8dece;padding-top:18px;margin-top:22px}
.project-resources h2{font:19px 'Libre Baskerville',Georgia,serif;margin:0 0 10px}
.project-resources p{font-size:13px;margin:0 0 16px}
#case-note{border-top:1px solid #d8dece;padding-top:16px;margin:24px 0 0;max-width:720px;line-height:1.6}
.primary{display:inline-block;background:#2c584a;color:#fff7e7;font-size:13px;padding:14px 21px}
.no-preview .project-sheet{grid-template-columns:1fr}
#case-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.secondary-action{color:#28574b;text-decoration:underline;text-underline-offset:4px;font-size:13px;font-weight:700}
.artifact-preview{display:block;border:1px solid #d8dece;border-radius:10px;overflow:hidden;box-shadow:0 15px 35px #142c2730;transform:rotate(2deg);transition:transform .2s}
.artifact-preview:hover{transform:rotate(0)}
.artifact-preview img{display:block;width:100%;height:auto}
.small{font-size:11px;color:#687369}
#close{position:absolute;right:18px;top:14px;background:none;border:0;color:#537468;font-size:30px}
.dialog-close{position:absolute;right:18px;top:14px;background:none;border:0;color:#537468;font-size:30px}
#directory{width:min(740px,calc(100vw - 24px))}
#directory>p{max-width:590px}
.directory-list{display:grid;gap:10px;margin-top:22px}
.directory-item{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:16px;align-items:center;padding:13px 14px;border:1px solid #d9dfd0;border-radius:15px;background:#fffdf5}
.directory-number{font:21px 'Libre Baskerville',Georgia,serif;color:#9b8054}
.directory-item small{font-size:10px;color:#6f7d70;text-transform:uppercase;letter-spacing:1px}
.directory-item h2{font:20px 'Libre Baskerville',Georgia,serif;margin:4px 0}
.directory-item p{font-size:12px;margin:0}
.directory-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.read-case{border:1px solid #2d604e;border-radius:100px;padding:10px 13px;background:#2d604e;color:#fffaf0;font-size:12px;font-weight:700;white-space:nowrap}
.jump-button{border:1px solid #aac6b6;border-radius:100px;padding:10px 13px;background:#e5eee5;color:#214b3b;font-size:12px;font-weight:700;white-space:nowrap}
.jump-button:hover{background:#d4e6d6}
#fallback{position:fixed;z-index:6;inset:115px 10% auto;background:#fbf6e9;color:#284d43;padding:40px;border-radius:20px}
#fallback a{display:block;margin-top:20px}
#fallback button{border:0;background:#284d43;color:#fff8e4;border-radius:30px;padding:13px 18px}
[hidden]{display:none!important}
@media(max-width:700px){
  .site-header{display:grid;grid-template-columns:1fr;gap:13px;padding:14px 15px 36px}
  .brand{font-size:12px;letter-spacing:1px}.brand-mark{font-size:25px}.brand small{font-size:12px;letter-spacing:.5px}
  nav{gap:5px;flex-wrap:wrap}nav a,nav button{font-size:12px;padding:10px;min-height:44px;display:flex;align-items:center;white-space:nowrap}
  .room{left:14px;bottom:98px;font-size:15px;padding:10px 12px;max-width:calc(100vw - 170px);line-height:1.35}.room span{font-size:12px}
  #prompt{bottom:198px}#prompt button{font-size:12px}
  footer{left:12px;right:12px;bottom:13px;gap:5px}footer span{font-size:12px;max-width:190px;line-height:1.3}footer button,footer a{font-size:12px;padding:10px;min-height:44px;display:flex;align-items:center}
  .pad{right:17px;bottom:93px;grid-template-columns:repeat(3,44px)}.pad button{width:44px;height:44px}
  dialog{margin:auto 12px;padding:28px}dialog h1{font-size:29px}.project-sheet{display:block}.artifact-preview{display:none}
  .availability{border-radius:12px}.project-story{margin:12px 0 20px}.project-resources{margin-top:20px}#case-actions{align-items:flex-start;gap:16px}
  .directory-item{grid-template-columns:28px 1fr;gap:10px}.directory-item h2{font-size:17px}.directory-item p{font-size:11px}.directory-actions{grid-column:2;justify-self:start}
  #fallback{inset:125px 14px auto;padding:26px}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Quiet Arrival: image artwork behind accessible live text. */
#museum-loading{position:fixed;inset:0;z-index:7;color:#29473e;text-align:center;pointer-events:none}
.welcome-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 75%;transition:opacity 1s ease}
.welcome-masthead{position:absolute;top:0;left:0;right:0;padding:3.5vh 4% 50px;color:#fff6df;text-shadow:0 2px 10px #18352e;background:linear-gradient(#153c35d9,#153c3580 65%,transparent)}
.welcome-monogram{display:block;color:#e7c58b;font:26px 'Libre Baskerville',Georgia,serif;letter-spacing:-3px}
.welcome-masthead p{font:clamp(24px,3.25vw,47px)/1.2 'Libre Baskerville',Georgia,serif;text-transform:uppercase;margin:15px 0 0}
.welcome-copy{position:absolute;bottom:2.5%;left:7%;right:7%;padding:8px 24px 0}
.welcome-copy h1{font:clamp(25px,3vw,44px)/1.2 'Libre Baskerville',Georgia,serif;margin:0 0 12px;letter-spacing:-1px}
.welcome-copy p{margin:0 auto;font-size:clamp(13px,1.25vw,18px);line-height:1.5;max-width:1060px}
.welcome-copy .welcome-invitation{margin-top:4px}
.welcome-progress{width:210px;height:1px;margin:24px auto 16px;background:#b89352;position:relative}
.welcome-progress span{position:absolute;width:9px;height:9px;border-radius:50%;background:#d4ae69;left:0;top:-4px;animation:arrival-progress 2.4s ease-in-out infinite alternate;box-shadow:0 0 10px #ffe8a8}
#loading-status{font-size:14px;font-weight:500}
#welcome-hint{font-size:12px;margin-top:4px}
.welcome-links{justify-content:center;gap:64px;margin-top:24px;pointer-events:auto}
.welcome-links a{font-size:14px;background:none;border:0;border-radius:0;box-shadow:none;padding:2px 0;border-bottom:1px solid #748171}
.welcome-links a:hover{background:none;color:#0d3e30}
.welcome-domain{display:block;font-size:10px;letter-spacing:1.5px;margin-top:17px;color:#6d624d}
.museum-welcoming .site-header,.museum-welcoming .room,.museum-welcoming footer,.museum-welcoming #prompt{visibility:hidden}
.museum-welcoming .pad{visibility:hidden}
.museum-welcoming.museum-ready .pad{visibility:visible;z-index:8;bottom:24px;right:24px}
.museum-ready .welcome-art{opacity:0}
.museum-ready .welcome-masthead{opacity:0;transition:opacity .7s}
.museum-ready .welcome-copy{background:#faf4e6f2;padding:22px 24px;border-radius:14px;left:15%;right:15%;bottom:3%;box-shadow:0 8px 35px #182a2515}
.museum-ready .welcome-progress span{left:100%;animation:none}
.museum-ready .welcome-domain{display:none}
.museum-ready .welcome-links{margin-top:15px}
html[data-returning=true] #museum-loading .welcome-art,html[data-returning=true] .welcome-masthead,html[data-returning=true] #welcome-title,html[data-returning=true] .welcome-intro,html[data-returning=true] .welcome-invitation,html[data-returning=true] .welcome-domain{display:none}
html[data-returning=true] .welcome-copy{background:#fbf7ecef;left:calc(50% - 210px);right:auto;width:420px;bottom:5%;border-radius:14px;padding:20px}
html[data-returning=true] .welcome-progress{margin-top:0}
@keyframes arrival-progress{to{left:calc(100% - 9px)}}
@media(max-width:700px){
 .welcome-art{object-fit:cover;object-position:center top;height:62%}
 #museum-loading{background:#f6eddc}
 .welcome-masthead{top:3%;left:5%;right:5%}
 .welcome-monogram{font-size:22px}
 .welcome-masthead p{font-size:24px;max-width:350px;margin:10px auto 0}
 .welcome-copy{left:0;right:0;bottom:2%;padding:20px 22px 0;background:#f6eddc}
 .welcome-copy h1{font-size:25px;margin-bottom:12px}
 .welcome-copy p{font-size:14px;max-width:430px}
 .welcome-copy .welcome-invitation{margin-top:8px}
 .welcome-progress{margin:19px auto 13px;width:160px}
 #loading-status{font-size:13px}#welcome-hint{font-size:11px;max-width:300px}
 .welcome-links{gap:24px;margin-top:17px}.welcome-links a{font-size:12px;white-space:nowrap}
 .welcome-domain{margin-top:13px;font-size:9px}
 .museum-ready #museum-loading{background:transparent}
 .museum-ready .welcome-copy{left:12px;right:12px;bottom:128px;padding:18px 18px;border-radius:14px}
 .museum-ready .welcome-copy h1{font-size:22px}
 .museum-ready .welcome-progress{margin:13px auto 11px}
 .museum-welcoming.museum-ready .pad{bottom:16px;right:calc(50% - 71px)}
 html[data-returning=true] .welcome-copy{left:12px;right:12px;width:auto}
}
@media(max-height:850px) and (min-width:701px){.welcome-copy{bottom:2%;padding:8px 18px 0}.welcome-copy h1{font-size:30px;margin-bottom:7px}.welcome-copy p{font-size:14px;line-height:1.4}.welcome-progress{margin:16px auto 10px}.welcome-links{margin-top:16px}.welcome-domain{margin-top:13px}.welcome-copy #loading-status{font-size:13px;line-height:1.2}.welcome-copy #welcome-hint{font-size:11px;line-height:1.2}.museum-ready .welcome-copy{left:18%;right:18%;padding:16px}}
@media(max-height:650px) and (min-width:701px){.welcome-copy h1{font-size:24px}.welcome-copy p{font-size:12px}.welcome-progress{margin:10px auto 8px}.welcome-links{margin-top:10px}.welcome-domain{margin-top:8px}.welcome-masthead p{font-size:30px}}
@media(max-height:700px) and (max-width:700px){.welcome-art{height:49%}.welcome-masthead p{font-size:20px}.welcome-copy h1{font-size:22px}.welcome-copy p{font-size:12px}.welcome-progress{margin:12px auto 10px}.welcome-links{margin-top:10px}.welcome-domain{margin-top:10px}.museum-ready .welcome-copy{bottom:118px}.museum-ready .welcome-copy p{font-size:12px}}
@media(prefers-reduced-motion:reduce){.welcome-progress span{animation:none;left:50%}.welcome-art,.welcome-masthead{transition:none}}
#render-stats{position:fixed;top:90px;left:20px;padding:8px 12px;border-radius:10px;background:#173b35df;color:#f8eed5;font-size:11px;z-index:3}

.directory-arcade{display:flex;align-items:center;gap:14px;flex-wrap:wrap;border-top:1px solid #d9dfd0;margin-top:24px;padding-top:20px}.directory-arcade>div{flex:1}.directory-arcade h2{font:19px 'Libre Baskerville',Georgia,serif;margin:0 0 6px}.directory-arcade p{font-size:12px;margin:0}.directory-arcade>a{font-size:12px;text-decoration:underline;text-underline-offset:4px}

.story-image{display:block;width:100%;border:8px solid #c1a065;border-radius:10px;box-shadow:0 12px 28px #18332a26}.story-links{display:flex;gap:14px;flex-wrap:wrap;margin-top:24px;font-size:11px;color:#496857}.story-links a{text-decoration:underline;text-underline-offset:3px}
.story-contact{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:20px 0 24px}.story-contact a{min-height:44px;display:inline-flex;align-items:center}.story-links{font-size:12px}.story-links a{min-height:44px;display:inline-flex;align-items:center}
#motion[aria-pressed=true]{background:#24483f;color:#fff7e7}
.dialog-close,#close{min-width:44px;min-height:44px}
@media(max-width:700px){#story .project-sheet{display:flex;flex-direction:column}.story-image{max-width:260px;order:-1;align-self:center}}

#story{width:min(1040px,calc(100vw - 24px))}

/* Workbench uses the same right-hand artifact slot as the other exhibits. */
.artifact-preview.logo-preview{padding:24px 16px;background:#fff;min-height:170px;display:flex;align-items:center}
@media(max-width:700px){.artifact-preview.logo-preview{display:none}}

/* iOS long presses must stay game input rather than select a control label. */
#world canvas,.pad,.pad *,#prompt button,#prompt button *, .touch-controls,.touch-controls *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
#world canvas{touch-action:none}
.touch-controls{display:none;position:fixed;z-index:4;right:20px;bottom:90px;text-align:center;touch-action:none}
#thumbstick{display:block;position:relative;width:112px;height:112px;border-radius:50%;border:1px solid #fff5d9b0;background:radial-gradient(circle,#f8f0db59 0 38%,#f8f0db99 39% 40%,#264b4055 41%);box-shadow:inset 0 2px 12px #19382c25,0 4px 20px #12291e24;touch-action:none;cursor:grab}
.stick-knob{position:absolute;left:calc(50% - 24px);top:calc(50% - 24px);width:48px;height:48px;border-radius:50%;border:1px solid #fff7df;background:#f3e5bf;box-shadow:0 3px 10px #19372c55;transform:translate(var(--stick-x,0px),var(--stick-y,0px));pointer-events:none}
#thumbstick.is-held{cursor:grabbing;background-color:#24483f55}
#touch-hint{display:block;margin-top:7px;font-size:12px;color:#f7f0df;text-shadow:0 1px 4px #112d23,0 0 7px #112d23}
.tap-badge{display:inline-block;margin-left:10px;padding:3px 7px;border-radius:6px;border:1px solid #7b846e;font-size:12px;font-weight:500}
.museum-welcoming .touch-controls{visibility:hidden}
@media(any-pointer:coarse),(max-width:700px),(max-width:900px) and (max-height:500px){
 .pad{display:none}
 .touch-controls{display:block}
 .room{max-width:calc(100vw - 165px)}
 #prompt{bottom:230px;width:max-content;max-width:calc(100vw - 24px);white-space:normal;text-align:center}
 #prompt button{max-width:100%}
 .museum-welcoming.museum-ready .touch-controls{visibility:visible;z-index:8}
 .museum-ready .welcome-copy{bottom:230px}
}
@media(any-pointer:coarse) and (max-height:500px),(max-width:900px) and (max-height:500px){
 nav a,nav button,footer a,footer button{min-height:44px;font-size:12px}
 .touch-controls{bottom:58px;right:15px}
 #thumbstick{width:92px;height:92px}
 #touch-hint{font-size:12px}
 .room{bottom:58px;left:14px;max-width:230px;font-size:15px;padding:10px 12px}
 #prompt{bottom:72px;max-width:calc(100vw - 300px)}
 .museum-welcoming.museum-ready .touch-controls{right:15px;bottom:58px}
 .museum-ready .welcome-copy{left:12px;right:140px;bottom:16px;padding:14px}
 .museum-ready .welcome-copy h1{font-size:20px}
 .museum-ready .welcome-copy p{font-size:12px;line-height:1.4}
 .museum-ready .welcome-progress{margin:10px auto}
 .museum-ready .welcome-links{margin-top:8px}
}
