:root {
  --ink: #173138;
  --quiet: #526970;
  --paper: #eff2ee;
  --white: #fbfcfa;
  --sky: #b9ced5;
  --sage: #bac5b6;
  --timber: #9a643a;
  --rule: #c9d3cd;
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --body: "Avenir Next", Avenir, "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--ink);
  font-family: var(--body);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .46; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--timber); outline-offset: 5px; }
[hidden] { display: none !important; }
#unity-canvas { display: block; width: 100%; height: 100%; outline: none; touch-action: none; }
#introduction {
  position: fixed; inset: 0; z-index: 10;
  display: grid; grid-template-columns: 48% 52%; overflow-y: auto;
  overscroll-behavior: contain; background: var(--paper); isolation: isolate;
  transition: opacity .65s ease;
}
#introduction.leaving { opacity: 0; pointer-events: none; }
.gallery-cover {
  position: relative; display: flex; flex-direction: column;
  min-height: 100svh; padding: 32px 8% 28px; overflow: hidden;
  background: var(--ink); color: var(--paper);
}
.wordmark { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--paper); font-size: 11px; font-weight: 600; letter-spacing: .1em; line-height: 1.6; text-decoration: none; }
.brand-mark { font-size: 22px; font-weight: 400; }
.gallery-name { position: relative; z-index: 1; display: flex; flex-direction: column; margin: 40px 0 -18px; font: 400 clamp(45px, 5.7vw, 90px)/.9 var(--display); letter-spacing: -.06em; }
.gallery-name span + span { align-self: flex-end; color: var(--sky); }
.arch { position: relative; flex: 1; width: 100%; min-height: 270px; margin: 0; border-radius: 48% 48% 2px 2px / 29% 29% 2px 2px; overflow: hidden; background: var(--sky); }
.arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 49% 50%; }
.cover-caption { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; padding-top: 24px; font-size: 11px; line-height: 1.55; }
.cover-caption span:last-child { max-width: 145px; color: var(--sage); text-align: right; font-size: 9px; letter-spacing: .1em; }
.introduction-copy { display: flex; flex-direction: column; min-height: 100svh; padding: 32px 10% 24px; background: var(--paper); }
.intro-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 27px; }
.edition { font-size: 10px; font-weight: 600; letter-spacing: .14em; line-height: 1.6; }
.edition-mark { color: var(--quiet); font: italic 19px var(--display); white-space: nowrap; }
.story { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 34px 0; }
.eyebrow { color: var(--timber); margin: 0 0 18px; font-size: 10px; font-weight: 600; letter-spacing: .17em; line-height: 1.6; }
h1 { margin: 0; font: 400 clamp(38px, 3.85vw, 64px)/1.04 var(--display); letter-spacing: -.055em; outline: none; text-wrap: balance; }
.description { max-width: 440px; margin: 23px 0 0; font-size: 14px; line-height: 1.75; text-wrap: pretty; }
.story-details { margin-top: 24px; }
.aside { margin: 0; padding-left: 16px; border-left: 2px solid var(--sage); color: var(--quiet); font-size: 12px; line-height: 1.65; }
.artwork-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; list-style: none; padding: 0; margin: 0; }
.artwork-list li { display: flex; flex-direction: column; align-items: flex-start; border-top: 1px solid var(--rule); padding-top: 11px; min-width: 0; }
.artwork-list strong { display: block; font: 400 20px/1.2 var(--display); letter-spacing: -.015em; }
.artwork-list span { display: block; margin-top: 5px; color: var(--quiet); font-size: 12px; line-height: 1.5; }
.artwork-list small { margin-top: 5px; color: var(--timber); font-size: 10px; }
.controls-list { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 15px 26px; margin: 0; font-size: 12px; line-height: 1.5; }
.controls-list dt { font-weight: 600; }
.controls-list dd { margin: 0; color: var(--quiet); }
kbd { display: inline-block; font: inherit; font-size: 10px; letter-spacing: .06em; border: 1px solid var(--rule); padding: 5px 7px; border-radius: 3px; background: var(--white); }
.vr-controls { margin: 20px 0 0; padding-top: 15px; border-top: 1px solid var(--rule); color: var(--quiet); font-size: 11px; line-height: 1.65; }
.vr-controls strong { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 600; }
.vr-entry { display: flex; align-items: center; gap: 18px; padding: 15px 0; border-top: 1px solid var(--rule); }
.vr-entry p { margin: 0; color: var(--quiet); max-width: 290px; font-size: 10px; line-height: 1.65; }
.vr-entry .primary-button { min-width: 118px; background: transparent; color: var(--ink); border-color: #a8b8b9; }
.vr-entry .primary-button:hover:not(:disabled) { background: #e0e8e4; }
.preparation { min-height: 36px; padding: 0 0 12px; color: var(--quiet); font-size: 11px; line-height: 1.6; }
.preparation.is-ready { color: #3d684f; }
.preparation.is-error { color: #913c31; }
.navigation-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 18px; border-top: 1px solid var(--rule); }
.step-navigation { display: flex; align-items: center; gap: 18px; }
.back-button { color: var(--ink); border: 0; background: transparent; padding: 9px 3px; min-height: 44px; font-size: 22px; }
.step-count { white-space: nowrap; font-size: 11px; font-variant-numeric: tabular-nums; }
.step-count span { margin-left: 4px; color: var(--quiet); }
.primary-button { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-width: 165px; min-height: 48px; padding: 13px 18px; border: 1px solid var(--ink); border-radius: 3px; background: var(--ink); color: var(--white); font-size: 12px; font-weight: 500; transition: background .18s ease; }
.primary-button:hover:not(:disabled) { background: #294c53; }
.primary-button:disabled { opacity: .6; }
.button-arrow { font-size: 20px; line-height: 1; font-weight: 400; }
.text-button { padding: 8px 0; min-height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 11px; text-decoration: underline; text-decoration-color: #a5b4b3; text-underline-offset: 4px; }
.text-button:hover { color: var(--timber); }
.bottom-note { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; color: var(--quiet); font-size: 8px; letter-spacing: .08em; }
.no-script { position: fixed; inset: auto 20px 20px; z-index: 20; padding: 20px; background: var(--white); }
#vr-toolbar { position: fixed; z-index: 5; left: 16px; bottom: 16px; display: block; width: max-content; max-width: calc(100% - 32px); color: var(--paper); font-size: 10px; line-height: 1.5; }
/* Keep the live status available to screen readers without covering gallery controls. */
#gallery-vr-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; pointer-events: none; }
#vr-toolbar:hover #gallery-vr-status, #vr-toolbar:focus-within #gallery-vr-status { left: 0; bottom: calc(100% + 10px); width: min(320px, calc(100vw - 32px)); height: auto; padding: 12px 14px; margin: 0; overflow: visible; clip: auto; clip-path: none; white-space: normal; border-radius: 4px; background: rgba(23, 49, 56, .96); box-shadow: 0 4px 18px rgba(0, 0, 0, .15); }
#vr-toolbar button { white-space: nowrap; min-height: 44px; padding: 11px 15px; border: 0; border-radius: 2px; background: var(--paper); color: var(--ink); }
#vr-toolbar span:empty { display: none; }
@media (min-width: 1500px) { .gallery-cover { padding-left: 12%; padding-right: 12%; } .introduction-copy { padding-left: 13%; padding-right: 13%; } .description { font-size: 15px; } }
@media (max-height: 740px) and (min-width: 761px) { .gallery-cover, .introduction-copy { padding-top: 23px; padding-bottom: 18px; } .gallery-name { margin-top: 25px; font-size: 60px; } .story { padding: 24px 0; } h1 { font-size: 43px; } .description { margin-top: 18px; font-size: 13px; } .eyebrow { margin-bottom: 14px; } .story-details { margin-top: 18px; } .artwork-list { gap: 13px 20px; } .vr-entry { padding: 11px 0; } }
@media (max-width: 760px) {
  #introduction { display: block; }
  .gallery-cover { min-height: 224px; height: 32svh; padding: max(22px, env(safe-area-inset-top)) 25px 21px; }
  .wordmark { font-size: 10px; }
  .gallery-name { width: 44%; margin: auto 0 10px; font-size: clamp(35px, 8vw, 58px); }
  .gallery-name span + span { align-self: flex-start; }
  .arch { position: absolute; top: 59px; right: 25px; bottom: -1px; left: 51%; width: auto; min-height: 0; }
  .cover-caption { width: 44%; padding-top: 5px; font-size: 9px; }
  .cover-caption span:last-child { display: none; }
  .introduction-copy { min-height: 68svh; padding: 24px 27px max(18px, env(safe-area-inset-bottom)); }
  .story { padding: 29px 0 25px; }
  h1 { font-size: clamp(38px, 10.3vw, 50px); }
  .description { max-width: none; margin-top: 19px; font-size: 13px; line-height: 1.8; }
  .eyebrow { margin-bottom: 14px; }
  .story-details { margin-top: 20px; }
  .artwork-list { gap: 16px 22px; }
  .artwork-list strong { font-size: 19px; }
  .artwork-list span { font-size: 11px; }
  .vr-entry { gap: 14px; }
  .vr-entry p { font-size: 10px; }
  .navigation-row { padding-top: 14px; gap: 12px; }
  .step-navigation { gap: 12px; }
  .primary-button { min-width: 155px; gap: 16px; }
  .bottom-note { margin-top: 8px; }
  #vr-toolbar { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
