Skip to content

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.

20.8 KB
Raw Blame
:root {
  --ivory: #f3efe7;
  --paper: #ece6db;
  --navy: #16213d;
  --ink: #1a2440;
  --ink-2: rgba(29, 35, 48, .86);
  --ink-3: rgba(29, 35, 48, .62);
  --line: rgba(22, 33, 61, .14);
  --rose: #c89b6d;
  --rose-deep: #9a6a41;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --pad: clamp(18px, 4.2vw, 64px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ivory); color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html.lenis, html.lenis body { height: auto; }
body { font: 400 19px/1.5 var(--serif); background: transparent; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; font-weight: 300; color: var(--rose-deep); }
.caps { font-family: var(--sans); font-size: 10.5px; line-height: 1.5; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; }
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; touch-action: pan-y; }
main { position: relative; z-index: 2; pointer-events: none; }
main a, main button, .nav, .reserve, .foot { pointer-events: auto; }

/* ─── Loader ─────────────────────────────────────────────── */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--ivory); display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--navy); }
.loader-gauge { width: 190px; height: 190px; overflow: visible; }
.lg-track { fill: none; stroke: var(--line); stroke-width: 1; }
.lg-fill { fill: none; stroke: var(--rose); stroke-width: 1.6; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 100px 100px;
  stroke-dasharray: 540.35; stroke-dashoffset: calc(540.35 * (1 - var(--p, 0))); transition: stroke-dashoffset .2s linear; }
