/* Hero – rounded photo card starting cleanly below the sticky white header */
.pv-section.pv-hero { padding: 14px var(--pv-frame) 0; background: #fff; }
.pv-hero__card {
	position: relative;
	min-height: max(600px, calc(100svh - var(--pv-nav-offset, 68px) - var(--pv-frame) - 14px));
	border-radius: var(--pv-frame-radius);
	overflow: hidden;
	background: #1b1d20;
	color: #fff;
	display: flex;
	isolation: isolate;
}

/* ---------- Photos ---------- */
.pv-hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.pv-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.pv-hero__slide.is-active { opacity: 1; z-index: 1; }
.pv-hero__slide.is-leaving { opacity: 1; z-index: 0; }
.pv-hero__photo { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 50%; }
.pv-hero--zoom .pv-hero__slide .pv-hero__photo { transform: scale(1.1); }
.pv-hero--zoom.is-ready .pv-hero__slide.is-active .pv-hero__photo,
.pv-hero--zoom.is-ready .pv-hero__slide.is-leaving .pv-hero__photo { transform: scale(1); transition: transform calc(var(--pv-interval, 7s) + 2.5s) linear; }
.pv-hero__media::after {
	content: "";
	position: absolute; inset: 0; z-index: 2;
	background:
		linear-gradient(180deg, rgba(10, 12, 16, calc(var(--shade) * .75)) 0%, rgba(10, 12, 16, calc(var(--shade) * .35)) 38%, rgba(8, 8, 8, calc(var(--shade) * .9)) 78%, rgba(5, 5, 5, calc(var(--shade) * 1.45)) 100%),
		linear-gradient(90deg, rgba(0, 0, 0, calc(var(--shade) * .5)) 0%, rgba(0, 0, 0, 0) 62%);
}
.pv-focus-top { object-position: center top; }
.pv-focus-bottom { object-position: center bottom; }
.pv-focus-left { object-position: left center; }
.pv-focus-right { object-position: right center; }

/* ---------- Text ---------- */
.pv-hero .pv-hero__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	padding-top: 34px;
	padding-bottom: 62px;
}
.pv-hero__texts { display: grid; }
.pv-hero__copy { grid-area: 1 / 1; display: flex; flex-direction: column; visibility: hidden; }
.pv-hero__copy.is-active, .pv-hero__copy.is-leaving { visibility: visible; }
.pv-hero__eyebrow {
	margin: 0 0 16px;
	font-size: 18px;
	font-style: italic;
	font-weight: 400;
	color: rgba(255, 255, 255, .92);
}
.pv-hero__title {
	margin: 0;
	font-family: var(--pv-font-head);
	font-weight: 400;
	font-size: clamp(46px, 6.25vw, 90px);
	line-height: 1.12;
	text-transform: uppercase;
	color: #fff;
	letter-spacing: 0;
}
.pv-hero__line { display: block; overflow: hidden; padding-bottom: .02em; }
.pv-hero__line > span, .pv-hero__eyebrow > span, .pv-hero__text > span { display: block; }
.pv-hero__text {
	align-self: flex-end;
	max-width: 560px;
	margin: 26px 0 0;
	font-size: 18px;
	line-height: 1.35;
	font-style: italic;
	font-weight: 400;
	color: rgba(255, 255, 255, .92);
}

