/* Home hero: scroll-driven 3D build, blueprint to finished house. */

.hero { position: relative; height: 560vh; background: var(--bg); }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__backdrop { position: absolute; inset: 0; opacity: 0; will-change: opacity; }
.hero__backdrop svg { width: 100%; height: 100%; display: block; }
.hero__scene { position: absolute; inset: 0; }
.hero__scene canvas { display: block; width: 100%; height: 100%; }
.hero__labels { position: absolute; inset: 0; pointer-events: none; }
.hero__frame { position: absolute; inset: 12px; z-index: 2; border: 1px solid var(--line); pointer-events: none; }

.tag { position: absolute; top: 0; left: 0; font: 500 0.68rem var(--mono); letter-spacing: 0.1em; color: var(--ink-3); white-space: nowrap; will-change: transform, opacity; }
.tag--bubble { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--ink-3); border-radius: 50%; color: var(--ink-2); font-size: 0.7rem; letter-spacing: 0; }

.hud { font: 500 0.72rem/1.9 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.hud--tl, .hud--tr, .hud--br { position: absolute; z-index: 3; }
.hud--tl { top: calc(var(--nav-h) + 4px); left: var(--gutter); display: flex; align-items: center; gap: 16px; }
.hud__rule { position: relative; display: block; width: 56px; height: 1px; background: var(--line); }
.hud__rule b { position: absolute; inset: 0; background: var(--blue); transform-origin: left; transform: scaleX(0); }
.hud--tr { top: calc(var(--nav-h) + 4px); right: var(--gutter); display: flex; flex-direction: column; align-items: flex-end; }
.hud--br { bottom: 28px; right: var(--gutter); display: flex; align-items: center; gap: 16px; }
.hud__north { width: 18px; height: 18px; fill: none; stroke: var(--ink-3); }
.hud__north path { fill: var(--ink-3); stroke: none; }
.hud__pause { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: rgba(13, 15, 18, 0.6); color: var(--ink-2); cursor: pointer; }
.hud__pause:hover { color: #fff; border-color: var(--ink-3); }
.hud__pause i { display: block; width: 8px; height: 10px; border-inline: 3px solid currentColor; }
.hud__pause[aria-pressed='true'] i { width: 0; height: 0; border: 0; border-left: 9px solid currentColor; border-block: 5px solid transparent; margin-left: 2px; }

[data-panel] { will-change: opacity, transform; }

.hero__intro {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 8vh;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 380px);
  align-items: end;
  gap: 18px 56px;
  z-index: 2;
}
.hero__intro::before { content: ''; position: absolute; z-index: -1; inset: -18vh calc(var(--gutter) * -1) -8vh; background: linear-gradient(to top, rgba(13, 15, 18, 0.92) 30%, rgba(13, 15, 18, 0.6) 65%, transparent); pointer-events: none; }
.hero__intro > * { animation: hero-in 0.9s var(--ease) both; }
.hero__intro > :nth-child(2) { animation-delay: 1.65s; }
.hero__intro > :nth-child(1) { animation-delay: 1.55s; }
.hero__side { animation-delay: 1.8s !important; }
@keyframes hero-in { from { opacity: 0; transform: translateY(28px); } }
@media (prefers-reduced-motion: reduce) {
.hero__intro > * { animation: none; } }
.hero__h1 { grid-column: 1 / -1; font: 500 0.82rem/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-hi); }
.hero__big { font-size: clamp(3.2rem, 8.6vw, 9rem); line-height: 0.88; }
.hero__side { display: grid; gap: 22px; padding-bottom: 8px; }
.hero__lead { font-size: clamp(1.02rem, 1.25vw, 1.18rem); line-height: 1.5; color: var(--ink-2); }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero__scroll { color: var(--ink-3); }

