/* OpenHero source by Cristian Olivera Chávez. MIT License Copyright (c) 2026 Cristian Olivera Chávez Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ "use client"; import { useEffect, useRef, useState } from "react"; const collectionItems = [ { title: "Crescent Sofa", label: "Bouclé Composition", video: true, tall: "h-[34rem]", body: "", meta: null, cardClass: "bg-white/50 backdrop-blur-2xl", }, { title: "1972", label: "Mid-century modernism", video: false, tall: "h-[22rem]", body: "", meta: null, cardClass: "bg-[#e4d4bf]/70", }, { title: "Walnut Arc", label: "Artisanal joinery", video: true, tall: "h-[42rem]", body: "", meta: null, cardClass: "bg-white/40 backdrop-blur-2xl", }, ]; const materialItems = [ { title: "Bouclé Ivory", label: "Wool composition", extra: "Soft thermal layering", videoClass: "h-[30rem]", containerClass: "min-w-[32rem] bg-[#f4ece2]/70 backdrop-blur-2xl", }, { title: "Warm Grain", label: "Oak detailing", extra: "Hand-finished wood textures engineered for architectural calm and tonal continuity.", videoClass: "h-[30rem]", containerClass: "min-w-[48rem] bg-[#d7c0a3]/40", }, { title: "Smoked Camel", label: "Leather balance", extra: "", videoClass: "h-[30rem]", containerClass: "min-w-[28rem] bg-[#efe6db]/80 backdrop-blur-2xl", }, ]; const residenceStats = [ ["Spatial Ergonomics", "01"], ["Tactile Materiality", "02"], ["Curvilinear Systems", "03"], ["Artisanal Joinery", "04"], ]; export default function Page() { const heroVideoRef = useRef(null); const [scrolled, setScrolled] = useState(false); useEffect(() => { const updateHero = () => { const progress = Math.min(Math.max(window.scrollY / (window.innerHeight * 1.15), 0), 1); const scale = 1.02 + progress * 0.1; const translateY = progress * 14; if (heroVideoRef.current) { heroVideoRef.current.style.transform = `scale(${scale}) translateY(${translateY}px)`; } setScrolled(window.scrollY > 20); }; let raf = 0; const onScroll = () => { if (raf) return; raf = window.requestAnimationFrame(() => { updateHero(); raf = 0; }); }; updateHero(); window.addEventListener("scroll", onScroll, { passive: true }); window.addEventListener("resize", updateHero); return () => { window.removeEventListener("scroll", onScroll); window.removeEventListener("resize", updateHero); }; }, []); useEffect(() => { const observer = new IntersectionObserver( (entries) => { entries.forEach((entry) => { if (entry.isIntersecting) { entry.target.classList.add("in-view"); observer.unobserve(entry.target); } }); }, { threshold: 0.12 } ); document.querySelectorAll("[data-rise]").forEach((el) => observer.observe(el)); return () => observer.disconnect(); }, []); const handleMove = (e: React.MouseEvent) => { const target = e.currentTarget; const rect = target.getBoundingClientRect(); target.style.setProperty("--x", `${e.clientX - rect.left}px`); target.style.setProperty("--y", `${e.clientY - rect.top}px`); }; return (
Vesta Atelier
Curated Living Spaces

The Art
of
Living

Sculptural furniture systems inspired by tactile materiality, mid-century restraint, and the silence of architectural space.

The Collection Arch

Sculptural forms curated like a private gallery.

{collectionItems.map((item, index) => (
{item.video ? (
) : (
Mid-century modernism
{item.title}
)} {item.video ? (
{item.label}

{item.title}

) : null}
))}
Tactile Storytelling

Material transitions shaped through touch, grain, and shadow.

{materialItems.map((item, index) => (
{item.label}
{item.title}
{item.extra ? (
{item.extra}
) : index === 0 ? (
Soft thermal layering
) : null}
))}
The Residence Footer

Designed to feel less like a website and more like a private residence.

{residenceStats.map(([label, value]) => (
{label} {value}
))}
Vesta Atelier
Bespoke Living Spaces
); }