/* Slide text: lines rise in from below; the old slide's lines leave upwards */
.js .pv-hero .pv-hero__line > span { transform: translateY(108%); }
.js .pv-hero .pv-hero__eyebrow > span, .js .pv-hero .pv-hero__text > span { opacity: 0; transform: translateY(14px); }
.js .pv-hero.is-ready .pv-hero__copy.is-active .pv-hero__line > span {
	transform: none;
	transition: transform 1s var(--pv-ease) calc(var(--d) * 110ms + var(--pv-base, 250ms));
}
.js .pv-hero.is-ready .pv-hero__copy.is-active .pv-hero__eyebrow > span,
.js .pv-hero.is-ready .pv-hero__copy.is-active .pv-hero__text > span {
	opacity: 1; transform: none;
	transition: opacity .9s var(--pv-ease) calc(var(--d) * 110ms + var(--pv-base, 250ms)), transform .9s var(--pv-ease) calc(var(--d) * 110ms + var(--pv-base, 250ms));
}
.js .pv-hero .pv-hero__copy.is-leaving .pv-hero__line > span { transform: translateY(-108%); transition: transform .65s cubic-bezier(.55, 0, .7, .3) calc(var(--d) * 50ms); }
.js .pv-hero .pv-hero__copy.is-leaving .pv-hero__eyebrow > span,
.js .pv-hero .pv-hero__copy.is-leaving .pv-hero__text > span { opacity: 0; transform: translateY(-10px); transition: opacity .45s ease, transform .45s ease; }

/* ---------- Bottom: agent line and search ---------- */
.pv-hero__bottom { margin-top: auto; padding-top: 24px; }
.js .pv-hero .pv-hero__in { opacity: 0; transform: translateY(18px); }
.js .pv-hero.is-ready .pv-hero__in { opacity: 1; transform: none; transition: opacity .9s var(--pv-ease) .7s, transform .9s var(--pv-ease) .7s; }
.pv-hero__agent {
	margin: 0 0 18px;
	font-family: var(--pv-font-head);
	font-size: 26px;
	line-height: 1;
	text-transform: uppercase;
	color: #fff;
}
.pv-hero__agent a { transition: color .25s; }
.pv-hero__agent a:hover { color: var(--pv-accent); }
.pv-hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }

/* ---------- Smaller screens ---------- */
@media (max-width: 1200px) {
	.pv-hero__row { flex-direction: column; align-items: stretch; gap: 18px; }
}
@media (max-width: 900px) {
	.pv-hero .pv-hero__inner { padding-top: 48px; padding-bottom: 28px; }
	.pv-hero__text { align-self: flex-start; }
}
@media (max-width: 782px) {
	.pv-hero__card { min-height: calc(100svh - var(--pv-nav-offset, 62px) - var(--pv-frame) * 2); }
	.pv-hero .pv-hero__inner { padding-top: 28px; padding-bottom: 20px; }
	.pv-hero__eyebrow, .pv-hero__text { font-size: 16px; }
	.pv-hero__title { font-size: clamp(42px, 12vw, 64px); line-height: 1.05; }
	.pv-hero__bottom { padding-top: 36px; }
	.pv-hero__agent { font-size: 22px; margin-bottom: 14px; }
	.pv-hero__text br { display: none; }
}

/* ---------- Pure-GPU 60fps 3D Blueprint -> 3D Wireframe -> Turnkey Villa Loop ---------- */
.pv-hero--bp .pv-hero__media {
	contain: layout paint style;
}
.pv-hero--bp .pv-hero__media::after {
	transition: opacity .85s ease;
	pointer-events: none;
}
/* Isolated GPU-only 3D camera layer (transform mutated directly by JS, zero parent style recalc!) */
.pv-hero__stage3d {
	position: absolute; inset: -3.5%;
	transform: perspective(1400px) rotateX(0deg) rotateY(0deg) translate3d(0, 0, 0);
	will-change: transform;
	backface-visibility: hidden;
	contain: layout paint;
}

/* Crisp GPU-only kinetic headline exit/enter (zero overlap, zero lag) */
.pv-hero--bp .pv-hero__copy {
	will-change: opacity, transform;
	transition: opacity .35s ease, transform .75s cubic-bezier(.16, 1, .3, 1);
}
.pv-hero--bp .pv-hero__copy.is-leaving {
	opacity: 0;
	transform: translate3d(0, -16px, 0);
	transition: opacity .22s ease, transform .32s ease;
}
.pv-hero--bp .pv-hero__copy.is-active {
	opacity: 1;
	transform: translate3d(0, 0, 0);
	transition: opacity .45s ease .18s, transform .8s cubic-bezier(.16, 1, .3, 1) .14s;
}

