/* ============================================================
   Palmers TV — Interactive House Tour Prototype
   Standalone stylesheet. Matches site palette + Cabinet Grotesk.
   ============================================================ */

:root {
  /* Palette — aligned with main site */
  --ht-charcoal: #1A1411;
  --ht-charcoal-2: #2A211B;
  --ht-charcoal-3: #3D2B1F;
  --ht-cream: #FAF5EE;
  --ht-cream-warm: #F2E9DA;
  --ht-cream-soft: #FDFAF5;
  --ht-orange: #E85A15;
  --ht-orange-deep: #C84A0A;
  --ht-orange-soft: #FFB088;
  --ht-text: #1A1411;
  --ht-text-muted: #6B5A4D;
  --ht-text-faint: #9A8B7E;
  --ht-border: rgba(26, 20, 17, 0.10);
  --ht-border-strong: rgba(26, 20, 17, 0.18);

  /* Typography */
  --ht-font-display: 'Cabinet Grotesk', 'General Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --ht-font-body: 'General Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* Easing */
  --ht-ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ht-ease-bounce: cubic-bezier(0.4, 1.4, 0.5, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ht-font-body);
  font-size: 16px;
  line-height: 1.55;
  background: var(--ht-cream);
  color: var(--ht-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.ht-panel-open {
  overflow: hidden;
}

img { max-width: 100%; height: auto; }

/* ============================================================
   HEADER
   ============================================================ */

.ht-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 2rem;
  background: rgba(250, 245, 238, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--ht-border);
}

.ht-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.ht-header__logo img {
  height: 30px;
  width: auto;
  display: block;
}

.ht-header__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ht-header__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(232, 90, 21, 0.10);
  color: var(--ht-orange-deep);
  font-family: var(--ht-font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 90, 21, 0.20);
}
.ht-header__chip::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ht-orange);
  box-shadow: 0 0 0 3px rgba(232, 90, 21, 0.25);
}

.ht-header__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ht-text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.ht-header__back:hover { color: var(--ht-orange); }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */

.ht-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 2rem 6rem;
}

/* ============================================================
   INTRO
   ============================================================ */

.ht-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.ht-eyebrow {
  display: inline-block;
  font-family: var(--ht-font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ht-orange);
  margin: 0 0 1.15rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(232, 90, 21, 0.25);
  border-radius: 999px;
  background: rgba(232, 90, 21, 0.06);
}

