/* 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 } from "react"; import { Icon } from "@iconify/react"; type ViewTransitionDocument = Document & { startViewTransition?: (callback: () => void) => void; }; export default function Page() { const heroVideoRef = useRef(null); const heroTextRef = useRef(null); useEffect(() => { const updateHero = () => { const scroll = window.scrollY; if (heroVideoRef.current && scroll < window.innerHeight * 1.5) { heroVideoRef.current.style.transform = `scale(${1.05 + scroll * 0.0002})`; } if (heroTextRef.current && scroll < window.innerHeight) { heroTextRef.current.style.transform = `translateY(${scroll * 0.3}px)`; heroTextRef.current.style.opacity = `${Math.max(0, 1 - scroll / 700)}`; } }; let ticking = false; const onScroll = () => { if (ticking) return; ticking = true; window.requestAnimationFrame(() => { updateHero(); ticking = false; }); }; updateHero(); window.addEventListener("scroll", onScroll, { passive: true }); const animateCounter = (counter: HTMLElement) => { const target = Number.parseFloat(counter.getAttribute("data-target") || "0"); const isFloat = target % 1 !== 0; const duration = 2000; const start = performance.now(); const step = (now: number) => { const progress = Math.min((now - start) / duration, 1); const value = target * progress; counter.textContent = isFloat ? value.toFixed(1) : Math.floor(value).toString(); if (progress < 1) { requestAnimationFrame(step); } else { counter.textContent = isFloat ? target.toFixed(1) : Math.floor(target).toString(); } }; requestAnimationFrame(step); }; const observer = new IntersectionObserver( (entries) => { entries.forEach((entry) => { if (!entry.isIntersecting) return; const target = entry.target as HTMLElement; target.classList.add("active"); target.querySelectorAll(".counter").forEach((counter) => { if (counter.dataset.animated === "true") return; counter.dataset.animated = "true"; animateCounter(counter); }); observer.unobserve(target); }); }, { root: null, rootMargin: "0px 0px -5% 0px", threshold: 0.1 } ); document.querySelectorAll(".reveal-up:not(.active)").forEach((el) => { observer.observe(el); }); return () => { window.removeEventListener("scroll", onScroll); observer.disconnect(); }; }, []); const toggleMonolith = (card: HTMLElement) => { const doc = document as ViewTransitionDocument; const action = () => { card.classList.toggle("open"); }; if (typeof doc.startViewTransition === "function") { doc.startViewTransition(action); } else { action(); } }; return ( <>
Memphis & Its Necropolis

The Great
Pyramids of Giza

A testament to monolithic limestone architecture and exact archeo-astronomy alignment. Experience the timeless sandstone thermal mass that has endured millennia under the desert sun.

Architectural Telemetry

Dataset: Khufu Complex

SCAN_01

Structural Topography

Engineered with microscopic precision. The original highly polished limestone casing stones acted as a mirrored beacon across the ancient sands.

0 M Stone Blocks
0 M Tons Mass
True North Error margin: 0.05°

Cosmic alignment targeting the constellation of Orion.

0 °C Internal Temp

Constant thermal mass regardless of desert fluctuations.

Khufu’s Solar Ship

Sealed in a bedrock pit, this intact vessel was engineered to carry the resurrected king across the heavens.

Dimensions 43.6m × 5.9m
); }