:root {
  color-scheme: light;
  --paper: #faf9f6;
  --ink: #252722;
  --secondary: #62645c;
  --line: #d9d9d0;
  --accent: #a84e2f;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Baskervville", "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, p, dl, dd, fieldset { margin: 0; }
body { min-width: 0; }
button, input { font: inherit; }
button, a, label, summary { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
svg { display: block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.frame { width: min(calc(100% - clamp(44px, 9vw, 160px)), 1456px); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { height: 73px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 600; letter-spacing: -.035em; }
.brand-icon { width: 27px; height: 31px; stroke-width: 1.45; }
nav { display: flex; align-self: stretch; gap: 29px; }
nav a { display: inline-flex; position: relative; align-items: center; color: var(--secondary); font-size: 13px; letter-spacing: -.025em; }
nav a[aria-current] { color: var(--ink); }
nav a[aria-current]::after { content: ""; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: var(--ink); }
nav a:hover { color: var(--accent); }
.object-heading { padding: clamp(38px, 4vw, 66px) 0 30px; display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--secondary); font-size: 10px; line-height: 1.4; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.material-line { display: block; height: 2px; width: 21px; background: var(--accent); }
h1, .data-heading h2 { font-family: var(--serif); font-weight: 400; }
h1 { margin: 8px 0 0 -3px; font-size: clamp(66px, 6.8vw, 110px); letter-spacing: -.036em; line-height: .99; }
.intro-description { color: var(--secondary); max-width: 380px; margin-bottom: 5px; font-size: clamp(13px, 1.02vw, 16px); line-height: 1.55; letter-spacing: -.012em; }
.viewer-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(222px, 22.1%, 292px); gap: clamp(24px, 2.75vw, 45px); align-items: start; scroll-margin-top: 20px; }
.stage { --hud-ink: #353932; --hud-bg: rgba(249, 248, 244, .91); --hud-line: rgba(60, 62, 53, .18); --hud-accent: #657d4f; position: relative; overflow: hidden; isolation: isolate; height: clamp(442px, min(42.5vw, 60vh), 650px); min-width: 0; border: 1px solid #d5d5cb; border-radius: 5px; background: #e6e5df; color: var(--hud-ink); }
.stage[data-scene="dark"] { --hud-ink: #e7e8e1; --hud-bg: rgba(31, 32, 30, .87); --hud-line: rgba(229, 231, 221, .21); --hud-accent: #b4c89a; background: #1b1d1e; border-color: #383a38; }
.stage[data-scene="room"] { background: #ae9d87; }
.stage-art, .stage-art img, .stage-art canvas { position: absolute; display: block; width: 100%; height: 100%; inset: 0; }
.stage-art img { object-fit: cover; pointer-events: none; color: transparent; }
.stage-art canvas { outline-offset: -4px; opacity: 0; touch-action: none; cursor: grab; }
.stage-art canvas:active { cursor: grabbing; }
.stage.is-live .stage-art canvas { opacity: 1; }
.stage.is-live .stage-art img { visibility: hidden; }
.stage:fullscreen, .stage.expanded { width: 100%; height: 100%; min-height: 0; max-height: none; border: 0; border-radius: 0; }
.stage.expanded { position: fixed; inset: 0; z-index: 999; background: #e6e5df; }
body:has(.stage.expanded) { overflow: hidden; }
.stage-top, .stage-bottom { position: absolute; z-index: 2; left: 17px; right: 17px; display: flex; justify-content: space-between; align-items: center; gap: 6px; pointer-events: none; }
.stage-top { top: 16px; align-items: start; }
.stage-bottom { bottom: 16px; }
.live-badge { display: inline-flex; align-items: center; gap: 7px; min-height: 26px; padding: 0 9px; border-radius: 3px; border: 1px solid var(--hud-line); background: var(--hud-bg); font-size: 9px; font-weight: 600; letter-spacing: .095em; text-transform: uppercase; }
#live-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.is-live #live-dot { background: var(--hud-accent); }
.icon-button, .walk-pad button { display: grid; place-items: center; width: 33px; height: 33px; padding: 0; color: var(--hud-ink); background: transparent; border: 0; border-radius: 3px; touch-action: manipulation; }
.icon-button svg { width: 15px; height: 15px; }
.fullscreen, .view-tools, .walk-pad button { pointer-events: auto; background: var(--hud-bg); border: 1px solid var(--hud-line); }
.fullscreen { width: 31px; height: 31px; }
.icon-button:hover, .walk-pad button:hover { background: color-mix(in srgb, var(--hud-bg) 84%, var(--hud-ink)); }
.icon-button:disabled { opacity: .38; cursor: default; }
.gesture-hint { display: inline-flex; align-items: center; gap: 6px; color: var(--hud-ink); font-size: 10px; line-height: 1.4; letter-spacing: .005em; padding: 5px 7px; border-radius: 3px; background: var(--hud-bg); }
.gesture-hint svg { width: 13px; height: 13px; stroke-width: 1.6; }
.gesture-divider { padding: 0 3px; opacity: .45; }
.pinch-tip { display: none; }
.view-tools { display: flex; flex: none; align-items: center; padding: 1px; border-radius: 4px; }
.tool-divider { width: 1px; height: 15px; background: var(--hud-line); margin: 0 2px; }
.walk-pad { position: absolute; display: grid; grid-template-columns: repeat(3, 35px); grid-template-rows: repeat(2, 35px); gap: 3px; bottom: 58px; left: 17px; z-index: 2; }
.walk-pad button { width: 35px; height: 35px; }
.walk-pad svg { width: 18px; height: 18px; }
[data-move="forward"] { grid-column: 2; }
[data-move="left"] { grid-column: 1; }
[data-move="left"] svg { transform: rotate(-90deg); }
[data-move="right"] svg { transform: rotate(90deg); }
[data-move="back"] svg { transform: rotate(180deg); }
.controls { padding-top: 2px; }
fieldset { padding: 0; border: 0; min-inline-size: 0; }
legend { float: left; padding: 0; margin: 0 0 14px; font-size: 17px; line-height: 1.2; font-weight: 550; letter-spacing: -.035em; }
legend + * { clear: both; }
.scene-list { display: grid; gap: 7px; }
.scene-card { display: flex; position: relative; align-items: center; gap: 11px; min-height: 63px; padding: 8px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; background: transparent; transition: background-color .14s, border-color .14s; }
.scene-card:hover { background: #f1f0eb; }
.scene-card:has(:checked) { background: #f0efe9; border-color: #83867a; }
.scene-card:has(:focus-visible), .switch-row:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.scene-card:has(:disabled), .switch-row:has(:disabled) { opacity: .45; cursor: default; }
.scene-card input, .switch-row input, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.scene-thumb { position: relative; width: 52px; height: 44px; flex: none; overflow: hidden; border-radius: 2px; background-position: center; background-size: cover; box-shadow: inset 0 0 0 1px rgba(45, 48, 39, .08); }
.light-thumb { background-color: #deddd6; background-image: url("./studio-poster.webp"); }
.dark-thumb { background-color: #232522; background-image: url("./dark-poster.webp"); }
.room-thumb { background-color: #b4a38a; background-image: url("./room-poster.webp"); }
.scene-text { display: grid; gap: 4px; min-width: 0; }
.scene-text strong { font-size: 14px; line-height: 1.12; font-weight: 550; letter-spacing: -.02em; }
.scene-text small { font-size: 12px; line-height: 1.15; color: var(--secondary); }
.radio-dot { margin: 0 4px 0 auto; width: 13px; height: 13px; border-radius: 50%; border: 1px solid #acafa2; flex: none; display: grid; place-items: center; }
.scene-card:has(:checked) .radio-dot { background: var(--ink); border-color: var(--ink); }
.scene-card:has(:checked) .radio-dot::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--paper); }
.inspection { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.inspection legend { margin-bottom: 11px; }
.switch-row { position: relative; display: flex; align-items: center; gap: 9px; cursor: pointer; min-height: 35px; font-size: 14px; letter-spacing: -.01em; }
.switch-row > svg { width: 16px; height: 16px; color: #63675c; stroke-width: 1.4; }
.switch { margin-left: auto; display: flex; align-items: center; padding: 2px; width: 28px; height: 16px; border-radius: 12px; background: #c9ccc1; }
.switch::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #0002; transition: transform .14s; }
.switch-row:has(:checked) .switch { background: #525a49; }
.switch-row:has(:checked) .switch::after { transform: translateX(12px); }
.room-note, .fallback-message { font-size: 12px; line-height: 1.55; margin-top: 10px; color: var(--secondary); }
.specifications { margin: clamp(38px, 4vw, 66px) 0 52px; padding-top: 27px; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.data-heading { display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.data-heading h2 { margin-top: 7px; font-size: clamp(34px, 3vw, 48px); line-height: 1.08; letter-spacing: -.052em; }
.download-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 3px; font-size: 12px; font-weight: 500; }
.download-link svg { width: 15px; height: 15px; }
.download-link > span { color: var(--secondary); font-size: 9px; letter-spacing: .04em; }
.download-link:hover, .notes-body a:hover { color: var(--accent); }
.data-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.15fr; margin-top: 24px; }
.data-grid > div { padding: 1px 16px 1px 22px; border-left: 1px solid var(--line); }
.data-grid > div:first-child { padding-left: 0; border: 0; }
.data-grid dt { margin-bottom: 7px; font-size: 10.5px; letter-spacing: .005em; color: var(--secondary); }
.data-grid dd { font-size: clamp(18px, 1.55vw, 25px); letter-spacing: -.05em; }
.data-grid dd span { font-size: .74em; letter-spacing: -.018em; }
.optics-notes { margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.optics-notes summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 1px; list-style: none; font-size: 13px; cursor: pointer; }
.optics-notes summary::-webkit-details-marker { display: none; }
.optics-notes summary svg { width: 14px; height: 14px; }
.optics-notes[open] summary svg { transform: rotate(180deg); }
.notes-body { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; color: var(--secondary); font-size: 13px; line-height: 1.65; padding-bottom: 18px; max-width: 1000px; }
.notes-body a { display: inline-flex; align-items: center; gap: 1px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.notes-body a svg { width: 11px; height: 11px; }
@media (max-width: 950px) {
  .frame { width: calc(100% - 48px); }
  .viewer-layout { gap: 20px; grid-template-columns: minmax(0, 1fr) 216px; }
  .intro-description { font-size: 13px; }
  .scene-card { gap: 8px; }
  .scene-thumb { width: 45px; }
  .stage { height: 435px; }
}
@media (max-width: 750px) {
  .frame { width: calc(100% - 36px); }
  .header-inner { height: 58px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand-icon { width: 22px; height: 26px; }
  nav { gap: 20px; }
  nav a { font-size: 12px; }
  .object-heading { align-items: start; flex-direction: column; gap: 12px; padding: 28px 0 21px; }
  h1 { font-size: clamp(55px, 11vw, 76px); margin-top: 7px; }
  .intro-description { font-size: 13px; margin: 0; max-width: 38em; }
  .wide-only { display: none; }
  .viewer-layout { display: block; }
  .stage { height: clamp(325px, 77vw, 480px); }
  .controls { padding: 0; margin-top: 23px; }
  .scene-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .scene-card { gap: 8px; flex-wrap: wrap; align-items: start; padding: 7px; min-height: 0; }
  .scene-thumb { width: 100%; height: clamp(38px, 11vw, 65px); }
  .scene-thumb.light-thumb, .scene-thumb.dark-thumb { background-size: 100% auto; }
  .scene-text { gap: 4px; }
  .scene-text strong { font-size: 13px; }
  .scene-text small { font-size: 11px; }
  .radio-dot { position: absolute; top: 11px; right: 7px; margin: 0; width: 12px; height: 12px; background: #f8f8f3de; }
  legend { font-size: 16px; margin-bottom: 10px; }
  .inspection { margin-top: 16px; padding-top: 15px; display: flex; flex-wrap: wrap; column-gap: 20px; }
  .inspection legend { margin-bottom: 6px; width: 100%; }
  .switch-row { min-width: 128px; gap: 6px; min-height: 30px; font-size: 13px; }
  .switch { margin-left: 5px; }
  .specifications { margin: 26px 0 35px; padding-top: 20px; }
  .data-grid { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .data-grid > div:nth-child(3) { border: 0; padding-left: 0; }
  .data-grid dt { margin-bottom: 5px; }
  .notes-body { grid-template-columns: 1fr; gap: 10px; }
  .stage-top, .stage-bottom { left: 11px; right: 11px; }
  .stage-top { top: 11px; }
  .stage-bottom { bottom: 11px; }
}
@media (max-width: 375px) {
  nav { gap: 12px; }
  .frame { width: calc(100% - 28px); }
  .scene-text strong { font-size: 12px; }
  .scene-text small { font-size: 10px; }
}
@media (pointer: coarse) {
  .scroll-tip { display: none; }
  .pinch-tip { display: inline; }
  .view-tools .icon-button { width: 34px; height: 35px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
