@font-face {
  font-family: 'Montserrat';
  src: url("fonts/Montserrat Thin Bold.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
}
@font-face {
  font-family: 'Montserrat';
  src: url("fonts/Montserrat Thin ExtraBold.woff") format("woff");
  font-weight: 800 900;
  font-style: normal;
}

:root {
  --wh-cream: #f1ece1;
  --wh-paper: rgba(251, 249, 243, 0.72);
  --wh-panel: #fbf9f3;
  --wh-ink: #1c1c1a;
  --wh-soft: #555249;
  --wh-teal: #0a6e5f;
  --wh-mint: #00bfa5;
  --wh-line: rgba(28, 28, 26, 0.15);
  --wh-shadow: 0 16px 50px rgba(25, 22, 15, 0.2);
  --wh-font: 'Montserrat', 'Avenir Next', 'Segoe UI', sans-serif;
}

/* 3DVista Academic builds inject this player-owned PNG layer separately from
   the project watermark setting. The prepared player disables it at source;
   this selector also prevents a cached build from flashing it during load. */
#viewer div[style*="z-index: 1000"][style*="background-image: url"] {
  display: none !important;
}

html.wh-thumbnail-mode #wh-enhancements {
  display: none !important;
}

#wh-enhancements {
  position: fixed;
  inset: 0;
  z-index: 2147482000;
  pointer-events: none;
  color: var(--wh-ink);
  font-family: var(--wh-font);
}

#wh-enhancements * {
  box-sizing: border-box;
}

/* ---- Top-left project card (matches lumerse tour topbar) ---- */