/* Stage-aware cinematic lighting so Cobalt Blueprint & 3D Wireframe glow crisply */
.pv-hero__card[data-bp-stage="0"] .pv-hero__media::after,
.pv-hero__card[data-bp-stage="1"] .pv-hero__media::after {
	background:
		linear-gradient(180deg, rgba(6, 18, 42, .44) 0%, rgba(6, 18, 42, .06) 34%, rgba(6, 18, 42, .36) 72%, rgba(4, 12, 28, .86) 100%),
		linear-gradient(90deg, rgba(4, 14, 34, .46) 0%, rgba(4, 14, 34, 0) 60%);
}

/* Pure GPU Compositor 3D Stage Layers (ONLY opacity + transform — zero clip-path repaint!) */
.pv-hero__bp-layer {
	position: absolute; inset: 0;
	opacity: 0;
	will-change: opacity, transform;
	backface-visibility: hidden;
	transition:
		opacity 1.15s cubic-bezier(.22, 1, .36, 1),
		transform 1.35s cubic-bezier(.16, 1, .3, 1);
	z-index: 1;
}
.pv-hero__bp-layer .pv-hero__photo {
	transform: scale(1.05);
	will-change: transform;
	transition: transform 6.4s cubic-bezier(.22, 1, .36, 1);
}
.pv-hero__bp-layer.is-active .pv-hero__photo {
	transform: scale(1.0);
}

/* Stage 1 (2D Blueprint): Subtle 3D architectural drafting table tilt that rises up cleanly */
.pv-hero__bp-layer--1 {
	opacity: 1;
	z-index: 1;
	transform: perspective(1200px) rotateX(9deg) rotateY(-2deg) scale(1.09);
}
.pv-hero__card[data-bp-stage="1"] .pv-hero__bp-layer--1,
.pv-hero__card[data-bp-stage="2"] .pv-hero__bp-layer--1 {
	transform: perspective(1200px) rotateX(0deg) rotateY(0deg) scale(1.02);
}

/* Stage 2 (3D Wireframe): Smooth 3D extrusion rise & focus */
.pv-hero__bp-layer--2 {
	z-index: 2;
	transform: perspective(1200px) rotateX(5deg) translate3d(0, 14px, 0) scale(1.07);
}
.pv-hero__bp-layer--2.is-revealed,
.pv-hero__bp-layer--2.is-active {
	opacity: 1;
	transform: perspective(1200px) rotateX(0deg) translate3d(0, 0, 0) scale(1.0);
}

/* Stage 3 (Photorealistic Turnkey Villa): Silky 3D dolly materialization */
.pv-hero__bp-layer--3 {
	z-index: 3;
	transform: translate3d(0, 0, 0) scale(1.06);
}
.pv-hero__bp-layer--3.is-revealed,
.pv-hero__bp-layer--3.is-active {
	opacity: 1;
	transform: translate3d(0, 0, 0) scale(1.0);
}

/* Silky GPU fade + 3D zoom-out back to tilted 01 Blueprint on loop restart */
.pv-hero__card.is-resetting .pv-hero__bp-layer--2,
.pv-hero__card.is-resetting .pv-hero__bp-layer--3 {
	transition:
		opacity 1.05s cubic-bezier(.4, 0, .2, 1),
		transform 1.15s cubic-bezier(.4, 0, .2, 1);
	opacity: 0;
	transform: perspective(1200px) rotateX(6deg) scale(1.07);
}

/* Lightweight CAD grid overlay (pure opacity) */
.pv-hero__grid3d {
	position: absolute; inset: 0; z-index: 4; pointer-events: none;
	background-image:
		linear-gradient(to right, rgba(255, 255, 255, .06) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255, 255, 255, .06) 1px, transparent 1px);
	background-size: 72px 72px;
	opacity: 0;
	transition: opacity .85s ease;
}
.pv-hero__card[data-bp-stage="0"] .pv-hero__grid3d,
.pv-hero__card[data-bp-stage="1"] .pv-hero__grid3d { opacity: .55; }

