* { box-sizing: border-box; }
:root { color-scheme: dark; font-family: "Inter", "Segoe UI", Arial, sans-serif; color: #ecf1f7; background: #06080b; }
body { margin: 0; }
.page { height: 100vh; height: 100svh; min-height: min-content; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: 0 clamp(20px, 5vw, 90px); isolation: isolate; background: radial-gradient(ellipse at 54% 54%, #101824 0%, #090c11 45%, #06080b 76%); }
.bar, footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.bar { padding: 8px 0; border-bottom: 1px solid #262e39; }
.signature { font-size: 1rem; font-weight: 630; letter-spacing: -.025em; display: inline-flex; align-items: center; gap: 12px; }
.signature i { width: 19px; height: 15px; transform: skewX(-22deg); background: repeating-linear-gradient(to right, #91bfff 0 3px, transparent 3px 6px); }
.motion { cursor: pointer; border: 1px solid #364150; border-radius: 30px; color: #c4cdd9; font: inherit; font-size: .875rem; background: #11171d; padding: 0 16px; min-height: 44px; display: inline-flex; align-items: center; gap: 10px; }
.motion[hidden] { display: none; }
.glyph { width: 12px; height: 12px; background: currentColor; clip-path: polygon(13% 4%,94% 50%,13% 96%); }
.motion.playing .glyph { clip-path: polygon(8% 4%,36% 4%,36% 96%,64% 96%,64% 4%,92% 4%,92% 96%,8% 96%); }
main { display: grid; min-width: 0; min-height: 0; }
.identity { display: flex; min-height: 0; flex-direction: column; justify-content: center; align-items: center; gap: 8px; padding-block: 8px; text-align: center; }
.stage { flex: 0 1 auto; min-height: 0; width: min(100%, 1160px); aspect-ratio: 16 / 9; container-type: size; display: grid; place-items: center; }
video { width: 100%; height: auto; display: block; mask-image: linear-gradient(to bottom, transparent, black 15%, black 92%, transparent), linear-gradient(to right, transparent, black 7%, black 93%, transparent); mask-composite: intersect; }
footer { border-top: 1px solid #313945; padding: 10px 0 max(12px, env(safe-area-inset-bottom)); }
.caption { display: block; text-transform: uppercase; font-size: .75rem; letter-spacing: .15em; font-weight: 550; color: #a7b2c1; margin-bottom: 6px; }
a { color: inherit; text-decoration: none; }
a:hover, .motion:hover { color: #9bcaff; }
a:focus-visible, button:focus-visible { outline: 2px solid #8bc9ff; outline-offset: 4px; }
.contact a { display: inline-flex; align-items: center; min-height: 32px; font-size: clamp(1rem, 1.8vw, 1.6rem); letter-spacing: -.025em; }
.credit { text-align: right; display: block; }
.credit img { display: block; width: clamp(88px, 8vw, 108px); height: auto; filter: brightness(0) invert(.91); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 640px) {
  .stage { width: calc(100% + 24px); }
  footer { gap: 10px; }
  .bar { flex-wrap: wrap; gap: 8px 12px; }
  .motion { margin-left: auto; }
  .bar { padding: 5px 0; }
}
@media (max-width: 345px) { footer { flex-wrap: wrap; row-gap: 16px; } }
#sculpture, #model { width: min(100cqw, 177.7778cqh); height: min(100cqh, 56.25cqw); }
#model { display: block; cursor: grab; touch-action: none; border-radius: 4px; }
#model:active { cursor: grabbing; }
#model:focus-visible { outline: 1px solid #78b2f5; outline-offset: 2px; }
.studio-controls { flex: none; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 16px; }
.studio-controls button { min-height: 44px; padding: 0 18px; border-radius: 24px; font: inherit; font-size: .9rem; color: #e2ecf8; background: #121a23; border: 1px solid #44556b; cursor: pointer; }
.studio-controls button:hover, .studio-controls button[aria-pressed="true"] { background: #192b40; border-color: #7198c7; }
#model-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; }
#model-controls label { margin-left: 4px; font-size: .875rem; color: #cbd9ea; }
#beam { accent-color: #81baff; width: clamp(100px, 12vw, 160px); height: 32px; cursor: pointer; }
#inspect-help, #model-status:not(:empty) { margin: 0; width: 100%; color: #a9b6c7; font-size: .8125rem; }
#model-status:empty, [hidden], #model[hidden], #model-controls[hidden] { display: none; }

@media (max-height: 520px) {
  .bar { padding-block: 2px; }
  .identity { gap: 2px; padding-block: 2px; }
  footer { padding-block: 3px max(3px, env(safe-area-inset-bottom)); }
  .credit img { width: 78px; }
  .caption { margin-bottom: 2px; }
}
