:root {
  --bordeaux: #b24a5d;
  --bordeaux-deep: #8e2e43;
  --mustard: #d4a23c;
  --mustard-deep: #a87c22;
  --concrete: #a8a59e;
  --sky: #6fa5c8;
  --ink: #1a1a1d;
  --paper: #f4efe6;
  --paper-warm: #ece4d3;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* ---------- Password gate ---------- */
.pw-gate {
  position: fixed;
  inset: 0;
  background: #0a0e14;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.pw-box {
  text-align: center;
  color: var(--paper);
}
.pw-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 18px;
}
.pw-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: 52px;
  line-height: 1.1;
  margin-bottom: 42px;
}
.pw-accent { color: #f2d7a0; }
.pw-field {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid rgba(244,239,230,0.35);
  max-width: 280px;
  margin: 0 auto;
}
.pw-field input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  letter-spacing: 0.18em;
  padding: 10px 0;
}
.pw-field input::placeholder { opacity: 0.4; letter-spacing: 0.14em; }
.pw-field button {
  background: none;
  border: none;
  color: var(--mustard);
  font-size: 22px;
  cursor: pointer;
  padding: 8px 0 8px 12px;
  line-height: 1;
  transition: opacity 0.2s;
}
.pw-field button:hover { opacity: 0.7; }

@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-6px); }
  80%      { transform: translateX(6px); }
}
.pw-box.shake { animation: shake 0.55s ease; }

/* ---------- Mobile wall ---------- */
.mobile-wall {
  display: none;
  position: fixed;
  inset: 0;
  background: #0a0e14;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}
.mobile-wall p {
  font-family: 'Space Grotesk', sans-serif;
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.4;
  color: #f4efe6;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}

@media (max-width: 768px), (pointer: coarse) and (max-width: 1024px) {
  .mobile-wall { display: flex; }
  .stage { display: none; }
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: #0a0e14;
  -webkit-font-smoothing: antialiased;
}

/* Stage: letterbox the 1600x1100 canvas */
.stage {
  position: fixed;
  inset: 0;
  background: #0a0e14;
  overflow: hidden;
}

.canvas {
  position: relative;
  width: 1600px;
  height: 1100px;
  overflow: hidden;
  background: #111;
  transform-origin: center center;
  box-shadow: 0 40px 120px rgba(0,0,0,0.4);
}

/* Building background — <img> with fixed layout so window coords are stable */
.building {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.building img {
  position: absolute;
  width: 1800px;
  height: auto;
  left: -100px;
  top: -80px;
}

/* ---------- Hiding cloud where the UFO fades out ---------- */
.hiding-cloud {
  position: absolute;
  /* Sized to cover the endpoint (canvas ~107,192) generously */
  left: -30px;
  top: 125px;
  width: 280px;
  height: 120px;
  z-index: 5;
  pointer-events: none;
  filter: blur(2px);
  opacity: 0.85;
}
.hiding-cloud svg { width: 100%; height: 100%; display: block; }

/* ---------- UFO canvas overlay ---------- */
.ufo-canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* ---------- Drifting clouds over the sky area ---------- */
.sky-layer {
  position: absolute;
  left: 0;
  top: 0;
  /* Sky covers the upper-left region. Clip so clouds never cover building. */
  width: 780px;
  height: 360px;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
  /* soft fade at the right edge where sky meets building */
  -webkit-mask-image: linear-gradient(90deg, black 0%, black 78%, transparent 100%);
          mask-image: linear-gradient(90deg, black 0%, black 78%, transparent 100%);
}

.cloud {
  position: absolute;
  opacity: 0;
  filter: blur(2px);
  will-change: transform, opacity;
}
.cloud svg { display: block; }

.cloud-1 {
  top: 40px; left: -260px;
  transform: scale(1);
  animation: cloud-drift 58s linear infinite;
  animation-delay: -12s;
  opacity: 0.85;
}
.cloud-2 {
  top: 130px; left: -220px;
  transform: scale(0.78);
  animation: cloud-drift 74s linear infinite;
  animation-delay: -40s;
  opacity: 0.72;
}
.cloud-3 {
  top: 220px; left: -200px;
  transform: scale(0.6);
  animation: cloud-drift 90s linear infinite;
  animation-delay: -65s;
  opacity: 0.6;
}
.cloud-4 {
  top: 75px; left: -280px;
  transform: scale(1.15);
  animation: cloud-drift 120s linear infinite;
  animation-delay: -95s;
  opacity: 0.55;
}

@keyframes cloud-drift {
  0%   { transform: translateX(0) scale(var(--s, 1)); opacity: 0; }
  8%   { opacity: var(--o, 0.8); }
  92%  { opacity: var(--o, 0.8); }
  100% { transform: translateX(1200px) scale(var(--s, 1)); opacity: 0; }
}

/* ---------- Swaying bush overlay ---------- */
.bush-sway {
  position: absolute;
  /* roughly over the bush in the mid-lower area */
  left: 820px;
  top: 640px;
  width: 260px;
  height: 320px;
  z-index: 3;
  pointer-events: none;
  background-image: url('assets/building.jpg');
  background-size: 1800px auto;
  /* match the base image positioning (left:-100, top:-80) offset by our left/top */
  background-position: -920px -720px;
  transform-origin: 50% 100%;
  animation: bush-sway 5.5s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 55%, black 40%, transparent 80%);
          mask-image: radial-gradient(ellipse 60% 55% at 50% 55%, black 40%, transparent 80%);
}

@keyframes bush-sway {
  0%, 100% { transform: rotate(-1.2deg) translateX(-2px); }
  50%      { transform: rotate(1.2deg) translateX(2px); }
}

/* subtle top/bottom fade to ground the UI */
.building::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,20,40,0.15) 0%, transparent 30%, transparent 60%, rgba(0,0,0,0.25) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.35) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.15) 100%);
  pointer-events: none;
}

