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.

21.2 KB
Raw Blame
:root {
  --bg: #f2f3f5;
  --ink: #111317;
  --ink2: #3b3f47;
  --muted: #7a7f89;
  --line: rgba(17, 19, 23, .14);
  --line2: rgba(17, 19, 23, .07);
  --orange: #ff5b1a;
  --volt: #d2ff1e;
  --gut: clamp(16px, 4.2vw, 64px);
  --disp: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
* { 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.55 var(--disp); background: var(--bg); overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; font-weight: 500; }
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; }

/* ── loader ─────────────────────────────────────────── */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: grid; place-content: center; justify-items: center; gap: 26px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent var(--hole, 0px), #000 calc(var(--hole, 0px) + 1px));
          mask-image: radial-gradient(circle at 50% 50%, transparent var(--hole, 0px), #000 calc(var(--hole, 0px) + 1px)); }
.loader-dial { position: relative; width: 168px; height: 168px; display: grid; place-items: center; }
.loader-dial svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.loader-ticks line { stroke: var(--ink); stroke-width: .7; opacity: .16; transition: opacity .25s, stroke .25s; }
.loader-ticks line.on { opacity: 1; }
.loader-ticks line.major { stroke-width: 1; }
.loader-ring { fill: none; stroke: var(--ink); stroke-width: .6; opacity: .3; }
.loader-pct { font: 700 30px/1 var(--mono); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.loader-line { color: var(--muted); }
.loader-top, .loader-bot { position: absolute; left: var(--gut); right: var(--gut); display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.loader-top { top: 28px; } .loader-bot { bottom: 30px; justify-content: center; gap: 48px; color: var(--ink2); }
.loader-top span:first-child { color: var(--ink); font-weight: 700; }
.loader-h, .loader-v { position: absolute; left: 50%; top: calc(50% - 30px); background: rgba(17,19,23,.14); }
.loader-h { width: min(560px, 80vw); height: 1px; transform: translateX(-50%); }
.loader-v { width: 1px; height: 360px; transform: translate(-50%, -50%); }
.loader-h::before, .loader-h::after { content: ''; position: absolute; top: -4px; width: 1px; height: 9px; background: var(--ink); }
.loader-h::before { left: 0; } .loader-h::after { right: 0; }
.loader-step { color: var(--ink); }

/* ── nav ────────────────────────────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gut); pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 130px; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(242,243,245,.96) 0%, rgba(242,243,245,.82) 45%, rgba(242,243,245,0) 100%); transition: opacity .4s; }
.nav-dark .nav::before { opacity: 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 15px/1 var(--disp); font-stretch: 125%; letter-spacing: -.01em; text-transform: uppercase; }
.brand em { font-style: normal; font-weight: 400; font-stretch: 100%; margin-left: 5px; color: var(--muted); }
.brand svg { width: 22px; height: 22px; }
.links { display: flex; gap: 30px; padding: 11px 22px; border-radius: 999px; background: rgba(242,243,245,.6); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line2); }
.links a { text-decoration: none; font: 500 13px/1 var(--disp); color: var(--ink2); transition: color .25s; }
.links a:hover { color: var(--orange); }
.links a { position: relative; }
.links a.is-on { color: var(--ink); }
.links a::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--orange); transform: scale(0); transition: transform .3s; }
.links a.is-on::after { transform: scale(1); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 44px; padding: 0 22px; border-radius: 999px;
  text-decoration: none; font: 600 13px/1 var(--disp); letter-spacing: .01em; transition: background .3s, color .3s, box-shadow .3s; white-space: nowrap; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.btn-ink .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 12px var(--volt); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.btn-volt { background: var(--volt); color: var(--ink); }
.btn-volt:hover { background: #e4ff6b; box-shadow: 0 10px 40px -8px rgba(160,210,0,.7); }

/* ── HUD ────────────────────────────────────────────── */
.hud { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.corner { position: absolute; width: 16px; height: 16px; border: 0 solid rgba(17,19,23,.35); }
.corner.tl { left: 12px; top: 12px; border-width: 1px 0 0 1px; } .corner.tr { right: 12px; top: 12px; border-width: 1px 1px 0 0; }
.corner.bl { left: 12px; bottom: 12px; border-width: 0 0 1px 1px; } .corner.br { right: 12px; bottom: 12px; border-width: 0 1px 1px 0; }
.ruler { position: absolute; right: 20px; top: 22vh; bottom: 22vh; width: 12px;
  background: repeating-linear-gradient(to bottom, rgba(17,19,23,.32) 0 1px, transparent 1px 8px) right / 5px 100% no-repeat,
              repeating-linear-gradient(to bottom, rgba(17,19,23,.5) 0 1px, transparent 1px 40px) right / 12px 100% no-repeat; }
.ruler-mark { position: absolute; right: 0; top: 0; width: 22px; height: 1px; background: var(--orange); transform: translateY(var(--y, 0px)); }
.ruler-val { position: absolute; right: 28px; top: -7px; font-size: 10px; color: var(--ink); font-variant-numeric: tabular-nums; }
.chapter { position: absolute; left: 20px; top: 50%; display: flex; gap: 12px; color: var(--ink2); writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); font-size: 10px; }
.chapter-n { color: var(--orange); font-variant-numeric: tabular-nums; }

/* ── lens chrome ────────────────────────────────────── */
.lens-ui { position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none; opacity: 0; transition: opacity .5s; }
.lens-ui.on { opacity: var(--mix, 1); }
.lens-ui svg { position: absolute; left: -120px; top: -120px; width: 240px; height: 240px; overflow: visible; will-change: transform; }
.lens-ticks line { stroke: var(--ink); stroke-width: .55; vector-effect: non-scaling-stroke; }
.lens-ticks line.major { stroke-width: 1.1; }
.lens-ticks line.hot { stroke: var(--orange); stroke-width: 2.2; }
.lens-arc { font: 600 6.4px var(--mono); letter-spacing: .24em; fill: var(--ink); text-transform: uppercase; }
.lens-cross path { stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .85; }
.lens-cross circle { fill: var(--volt); }
.lens-tag { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 999px;
  background: var(--ink); color: #fff; white-space: nowrap; will-change: transform; font: 600 11px/1 var(--mono); letter-spacing: .1em; }
.lens-tag-n { display: grid; place-items: center; min-width: 22px; height: 18px; border-radius: 999px; background: var(--volt); color: var(--ink); font-size: 10px; }
.lens-coord b { color: var(--orange); font-weight: 700; }
.lens-coord { position: absolute; left: 0; top: 0; transition: opacity .4s; font: 500 10px/1 var(--mono); letter-spacing: .1em; color: var(--ink2); white-space: nowrap; will-change: transform; font-variant-numeric: tabular-nums; }

/* ── console (mode switcher / hint) ─────────────────── */
.console { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 35; display: flex; align-items: center; gap: 4px; padding: 5px;
  border-radius: 999px; background: rgba(250,250,251,.72); backdrop-filter: blur(14px) saturate(1.3); box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -24px rgba(17,19,23,.35);
  transition: opacity .6s, transform .6s; opacity: 0; }
.ready .console { opacity: 1; }
.console .mode { white-space: nowrap; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px 0 10px; border-radius: 999px; font: 600 13px/1 var(--disp); color: var(--ink2); transition: background .3s, color .3s; }
.console .mode .mono { font-size: 10px; opacity: .55; }
.console .mode:hover { color: var(--ink); background: rgba(17,19,23,.06); }
.console .mode.is-on { background: var(--ink); color: #fff; }
.console .mode.is-on .mono { color: var(--volt); opacity: 1; }
.console-hint { padding: 0 14px 0 10px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.console-hint .k-touch { display: none; }
.ready.is-footer .console { opacity: 0; transform: translate(-50%, 20px); pointer-events: none; }

/* ── callouts from 3D anchors ───────────────────────── */
.leaders { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 4; pointer-events: none; overflow: visible; }
.leaders path { fill: none; stroke: var(--ink); stroke-width: 1; }
.leaders .ring { fill: none; stroke: var(--ink); stroke-width: 1; }
.leaders .pin { fill: var(--orange); }
.callouts { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.callout { position: absolute; left: 0; top: 0; display: grid; gap: 3px; padding: 9px 12px 10px; min-width: 150px; background: rgba(250,250,251,.82); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px var(--line); opacity: 0; transition: opacity .45s; will-change: transform; }
.callout.on { opacity: 1; }
.callout .c-k { font: 600 9.5px/1 var(--mono); letter-spacing: .12em; color: var(--orange); text-transform: uppercase; }
.callout b { font: 700 14px/1.15 var(--disp); font-stretch: 110%; letter-spacing: -.01em; }
.callout .c-v { font: 500 10px/1.3 var(--mono); letter-spacing: .06em; color: var(--ink2); text-transform: uppercase; }

/* ── sections ───────────────────────────────────────── */
main { position: relative; z-index: 2; pointer-events: none; }
main a, main button, main input, main form, main [data-nolens] { pointer-events: auto; }
.s { position: relative; min-height: 100vh; padding: 0 var(--gut); display: grid; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--ink2); margin-bottom: 22px; }
.tag { white-space: nowrap; display: inline-grid; place-items: center; height: 20px; padding: 0 7px; background: var(--ink); color: #fff; font-size: 10px; letter-spacing: .08em; }

.hero { height: 100vh; align-items: start; padding-top: 118px; grid-template-rows: auto 1fr auto; }
.hero-copy { max-width: 52vw; }
.title { display: grid; justify-items: start; line-height: .8; letter-spacing: -.045em; margin-left: -.04em; }
.title .t1 { font: 900 clamp(80px, 11.4vw, 200px)/.8 var(--disp); font-stretch: 125%; }
.title .t2 { font: 300 clamp(58px, 7.6vw, 132px)/.9 var(--disp); font-stretch: 62%; font-style: italic; letter-spacing: -.03em; margin-top: .06em; color: var(--ink2); }
.sub { margin-top: 26px; font: 600 clamp(19px, 1.7vw, 26px)/1.2 var(--disp); font-stretch: 112%; letter-spacing: -.015em; }
.hero-note { grid-row: 3; max-width: 34ch; font-size: 14.5px; line-height: 1.55; color: var(--ink2); margin-bottom: 168px; }
.specs { grid-row: 3; position: absolute; left: var(--gut); bottom: 86px; display: flex; gap: 0; }
.specs div { padding: 0 26px 0 14px; border-left: 1px solid var(--line); }
.specs div:first-child { padding-left: 0; border-left: 0; }
.specs dt { color: var(--muted); font-size: 9.5px; margin-bottom: 6px; }
.specs dd { font: 800 26px/1 var(--disp); font-stretch: 118%; letter-spacing: -.02em; text-transform: none; color: var(--ink); }
.specs small { font: 500 11px var(--mono); margin-left: 3px; color: var(--muted); letter-spacing: .04em; }

.col { width: min(440px, 34vw); padding: 40px 0; }
.col-r { justify-self: end; margin-right: 3vw; }
.col-l { justify-self: start; }
h2 { font: 800 clamp(34px, 3.9vw, 62px)/.98 var(--disp); font-stretch: 110%; letter-spacing: -.035em; }
h2 em { display: block; font-style: italic; font-weight: 300; font-stretch: 70%; color: var(--ink2); letter-spacing: -.02em; }
.lede { margin-top: 24px; font-size: 16px; line-height: 1.6; color: var(--ink2); max-width: 40ch; }
.stat { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--ink); display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.stat b { font: 900 clamp(64px, 7vw, 116px)/.8 var(--disp); font-stretch: 125%; letter-spacing: -.05em; }
.stat b small { font: 500 .22em var(--mono); letter-spacing: .04em; margin-left: .3em; color: var(--muted); }
.stat span { color: var(--ink2); text-align: right; }
.minor { list-style: none; margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.minor li { padding: 12px 10px 0 0; color: var(--muted); font-size: 9.5px; line-height: 1.5; }
.minor li b { display: block; color: var(--ink); font-size: 13px; letter-spacing: .02em; }

.lens-s .col { width: min(470px, 36vw); }
.modes { list-style: none; margin-top: 36px; border-top: 1px solid var(--line); }
.modes li { border-bottom: 1px solid var(--line); }
.modes button { display: grid; grid-template-columns: 110px 1fr; column-gap: 16px; row-gap: 4px; text-align: left; width: 100%; padding: 16px 0; transition: padding .35s; position: relative; }
.modes button::before { content: ''; position: absolute; left: -18px; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--orange); transform: scale(0); transition: transform .35s; }
.modes button.is-on::before { transform: scale(1); }
.modes button .mono { grid-row: span 2; color: var(--muted); font-size: 10px; padding-top: 3px; }
.modes button.is-on .mono { color: var(--orange); }
.modes button b { font: 700 16px/1.2 var(--disp); font-stretch: 108%; }
.modes button em { font-style: normal; font-size: 13.5px; line-height: 1.45; color: var(--ink2); }
.modes button:hover b { color: var(--orange); }

.colour { align-items: center; }
.colour .col { padding-bottom: 0; }
.swatches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 30px; width: min(440px, 34vw); }
.swatch { display: grid; gap: 6px; text-align: left; padding: 16px 18px 18px; background: rgba(250,250,251,.7); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .35s, background .35s; }
.swatch.is-on { box-shadow: inset 0 0 0 1.5px var(--ink); background: rgba(255,255,255,.9); }
.swatch .chip { width: 38px; height: 38px; border-radius: 50%; margin-bottom: 10px; box-shadow: 0 0 0 1px var(--line), 0 8px 16px -8px rgba(0,0,0,.4); }
.chip-w { background: conic-gradient(from 210deg, #fbfbfb 0 70%, #ff8a1f 70% 86%, #c9ccd2 86%); }
.chip-b { background: conic-gradient(from 210deg, #1a1b1e 0 70%, #d9ff2a 70% 86%, #62656b 86%); }
.swatch .mono { color: var(--muted); font-size: 9.5px; }
.swatch b { font: 800 17px/1.1 var(--disp); font-stretch: 112%; letter-spacing: -.015em; }
.swatch em { font-style: normal; font-size: 12.5px; line-height: 1.45; color: var(--ink2); }
.swatch-hint { grid-column: span 2; color: var(--muted); font-size: 10px; margin-top: 6px; }

.drop { align-items: end; padding-bottom: 116px; min-height: 100vh; }
.drop-inner { width: 100%; display: grid; justify-items: center; text-align: center; }
.drop .eyebrow { justify-content: center; }
.drop-title { font-size: clamp(34px, 3.4vw, 54px); }
.drop-title em { display: inline; }
.count { display: flex; margin-top: 32px; }
.count div { padding: 0 clamp(14px, 2.4vw, 38px); border-left: 1px solid var(--line); display: grid; justify-items: center; gap: 8px; }
.count div:first-child { border-left: 0; }
.count b { font: 900 clamp(54px, 7.4vw, 128px)/.82 var(--disp); font-stretch: 125%; letter-spacing: -.04em; font-variant-numeric: tabular-nums; min-width: 1.25em; }
.count span { color: var(--muted); }
.join { margin-top: 42px; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 22px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 24px 50px -30px rgba(17,19,23,.5); position: relative; }
.join label { color: var(--muted); font-size: 10px; }
.join input { width: 240px; height: 40px; border: 0; outline: 0; background: none; font: 500 15px var(--disp); color: var(--ink); }
.join input::placeholder { color: #a5a9b1; }
.join-ok { position: absolute; left: 0; right: 0; top: calc(100% + 14px); color: var(--ink); opacity: 0; transition: opacity .4s; }
.join.done .join-ok { opacity: 1; }
.drop-note { margin-top: 44px; color: var(--muted); font-size: 10px; }

.foot { position: relative; z-index: 6; background: var(--ink); color: #eceef1; padding: 16vh var(--gut) 84px; overflow: hidden; }
.foot::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 18px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 1px, transparent 1px 10px) top / 100% 7px no-repeat,
              repeating-linear-gradient(90deg, var(--volt) 0 1px, transparent 1px 100px) top / 100% 18px no-repeat; opacity: .8; }
.foot::after { content: 'VX-1'; position: absolute; right: -2vw; top: 6vh; font: 900 clamp(160px, 26vw, 420px)/.8 var(--disp); font-stretch: 125%; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.1); pointer-events: none; }
.foot-inner { position: relative; z-index: 1; }
.foot-inner { max-width: 1320px; margin: 0 auto; }
.foot-title { font-size: clamp(48px, 7.6vw, 132px); color: #fff; }
.foot-title em { color: #8d929c; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 40px; align-items: end; margin-top: 12vh; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14); }
.foot-cols p { font-size: 14px; line-height: 1.7; color: #b9bdc5; }
.foot-cols .k { color: var(--volt); font-size: 10px; margin-bottom: 8px; }
.foot .btn-ink { background: var(--volt); color: var(--ink); }
.legal { display: flex; justify-content: space-between; gap: 20px; margin-top: 10vh; color: #6f747e; font-size: 10px; }

.nav .brand, .nav .btn { transition: color .4s, background .4s; }
.nav-dark .nav .brand { color: #fff; }
.nav-dark .nav .brand em { color: #8d929c; }
.nav-dark .nav .btn-ink { background: var(--volt); color: var(--ink); }
.hud { transition: opacity .6s; opacity: 0; }
.ready .hud { opacity: 1; }
.ready.is-footer .hud { opacity: 0; }
@media (max-width: 900px) {
  .loader-top span:last-child, .loader-bot span:nth-child(n+3) { display: none; }
  .loader-bot { gap: 24px; }
  .links, .ruler, .corner, .console-hint .k-desk { display: none; }
  .console-hint .k-touch { display: inline; }
  .console { bottom: 64px; }
  .console .mode { padding: 0 12px 0 9px; font-size: 12px; height: 34px; }
  .console-hint { display: none; }
  .nav { padding: 14px 16px; }
  .nav .btn { height: 38px; padding: 0 16px; font-size: 12px; }
  .hero { padding-top: 88px; }
  .hero-copy { max-width: none; }
  .hero-note { display: none; }
  .specs { bottom: 118px; left: 16px; right: 16px; }
  .specs div { padding: 0 12px 0 10px; }
  .specs dd { font-size: 20px; }
  .s { align-items: end; padding-bottom: 14vh; }
  .col, .lens-s .col { width: 100%; margin: 0; padding: 22px 18px 24px; background: rgba(242,243,245,.9); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line2); }
  .col-r { justify-self: stretch; }
  .lede { font-size: 14.5px; }
  .stat b { font-size: 58px; }
  .modes button { grid-template-columns: 1fr; padding: 12px 0; }
  .modes button .mono { grid-row: auto; }
  .modes button em { display: none; }
  .colour { align-items: start; padding-top: 90px; }
  .swatches { left: 16px; right: 16px; bottom: 14vh; grid-template-columns: 1fr 1fr; }
  .swatch em { display: none; }
  .swatches { width: 100%; }
  .swatch b { font-size: 15px; }
  .drop { padding-bottom: 200px; }
  .lens-ui { z-index: 1; }
  .minor { display: none; }
  h2 { font-size: 30px; }
  .stat { margin-top: 18px; padding-top: 14px; }
  .stat b { font-size: 48px; }
  .lede { margin-top: 14px; }
  .lens-s .modes { display: none; }
  .drop-note { display: none; }
  .swatch-hint { display: none; }
  .count b { font-size: 46px; }
  .count div { padding: 0 10px; }
  .join { flex-wrap: wrap; border-radius: 18px; padding: 12px; justify-content: center; }
  .join input { width: 100%; text-align: center; }
  .foot-cols { grid-template-columns: 1fr; }
  .legal { flex-direction: column; }
  .chapter { bottom: 118px; display: none; }
  .callout { min-width: 0; padding: 6px 8px; }
  .callout b { font-size: 12px; }
  .callout .c-v { display: none; }
}