/* =====================================================================
   INTERACTIVE LAYER. Everything here answers the visitor: pointer, tap, drag, scroll.
   Transform / translate / opacity only on anything that moves continuously.
   Reduced motion: everything rests. Touch: no hover-only features.
   ===================================================================== */

/* ---------- page-to-page transitions (Chromium/Safari; others just navigate) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: vt-out .2s ease-in both; }
  ::view-transition-new(root) { animation: vt-in .42s cubic-bezier(.16,1,.3,1) both; }
  @keyframes vt-out { to { opacity: 0; transform: translate3d(0,-10px,0); } }
  @keyframes vt-in { from { opacity: 0; transform: translate3d(0,18px,0); } }
}

/* ---------- scroll progress line ---------- */
.scroll-progress { position: fixed; left: 0; top: 0; width: 100%; height: 3px; z-index: 300; pointer-events: none; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- cursor light on cards ---------- */
.has-sheen { position: relative; }
.sheen { position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .35s ease; background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(240,128,32,.18), rgba(240,128,32,0) 70%); }
.has-sheen:hover > .sheen { opacity: 1; }

/* ---------- magnetic buttons ---------- */
.magnet { translate: var(--tx, 0px) var(--ty, 0px); }

/* ---------- HERO: layered deck + depth shapes ---------- */
@media (min-width: 901px) {
  .hero { min-height: min(500px, 62vh); }
  .hero-inner { padding: 64px 0 32px; }
  .hero-slab { max-width: 780px; padding: 28px 32px 26px; }
  .hero-slab h1 { font-size: clamp(2rem, 3.4vw, 3rem); margin-bottom: 10px; }
  .hero-slab > p { font-size: 1rem; margin-bottom: 16px; max-width: 60ch; }
  .hero-form { grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; }
  .hero-form .btn { grid-column: auto; white-space: nowrap; }
  .hero-form select { min-height: 48px; }
  .hero-meta { margin-top: 12px; }
}
@media (min-width: 901px) {
  .hero { --mx: 0; --my: 0; }
  .hero-slide { filter: brightness(.6) saturate(.9); }
  .hero-slides { translate: calc(var(--mx) * -10px) calc(var(--my) * -8px); }
  /* hero entrance, once */
  .hero-slab > * { animation: heroRise .9s cubic-bezier(.16,1,.3,1) both; }
  .hero-slab > :nth-child(1) { animation-delay: .05s; } .hero-slab > :nth-child(2) { animation-delay: .14s; } .hero-slab > :nth-child(3) { animation-delay: .22s; } .hero-slab > :nth-child(4) { animation-delay: .3s; } .hero-slab > :nth-child(5) { animation-delay: .38s; }
}
@keyframes heroRise { from { opacity: 0; transform: translate3d(0, 24px, 0); } }
@media (max-width: 900px) {
  .hero-slab > * { animation: heroRise .8s cubic-bezier(.16,1,.3,1) both; }
  .hero-slab > :nth-child(2) { animation-delay: .1s; } .hero-slab > :nth-child(3) { animation-delay: .18s; }
}

