:root {
  --ink: #11110f; --ink-hover: #302b21; --text: #26251f; --muted: #58574f;
  --paper: #f6f3eb; --sand: #eee7d7; --line: #d4c9b4; --pale: #ece2cf;
  --highlight: #d9bc7a; --focus: #80632e; color-scheme: light;
  font-family: 'Manrope', Arial, sans-serif; font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
body.tour-open { overflow: hidden; }
button, input, select { font: inherit; }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; border: 0; }
button, select { min-height: 44px; }
button:disabled, select:disabled, input:disabled { cursor: default; opacity: .4; }
button, a, select, input, canvas, [tabindex] { outline-offset: 5px; }
:focus-visible { outline: 2px solid var(--focus); }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
img { max-width: 100%; }
p, h1, h2 { margin: 0; }
h1, h2 { font-family: 'Cormorant Garamond', Georgia, serif; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 20px; padding: 14px 20px; border-radius: 5px; background: var(--ink); color: white; z-index: 100; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { height: 104px; padding: 0 4.6%; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); background: var(--sand); }
.wordmark { display: flex; flex-direction: column; gap: 9px; padding: 12px 0; }
.wordmark-title { font-size: 21px; letter-spacing: .19em; font-weight: 500; white-space: nowrap; }
.wordmark-subtitle { font-size: 8px; font-weight: 600; letter-spacing: .34em; }
.header-location { font-size: 9px; letter-spacing: .23em; }
.header-location span { margin: 0 8px; }
.button { min-height: 46px; padding: 0 21px; display: inline-flex; justify-content: center; align-items: center; gap: 18px; border: 1px solid var(--ink); border-radius: 26px; font-size: 12px; line-height: 1.2; transition: background-color .18s ease, color .18s ease, border-color .18s ease; white-space: nowrap; }
.button svg { width: 16px; height: 16px; }
.button-primary { background: var(--ink); color: #fff; }
.button-primary:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
main { min-height: calc(100svh - 157px); }
.overview { display: grid; grid-template-columns: minmax(225px, .72fr) minmax(0, 2fr); column-gap: 24px; padding: 34px 4.6% 27px; max-width: 2000px; margin: 0 auto; }
.intro { display: flex; flex-direction: column; align-items: flex-start; padding: 55px 0 24px; position: relative; z-index: 2; }
.eyebrow { color: var(--muted); font-size: 9px; line-height: 1.6; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.intro > .eyebrow { margin-bottom: 22px; }
h1 { font-size: clamp(40px, 3.55vw, 62px); font-weight: 400; letter-spacing: -.055em; line-height: 1.06; }
.intro-copy { font-size: 15px; line-height: 1.65; color: var(--muted); margin-top: 24px; max-width: 255px; }
.explorer-controls { margin-top: 34px; width: 100%; }
.mode-switch { display: inline-flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 28px; }
.mode-switch button { background: none; min-height: 39px; padding: 0 20px; border-radius: 22px; font-size: 11px; transition: background-color .2s ease, color .2s ease; }
.mode-switch button.active, .mode-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.mode-switch button:not([aria-pressed="true"]):hover { background: var(--pale); }
.rotation-controls { display: flex; align-items: center; gap: 2px; margin-top: 15px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 10px; background: transparent; border-radius: 50%; transition: background-color .18s ease; }
.icon-button:hover, .text-button:hover { background: #11110f0b; }
.text-button { padding: 0 15px; background: transparent; font-size: 11px; border-radius: 24px; }
.gesture-hint { margin-top: 18px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.context-controls { margin-top: auto; padding-top: 45px; width: 225px; max-width: 100%; }
.context-toggle { display: flex; gap: 10px; align-items: center; width: 100%; min-height: 44px; padding: 8px 0; background: none; text-align: left; font-size: 11px; }
.context-toggle svg { width: 18px; height: 18px; }
.toggle-indicator { position: relative; display: inline-block; width: 28px; height: 16px; border-radius: 10px; margin-left: auto; background: #c9bfaa; transition: background .2s ease; }
.toggle-indicator::after { content: ""; position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.context-toggle[aria-pressed="true"] .toggle-indicator { background: var(--ink); }
.context-toggle[aria-pressed="true"] .toggle-indicator::after { transform: translateX(12px); }
.context-range-row { display: flex; align-items: center; gap: 10px; font-size: 9px; color: var(--muted); }
.context-range-row input { min-width: 40px; flex: 1; width: 100%; height: 30px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.context-range-row label, .context-range-row > span { flex: 0 0 auto; }
.explorer-stage { display: grid; grid-template-columns: minmax(0, 1fr) 130px; grid-template-rows: minmax(0, 1fr) 35px; column-gap: 10px; height: clamp(590px, calc(100svh - 212px), 850px); min-width: 0; }
.canvas-wrap { position: relative; min-height: 0; overflow: hidden; border-radius: 4px; isolation: isolate; }
.model-poster { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: contain; mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent), linear-gradient(to bottom, transparent, black 6%, black 94%, transparent); mask-composite: intersect; }
.static-overview .rotation-controls, .static-overview .context-controls { display: none; }
.static-overview .gesture-hint { max-width: 220px; }
.floor-copy { min-width: 0; }
#detailTitle:focus:not(:focus-visible) { outline: none; }
#modelCanvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
#modelCanvas:active { cursor: grabbing; }
#modelCanvas:focus-visible { outline-offset: -5px; }
.floor-nav { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 18px 0 20px; z-index: 3; }
.floor-nav button { position: relative; display: flex; flex: 1; align-items: center; gap: 11px; width: 100%; max-height: 65px; min-height: 48px; padding: 8px 8px; background: transparent; border-bottom: 1px solid var(--line); border-radius: 5px 5px 0 0; text-align: left; transition: background-color .18s ease; }
.floor-nav button:hover, .floor-nav button.hover { background: var(--pale); }
.floor-nav button.active, .floor-nav button.selected, .floor-nav button[aria-current="true"] { background: var(--pale); border-bottom-color: var(--ink); }
.floor-nav button b, .floor-nav button strong, .floor-nav .floor-code { min-width: 27px; font-size: 22px; font-weight: 400; letter-spacing: -.04em; }
.floor-nav button small, .floor-nav .floor-name { display: block; font-size: 10px; font-weight: 400; line-height: 1.65; }
.floor-nav button em, .floor-nav .floor-meta { display: block; font-size: 8px; letter-spacing: .02em; color: var(--muted); font-style: normal; margin-top: 4px; }
.floor-nav button.active::before, .floor-nav button.selected::before, .floor-nav button[aria-current="true"]::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; background: var(--ink); }
.stage-caption { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); gap: 12px; margin-top: 2px; padding: 8px 1px 0; color: var(--muted); font-size: 8px; line-height: 1.5; letter-spacing: .14em; }
.stage-mark svg { width: 17px; height: 17px; stroke-width: 1; opacity: .65; }
.map-attribution { position: absolute; bottom: 8px; left: 9px; z-index: 3; pointer-events: none; color: var(--muted); background: #f6f3ebb3; padding: 3px 5px; border-radius: 3px; font-size: 8px; line-height: 1.4; }
.loading-panel { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--paper); z-index: 4; pointer-events: none; text-align: center; padding: 30px; }
.loading-kicker { font-size: 9px; letter-spacing: .25em; }
.loading-panel p { font-size: 12px; color: var(--muted); margin-top: 18px; }
.loading-track { width: 150px; height: 2px; border-radius: 2px; margin-top: 22px; overflow: hidden; background: var(--line); }
.loading-track span { display: block; height: 100%; width: 0; background: var(--ink); transition: width .25s ease; }
.hover-label { position: absolute; pointer-events: none; z-index: 5; padding: 10px 14px; border-radius: 5px; background: var(--ink); color: #fff; font-size: 11px; line-height: 1.4; box-shadow: 0 4px 20px #00000018; white-space: nowrap; }
.site-footer { min-height: 53px; padding: 18px 4.6%; border-top: 1px solid var(--line); background: var(--sand); display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 8px; letter-spacing: .14em; line-height: 1.8; }
.site-footer a { font-size: 9px; letter-spacing: .025em; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Floor plans and linked viewpoints. */
.detail { max-width: 1800px; margin: 0 auto; padding: 30px 4.6% 60px; }
.detail-header { display: flex; align-items: center; gap: 40px; margin-bottom: 26px; }
.back-button { display: inline-flex; align-items: center; gap: 10px; padding: 0; background: transparent; font-size: 11px; white-space: nowrap; }
.back-button svg { width: 18px; height: 18px; }
.back-button:hover span { text-decoration: underline; text-underline-offset: 4px; }
.detail-heading .eyebrow { margin-bottom: 7px; }
.detail-heading h1 { font-size: 38px; line-height: 1.1; }
.detail-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
select { appearance: none; -webkit-appearance: none; max-width: 100%; padding: 11px 35px 11px 15px; border: 1px solid var(--line); border-radius: 24px; background-color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2311110f' stroke-width='1.5'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-position: right 12px center; background-repeat: no-repeat; color: var(--ink); font-size: 11px; cursor: pointer; }
select option { color: var(--ink); background: var(--paper); }
.plan-container { position: relative; border: 1px solid var(--line); border-radius: 9px; background: #f9f8f5; overflow: hidden; }
.plan-viewport { position: relative; display: flex; align-items: center; justify-content: center; height: clamp(370px, 58vw, 700px); max-height: 72svh; min-height: 330px; overflow: hidden; cursor: grab; touch-action: none; }
.plan-viewport:active { cursor: grabbing; }
.plan-viewport:focus-visible { outline-offset: -4px; }
.plan-surface { position: relative; flex: 0 0 auto; width: 100%; max-width: 1450px; transform-origin: center center; will-change: transform; user-select: none; }
#planImage { display: block; width: 100%; height: auto; -webkit-user-drag: none; pointer-events: none; }
.plan-hotspots { position: absolute; inset: 0; pointer-events: none; }
.plan-hotspots button, .plan-hotspots a { position: absolute; display: grid; place-items: center; transform: translate(-50%, -50%); pointer-events: auto; width: 34px; height: 34px; min-height: 34px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--ink); color: #fff; font-size: 9px; font-weight: 600; box-shadow: 0 0 0 4px #ffffff70, 0 3px 10px #00000033; transition: background-color .15s ease, box-shadow .15s ease; }
.plan-hotspots button:hover, .plan-hotspots a:hover, .plan-hotspots button.active { background: var(--ink-hover); box-shadow: 0 0 0 6px #ffffffa0, 0 3px 15px #00000044; z-index: 3; }
.plan-hotspots .hotspot-label, .plan-hotspots .tooltip { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 7px 10px; border-radius: 4px; font-size: 10px; font-weight: 400; white-space: nowrap; pointer-events: none; opacity: 0; }
.plan-hotspots button:hover .hotspot-label, .plan-hotspots button:focus-visible .hotspot-label, .plan-hotspots button:hover .tooltip, .plan-hotspots button:focus-visible .tooltip { opacity: 1; }
.plan-tools { display: flex; align-items: center; position: absolute; bottom: 18px; right: 18px; background: #fdfcf9ee; border: 1px solid var(--line); border-radius: 26px; padding: 2px; box-shadow: 0 3px 12px #00000006; z-index: 6; }
.plan-status { position: absolute; top: 20px; left: 20px; max-width: min(400px, calc(100% - 40px)); background: #fdfcf9ee; color: var(--muted); padding: 12px 16px; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; line-height: 1.6; z-index: 5; }
.viewpoints-section { margin-top: 38px; }
.viewpoints-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.viewpoints-heading .eyebrow { margin-bottom: 9px; }
.viewpoints-heading h2 { font-size: 30px; line-height: 1.15; font-weight: 400; letter-spacing: -.035em; }
.scene-count { color: var(--muted); font-size: 11px; }
.viewpoints-description { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 10px 0 20px; }
.scene-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.scene-grid button, .scene-grid a { display: flex; flex-direction: column; align-items: flex-start; position: relative; min-height: 66px; padding: 17px 19px; text-align: left; border: 1px solid var(--line); border-radius: 7px; background: transparent; font-size: 12px; line-height: 1.45; gap: 5px; overflow: hidden; transition: background-color .18s ease, border-color .18s ease; }
.scene-grid button:hover, .scene-grid a:hover { border-color: var(--ink); background: var(--pale); }
.scene-grid button.active, .scene-grid a.active { background: var(--pale); border-color: var(--ink); }
.scene-grid button.scene-card { flex-direction: row; align-items: center; gap: 12px; }
.scene-copy { display: flex; flex-direction: column; gap: 4px; }
.scene-arrow { margin-left: auto; opacity: .55; }
.scene-arrow svg { width: 16px; height: 16px; }
.tour-end { color: var(--muted); font-size: 11px; }
.scene-grid button small, .scene-grid a small { font-size: 9px; line-height: 1.6; color: var(--muted); }
.scene-grid button strong, .scene-grid a strong { font-size: 12px; font-weight: 500; }
.scene-grid button img, .scene-grid a img { width: calc(100% + 38px); max-width: none; margin: -17px -19px 8px; aspect-ratio: 16 / 9; object-fit: cover; }

/* The tour stays connected to floor and viewpoint controls. */
.tour-dialog { width: min(1100px, 94vw); max-width: none; max-height: 94svh; height: min(820px, 92svh); padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--paper); color: var(--ink); box-shadow: 0 25px 100px #00000040; }
.tour-dialog[open] { display: flex; flex-direction: column; }
.tour-dialog::backdrop { background: #11110f66; backdrop-filter: blur(5px); }
.tour-dialog.expanded { width: 97vw; height: 96svh; max-height: 96svh; }
.tour-header { display: flex; align-items: center; gap: 16px; padding: 15px 22px; min-height: 80px; flex: 0 0 auto; background: var(--ink); color: white; }
.tour-heading { min-width: 0; }
.tour-heading .eyebrow { color: var(--highlight); font-size: 8px; letter-spacing: .15em; margin-bottom: 5px; }
.tour-heading h2 { font-size: 17px; font-weight: 400; line-height: 1.35; letter-spacing: -.015em; }
.tour-header-actions { margin-left: auto; display: flex; align-items: center; gap: 13px; flex: 0 0 auto; }
.tour-external { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 10px; }
.tour-external svg { width: 14px; height: 14px; }
.tour-external:hover { text-decoration: underline; text-underline-offset: 4px; }
.tour-expand { min-height: 36px; padding: 0 13px; background: #ffffff12; border: 1px solid #ffffff36; border-radius: 23px; font-size: 10px; }
.tour-expand:hover { background: #ffffff25; }
.tour-close { background: #ffffff12; }
.tour-close:hover { background: #ffffff25; }
.tour-header :focus-visible { outline-color: #eacb8d; }
.tour-viewer { flex: 1 1 auto; position: relative; min-height: 150px; background: var(--ink); }
#tourFrame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.tour-loading { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; color: var(--paper); font-size: 12px; background: var(--ink); pointer-events: none; }
.loading-spinner { width: 25px; height: 25px; border: 1px solid #ffffff30; border-top-color: var(--paper); border-radius: 50%; animation: turn 1.2s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.tour-navigation { flex: 0 0 auto; padding: 16px 22px 19px; max-height: 240px; overflow-y: auto; overscroll-behavior: contain; }
.tour-selectors { display: flex; gap: 12px; }
.select-field { display: flex; align-items: center; gap: 11px; flex: 0 1 230px; min-width: 0; }
.select-field label { font-size: 9px; letter-spacing: .03em; color: var(--muted); flex: 0 0 auto; }
.select-field select { flex: 1; min-width: 0; width: 100%; min-height: 39px; padding-top: 9px; padding-bottom: 9px; border-radius: 22px; }
.viewpoint-field { flex: 1; }
.tour-jumps { margin-top: 15px; }
.tour-jumps .eyebrow { font-size: 8px; letter-spacing: .13em; margin-bottom: 8px; }
.tour-connections { display: flex; flex-wrap: wrap; gap: 6px; }
.tour-connections button { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 20px; background: transparent; font-size: 10px; line-height: 1.4; }
.tour-connections button:hover { border-color: var(--ink); background: var(--pale); }
.tour-connections button.active { background: var(--ink); border-color: var(--ink); color: white; }
.tour-connections button svg { width: 13px; height: 13px; }

@media (min-width: 1600px) {
  .overview { grid-template-columns: minmax(300px, .68fr) minmax(0, 2fr); column-gap: 45px; }
  .intro { padding-top: 70px; }
  .intro-copy { max-width: 300px; font-size: 17px; }
  .explorer-stage { grid-template-columns: minmax(0, 1fr) 145px; }
  .floor-nav button { gap: 15px; }
  .floor-nav button small { font-size: 10px; }
}
@media (max-width: 1150px) {
  .site-header { padding: 0 4%; }
  .overview { padding-left: 4%; padding-right: 4%; grid-template-columns: minmax(210px, .7fr) minmax(0, 1.8fr); column-gap: 10px; }
  .intro { padding-top: 35px; }
  .intro h1 { font-size: 42px; }
  .intro-copy { font-size: 13px; max-width: 220px; }
  .explorer-stage { grid-template-columns: minmax(0, 1fr) 110px; column-gap: 5px; }
  .floor-nav button { gap: 7px; padding-left: 5px; padding-right: 5px; }
  .floor-nav button b, .floor-nav button strong, .floor-nav .floor-code { font-size: 21px; min-width: 25px; }
  .floor-nav button small, .floor-nav .floor-name { font-size: 9px; }
  .floor-nav button em, .floor-nav .floor-meta { font-size: 8px; }
  .detail-header { gap: 25px; }
  .scene-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 850px) and (min-width: 701px) {
  .header-location { display: none; }
  .overview { grid-template-columns: 190px minmax(0, 1fr); }
  .intro h1 { font-size: 36px; }
  .intro-copy { max-width: 185px; }
  .mode-switch button { padding: 0 14px; }
  .context-controls { width: 185px; }
  .detail-header { flex-wrap: wrap; }
  .detail-actions { gap: 8px; }
  .detail-heading h1 { font-size: 32px; }
}
@media (max-width: 700px) {
  .site-header { height: 78px; padding: 0 20px; gap: 15px; }
  .wordmark-title { font-size: 15px; letter-spacing: .14em; }
  .wordmark-subtitle { font-size: 7px; letter-spacing: .27em; }
  .wordmark { gap: 7px; }
  .header-location { display: none; }
  .site-header .button { padding: 0 13px; gap: 9px; min-height: 42px; font-size: 10px; }
  .site-header .button svg { width: 13px; height: 13px; }
  main { min-height: calc(100svh - 124px); }
  .overview { display: flex; flex-direction: column; gap: 13px; padding: 23px 20px 18px; }
  .intro { padding: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 12px; align-items: start; }
  .intro > .eyebrow { display: none; }
  .intro h1 { grid-column: 1 / -1; font-size: clamp(32px, 7.7vw, 44px); letter-spacing: -.05em; line-height: 1.07; }
  .intro h1 br { display: initial; }
  .intro-copy { grid-column: 1 / -1; max-width: 360px; margin-top: 10px; font-size: 12px; line-height: 1.6; }
  .explorer-controls { grid-column: 1; display: flex; flex-direction: column; align-items: flex-start; margin-top: 18px; }
  .mode-switch { padding: 3px; }
  .mode-switch button { min-height: 35px; padding: 0 16px; font-size: 10px; }
  .rotation-controls { margin-top: 5px; }
  .rotation-controls .icon-button { width: 37px; height: 40px; min-height: 40px; padding: 10px; }
  .rotation-controls .icon-button svg { width: 17px; height: 17px; }
  .rotation-controls .text-button { min-height: 40px; padding: 0 8px; font-size: 10px; }
  .gesture-hint { display: none; }
  .context-controls { grid-column: 2; grid-row: 3; align-self: start; padding-top: 0; margin-top: 19px; width: 142px; }
  .context-toggle { min-height: 38px; padding: 5px 0; gap: 7px; font-size: 9px; }
  .context-toggle svg { width: 16px; height: 16px; }
  .toggle-indicator { width: 25px; height: 15px; }
  .toggle-indicator::after { width: 9px; height: 9px; }
  .context-toggle[aria-pressed="true"] .toggle-indicator::after { transform: translateX(10px); }
  .context-range-row { font-size: 7px; gap: 6px; }
  .context-range-row input { height: 31px; }
  .explorer-stage { width: 100%; grid-template-columns: minmax(0,1fr) 103px; grid-template-rows: minmax(0,1fr) 31px; column-gap: 5px; height: max(455px, calc(100svh - 350px)); max-height: 650px; }
  .floor-nav { padding: 0 0 8px; gap: 0; }
  .floor-nav button { min-height: 44px; max-height: none; gap: 5px; padding: 5px 4px; }
  .floor-nav button b, .floor-nav button strong, .floor-nav .floor-code { font-size: 19px; min-width: 24px; }
  .floor-nav button small, .floor-nav .floor-name { font-size: 9px; line-height: 1.5; }
  .floor-nav button em, .floor-nav .floor-meta { font-size: 8px; letter-spacing: 0; margin-top: 2px; }
  .stage-caption { font-size: 7px; letter-spacing: .08em; padding-top: 8px; }
  .stage-mark svg { width: 15px; height: 15px; }
  .map-attribution { font-size: 6px; bottom: 5px; left: 4px; padding: 2px 3px; }
  .hover-label { padding: 8px 10px; font-size: 10px; }
  .site-footer { min-height: 46px; padding: 13px 20px; font-size: 7px; letter-spacing: .07em; }
  .site-footer a { font-size: 8px; letter-spacing: 0; }
  .detail { padding: 18px 20px 35px; }
  .detail-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 15px; margin-bottom: 18px; }
  .back-button { grid-column: 1 / -1; width: fit-content; min-height: 38px; }
  .detail-heading .eyebrow { font-size: 8px; margin-bottom: 6px; }
  .detail-heading h1 { font-size: 30px; }
  .detail-actions { display: contents; }
  #floorSelect { grid-column: 2; grid-row: 2; max-width: 140px; }
  #detailTour { grid-column: 1 / -1; justify-self: start; min-height: 42px; padding: 0 17px; font-size: 11px; }
  .plan-container { border-radius: 6px; }
  .plan-viewport { height: 420px; min-height: 330px; max-height: 60svh; }
  .plan-surface { width: 100%; }
  .plan-tools { bottom: 12px; right: 12px; }
  .plan-tools .icon-button { width: 40px; height: 40px; min-height: 40px; }
  .plan-tools .text-button { min-height: 40px; font-size: 10px; padding: 0 12px; }
  .plan-hotspots button, .plan-hotspots a { width: 30px; height: 30px; min-height: 30px; border-width: 2px; font-size: 8px; box-shadow: 0 0 0 3px #ffffff70, 0 3px 8px #00000022; }
  .plan-status { top: 12px; left: 12px; max-width: calc(100% - 24px); font-size: 10px; }
  .viewpoints-section { margin-top: 28px; }
  .viewpoints-heading h2 { font-size: 26px; }
  .viewpoints-heading .eyebrow { font-size: 8px; }
  .scene-count { font-size: 10px; }
  .viewpoints-description { font-size: 11px; }
  .scene-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .scene-grid button, .scene-grid a { padding: 14px 13px; min-height: 70px; font-size: 11px; border-radius: 6px; }
  .scene-grid button strong, .scene-grid a strong { font-size: 11px; }
  .scene-grid button small, .scene-grid a small { font-size: 8px; }
  .scene-grid button img, .scene-grid a img { width: calc(100% + 26px); margin: -14px -13px 6px; }
  .tour-dialog { width: calc(100vw - 20px); max-width: none; height: 92svh; max-height: 92svh; border-radius: 10px; margin: auto; }
  .tour-dialog.expanded { width: 100vw; height: 100svh; max-height: 100svh; border-radius: 0; }
  .tour-header { min-height: 78px; padding: 12px 13px; gap: 8px; }
  .tour-heading .eyebrow { font-size: 7px; letter-spacing: .09em; margin-bottom: 4px; }
  .tour-heading h2 { font-size: 13px; line-height: 1.35; }
  .tour-header-actions { gap: 5px; }
  .tour-external { width: 34px; min-height: 40px; font-size: 0; justify-content: center; gap: 0; }
  .tour-external svg { width: 16px; height: 16px; }
  .tour-expand { min-height: 40px; padding: 0 10px; font-size: 9px; }
  .tour-close { width: 40px; height: 40px; min-height: 40px; padding: 10px; }
  .tour-navigation { padding: 13px 13px 16px; max-height: 230px; }
  .tour-selectors { gap: 8px; }
  .select-field { flex: 0 1 105px; flex-direction: column; align-items: stretch; gap: 5px; }
  .select-field label { font-size: 8px; }
  .select-field select { min-height: 40px; font-size: 10px; padding-left: 11px; padding-right: 30px; background-position: right 9px center; }
  .viewpoint-field { flex: 1; }
  .tour-jumps { margin-top: 12px; }
  .tour-jumps .eyebrow { font-size: 7px; margin-bottom: 6px; }
  .tour-connections { gap: 5px; }
  .tour-connections button { min-height: 38px; font-size: 9px; padding: 8px 11px; }
}
@media (max-width: 370px) {
  .site-header { padding-left: 15px; padding-right: 15px; }
  .wordmark-title { font-size: 13px; letter-spacing: .12em; }
  .site-header .button { font-size: 9px; padding: 0 11px; gap: 6px; }
  .overview, .detail { padding-left: 15px; padding-right: 15px; }
  .intro h1 { font-size: 30px; }
  .intro-copy { font-size: 11px; }
  .context-controls { width: 127px; }
  .mode-switch button { padding: 0 13px; }
  .explorer-stage { grid-template-columns: minmax(0,1fr) 94px; }
  .floor-nav button small, .floor-nav .floor-name { font-size: 8px; }
  .tour-header-actions { gap: 3px; }
  .tour-heading h2 { font-size: 12px; }
  .tour-external { width: 25px; }
  .tour-expand { padding: 0 8px; }
}
@media (max-height: 650px) {
  .tour-dialog, .tour-dialog.expanded { height: 96svh; max-height: 96svh; }
  .tour-header { min-height: 64px; padding-top: 9px; padding-bottom: 9px; }
  .tour-viewer { min-height: 120px; }
  .tour-navigation { max-height: calc(96svh - 184px); padding-top: 10px; padding-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