.lg-ticks line { stroke: var(--ink-3); stroke-width: .8; }
.lg-balance { transform-origin: 100px 100px; animation: balance .25s cubic-bezier(.45, 0, .55, 1) infinite alternate; color: var(--navy); }
.lg-spring { color: var(--rose-deep); opacity: .8; transform-origin: 100px 100px; animation: breathe .25s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
@keyframes balance { from { transform: rotate(-150deg); } to { transform: rotate(150deg); } }
@keyframes breathe { from { transform: rotate(-40deg) scale(.96); } to { transform: rotate(40deg) scale(1.04); } }
.loader-h { font: 300 44px/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; margin-top: 8px; }
.loader-h small { font-size: 20px; margin-left: 4px; color: var(--ink-3); }
.loader-line { color: var(--ink-3); }

/* ─── 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: 20px var(--pad); color: var(--navy); pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav { transition: color .5s; }
.nav.on-dark { color: #f3efe7; } .nav.on-dark .links a, .nav.on-dark .sound, .nav.on-dark .brand-sub { color: rgba(243, 239, 231, .72); }
.nav.on-dark .btn-line { color: #f3efe7; box-shadow: inset 0 0 0 1px rgba(243, 239, 231, .4); background: rgba(22, 33, 61, .3); }
.brand { display: flex; align-items: center; gap: 12px; justify-self: start; }
.brand svg { width: 28px; height: 28px; color: var(--rose-deep); }
.brand-name { font: 500 27px/1 var(--serif); letter-spacing: .08em; }
.brand-sub { color: var(--ink-3); font-size: 9px; padding-left: 12px; border-left: 1px solid var(--line); }
.links { display: flex; gap: 36px; }
.links a { font: 500 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); position: relative; padding: 6px 0; transition: color .3s; }
.links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rose); transform: scaleX(0); transform-origin: right; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.links a:hover { color: var(--navy); }
.links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-r { justify-self: end; display: flex; align-items: center; gap: 22px; }
.sound { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 9.5px; }
.sound i { width: 16px; height: 10px; background: linear-gradient(90deg, currentColor 0 1px, transparent 1px 3px) 0 50% / 3px 100% repeat-x; opacity: .7;
  -webkit-mask: linear-gradient(0deg, #000 0 100%); animation: eq 1s steps(4) infinite; }
.sound[aria-pressed="false"] i { animation: none; transform: scaleY(.25); }
@keyframes eq { 0% { transform: scaleY(.4); } 50% { transform: scaleY(1); } 100% { transform: scaleY(.6); } }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 26px; border-radius: 999px; white-space: nowrap;
  font: 500 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; transition: background .4s, color .4s, box-shadow .4s; }
.btn-line { box-shadow: inset 0 0 0 1px rgba(22, 33, 61, .32); color: var(--navy); background: rgba(243, 239, 231, .5); backdrop-filter: blur(10px); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--navy); background: var(--navy); color: var(--ivory); }
.btn-solid { background: var(--navy); color: var(--ivory); }
.btn-solid:hover { background: #22305a; box-shadow: 0 16px 40px -12px rgba(22, 33, 61, .45); }
.btn-text { display: inline-flex; gap: 10px; align-items: center; color: var(--navy); padding: 8px 0; border-bottom: 1px solid var(--rose); }

/* ─── Hero ───────────────────────────────────────────────── */
.hero { position: relative; height: 100vh; min-height: 640px; padding: 0 var(--pad); display: grid; align-content: center; }
.hero-inner { max-width: min(720px, 50vw); margin-top: 2vh; }
.eyebrow { color: var(--rose-deep); margin-bottom: 26px; }
.hero-title { font: 300 clamp(48px, 6.2vw, 112px)/.93 var(--serif); letter-spacing: -.028em; color: var(--navy); }
.hero-title .ln { display: block; }
.hero-title em { color: var(--rose-deep); font-weight: 300; }
.hero-lede { max-width: 25em; margin: 30px 0 38px; font-size: clamp(18px, 1.35vw, 21px); line-height: 1.5; color: var(--ink-2); }
.hero-cta { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.hero-spec { position: absolute; right: var(--pad); bottom: 40px; display: flex; gap: 44px; color: var(--ink-2); }
.hero-spec dt { color: var(--ink-3); font-size: 9px; margin-bottom: 4px; }
.hero-spec dd { color: var(--navy); }
.hint { position: absolute; left: var(--pad); bottom: 82px; color: var(--ink-3); display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.hint-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 0 rgba(200, 155, 109, .6); animation: ping 2s infinite; display: inline-block; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(200, 155, 109, .55); } 80%, 100% { box-shadow: 0 0 0 12px rgba(200, 155, 109, 0); } }

/* ─── Pinned stages ──────────────────────────────────────── */
.calibre { height: 860vh; position: relative; }
.finishing { height: 480vh; position: relative; }
.collection { height: 380vh; position: relative; }
.atelier { height: 230vh; position: relative; }
.stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
[data-k] { --v: 0; }
.step, .fin, .fin-head, .col-head, .refs, .refs-head, .at, .cta-inner { opacity: var(--v); transform: translate3d(0, calc((1 - var(--v)) * 22px), 0); visibility: hidden; }
.is-v { visibility: visible; }
.step { position: absolute; left: var(--pad); top: 50%; margin-top: -200px; width: min(430px, 33vw); }
.fig { color: var(--rose-deep); margin-bottom: 20px; display: flex; align-items: center; gap: 14px; }
.fig::before { content: ''; width: 28px; height: 1px; background: var(--rose); }
h2 { font: 300 clamp(38px, 3.9vw, 66px)/.98 var(--serif); letter-spacing: -.022em; color: var(--navy); margin-bottom: 22px; }
.step p:not(.fig):not(.step-hint) { color: var(--ink-2); font-size: clamp(17px, 1.25vw, 20px); }
.spec { list-style: none; display: flex; gap: 28px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 9px; }
.spec b { display: block; font: 400 26px/1 var(--serif); letter-spacing: 0; color: var(--navy); margin-bottom: 6px; text-transform: none; }
.step-hint { margin-top: 26px; color: var(--navy); display: flex; align-items: center; gap: 12px; }
.rail { position: absolute; left: calc(var(--pad) * .38); top: 50%; transform: translateY(-50%); list-style: none; display: grid; gap: 14px; color: var(--ink-3); font-size: 9px; opacity: var(--rail, 0); transition: opacity .5s; }
.rail li { position: relative; transition: color .4s; }
.rail li.on { color: var(--navy); }
.rail li.on::before { content: ''; position: absolute; left: -12px; top: 50%; width: 5px; height: 5px; margin-top: -3px; border-radius: 50%; background: var(--rose); }

/* copy stays legible when metal passes behind it */
.stage h2, .stage p, .cta h2, .cta p { text-shadow: 0 0 16px rgba(243, 239, 231, .92), 0 0 3px rgba(243, 239, 231, .75); }

/* finishing */
.fin-head { position: absolute; left: var(--pad); top: 13vh; width: min(560px, 42vw); padding: 26px 30px 6px; background: rgba(243, 239, 231, .74); backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: inset 0 0 0 1px rgba(22, 33, 61, .1), 0 30px 70px -40px rgba(22, 33, 61, .45); }
.fin { position: absolute; left: var(--pad); bottom: 11vh; width: min(420px, 34vw); padding: 28px 30px 30px; background: rgba(243, 239, 231, .72); backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: inset 0 0 0 1px rgba(22, 33, 61, .1), 0 30px 70px -40px rgba(22, 33, 61, .45); }
.fin h3 { font: 400 34px/1 var(--serif); color: var(--navy); margin: 16px 0 12px; }
.fin p { color: var(--ink-2); font-size: 18px; }
.fin-n { display: flex; align-items: baseline; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.fin-n b { font: 300 46px/1 var(--serif); color: var(--rose-deep); }
.fin-n span { color: var(--ink-3); font-size: 9px; }

/* collection */
.col-head { position: absolute; left: 50%; bottom: 8vh; width: min(760px, 86vw); margin-left: calc(min(760px, 86vw) / -2); text-align: center; }
.col-head h2 { margin-bottom: 16px; }
.col-head .fig { justify-content: center; }
.col-head .fig::after { content: ''; width: 28px; height: 1px; background: var(--rose); }
.col-head p:not(.fig) { color: var(--ink-2); max-width: 36em; margin: 0 auto; }
.refs { position: absolute; left: var(--pad); right: var(--pad); bottom: 7vh; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3vw; }
.refs-head { position: absolute; left: 0; right: 0; top: 12vh; text-align: center; }
.refs-head .fig { justify-content: center; }
.refs-head .fig::after { content: ''; width: 28px; height: 1px; background: var(--rose); }
.ref { text-align: center; padding-top: 18px; border-top: 1px solid var(--line); }
.ref-n { color: var(--ink-3); font-size: 9px; }
.ref h3 { font: 300 40px/1 var(--serif); color: var(--navy); margin: 10px 0 8px; font-style: italic; }
.ref p:not(.caps):not(.price) { color: var(--ink-2); font-size: 16.5px; max-width: 22em; margin: 0 auto; line-height: 1.4; }
.price { margin-top: 12px; font: 500 11px/1 var(--sans); letter-spacing: .22em; color: var(--rose-deep); }

/* atelier */
.at { position: absolute; left: var(--pad); top: 50%; transform: translate3d(0, calc(-50% + (1 - var(--v)) * 22px), 0); width: min(520px, 40vw); }
.at > p:not(.fig):not(.bench) { color: var(--ink-2); font-size: clamp(17px, 1.3vw, 20px); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 30px; margin: 34px 0 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.stats dt { font: 300 58px/1 var(--serif); color: var(--navy); letter-spacing: -.02em; }
.stats dd { color: var(--ink-3); font-size: 9px; margin-top: 8px; }
.bench { color: var(--ink-3); font-size: 9px; line-height: 2; }

/* cta + footer */
.cta { position: relative; height: 110vh; display: grid; align-content: center; padding: 0 var(--pad); }
.cta-inner { width: min(560px, 44vw); }
.cta-inner > p:not(.fig) { color: var(--ink-2); max-width: 27em; }
.cta-inner h2 { font-size: clamp(44px, 5vw, 84px); }
.cta-row { display: flex; gap: 34px; align-items: center; margin-top: 36px; flex-wrap: wrap; }
.foot { position: relative; background: var(--navy); color: #e9e3d7; padding: 12vh var(--pad) 90px; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; border-bottom: 1px solid rgba(233, 227, 215, .16); padding-bottom: 50px; }
.foot-word { font: 300 clamp(90px, 16vw, 260px)/.8 var(--serif); letter-spacing: -.04em; color: #f3efe7; }
.foot-line { font: 300 clamp(24px, 2.4vw, 38px)/1.1 var(--serif); color: rgba(233, 227, 215, .8); }
.foot-line em { color: var(--rose); }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 40px; color: rgba(233, 227, 215, .56); font-size: 9.5px; line-height: 2.1; }
.foot-cols a:hover { color: #fff; }

/* ─── Hero dial scale (anchored to the 3D watch) ─────────── */
.orbit { position: fixed; left: 0; top: 0; width: 400px; height: 400px; z-index: 1; pointer-events: none; transform-origin: 0 0; opacity: 0; overflow: visible; }
.ob-c { fill: none; stroke: rgba(22, 33, 61, .16); stroke-width: .6; }
.ob-ticks line { stroke: rgba(22, 33, 61, .28); stroke-width: .5; }
.ob-ticks line.b { stroke: var(--rose-deep); stroke-width: .8; }
.ob-rot { transform-origin: 200px 200px; }
.ob-dot { fill: var(--rose); }
.ob-t { font: 500 7px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; fill: rgba(22, 33, 61, .42); }

/* ─── 3D-anchored labels ─────────────────────────────────── */
.labels { position: fixed; inset: 0; z-index: 6; pointer-events: none; }
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.leaders path { fill: none; stroke: rgba(22, 33, 61, .5); stroke-width: 1; }
.leaders circle.dot { fill: var(--navy); }
.leaders circle.ring { fill: none; stroke: rgba(22, 33, 61, .4); stroke-width: 1; }
.label { position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform, opacity; opacity: 0; }
.leaders path, .leaders circle { opacity: 0; }
.label b { display: block; font: 600 9.5px/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--navy); }
.label span { display: block; font: italic 400 17px/1.25 var(--serif); color: var(--rose-deep); margin-top: 3px; }
.label.r { text-align: left; } .label.l { text-align: right; }

/* ─── Winding ────────────────────────────────────────────── */
.crown-hint { position: fixed; left: 0; top: 0; z-index: 7; pointer-events: none; opacity: 0; transition: opacity .5s; }
.crown-hint.on { opacity: 1; }
.crown-hint i { position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--rose-deep); animation: crownPing 1.8s cubic-bezier(.2, .8, .2, 1) infinite; }
.crown-hint span { position: absolute; left: 36px; top: -7px; color: var(--navy); white-space: nowrap; }
.crown-hint b { position: absolute; left: -44px; top: -44px; width: 88px; height: 88px; border-radius: 50%; opacity: 0; transform: scale(.7);
  background: repeating-conic-gradient(from 0deg, var(--rose-deep) 0 1.2deg, transparent 1.2deg 12deg);
  -webkit-mask: radial-gradient(circle, transparent 36px, #000 37px, #000 43px, transparent 44px); mask: radial-gradient(circle, transparent 36px, #000 37px, #000 43px, transparent 44px);
  transition: opacity .35s, transform .5s cubic-bezier(.2, .8, .2, 1); animation: crownTurn 1.1s linear infinite paused; }
.crown-hint.winding b { opacity: 1; transform: none; animation-play-state: running; }
.crown-hint.winding i { animation-duration: .7s; }
.crown-hint.winding span { left: 54px; color: var(--rose-deep); font-variant-numeric: tabular-nums; }
@keyframes crownTurn { to { transform: rotate(-360deg); } }
@keyframes crownPing { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.reserve { position: fixed; left: var(--pad); bottom: 66px; z-index: 12; display: flex; align-items: center; gap: 16px; opacity: 0; transform: translateY(12px); transition: opacity .6s, transform .6s; pointer-events: none; }
.reserve.on { opacity: 1; transform: none; pointer-events: auto; }
.reserve-btn { position: relative; width: 92px; height: 92px; border-radius: 50%; background: rgba(243, 239, 231, .7); backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px -26px rgba(22, 33, 61, .5), inset 0 0 0 1px rgba(22, 33, 61, .1); touch-action: none; -webkit-user-select: none; user-select: none; transition: transform .3s; }
.reserve-btn:active, .reserve.holding .reserve-btn { transform: scale(.96); }
.reserve-btn svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rv-track { fill: none; stroke: var(--line); stroke-width: 2; }
.rv-fill { fill: none; stroke: var(--rose); stroke-width: 2.4; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 60px 60px; stroke-dasharray: 314.16; stroke-dashoffset: calc(314.16 * (1 - var(--w, .3))); }
.rv-ticks line { stroke: var(--ink-3); stroke-width: 1; }
.rv-val { position: absolute; inset: 0; display: grid; place-content: center; grid-auto-flow: column; align-items: baseline; font: 300 30px/1 var(--serif); color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
.rv-val small { font-size: 15px; color: var(--ink-3); margin-left: 2px; }
.rv-label { display: grid; gap: 4px; color: var(--ink-3); font-size: 9px; }
.rv-label em { font: italic 400 17px/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--rose-deep); }
.reserve.full .rv-fill { stroke: var(--navy); }
.toast { position: fixed; left: 50%; bottom: 44px; z-index: 40; transform: translate(-50%, 16px); padding: 14px 24px; border-radius: 999px; background: var(--navy); color: var(--ivory);
  opacity: 0; transition: opacity .5s, transform .5s; pointer-events: none; white-space: nowrap; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .links, .brand-sub, .sound span { display: none; }
  .nav { grid-template-columns: 1fr auto; padding: 16px 18px; }
  .nav .btn { height: 38px; padding: 0 16px; font-size: 9px; letter-spacing: .16em; }
  .hero { align-content: start; padding-top: 16vh; }
  .hero-inner { max-width: none; }
  .hero-title { font-size: clamp(42px, 12vw, 64px); }
  .hero-lede { font-size: 17px; margin: 18px 0 22px; max-width: 21em; }
  .hero-spec { display: none; }
  .hero-cta { gap: 22px; } .hero-cta .btn-text { display: none; }
  .hint { display: none; }
  .step, .fin, .at { left: 18px; right: 18px; width: auto; top: auto; bottom: 70px; margin-top: 0; }
  .step { padding: 22px 20px; background: rgba(243, 239, 231, .78); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line); }
  .step h2, .at h2 { font-size: 32px; margin-bottom: 12px; }
  .step p:not(.fig):not(.step-hint) { font-size: 16px; line-height: 1.4; }
  .step .spec { display: none; }
  .fin { padding: 20px; bottom: 70px; } .fin h3 { font-size: 28px; } .fin p { font-size: 16px; }
  .fin-head { top: 11vh; left: 18px; right: 18px; width: auto; } .fin-head h2 { font-size: 34px; }
  .rail { display: none; }
  .col-head { bottom: 76px; } .col-head h2 { font-size: 32px; } .col-head p:not(.fig) { font-size: 16px; }
  .refs { grid-template-columns: 1fr; gap: 10px; bottom: 76px; }
  .refs-head { top: 10vh; } .refs-head h2 { font-size: 34px; }
  .ref { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 12px; text-align: left; padding-top: 10px; }
  .ref h3 { font-size: 26px; margin: 0; order: -1; } .ref p:not(.caps):not(.price) { display: none; } .price { margin: 0; }
  .at { top: auto; transform: translate3d(0, calc((1 - var(--v)) * 22px), 0); bottom: 70px; padding: 20px; background: rgba(243, 239, 231, .8); backdrop-filter: blur(12px); }
  .at > p:not(.fig):not(.bench) { display: none; }
  .stats { margin: 16px 0 0; padding-top: 16px; gap: 14px; } .stats dt { font-size: 38px; }
  .bench { display: none; }
  .cta { align-content: end; padding-bottom: 12vh; }
  .cta-inner { width: auto; }
  .cta-inner h2 { font-size: 40px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .reserve { left: auto; right: 16px; bottom: auto; top: 76px; }
  .reserve-btn { width: 76px; height: 76px; } .rv-val { font-size: 24px; } .rv-label { display: none; }
  .label span { font-size: 14px; } .label b { font-size: 8.5px; }
}