A free, open-source framework for cinematic, interactive 3D websites with AI-generated assets (Nano Banana 2 + Meshy 7.1 on fal). 20 example sites.
:root {
--bg: #050407;
--ink: #efeaf6;
--plat: #cdc8d8;
--muted: #8e889c;
--faint: rgba(239, 234, 246, .1);
--line: rgba(205, 200, 216, .18);
--violet: #9d6bff;
--violet-hi: #c3a4ff;
--display: 'Italiana', 'Didot', 'Bodoni 72', serif;
--caps: 'Cinzel', 'Trajan Pro', serif;
--sans: 'Jost', 'Futura', system-ui, sans-serif;
--gut: clamp(18px, 4.4vw, 64px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { font: 300 16px/1.65 var(--sans); background: var(--bg); overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: var(--violet); color: #0b0612; }
.cz { font-family: var(--caps); font-weight: 500; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; touch-action: pan-y; -webkit-touch-callout: none; user-select: none; }
.is-holding, .is-holding * { user-select: none; -webkit-user-select: none; }
/* ── loader: a stone that cracks open ───────────────────────────── */
.loader { position: fixed; inset: 0; z-index: 100; pointer-events: all; }
.loader-half { position: absolute; left: 0; right: 0; height: 50.2%; background: var(--bg); }
.loader-top { top: 0; } .loader-bot { bottom: 0; }
.loader-core { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--plat); }
.loader-stone { width: 132px; height: 132px; overflow: visible; }
.loader-crack { fill: none; stroke: var(--violet-hi); stroke-width: 1.1; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0));
filter: drop-shadow(0 0 4px rgba(157,107,255,.9)) drop-shadow(0 0 12px rgba(157,107,255,.5)); }
.loader-word { font: 400 30px/1 var(--display); letter-spacing: .5em; text-transform: uppercase; margin-right: -.5em; color: var(--ink); }
.loader-line { font: 500 10px/1 var(--caps); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.loader-pct { font-variant-numeric: tabular-nums; color: var(--plat); }
/* ── nav ─────────────────────────────────────────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
padding: 22px var(--gut); pointer-events: none; }
.nav > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 500 14px/1 var(--caps); letter-spacing: .42em; text-transform: uppercase; justify-self: start; }
.brand svg { width: 22px; height: 22px; color: var(--violet-hi); }
.links { display: flex; gap: 38px; }
.links a { text-decoration: none; font: 500 10.5px/1 var(--caps); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); transition: color .3s; position: relative; }
.links a::after { content: ''; position: absolute; left: 0; right: .26em; bottom: -8px; height: 1px; background: var(--violet); transform: scaleX(0); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.links a:hover { color: var(--ink); }
.links a:hover::after { transform: scaleX(1); }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 18px; }
.sound { display: inline-flex; align-items: flex-end; gap: 2px; height: 20px; padding: 0 4px; color: var(--muted); font: 500 10px/1 var(--caps); letter-spacing: .24em; text-transform: uppercase; }
.sound i { display: block; width: 2px; height: 4px; background: currentColor; transition: height .3s; }
.sound span { margin-left: 8px; line-height: 14px; }
.sound[aria-pressed="true"] { color: var(--violet-hi); }
.sound[aria-pressed="true"] i { animation: bar 1.1s ease-in-out infinite; }
.sound[aria-pressed="true"] i:nth-child(2) { animation-delay: -.4s; }
.sound[aria-pressed="true"] i:nth-child(3) { animation-delay: -.8s; }
@keyframes bar { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 24px; border-radius: 999px;
text-decoration: none; font: 500 10.5px/1 var(--caps); letter-spacing: .24em; text-transform: uppercase; white-space: nowrap;
transition: background .4s, color .4s, box-shadow .4s; }
.btn-ghost { box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); background: rgba(8, 6, 12, .35); backdrop-filter: blur(10px); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--violet); color: #fff; }
.btn-solid { background: linear-gradient(180deg, #f3eff9, #c9c3d6); color: #120d1a; box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset; }
.btn-solid:hover { background: linear-gradient(180deg, #fff, #ddd6ea); box-shadow: 0 0 44px rgba(157,107,255,.45); }
.btn-lg { height: 56px; padding: 0 34px; font-size: 11px; }
/* ── type ────────────────────────────────────────────────────────── */
.eyebrow { color: var(--violet-hi); margin-bottom: 22px; }
.h2 { font: 400 clamp(44px, 5.8vw, 96px)/.98 var(--display); letter-spacing: -.005em; }
.h2 em, .title em, .visit-title em { font-style: normal; color: var(--violet-hi); }
.lede { max-width: 30em; margin-top: 28px; font: 300 clamp(16px, 1.25vw, 19px)/1.62 var(--sans); color: #bdb7c9; }
.lede.strong { margin-top: 14px; color: var(--ink); font-weight: 400; }
/* ── hero ────────────────────────────────────────────────────────── */
main { position: relative; z-index: 2; pointer-events: none; }
main a, main button, main .spec-card, main .piece, main .prov-inner, main .visit-inner, main .foot { pointer-events: auto; }
.hero { position: relative; height: 100vh; min-height: 620px; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; text-align: center;
padding: 17vh var(--gut) 5.5vh; }
.hero .eyebrow { margin-bottom: 26px; }
.title { font: 400 clamp(54px, 9.2vw, 164px)/.9 var(--display); letter-spacing: -.012em; color: #f6f2fb;
text-shadow: 0 0 80px rgba(157, 107, 255, .16); }
.title .line { display: block; overflow: hidden; padding: .04em .06em .08em; }
.title .line > span { display: inline-block; }
.hero-foot { grid-row: 3; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; text-align: left; gap: 40px; }
.sub { max-width: 25em; font: 300 clamp(15px, 1.1vw, 17px)/1.6 var(--sans); color: #b8b2c4; }
.label { text-align: right; color: var(--muted); line-height: 2; font-size: 10px; }
.label b { color: var(--violet-hi); font-weight: 500; }
/* hotspot projected onto the geode seam */
.hotspot { position: fixed; left: 0; top: 0; z-index: 6; pointer-events: none; display: flex; align-items: center; gap: 14px; opacity: 0; transition: opacity .6s; will-change: transform; }
.hotspot.on { opacity: 1; }
.hotspot i { position: relative; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle, #fff 0 18%, var(--violet) 40%, transparent 72%); }
.hotspot i::before, .hotspot i::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(195,164,255,.7); animation: ping 2.2s cubic-bezier(.2,.7,.3,1) infinite; }
.hotspot i::after { animation-delay: 1.1s; }
@keyframes ping { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2.1); opacity: 0; } }
.hotspot span { color: var(--ink); white-space: nowrap; text-shadow: 0 1px 12px #000; }
/* ── crack ───────────────────────────────────────────────────────── */
.crack { position: relative; height: 190vh; padding: 0 var(--gut); }
.crack-copy { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; max-width: 34em; }
.hold-cta { display: flex; align-items: center; gap: 16px; margin-top: 42px; color: var(--plat); }
.hold-ring svg { width: 40px; height: 40px; transform: rotate(-90deg); overflow: visible; }
.hold-ring circle { fill: none; stroke: var(--line); stroke-width: 1; }
.hold-ring circle.p { stroke: var(--violet-hi); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--hold, 0)); filter: drop-shadow(0 0 4px var(--violet)); }
.reseal { align-self: flex-start; margin-top: 26px; color: var(--muted); font-size: 10px; border-bottom: 1px solid var(--line); padding-bottom: 6px; opacity: 0; pointer-events: none !important; transition: opacity .6s, color .3s; }
.is-open .reseal { opacity: 1; pointer-events: auto !important; }
.is-open .hold-cta { opacity: .35; }
.reseal:hover { color: var(--ink); }
/* ── collection ──────────────────────────────────────────────────── */
.collection { position: relative; }
.col-head { height: 70vh; display: grid; place-content: center; text-align: center; padding: 0 var(--gut); }
.spec { position: relative; height: 170vh; padding: 0 var(--gut); }
.spec-card { position: sticky; top: 50%; transform: translateY(calc(-50% + var(--ty, 0px))); will-change: transform, opacity; width: min(400px, 100%); padding: 34px 34px 34px;
background: linear-gradient(180deg, rgba(14, 11, 20, .62), rgba(8, 6, 12, .42)); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
box-shadow: inset 0 0 0 1px rgba(205, 200, 216, .12), 0 40px 80px -30px rgba(0,0,0,.9); border-radius: 2px; }
.spec-right .spec-card { margin-left: auto; }
.spec-card::before { content: ''; position: absolute; top: 0; left: 34px; right: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--violet), transparent); opacity: .7; }
.spec-num { display: flex; justify-content: space-between; color: var(--violet-hi); font-size: 10px; margin-bottom: 20px; }
.spec-num span:last-child { color: var(--muted); letter-spacing: .12em; text-transform: none; }
.spec-card h3 { font: 400 clamp(34px, 3vw, 46px)/1 var(--display); margin-bottom: 16px; }
.spec-desc { font-size: 14.5px; line-height: 1.65; color: #bab4c6; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 26px 0 28px; background: var(--faint); box-shadow: 0 0 0 1px var(--faint); }
.facts div { background: rgba(9, 7, 13, .85); padding: 13px 14px 12px; }
.facts dt { font: 500 9px/1 var(--caps); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.facts dd { font: 400 15px/1.3 var(--sans); color: var(--ink); }
.facts div:last-child dd { font: 400 21px/1.1 var(--display); color: var(--violet-hi); }
/* ── jewellery ───────────────────────────────────────────────────── */
.jewel { position: relative; overflow-x: clip; padding: 30vh var(--gut) 18vh; background: linear-gradient(180deg, rgba(5,4,7,0) 0%, rgba(5,4,7,.72) 24%, rgba(5,4,7,.78) 100%); }
.jewel-head { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px 60px; align-items: end; }
.jewel-head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.jewel-head .lede { margin: 0; }
.pieces { max-width: 1240px; margin: 90px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 40px); }
.piece-mid { transform: translateY(12vh); }
.piece-img { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #0b0910; box-shadow: 0 0 0 1px var(--faint); }
.piece-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s cubic-bezier(.2,.7,.2,1), filter 1s; filter: saturate(.95) brightness(.92); }
.piece:hover .piece-img img { transform: scale(1.1); filter: saturate(1.08) brightness(1.02); }
.piece figcaption { padding-top: 22px; display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: baseline; }
.piece-from { grid-column: 1 / -1; color: var(--violet-hi); font-size: 9.5px; margin-bottom: 6px; }
.piece h3 { font: 400 30px/1.05 var(--display); }
.piece-price { grid-row: 2; grid-column: 2; font: 400 16px/1 var(--sans); color: var(--plat); }
.piece figcaption p:not(.piece-from):not(.piece-price) { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
/* ── provenance ──────────────────────────────────────────────────── */
.prov { position: relative; overflow-x: clip; padding: 26vh var(--gut) 30vh; background: linear-gradient(180deg, rgba(5,4,7,.78) 0%, rgba(5,4,7,.3) 22%, rgba(5,4,7,.3) 70%, rgba(5,4,7,0) 100%); }
.prov-inner { max-width: 1240px; margin: 0 auto; }
.prov-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 90px); margin-top: 80px; align-items: start; }
.prov-photo { position: sticky; top: 16vh; }
.prov-photo img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; box-shadow: 0 0 0 1px var(--faint), 0 50px 100px -40px #000; filter: saturate(.9); }
.prov-photo figcaption { margin-top: 14px; color: var(--muted); font-size: 9.5px; }
.principles { list-style: none; display: grid; gap: 0; }
.principles { position: relative; }
.principles::before { content: ''; position: absolute; inset: -60px -40px; z-index: -1; background: radial-gradient(closest-side, rgba(5,4,7,.78), rgba(5,4,7,0)); pointer-events: none; }
.principles li { padding: 30px 0 34px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: 0 10px; text-shadow: 0 1px 18px rgba(0,0,0,.9); }
.principles li span { color: var(--violet-hi); grid-row: span 2; padding-top: 10px; }
.principles h3 { font: 400 32px/1.1 var(--display); margin-bottom: 10px; }
.principles p { color: #b1abbd; font-size: 15px; max-width: 30em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 110px; padding-top: 44px; border-top: 1px solid var(--line); }
.stats b { display: block; font: 400 clamp(64px, 7vw, 120px)/.9 var(--display); color: var(--ink); }
.stats span { display: block; margin-top: 14px; color: var(--muted); font-size: 10px; }
/* ── visit & footer ──────────────────────────────────────────────── */
.visit { position: relative; min-height: 130vh; display: grid; place-items: end center; text-align: center; padding: 30vh var(--gut) 14vh; }
.visit-inner { display: grid; justify-items: center; }
.visit-title { font: 400 clamp(52px, 8vw, 150px)/.92 var(--display); letter-spacing: -.01em; text-shadow: 0 10px 60px rgba(0,0,0,.8); }
.visit .lede { margin: 30px auto 0; text-shadow: 0 1px 20px #000; }
.visit-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 44px; }
.foot { position: relative; background: var(--bg); padding: 70px var(--gut) 90px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.foot-brand .cz { display: block; font-size: 15px; letter-spacing: .42em; color: var(--ink); margin-bottom: 14px; }
.fine { margin-top: 70px; color: #5f596c; font-size: 9px; letter-spacing: .2em; }
/* ── overlays ────────────────────────────────────────────────────── */
.press { position: fixed; left: 0; top: 0; z-index: 40; width: 80px; height: 80px; margin: -40px 0 0 -40px; pointer-events: none; opacity: 0; transition: opacity .3s; display: grid; place-items: center; }
.press svg { position: absolute; inset: 0; transform: rotate(-90deg); overflow: visible; }
.press circle { fill: none; stroke: rgba(239,234,246,.28); stroke-width: 1; }
.press circle.p { stroke: var(--violet-hi); stroke-width: 1.8; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--hold, 0)); filter: drop-shadow(0 0 6px var(--violet)); }
.press span { color: var(--ink); font-size: 9px; letter-spacing: .3em; margin-right: -.3em; }
.press.on { opacity: 1; }
.toast { position: fixed; left: 50%; bottom: 5.5vh; z-index: 30; transform: translate(-50%, 16px); padding: 15px 26px; border-radius: 999px; font-size: 10px;
background: rgba(12, 9, 18, .72); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(157,107,255,.35); color: var(--ink);
opacity: 0; transition: opacity .6s, transform .6s; pointer-events: none; white-space: nowrap; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.light-hint { position: fixed; right: var(--gut); top: 50%; z-index: 8; writing-mode: vertical-rl; color: var(--muted); font-size: 9.5px; opacity: 0; transition: opacity 1s; pointer-events: none; }
.light-hint::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-bottom: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 2px var(--violet); }
.light-hint.on { opacity: 1; }
/* custom cursor: a small light source */
.tw-cursor .tw-cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: #fff; box-shadow: 0 0 12px 3px rgba(195,164,255,.85), 0 0 28px 8px rgba(157,107,255,.35); }
.is-holding .tw-cursor { opacity: 0; }
@media (max-width: 900px) {
.nav { grid-template-columns: 1fr auto; padding: 16px 18px; }
.links, .sound span { display: none; }
.nav .btn { height: 36px; padding: 0 16px; font-size: 9.5px; }
.hero { padding-top: 15vh; padding-bottom: 12vh; }
.title { font-size: clamp(46px, 13.4vw, 90px); }
.hero-foot { flex-direction: column; align-items: flex-start; gap: 18px; }
.label { display: none; }
.crack { height: 170vh; }
.crack-copy { justify-content: flex-start; padding-top: 14vh; }
.crack-copy .lede { font-size: 15px; margin-top: 18px; }
.spec { height: 150vh; }
.spec-card { position: fixed; top: auto; left: 16px; right: 16px; bottom: 64px; width: auto; margin: 0 !important; transform: translateY(var(--ty, 0px)); padding: 20px 20px 22px; }
.spec-desc { display: none; }
.facts { margin: 14px 0 16px; }
.facts div { padding: 10px 12px 9px; }
.spec-card .btn { height: 40px; }
.spec-card h3 { font-size: 32px; margin-bottom: 4px; }
.jewel-head, .prov-grid { grid-template-columns: 1fr; }
.pieces { grid-template-columns: 1fr; gap: 50px; }
.piece-mid { transform: none; }
.prov-photo { position: relative; top: 0; }
.stats { grid-template-columns: 1fr; gap: 26px; }
.foot-grid { grid-template-columns: 1fr 1fr; }
.light-hint { display: none; }
.toast { white-space: normal; width: calc(100vw - 36px); text-align: center; top: 74px; bottom: auto; }
}