@charset "UTF-8";

:root {
  color-scheme: dark;
  --ink: #08070a;
  --paper: #f2ece9;
  --red: #e34650;
  --edge: clamp(22px, 3.45vw, 64px);
  --body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; }
body { background: var(--ink); color: var(--paper); font-family: var(--body); -webkit-font-smoothing: antialiased; }
body.atelier-home { overflow: hidden; overscroll-behavior: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button svg { fill: none; stroke: currentColor; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
button:disabled { cursor: default; opacity: .2; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #f4b5b8; outline-offset: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: 12px; left: 18px; z-index: 60; padding: 12px 18px; background: var(--paper); color: var(--ink); transform: translateY(-180%); font-size: 14px; }
.skip:focus { transform: none; }

.atelier { position: relative; isolation: isolate; width: 100%; height: 100svh; height: 100dvh; overflow: hidden; background: var(--ink); user-select: none; -webkit-user-select: none; }
.brand-pending .atelier { opacity: 0; }
.series-switcher {
  position: absolute; z-index: 8; top: clamp(18px, 3.1vh, 36px); left: 50%;
  display: flex; align-items: center; gap: 4px; padding: 5px;
  transform: translateX(-50%); border: 1px solid #b89aa122; border-radius: 999px;
  background: #0a080dcc; box-shadow: 0 16px 40px #05030766, inset 0 1px #fff3;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.series-switcher__eyebrow {
  padding: 0 9px 0 10px; color: #b79ea67a; font: 9px/1 "SFMono-Regular", Consolas, monospace;
  letter-spacing: .19em;
}
.series-switcher__option {
  min-width: 116px; min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 12px; border: 1px solid transparent; border-radius: 999px; background: transparent;
  color: #a8959db2; font-size: 12px; letter-spacing: .12em; transition: color 240ms ease, background 240ms ease, border-color 240ms ease, transform 240ms ease;
}
.series-switcher__option:hover { color: #f3e6e9; transform: translateY(-1px); }
.series-switcher__option.is-active { color: #f6dadd; border-color: #db52684c; background: linear-gradient(115deg, #671629aa, #271019c9); box-shadow: 0 0 24px #c62c4c1a, inset 0 1px #ffcbd41a; }
.series-switcher__index { color: #d7536c99; font: 10px/1 "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; }
.series-switcher__option.is-active .series-switcher__index { color: #f08b9a; }
/* A quiet architectural volume behind the transparent model canvas. */
.atelier-ambient {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 62%, #921c3845 0, #4c0e2428 32%, transparent 65%),
    linear-gradient(180deg, #09090b 0%, #171015 30%, #2c101b 55%, #421321 70%, #150b11 100%);
}
.room-vault {
  position: absolute; left: -24%; right: -24%; top: -79%; height: 144%;
  border-radius: 0 0 50% 50%;
  background: radial-gradient(ellipse at 50% 104%, transparent 40%, #16080e90 66%, #08070a 88%);
  box-shadow: 0 22px 100px #3b0b1c33;
}
.room-wall {
  position: absolute; top: -8%; bottom: -14%; width: 27%;
  background: linear-gradient(90deg, #0b080bed 0%, #1f0d139f 50%, #4a11224d 74%, transparent 100%);
  mask-image: radial-gradient(ellipse at 0 55%, #000 47%, #000c 67%, transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse at 0 55%, #000 47%, #000c 67%, transparent 88%);
}
.room-wall--left { left: -8%; }
.room-wall--right { right: -8%; transform: scaleX(-1); }
.room-logo {
  position: absolute; left: 50%; top: 24%; width: clamp(182px, 20.5vw, 306px); height: auto;
  --brand-rest-opacity: .22;
  transform: translate(-50%, -50%); opacity: var(--brand-rest-opacity); filter: blur(.15px);
}
.room-horizon {
  position: absolute; left: 15%; right: 15%; top: 62%; height: 1px;
  background: #dc4d692e; filter: blur(2px);
  box-shadow: 0 0 34px 10px #a01c3c25;
}
.room-floor {
  position: absolute; left: -25%; right: -25%; top: 62%; bottom: -40%;
  border-radius: 50% 50% 0 0; transform: perspective(720px) rotateX(25deg); transform-origin: 50% 0;
  background:
    radial-gradient(ellipse at 50% 2%, #b5244545 0%, #7e17332e 28%, #4b122010 58%, transparent 74%),
    linear-gradient(180deg, #4d0a1900 0%, #340c1838 45%, #10080c80 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 100%);
}
.room-floor::after {
  content: ""; position: absolute; left: 18%; right: 18%; top: 12%; height: 15%; border-radius: 50%;
  background: radial-gradient(ellipse, #e3486419 0, transparent 68%); filter: blur(14px);
}
.room-light {
  position: absolute; top: 25%; width: 2px; height: 35%;
  background: linear-gradient(180deg, transparent, #e6445c99 18%, #e6445cbb 72%, transparent);
  box-shadow: 0 0 13px 2px #d52c4626;
  opacity: .76;
}
.room-light--left { left: 12.5%; transform: skewY(9deg); }
.room-light--right { right: 12.5%; transform: skewY(-9deg); }
.room-ceiling-light {
  position: absolute; top: 11%; left: 36%; right: 36%; height: 2px;
  background: linear-gradient(90deg, transparent, #f1c0c36b 25%, #ef8e9e8a 75%, transparent);
  box-shadow: 0 7px 22px 3px #d3384d14;
}
.room-floor::before {
  content: ""; position: absolute; left: 16%; right: 16%; top: 12%; height: 30%;
  border: 1px solid #d33f5a32; border-top-color: #a4263d16; border-radius: 50%;
  box-shadow: 0 0 16px #b9274410;
}
.exhibit-label {
  position: absolute; z-index: 3; left: 50%; top: 82%;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 72px; height: 33px; padding: 0 12px 2px;
  transform: translate(-50%, -50%); pointer-events: none; opacity: 0;
  border: 1px solid #cbbec325; border-bottom-color: #0a080bcc; border-radius: 2px;
  background: linear-gradient(120deg, #3a3035e8 0%, #181218ed 43%, #292027ed 100%);
  box-shadow: 0 2px 8px #0503076b, inset 0 1px #eee1e90c;
  color: #e5d5dc; font: 18px/1 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: .21em; text-indent: .21em;
}
.exhibit-label::after { content: ""; position: absolute; bottom: 4px; left: 25px; right: 25px; height: 1px; background: #da3c57c2; }
.intro-playing .exhibit-label, .is-entering .exhibit-label { opacity: 0 !important; }
#gallery-stage { position: absolute; inset: 0; z-index: 1; outline-offset: -12px; touch-action: pan-y; }
#gallery-stage[aria-hidden="true"] { pointer-events: none; }
.atelier-home:not(.is-ready) #gallery-stage { touch-action: pan-x; }
#gallery-stage canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
#gallery-stage:focus-visible { outline: 1px solid #e3465077; }
.gallery-controls { position: absolute; z-index: 4; left: calc(var(--edge) - 8px); right: calc(var(--edge) - 8px); bottom: calc(27px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; pointer-events: none; transition: opacity 300ms ease; }
.gallery-arrow { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; background: transparent; color: #ece4ead9; filter: drop-shadow(0 1px 3px #130a1380); pointer-events: auto; transition: color 180ms ease, transform 180ms ease; }
.gallery-arrow svg { width: 23px; height: 23px; }
.gallery-arrow:hover { color: #f2ece9; }
#gallery-prev:hover { transform: translateX(-3px); }
#gallery-next:hover { transform: translateX(3px); }
.intro-playing .room-logo { opacity: 0; }
.intro-playing .gallery-controls, .is-entering .gallery-controls { opacity: 0; pointer-events: none; }
.intro-playing .gallery-controls button, .is-entering .gallery-controls button { pointer-events: none; }

/* The gallery stays free of labels; keyboard navigation reveals its native links. */
.accessible-selection:focus-within, .accessible-selection:focus-visible {
  position: absolute; z-index: 6; inset: auto 50% calc(86px + env(safe-area-inset-bottom)) auto;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; width: min(590px, calc(100vw - 40px));
  height: auto; margin: 0; padding: 10px; overflow: visible; clip: auto; white-space: normal;
  transform: translateX(50%); border: 1px solid #70414b55; background: #0e090eec; backdrop-filter: blur(18px);
}
.accessible-selection a, .accessible-selection button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 13px; font-size: 12px; line-height: 1.5; }
.accessible-selection a:focus-visible, .accessible-selection button:focus-visible { outline-offset: -2px; }
.collection-choice[aria-current="true"] { color: #f2afb6; }
#gallery-enter { color: #e3bbc1; }
#brand-replay { background: transparent; color: #c3b3bf; }

.gallery-fallback {
  --fallback-height: 71dvh;
  position: absolute; inset: 0; display: flex; align-items: center;
  gap: clamp(75px, 16vw, 240px); padding-inline: calc(50% - var(--fallback-height) / 40);
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-snap-type: x mandatory;
  transition: opacity 400ms ease;
}
.gallery-fallback::-webkit-scrollbar { display: none; }
.fallback-cue {
  position: relative; display: block; flex: 0 0 auto; width: calc(var(--fallback-height) / 20);
  height: var(--fallback-height); scroll-snap-align: center; scroll-snap-stop: always;
  filter: brightness(.3); opacity: 1; transition: filter 280ms ease;
}
.fallback-cue img { display: block; width: 100%; height: 100%; object-fit: contain; }
.fallback-cue.is-featured { filter: brightness(1); }
.gallery-fallback:has(.fallback-cue:is(:hover,:focus-visible)) .fallback-cue:not(:hover):not(:focus-visible) { filter: brightness(.3); }
.fallback-cue:is(:hover,:focus-visible) { filter: brightness(1.1); }
.is-ready .gallery-fallback { opacity: 0; visibility: hidden; pointer-events: none; }
.has-error .gallery-fallback { opacity: 1; visibility: visible; }
.shaft-gallery { position: absolute; inset: 0; z-index: 2; }
.shaft-gallery[hidden] { display: none; }
.shaft-gallery-stage { position: absolute; inset: 0; cursor: grab; touch-action: none; }
.shaft-gallery-stage canvas { display: block; width: 100%; height: 100%; }
.shaft-status { position: absolute; bottom: 105px; left: 20px; right: 20px; text-align: center; color: #c9a4ad; font-size: 12px; pointer-events: none; }
.shaft-gallery-caption { position: absolute; bottom: calc(32px + env(safe-area-inset-bottom)); left: 50%; display: flex; align-items: center; gap: 28px; transform: translateX(-50%); white-space: nowrap; font-size: 12px; letter-spacing: .15em; color: #b9a1a7; transition: opacity 400ms ease; }
.shaft-gallery-caption a { display: inline-flex; align-items: center; gap: 20px; min-height: 44px; color: #f0c1c8; border-bottom: 1px solid #8c405766; }
.shaft-gallery-caption a:hover { color: #fff0f2; }
.shaft-arrow { min-width:44px; min-height:44px; padding:0; background:transparent; color:#df9aa7; font-size:19px; }
.intro-playing .shaft-gallery-caption, .is-entering .shaft-gallery-caption { opacity: 0; pointer-events: none; }
.atelier[data-series="shaft"] #gallery-stage, .atelier[data-series="shaft"] .gallery-controls, .atelier[data-series="shaft"] #exhibit-label, .atelier[data-series="shaft"] #series-index { opacity: 0; visibility: hidden; pointer-events: none; }

.brand-intro { position: fixed; inset: 0; z-index: 50; isolation: isolate; overflow: hidden; }
.brand-intro__backdrop { position: absolute; inset: 0; background: #070609; }
.brand-intro__halo { position: absolute; top: 50%; left: 50%; width: min(86vw, 840px); height: min(62vw, 540px); border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(ellipse, #a5122530 0, #6d0d1b17 30%, transparent 69%); opacity: 0; pointer-events: none; }
.brand-intro__mark { position: absolute; top: 50%; left: 50%; width: clamp(218px, 30vw, 432px); transform: translate(-50%, -50%); }
#intro-logo, .brand-intro__echo { display: block; width: 100%; height: auto; object-fit: contain; }
#intro-logo { position: relative; transform-origin: top left; opacity: 0; }
.brand-intro__echo { position: absolute; inset: 0; filter: blur(15px) sepia(1) saturate(8) hue-rotate(305deg); opacity: 0; }
.brand-intro__sweep { position: absolute; inset: -20%; background: linear-gradient(110deg, transparent 36%, #fff4 48%, #ff4d6040 51%, transparent 65%); mix-blend-mode: screen; opacity: 0; transform: translateX(-95%); pointer-events: none; }
.intro-skip { position: absolute; top: calc(23px + env(safe-area-inset-top)); right: calc(var(--edge) - 7px); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: transparent; color: #a3939a77; transition: color 180ms ease; }
.intro-skip:hover { color: #f2ece9; }
.brand-sound { position: fixed; z-index: 60; top: calc(23px + env(safe-area-inset-top)); right: calc(var(--edge) + 48px); min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 0 12px; background: transparent; color: #b8a7ad99; transition: color 200ms ease, right 400ms ease, opacity 200ms ease; }
.brand-sound:hover { color: #f2ece9; }
.brand-sound span { display: none; font-size: 11px; letter-spacing: .08em; white-space: nowrap; }
.brand-sound[data-state="blocked"] span, .brand-sound[data-state="unavailable"] span { display: inline; }
.brand-sound .sound-slash { display: none; }
.brand-sound:not([data-state="on"]) .sound-waves { display: none; }
.brand-sound:not([data-state="on"]) .sound-slash { display: block; }
.intro-finished .brand-sound { right: calc(var(--edge) - 7px); }
.intro-playing .brand-sound { transition: color 200ms ease, opacity 200ms ease; }
.is-entering .brand-sound { opacity: 0; pointer-events: none; }

@media (max-width: 800px) {
  .room-logo { top: 22%; width: clamp(166px, 25vw, 230px); }
  .room-wall { width: 29%; opacity: .88; }
  .room-light--left { left: 10%; }
  .room-light--right { right: 10%; }
  .gallery-controls { bottom: calc(24px + env(safe-area-inset-bottom)); }
}
@media (max-width: 540px) {
  :root { --edge: 22px; }
  .room-logo { --brand-rest-opacity: .24; top: 21.5%; width: clamp(152px, 42vw, 188px); }
  .room-wall { width: 31%; opacity: .8; }
  .room-horizon { left: 8%; right: 8%; top: 63%; }
  .room-floor { top: 63%; }
  .room-light { top: 24%; height: 37%; opacity: .62; }
  .room-light--left { left: 7%; }
  .room-light--right { right: 7%; }
  .room-ceiling-light { left: 25%; right: 25%; }
  .gallery-fallback { --fallback-height: 67dvh; gap: 29vw; }
  .exhibit-label { min-width: 64px; height: 30px; font-size: 15px; }
  .gallery-controls { left: 12px; right: 12px; bottom: calc(24px + env(safe-area-inset-bottom)); }
  .gallery-arrow { width: 48px; height: 48px; }
  .gallery-arrow svg { width: 21px; height: 21px; }
  .brand-intro__mark { width: min(66vw, 300px); }
  .series-switcher {
    top: 50%; left: auto; right: max(9px, env(safe-area-inset-right));
    flex-direction: column; gap: 3px; padding: 5px 4px; transform: translateY(-50%); border-radius: 28px;
  }
  .series-switcher__eyebrow { padding: 7px 0 5px; font-size: 8px; writing-mode: vertical-rl; letter-spacing: .15em; }
  .series-switcher__option { width: 46px; min-width: 46px; min-height: 84px; flex-direction: column; gap: 7px; padding: 9px 0; border-radius: 22px; }
  .series-switcher__label { writing-mode: vertical-rl; text-orientation: mixed; font-size: 12px; letter-spacing: .14em; }
  .series-switcher__index { font-size: 9px; }
  .shaft-gallery-caption { gap:16px; }
}
@media (max-width: 359px) { :root { --edge: 18px; } }
@media (max-height: 620px) {
  .room-logo { top: 22%; width: clamp(140px, 19vw, 220px); }
  .gallery-controls { bottom: calc(12px + env(safe-area-inset-bottom)); }
  .brand-intro__mark { width: clamp(200px, 27vw, 330px); }
  .intro-skip { top: calc(14px + env(safe-area-inset-top)); }
  .brand-sound { top: calc(14px + env(safe-area-inset-top)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .gallery-arrow:hover { transform: none !important; }
}
