/* GLASS - the space test (4 Dec 2026). One continuous flight. */
:root { --gx-gut: max(20px, calc(3.2 * var(--u))); --gx-word: max(15px, calc(1.2 * var(--u))); --gx-shade: 0 1px 2px rgba(0, 0, 0, .4), 0 2px 22px rgba(0, 0, 0, .5); }
html { scroll-behavior: auto; }
#backdrop { position: fixed; inset: 0; height: 100vh; height: 100lvh; bottom: auto; pointer-events: auto; background: #0d1218; }
#backdrop::after { content: none; }
#backdrop canvas { opacity: 1; transition: none; touch-action: pan-y; cursor: grab; outline: none; }
#backdrop canvas.drag { cursor: grabbing; }
.gx-poster { position: absolute; inset: 0; z-index: 2; pointer-events: none; transition: opacity 1.8s ease; }
.gx-poster img { width: 100%; height: 100%; object-fit: cover; }
.gx-poster.done { opacity: 0; }
main { pointer-events: none; }
#sp-length { position: relative; }
#sp-veil, #sp-cut, #space { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; pointer-events: none; }
#sp-veil { z-index: 2; background: #020204; opacity: 0; height: 100lvh; }
#sp-cut { z-index: 9; background: #020204; opacity: 0; height: 100lvh; transition: opacity .5s ease; }
#sp-cut.on { opacity: 1; transition: opacity .34s ease; }
#space { z-index: 3; overflow: hidden; }
#sp-load { position: fixed; z-index: 10; left: 0; bottom: 0; height: 2px; width: 0; background: #fff; transition: width .3s, opacity .8s; }
#sp-load.done { opacity: 0; }
.sp-wait #sp-load.done { opacity: 1; }
#sp-hello { position: fixed; z-index: 4; left: var(--gx-gut); right: var(--gx-gut); bottom: var(--gx-gut); display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; color: #fff; text-shadow: var(--gx-shade); pointer-events: none; }
#sp-hello p { margin: 0; font: 300 max(19px, calc(1.6 * var(--u)))/1.3 var(--f); max-width: 24em; }
#sp-hello span { flex: none; display: grid; justify-items: center; gap: 12px; font: 300 max(13px, calc(.85 * var(--u)))/1 var(--f); letter-spacing: .22em; text-indent: .22em; text-transform: uppercase; }
#sp-hello i { width: 1px; height: 40px; background: #fff; opacity: 0; transform-origin: 50% 0; }
#sp-hello.ready i { animation: sp-fall 2.8s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes sp-fall { 0% { transform: scaleY(0); opacity: .9; } 55% { transform: scaleY(1); opacity: .9; } 100% { transform: scaleY(1); opacity: 0; } }