.ht-title {
  font-family: var(--ht-font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.2vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin: 0 0 1.3rem;
  color: var(--ht-charcoal);
}
.ht-title em {
  font-family: var(--ht-font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--ht-orange);
  margin-right: 0.08em;
  padding-right: 0.02em;
}

.ht-lede {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--ht-text-muted);
  margin: 0;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   HOUSE STAGE
   ============================================================ */

.ht-stage {
  position: relative;
}

.ht-house {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  background: var(--ht-cream-warm);
  box-shadow:
    0 50px 90px -30px rgba(26, 20, 17, 0.30),
    0 18px 36px -12px rgba(26, 20, 17, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  aspect-ratio: 1 / 1;
}

.ht-house__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

/* ============================================================
   HOTSPOTS
   ============================================================ */

.ht-hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  z-index: 5;
  font-family: var(--ht-font-body);
  -webkit-tap-highlight-color: transparent;
}

.ht-hotspot:focus-visible {
  outline: none;
}
.ht-hotspot:focus-visible .ht-hotspot__dot {
  box-shadow:
    0 8px 24px rgba(232, 90, 21, 0.5),
    inset 0 0 0 2px rgba(255, 255, 255, 0.25),
    0 0 0 4px rgba(232, 90, 21, 0.35);
}

.ht-hotspot__pulse {
  position: absolute;
  inset: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(232, 90, 21, 0.45);
  transform: translate(-50%, -50%);
  animation: ht-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

.ht-hotspot__pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(232, 90, 21, 0.30);
  animation: ht-pulse 2.4s ease-out infinite 1.2s;
}

.ht-hotspot__dot {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ht-orange);
  background-image: linear-gradient(135deg, #FF7332 0%, #E85A15 100%);
  color: white;
  font-family: var(--ht-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 10px 28px rgba(232, 90, 21, 0.50),
    inset 0 0 0 2px rgba(255, 255, 255, 0.28),
    inset 0 -8px 16px rgba(0, 0, 0, 0.10);
  transition:
    transform 0.3s var(--ht-ease-bounce),
    box-shadow 0.3s var(--ht-ease-out);
  z-index: 2;
}

.ht-hotspot__label {
  position: absolute;
  left: calc(48px + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  background: var(--ht-charcoal);
  color: var(--ht-cream);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-family: var(--ht-font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s var(--ht-ease-out),
    transform 0.3s var(--ht-ease-out);
  box-shadow: 0 8px 20px rgba(26, 20, 17, 0.30);
}
.ht-hotspot__label::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--ht-charcoal);
}

/* Hover state */
.ht-hotspot:hover .ht-hotspot__dot,
.ht-hotspot:focus-visible .ht-hotspot__dot {
  transform: scale(1.14);
  box-shadow:
    0 14px 36px rgba(232, 90, 21, 0.65),
    inset 0 0 0 2px rgba(255, 255, 255, 0.40),
    inset 0 -8px 16px rgba(0, 0, 0, 0.10);
}
.ht-hotspot:hover .ht-hotspot__label,
.ht-hotspot:focus-visible .ht-hotspot__label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Active (open) state */
.ht-hotspot.is-active .ht-hotspot__dot {
  background-image: linear-gradient(135deg, #3D2B1F 0%, #1A1411 100%);
  transform: scale(1.18);
  box-shadow:
    0 14px 36px rgba(26, 20, 17, 0.55),
    inset 0 0 0 2px rgba(255, 255, 255, 0.30);
}
.ht-hotspot.is-active .ht-hotspot__pulse,
.ht-hotspot.is-active .ht-hotspot__pulse::after {
  display: none;
}

/* When a hotspot is open elsewhere, dim the others slightly */
.ht-house.has-active .ht-hotspot:not(.is-active) {
  opacity: 0.55;
}
.ht-house.has-active .ht-hotspot:not(.is-active):hover {
  opacity: 1;
}

@keyframes ht-pulse {
  0%   { transform: translate(-50%, -50%) scale(0.6); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; }
}

/* Hint below the house */
.ht-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--ht-text-muted);
  margin: 1.75rem 0 0;
}
.ht-hint svg {
  color: var(--ht-orange);
  flex-shrink: 0;
}

/* ============================================================
   FOOTER CTA
   ============================================================ */

.ht-footer-cta {
  margin-top: 5rem;
  padding: 3.5rem 2.5rem;
  background: var(--ht-charcoal);
  color: var(--ht-cream);
  border-radius: 28px;
  text-align: center;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(232, 90, 21, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(232, 90, 21, 0.10) 0%, transparent 50%);
}

.ht-footer-cta__title {
  font-family: var(--ht-font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  line-height: 1.1;
}

.ht-footer-cta__desc {
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(250, 245, 238, 0.72);
  margin: 0 auto 2rem;
  max-width: 560px;
}

.ht-footer-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.ht-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-family: var(--ht-font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}

.ht-btn--primary {
  background: var(--ht-orange);
  color: white;
  box-shadow: 0 10px 24px rgba(232, 90, 21, 0.40);
}
.ht-btn--primary:hover {
  background: var(--ht-orange-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(232, 90, 21, 0.50);
}
.ht-btn--primary svg { transition: transform 0.2s; }
.ht-btn--primary:hover svg { transform: translateX(4px); }

.ht-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ht-cream);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.ht-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

/* ============================================================
   PANEL
   ============================================================ */

.ht-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(460px, 100%);
  height: 100vh;
  height: 100dvh;
  background: var(--ht-charcoal);
  color: var(--ht-cream);
  z-index: 60;
  transform: translateX(105%);
  transition: transform 0.55s var(--ht-ease-out);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-image:
    radial-gradient(ellipse at 80% 0%, rgba(232, 90, 21, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(232, 90, 21, 0.08) 0%, transparent 55%);
}

.ht-panel.is-open {
  transform: translateX(0);
  box-shadow: -40px 0 80px rgba(0, 0, 0, 0.45);
}

.ht-panel__inner {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ht-panel__handle {
  display: none; /* shown on mobile */
}

.ht-panel__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ht-cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  z-index: 5;
}
.ht-panel__close:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
  transform: rotate(90deg);
}

.ht-panel__content {
  padding: 5.5rem 2.5rem 2.5rem;
  overflow-y: auto;
  height: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.ht-panel__content::-webkit-scrollbar { width: 6px; }
.ht-panel__content::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
}

/* Card content */
.ht-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(232, 90, 21, 0.16);
  color: var(--ht-orange-soft);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-family: var(--ht-font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.3rem;
  border: 1px solid rgba(232, 90, 21, 0.25);
}
.ht-card__badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ht-orange-soft);
}