/* Floating Architectural Depth Callout Badges (zero backdrop-filter lag!) */
.pv-hero__pins {
	position: absolute; inset: 0; z-index: 5; pointer-events: none;
}
.pv-pin {
	position: absolute;
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 13px; border-radius: 999px;
	background: rgba(8, 16, 34, .82);
	border: 1px solid rgba(197, 160, 89, .58);
	color: rgba(255, 255, 255, .94); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
	opacity: 0; transform: translate3d(0, 10px, 0);
	will-change: opacity, transform;
	transition: opacity .65s ease, transform .75s cubic-bezier(.16, 1, .3, 1);
	box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
}
.pv-pin i {
	width: 7px; height: 7px; border-radius: 50%; background: var(--pv-accent);
	box-shadow: 0 0 8px rgba(197, 160, 89, .9);
}
.pv-pin b { color: var(--pv-accent); font-weight: 700; }
.pv-pin--1 { top: 38%; right: 8%; transition-delay: .18s; }
.pv-pin--2 { top: 38%; right: 7%; transition-delay: .28s; }
.pv-pin--3 { top: 53%; right: 13%; transition-delay: .4s; }
.pv-hero__card[data-bp-stage="0"] .pv-pin--1 { opacity: 1; transform: translate3d(0, 0, 0); }
.pv-hero__card[data-bp-stage="1"] .pv-pin--2,
.pv-hero__card[data-bp-stage="1"] .pv-pin--3 { opacity: 1; transform: translate3d(0, 0, 0); }

/* Subtle CAD corner crosshairs visible on Blueprint & 3D stages */
.pv-hero__cad-hud {
	position: absolute; inset: 28px; z-index: 4; pointer-events: none;
	opacity: 0; transition: opacity .75s ease;
}
.pv-hero__card[data-bp-stage="0"] .pv-hero__cad-hud,
.pv-hero__card[data-bp-stage="1"] .pv-hero__cad-hud { opacity: .65; }
.pv-cad-corner {
	position: absolute; width: 18px; height: 18px;
	border-color: rgba(255, 255, 255, .65); border-style: solid; border-width: 0;
}
.pv-cad-corner--tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.pv-cad-corner--tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.pv-cad-corner--bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.pv-cad-corner--br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }

/* Pure-GPU translate3d Champagne-Gold Light Beam Sweep (zero left/paint jank!) */
.pv-hero__scanline {
	position: absolute; top: 0; bottom: 0; left: 0; width: 140px; z-index: 5;
	background: linear-gradient(90deg, transparent 0%, rgba(197, 160, 89, .18) 38%, rgba(255, 250, 238, .82) 50%, rgba(197, 160, 89, .18) 62%, transparent 100%);
	opacity: 0; pointer-events: none;
	will-change: transform, opacity;
	transform: translate3d(-160px, 0, 0);
}
.pv-hero__scanline.is-sweeping {
	animation: pv-scan-sweep 1.25s cubic-bezier(.16, 1, .3, 1) forwards;
}
.pv-hero__scanline.is-sweeping-rev {
	animation: pv-scan-sweep-rev 1.15s cubic-bezier(.4, 0, .2, 1) forwards;
}
@keyframes pv-scan-sweep {
	0% { opacity: 0; transform: translate3d(-140px, 0, 0); }
	15% { opacity: 1; }
	85% { opacity: 1; }
	100% { opacity: 0; transform: translate3d(105vw, 0, 0); }
}
@keyframes pv-scan-sweep-rev {
	0% { opacity: 0; transform: translate3d(105vw, 0, 0); }
	15% { opacity: 1; }
	85% { opacity: 1; }
	100% { opacity: 0; transform: translate3d(-140px, 0, 0); }
}
@media (max-width: 1100px) {
	.pv-hero__pins { display: none; }
}

