/* 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 { Icon } from "@iconify/react"; import { useEffect, useMemo, useRef, useState } from "react"; type RevealId = "ecosystems" | "craft" | "gallery" | "origin"; export default function Page() { const [scrolled, setScrolled] = useState(false); const [revealed, setRevealed] = useState>(new Set()); const heroVideoRef = useRef(null); const particles = useMemo( () => [ { left: "10%", size: "text-3xl", color: "text-amber-400", delay: "0s", duration: "12s", }, { left: "40%", size: "text-2xl", color: "text-amber-500", delay: "2s", duration: "7s", }, { left: "70%", size: "text-4xl", color: "text-amber-600", delay: "4s", duration: "12s", }, { left: "85%", size: "text-xl", color: "text-amber-300", delay: "1s", duration: "7s", }, ], [] ); useEffect(() => { const onScroll = () => { const y = window.scrollY; setScrolled(y > 50); const progress = Math.min(Math.max(y / window.innerHeight, 0), 1); if (heroVideoRef.current) { heroVideoRef.current.style.transform = `scale(${1 + progress * 0.1}) translateY(${progress * 20}px)`; } }; onScroll(); window.addEventListener("scroll", onScroll, { passive: true }); return () => window.removeEventListener("scroll", onScroll); }, []); useEffect(() => { const observer = new IntersectionObserver( (entries) => { setRevealed((prev) => { const next = new Set(prev); entries.forEach((entry) => { if (entry.isIntersecting) { const id = entry.target.getAttribute("data-reveal-id") as RevealId | null; if (id) next.add(id); observer.unobserve(entry.target); } }); return next; }); }, { threshold: 0.1, rootMargin: "0px 0px -50px 0px" } ); document.querySelectorAll("[data-reveal-id]").forEach((el) => observer.observe(el)); return () => observer.disconnect(); }, []); const revealClass = (id: RevealId) => (revealed.has(id) ? "reveal-node visible" : "reveal-node"); return (
{particles.map((particle, index) => (
))}

Universes in
Glass.

Miniature ecosystems forged with time, moss, and light. A fragment of autumn magic preserved eternally in your space.

Dive In
Anatomy of a World

Life breathing
in the void.

Each terrarium is a self-sustaining biome. Tiny cabins house warm light diodes that mimic the glow of a hearth, while living moss purifies its own atmosphere through hand-blown glass.

100%
Natural Moss
∞
Water Cycle

Perpetual Flora

Meticulous selection of flora that thrives in closed environments, creating micro-forests that require zero maintenance.

Scaled Architecture

Hand-carved structures in noble woods, treated to resist moisture and maintain their millimeter precision.

Micro-Rivers

Epoxy resin cast with natural pigments that simulate water currents, reflecting the internal light of the ecosystem.

Twilight Glow

Integrated lighting with amber temperature (2200K) LED filaments, powered by invisible inductive charging bases.

); }