.spatial-studio {
  --night: #0b0c10;
  --panel: #131419;
  --silver: #b9b9c6;
  --lavender: #bcb6ff;
  --line: #303139;
  background: var(--night);
}
.spatial-studio main {color: #f7f7fa}
.spatial-studio .globalnav,
.spatial-studio .lab-nav {background: rgba(16,17,21,.96); border-bottom: 1px solid #2a2b31}
.spatial-studio .globalnav a,
.spatial-studio .lab-nav .prod {color: #f4f4f7}
.spatial-studio .globalnav .vnc-pill {color: #eeeef4; background: #313238}
.lab-nav .prod {display: inline-flex; align-items: center; gap: 10px}
.lab-nav .prod svg {width: 20px; color: var(--lavender)}
.lab-nav ul a {color: #c3c3cd}
.lab-nav ul a:hover {color: #fff}
.lab-nav .btn {background: #edeef2; color: #131418; font-weight: 550}
.studio-wrap {width: min(100% - 2 * clamp(20px, 5vw, 80px), 1264px); margin-inline: auto}
.spatial-studio main section {padding-block: clamp(58px, 7vw, 104px)}
.spatial-studio main :focus-visible {outline: 2px solid #c7c1ff; outline-offset: 4px}
.studio-hero {position: relative; isolation: isolate; overflow: hidden; background: #08090d; min-height: clamp(510px, 44vw, 710px); display: grid; align-content: center; border-bottom: 1px solid var(--line)}
.hero-art {position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 54%}
.studio-hero::before {position: absolute; z-index: -1; content: ''; inset: 0; background: linear-gradient(90deg, rgba(6,7,11,.87), rgba(6,7,11,.55) 28%, transparent 62%), linear-gradient(0deg, rgba(6,7,11,.68), transparent 21%)}
.hero-content {padding-block: 64px 80px}
.kicker, .section-meta, .hero-credit, .feature-detail, .stage-top, .scale {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: .78rem; font-weight: 500; letter-spacing: .105em; text-transform: uppercase;
}
.kicker {display: flex; align-items: center; gap: 13px; color: #c9c6e4}
.kicker i {width: 27px; height: 1px; background: #aaa2ff}
.studio-hero h1 {margin: 22px 0 19px; font-size: clamp(4.1rem, 6.9vw, 7.4rem); line-height: .99; letter-spacing: -.071em; font-weight: 480}
.studio-hero h1 span, .studio-hero h1 em {display: block}
.studio-hero h1 em {font-family: Georgia, 'Times New Roman', serif; font-weight: 400; color: #dfdcfe; letter-spacing: -.066em; line-height: 1.06}
.hero-text {max-width: 390px; color: #ceced8; font-size: clamp(1rem, 1.15vw, 1.12rem); line-height: 1.55}
.studio-btn {font: inherit; font-size: .94rem; font-weight: 600; line-height: 1.15; min-height: 46px; border-radius: 999px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 12px 22px; border: 1px solid transparent; cursor: pointer; transition: background .18s, transform .18s}
.studio-btn svg, .gallery-back svg {width: 17px; height: 17px}
.bright {background: #f3f3f7; color: #14151c}
.bright:hover {background: #d9d6ff}
.outline {background: transparent; color: #f0efff; border-color: #696875}
.outline:hover {background: #282731; border-color: #aaa3d4}
.studio-btn:active {transform: scale(.98)}
.hero-content .studio-btn {margin-top: 28px}
.hero-credit {display: flex; align-items: center; gap: 9px; position: absolute; right: max(5vw, calc((100% - 1264px) / 2)); bottom: 22px; font-size: .75rem; letter-spacing: .05em; text-transform: none; color: #dbdae6}
.credit-mark {height: 9px; width: 9px; border: 1px solid #c1bbff; transform: rotate(45deg)}
.section-heading {display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 26px}
.studio-wrap h2 {font-size: clamp(2.35rem, 3.9vw, 4.1rem); line-height: 1.07; letter-spacing: -.055em; font-weight: 480}
.section-meta {color: #a7a6b4}
.feature {display: grid; grid-template-columns: 1.15fr 1fr; background: var(--panel); border: 1px solid #30313a; border-radius: 16px; overflow: hidden}
.feature-art {position: relative; min-width: 0; overflow: hidden; min-height: 335px; background: #191728}
.feature-art img {position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s}
.feature-art .portrait-preview {filter: grayscale(1)}
.feature-art:hover img {transform: scale(1.025)}
.feature-copy {padding: clamp(30px, 4.4vw, 66px); align-self: center}
.feature-copy h3, .console-heading h1 {font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.065em; line-height: 1.1}
.feature-copy h3 {font-size: clamp(3.5rem, 5vw, 5rem); margin: 13px 0}
.feature-copy > p:not(.kicker), .process-list p {font-size: 1.04rem; line-height: 1.65; color: var(--silver)}
.feature-copy .studio-btn {margin-top: 24px}
.feature-detail {display: flex; flex-wrap: wrap; gap: 13px; color: #b8b6c6; letter-spacing: .035em; font-size: .75rem; margin-top: 28px}
.feature-detail span + span {border-left: 1px solid #52505d; padding-left: 13px}
.studio-process {border-top: 1px solid var(--line); display: grid; grid-template-columns: .88fr 1fr; gap: clamp(38px, 9vw, 130px)}
.process-intro h2 {margin: 20px 0; max-width: 12em; text-wrap: balance}
.process-list article + article {border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px}
.process-list h3 {font-size: 1.38rem; letter-spacing: -.025em; margin-bottom: 7px; font-weight: 540}
.studio-contact {border-top: 1px solid var(--line); display: flex; gap: 26px; align-items: center; justify-content: space-between}
.console {padding-block: clamp(26px,4vw,58px) clamp(42px,5vw,80px)}
.console-heading {display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px}
.console-heading h1 {font-size: clamp(3.5rem, 5.1vw, 5.7rem); margin-top: 6px}
.gallery-back, .stage-tools button, .stage-tools p {display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: .875rem; color: #c9c7d5}
.gallery-back {min-height: 44px}
.gallery-back:hover, .stage-tools button:hover {color: #fff}
.console-grid {display: grid; grid-template-columns: minmax(0,1fr) clamp(288px,26vw,360px); align-items: stretch; border: 1px solid #383843; border-radius: 16px; overflow: hidden}
.stage {display: grid; grid-template-rows: auto 1fr auto; position: relative; background: radial-gradient(ellipse at 52% 56%, #1b1c2e 0%, #11121c 46%, #0b0c12 82%); min-width: 0}
.stage-top, .stage-tools {display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-inline: clamp(14px,2.2vw,30px)}
.stage-top {padding-top: 20px; color: #c4c3d5; letter-spacing: .09em}
.stage-top > span:first-child, .stage-tools p {display: inline-flex; align-items: center; gap: 8px}
.stage-top svg, .stage-tools svg {width: 17px; height: 17px}
.stage-axis {color: #93919f}
#volume {display: block; width: 100%; height: 100%; min-height: 356px; touch-action: none; cursor: grab}
#volume:active {cursor: grabbing}
#volume:focus-visible {outline-offset: -4px}
.stage-tools {padding-block: 0 9px}
.stage-tools button {border: 0; background: none; min-height: 44px; cursor: pointer}
.stage-tools {flex-wrap: wrap; column-gap: 10px; row-gap: 0}
.stage-tools p {flex: 1 1 180px}
.stage-tools p svg {flex-shrink: 0}
.camera-tools {display: flex; align-items: center; gap: 3px; margin-left: auto}
.camera-tools button {justify-content: center; min-width: 44px}
.camera-tools #zoom-in, .camera-tools #zoom-out {font-size: 1.3rem}
.camera-tools button:disabled {color: #74727e; cursor: default}
.camera-tools #reset-view {margin-left: 6px}
.wave-help {font-size: .88rem; color: var(--silver); line-height: 1.45}
.instruments {background: #17181e; padding: clamp(20px, 2.4vw, 36px); border-left: 1px solid var(--line); display: flex; flex-direction: column}
.instruments legend, .control-title label {font-size: 1.05rem; font-weight: 550; letter-spacing: -.015em}
.instruments fieldset {border: 0; min-width: 0}
.scene-grid {display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px}
.scene-choice {position: relative; cursor: pointer}
.scene-choice input {position: absolute; opacity: 0; width: 1px; height: 1px}
.scene-choice > span {min-height: 64px; border: 1px solid #42424d; border-radius: 8px; padding: 10px 6px; display: grid; justify-items: center; align-content: center; gap: 4px; color: #c6c5d2}
.scene-choice b {font-size: .875rem; font-weight: 500}
.scene-choice svg {width: 19px; height: 19px}
.scene-choice:hover > span {background: #22232b}
.scene-choice input:checked + span {border-color: #a79ee3; background: #292736; color: #e4deff}
.scene-choice input:focus-visible + span {outline: 2px solid #d5d0ff; outline-offset: 2px}
.scene-notes {margin: 16px 0 24px; min-height: 4.4em; font-size: 1rem; line-height: 1.46; color: var(--silver)}
.density {padding-block: 20px; border-top: 1px solid var(--line); margin-top: auto}
.control-title, .scale {display: flex; justify-content: space-between; align-items: center}
.control-title output {color: #d6d1ff; font: 1rem Consolas, monospace; font-variant-numeric: tabular-nums}
.instruments .control-title label {color: #f4f3f8}
.density input {width: 100%; height: 35px; accent-color: #bcb1ff; cursor: pointer}
.scale {color: #b3b1c0; letter-spacing: .01em}
.instruments .studio-btn {width: 100%; margin-top: 9px}
#playback > span {display: inline-flex; align-items: center; gap: 9px}
.spatial-studio [hidden], .spatial-studio #playback [hidden] {display: none}
@media (max-width: 760px) {
  .studio-hero {min-height: 600px; align-content: end}
  .studio-hero::before {background: linear-gradient(0deg, #090a0e 29%, rgba(9,10,14,.97) 39%, rgba(9,10,14,.81) 49%, rgba(9,10,14,.15) 64%, transparent 76%)}
  .hero-art {height: 65%; object-position: 74% center}
  .hero-content {padding-block: 220px 37px}
  .hero-credit {top: 14px; bottom: auto; right: 16px; background: #0b0c10c9; padding: 5px 9px; border-radius: 3px}
  .studio-hero h1 {font-size: clamp(3.65rem,10vw,5.2rem); margin: 16px 0 12px}
  .hero-content .studio-btn {margin-top: 20px}
  .feature {grid-template-columns: 1fr}
  .feature-art {min-height: 0; aspect-ratio: 2 / 1}
  .feature-copy {padding: 26px}
  .feature-detail {margin-top: 20px}
  .studio-process {grid-template-columns: 1fr; gap: 24px}
  .process-intro h2 {margin-bottom: 0}
  .studio-contact {flex-direction: column; align-items: flex-start}
  .console-grid {grid-template-columns: 1fr}
  #volume {height: clamp(230px, 69vw, 395px); min-height: 0}
  .instruments {border-left: 0; border-top: 1px solid var(--line)}
  .scene-grid {grid-template-columns: repeat(4,1fr)}
  .scene-notes {min-height: 0; margin-bottom: 16px}
  .gallery-back {font-size: .82rem}
}
@media (max-width: 450px) {
  .spatial-studio .globalnav li.nav-storefronts {display: none}
  .studio-hero {min-height: 560px}
  .hero-content {padding-top: 200px}
  .feature-art {aspect-ratio: 1.7}
  .section-heading {gap: 6px}
  .console {width: calc(100% - 24px)}
  .console-heading {padding-inline: 5px}
  .instruments {padding: 16px}
  .stage-top, .scale, .kicker {font-size: .75rem}
  .stage-tools {gap: 5px}
  .stage-tools p, .stage-tools button {font-size: .8rem}
  .scene-choice b {font-size: .8rem}
}