.ht-card__title {
  font-family: var(--ht-font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0 0 1.15rem;
  color: var(--ht-cream);
}

.ht-card__desc {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(250, 245, 238, 0.78);
  margin: 0 0 1.75rem;
}

.ht-card__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
  margin: 0 0 1.5rem;
}

.ht-card__features-label {
  font-family: var(--ht-font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ht-text-faint);
  margin: 0 0 0.85rem;
}

.ht-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ht-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(250, 245, 238, 0.88);
}
.ht-card__features li svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--ht-orange);
}

.ht-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--ht-orange);
  color: white;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-family: var(--ht-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 10px 24px rgba(232, 90, 21, 0.35);
}
.ht-card__cta:hover {
  background: #FF7332;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(232, 90, 21, 0.50);
}
.ht-card__cta svg { transition: transform 0.2s; }
.ht-card__cta:hover svg { transform: translateX(4px); }

.ht-card__services {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.ht-card__services-label {
  font-family: var(--ht-font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ht-text-faint);
  margin: 0 0 0.65rem;
}
.ht-card__service-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  color: rgba(250, 245, 238, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ht-card__service-link:last-of-type {
  border-bottom: none;
}
.ht-card__service-link:hover {
  color: var(--ht-orange-soft);
}
.ht-card__service-link svg {
  transition: transform 0.2s;
  color: var(--ht-orange);
}
.ht-card__service-link:hover svg {
  transform: translateX(4px);
}

/* ============================================================
   BACKDROP
   ============================================================ */

.ht-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 20, 17, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ht-ease-out);
}
.ht-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 720px) {
  .ht-header {
    padding: 0.9rem 1.1rem;
  }
  .ht-header__chip { display: none; }
  .ht-header__logo img { height: 26px; }
  .ht-header__back { font-size: 0.85rem; }

  .ht-main {
    padding: 2.2rem 1.1rem 4rem;
  }

  .ht-intro {
    margin-bottom: 2.2rem;
  }
  .ht-eyebrow { font-size: 0.7rem; padding: 0.32rem 0.7rem; }
  .ht-title { font-size: clamp(1.85rem, 7vw, 2.5rem); }
  .ht-lede { font-size: 1rem; }

  .ht-house {
    border-radius: 22px;
    box-shadow:
      0 24px 50px -16px rgba(26, 20, 17, 0.28),
      0 8px 20px -6px rgba(26, 20, 17, 0.12);
  }

  .ht-hotspot__pulse {
    width: 40px; height: 40px;
  }
  .ht-hotspot__dot {
    width: 40px; height: 40px;
    font-size: 1rem;
  }
  .ht-hotspot__label { display: none; }

  .ht-hint { font-size: 0.85rem; margin-top: 1.2rem; }

  /* Footer CTA */
  .ht-footer-cta {
    margin-top: 3.5rem;
    padding: 2.5rem 1.4rem;
    border-radius: 22px;
  }
  .ht-footer-cta__buttons { flex-direction: column; }
  .ht-btn { width: 100%; justify-content: center; }

  /* Panel becomes bottom sheet */
  .ht-panel {
    width: 100%;
    height: auto;
    max-height: 88vh;
    max-height: 88dvh;
    top: auto;
    bottom: 0;
    border-radius: 24px 24px 0 0;
    transform: translateY(105%);
  }
  .ht-panel.is-open {
    transform: translateY(0);
    box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.45);
  }
  .ht-panel__handle {
    display: block;
    position: absolute;
    top: 0.6rem;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    z-index: 4;
  }
  .ht-panel__close {
    top: 1.1rem;
    right: 1.1rem;
    width: 36px; height: 36px;
  }
  .ht-panel__content {
    padding: 3rem 1.4rem 2rem;
  }
  .ht-card__title { font-size: 1.75rem; }
  .ht-card__features li { font-size: 0.92rem; }
}

