Photography — Hero Landing
A gallery-dark studio hero with a full-bleed cinematic photo, a Fraunces wordmark, a transparent nav that turns solid on scroll, an animated scroll cue, and a strip of recent shots that zoom on hover — all vanilla, all self-contained, tuned for photographers who want the image to carry the page.
MCP
Code
:root {
--ink: #0b0b0c;
--bg: #101012;
--surface: #17171b;
--surface-2: #1e1e23;
--paper: #f6f4ef;
--sand: #c9b79c;
--sand-d: #a8916f;
--muted: #9a9aa2;
--line: rgba(255, 255, 255, 0.10);
--line-2: rgba(255, 255, 255, 0.18);
--white: #fff;
--r-sm: 6px;
--r-md: 12px;
--r-lg: 18px;
--nav-h: 72px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
margin: 0;
background: var(--bg);
color: var(--paper);
font-family: "Inter", system-ui, -apple-system, sans-serif;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
:focus-visible {
outline: 2px solid var(--sand);
outline-offset: 3px;
border-radius: var(--r-sm);
}
.eyebrow {
margin: 0;
font-size: 12px;
font-weight: 600;
letter-spacing: 0.22em;
text-transform: uppercase;
color: var(--sand);
}
/* ===== BUTTONS ===== */
.btn {
--pad-y: 12px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: var(--pad-y) 22px;
font-family: inherit;
font-size: 13px;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
border-radius: 999px;
border: 1px solid transparent;
cursor: pointer;
transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--solid { background: var(--paper); color: var(--ink); }
.btn--solid:hover { background: var(--sand); }
.btn--line { background: transparent; color: var(--paper); border-color: var(--line-2); }
.btn--line:hover { border-color: var(--sand); color: var(--sand); }
.btn--ghost {
background: rgba(255, 255, 255, 0.06);
color: var(--paper);
border-color: var(--line);
padding: 10px 18px;
}
.btn--ghost:hover { background: var(--sand); color: var(--ink); border-color: var(--sand); }
/* ===== NAV ===== */
.nav {
position: fixed;
inset: 0 0 auto 0;
z-index: 50;
transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
border-bottom: 1px solid transparent;
}
.nav[data-solid="true"] {
background: rgba(16, 16, 18, 0.82);
-webkit-backdrop-filter: blur(14px);
backdrop-filter: blur(14px);
border-bottom-color: var(--line);
}
.nav__inner {
max-width: 1240px;
margin: 0 auto;
height: var(--nav-h);
padding: 0 28px;
display: flex;
align-items: center;
gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
width: 18px; height: 18px;
border-radius: 50%;
border: 2px solid var(--sand);
position: relative;
flex: none;
}
.brand__mark::after {
content: "";
position: absolute; inset: 4px;
border-radius: 50%;
background: var(--sand);
}
.brand__name {
font-family: "Fraunces", Georgia, serif;
font-weight: 600;
font-size: 19px;
letter-spacing: 0.01em;
}
.nav__links {
margin-left: auto;
display: flex;
gap: 30px;
}
.nav__links a {
font-size: 12px;
font-weight: 600;
letter-spacing: 0.16em;
text-transform: uppercase;
color: var(--paper);
opacity: .82;
position: relative;
padding: 4px 0;
transition: opacity .18s ease;
}
.nav__links a::after {
content: "";
position: absolute; left: 0; bottom: -2px;
width: 0; height: 1px;
background: var(--sand);
transition: width .25s ease;
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { width: 100%; }
.nav__toggle {
display: none;
margin-left: auto;
width: 42px; height: 42px;
background: rgba(255, 255, 255, 0.06);
border: 1px solid var(--line);
border-radius: var(--r-sm);
cursor: pointer;
flex-direction: column;
gap: 4px;
align-items: center;
justify-content: center;
}
.nav__toggle span {
width: 18px; height: 2px;
background: var(--paper);
border-radius: 2px;
transition: transform .25s ease, opacity .2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav__mobile {
display: none;
flex-direction: column;
padding: 8px 28px 20px;
background: rgba(16, 16, 18, 0.94);
-webkit-backdrop-filter: blur(14px);
backdrop-filter: blur(14px);
border-bottom: 1px solid var(--line);
}
.nav__mobile a {
padding: 14px 0;
font-size: 13px;
font-weight: 600;
letter-spacing: 0.14em;
text-transform: uppercase;
border-bottom: 1px solid var(--line);
}
.nav__mobile a:last-child { border-bottom: none; }
/* ===== HERO ===== */
.hero {
position: relative;
min-height: 100vh;
min-height: 100svh;
display: flex;
flex-direction: column;
justify-content: flex-end;
overflow: hidden;
}
.hero__media {
position: absolute;
inset: 0;
background-color: var(--surface);
background-image:
radial-gradient(120% 90% at 72% 18%, rgba(201, 183, 156, 0.32), transparent 55%),
linear-gradient(200deg, #2b2620 0%, #14130f 42%, #0b0b0c 100%),
url("https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?auto=format&fit=crop&w=1920&q=80");
background-size: cover;
background-position: center 40%;
background-blend-mode: overlay, normal, normal;
transform: scale(1.06);
transition: transform .6s ease;
animation: heroDrift 24s ease-in-out infinite alternate;
}
@keyframes heroDrift {
from { transform: scale(1.06) translateY(0); }
to { transform: scale(1.12) translateY(-1.5%); }
}
.hero__scrim {
position: absolute;
inset: 0;
background:
linear-gradient(180deg, rgba(11, 11, 12, 0.62) 0%, rgba(11, 11, 12, 0.12) 32%, rgba(11, 11, 12, 0.05) 55%, rgba(11, 11, 12, 0.85) 100%);
}
.hero__content {
position: relative;
z-index: 2;
max-width: 1240px;
width: 100%;
margin: 0 auto;
padding: 0 28px 15vh;
}
.hero__title {
font-family: "Fraunces", Georgia, serif;
font-weight: 400;
font-size: clamp(52px, 11vw, 132px);
line-height: 0.94;
letter-spacing: -0.01em;
margin: 14px 0 22px;
}
.hero__lede {
max-width: 44ch;
font-size: clamp(15px, 2.4vw, 18px);
color: rgba(246, 244, 239, 0.86);
margin: 0 0 30px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
/* ===== SCROLL CUE ===== */
.scrollcue {
position: absolute;
z-index: 2;
right: 28px;
bottom: 26px;
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
}
.scrollcue__label {
font-size: 11px;
font-weight: 600;
letter-spacing: 0.28em;
text-transform: uppercase;
color: var(--muted);
writing-mode: vertical-rl;
}
.scrollcue__line {
position: relative;
width: 1px; height: 54px;
background: var(--line-2);
overflow: hidden;
}
.scrollcue__line::after {
content: "";
position: absolute;
left: 0; top: -40%;
width: 100%; height: 40%;
background: var(--sand);
animation: cueRun 1.8s cubic-bezier(.7,0,.3,1) infinite;
}
@keyframes cueRun {
0% { top: -40%; }
100% { top: 100%; }
}
/* ===== WORK STRIP ===== */
.work {
max-width: 1240px;
margin: 0 auto;
padding: 90px 28px 110px;
}
.work__head { margin-bottom: 36px; }
.work__title {
font-family: "Fraunces", Georgia, serif;
font-weight: 400;
font-size: clamp(34px, 6vw, 58px);
margin: 10px 0 8px;
}
.work__sub { color: var(--muted); margin: 0; font-size: 15px; }
.strip {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
}
.shot {
position: relative;
display: block;
aspect-ratio: 3 / 4;
border-radius: var(--r-md);
overflow: hidden;
border: 1px solid var(--line);
background: var(--surface-2);
transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.shot:hover, .shot:focus-visible {
transform: translateY(-6px);
border-color: var(--line-2);
box-shadow: 0 22px 48px -20px rgba(0, 0, 0, 0.8);
}
.shot__img {
position: absolute;
inset: 0;
background-size: cover;
background-position: center;
transform: scale(1.02);
transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s ease;
filter: saturate(0.92) contrast(1.02);
}
.shot:hover .shot__img, .shot:focus-visible .shot__img {
transform: scale(1.14);
filter: saturate(1.05) contrast(1.05);
}
.shot__img--1 {
background-image:
linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.55)),
url("https://images.unsplash.com/photo-1454496522488-7a8e488e8606?auto=format&fit=crop&w=800&q=80");
}
.shot__img--2 {
background-image:
linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.55)),
url("https://images.unsplash.com/photo-1502082553048-f009c37129b9?auto=format&fit=crop&w=800&q=80");
}
.shot__img--3 {
background-image:
linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.55)),
url("https://images.unsplash.com/photo-1517841905240-472988babdf9?auto=format&fit=crop&w=800&q=80");
}
.shot__img--4 {
background-image:
linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.55)),
url("https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&w=800&q=80");
}
.shot__grain {
position: absolute;
inset: 0;
pointer-events: none;
opacity: .5;
mix-blend-mode: overlay;
background-image:
radial-gradient(rgba(255,255,255,0.14) 0.5px, transparent 0.6px);
background-size: 3px 3px;
}
.shot__meta {
position: absolute;
left: 0; right: 0; bottom: 0;
z-index: 2;
padding: 18px 16px;
display: flex;
flex-direction: column;
gap: 6px;
}
.badge {
align-self: flex-start;
font-size: 10px;
font-weight: 700;
letter-spacing: 0.18em;
text-transform: uppercase;
color: var(--ink);
background: var(--sand);
padding: 4px 9px;
border-radius: 999px;
}
.shot__name {
font-family: "Fraunces", Georgia, serif;
font-size: 19px;
font-weight: 600;
}
.shot__loc {
font-size: 11px;
letter-spacing: 0.12em;
text-transform: uppercase;
color: rgba(246, 244, 239, 0.7);
}
.work__foot { margin-top: 40px; display: flex; justify-content: center; }
/* ===== TOAST ===== */
.toast {
position: fixed;
left: 50%;
bottom: 28px;
transform: translate(-50%, 24px);
z-index: 90;
padding: 13px 20px;
background: var(--paper);
color: var(--ink);
font-size: 13px;
font-weight: 600;
letter-spacing: 0.02em;
border-radius: 999px;
box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.7);
opacity: 0;
pointer-events: none;
transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .32s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
.strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
.nav__inner { padding: 0 18px; gap: 14px; }
.nav__links, #bookBtn { display: none; }
.nav__toggle { display: flex; }
.nav[data-solid="true"] .nav__mobile[data-open="true"],
.nav__mobile[data-open="true"] { display: flex; }
.hero__content { padding: 0 18px 16vh; }
.hero__actions .btn { flex: 1 1 auto; }
.scrollcue { display: none; }
.work { padding: 64px 18px 84px; }
.strip { grid-template-columns: 1fr; gap: 14px; }
.shot { aspect-ratio: 16 / 11; }
}(function () {
"use strict";
/* ---------- Toast helper ---------- */
var toastEl = document.getElementById("toast");
var toastTimer;
function toast(msg) {
if (!toastEl) return;
toastEl.textContent = msg;
toastEl.classList.add("show");
clearTimeout(toastTimer);
toastTimer = setTimeout(function () {
toastEl.classList.remove("show");
}, 2600);
}
/* ---------- Transparent -> solid nav via IntersectionObserver ---------- */
var nav = document.getElementById("nav");
var hero = document.getElementById("top");
if (nav && hero && "IntersectionObserver" in window) {
var io = new IntersectionObserver(
function (entries) {
entries.forEach(function (entry) {
// When the hero has scrolled mostly out of view, solidify the nav.
nav.setAttribute("data-solid", entry.isIntersecting ? "false" : "true");
});
},
{ rootMargin: "-72px 0px 0px 0px", threshold: 0 }
);
io.observe(hero);
} else if (nav) {
// Fallback: plain scroll listener.
window.addEventListener(
"scroll",
function () {
nav.setAttribute("data-solid", window.scrollY > 120 ? "true" : "false");
},
{ passive: true }
);
}
/* ---------- Mobile menu toggle ---------- */
var toggle = document.getElementById("navToggle");
var menu = document.getElementById("mobileMenu");
function closeMenu() {
if (!toggle || !menu) return;
toggle.setAttribute("aria-expanded", "false");
toggle.setAttribute("aria-label", "Open menu");
menu.setAttribute("data-open", "false");
menu.hidden = true;
}
function openMenu() {
if (!toggle || !menu) return;
toggle.setAttribute("aria-expanded", "true");
toggle.setAttribute("aria-label", "Close menu");
menu.setAttribute("data-open", "true");
menu.hidden = false;
}
if (toggle && menu) {
toggle.addEventListener("click", function () {
if (toggle.getAttribute("aria-expanded") === "true") closeMenu();
else openMenu();
});
menu.addEventListener("click", function (e) {
if (e.target.tagName === "A") closeMenu();
});
document.addEventListener("keydown", function (e) {
if (e.key === "Escape") closeMenu();
});
}
/* ---------- CTA / booking / contact actions ---------- */
var bookBtn = document.getElementById("bookBtn");
if (bookBtn) {
bookBtn.addEventListener("click", function () {
toast("Booking calendar is fictional — but the vibe is real.");
});
}
var contactBtn = document.getElementById("contactBtn");
if (contactBtn) {
contactBtn.addEventListener("click", function () {
toast("Print enquiry noted. We'd reply within two days.");
});
}
/* ---------- Shot cards: acknowledge selection ---------- */
var strip = document.getElementById("strip");
if (strip) {
strip.addEventListener("click", function (e) {
var card = e.target.closest(".shot");
if (!card) return;
e.preventDefault();
var name = card.getAttribute("data-shot") || "this frame";
toast("Opening “" + name + "” — full gallery coming soon.");
});
}
/* ---------- Reveal work section on first view ---------- */
var work = document.getElementById("work");
if (work && "IntersectionObserver" in window) {
var shots = work.querySelectorAll(".shot");
shots.forEach(function (s, i) {
s.style.opacity = "0";
s.style.transform = "translateY(24px)";
s.style.transition =
"opacity .6s ease " + i * 90 + "ms, transform .6s cubic-bezier(.2,.7,.2,1) " + i * 90 + "ms";
});
var revealer = new IntersectionObserver(
function (entries, obs) {
entries.forEach(function (entry) {
if (entry.isIntersecting) {
shots.forEach(function (s) {
s.style.opacity = "";
s.style.transform = "";
});
obs.disconnect();
}
});
},
{ threshold: 0.2 }
);
revealer.observe(work);
}
})();<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Aperture North — Photography Studio</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,[email protected],400;9..144,600&family=Inter:wght@400;500;600;700;800&display=swap"
rel="stylesheet" />
<link rel="stylesheet" href="style.css" />
</head>
<body>
<!-- ===== NAV ===== -->
<header class="nav" id="nav" data-solid="false">
<div class="nav__inner">
<a class="brand" href="#top" aria-label="Aperture North home">
<span class="brand__mark" aria-hidden="true"></span>
<span class="brand__name">Aperture North</span>
</a>
<nav class="nav__links" aria-label="Primary">
<a href="#work">Work</a>
<a href="#about">About</a>
<a href="#services">Services</a>
<a href="#contact">Contact</a>
</nav>
<button class="btn btn--ghost" id="bookBtn" type="button">Book a shoot</button>
<button class="nav__toggle" id="navToggle" type="button" aria-expanded="false"
aria-controls="mobileMenu" aria-label="Open menu">
<span></span><span></span><span></span>
</button>
</div>
<div class="nav__mobile" id="mobileMenu" hidden>
<a href="#work">Work</a>
<a href="#about">About</a>
<a href="#services">Services</a>
<a href="#contact">Contact</a>
</div>
</header>
<!-- ===== HERO ===== -->
<section class="hero" id="top">
<div class="hero__media" aria-hidden="true"></div>
<div class="hero__scrim" aria-hidden="true"></div>
<div class="hero__content">
<p class="eyebrow">Reykjavík · Est. 2014</p>
<h1 class="hero__title">Light,<br />held still.</h1>
<p class="hero__lede">
Aperture North is a two-person studio shooting editorial portraits, landscapes and
slow-travel stories across the far north.
</p>
<div class="hero__actions">
<a class="btn btn--solid" href="#work">View the work</a>
<a class="btn btn--line" href="#contact">Start a project</a>
</div>
</div>
<a class="scrollcue" href="#work" aria-label="Scroll to recent work">
<span class="scrollcue__label">Scroll</span>
<span class="scrollcue__line" aria-hidden="true"></span>
</a>
</section>
<!-- ===== RECENT WORK STRIP ===== -->
<section class="work" id="work">
<div class="work__head">
<p class="eyebrow">Selected · 2026</p>
<h2 class="work__title">Recent Work</h2>
<p class="work__sub">Four frames from the last season of shoots.</p>
</div>
<div class="strip" id="strip">
<a class="shot" href="#" data-shot="Highland Silence">
<span class="shot__img shot__img--1" aria-hidden="true"></span>
<span class="shot__grain" aria-hidden="true"></span>
<span class="shot__meta">
<span class="badge">Landscape</span>
<span class="shot__name">Highland Silence</span>
<span class="shot__loc">Þórsmörk · 35mm</span>
</span>
</a>
<a class="shot" href="#" data-shot="Harbour, 6am">
<span class="shot__img shot__img--2" aria-hidden="true"></span>
<span class="shot__grain" aria-hidden="true"></span>
<span class="shot__meta">
<span class="badge">Editorial</span>
<span class="shot__name">Harbour, 6am</span>
<span class="shot__loc">Ísafjörður · 50mm</span>
</span>
</a>
<a class="shot" href="#" data-shot="Wool & Salt">
<span class="shot__img shot__img--3" aria-hidden="true"></span>
<span class="shot__grain" aria-hidden="true"></span>
<span class="shot__meta">
<span class="badge">Portrait</span>
<span class="shot__name">Wool & Salt</span>
<span class="shot__loc">Studio · 85mm</span>
</span>
</a>
<a class="shot" href="#" data-shot="Long Exposure">
<span class="shot__img shot__img--4" aria-hidden="true"></span>
<span class="shot__grain" aria-hidden="true"></span>
<span class="shot__meta">
<span class="badge">Travel</span>
<span class="shot__name">Long Exposure</span>
<span class="shot__loc">Vestrahorn · 24mm</span>
</span>
</a>
</div>
<div class="work__foot">
<button class="btn btn--line" id="contactBtn" type="button">Enquire about a print</button>
</div>
</section>
<!-- ===== TOAST ===== -->
<div class="toast" id="toast" role="status" aria-live="polite"></div>
<script src="script.js"></script>
</body>
</html>A moody, image-first landing hero for a fictional photography studio, Aperture North. The viewport opens on a full-bleed cinematic photograph with a soft top-to-bottom gradient scrim so the studio wordmark, set in Fraunces, and the thin uppercase nav stay legible against any frame. A blinking scroll cue invites the visitor downward.
The navigation starts fully transparent over the photo and, driven by an IntersectionObserver,
snaps to a solid blurred bar the moment the hero scrolls out of view — no scroll-jank, no layout
shift. Below the fold, a “Recent Work” strip lays out four fictional shoots as full-bleed cards
that zoom their imagery and lift on hover, each carrying a thin uppercase category badge.
Every control is keyboard-reachable with a visible focus ring, the layout collapses to a single
column under 520px, and a small toast() helper acknowledges the contact and booking actions.
Drop in your own Unsplash URLs or gradient blocks and the whole thing is production-ready.