/* ---------- Header ---------- */
.header {
  position: absolute;
  top: 42px;
  left: 56px;
  z-index: 20;
  color: var(--paper);
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}

.header-logo {
  margin-bottom: 18px;
}
.header-logo img {
  width: 88px;
  height: auto;
  display: block;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,0.35));
  opacity: 0.92;
}

.header .eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 10px;
}

.header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: 54px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-style: italic;
}

.header h1 .accent {
  color: #f2d7a0;
  font-style: italic;
}

.header .meta {
  margin-top: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
  display: flex;
  gap: 18px;
}
.header .meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mustard);
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 10px var(--mustard);
}

/* ---------- Super-D flying in ---------- */
.super-d {
  position: absolute;
  /* Land on the roof of the lower wing building, holding the card up */
  left: 50px;
  bottom: 360px;
  width: 110px;
  height: 165px;
  z-index: 25;
  pointer-events: none;
  animation: super-fly-in 1.6s cubic-bezier(.2,.8,.25,1) 0.4s both;
  filter: drop-shadow(0 10px 12px rgba(0,0,0,0.45));
  transform-origin: bottom center;
}
.super-d svg { width: 100%; height: 100%; display: block; }

/* subtle idle bob once landed */
.super-d::after {
  content: '';
  position: absolute;
  inset: 0;
  animation: super-bob 3.5s ease-in-out 2.2s infinite;
}

.super-d .whoosh {
  position: absolute;
  left: 40%;
  top: 40%;
  width: 140px;
  height: 6px;
  background: linear-gradient(90deg, rgba(255,220,130,0) 0%, rgba(255,220,130,0.55) 60%, rgba(255,220,130,0) 100%);
  transform: translateX(-120%) rotate(-8deg);
  opacity: 0;
  animation: whoosh-trail 1.2s ease-out 0.4s both;
}

@keyframes super-fly-in {
  0%   { transform: translate(-620px, -520px) rotate(-15deg) scale(1.15); opacity: 0; }
  35%  { opacity: 1; }
  70%  { transform: translate(20px, -30px) rotate(-4deg) scale(1.02); }
  100% { transform: translate(0, 0) rotate(0) scale(1); opacity: 1; }
}

