/* Renovate & Co villa hero. Uses the site's own tokens: --ink, --parchment, --amber (gold), --gold-1..3, --soft, --line, --gutter. */
.hero.vh { --lift: 0; --fade: 1; --shade: 0; --wash: 1; position: relative; display: block; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; background: #231f1b; border-bottom: 1px solid var(--line); }
/* scroll shade: GSAP raises --shade as the pinned hero hands over to the next section */
.hero.vh::before { content: ""; position: absolute; inset: 0; z-index: 2; background: #08080A; opacity: var(--shade); pointer-events: none; }
/* legibility: a soft wash under the header and behind the copy; the villa on the right is left untouched */
.hero.vh::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: var(--wash);
  background: linear-gradient(to bottom, rgba(8,8,10,.66) 0, rgba(8,8,10,.3) 90px, rgba(8,8,10,0) 200px), linear-gradient(to right, rgba(8,8,10,.62) 0%, rgba(8,8,10,.38) 24%, rgba(8,8,10,.08) 46%, rgba(8,8,10,0) 56%), linear-gradient(to top, rgba(8,8,10,.4) 0, rgba(8,8,10,0) 22%); }

.vh-stage { position: absolute; inset: 0; overflow: hidden; }
.vh-stage picture, .vh-stage img, .vh-canvas { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; object-fit: cover; }
.vh-before { position: absolute; inset: 0; z-index: 2; clip-path: inset(0 100% 0 0); }
.vh-final img { transform-origin: 64% 58%; }
/* opening camera settle: GSAP (villa.js) */
.vh-exploring .vh-stage { cursor: ew-resize; touch-action: pan-y; }
.vh-stage { transform-origin: 50% 70%; will-change: transform; }
.vh-canvas { z-index: 2; opacity: 0; outline: 0; }
.vh-live .vh-canvas { opacity: 1; }
.vh-veil { z-index: 1; }
.vh-veil-b { z-index: 3; }
.vh-imgcompare .vh-canvas { opacity: 0; pointer-events: none; }

/* copy: top left, in the sky */
.vh > .vh-copy { position: relative; z-index: 3; padding-block: clamp(112px, 17vh, 196px) 0; pointer-events: none;
  translate: 0 calc(var(--lift) * -14vh); opacity: var(--fade); }   /* scroll lift + fade (GSAP tweens the variables) */
.vh > .vh-copy > * { pointer-events: auto; }
.vh .vh-eyebrow { color: var(--parchment); text-shadow: 0 1px 10px rgba(8,8,10,.4); }
.vh .vh-eyebrow i { display: inline-block; width: 28px; height: 1px; background: var(--amber); margin-right: 14px; vertical-align: middle; }
.vh .vh-eyebrow b { color: var(--amber); margin: 0 .5em; }
.hero.vh h1 { font-size: clamp(46px, 6.1vw, 108px); line-height: .98; letter-spacing: -.025em; margin-top: clamp(16px, 2vw, 26px); max-width: none; text-shadow: 0 2px 30px rgba(8,8,10,.22); }
.vh .vh-lead { margin: clamp(20px, 2.4vw, 30px) 0 0; max-width: 32ch; font-size: 17px; line-height: 1.55; color: var(--parchment); padding-left: 20px; border-left: 1px solid rgba(217,178,111,.75); text-shadow: 0 1px 14px rgba(8,8,10,.4); }
.vh .vh-actions { display: flex; flex-wrap: nowrap; flex-shrink: 0; margin-top: clamp(26px, 3.2vw, 42px); flex-direction: column; align-items: flex-start; gap: 22px; }
.vh .vh-explore { color: var(--parchment); border-bottom-color: rgba(217,178,111,.75); text-shadow: 0 1px 10px rgba(8,8,10,.45); }
.vh .vh-explore b { font-weight: 400; color: var(--amber); margin-left: 6px; }
.vh .cta.line { background: rgba(8,8,10,.4); border-color: rgba(244,241,234,.5); }
.vh-exploring > .vh-copy > * { pointer-events: none; }
@media (max-height: 760px) and (min-width: 761px) { .vh .vh-eyebrow { display: none; } .vh > .vh-copy { padding-top: 104px; } }

/* entrance: hidden until GSAP (villa.js) raises the lines out of their masks; .vh-static shows everything if GSAP is missing */
.vh [data-vh] { visibility: hidden; }
.vh h1 .ln { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.vh h1 .ln > [data-vh] { display: block; }
.vh.vh-static [data-vh] { visibility: visible; }

/* bottom row: light and status */
.vh-corner { position: absolute; z-index: 4; left: var(--gutter); right: var(--gutter); bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(22px, 4vh, 40px)); display: flex; align-items: center; gap: 22px; }
.vh-time { display: flex; gap: 2px; padding: 3px; border: 1px solid rgba(244,241,234,.35); background: rgba(8,8,10,.3); }
.vh-time button, .vh-seg button { background: none; border: 0; cursor: pointer; padding: 9px 14px; font: inherit; font-weight: 500; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: rgba(244,241,234,.78); white-space: nowrap; }
.vh-time button[aria-pressed="true"], .vh-seg button[aria-pressed="true"] { background: var(--parchment); color: var(--ink); }
.vh-time button:focus-visible, .vh-seg button:focus-visible, .vh-range:focus-visible + .vh-split .vh-handle, .vh-explore:focus-visible { outline: 1px solid var(--amber); outline-offset: 2px; }
.vh-status { font-weight: 500; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: rgba(244,241,234,.82); text-shadow: 0 1px 8px rgba(8,8,10,.5); }
.vh-status::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 12px; background: var(--amber); transform: rotate(45deg) translateY(-1px); }

