/* 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-words, #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-words { z-index: 4; }
#space { z-index: 3; overflow: hidden; }
#sp-load { position: fixed; z-index: 6; left: 0; bottom: 0; height: 2px; width: 0; background: #fff; transition: width .3s, opacity 1s; }
#sp-load.done { opacity: 0; }
#sp-hello { position: fixed; z-index: 4; left: 0; right: 0; bottom: var(--gx-gut); display: grid; justify-items: center; gap: 14px; color: #fff; font: 300 var(--gx-word)/1 var(--f); letter-spacing: .3em; text-indent: .3em; text-transform: uppercase; text-shadow: var(--gx-shade); }
#sp-hello i { width: 1px; height: 46px; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff); animation: sp-fall 2.6s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes sp-fall { 0% { transform: scaleY(0); opacity: 0; } 45% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1) translateY(16px); opacity: 0; } }

/* a slide of glass */
.sp-card { position: absolute; left: 0; top: 0; visibility: hidden; transform-origin: 50% 50%; will-change: transform, opacity; color: #fff; text-align: center; text-shadow: var(--gx-shade); border-radius: 6px; list-style: none;
  background: linear-gradient(150deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .06) 46%, rgba(255, 255, 255, .15)); -webkit-backdrop-filter: blur(18px) saturate(1.2) brightness(.8); backdrop-filter: blur(18px) saturate(1.2) brightness(.8);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .55), inset -1px -1px 0 rgba(255, 255, 255, .16), 0 0 0 .5px rgba(255, 255, 255, .22), 0 30px 80px rgba(0, 0, 0, .4); }
.sp-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, .22) 0, rgba(255, 255, 255, .05) 25%, rgba(255, 255, 255, 0) 25.3%); }
.sp-work { width: min(44vw, 62vh); padding: 14px; }
.sp-work .entry { position: relative; width: 100%; aspect-ratio: 1; list-style: none; margin: 0; padding: 0; }
.sp-work .entry-frame { border-radius: 3px; }
.sp-work .entry-frame video { filter: brightness(1.06); }
.sp-work p { margin: 0; padding: max(14px, calc(1.1 * var(--u))) 4px max(6px, calc(.4 * var(--u))); font: 300 max(18px, calc(1.5 * var(--u)))/1.1 var(--f); letter-spacing: .04em; }
.sp-step { width: min(46vw, 760px); padding: max(34px, calc(3.4 * var(--u))) max(26px, calc(3 * var(--u))); }
.sp-step h3 { font: 200 max(30px, calc(3.5 * var(--u)))/1.08 var(--f); text-wrap: balance; }
.sp-step p { margin: max(14px, calc(1.3 * var(--u))) auto 0; max-width: 24em; font: 300 max(17px, calc(1.35 * var(--u)))/1.45 var(--f); text-wrap: balance; }
.sp-call { width: min(60vw, 900px); padding: max(40px, calc(4 * var(--u))) 24px; }
.sp-call .reach { gap: max(22px, calc(2 * var(--u))); }
.sp-call .phone { font-size: max(38px, calc(4.6 * var(--u))); }
.sp-form { width: min(70vw, 980px); padding: max(26px, calc(2.6 * var(--u))) max(20px, calc(3.2 * var(--u))) max(22px, calc(2 * var(--u))); }
.sp-form .statement { margin: 0 auto max(18px, calc(1.7 * var(--u))); }
.sp-form form { row-gap: max(12px, calc(1.2 * var(--u))); }
.sp-form form input { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); -webkit-backdrop-filter: none; backdrop-filter: none; }
.sp-form form label span, .sp-form .note { color: #fff; }
.sp-form .sp-mark { margin-top: max(16px, calc(1.5 * var(--u))); font: 200 max(17px, calc(1.2 * var(--u)))/1.3 var(--f); }

/* 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(28px, calc(2.7 * var(--u))); color: #fff; text-shadow: var(--gx-shade); }
.top .nav a { font-weight: 300; font-size: var(--gx-word); letter-spacing: .3em; color: #fff; text-shadow: var(--gx-shade); }
.top.gx-away { opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s linear .5s; }
.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; }
.gx-still .sp-card { visibility: visible !important; position: relative; transform: none !important; opacity: 1 !important; margin: 40px auto; pointer-events: auto !important; }
.gx-still #space { position: absolute; height: auto; padding: 100vh 0 10vh; }
.gx-still #sp-hello, .gx-still #sp-load { display: none; }
.gx-still .sp-card { background: rgba(6, 9, 13, .7); }

@media (orientation: portrait), (max-width: 760px) {
  .sp-work { width: min(78vw, 54vh); }
  .sp-step { width: 84vw; }
  .sp-call, .sp-form { width: 88vw; }
  .sp-form .statement { margin-bottom: 14px; }
  .sp-form form { row-gap: 10px; }
  .sp-form form label { gap: 5px; }
  .top .nav a { letter-spacing: .12em; font-size: 13px; }
}
@media (max-width: 560px) { .top { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; height: 112px; } .top .mark { display: block; margin: 0; } .nav { gap: 18px; } }
@media (prefers-reduced-motion: reduce) { .gx-poster { transition: none; } #sp-hello i { animation: none; } }