/* a title: one huge thin word, one fine line of light, one quiet line */
.sp-title { position: fixed; z-index: 4; left: 50%; top: 50%; visibility: hidden; pointer-events: none; transform-origin: 50% 50%; will-change: transform, opacity, filter; display: flex; flex-direction: column; align-items: center; padding: 0; border: 0; background: none; color: #fff; font-family: var(--f); text-align: center; text-shadow: 0 2px 44px rgba(0, 0, 0, .55), 0 1px 4px rgba(0, 0, 0, .3); }
.sp-big { position: relative; font-weight: 200; line-height: 1.02; white-space: nowrap; }
.sp-big span { display: block; letter-spacing: var(--gap); margin-right: calc(-1 * var(--gap)); }
.sp-size { visibility: hidden; }
.sp-piece { position: absolute; inset: 0; backface-visibility: hidden; }
.sp-line { display: block; width: clamp(90px, 11vw, 210px); height: 1px; margin: clamp(16px, 2.6vh, 32px) 0 clamp(14px, 2.2vh, 26px); background: #fff; transform-origin: 50% 50%; box-shadow: 0 0 12px rgba(255, 255, 255, .55); }
.sp-small { font-weight: 300; font-size: clamp(21px, 1.9vw, 36px); line-height: 1.4; letter-spacing: .02em; max-width: min(84vw, 27em); text-wrap: balance; text-shadow: 0 0 2px rgba(0, 0, 0, .5), 0 1px 14px rgba(0, 0, 0, .75); }
.is-over { flex-direction: column; }
.is-line .sp-small { font-weight: 200; font-size: clamp(27px, 2.9vw, 56px); line-height: 1.28; max-width: min(84vw, 19em); }
button.sp-title { cursor: pointer; }
button.sp-title:hover .sp-line { box-shadow: 0 0 18px #fff, 0 0 4px #fff; }
button.sp-title:focus-visible { outline: 1px solid #fff; outline-offset: 24px; }
#sp-dots { position: fixed; z-index: 3; left: 0; top: 0; width: 100vw; height: 100vh; pointer-events: none; visibility: hidden; }
#sp-hold { position: fixed; z-index: 1; left: 35vw; top: 32vh; width: 30vw; height: 30vw; opacity: 0; pointer-events: none; }
#sp-hold .entry { position: absolute; inset: 0; list-style: none; margin: 0; padding: 0; }

/* the closing title */
.sp-card { position: absolute; left: 50%; top: 52%; visibility: hidden; transform-origin: 50% 50%; will-change: transform, opacity; color: #fff; }
.sp-form { width: min(88vw, 1500px); text-align: center; text-shadow: 0 2px 30px rgba(0, 0, 0, .5); }
.sp-form .reach { gap: 0; }
.sp-form .sp-call { margin: 0; font: 300 clamp(19px, 1.6vw, 28px)/1.4 var(--f); }
.sp-form .phone { margin: clamp(6px, 1.4vh, 18px) 0 clamp(8px, 1.6vh, 20px); font-size: min(13.4vw, 24vh, 230px); line-height: 1; letter-spacing: -.01em; }
.sp-form .mail { font: 300 clamp(18px, 1.4vw, 24px)/1.3 var(--f); border-bottom: 1px solid rgba(255, 255, 255, .5); }
.sp-form form { margin-top: clamp(22px, 4.6vh, 56px); grid-template-columns: repeat(4, minmax(0, 1fr)) auto; column-gap: clamp(18px, 2vw, 38px); row-gap: 8px; align-items: end; text-align: left; }
.sp-form form label { gap: 2px; align-content: end; }
.sp-form form label span { text-align: left; color: rgba(255, 255, 255, .9); font-size: 15px; line-height: 1.25; }
.sp-form form input { text-align: left; background: none; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .6); padding-left: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.sp-form form input:focus { border-color: #fff; box-shadow: 0 1px 0 #fff; }
.sp-form form > .btn { grid-column: auto; justify-self: end; min-width: 0; min-height: 44px; padding: 0; margin: 0; border: 0; border-bottom: 1px solid #fff; border-radius: 0; font: 300 20px/1 var(--f); letter-spacing: .02em; text-indent: 0; text-transform: none; }
.sp-form .note { text-align: left; color: #fff; font-size: 15px; }
.sp-form .sp-mark { margin: clamp(18px, 4vh, 46px) 0 0; font: 300 16px/1.5 var(--f); color: rgba(255, 255, 255, .85); }

/* the bar, and the parts of the old page that only show while a presentation plays */
.top, .top.is-on { padding: 0 var(--gx-gut); background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: transparent; box-shadow: none; height: calc(var(--bar) + var(--gx-gut)); transition: opacity .7s var(--ease), visibility 0s; }
.top::before, .top::after { display: none !important; }
.top .mark { opacity: 1; pointer-events: auto; text-transform: none; letter-spacing: .06em; font-size: max(22px, calc(1.75 * var(--u))); color: #fff; text-shadow: var(--gx-shade); }
.top .nav a { font-weight: 300; font-size: max(13px, calc(.85 * var(--u))); letter-spacing: .16em; color: #fff; text-shadow: var(--gx-shade); }
.page { position: static; background: none; }
main .gallery { position: static; background: none; }
.room-title, .walls { display: none; }
.room { display: block; }
.room-bar, .room-foot, .viewer { pointer-events: auto; }
/* a device that cannot run it: an ordinary, quiet page over the picture */
.gx-still #sp-length { height: 100vh !important; }
.gx-still #space { position: relative; height: auto; width: auto; overflow: visible; display: grid; gap: 60px; justify-items: center; padding: 8vh 0; }
.gx-still .sp-card { position: relative; left: 0; top: 0; visibility: visible !important; opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; pointer-events: auto !important; background: rgba(6, 9, 13, .74); }
.gx-still .sp-title { display: none; }

@media (orientation: portrait), (max-width: 760px) {
  .sp-small { font-size: 24px; }
  .is-line .sp-small { font-size: 31px; }
  .sp-card { top: 53%; }
  .sp-form form { grid-template-columns: minmax(0, 1fr); row-gap: 10px; margin-top: 18px; }
  .sp-form form > .btn { justify-self: start; margin-top: 6px; }
  .sp-form .sp-mark { margin-top: 16px; }
  #sp-hello p { font-size: 20px; max-width: 13em; }
}
@media (max-width: 560px) { .top { flex-direction: row; align-items: center; justify-content: space-between; height: 76px; gap: 12px; } .top .mark { display: block; margin: 0; font-size: 19px; letter-spacing: .02em; } .nav { gap: 13px; } .top .nav a { font-size: 12px; letter-spacing: .02em; text-transform: none; } }
@media (prefers-reduced-motion: reduce) { .gx-poster { transition: none; } #sp-hello.ready i { animation: none; opacity: .9; } }