/* ---------- "What we build": expanding panels ---------- */
.svc-acc { display: flex; gap: 10px; height: clamp(460px, 64vh, 580px); }
.acc-item {
  position: relative; display: block; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--palm-deep); color: #fff;
  box-shadow: var(--shadow-sm); transition: flex-grow .65s cubic-bezier(.16,1,.3,1), box-shadow .3s ease; text-decoration: none;
}
.acc-item.is-open { flex-grow: 6; box-shadow: var(--shadow-lift); }
.acc-item > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1s cubic-bezier(.16,1,.3,1), filter .5s ease; filter: saturate(.85) brightness(.9); }
.acc-item.is-open > img { transform: scale(1); filter: none; }
.acc-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,43,36,0) 40%, rgba(15,43,36,.82) 100%); pointer-events: none; }
.acc-label { position: absolute; z-index: 3; left: 50%; bottom: 22px; translate: -50% 0; writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-display, inherit); font-weight: 700; letter-spacing: .04em; font-size: 1.05rem; white-space: nowrap; transition: opacity .3s ease; }
.acc-item.is-open .acc-label { opacity: 0; }
.acc-body { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: clamp(18px, 2.4vw, 32px); opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity .3s ease, transform .5s cubic-bezier(.16,1,.3,1); pointer-events: none; }
.acc-item.is-open .acc-body { opacity: 1; transform: none; transition-delay: .22s; pointer-events: auto; }
.acc-body h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: 6px; color: #fff; }
.acc-body p { color: var(--mint); max-width: 44ch; margin-bottom: 14px; }
.acc-item.is-open::after { background: linear-gradient(180deg, rgba(15,43,36,0) 22%, rgba(15,43,36,.9) 100%); }
.acc-body p { font-weight: 500; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.acc-go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #1a1005; background: var(--accent); padding: 11px 18px; border-radius: 999px; min-height: 44px; transition: transform .25s cubic-bezier(.16,1,.3,1); }
.acc-item:hover .acc-go { transform: translateX(3px); }
.acc-go [data-i] { width: 18px; height: 18px; }
.acc-item:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (max-width: 900px) {
  .svc-acc { flex-direction: column; height: auto; gap: 8px; }
  .acc-item { flex: none; height: 76px; transition: height .6s cubic-bezier(.16,1,.3,1), box-shadow .3s ease; }
  .acc-item.is-open { height: 330px; }
  .acc-label { writing-mode: horizontal-tb; transform: none; left: 20px; bottom: auto; top: 50%; translate: 0 -50%; font-size: 1.15rem; }
  .acc-body { padding: 18px; }
  .acc-item::before { content: '+'; position: absolute; z-index: 3; right: 16px; top: 38px; translate: 0 -50%; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 1.4rem; line-height: 1; font-weight: 600; transition: opacity .3s ease; }
  .acc-item.is-open::before { opacity: 0; }
}

/* ---------- "How a project works": photo stays, steps scroll past ---------- */
.pin { display: grid; grid-template-columns: 1fr; gap: 0; }
.pin-frame { display: none; }
.pstep { position: relative; padding: 0 0 36px; }
.pstep-n { display: block; font-family: var(--font-display, inherit); font-weight: 800; font-size: 2.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--accent-ink); margin-bottom: 10px; }
.pstep h3 { font-size: var(--t-h3); margin-bottom: 8px; }
.pstep p { color: var(--muted); max-width: 46ch; }
.pstep-ph { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); margin-top: 16px; box-shadow: var(--shadow-lift); }
@media (min-width: 901px) {
  .pin { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
  .pin-frame { display: block; position: sticky; top: 112px; height: min(560px, calc(100vh - 150px)); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-float); background: var(--palm-deep); border: 6px solid var(--paper); }
  .pin-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .7s ease, transform 1.4s cubic-bezier(.16,1,.3,1); }
  .pin-frame img.on { opacity: 1; transform: none; }
  .pin-steps { grid-column: 1; grid-row: 1; }
  .pin-frame { grid-column: 2; grid-row: 1; }
  .pstep { min-height: min(62vh, 520px); padding: 0; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .5s ease; }
  .pstep.on { opacity: 1; }
  .pstep-ph { display: none; }
  .pstep-n { font-size: clamp(4rem, 8vw, 7rem); }
  .pstep h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
  .pstep p { font-size: 1.08rem; }
}

/* ---------- showroom photos: loose prints you can move ---------- */
.showroom-mosaic[data-stack] { display: block; position: relative; height: auto; container-type: inline-size; aspect-ratio: 1 / 1.22; touch-action: pan-y; }
.showroom-mosaic[data-stack] figure {
  position: absolute; width: 56cqw; aspect-ratio: 3 / 4; margin: 0 !important; border: 6px solid var(--paper) !important; border-radius: calc(var(--radius) + 3px) !important;
  box-shadow: var(--shadow-lift); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  transform: translate3d(var(--dx, 0px), var(--dy, 0px), 0) rotate(var(--r, 0deg)); transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .3s ease;
}
.showroom-mosaic[data-stack] figure:nth-child(1) { left: 0; top: 0; --r: -3deg; }
.showroom-mosaic[data-stack] figure:nth-child(2) { right: 0; top: 12cqw; --r: 2.4deg; }
.showroom-mosaic[data-stack] figure:nth-child(3) { left: 17cqw; top: 46cqw; --r: -1.2deg; }
.showroom-mosaic[data-stack] figure.dragging { transition: box-shadow .3s ease; cursor: grabbing; box-shadow: var(--shadow-float); }
.showroom-mosaic[data-stack] figure.front { box-shadow: var(--shadow-float); }
.showroom-mosaic[data-stack] img { pointer-events: none; -webkit-user-drag: none; }
.showroom-mosaic[data-stack] figure:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
@media (max-width: 900px) { .showroom-mosaic[data-stack] { order: 0; max-width: 460px; margin-inline: auto; width: 100%; } }
.stack-hint { margin: 10px 0 0; font-size: .86rem; color: var(--muted); text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .hero-slab > * { animation: none !important; }
  .acc-item, .acc-item > img, .acc-body, .pin-frame img, .pstep, .showroom-mosaic[data-stack] figure { transition: none !important; }
  .hero-slides { translate: none !important; }
}