@media (max-width: 380px) {
  .ht-hotspot__dot {
    width: 34px; height: 34px;
    font-size: 0.9rem;
  }
  .ht-hotspot__pulse {
    width: 34px; height: 34px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.1s !important;
  }
  .ht-hotspot__pulse, .ht-hotspot__pulse::after {
    animation: none;
    opacity: 0.3;
  }
}

/* ============================================================
   WALKTHROUGH — cinematic scrollytelling
   ============================================================ */

.ht-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  font-family: var(--ht-font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ht-text-muted);
  opacity: 0.85;
}
.ht-scroll-cue svg {
  animation: ht-scroll-bounce 2.4s var(--ht-ease-out) infinite;
  color: var(--ht-orange);
}
@keyframes ht-scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* Layout: sticky stage on the left, scrolling steps on the right */
.ht-walk {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  max-width: 1320px;
  margin: 4rem auto 0;
  padding: 0 1.5rem;
  align-items: start;
}

.ht-walk__stage {
  position: sticky;
  top: 88px;             /* sit below sticky header */
  height: calc(100vh - 88px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.ht-walk__camera {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  overflow: hidden;
  background: var(--ht-cream-warm);
  box-shadow:
    0 50px 90px -30px rgba(26, 20, 17, 0.32),
    0 18px 36px -12px rgba(26, 20, 17, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);

  /* Camera position controlled via custom properties — JS updates these */
  --cam-x: 50%;
  --cam-y: 50%;
  --cam-zoom: 1;
  transform-origin: var(--cam-x) var(--cam-y);
}

.ht-walk__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: var(--cam-x) var(--cam-y);
  transform: scale(var(--cam-zoom));
  transition: transform 1.1s var(--ht-ease-out);
  will-change: transform;
}

/* Camera vignette to focus attention on active room */
.ht-walk__camera::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--cam-x) var(--cam-y),
      transparent 0%,
      transparent 22%,
      rgba(26, 20, 17, 0.18) 60%,
      rgba(26, 20, 17, 0.32) 100%);
  opacity: var(--vignette-opacity, 0);
  transition: opacity 0.9s var(--ht-ease-out);
  border-radius: inherit;
}

.ht-walk__camera.is-zoomed::after { --vignette-opacity: 1; }

/* Hotspots stay positioned in image coordinate space */
.ht-walk__camera .ht-hotspot {
  position: absolute;
  top: var(--y);
  left: var(--x);
  transform: translate(-50%, -50%) scale(calc(1 / var(--cam-zoom, 1)));
  transform-origin: center;
  transition: transform 1.1s var(--ht-ease-out), opacity 0.4s var(--ht-ease-out);
  z-index: 4;
}

/* In walkthrough mode, hide non-active hotspots until their step is reached */
.ht-walk__camera .ht-hotspot {
  opacity: 0.35;
  pointer-events: none;
}
.ht-walk__camera .ht-hotspot.is-active {
  opacity: 1;
  pointer-events: auto;
}
.ht-walk__camera .ht-hotspot__label { display: none; }

/* Progress rail (vertical on desktop, horizontal on mobile) */
.ht-walk__progress {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  z-index: 5;
}
.ht-walk__progress-bar {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--ht-orange) 0%, var(--ht-orange) var(--progress, 0%), rgba(26,20,17,0.15) var(--progress, 0%), rgba(26,20,17,0.15) 100%);
  border-radius: 2px;
}
.ht-walk__progress-dots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.ht-walk__progress-dots li {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ht-cream);
  border: 2px solid rgba(26, 20, 17, 0.2);
  transition: all 0.4s var(--ht-ease-out);
  cursor: default;
}
.ht-walk__progress-dots li.is-active {
  background: var(--ht-orange);
  border-color: var(--ht-orange);
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(232, 90, 21, 0.18);
}
.ht-walk__progress-dots li.is-done {
  background: var(--ht-orange);
  border-color: var(--ht-orange);
}
.ht-walk__progress-dots li span {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--ht-font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ht-text-muted);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
}
.ht-walk__progress-dots li.is-active span { opacity: 1; color: var(--ht-orange); }