@keyframes whoosh-trail {
  0%   { transform: translate(-200px, -80px) rotate(-20deg); opacity: 0; }
  40%  { opacity: 0.9; }
  100% { transform: translate(-20px, 0) rotate(-8deg); opacity: 0; }
}

@keyframes super-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Make the info-card feel held up — slight tilt + shadow below super's hands */
.super-d + .info-card,
.info-card {
  /* no structural change; super lives separately but visually connects */
}

/* ---------- Note (per-window text beside the window) ---------- */
.note {
  position: absolute;
  width: 320px;
  background: rgba(244, 239, 230, 0.97);
  backdrop-filter: blur(6px);
  padding: 20px 22px 18px;
  border-left: 3px solid var(--mustard);
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.35s ease 0.05s, transform 0.5s cubic-bezier(.2,.7,.2,1) 0.05s;
  z-index: 12;
}
.window.is-active .note {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

/* Left-column windows (1, 3, 5 → hinge-right): note appears to the LEFT of the window */
.window.hinge-right .note {
  right: calc(100% + 28px);
  top: 50%;
  transform: translateY(calc(-50% + 6px));
}
.window.hinge-right.is-active .note {
  transform: translateY(-50%);
}

/* Window 1 has a long body — nudge its note down for balance */
.window.win-1.is-active .note {
  transform: translateY(calc(-50% + 55px));
}

/* Right-column windows (2, 4, 6 → hinge-left): note appears to the RIGHT of the window */
.window.hinge-left .note {
  left: calc(100% + 28px);
  top: 50%;
  transform: translateY(calc(-50% + 6px));
}
.window.hinge-left.is-active .note {
  transform: translateY(-50%);
}

.note .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--bordeaux);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.note .num .tag {
  background: var(--mustard);
  color: #1a1a1d;
  padding: 3px 7px;
  letter-spacing: 0.16em;
  font-size: 9px;
}
.note h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: 22px;
  line-height: 1.2;
  color: var(--bordeaux-deep);
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.note .underline {
  height: 2px;
  background: var(--mustard);
  margin: 6px 0 12px;
  width: 32px;
}
.note p {
  font-size: 13px;
  line-height: 1.55;
  color: #2a2a2e;
}
.note p + p { margin-top: 6px; }

/* ---------- Inside scene (e.g. Oops woman in window 6) ---------- */
.inside-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  background: #1a1612;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.window:hover .inside-scene {
  opacity: 1;
  transition: opacity 0.5s ease 0.45s; /* reveal after the sash has swung open */
}
.inside-scene img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180%;
  transform: translate(-50%, -44%) scale(1.04);
  filter: brightness(0.95) contrast(1.02);
  transition: transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.window:hover .inside-scene img {
  transform: translate(-50%, -44%) scale(1);
}
/* subtle room tone vignette */
.inside-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center 40%, transparent 30%, rgba(0,0,0,0.45) 100%);
}