/* hero form must never be wider than its panel */
.hero-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero-form select, .hero-form .btn { min-width: 0; width: 100%; max-width: 100%; }
.hero-slab { min-width: 0; }
@media (max-width: 420px) { .hero-form { grid-template-columns: minmax(0, 1fr); } }


/* ---------- the house tour ---------- */
.tour { background: var(--palm-deep) url("../img/terrazzo-dark.svg") 0 0 / 300px; color: #fff; padding-block: clamp(48px, 7vw, 96px); }
.tour .section-head h2 { color: #fff; }
.tour .section-head p { color: var(--mint); }
.tour-wrap { width: 100%; max-width: 1120px; margin-inline: auto; }
.house-stage { position: relative; aspect-ratio: 1376 / 768; border-radius: var(--radius-lg); overflow: hidden; background: #0a1f1a; border: 6px solid var(--paper); box-shadow: var(--shadow-float); isolation: isolate; }
.house-wrap { position: absolute; inset: 0; transition: transform 1s cubic-bezier(.65,0,.2,1); will-change: transform; }
.house { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.room-hit { position: absolute; display: block; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 4px; }
.room-hit:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.room-tag { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 4px; border-radius: 999px; background: rgba(10,31,26,.82); color: #fff; font-weight: 700; font-size: clamp(.62rem, 1.3vw, .92rem); white-space: nowrap; transition: background-color .25s ease, color .25s ease, transform .25s cubic-bezier(.16,1,.3,1); }
.room-tag b { display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--accent); color: #1a1005; font-size: .95em; }
.room-hit:hover .room-tag, .room-hit:focus-visible .room-tag { background: var(--accent); color: #1a1005; transform: translateY(-2px); }
.room-hit:hover .room-tag b, .room-hit:focus-visible .room-tag b { background: #1a1005; color: var(--accent); }
.house-hint { position: absolute; left: 50%; bottom: 3.5%; translate: -50% 0; margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(10,31,26,.85); color: #fff; font-weight: 700; font-size: .88rem; pointer-events: none; }
.house-hint span { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: beacon 1.6s ease-in-out infinite; }
@keyframes beacon { 50% { opacity: .25; transform: scale(.7); } }
.house-stage.inside .house-hint, .house-stage.inside .room-tag { opacity: 0; }

.room-view { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; background: #0a1f1a; opacity: 0; transition: opacity .5s ease .35s; outline: none; }
.room-view[hidden] { display: none; }
.room-view.on { opacity: 1; }
.rv-top { position: relative; z-index: 6; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: linear-gradient(180deg, rgba(10,31,26,.9), rgba(10,31,26,0)); position: absolute; top: 0; left: 0; right: 0; }
.rv-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; border: 2px solid rgba(255,255,255,.75); background: rgba(10,31,26,.7); color: #fff; font: inherit; font-weight: 700; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.rv-back:hover { background: #fff; color: var(--palm); }
.rv-back [data-i] { width: 18px; height: 18px; transform: rotate(180deg); }
.rv-pills { display: flex; gap: 6px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.rv-pills::-webkit-scrollbar { display: none; }
.room-pill { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px 0 8px; border-radius: 999px; border: 2px solid transparent; background: rgba(10,31,26,.7); color: #fff; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.room-pill b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.2); font-size: .8rem; }
.room-pill:hover { background: rgba(255,255,255,.2); }
.room-pill.on { background: var(--accent); color: #1a1005; } .room-pill.on b { background: #1a1005; color: var(--accent); }
.rv-media { position: absolute; inset: 0; }
.stop { position: absolute; inset: 0; overflow: hidden; }
.stop .bgimg { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover; filter: blur(26px) brightness(.55) saturate(1.2); }
.stop .fgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.stop-tag { position: absolute; right: 14px; top: 64px; padding: 5px 11px; border-radius: 999px; background: rgba(10,31,26,.85); color: #fff; font-size: .8rem; font-weight: 700; }
.pl { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: pan-y; background: #111; }
.pl.grab { cursor: grabbing; }
.pl-track { position: absolute; left: 0; top: 0; height: 100%; display: flex; width: max-content; will-change: transform; }
.pl-track img { height: 100%; width: auto; max-width: none; flex: none; user-select: none; -webkit-user-drag: none; display: block; }
.pl-chip { position: absolute; left: 14px; top: 64px; z-index: 3; padding: 6px 12px; border-radius: 999px; background: rgba(15,43,36,.85); color: #fff; font-size: .8rem; font-weight: 700; pointer-events: none; }
.pl:focus-visible { outline: 3px solid var(--gold); outline-offset: -6px; }
.rv-panel { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr auto; gap: 10px 20px; align-items: end; padding: 70px clamp(14px, 2.2vw, 26px) clamp(12px, 2vw, 22px); background: linear-gradient(180deg, rgba(8,24,20,0), rgba(8,24,20,.88) 55%); pointer-events: none; }
.rv-panel > * { pointer-events: auto; }
.rv-items { grid-column: 1 / -1; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.rv-items::-webkit-scrollbar { display: none; }
.rv-item { flex: none; display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 4px 16px 4px 4px; border-radius: 999px; border: 2px solid rgba(255,255,255,.35); background: rgba(10,31,26,.72); color: #fff; font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, transform .2s cubic-bezier(.16,1,.3,1); }
.rv-item:hover { border-color: #fff; transform: translateY(-2px); }
.rv-item.on { background: var(--accent); border-color: var(--accent); color: #1a1005; }
.rv-ph { width: 38px; height: 38px; border-radius: 50%; background-size: cover; background-position: center; flex: none; }
.rv-item.is360 .rv-ph { box-shadow: 0 0 0 2px #fff inset; }
.rv-text h3 { font-size: clamp(1.3rem, 2.4vw, 2rem); color: #fff; margin-bottom: 4px; }
.rv-text p { color: var(--mint); max-width: 56ch; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.rv-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.walk-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid rgba(255,255,255,.75); background: rgba(10,31,26,.6); color: #fff; font: inherit; font-weight: 700; cursor: pointer; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.walk-btn:hover { background: #fff; color: var(--palm); } .walk-btn:active { transform: scale(.96); }
.walk-btn [data-i] { width: 18px; height: 18px; }
.room-list { list-style: none; display: none; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 14px 0 0; padding: 0; }
.room-list button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 8px; border-radius: 999px; border: 2px solid rgba(255,255,255,.4); background: rgba(10,31,26,.6); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.room-list b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #1a1005; font-size: .85rem; }
@media (max-width: 900px) {
  .house-stage { border-width: 4px; }
  .house-stage.inside { aspect-ratio: auto; height: min(84vh, 640px); }
  .house-hint { font-size: .78rem; padding: 5px 11px; }
  .room-tag { left: 3px; top: 3px; padding: 2px 7px 2px 2px; font-size: .56rem; gap: 4px; } .room-tag b { font-size: .8em; }
  .room-list { display: flex; }
  .rv-panel { grid-template-columns: 1fr; padding-top: 60px; }
  .rv-actions { justify-content: flex-start; }
  .rv-actions .btn, .walk-btn { flex: 1 1 auto; justify-content: center; }
  .rv-pills .room-pill span { display: none; } .room-pill { padding: 0 8px; }
  .rv-text p { font-size: .94rem; }
}
@media (prefers-reduced-motion: reduce) { .house-wrap, .room-view { transition: none; } .bulbs circle, .house-hint span { animation: none; } }

/* showroom prints glide home after you let go */
.showroom-mosaic[data-stack] figure { transition: transform .7s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease; }
.showroom-mosaic[data-stack] figure.dragging { transition: box-shadow .3s ease; }

/* house tour refinements */
.rv-quote.btn { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.75); }
.rv-quote.btn:hover { background: #fff; color: var(--palm); }
.rv-items { margin-bottom: 6px; }
.rv-text p { max-width: 62ch; text-wrap: pretty; }
@media (max-width: 900px) {
  .room-tag { padding: 0; background: none; left: 4px; top: 4px; }
  .room-tag { font-size: 0; gap: 0; }
  .room-tag b { width: 20px; height: 20px; font-size: .68rem; }
  .house-hint { display: none; }
  .room-list { margin-top: 12px; }
  .room-list::before { content: 'Pick a room to step inside'; flex: 0 0 100%; text-align: center; color: var(--mint); font-size: .9rem; }
}

/* phone polish */
@media (max-width: 900px) {
  .showroom-mosaic[data-stack] { aspect-ratio: 1 / 1.42; }
  .showroom-mosaic[data-stack] figure { width: 54cqw; }
  .showroom-mosaic[data-stack] figure:nth-child(2) { top: 8cqw; }
  .showroom-mosaic[data-stack] figure:nth-child(3) { left: 20cqw; top: 66cqw; }
  .acc-item::after { background: linear-gradient(180deg, rgba(10,31,26,.45) 0%, rgba(10,31,26,.7) 100%); }
  .acc-item.is-open::after { background: linear-gradient(180deg, rgba(15,43,36,0) 22%, rgba(15,43,36,.92) 100%); }
  .acc-label { text-shadow: 0 1px 8px rgba(0,0,0,.7); }
}

/* phone: keep page headers clean; make the jump links row look scrollable */
@media (max-width: 900px) {
  .hero-snow { opacity: .35; }
  .page-hero .hero-snow { display: none; }
  .jump-nav .container { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-inline: 16px 36px; }
}

/* generated house render + spotlight hotspots */
.house { object-fit: cover; }
.room-hit { overflow: hidden; border-radius: 10px; transition: box-shadow .3s ease; }
.room-hit::before { content: ''; position: absolute; inset: 0; background: rgba(5,18,15,0); transition: background-color .35s ease; pointer-events: none; }
.house-wrap.has-hot .room-hit:not(.hot)::before { background: rgba(5,18,15,.58); }
.room-hit.hot { box-shadow: inset 0 0 0 3px var(--accent), 0 0 34px 4px rgba(240,128,32,.45); }
.room-hit::after { content: ''; position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(10,31,26,.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 18px no-repeat; box-shadow: 0 0 0 0 rgba(240,128,32,.6); animation: pinPulse 2.4s ease-out infinite; transition: background-color .25s ease; pointer-events: none; }
.room-hit:hover::after, .room-hit:focus-visible::after { background-color: var(--accent); animation: none; }
.room-hit:nth-child(2n)::after { animation-delay: .6s; } .room-hit:nth-child(3n)::after { animation-delay: 1.2s; }
@keyframes pinPulse { 0% { box-shadow: 0 0 0 0 rgba(240,128,32,.6); } 70%, 100% { box-shadow: 0 0 0 14px rgba(240,128,32,0); } }
.house-note { position: absolute; left: 12px; bottom: 10px; z-index: 2; padding: 3px 9px; border-radius: 999px; background: rgba(10,31,26,.7); color: rgba(255,255,255,.85); font-size: .72rem; font-weight: 600; pointer-events: none; }
.house-stage.inside .house-note { opacity: 0; }
@media (max-width: 900px) { .room-hit::after { width: 26px; height: 26px; right: 6px; bottom: 6px; background-size: 14px; } .room-hit { border-radius: 6px; } }
@media (prefers-reduced-motion: reduce) { .room-hit::after { animation: none; } }
@media (max-width: 900px) { .room-hit::after { display: none; } .house-note { left: auto; right: 8px; bottom: 6px; font-size: .62rem; } }


/* ---------- house: ambient life, guided tour, plan bar ---------- */
.house-wrap.tilting { transition: transform .28s ease-out; }
.house-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.house-stage.inside .house-fx { opacity: 0; }
.fx-smoke { position: absolute; width: 5.5%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle, rgba(236,242,240,.5), rgba(236,242,240,0) 68%); opacity: 0; animation: fxSmoke 7s ease-out infinite; animation-delay: calc(var(--i) * 2.3s); }
@keyframes fxSmoke { 0% { opacity: 0; transform: translate(0,0) scale(.5); } 18% { opacity: .75; } 100% { opacity: 0; transform: translate(70%,-110%) scale(1.9); } }
.fx-glow { position: absolute; width: 11%; aspect-ratio: 1.3; translate: -50% -50%; background: radial-gradient(closest-side, rgba(255,196,112,.5), rgba(255,196,112,0)); mix-blend-mode: screen; opacity: .35; animation: fxBreathe 4.6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes fxBreathe { 0%,100% { opacity: .3; } 50% { opacity: .85; } }
.fx-sparks { position: absolute; inset: 0; }
.fx-spark { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #ffe6ad; box-shadow: 0 0 7px 3px rgba(255,200,112,.75); opacity: .25; animation: fxTwinkle 3s ease-in-out infinite; }
@keyframes fxTwinkle { 0%,100% { opacity: .2; scale: .7; } 50% { opacity: 1; scale: 1.25; } }
.tour-wrap.fx-off .house-fx * { animation-play-state: paused; }
@media (max-width: 640px) { .fx-spark { width: 3px; height: 3px; box-shadow: 0 0 5px 2px rgba(255,200,112,.7); } }

.room-hit.seen .room-tag::after { content: '\2713'; display: grid; place-items: center; width: 1.5em; height: 1.5em; margin-left: 2px; border-radius: 50%; background: #2f9e6b; color: #fff; font-size: .8em; line-height: 1; }
.room-hit.planned .room-tag { box-shadow: 0 0 0 2px var(--accent); }
@media (max-width: 640px) { .room-hit.seen .room-tag::after { position: absolute; right: -6px; top: -6px; width: 12px; height: 12px; margin: 0; font-size: 9px; } }

.rv-play { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid rgba(255,255,255,.75); background: rgba(10,31,26,.7); color: #fff; font: inherit; font-weight: 700; cursor: pointer; transition: background-color .2s ease, color .2s ease; position: relative; overflow: hidden; }
.rv-play:hover { background: #fff; color: var(--palm); }
.rv-play .ic { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.rv-play[aria-pressed="true"] .ic { width: 10px; height: 12px; border: 0; border-left: 3.5px solid currentColor; border-right: 3.5px solid currentColor; }
.rv-play::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.room-view.playing.tick .rv-play::after { animation: rvTick var(--step, 3800ms) linear forwards; }
@keyframes rvTick { to { transform: scaleX(1); } }
@media (max-width: 640px) { .rv-play .lbl { display: none; } .rv-play { padding: 0 13px; } }

.rv-plan[aria-pressed="true"] { background: #2f9e6b; border-color: #2f9e6b; color: #fff; }
.stop .fgimg { animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.05); } }
.room-view.playing .stop .fgimg { animation-duration: 8s; }

.tour-plan { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 16px; padding: 12px 16px; border-radius: var(--radius); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); color: #fff; }
.tp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.tp-seen { font-size: .95rem; }
.tp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-chip { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 0; background: #2f9e6b; color: #fff; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tp-chip i { font-style: normal; opacity: .8; font-size: 1.1em; }
.tp-chip:hover { background: #247e55; }
.tp-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-play[aria-pressed="true"] { opacity: .7; }
@media (max-width: 640px) { .tour-plan { flex-direction: column; align-items: stretch; } .tp-btns .btn { flex: 1 1 auto; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .fx-smoke, .fx-glow, .fx-spark, .stop .fgimg { animation: none; } .fx-glow { opacity: .5; } }
.tp-go[hidden] { display: none; }


/* ---------- immersive house: day / night + 360 rooms ---------- */
.house--night { opacity: 0; transition: opacity 1.1s ease; }
.is-night .house--night { opacity: 1; }
.house--day { transition: filter 1.1s ease; }
.fx-night { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.is-night .fx-night { opacity: 1; }
.fx-twinkle { position: absolute; width: .55%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(255,236,190,.95), rgba(255,200,120,.35) 45%, rgba(255,200,120,0) 70%); mix-blend-mode: screen; animation: fxTwinkle 2.8s ease-in-out infinite; animation-delay: var(--d); }
.fx-smoke { width: 4.2%; background: radial-gradient(circle, rgba(232,238,236,.42), rgba(232,238,236,0) 68%); }
.is-night .fx-smoke { background: radial-gradient(circle, rgba(170,180,200,.35), rgba(170,180,200,0) 68%); }
.tour-wrap.fx-off .house-fx * { animation-play-state: paused; }

.daynight { position: absolute; z-index: 4; right: 12px; top: 12px; display: flex; padding: 4px; gap: 2px; border-radius: 999px; background: rgba(10,31,26,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 6px 18px -6px rgba(0,0,0,.5); transition: opacity .3s ease; }
.house-stage.inside .daynight { opacity: 0; pointer-events: none; }
.dn-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px 0 11px; border: 0; border-radius: 999px; background: transparent; color: rgba(255,255,255,.8); font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; transition: background-color .3s ease, color .3s ease; }
.dn-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.dn-btn[data-mode="night"] svg { fill: currentColor; stroke: none; }
.dn-btn:hover { color: #fff; }
.dn-btn[aria-pressed="true"] { background: #fff; color: var(--palm); }
.dn-btn[data-mode="night"][aria-pressed="true"] { background: #1c2b4a; color: #ffe2a8; }
.dn-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 640px) { .daynight { right: 6px; top: 6px; padding: 3px; } .dn-btn { min-height: 34px; padding: 0 9px; font-size: .78rem; } .dn-btn span { display: none; } .dn-btn svg { width: 17px; height: 17px; } }

/* 360 viewer */
.stop.pv { background: #0a1f1a; touch-action: none; }
.pv-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; outline: none; opacity: 0; transition: opacity .6s ease; }
.pv-ready .pv-canvas { opacity: 1; }
.pv.grab .pv-canvas { cursor: grabbing; }
.pv-canvas:focus-visible { box-shadow: inset 0 0 0 3px var(--gold); }
.pv-loading::before { content: ''; position: absolute; left: 50%; top: 45%; width: 34px; height: 34px; margin: -17px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: var(--accent); animation: pvSpin .8s linear infinite; }
@keyframes pvSpin { to { transform: rotate(360deg); } }
.pv-hint { position: absolute; left: 50%; top: 15%; translate: -50% -50%; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: rgba(10,31,26,.72); color: #fff; font-weight: 700; font-size: .92rem; pointer-events: none; opacity: 0; animation: pvHint 4.2s ease 0.9s forwards; }
.pv-hint i { width: 26px; height: 14px; border: 2px solid #fff; border-radius: 8px; position: relative; }
.pv-hint i::after { content: ''; position: absolute; top: 2px; left: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pvSwipe 1.4s ease-in-out infinite; }
@keyframes pvHint { 0% { opacity: 0; } 12%, 78% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes pvSwipe { 50% { transform: translateX(10px); } }
.pv-gyro { position: absolute; z-index: 3; right: 12px; top: 66px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 2px solid rgba(255,255,255,.7); background: rgba(10,31,26,.7); color: #fff; font: inherit; font-weight: 700; font-size: .82rem; cursor: pointer; }
.pv-gyro.on { background: #2f9e6b; border-color: #2f9e6b; }

/* hotspots inside the 360 */
.ps { position: absolute; left: 0; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: #fff; font: inherit; cursor: pointer; opacity: 0; transition: opacity .25s ease; will-change: transform; margin: -22px 0 0 -22px; }
.ps-dot { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.ps-dot::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.28), 0 4px 14px rgba(0,0,0,.45); transition: transform .25s cubic-bezier(.34,1.56,.64,1), background-color .2s ease; }
.ps-dot::after { content: ''; position: absolute; inset: 8px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); animation: psRing 2.4s ease-out infinite; }
@keyframes psRing { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.ps-l { padding: 6px 12px; border-radius: 999px; background: rgba(10,31,26,.82); font-weight: 700; font-size: .88rem; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.35); transition: background-color .2s ease, color .2s ease; }
.ps:hover .ps-dot::before, .ps:focus-visible .ps-dot::before { transform: scale(1.25); background: var(--accent); }
.ps:hover .ps-l, .ps:focus-visible .ps-l { background: #fff; color: var(--palm); }
.ps:focus-visible { outline: none; } .ps:focus-visible .ps-l { box-shadow: 0 0 0 3px var(--gold); }
.ps--go .ps-dot::before { width: 30px; height: 30px; background: rgba(240,128,32,.95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1005' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 17px no-repeat; }
.ps--go .ps-l { background: rgba(240,128,32,.95); color: #1a1005; }
.ps--go:hover .ps-dot::before { background-color: #fff; }
.ps--info .ps-dot::before { background: rgba(255,255,255,.95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2b24' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 11v6M12 7.2v.1'/%3E%3C/svg%3E") center / 14px no-repeat; }
.rv-media.walking .ps { opacity: 0 !important; }
/* light switches in the 360 rooms (night lighting) */
.ps--light .ps-dot::before { width: 28px; height: 28px; background: rgba(16,24,21,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2V16h5v-.1c0-.8.4-1.5 1-2A6 6 0 0 0 12 3z'/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: 0 0 0 4px rgba(255,255,255,.22), 0 4px 14px rgba(0,0,0,.45); transition: background-color .3s ease, box-shadow .3s ease, transform .25s cubic-bezier(.34,1.56,.64,1); }
.ps--light.is-on .ps-dot::before { background: #f6c453 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1005' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2V16h5v-.1c0-.8.4-1.5 1-2A6 6 0 0 0 12 3z'/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: 0 0 0 4px rgba(246,196,83,.35), 0 0 22px 6px rgba(246,196,83,.55); }
.ps--light .ps-l::after { content: ' \00b7  off'; opacity: .7; font-weight: 600; }
.ps--light.is-on .ps-l::after { content: ' \00b7  on'; }
.ps--light.is-on .ps-l { background: rgba(246,196,83,.95); color: #1a1005; }

.ps-pop { position: absolute; z-index: 7; left: 50%; top: 50%; translate: -50% -50%; width: min(340px, 86%); padding: 18px; border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-float); animation: popIn .3s cubic-bezier(.16,1,.3,1); }
.ps-pop strong { display: block; font-size: 1.2rem; margin-bottom: 4px; padding-right: 36px; }
.ps-pop p { color: var(--muted); margin-bottom: 12px; }
.ps-x { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; font-size: 1.6rem; color: var(--muted); cursor: pointer; }
.ps-x:hover { background: var(--stone); color: var(--ink); }
.rv-item.is360 .rv-ph { box-shadow: 0 0 0 2px var(--accent) inset, 0 0 0 2px #fff; }
.room-view.is-pano .rv-panel { padding-top: 40px; }
@media (max-width: 900px) {
  .ps-l { font-size: .78rem; padding: 5px 9px; }
  .ps--look .ps-l, .ps--info .ps-l { display: none; }
  .room-view.is-pano .rv-text p { display: none; }
  .pv-hint { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) { .ps-dot::after, .fx-twinkle, .pv-hint i::after { animation: none; } .pv-hint { animation: none; opacity: 0; } .house--night, .fx-night { transition: none; } }

.room-hit { overflow: visible; }
.room-hit::before { border-radius: inherit; }
.tp-seen { color: #fff; }
.room-tag { max-width: none; }

/* 360 polish: popover above the panel, compact phone layout */
.ps-pop { z-index: 9; top: 46%; }
.pv-gyro { right: 10px; top: 64px; width: 44px; height: 44px; min-height: 0; padding: 0; display: grid; place-items: center; border-radius: 50%; }
.pv-gyro svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.rv-plan.btn { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.75); }
.rv-plan.btn:hover { background: #fff; color: var(--palm); }
@media (max-width: 640px) {
  .rv-top { padding: 8px; gap: 6px; }
  .rv-back { padding: 0; width: 44px; justify-content: center; } .rv-back-l { display: none; }
  .rv-pills { gap: 4px; } .room-pill { min-height: 40px; padding: 0 6px; } .room-pill b { width: 26px; height: 26px; }
  .rv-play { min-height: 40px; }
  .ps-pop { top: 64px; translate: -50% 0; width: calc(100% - 20px); }
  .room-view.is-pano .rv-quote { display: none; }
  .rv-actions { gap: 6px; } .rv-actions .btn, .walk-btn { min-height: 42px; font-size: .88rem; padding: 0 12px; }
  .rv-panel { padding: 48px 12px 12px; gap: 6px; }
  .rv-text h3 { font-size: 1.25rem; margin-bottom: 0; }
  body.in-tour .fab-stack { opacity: 0; transform: translateY(12px); pointer-events: none; }
}

/* day/night stays available inside the rooms */
.daynight { z-index: 8; }
.house-stage.inside .daynight { opacity: 1; pointer-events: auto; top: 66px; right: 10px; }
.house-stage.inside .pv-gyro { top: 116px; }
@media (max-width: 640px) { .house-stage.inside .daynight { top: 58px; right: 6px; } .house-stage.inside .pv-gyro { top: 104px; right: 6px; } }
.rv-pills { max-width: calc(100% - 210px); }
@media (max-width: 640px) { .rv-pills { max-width: none; } }

.rv-back { white-space: nowrap; height: 44px; min-height: 0; flex: none; }
.rv-play { white-space: nowrap; height: 44px; min-height: 0; flex: none; }
.house-stage.inside .daynight { top: 74px; }
.house-stage.inside .pv-gyro { top: 124px; }
.rv-pills { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); padding-right: 24px; }
@media (max-width: 640px) {
  .rv-back, .rv-play { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .rv-play .ic { margin: 0; }
  .house-stage.inside .daynight { top: 58px; } .house-stage.inside .pv-gyro { top: 104px; }
}