/* Minimal Architectural Timeline Stepper + Scroll cue */
.pv-hero__bp-bar {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap;
	margin-bottom: 26px;
}
.pv-hero__bp-nav {
	display: inline-flex; align-items: flex-end; gap: 26px;
	padding: 0;
	background: transparent;
	border: 0;
}
.pv-hero__bp-pill {
	position: relative;
	display: flex; flex-direction: column; align-items: flex-start; gap: 9px;
	min-width: 128px; padding: 4px 0 0; border-radius: 0;
	background: transparent; border: 0; cursor: pointer;
	color: rgba(255, 255, 255, .52);
	transition: color .28s ease;
}
.pv-hero__bp-meta {
	display: inline-flex; align-items: baseline; gap: 8px;
}
.pv-hero__bp-num {
	font-family: var(--pv-font); font-size: 11px; font-weight: 700; letter-spacing: .12em;
	color: rgba(255, 255, 255, .42); font-variant-numeric: tabular-nums;
	transition: color .28s ease;
}
.pv-hero__bp-label {
	font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
	white-space: nowrap;
}
.pv-hero__bp-pill:hover { color: rgba(255, 255, 255, .88); }
.pv-hero__bp-pill:hover .pv-hero__bp-num { color: rgba(255, 255, 255, .75); }
.pv-hero__bp-pill.is-active { color: #fff; background: transparent; }
.pv-hero__bp-pill.is-active .pv-hero__bp-num { color: var(--pv-accent); }
.pv-hero__bp-prog {
	position: relative; display: block; width: 100%; height: 2px;
	background: rgba(255, 255, 255, .2); overflow: hidden; border-radius: 99px;
}
.pv-hero__bp-prog span {
	display: block; height: 100%; width: 0%;
	background: linear-gradient(90deg, #fff 0%, var(--pv-accent) 100%);
	box-shadow: 0 0 10px rgba(197, 160, 89, .68);
}
.pv-hero__bp-pill.is-active.is-running .pv-hero__bp-prog span {
	animation: pv-bp-fill var(--bp-dur, 5s) linear forwards;
}
.pv-hero__card.is-paused .pv-hero__bp-pill.is-active.is-running .pv-hero__bp-prog span {
	animation-play-state: paused;
}
@keyframes pv-bp-fill { from { width: 0%; } to { width: 100%; } }

.pv-hero__bp-toggle {
	width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .26);
	background: rgba(8, 12, 20, .35); color: rgba(255, 255, 255, .85); cursor: pointer;
	display: grid; place-items: center; margin-left: 2px; align-self: center;
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	transition: background-color .22s ease, border-color .22s ease, color .22s ease;
}
.pv-hero__bp-toggle:hover { background: var(--pv-accent); border-color: var(--pv-accent); color: #fff; }
.pv-hero__bp-toggle .pv-ic-play { display: none; }
.pv-hero__card.is-paused .pv-hero__bp-toggle .pv-ic-pause { display: none; }
.pv-hero__card.is-paused .pv-hero__bp-toggle .pv-ic-play { display: block; }

.pv-hero__scroll-cue {
	display: inline-flex; align-items: center; gap: 8px;
	height: 32px; padding: 0 14px; border-radius: 999px;
	background: rgba(8, 12, 20, .34); border: 1px solid rgba(255, 255, 255, .2);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	color: rgba(255, 255, 255, .85); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
	transition: background-color .25s, border-color .25s, color .25s;
}
.pv-hero__scroll-cue:hover { background: var(--pv-accent); border-color: var(--pv-accent); color: #fff; }
.pv-hero__scroll-dot {
	width: 5px; height: 5px; border-radius: 50%; background: var(--pv-accent);
	animation: pv-scroll-pulse 1.8s ease-in-out infinite;
}
.pv-hero__scroll-cue:hover .pv-hero__scroll-dot { background: #fff; }
@keyframes pv-scroll-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

@media (max-width: 782px) {
	.pv-hero__bp-bar { margin-bottom: 16px; }
	.pv-hero__bp-nav { gap: 14px; flex-wrap: wrap; }
	.pv-hero__bp-pill { min-width: 88px; gap: 6px; }
	.pv-hero__bp-label { font-size: 10.5px; }
	.pv-hero__scroll-cue { display: none; }
}