/* Scrolling steps */
.ht-walk__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ht-step {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.ht-step__panel {
  background: var(--ht-cream-soft);
  border: 1px solid var(--ht-border);
  border-radius: 28px;
  padding: 2.5rem 2.25rem;
  box-shadow:
    0 30px 60px -25px rgba(26, 20, 17, 0.20),
    0 10px 24px -8px rgba(26, 20, 17, 0.08);
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s var(--ht-ease-out), transform 0.7s var(--ht-ease-out);
}

.ht-step.is-active .ht-step__panel {
  opacity: 1;
  transform: translateY(0);
}

.ht-step__num {
  display: inline-block;
  font-family: var(--ht-font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ht-orange);
  padding: 0.5rem 0.85rem;
  background: rgba(232, 90, 21, 0.10);
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.ht-step__title {
  font-family: var(--ht-font-display);
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
  color: var(--ht-charcoal);
}

.ht-step__copy {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ht-text-muted);
  margin: 0 0 1.5rem;
  max-width: 44ch;
}

.ht-step__features {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ht-step__features li {
  position: relative;
  padding-left: 1.65rem;
  font-size: 0.96rem;
  color: var(--ht-charcoal);
  font-weight: 500;
}
.ht-step__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ht-orange);
  box-shadow: 0 0 0 4px rgba(232, 90, 21, 0.15);
}

.ht-step__meta {
  margin: 0 0 1.5rem;
}
.ht-step__licence {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ht-text-muted);
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--ht-border);
  border-radius: 6px;
  background: var(--ht-cream);
}
.ht-step__licence::before {
  content: '🛡';
  font-size: 0.85rem;
}

.ht-step__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ============================================================
   RESPONSIVE: stack on tablet/mobile
   ============================================================ */

@media (max-width: 900px) {
  .ht-walk {
    grid-template-columns: 1fr;
    margin-top: 2rem;
    padding: 0 1rem;
  }
  .ht-walk__stage {
    position: sticky;
    top: 64px;
    height: 60vh;
    padding: 1rem 0;
    z-index: 5;
    background: linear-gradient(180deg, var(--ht-cream) 70%, rgba(250,245,238,0) 100%);
  }
  .ht-walk__camera {
    max-width: 460px;
    aspect-ratio: 1 / 1;
    border-radius: 22px;
  }
  .ht-walk__progress {
    right: 0.5rem;
  }
  .ht-walk__progress-dots {
    gap: 1rem;
  }
  .ht-walk__progress-dots li span { display: none; }
  .ht-step {
    min-height: auto;
    padding: 2rem 0;
  }
  .ht-step__panel {
    padding: 2rem 1.5rem;
    border-radius: 22px;
  }
  .ht-step__copy { font-size: 1rem; }
  .ht-step__title { font-size: 1.55rem; }
}

