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.

14.9 KB
Raw Blame
:root {
  --bg: #050404;
  --ink: #efe6d5;
  --muted: #9a8f7e;
  --dim: #6d6457;
  --gold: #d8b56a;
  --gold-hi: #f1d79c;
  --amber: #c06a1f;
  --line: rgba(216, 181, 106, .18);
  --faint: rgba(239, 230, 213, .1);
  --display: 'Bodoni Moda', 'Didot', 'Times New Roman', serif;
  --label: 'Italiana', 'Bodoni Moda', serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --pad: clamp(18px, 4.2vw, 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: 400 16px/1.6 var(--sans); background: var(--bg); overflow-x: hidden; touch-action: pan-y; }
a { color: inherit; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
em { font-style: italic; }
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; }

/* loader */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-content: center; justify-items: center; gap: 18px; }
.ld-flacon svg { width: 64px; height: 96px; overflow: visible; }
.ld-glass { fill: none; stroke: rgba(239,230,213,.45); stroke-width: 1; }
.ld-cap { fill: none; stroke: var(--gold); stroke-width: 1; }
.ld-liquid { fill: #b0621d; }
.ld-word { font: 400 30px/1 var(--label); letter-spacing: .42em; text-transform: uppercase; margin-right: -.42em; color: var(--ink); margin-top: 10px; }
.ld-line { font: 400 italic 15px/1 var(--display); color: var(--muted); letter-spacing: .02em; }
.ld-pct { font-variant-numeric: tabular-nums; }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px var(--pad); pointer-events: none; }
.nav > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 400 17px/1 var(--label); letter-spacing: .38em; text-transform: uppercase; justify-self: start; }
.brand svg { width: 14px; height: 20px; color: var(--gold); }
.links { display: flex; gap: 40px; }
.links a { text-decoration: none; font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.links a:hover { color: var(--gold-hi); }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 22px; }
.bag { font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.bag b { color: var(--gold); font-weight: 500; margin-left: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 24px; border-radius: 999px;
  text-decoration: none; font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  transition: background .4s, color .4s, box-shadow .4s; }
.btn-ghost { box-shadow: inset 0 0 0 1px rgba(216,181,106,.4); color: var(--ink); background: rgba(8,7,6,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold-hi); }
.btn-solid { background: linear-gradient(180deg, #e7c985, #c9a258); color: #1a1208; box-shadow: 0 10px 40px -12px rgba(216,181,106,.5), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-solid:hover { background: linear-gradient(180deg, #f3d99c, #d6ae62); box-shadow: 0 10px 50px -8px rgba(216,181,106,.7), inset 0 1px 0 rgba(255,255,255,.45); }
.btn-text { padding: 0 6px; color: var(--ink); height: 46px; }
.btn-text::after { content: ''; width: 26px; height: 1px; background: var(--gold); transition: width .4s; }
.btn-text:hover::after { width: 42px; }

/* gauge */
.gauge { position: fixed; right: var(--pad); top: 50%; transform: translateY(-50%); z-index: 8; display: grid; justify-items: end; gap: 14px;
  opacity: 0; transition: opacity .8s; pointer-events: none; }
.is-story .gauge { opacity: 1; }
.gauge-title { font: 400 13px/1.25 var(--label); letter-spacing: .24em; text-transform: uppercase; text-align: right; color: var(--muted); }
.gauge-title em { font: italic 400 14px/1 var(--display); letter-spacing: .02em; text-transform: none; color: var(--gold); }
.gauge-bar { position: relative; width: 1px; height: 34vh; background: rgba(239,230,213,.14); }
.gauge-fill { position: absolute; left: -1px; right: -1px; bottom: 0; height: calc(var(--fill, 0) * 100%); background: linear-gradient(0deg, #8a3e0c, var(--gold)); box-shadow: 0 0 12px rgba(216,140,60,.6); }
.gauge-tick { position: absolute; right: 12px; bottom: calc(var(--y) * 100% - 6px); font: 500 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  color: var(--dim); white-space: nowrap; transition: color .6s; }
.gauge-tick::after { content: ''; position: absolute; right: -16px; top: 50%; width: 7px; height: 1px; background: currentColor; }
.gauge-tick.on { color: var(--gold-hi); }
.gauge-pct { font: 400 italic 20px/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }

/* hero */
.hero { position: relative; height: 100vh; min-height: 620px; z-index: 2; pointer-events: none; }
.hero-eyebrow { position: absolute; left: var(--pad); top: calc(88px + 4vh); display: flex; align-items: center; gap: 14px;
  font: 500 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.hero-eyebrow .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.hero-foot { position: absolute; left: var(--pad); right: var(--pad); bottom: 7vh; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.hero-copy { max-width: 470px; pointer-events: auto; }
.hero-line { font: 400 clamp(24px, 2.3vw, 36px)/1.12 var(--display); letter-spacing: -.01em; color: var(--ink); }
.hero-line em { color: var(--gold-hi); }
.hero-sub { margin-top: 16px; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 30em; }
.hero-cta { display: flex; gap: 14px; align-items: center; margin-top: 26px; }
.hint { display: flex; align-items: center; gap: 16px; font: 400 13px/1.45 var(--sans); color: var(--muted); text-align: left; transition: opacity .8s; }
.hint b { color: var(--ink); font-weight: 500; }
.hint-ico { width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(216,181,106,.45); position: relative; flex: none; }
.hint-ico i { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--gold); animation: nudge 2.6s cubic-bezier(.6,0,.3,1) infinite; box-shadow: 0 0 14px var(--gold); }
@keyframes nudge { 0%, 100% { transform: translateX(-9px); } 50% { transform: translateX(9px); } }
.has-tilted .hint { opacity: .35; }
.scroll-cue { position: absolute; left: 50%; bottom: 2.6vh; transform: translateX(-50%); font: 400 italic 13px/1 var(--display); color: var(--dim); letter-spacing: .04em; white-space: nowrap; }
.scroll-cue::before { content: ''; position: absolute; left: 50%; bottom: calc(100% + 10px); width: 1px; height: 26px; background: linear-gradient(transparent, var(--gold)); animation: drip 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* note sections */
.note { position: relative; height: 240vh; z-index: 2; pointer-events: none; }
.note-pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding: 0 var(--pad); }
.note[data-side="right"] .note-pin { justify-content: flex-end; padding-right: calc(var(--pad) + 108px); }
.note-card { width: min(450px, 38vw); opacity: 0; will-change: opacity, transform; }
.note-kicker { display: flex; align-items: center; gap: 12px; font: 500 10.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.note-kicker .roman { font: 400 22px/1 var(--label); letter-spacing: .1em; color: var(--gold); margin-right: 4px; }
.note-kicker .rule { width: 28px; height: 1px; background: var(--line); }
.note h2 { font: 400 clamp(52px, 6.2vw, 104px)/.92 var(--display); letter-spacing: -.03em; }
.note h2 em { display: block; font-size: .5em; letter-spacing: -.01em; color: var(--gold-hi); margin-top: .18em; }
.latin { margin-top: 18px; font: 400 italic 15px/1.4 var(--display); color: var(--muted); }
.note-body { margin-top: 24px; font-size: 16px; line-height: 1.7; color: #cdc2b0; max-width: 29em; }
.facts { display: grid; grid-template-columns: repeat(3, auto); gap: 0 30px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); justify-content: start; }
.facts dt { font: 500 9.5px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.facts dd { margin-top: 8px; font: 400 18px/1.2 var(--display); color: var(--ink); }

/* house */
.kicker { font: 500 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 26px; }
.house { position: relative; z-index: 2; min-height: 190vh; padding: 26vh var(--pad) 22vh; pointer-events: none; }
.house-inner { max-width: 1320px; margin: 0 auto; }
.house h2, .shop h2 { font: 400 clamp(56px, 7.4vw, 124px)/.9 var(--display); letter-spacing: -.035em; max-width: 7.5em; }
.house h2 em, .shop h2 em { color: var(--gold-hi); }
.lede { max-width: 31em; margin-top: 40px; font: 400 clamp(17px, 1.35vw, 20px)/1.65 var(--sans); color: #cabfad; }
.lede-2 { margin-top: 20px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; margin-top: 44vh; padding-top: 34px; border-top: 1px solid var(--line); }
.stats b { display: block; font: 400 clamp(46px, 4.6vw, 76px)/1 var(--display); letter-spacing: -.03em; color: var(--gold-hi); font-variant-numeric: lining-nums; }
.stats span { display: block; margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 17em; }

/* shop */
.shop { position: relative; z-index: 2; min-height: 150vh; padding: 22vh var(--pad) 20vh; pointer-events: none; }
.shop-inner { max-width: 1320px; margin: 0 auto; }
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 330px)); gap: 20px; margin-top: 60px; }
.product { pointer-events: auto; padding: 30px 28px 28px; border-radius: 3px; display: grid; gap: 18px; align-content: start;
  background: linear-gradient(180deg, rgba(20,16,12,.72), rgba(10,8,7,.55)); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 0 0 1px var(--faint), 0 40px 80px -30px rgba(0,0,0,.9); }
.product-lit { box-shadow: inset 0 0 0 1px rgba(216,181,106,.45), 0 40px 80px -30px rgba(0,0,0,.9);
  background: radial-gradient(130% 80% at 50% -10%, rgba(216,160,80,.16), transparent 60%), linear-gradient(180deg, rgba(20,16,12,.78), rgba(10,8,7,.6)); }
.product header { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.product h3 { font: 400 25px/1.1 var(--display); letter-spacing: -.01em; }
.price { font: 400 italic 26px/1 var(--display); color: var(--gold-hi); }
.product > p { font-size: 14.5px; line-height: 1.6; color: #bfb4a2; }
.product ul { list-style: none; display: grid; gap: 8px; font-size: 13.5px; color: var(--muted); }
.product li::before { content: ''; display: inline-block; width: 12px; height: 1px; background: var(--gold); vertical-align: middle; margin-right: 12px; }
.product .btn { justify-self: start; margin-top: 6px; }
.fine { margin-top: 28px; font: 400 italic 15px/1.5 var(--display); color: var(--dim); }

/* footer */
.foot { position: relative; z-index: 4; background: linear-gradient(180deg, rgba(5,4,4,0), var(--bg) 26vh); padding: 34vh var(--pad) 40px; }
.foot-inner { max-width: 1320px; margin: 0 auto; }
.foot-word { font: 400 clamp(80px, 17vw, 300px)/.8 var(--display); letter-spacing: -.05em; color: transparent;
  background: linear-gradient(180deg, #f1d79c 0%, #b88a45 55%, #3a2410 100%); -webkit-background-clip: text; background-clip: text; margin-left: -.04em; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr auto; gap: 40px; margin-top: 70px; padding-top: 34px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.8; color: var(--muted); }
.foot-cols nav { display: grid; gap: 4px; justify-items: end; }
.foot-cols a { text-decoration: none; color: var(--ink); transition: color .3s; }
.foot-cols a:hover { color: var(--gold-hi); }
.legal { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-bottom: 50px; font-size: 12px; color: var(--dim); }

.toast { position: fixed; left: 50%; bottom: 5vh; transform: translate(-50%, 16px); z-index: 30; padding: 14px 24px; border-radius: 999px;
  background: rgba(16,12,9,.86); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(216,181,106,.35); font-size: 13px; letter-spacing: .04em;
  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, .bag { display: none; }
  .nav { grid-template-columns: 1fr auto; padding: 16px 18px; }
  .nav .btn { height: 38px; padding: 0 16px; font-size: 10.5px; }
  .brand { font-size: 15px; letter-spacing: .3em; }
  .hero-eyebrow { top: 76px; font-size: 9.5px; letter-spacing: .18em; flex-wrap: wrap; gap: 8px; max-width: 80vw; }
  .hero-foot { bottom: 9vh; flex-direction: column; align-items: stretch; gap: 22px; }
  .hero-sub { display: none; }
  .hero-cta { margin-top: 18px; }
  .hint { display: none; }
  .scroll-cue { display: none; }
  .note { height: 220vh; }
  .note-pin, .note[data-side="right"] .note-pin { align-items: flex-end; justify-content: flex-start; padding: 0 18px 10vh; }
  .note-card { width: 100%; padding: 18px 18px 16px; border-radius: 3px; background: linear-gradient(180deg, rgba(8,6,5,.55), rgba(8,6,5,.85)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--faint); }
  .note-kicker { margin-bottom: 16px; font-size: 9.5px; }
  .note-kicker span:last-child, .note-kicker .rule { display: none; }
  .note h2 { font-size: 40px; }
  .note h2 em { font-size: .52em; }
  .note-body { font-size: 13.5px; line-height: 1.6; margin-top: 12px; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 0 12px; margin-top: 18px; padding-top: 14px; }
  .facts dd { font-size: 15px; }
  .latin { display: none; }
  .note-pin, .note[data-side="right"] .note-pin { padding-bottom: 7vh; }
  .gauge { right: 12px; top: 96px; transform: none; gap: 8px; }
  .gauge-bar { height: 18vh; }
  .gauge-title, .gauge-tick { display: none; }
  .gauge-pct { font-size: 15px; }
  .house { padding-top: 58vh; min-height: 0; }
  .house-inner { background: linear-gradient(180deg, rgba(5,4,4,0), rgba(5,4,4,.8) 18%); padding-top: 20px; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 60px; }
  .shop { padding-top: 60vh; }
  .products { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr; }
  .foot-cols nav { justify-items: start; }
  .legal { flex-direction: column; }
}