/* ============================================================
   ECHOHAUS · interactive house — appended styles
   ============================================================ */

.eh-house {
  width: 100%;
  height: auto;
  display: block;
}
.eh-house-section {
  position: relative;
  background: var(--eh-black);
  padding: clamp(72px, 9vw, 140px) var(--eh-shell-x) clamp(72px, 9vw, 140px);
  overflow: hidden;
}
.eh-house-section::before {
  /* warm ambient pool behind the house */
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 60%, rgba(232,154,69,0.10), transparent 65%),
    radial-gradient(ellipse 90% 40% at 50% 110%, rgba(232,154,69,0.16), transparent 60%);
  pointer-events: none;
}
.eh-house-section__inner {
  position: relative; z-index: 1;
  max-width: 1640px; margin: 0 auto;
}
.eh-house-section__head {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 18px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.eh-house-section__head .eh-display { max-width: 900px; }
.eh-house-section__head p { color: rgba(244,237,225,0.62); max-width: 720px; }

.eh-house-wrap {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: stretch;
}
@media (max-width: 980px) {
  .eh-house-wrap { grid-template-columns: 1fr; }
}

[data-eh-house] {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: stretch;
}
@media (max-width: 980px) {
  [data-eh-house] { grid-template-columns: 1fr; }
}

.eh-house__stage {
  background: linear-gradient(180deg, #07070a 0%, #050505 60%, #07060a 100%);
  border: 1px solid var(--eh-line-2);
  border-radius: 4px;
  padding: clamp(20px, 2.5vw, 36px);
  position: relative;
  min-height: 460px;
  overflow: hidden;
}
.eh-house__stage::before {
  /* subtle architectural grid backdrop */
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(244,237,225,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,237,225,0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Zone interactivity */
.eh-zone { cursor: pointer; outline: none; }
.eh-zone__plate { transition: fill 0.3s, stroke 0.3s; }
.eh-zone__pin { transition: transform 0.3s, opacity 0.3s; transform-origin: center; transform-box: fill-box; }
.eh-zone__pin-dot { transition: r 0.3s; transform-origin: center; transform-box: fill-box; }

.eh-zone:hover .eh-zone__plate { fill: #1c1410; stroke: rgba(232,154,69,0.55); }
.eh-zone:hover .eh-zone__pin { transform: scale(1.5); opacity: 0.6; }
.eh-zone:hover .eh-zone__pin-dot { fill: var(--eh-amber-hi); }
.eh-zone:focus-visible .eh-zone__plate { stroke: rgba(232,154,69,0.85); stroke-width: 2; }

.eh-zone.active .eh-zone__plate { fill: #2a1810; stroke: var(--eh-amber); stroke-width: 2; }
.eh-zone.active .eh-zone__pin { transform: scale(1.8); opacity: 0.45; }
.eh-zone.active .eh-zone__pin-dot {
  fill: var(--eh-amber-hi);
  filter: drop-shadow(0 0 6px rgba(232,154,69,0.8));
}

/* Pulsing pin animation */
@keyframes ehPinPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.6); opacity: 0.3; }
}
.eh-zone__pin { animation: ehPinPulse 2.6s ease-in-out infinite; }

/* Side panel */
.eh-house-panel {
  background: linear-gradient(180deg, #0a0a0c 0%, #050505 100%);
  border: 1px solid var(--eh-line-2);
  border-radius: 4px;
  padding: 0;
  min-height: 460px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.eh-house-panel::before {
  /* amber accent at top-left */
  content: ''; position: absolute; top: 0; left: 0; width: 80px; height: 4px;
  background: var(--eh-amber);
}
.eh-house-panel:empty::after {
  content: 'Tap a zone to begin';
  font-family: var(--eh-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(244,237,225,0.4);
}
.eh-house-panel__inner {
  padding: clamp(28px, 3vw, 48px);
  display: flex; flex-direction: column;
  gap: 16px;
  width: 100%; height: 100%;
  position: relative;
  animation: ehPanelIn 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes ehPanelIn {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}
.eh-house-panel__close {
  position: absolute; top: 18px; right: 18px;
  width: 32px; height: 32px;
  background: transparent;
  border: 1px solid rgba(244,237,225,0.2);
  color: rgba(244,237,225,0.7);
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: border-color 0.2s, color 0.2s;
}
.eh-house-panel__close:hover { border-color: var(--eh-amber); color: var(--eh-amber); }
.eh-house-panel__eyebrow {
  font-family: var(--eh-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--eh-amber);
  display: flex; align-items: center; gap: 8px;
}
.eh-house-panel__eyebrow span { color: rgba(244,237,225,0.4); }
.eh-house-panel__title {
  font-family: var(--eh-display);
  font-weight: 200;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  color: var(--eh-ivory);
}
.eh-house-panel__service {
  font-family: var(--eh-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--eh-gold);
}
.eh-house-panel__body {
  font-family: var(--eh-text);
  font-size: 15px;
  line-height: 1.7;
  color: rgba(244,237,225,0.72);
  margin: 0;
}
.eh-house-panel__list {
  list-style: none;
  padding: 0; margin: 6px 0 0 0;
  display: flex; flex-direction: column; gap: 6px;
  border-top: 1px solid var(--eh-line);
  padding-top: 18px;
}
.eh-house-panel__list li {
  font-family: var(--eh-text);
  font-size: 13px;
  color: rgba(244,237,225,0.8);
  padding-left: 18px;
  position: relative;
}
.eh-house-panel__list li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 8px; height: 1px; background: var(--eh-amber);
}
.eh-house-panel__cta {
  margin-top: auto;
  font-family: var(--eh-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--eh-amber);
  padding-top: 18px;
  border-top: 1px solid var(--eh-line);
  display: inline-block;
}
.eh-house-panel__cta:hover { color: var(--eh-amber-hi); }

/* House legend / zone index list */
.eh-house-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: clamp(28px, 3vw, 48px);
  padding-top: clamp(20px, 2.5vw, 32px);
  border-top: 1px solid var(--eh-line);
}
.eh-house-legend__item {
  font-family: var(--eh-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,237,225,0.6);
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  padding: 8px 4px;
  transition: color 0.2s;
}
.eh-house-legend__item::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--eh-amber); opacity: 0.6;
}
.eh-house-legend__item:hover { color: var(--eh-amber); }
.eh-house-legend__item:hover::before { opacity: 1; box-shadow: 0 0 8px var(--eh-amber); }

/* ============================================================
   CARD GRID — services teaser, work tiles, etc.
   ============================================================ */
.eh-service-card {
  background: #0a0a0c;
  border: 1px solid var(--eh-line);
  padding: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column;
  gap: 14px;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.eh-service-card::after {
  /* amber accent line bottom-left */
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px;
  background: var(--eh-amber);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.eh-service-card:hover { border-color: rgba(232,154,69,0.5); transform: translateY(-3px); }
.eh-service-card:hover::after { width: 100%; }
.eh-service-card__num {
  font-family: var(--eh-italic);
  font-style: italic;
  font-size: 28px;
  color: var(--eh-amber);
  line-height: 1;
}
.eh-service-card__title {
  font-family: var(--eh-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.005em;
  margin: 0;
}
.eh-service-card__body {
  font-family: var(--eh-text);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244,237,225,0.65);
  margin: 0;
}

/* Relationship / philosophy section */
.eh-philosophy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 880px) { .eh-philosophy { grid-template-columns: 1fr; } }
.eh-philosophy__scene {
  aspect-ratio: 4/5;
  background: linear-gradient(180deg, #1a1410 0%, #0a0807 60%, #050505 100%);
  position: relative;
  overflow: hidden;
}