/* ---------- Info card (bottom left) — intro only ---------- */
.info-card {
  position: absolute;
  left: 56px;
  bottom: 561px;
  z-index: 20;
  width: 440px;
  min-height: 180px;
  background: rgba(244, 239, 230, 0.97);
  backdrop-filter: blur(6px);
  padding: 26px 30px 24px;
  border-left: 3px solid var(--bordeaux);
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* ---------- Unlock badge (appears when all 6 windows visited) ---------- */
.unlock-badge {
  position: absolute;
  top: -34px;
  right: -34px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: var(--mustard, #d4a23c);
  color: #1a1a1d;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 28px rgba(0,0,0,0.32), 0 0 0 2px rgba(255,255,255,0.6) inset;
  transform: rotate(-12deg);
  animation: unlock-pop 520ms cubic-bezier(.34,1.56,.64,1) both, unlock-wobble 3.4s ease-in-out 520ms infinite;
  z-index: 30;
  border: none;
  cursor: pointer;
  padding: 0;
}
.unlock-badge:hover {
  animation-play-state: paused;
  transform: rotate(-8deg) scale(1.08);
  box-shadow: 0 14px 32px rgba(0,0,0,0.38), 0 0 0 2px rgba(255,255,255,0.6) inset;
}
.unlock-badge .unlock-dot {
  display: none;
}
.unlock-badge .unlock-text {
  display: block;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.04em;
}
@keyframes unlock-pop {
  0%   { transform: rotate(-12deg) scale(0); opacity: 0; }
  60%  { transform: rotate(-12deg) scale(1.15); opacity: 1; }
  100% { transform: rotate(-12deg) scale(1); opacity: 1; }
}
@keyframes unlock-wobble {
  0%,100% { transform: rotate(-12deg) scale(1); }
  50%     { transform: rotate(-8deg)  scale(1.04); }
}

/* ---------- Photo modal ---------- */
.photo-modal {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 22, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: photo-fade 240ms ease both;
}
.photo-modal-card {
  position: relative;
  background: #f4efe6;
  padding: 20px 20px 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  transform: rotate(-1.5deg);
  animation: photo-pop 420ms cubic-bezier(.34,1.56,.64,1) both;
  max-width: 460px;
}
.photo-modal-img {
  width: 420px;
}
.photo-modal-img img {
  width: 100%;
  height: auto;
  display: block;
}
.photo-modal-caption {
  text-align: center;
  padding-top: 14px;
}
.photo-modal-caption h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: 26px;
  color: var(--bordeaux-deep, #4a1f22);
  letter-spacing: -0.005em;
}
.photo-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #1a1a1d;
  color: #f4efe6;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-modal-close:hover { background: var(--bordeaux-deep, #4a1f22); }
@keyframes photo-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes photo-pop {
  0%   { transform: rotate(-1.5deg) scale(0.85); opacity: 0; }
  100% { transform: rotate(-1.5deg) scale(1); opacity: 1; }
}
.info-card.is-window {
  border-left-color: var(--mustard);
  box-shadow: 0 24px 60px rgba(0,0,0,0.32), 0 0 0 1px rgba(212,162,60,0.2);
}

.info-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: 24px;
  line-height: 1.25;
  color: var(--bordeaux-deep);
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}

.info-card p {
  font-size: 14px;
  line-height: 1.55;
  color: #2a2a2e;
}
.info-card p + p { margin-top: 8px; }

.info-card .hint {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed rgba(0,0,0,0.18);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bordeaux-deep);
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card .hint .cursor {
  display: inline-block;
  width: 16px; height: 16px;
  border: 1.5px solid var(--bordeaux-deep);
  border-radius: 50%;
  position: relative;
  animation: pulse 1.6s ease-in-out infinite;
}
.info-card .hint .cursor::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--bordeaux-deep);
}

/* window content inside the card */
.info-card .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--bordeaux);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.info-card .num .tag {
  background: var(--mustard);
  color: #1a1a1d;
  padding: 3px 7px;
  letter-spacing: 0.16em;
  font-size: 9px;
}
.info-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: 26px;
  line-height: 1.15;
  color: var(--bordeaux-deep);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.info-card .underline {
  height: 2px;
  background: var(--mustard);
  margin: 8px 0 14px;
  width: 40px;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.6; }
}

/* ---------- Signature strip (bottom right) ---------- */
.signature {
  position: absolute;
  right: 56px;
  bottom: 56px;
  z-index: 20;
  text-align: right;
  color: var(--paper);
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
  max-width: 480px;
}

.signature .line {
  font-family: 'Space Grotesk', sans-serif;
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.35;
  margin-bottom: 18px;
  white-space: nowrap;
}

.signature .ps {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ---------- Window hotspots ---------- */
.windows-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.window {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  transform-style: preserve-3d;
  perspective: 1200px;
}

/* the subtle outline that shows on hover to invite interaction */
.window::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 0 rgba(212, 162, 60, 0);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  pointer-events: none;
  z-index: 3;
}