.wh-topbar {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  left: max(14px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.wh-project-card {
  pointer-events: auto;
  display: flex;
  max-width: min(560px, calc(100vw - 40px));
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 4px;
  padding: 9px 14px 9px 12px;
  background: var(--wh-paper);
  box-shadow: var(--wh-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--wh-ink);
  font-family: var(--wh-font);
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, transform 150ms ease;
}

.wh-project-card:hover,
.wh-project-card:focus-visible {
  border-color: var(--wh-mint);
  transform: translateY(-1px);
}

.wh-project-card img {
  width: auto;
  height: 30px;
  flex-shrink: 0;
}

.wh-project-divider {
  align-self: stretch;
  width: 1px;
  margin: 2px 12px;
  background: var(--wh-line);
  flex-shrink: 0;
}

.wh-project-copy {
  min-width: 0;
}

#wh-scene-title {
  display: block;
  overflow: hidden;
  margin: 0;
  color: var(--wh-ink);
  font: 650 14px/1.18 var(--wh-font);
  letter-spacing: 0.2px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#wh-scene-artist {
  display: block;
  overflow: hidden;
  margin: 1px 0 0;
  color: var(--wh-teal);
  font: 500 11px/1.18 var(--wh-font);
  letter-spacing: 0.6px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---- Bottom-right control dock (matches lumerse tour dock) ---- */

.wh-dock {
  position: absolute;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  padding: 4px;
  background: rgba(24, 22, 18, 0.3);
  box-shadow: 0 8px 28px rgba(10, 8, 5, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.wh-control {
  min-width: 54px;
  min-height: 44px;
  border: 0;
  border-radius: 3px;
  padding: 0 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font: 600 10px/1 var(--wh-font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 140ms ease, color 140ms ease;
}

.wh-control:hover,
.wh-control:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.wh-control--icon {
  min-width: 44px;
  padding: 0 10px;
  font-size: 22px;
  font-weight: 400;
  line-height: 0;
}

.wh-control[hidden] {
  display: none;
}

.wh-project-card:focus-visible,
.wh-control:focus-visible,
.wh-close:focus-visible,
.wh-guide-start:focus-visible,
.wh-scene-button:focus-visible,
.wh-plan-dot:focus-visible,
.wh-source:focus-visible {
  outline: 3px solid var(--wh-mint);
  outline-offset: 2px;
}

/* ---- Scrims + panels ---- */

.wh-scrim {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgba(27, 25, 21, 0.54);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
}

.wh-scrim[hidden] {
  display: none;
}

.wh-scrim--center {
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.wh-panel {
  width: min(440px, calc(100vw - 28px));
  height: 100%;
  overflow: auto;
  padding: max(22px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
  background: var(--wh-panel);
  box-shadow: var(--wh-shadow);
}

.wh-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

/* ---- First-visit navigation guide ---- */

.wh-guide-panel {
  width: min(680px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  padding: 26px;
  background: var(--wh-panel);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
}

.wh-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wh-guide-grid > div {
  min-height: 138px;
  border: 1px solid var(--wh-line);
  border-radius: 7px;
  padding: 16px;
  background: rgba(241, 236, 225, 0.48);
}

.wh-guide-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--wh-teal);
  color: #fff;
  font: 700 22px/1 var(--wh-font);
}

.wh-guide-grid h3 {
  margin: 12px 0 5px;
  font: 650 14px/1.2 var(--wh-font);
}

.wh-guide-grid p {
  margin: 0;
  color: var(--wh-soft);
  font-size: 12px;
  line-height: 1.45;
}

.wh-guide-start {
  width: 100%;
  min-height: 50px;
  margin-top: 16px;
  border: 0;
  border-radius: 5px;
  background: var(--wh-teal);
  color: #fff;
  cursor: pointer;
  font: 700 12px/1 var(--wh-font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wh-guide-start:hover {
  background: #07584d;
}

.wh-kicker {
  margin: 0 0 6px;
  color: var(--wh-teal);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wh-panel h2 {
  margin: 0;
  font: 600 clamp(22px, 3.6vw, 30px)/1.1 var(--wh-font);
  letter-spacing: -0.02em;
}

.wh-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--wh-line);
  border-radius: 50%;
  background: transparent;
  color: var(--wh-ink);
  font-size: 22px;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease;
}

.wh-close:hover {
  border-color: var(--wh-teal);
  color: var(--wh-teal);
}

.wh-byline {
  margin: 0 0 18px;
  color: var(--wh-teal);
  font-size: 16px;
  font-weight: 650;
}

.wh-location {
  margin: -8px 0 18px;
  color: var(--wh-soft);
  font-size: 13px;
}

.wh-description {
  font-size: 15px;
  line-height: 1.6;
}

.wh-source {
  display: inline-block;
  margin-top: 18px;
  color: var(--wh-teal);
  font-weight: 650;
}

/* ---- Rooms navigation ---- */

.wh-nav-group {
  margin: 0 0 24px;
}

.wh-nav-group h3 {
  position: sticky;
  top: -1px;
  z-index: 1;
  margin: 0;
  padding: 10px 0 8px;
  border-bottom: 2px solid var(--wh-mint);
  background: var(--wh-panel);
  color: var(--wh-teal);
  font: 650 11px/1.3 var(--wh-font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wh-room-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--wh-line);
}

.wh-room-button {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 10px 4px;
  border: 0;
  background: transparent;
  color: var(--wh-ink);
  font: 600 14px/1.35 var(--wh-font);
  text-align: left;
  cursor: pointer;
}

.wh-room-button:hover {
  color: var(--wh-teal);
  background: rgba(10, 110, 95, 0.08);
}

.wh-room-row[data-current="true"] .wh-room-button {
  padding-left: 12px;
  border-left: 4px solid var(--wh-mint);
  color: var(--wh-teal);
}

.wh-room-toggle {
  flex: 0 0 44px;
  border: 0;
  background: transparent;
  color: var(--wh-soft);
  cursor: pointer;
}

.wh-room-toggle::after {
  display: inline-block;
  content: "❯";
  font-size: 12px;
  transform: rotate(90deg);
  transition: transform 160ms ease;
}

.wh-room-toggle:hover {
  color: var(--wh-teal);
}

.wh-room-toggle[aria-expanded="true"]::after {
  transform: rotate(-90deg);
}

.wh-room-views {
  display: none;
  padding: 2px 0 6px 14px;
  border-bottom: 1px solid var(--wh-line);
}

.wh-room-views[data-open="true"] {
  display: block;
}

.wh-scene-button {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 8px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--wh-soft);
  font: 400 13px/1.35 var(--wh-font);
  text-align: left;
  cursor: pointer;
}

.wh-scene-button:hover {
  color: var(--wh-teal);
  background: rgba(10, 110, 95, 0.08);
}

.wh-scene-button[aria-current="true"] {
  padding-left: 10px;
  border-left: 3px solid var(--wh-mint);
  color: var(--wh-teal);
  font-weight: 650;
}

/* ---- Floor plan ---- */

.wh-plan-panel {
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100svh - 24px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 7px;
  padding: 22px 24px 24px;
  background: var(--wh-panel);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
}

.wh-plan-panel .wh-panel-header {
  margin-bottom: 14px;
}

.wh-plan-note {
  margin: 0 0 14px;
  color: var(--wh-soft);
  font-size: 12px;
  line-height: 1.5;
}

.wh-plan-note b {
  color: var(--wh-teal);
  font-weight: 650;
}

.wh-plan-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--wh-line);
  border-radius: 4px;
  background: var(--wh-cream);
}

.wh-plan-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.wh-plan-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 1.5px solid var(--wh-teal);
  border-radius: 50%;
  background: rgba(251, 249, 243, 0.82);
  box-shadow: 0 1px 5px rgba(25, 22, 15, 0.22);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease;
  touch-action: manipulation;
}

.wh-plan-dot:hover,
.wh-plan-dot:focus-visible {
  background: var(--wh-mint);
  transform: translate(-50%, -50%) scale(1.18);
  z-index: 3;
}

.wh-plan-dot[aria-current="true"] {
  background: var(--wh-mint);
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(0, 191, 165, 0.28), 0 2px 8px rgba(25, 22, 15, 0.25);
  transform: translate(-50%, -50%) scale(1.18);
  z-index: 2;
}

.wh-plan-label {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  display: none;
  padding: 5px 9px;
  border-radius: 3px;
  background: rgba(24, 22, 18, 0.9);
  color: #fff;
  font: 600 10px/1.3 var(--wh-font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.wh-plan-dot:hover .wh-plan-label,
.wh-plan-dot:focus-visible .wh-plan-label {
  display: block;
}

/* Labels near the left/right edges shift inward so they stay readable */
.wh-plan-dot[data-edge="left"] .wh-plan-label {
  left: 0;
  transform: none;
}

.wh-plan-dot[data-edge="right"] .wh-plan-label {
  right: 0;
  left: auto;
  transform: none;
}

.wh-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---- Responsive ---- */

@media (max-width: 720px) {
  .wh-project-card {
    max-width: calc(100vw - 28px);
  }

  .wh-project-card img {
    height: 26px;
  }

  #wh-scene-title {
    font-size: 12.5px;
  }

  #wh-scene-artist {
    font-size: 10px;
  }
}

@media (max-width: 620px) {
  .wh-dock {
    top: auto;
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    left: max(8px, env(safe-area-inset-left));
    justify-content: space-between;
    gap: 2px;
    padding: 4px;
  }

  .wh-control {
    min-width: 44px;
    padding-inline: 6px;
    font-size: 8.5px;
    touch-action: manipulation;
  }

  .wh-project-card {
    max-width: calc(100vw - 28px);
  }

  #wh-full-button {
    display: none;
  }

  .wh-panel {
    width: 100%;
    max-width: none;
    height: 100dvh;
  }

  .wh-plan-panel {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 16px 14px 18px;
  }

  .wh-plan-dot {
    width: 10px;
    height: 10px;
    border-width: 1.5px;
  }

  .wh-plan-dot[aria-current="true"] {
    box-shadow: 0 0 0 3px rgba(0, 191, 165, 0.3), 0 1px 5px rgba(25, 22, 15, 0.24);
  }

  .wh-plan-label {
    max-width: 190px;
    white-space: normal;
  }

  .wh-guide-panel {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 18px 16px;
  }

  .wh-guide-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .wh-guide-grid > div {
    position: relative;
    min-height: 0;
    padding: 12px 12px 12px 64px;
  }

  .wh-guide-icon {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
    font-size: 19px;
  }

  .wh-guide-grid h3 {
    margin-top: 1px;
  }
}

@media (max-height: 520px) {
  #wh-scene-artist {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #wh-enhancements * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}


.wh-back-link {
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 4px;
  padding: 9px 12px;
  background: var(--wh-paper);
  box-shadow: var(--wh-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--wh-ink);
  font: 650 11px/1 var(--wh-font);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.wh-back-link:hover, .wh-back-link:focus-visible { border-color: var(--wh-mint); }
.wh-back-link:focus-visible { outline: 3px solid var(--wh-mint); outline-offset: 2px; }


/* WOMANHOUSE_MOBILE_PERFORMANCE: avoid recompositing WebGL through live blur. */
@media (max-width: 620px) {
  :root { --wh-font: -apple-system, BlinkMacSystemFont, "Avenir Next", "Segoe UI", sans-serif; }
  .wh-project-card, .wh-back-link {
    background: rgba(251, 249, 243, 0.96);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .wh-dock {
    background: rgba(24, 22, 18, 0.88);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .wh-scrim {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}


/* Primary entrance action for the opening exterior viewpoint. */
.wh-enter-cta {
  position: absolute;
  left: 50%;
  bottom: max(86px, calc(env(safe-area-inset-bottom) + 76px));
  width: min(330px, calc(100vw - 32px));
  min-height: 66px;
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 7px;
  padding: 10px 24px 11px;
  background: rgba(251, 249, 243, 0.76);
  box-shadow: 0 12px 34px rgba(25, 22, 15, 0.26), 0 0 0 1px rgba(10, 110, 95, 0.2);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--wh-ink);
  cursor: pointer;
  font-family: var(--wh-font);
  text-align: center;
  transform: translateX(-50%);
  touch-action: manipulation;
  animation: wh-enter-pulse 2.6s ease-in-out infinite;
}
.wh-enter-cta[hidden] { display: none; }
.wh-enter-cta:hover { background: rgba(251, 249, 243, 0.9); border-color: var(--wh-mint); }
.wh-enter-cta:focus-visible { outline: 3px solid var(--wh-mint); outline-offset: 3px; }
.wh-enter-cta__hint, .wh-enter-cta__label { display: block; }
.wh-enter-cta__hint {
  margin-bottom: 4px;
  color: var(--wh-teal);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.wh-enter-cta__label {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}
.wh-enter-cta__label span { color: var(--wh-teal); }
@keyframes wh-enter-pulse {
  0%, 100% { box-shadow: 0 12px 34px rgba(25, 22, 15, 0.26), 0 0 0 1px rgba(0, 191, 165, 0.5); }
  50% { box-shadow: 0 12px 34px rgba(25, 22, 15, 0.26), 0 0 0 7px rgba(0, 191, 165, 0.08); }
}
@media (max-width: 620px) {
  .wh-enter-cta {
    background: rgba(251, 249, 243, 0.86);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media (prefers-reduced-motion: reduce) { .wh-enter-cta { animation: none; } }




/* WOMANHOUSE_TOUCH_PASSTHROUGH: preserve native two-finger panorama zoom. */
#viewer { touch-action: none; }
#wh-enhancements {
  inset: auto;
  top: 0;
  right: auto;
  bottom: auto;
  left: 0;
  width: 0;
  height: 0;
  overflow: visible;
}
.wh-topbar, .wh-dock, .wh-enter-cta, .wh-scrim { position: fixed; }