.hero__panel { position: absolute; top: 36%; left: 62%; width: min(360px, 32vw); z-index: 2; opacity: 0; }
.hero__panel .label, .hero__final .label { font: 500 0.75rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-hi); }
.hero__panel .h2 { margin: 16px 0 18px; font-stretch: 118%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 2.3vw, 2.3rem); line-height: 1; letter-spacing: -0.01em; }
.hero__panel p { color: var(--ink-2); }

.hero__final { position: absolute; left: var(--gutter); bottom: 12vh; z-index: 2; opacity: 0; }
.hero__final .display { margin: 20px 0 36px; font-size: clamp(2.8rem, 6.4vw, 6.6rem); }
.hero__final-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.noscript { position: absolute; inset: auto 0 40% 0; text-align: center; color: var(--ink-3); }

@media (max-width: 860px) {
  .hud--tr { display: none; }
  .hero__intro { grid-template-columns: minmax(0, 1fr); bottom: 12vh; }
  .hero__scroll { display: none; }
  .hero__panel { top: auto; left: var(--gutter); right: var(--gutter); bottom: 11vh; width: auto; padding: 20px 0 0; background: linear-gradient(to top, var(--bg) 55%, transparent); }
  .hero__backdrop svg { height: 62%; }
  .hud--br { top: calc(var(--nav-h) - 4px); bottom: auto; }
  .hud--br > span { display: none; }
  .hero__final { right: var(--gutter); bottom: 14vh; }
  .hero__final .display { margin: 14px 0 26px; }
}
@media (max-width: 760px) { .hero__intro { bottom: 110px; } .hero__final { bottom: 110px; } }

/* ---------- Video hero (section 1) ---------- */

.vhero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 100vh; min-height: 100svh; padding: calc(var(--nav-h) + 40px) 0 clamp(72px, 11vh, 120px); overflow: hidden; background: var(--bg); }
.vhero__media { position: absolute; inset: 0; z-index: -1; }
.vhero__media img, .vhero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vhero__media video { opacity: 0; transition: opacity 0.8s var(--ease); }
.vhero__media.is-playing video { opacity: 1; }
.vhero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(13, 15, 18, 0.94) 0%, rgba(13, 15, 18, 0.5) 50%, rgba(13, 15, 18, 0.35) 100%),
    linear-gradient(to right, rgba(13, 15, 18, 0.7), transparent 65%);
}
.vhero__in { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 380px); align-items: end; gap: 18px 56px; }
.vhero__in > * { animation: hero-in 0.9s var(--ease) both; }
.vhero__h1 { grid-column: 1 / -1; font: 500 0.82rem/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-hi); animation-delay: 1.55s; }
.vhero__big { font-size: clamp(3.2rem, 8.6vw, 9rem); line-height: 0.88; animation-delay: 1.65s; }
.vhero__side { display: grid; gap: 22px; padding-bottom: 8px; animation-delay: 1.8s; }
.vhero__lead { font-size: clamp(1.02rem, 1.25vw, 1.18rem); line-height: 1.5; color: var(--ink-2); }
.vhero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.vhero__foot { position: absolute; right: var(--gutter); bottom: 28px; }
.socials--hero { gap: 16px; margin-top: 4px; }
.socials--hero .social { width: 40px; height: 40px; }
.socials--hero li { --d: 2.6s; }
.socials--hero li:nth-child(2) { --d: 3.2s; }
@media (prefers-reduced-motion: reduce) { .vhero__in > * { animation: none; } }
@media (max-width: 860px) {
  .vhero__in { grid-template-columns: minmax(0, 1fr); }
  .vhero__media::after { background: rgba(13, 15, 18, 0.62); }
  /* Portrait crop: keep the crane lifting the roof framing (left of center) in the opening shot. */
  .vhero__media img, .vhero__media video { object-position: 24% 50%; }
  .vhero__foot { top: calc(var(--nav-h) + 8px); bottom: auto; }
}
@media (max-width: 760px) { .vhero { padding-bottom: 110px; } }