@media (max-width: 540px) {
  .ht-walk__stage {
    height: 50vh;
  }
  .ht-walk__camera { max-width: 360px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ht-walk__image,
  .ht-walk__camera .ht-hotspot,
  .ht-step__panel,
  .ht-walk__camera::after {
    transition: none !important;
  }
}

/* Ghost button variant for light-background step CTAs */
.ht-step__cta .ht-btn--ghost {
  background: transparent;
  color: var(--ht-charcoal);
  border: 1px solid var(--ht-border-strong);
}
.ht-step__cta .ht-btn--ghost:hover {
  background: rgba(26, 20, 17, 0.06);
  border-color: var(--ht-charcoal);
}

/* ============================================================
   DARK THEME — Cross-section interactive house
   ============================================================ */

.ht-dark {
  background: radial-gradient(ellipse at 50% 30%, #1c1814 0%, #0e0a08 70%, #050403 100%);
  color: var(--ht-cream);
  min-height: 100vh;
}

.ht-header--dark {
  background: rgba(14, 10, 8, 0.65);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ht-header--dark .ht-header__logo img {
  filter: invert(1) brightness(1.2);
}
.ht-header--dark .ht-header__chip {
  background: rgba(232, 90, 21, 0.15);
  color: var(--ht-orange-soft);
  border: 1px solid rgba(232, 90, 21, 0.30);
}
.ht-header--dark .ht-header__back {
  color: var(--ht-cream);
  opacity: 0.75;
}
.ht-header--dark .ht-header__back:hover {
  color: var(--ht-orange-soft);
  opacity: 1;
}

.ht-main--dark {
  padding-bottom: 4rem;
}

/* Hero */
.ht-hero {
  max-width: 1480px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
}

.ht-hero__copy {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.ht-eyebrow--dark {
  color: var(--ht-orange-soft);
  background: rgba(232, 90, 21, 0.10);
  border: 1px solid rgba(232, 90, 21, 0.25);
}

.ht-title--dark {
  color: var(--ht-cream);
}
.ht-title--dark em {
  color: var(--ht-orange-soft);
  font-style: normal;
}

.ht-lede--dark {
  color: rgba(250, 245, 238, 0.72);
}

/* Big interactive stage */
.ht-stage--dark {
  position: relative;
  padding: 0;
}

.ht-house--bleed {
  position: relative;
  max-width: 1480px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: visible;        /* so tooltips can escape the frame */
  background: transparent;
  box-shadow: none;
  aspect-ratio: 1456 / 819;  /* match the cross-section image natively */
  height: auto;
}

.ht-house--bleed .ht-house__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow:
    0 60px 120px -40px rgba(0, 0, 0, 0.7),
    0 30px 60px -20px rgba(232, 90, 21, 0.08);
}

.ht-hint--dark {
  margin: 1.5rem auto 0;
  color: rgba(250, 245, 238, 0.50);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ============================================================
   SONAR-PULSE HOTSPOTS — for dark theme
   ============================================================ */

.ht-dark .ht-hotspot {
  position: absolute;
  top: var(--y);
  left: var(--x);
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  z-index: 4;
  /* Override anything from light theme */
}

.ht-dark .ht-hotspot__dot {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ff8a4a 0%, var(--ht-orange) 55%, var(--ht-orange-deep) 100%);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25) inset,
    0 0 24px rgba(232, 90, 21, 0.55),
    0 6px 18px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s var(--ht-ease-bounce), box-shadow 0.3s var(--ht-ease-out);
  /* Reset old number styling */
  font-size: 0;
  font-weight: 0;
}

.ht-dark .ht-hotspot__dot svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  stroke-width: 2;
}

/* Sonar rings — three concentric circles pulsing outward */
.ht-dark .ht-hotspot__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--ht-orange);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  animation: ht-sonar 3s var(--ht-ease-out) infinite;
}

.ht-dark .ht-hotspot__ring--1 { animation-delay: 0s; }
.ht-dark .ht-hotspot__ring--2 { animation-delay: 1s; }
.ht-dark .ht-hotspot__ring--3 { animation-delay: 2s; }

@keyframes ht-sonar {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0.9;
    border-width: 2.5px;
  }
  60% {
    opacity: 0.45;
  }
  100% {
    transform: translate(-50%, -50%) scale(3.2);
    opacity: 0;
    border-width: 0.5px;
  }
}

/* Tooltip — appears on hover/focus */
.ht-dark .ht-tooltip {
  position: absolute;
  bottom: calc(100% + 18px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 240px;
  max-width: 280px;
  background: linear-gradient(180deg, rgba(28, 24, 20, 0.98) 0%, rgba(14, 10, 8, 0.98) 100%);
  border: 1px solid rgba(232, 90, 21, 0.40);
  border-radius: 14px;
  padding: 0.95rem 1.1rem 1.05rem;
  box-shadow:
    0 24px 48px -12px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 0 32px rgba(232, 90, 21, 0.15);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s var(--ht-ease-out),
    transform 0.35s var(--ht-ease-out);
  z-index: 10;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ht-dark .ht-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: rgba(28, 24, 20, 0.98);
  filter: drop-shadow(0 1px 0 rgba(232, 90, 21, 0.30));
}

.ht-dark .ht-tooltip__num {
  font-family: var(--ht-font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ht-orange-soft);
}

.ht-dark .ht-tooltip__name {
  font-family: var(--ht-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ht-cream);
  letter-spacing: -0.01em;
}

.ht-dark .ht-tooltip__desc {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(250, 245, 238, 0.72);
  line-height: 1.45;
}

/* Hover / focus state */
.ht-dark .ht-hotspot:hover .ht-hotspot__dot,
.ht-dark .ht-hotspot:focus-visible .ht-hotspot__dot {
  transform: scale(1.18);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.40) inset,
    0 0 36px rgba(232, 90, 21, 0.85),
    0 8px 24px rgba(0, 0, 0, 0.6);
}

