.portrait-scene {
  position: absolute !important;
  inset: 0;
  z-index: 0 !important;
  overflow: hidden;
  pointer-events: none;
  background: #17242a;
}
.portrait-scene img,
.portrait-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% top;
}
.portrait-body,
.portrait-canvas {
  opacity: 0;
}
.portrait-scene.ready .portrait-body,
.portrait-scene.ready .portrait-canvas {
  opacity: 1;
}
.portrait-scene.ready .portrait-fallback {
  opacity: 0;
}
.portrait-fallback {
  transition: opacity 0.2s;
}
.portrait-owner.hero {
  isolation: isolate;
  overflow: hidden;
}
.portrait-owner.hero:after {
  background: linear-gradient(90deg, #101e25c9 0%, #101e2555 48%, transparent 72%);
  z-index: 0;
}
.portrait-owner .hero-content {
  max-width: 650px;
  min-height: 420px;
}
.portrait-owner h1 {
  font-size: clamp(44px, 5.1vw, 74px);
}
.portrait-owner .scene-title[hidden],
.portrait-owner [data-scene-copy][hidden] {
  display: none;
}
.portrait-owner .hero-description {
  min-height: 78px;
  max-width: 500px;
}
.scene-switcher {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0 0;
  position: relative;
  z-index: 2;
}
.scene-switcher button {
  font: inherit;
  font-size: 13px;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid #ffffff66;
  color: white;
  background: #17242a99;
  border-radius: 50px;
  cursor: pointer;
}
.scene-switcher button[aria-pressed="true"] {
  background: var(--lime, #d3f36a);
  border-color: var(--lime, #d3f36a);
  color: #17242a;
}
.scene-hint {
  font-size: 12px;
  color: #d4dbdd;
  margin-top: 12px;
}
.scene-offer {
  display: block;
  margin-top: 8px;
  font-weight: 650;
  font-size: 15px;
  color: #d3f36a;
}
.portrait-owner[data-scene="house"] .portrait-body {
  filter: sepia(0.13) saturate(0.8);
}
.portrait-owner[data-scene="light"] .portrait-body {
  filter: sepia(0.24) saturate(1.2);
}
.studio-portrait {
  position: relative;
  isolation: isolate;
  background: #17242a !important;
  min-height: 620px;
  overflow: hidden;
  border-radius: var(--radius);
}
.studio-portrait .portrait-scene {
  border-radius: inherit;
}
.studio-portrait .hero-copy {
  grid-column: 1/-1;
  position: relative;
  z-index: 1;
  color: white;
  max-width: 58%;
  background: linear-gradient(90deg, #17242aee, transparent);
  padding: 44px;
}
.studio-portrait h1 {
  font-size: clamp(34px, 4vw, 60px);
}
.studio-portrait .notice {
  color: #c6d1d0;
}
.studio-portrait .hero-copy > p:not(.scene-hint) {
  min-height: 76px;
}
.studio-portrait .scene-switcher button {
  font-size: 12px;
}
.studio-portrait .scene-hint {
  font-size: 12px;
}
.portrait-owner[data-transition="true"] .hero-description {
  animation: portrait-copy 0.25s ease-out;
}
@keyframes portrait-copy {
  from {
    opacity: 0.5;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 800px) {
  .portrait-owner .hero-content {
    padding-top: 270px;
    min-height: 0;
  }
  .portrait-owner .portrait-scene {
    height: 600px;
  }
  .portrait-owner.hero:after {
    background: linear-gradient(0deg, #17242a 0%, #17242ae6 32%, transparent 75%);
  }
  .portrait-owner .portrait-scene img {
    object-position: 73% top;
  }
  .portrait-owner h1 {
    font-size: 43px;
    max-width: 440px;
  }
  .portrait-owner .hero-pills {
    display: none;
  }
  .portrait-owner .hero-description {
    min-height: 120px;
  }
  .portrait-owner .hero-cards {
    margin-top: 24px;
  }
  .scene-hint {
    max-width: 270px;
  }
  .studio-portrait {
    min-height: 760px;
  }
  .studio-portrait .portrait-scene {
    height: 500px;
  }
  .studio-portrait .hero-copy {
    grid-column: 1/-1;
    max-width: 100%;
    padding: 280px 24px 28px;
    background: linear-gradient(0deg, #17242a 0%, #17242af0 52%, transparent 85%);
  }
  .studio-portrait h1 {
    font-size: 36px;
  }
  .studio-portrait .hero-copy > p {
    min-height: 100px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .portrait-canvas {
    display: none !important;
  }
  .portrait-body {
    display: none !important;
  }
  .portrait-scene.ready .portrait-fallback {
    opacity: 1;
  }
  .portrait-owner * {
    animation: none !important;
    transition: none !important;
  }
}

.hero.portrait-owner h1 {
  font-size: clamp(42px, 4.3vw, 62px);
}
.hero.portrait-owner .portrait-scene {
  top: 180px;
}
.hero.portrait-owner header {
  background: #17242a;
}
@media (max-width: 800px) {
  .hero.portrait-owner .portrait-scene {
    top: 86px;
    height: 400px;
  }
  .hero.portrait-owner .hero-content {
    padding-top: 420px;
  }
  .hero.portrait-owner h1 {
    font-size: 40px;
  }
  .hero.portrait-owner .hero-description {
    min-height: 110px;
  }
  .hero.portrait-owner .actions {
    flex-wrap: wrap;
  }
}
.hero.studio-portrait .portrait-scene {
  top: 0;
}
.hero.studio-portrait .hero-copy {
  background: linear-gradient(90deg, #17242aee, transparent);
}

.portrait-scene.ready .portrait-next {
  opacity: 0;
  transition: opacity 0.75s ease-in-out;
}
.portrait-body {
  transition: filter 0.75s ease-in-out;
}
[data-scene-copy] {
  transition:
    opacity 0.12s ease,
    transform 0.18s ease;
}
[data-switching="true"] [data-scene-copy] {
  opacity: 0;
  transform: translateY(4px);
}
@media (prefers-reduced-motion: reduce) {
  .portrait-scene.ready .portrait-next {
    transition: none;
  }
  [data-switching="true"] [data-scene-copy] {
    opacity: 1;
    transform: none;
  }
}
.portrait-angle {
  opacity: 0;
  transition: opacity 0.75s ease-in-out;
}
.portrait-scene.ready .portrait-angle {
  opacity: 0 !important;
}
@media (prefers-reduced-motion: reduce) {
  .portrait-angle {
    transition: none;
  }
}

/* Exactly one complete photograph: never blend or warp the face. */
.portrait-scene[data-mode="photographic"] .portrait-fallback {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}
.portrait-scene[data-mode="photographic"] img:not(.portrait-fallback),
.portrait-scene[data-mode="photographic"] canvas {
  display: none !important;
}
