Build a full-screen hero landing page for a creative agency called "Mainframe" using React, TypeScript, Vite, and Tailwind CSS. Here is every detail:
---
FONTS
Load two fonts in `index.html` via these stylesheet links:
- Heading: `https://db.onlinewebfonts.com/c/5ac3fe7c6abd2f62067f266d89671492?family=HelveticaNowDisplay-Medium`
- Body: `https://db.onlinewebfonts.com/c/1aa3377e489837a26d019bba501e779d?family=HelveticaNowDisplayW01-Rg`
In `index.css`, define CSS variables:
:root {
--font-heading: 'HelveticaNowDisplay-Medium', 'Helvetica Neue', Arial, sans-serif;
--font-body: 'HelveticaNowDisplayW01-Rg', 'Helvetica Neue', Arial, sans-serif;
}
body {
font-family: var(--font-body);
}
The entire page uses `var(--font-body)` except the logo text which uses `var(--font-heading)`.
---
BACKGROUND VIDEO (mouse-scrub controlled)
- A full-screen <video> element is `position: fixed; inset: 0; z-index: 0; object-fit: cover; object-position: 70% center;`.
- Video source URL: `https://d8j0ntlcm91z4.cloudfront.net/user_38xzZboKViGWJOttwIXH07lWA1P/hf_20260826_041744_63efcd78-bf7d-4039-99e2-2461e8a61903.mp4`
- The video is `muted`, `playsInline`, `preload="auto"`. It does NOT autoplay.
- The video scrubs forward/backward based on horizontal mouse movement. Use a `mousemove` event listener on `window`. Track `prevX`, compute `delta = currentX - prevX`, convert to a time offset: `(delta / window.innerWidth) * SENSITIVITY * video.duration` where `SENSITIVITY = 0.8`. Clamp `targetTime` between 0 and `video.duration`. Use `video.currentTime` to seek, and an `onSeeked` handler to queue the next seek if `targetTime` has moved, preventing seek-flooding.
---
NAVBAR (fixed, z-index: 10)
- Fixed to top, full width. Padding: `px-5 sm:px-8 py-4 sm:py-5`. Flex row, `justify-between`, `items-center`.
- Logo (left): Flex row with `gap-3`. Text "Mainframe(R)" at `text-[21px] sm:text-[26px]`, `tracking-tight`, white, using `var(--font-heading)`. Beside it, a decorative asterisk character `✳︎` at `text-[25px] sm:text-[30px]`, white, `select-none`.
- Desktop nav links (center, hidden below md): Flex row, `text-[23px]`, white. Links: "Labs", "Studio", "Openings", "Shop" separated by commas rendered as `, `.
- Desktop CTA (right, hidden below md): Anchor "Get in touch" at `text-[23px]`, white, `underline underline-offset-2`.
---
HERO SECTION (z-index: 1)
- Full `h-screen`, flex column.
- Blurred intro label: "Hey there, meet A.R.I.A, Mainframe's Adaptive Response Interface Agent".
- Typewriter text: "Glad you stopped in. Good taste tends to find us. Now, what are we building?"
- Action pill buttons: "Pitch us an idea", "Come work here", "Send a brief hello", "See how we operate", and "Reach us: hello@mainframe.co".