/* explore: back, before / compare / reimagined, hint */
.vh-exploreui { position: absolute; z-index: 5; left: var(--gutter); top: calc(env(safe-area-inset-top, 0px) + 100px); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; opacity: 0; visibility: hidden; pointer-events: none; }
.vh-exploring .vh-exploreui { pointer-events: auto; }
.vh-static.vh-exploring .vh-exploreui { opacity: 1; visibility: visible; }
.vh-static.vh-exploring > .vh-copy { opacity: 0; }
.vh-seg { display: flex; gap: 2px; padding: 3px; border: 1px solid rgba(244,241,234,.35); background: rgba(8,8,10,.4); }
.vh-hint { margin: 0; font-size: 13px; color: var(--parchment); text-shadow: 0 1px 8px rgba(8,8,10,.7); max-width: 34ch; }
.vh-imgcompare .vh-hint3d { display: none; }
.vh-exploring:not(.vh-imgcompare) .vh-canvas { cursor: grab; }
.vh-exploring:not(.vh-imgcompare) .vh-canvas:active { cursor: grabbing; }

/* the split line */
.vh-compare { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.vh-split { position: absolute; inset: 0; pointer-events: none; }
.vh-split::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--x); width: 1px; margin-left: -.5px; background: var(--parchment); box-shadow: 0 0 0 .5px rgba(8,8,10,.25), 0 0 18px rgba(8,8,10,.35); transition: opacity .3s; }
.vh-handle { position: absolute; left: clamp(27px, var(--x), calc(100% - 27px)); top: 58%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; border: 1px solid var(--amber); background: rgba(8,8,10,.72); pointer-events: auto; cursor: ew-resize; touch-action: none; padding: 0; }
.vh-handle::before, .vh-handle::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 6px solid transparent; margin-top: -6px; }
.vh-handle::before { left: 10px; border-right-color: var(--parchment); }
.vh-handle::after { right: 10px; border-left-color: var(--parchment); }
.vh-handle i { position: absolute; left: 50%; top: 50%; width: 1px; height: 14px; margin: -7px 0 0 -.5px; background: var(--amber); }
.vh-tag { position: absolute; top: calc(58% + 44px); font-weight: 500; font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--parchment); padding: 7px 11px; background: rgba(8,8,10,.8); white-space: nowrap; transition: opacity .3s; }
.vh-tag-b { right: max(14px, calc(100% - var(--x) + 14px)); }
.vh-tag-a { left: max(14px, calc(var(--x) + 14px)); color: var(--ink); background: var(--parchment); }
.vh-allbefore .vh-tag-a, .vh-allafter .vh-tag-b, .vh-allbefore .vh-split::before, .vh-allafter .vh-split::before { opacity: 0; }
.vh-range { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }


@media (max-width: 760px) {
  .hero.vh { min-height: 560px; }
  .hero.vh::after { background: linear-gradient(to bottom, rgba(8,8,10,.6) 0, rgba(8,8,10,.34) 30%, rgba(8,8,10,0) 46%), linear-gradient(to top, rgba(8,8,10,.6) 0, rgba(8,8,10,0) 24%); }
  .vh > .vh-copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; padding-block: calc(env(safe-area-inset-top, 0px) + 86px) calc(env(safe-area-inset-bottom, 0px) + 74px); }
  .vh .vh-eyebrow { font-size: 10px; letter-spacing: .26em; margin: 0 0 14px; }
  .vh .vh-eyebrow i { width: 20px; margin-right: 10px; }
  .hero.vh h1 { font-size: clamp(40px, 11.4vw, 58px); margin-top: 0; }
  .vh .vh-lead { font-size: 15px; margin-top: 14px; padding-left: 14px; max-width: 28ch; }
  .vh .vh-actions { margin-top: auto; width: 100%; }
  .vh .vh-actions .magnet { display: block; width: 100%; margin: 0; padding: 0; }
  .vh .vh-actions .cta:not(.line) { width: 100%; justify-content: space-between; padding: 19px 22px; }
  .vh .vh-actions { gap: 14px; align-items: center; }
  .vh .vh-actions .vh-explore { font-size: 11px; letter-spacing: .22em; }
  .vh-corner { bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); justify-content: space-between; gap: 10px; }
  .vh-time button { padding: 9px 10px; letter-spacing: .18em; }
  .vh-status { display: none; }
  .vh-time { margin-inline: auto; }
  .vh-exploreui { top: calc(env(safe-area-inset-top, 0px) + 78px); right: var(--gutter); }
  .vh-seg { align-self: stretch; } .vh-seg button { flex: 1; padding: 10px 6px; letter-spacing: .16em; }
  .vh-handle { top: 64%; }
  .vh-tag { top: calc(64% + 40px); }
}
@media (prefers-reduced-motion: reduce) { .vh-stage { will-change: auto; } }