.window:hover::before {
  border-color: rgba(255, 220, 130, 0.9);
  box-shadow: 0 0 40px 4px rgba(212, 162, 60, 0.4), inset 0 0 24px rgba(255,220,130,0.2);
}

/* The glass panel — one hinged sash that swings inward */
/* Default state: panes look like filled windows (subtle white wash),
   so the user can see them as clickable elements. */
.sash {
  position: absolute;
  top: 0;
  height: 100%;
  width: 100%;
  left: 0;
  transition: transform 1s cubic-bezier(.2,.7,.2,1), filter 0.6s ease, background 0.4s ease;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  background: rgba(244, 239, 230, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.15);
}

/* Left-column windows hinge on the right (open inward toward balcony) */
.window.hinge-right .sash { transform-origin: right center; }
.window.hinge-right:hover .sash {
  transform: perspective(900px) rotateY(72deg);
  filter: brightness(1.15);
}

/* Right-column windows hinge on the left */
.window.hinge-left .sash { transform-origin: left center; }
.window.hinge-left:hover .sash {
  transform: perspective(900px) rotateY(-72deg);
  filter: brightness(1.15);
}

/* Light spill from inside when open */
.light-spill {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255, 235, 180, 0.35) 0%, rgba(255, 220, 140, 0.15) 40%, transparent 75%);
  opacity: 0;
  transition: opacity 0.7s ease 0.2s;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 2;
}
.window:hover .light-spill { opacity: 1; }

/* ---------- Window positions (px on 1600x1100 canvas) ----------
   Image is rendered at 1600px wide, top: -21px.
   Original windows (px in 1920x1371 source), scaled by 1600/1920 = 0.8333,
   then shifted by top offset (-21px) already applied.
   Floor 1 (top):   y 240-372  -> 200-310 @ scale
   Floor 2 (mid):   y 418-550  -> 348-458
   Floor 3 (bottom of upper block): y 592-724 -> 493-603
   Left window panel x: 968-1168 -> 807-973
   Right window panel x: 1210-1550 -> 1008-1292  */
.win-1 { left: 864px;  top: 200px; width: 120px; height: 120px; }
.win-2 { left: 995px;  top: 200px; width: 120px; height: 120px; }
.win-3 { left: 864px;  top: 423px; width: 120px; height: 120px; }
.win-4 { left: 995px;  top: 423px; width: 120px; height: 120px; }
.win-5 { left: 864px;  top: 647px; width: 120px; height: 120px; }
.win-6 { left: 994px;  top: 647px; width: 120px; height: 120px; }

/* Window number chip */
.win-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Space Grotesk', sans-serif;
  font-style: italic;
  font-size: 28px;
  font-weight: 400;
  color: rgba(30, 30, 34, 0.75);
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(.2,.7,.2,1);
  z-index: 4;
  pointer-events: none;
  letter-spacing: -0.02em;
}
.window:hover .win-num { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }

/* ---------- Mini-map / navigation chips at bottom ---------- */
.nav-chips {
  position: absolute;
  left: 50%;
  top: 72%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(20, 24, 30, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  pointer-events: none;
  opacity: 0;
  animation: hintIn 0.8s ease 0.6s forwards;
}

@keyframes hintIn {
  to { opacity: 1; }
}

.nav-chips .chip {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-chips .chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mustard);
}

/* Tweaks panel */
.tweaks {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 260px;
  background: rgba(20, 20, 24, 0.92);
  color: #eee;
  padding: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  z-index: 200;
  border: 1px solid rgba(255,255,255,0.08);
  display: none;
}
.tweaks.open { display: block; }
.tweaks h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mustard);
  margin-bottom: 12px;
}
.tweaks label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  color: #bbb;
}
.tweaks .row { margin-bottom: 14px; }
.tweaks input[type=range] { width: 100%; }
.tweaks select {
  width: 100%;
  background: #111;
  color: #eee;
  border: 1px solid #333;
  padding: 6px 8px;
  font-family: inherit;
  font-size: 12px;
}

/* ---------- Credit ---------- */
.credit {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