.ht-dark .ht-hotspot:hover .ht-tooltip,
.ht-dark .ht-hotspot:focus-visible .ht-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

/* Left-anchored tooltip variant (for hotspots near the right edge of the image) */
.ht-dark .ht-tooltip--left {
  left: auto;
  right: 50%;
  transform: translate(50%, 8px);
}
.ht-dark .ht-hotspot:hover .ht-tooltip--left,
.ht-dark .ht-hotspot:focus-visible .ht-tooltip--left {
  transform: translate(50%, 0);
}

/* Pause the sonar rings on hover (so they don't distract from the tooltip) */
.ht-dark .ht-hotspot:hover .ht-hotspot__ring {
  animation-play-state: paused;
  opacity: 0;
}

.ht-dark .ht-hotspot:focus-visible {
  outline: none;
}
.ht-dark .ht-hotspot:focus-visible .ht-hotspot__dot {
  box-shadow:
    0 0 0 2px var(--ht-cream),
    0 0 0 4px var(--ht-orange),
    0 0 36px rgba(232, 90, 21, 0.85);
}

/* Active state — when the panel is open for this room */
.ht-dark .ht-hotspot.is-active .ht-hotspot__dot {
  background: var(--ht-cream);
  color: var(--ht-orange);
  transform: scale(1.18);
}
.ht-dark .ht-hotspot.is-active .ht-hotspot__dot svg {
  stroke: var(--ht-orange);
}
.ht-dark .ht-house.has-active .ht-hotspot:not(.is-active) {
  opacity: 0.5;
}
.ht-dark .ht-house.has-active .ht-hotspot:not(.is-active):hover {
  opacity: 1;
}

/* Hide any legacy hotspot label that might still render */
.ht-dark .ht-hotspot__label,
.ht-dark .ht-hotspot__pulse { display: none; }

/* Dark footer CTA */
.ht-footer-cta--dark {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  max-width: 920px;
  margin: 4rem auto 2rem;
  padding: 3rem 2.5rem;
  text-align: center;
}
.ht-footer-cta--dark .ht-footer-cta__title {
  color: var(--ht-cream);
}
.ht-footer-cta--dark .ht-footer-cta__desc {
  color: rgba(250, 245, 238, 0.65);
}

.ht-btn--ghost-dark {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ht-cream);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.ht-btn--ghost-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
}

/* ============================================================
   RESPONSIVE — Dark cross-section
   ============================================================ */

@media (max-width: 720px) {
  .ht-hero { padding: 2rem 1rem 1.5rem; }
  .ht-hero__copy { margin-bottom: 1.5rem; }
  .ht-title--dark { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .ht-lede--dark { font-size: 1rem; }

  .ht-dark .ht-hotspot,
  .ht-dark .ht-hotspot__dot,
  .ht-dark .ht-hotspot__ring {
    width: 44px;
    height: 44px;
  }
  .ht-dark .ht-hotspot__dot svg { width: 18px; height: 18px; }

  .ht-dark .ht-tooltip {
    min-width: 200px;
    max-width: 220px;
    padding: 0.75rem 0.9rem 0.85rem;
    font-size: 0.85rem;
  }
  .ht-dark .ht-tooltip__name { font-size: 0.95rem; }
  .ht-dark .ht-tooltip__desc { font-size: 0.76rem; }

  .ht-footer-cta--dark { margin: 2rem 1rem; padding: 2rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ht-dark .ht-hotspot__ring { animation: none !important; opacity: 0 !important; }
}

/* ============================================================
   STEP INSIDE TEASER (embedded on home page)
   ============================================================ */
.step-inside-teaser {
  position: relative;
  padding: 6rem 0;
  background: radial-gradient(
    ellipse at 50% 30%,
    #1c1814 0%,
    #0e0a08 70%,
    #050403 100%
  );
  overflow: hidden;
}

.step-inside-teaser__inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.step-inside-teaser .ht-hero__copy {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.step-inside-teaser__cta {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

/* Slight separator glow at top + bottom edges */
.step-inside-teaser::before,
.step-inside-teaser::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(232, 90, 21, 0.25) 50%,
    transparent 100%
  );
}
.step-inside-teaser::before { top: 0; }
.step-inside-teaser::after  { bottom: 0; }

@media (max-width: 640px) {
  .step-inside-teaser {
    padding: 4rem 0;
  }
}
