@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/space-grotesk-400.woff2?v=7e743892abc0") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/space-grotesk-500.woff2?v=b44b71f623fc") format("woff2");
  font-weight: 500;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #e9e9e5;
  --ink: #202328;
  --quiet: #62666b;
  --accent: #8c4f2c;
  --surface: rgba(255, 255, 255, .86);
  --edge: clamp(22px, 3.7vw, 64px);
  --dock-bottom: max(42px, calc(env(safe-area-inset-bottom) + 24px));
  font-family: "Space Grotesk", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-width: 280px; background: var(--paper); color: var(--ink); }
body { -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
button:disabled, input:disabled { cursor: wait; opacity: .42; }
button, select, a, input { outline-offset: 5px; }
:focus-visible { outline: 2px solid var(--accent); }
button { border: 0; }
button svg { pointer-events: none; }
a { color: inherit; }
[hidden] { display: none !important; }
.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; }
.experience { position: relative; height: 100svh; min-height: 320px; isolation: isolate; overflow: hidden; }
.scene-poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 100px 120px 145px 220px; object-fit: contain; object-position: center; pointer-events: none; opacity: 1; transition: opacity .4s, visibility 0s .4s; }
#scene-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; outline-offset: -7px; opacity: 0; transition: opacity .6s ease; }
#scene-canvas:active { cursor: grabbing; }
.is-ready #scene-canvas { opacity: 1; }
.is-ready .scene-poster { opacity: 0; visibility: hidden; }
.is-context-lost .scene-poster { opacity: 1; visibility: visible; transition-delay: 0s; }
.is-context-lost #scene-canvas { opacity: 0; }
.has-error .assembly-dock, .has-error .header-controls, .has-error .detail-nav, .has-error .scene-zoom, .has-error .gesture-hint { display: none; }
.masthead { position: absolute; z-index: 4; top: 32px; left: var(--edge); right: var(--edge); display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; pointer-events: none; }
.identity { position: relative; pointer-events: auto; }
.identity::before { content: ""; position: absolute; z-index: -1; inset: -10px -14px; border-radius: 17px; background: rgba(233,233,229,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); pointer-events: none; }
.identity h1, .wordmark { margin: 0; font-size: clamp(24px, 2.25vw, 34px); font-weight: 500; line-height: 1; letter-spacing: -.067em; }
.wordmark { pointer-events: auto; text-decoration: none; }
.identity p { margin: 12px 0 0; font-size: 12px; line-height: 1.2; letter-spacing: -.01em; color: var(--quiet); }
.soft-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 0 22px; border-radius: 40px; background: rgba(255,255,255,.76); font-size: 14px; font-weight: 500; letter-spacing: -.025em; text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.soft-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linejoin: round; }
.header-controls { display: flex; align-items: center; gap: 9px; pointer-events: auto; }
.tour-trigger { gap: 10px; color: #fff; background: var(--ink); padding-inline: 19px 23px; }
.tour-trigger .tour-play { fill: currentColor; stroke: none; }
.tour-trigger .tour-pause { display: none; stroke-width: 2.5; }
.tour-trigger[aria-pressed="true"] .tour-play { display: none; }
.tour-trigger[aria-pressed="true"] .tour-pause { display: block; }
.detail-nav { position: absolute; z-index: 3; left: var(--edge); top: 50%; display: flex; flex-direction: column; gap: 5px; transform: translateY(-50%); }
.detail-nav::before { content: ""; position: absolute; z-index: -1; inset: -12px -17px; border-radius: 24px; background: rgba(233,233,229,.88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); pointer-events: none; }
.detail-nav button { position: relative; display: flex; align-items: center; gap: 18px; min-height: 47px; padding: 0 17px 0 0; border-radius: 0; background: transparent; text-align: left; color: var(--quiet); font-size: 13px; letter-spacing: -.02em; transition: color .2s; }
.detail-number { position: relative; width: 34px; color: #8a8e8e; font-size: 10px; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.detail-number::after { position: absolute; content: ""; right: 0; top: 50%; width: 8px; height: 1px; background: currentColor; transform-origin: right; transition: transform .3s, background .3s; }
.detail-nav button[aria-pressed="true"] { color: var(--ink); }
.detail-nav button[aria-pressed="true"] .detail-number { color: var(--accent); }
.detail-nav button[aria-pressed="true"] .detail-number::after { transform: scaleX(1.75); background: var(--accent); }
.scene-zoom { position: absolute; z-index: 3; right: var(--edge); top: 50%; display: flex; flex-direction: column; gap: 1px; padding: 4px; border-radius: 29px; transform: translateY(-50%); }
.scene-zoom .icon-button { width: 44px; height: 44px; }
.view-trigger { pointer-events: auto; }
.view-trigger[aria-expanded="true"] { color: #fff; background: var(--ink); }
.surface { background: var(--surface); box-shadow: 0 12px 44px rgba(27, 32, 38, .09), 0 1px 1px rgba(27, 32, 38, .025); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.view-panel { position: absolute; z-index: 5; top: 92px; right: var(--edge); width: 292px; border-radius: 24px; padding: 16px; animation: panel-in .18s ease-out; }
.view-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.view-grid button { min-height: 44px; border-radius: 12px; font-size: 13px; background: rgba(28, 34, 40, .035); }
.view-grid button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.light-control { display: grid; grid-template-columns: 42px minmax(0, 1fr) 44px; align-items: center; gap: 8px; margin-top: 14px; }
.light-label { display: grid; gap: 4px; padding-left: 3px; font-size: 12px; color: var(--quiet); }
.light-label output { font-size: 11px; color: var(--ink); font-variant-numeric: tabular-nums; }
#light-direction { display: block; width: 100%; min-width: 0; height: 44px; margin: 0; accent-color: var(--ink); touch-action: pan-y; }
.part-picker { display: block; margin-top: 20px; font-size: 12px; color: var(--quiet); }
.part-picker > span { display: block; padding-left: 3px; margin-bottom: 7px; }
.part-picker select { width: 100%; min-height: 46px; padding: 0 12px; border: 0; border-radius: 12px; background: rgba(28,34,40,.045); color: var(--ink); font-size: 13px; }
.view-panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; padding-top: 11px; border-top: 1px solid rgba(30,35,40,.09); }
.zoom-controls { display: flex; gap: 2px; }
.icon-button { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: transparent; }
.icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.reference-link { display: flex; align-items: center; min-height: 44px; font-size: 12px; text-decoration: none; color: var(--quiet); }
.reference-link span { margin-left: 4px; }
.selection-chip { position: absolute; z-index: 3; top: 32px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; min-height: 48px; max-width: min(350px, 30vw); padding: 3px 5px 3px 18px; border-radius: 32px; gap: 8px; animation: panel-in .2s ease-out; }
.selection-chip > span { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.focus-button { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 24px; background: var(--ink); color: #fff; }
.focus-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.35; }
.isolate-button { flex: none; min-height: 44px; padding: 0 12px; border-radius: 24px; font-size: 12px; background: transparent; color: var(--ink); transition: background .2s, color .2s; }
.isolate-button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.clear-selection { width: 44px; height: 44px; }
.assembly-dock { position: absolute; z-index: 3; bottom: var(--dock-bottom); left: 50%; display: flex; align-items: center; gap: 24px; width: min(574px, calc(100% - 44px)); min-height: 86px; padding: 15px 24px 15px 15px; border-radius: 28px; transform: translateX(-50%); }
.assembly-toggle { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; min-width: 130px; padding: 0 18px; border-radius: 21px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; letter-spacing: -.01em; transition: background .2s; }
.assembly-toggle svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }
.assembly-layer { transform-origin: center; transition: transform .3s ease; }
.is-separated .layer-top { transform: translateY(-1px); }
.is-separated .layer-bottom { transform: translateY(1px); }
.separation-control { flex: 1; min-width: 0; padding-top: 4px; }
.separation-label { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; font-size: 12px; line-height: 1; }
.separation-label label { color: var(--quiet); }
.separation-label output { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
#separation { --separation: 0%; display: block; appearance: none; -webkit-appearance: none; width: 100%; min-width: 0; height: 44px; margin: 0; background: transparent; cursor: ew-resize; touch-action: pan-y; }
#separation:focus-visible { outline-offset: -3px; border-radius: 10px; }
#separation::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(to right, var(--ink) 0 var(--separation), #d4d6d5 var(--separation) 100%); }
#separation::-moz-range-track { height: 3px; border-radius: 3px; background: #d4d6d5; }
#separation::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--ink); }
#separation::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 13px; height: 22px; margin-top: -9.5px; border: 3px solid #fff; border-radius: 8px; background: var(--ink); box-shadow: 0 1px 5px rgba(30,35,40,.22); transition: box-shadow .2s; }
#separation::-moz-range-thumb { width: 7px; height: 16px; border: 3px solid #fff; border-radius: 8px; background: var(--ink); box-shadow: 0 1px 5px rgba(30,35,40,.22); }
.gesture-hint { position: absolute; z-index: 2; bottom: max(13px, calc(env(safe-area-inset-bottom) + 5px)); left: 0; right: 0; margin: 0; color: #696e71; font-size: 12px; line-height: 1; text-align: center; pointer-events: none; transition: opacity .35s; }
.gesture-hint > span[aria-hidden] { margin: 0 8px; opacity: .5; }
.touch-hint { display: none; }
.has-interacted .gesture-hint, .is-touring .gesture-hint { opacity: 0; }
.scene-loading { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; pointer-events: none; }
.loading-mark { display: flex; gap: 5px; align-items: center; }
.loading-mark i { display: block; width: 4px; height: 26px; background: #697074; border-radius: 2px; animation: breathe 1.1s ease-in-out infinite alternate; }
.loading-mark i:nth-child(2) { animation-delay: .15s; }
.loading-mark i:nth-child(3) { animation-delay: .3s; }
.scene-error { position: absolute; bottom: var(--dock-bottom); left: 18px; right: 18px; display: flex; justify-content: center; align-items: center; gap: 14px; text-align: center; font-size: 12px; }
.scene-error p { margin: 0; }
.scene-error .soft-button { min-height: 44px; padding-inline: 17px; font-size: 12px; }
.no-script { position: absolute; bottom: var(--dock-bottom); left: 24px; right: 24px; margin: 0; text-align: center; color: var(--quiet); font-size: 12px; }
.not-found { display: flex; min-height: 100svh; align-items: center; justify-content: center; flex-direction: column; gap: 28px; padding: 120px 24px 64px; text-align: center; }
.missing-number { margin: 0; font-size: clamp(120px, 25vw, 320px); line-height: .85; letter-spacing: -.1em; font-weight: 500; }
.not-found h1 { margin: 0; color: var(--quiet); font-size: 16px; font-weight: 400; letter-spacing: -.035em; }
.not-found .soft-button { background: var(--ink); color: #fff; gap: 24px; }
@keyframes breathe { from { transform: scaleY(.45); opacity: .25; } to { transform: scaleY(1); opacity: .7; } }
@keyframes panel-in { from { opacity: 0; } to { opacity: 1; } }
@media (hover: hover) {
  .soft-button:hover { background: #fff; }
  .tour-trigger:hover { background: #373e46; }
  .detail-nav button:hover { color: var(--ink); }
  .view-trigger[aria-expanded="true"]:hover, .assembly-toggle:hover { background: #373e46; }
  .icon-button:hover, .view-grid button:hover { background: rgba(28,34,40,.075); }
  .view-grid button[aria-pressed="true"]:hover { background: #373e46; }
  .focus-button:hover { background: #373e46; }
}
@media (min-width: 761px) {
  .detail-nav {
    --nav-top: 100px;
    --nav-bottom: calc(var(--dock-bottom) + 112px);
    left: calc(var(--edge) - 12px);
    top: calc((var(--nav-top) + 100% - var(--nav-bottom)) / 2);
    max-height: max(0px, calc(100% - var(--nav-top) - var(--nav-bottom)));
    padding: 12px;
    border-radius: 16px;
    background: rgba(233,233,229,.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-padding-block: 12px;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #8a8e8e transparent;
  }
  .detail-nav::before { display: none; }
  .detail-nav button { flex: 0 0 auto; scroll-margin-block: 12px; }
  .detail-nav::-webkit-scrollbar { width: 8px; }
  .detail-nav::-webkit-scrollbar-thumb { border: 2px solid rgba(233,233,229,.88); border-radius: 8px; background: #8a8e8e; }
}
@media (max-width: 760px) {
  :root { --edge: 22px; --dock-bottom: max(35px, calc(env(safe-area-inset-bottom) + 20px)); }
  .masthead { top: max(22px, env(safe-area-inset-top)); gap: 12px; }
  .identity h1 { font-size: 25px; }
  .scene-poster { padding: 94px 58px 210px 16px; }
  .identity p { font-size: 12px; margin-top: 9px; }
  .view-trigger { min-height: 44px; gap: 12px; padding-inline: 17px; font-size: 13px; }
  .view-trigger svg { width: 17px; }
  .header-controls { gap: 6px; }
  .tour-trigger { width: 44px; height: 44px; min-height: 44px; padding: 0; }
  .tour-trigger > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .detail-nav { left: 50%; top: auto; bottom: calc(var(--dock-bottom) + 103px); flex-direction: row; gap: 2px; justify-content: flex-start; width: min(480px, calc(100% - 32px)); padding: 3px; border-radius: 24px; background: rgba(255,255,255,.83); transform: translateX(-50%); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; }
  @supports selector(:has(:focus-visible)) {
    .detail-nav { --nav-fade-left: 0px; --nav-fade-right: 0px; -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--nav-fade-left), #000 calc(100% - var(--nav-fade-right)), transparent); mask-image: linear-gradient(to right, transparent, #000 var(--nav-fade-left), #000 calc(100% - var(--nav-fade-right)), transparent); }
    .detail-nav.can-scroll-left { --nav-fade-left: 14px; }
    .detail-nav.can-scroll-right { --nav-fade-right: 14px; }
    .detail-nav:has(:focus-visible) { -webkit-mask-image: none; mask-image: none; }
  }
  .detail-nav::-webkit-scrollbar { display: none; }
  .detail-nav::before { display: none; }
  .detail-nav button { flex: 1 0 auto; justify-content: center; min-width: 58px; min-height: 44px; padding: 0 13px; border-radius: 22px; font-size: 11px; }
  .detail-nav button[aria-pressed="true"] { background: var(--ink); color: #fff; }
  .detail-number { display: none; }
  .scene-zoom { right: 14px; padding: 3px; box-shadow: 0 5px 25px rgba(27,32,38,.05); }
  .scene-zoom .icon-button { width: 44px; height: 44px; }
  .view-panel { top: max(80px, calc(env(safe-area-inset-top) + 58px)); width: min(292px, calc(100% - 44px)); }
  .selection-chip { top: auto; bottom: calc(var(--dock-bottom) + 163px); width: max-content; max-width: calc(100% - 44px); min-height: 48px; padding-left: 15px; }
  .selection-chip > span { font-size: 12px; }
  .assembly-dock { width: min(574px, calc(100% - 32px)); gap: 17px; min-height: 88px; padding: 14px 19px 14px 13px; border-radius: 25px; }
  .assembly-toggle { min-width: 56px; width: 56px; height: 56px; padding: 0; border-radius: 19px; }
  .assembly-toggle > span { display: none; }
  .assembly-toggle svg { width: 25px; height: 25px; }
  .separation-label { font-size: 12px; }
  .gesture-hint { bottom: max(13px, calc(env(safe-area-inset-bottom) + 2px)); font-size: 12px; }
  .desktop-hint { display: none; }
  .touch-hint { display: inline; }
}
@media (max-width: 350px) {
  :root { --edge: 16px; }
  .identity h1 { font-size: 23px; }
  .view-trigger { padding-inline: 14px; gap: 9px; }
  .view-trigger svg { display: none; }
  .detail-nav button { padding-inline: 4px; font-size: 10px; }
  .assembly-dock { gap: 13px; }
}
@media (min-width: 761px) and (max-width: 860px) {
  .tour-trigger { width: 48px; padding: 0; }
  .tour-trigger > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
}
@media (max-height: 640px) and (min-width: 761px) {
  .detail-nav { --nav-top: 90px; --nav-bottom: calc(var(--dock-bottom) + 102px); }
  .masthead { top: 22px; }
  .assembly-dock { min-height: 76px; padding-block: 10px; }
  .view-panel { top: 78px; }
}
@media (max-height: 600px) {
  :root { --dock-bottom: max(14px, env(safe-area-inset-bottom)); }
  .masthead { top: max(18px, env(safe-area-inset-top)); }
  .identity p, .gesture-hint { display: none; }
  .view-panel { top: 74px; max-height: calc(100svh - 88px); overflow-y: auto; overscroll-behavior: contain; }
  .assembly-dock { min-height: 76px; padding-block: 10px; }
  .scene-poster { padding: 84px 100px 112px 205px; }
}
@media (max-height: 600px) and (min-width: 761px) {
  .detail-nav { --nav-top: calc(max(18px, env(safe-area-inset-top)) + 68px); }
}
@media (max-height: 600px) and (max-width: 760px) {
  .view-panel { width: min(272px, calc(100% - 44px)); }
  .scene-poster { padding: 76px 58px 170px 14px; }
  .detail-nav { bottom: calc(var(--dock-bottom) + 88px); }
  .selection-chip { bottom: calc(var(--dock-bottom) + 143px); min-height: 44px; }
  .scene-zoom { top: 44%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .loading-mark i { opacity: .5; }
}
