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.

19.9 KB
Raw Blame
:root {
  --bg: #000;
  --ink: #f4f3f0;
  --dim: rgba(244, 243, 240, .62);
  --faint: rgba(244, 243, 240, .16);
  --hair: rgba(244, 243, 240, .28);
  --accent: #ff5b14;
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --gut: clamp(16px, 4vw, 56px);
}
* { 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(--sans); background: var(--bg); overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.rd { font-family: var(--cond); font-weight: 500; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .0; }

/* ── loader: powered descent ─────────────────────────────── */
.loader { position: fixed; inset: 0; z-index: 100; background: #000; display: grid; place-items: center; }
.loader-frame { width: min(520px, 84vw); display: grid; gap: 18px; }
.loader-top, .loader-bottom { display: flex; justify-content: space-between; color: var(--dim); }
.loader-alt { display: flex; align-items: baseline; gap: 10px; font: 300 clamp(64px, 12vw, 132px)/.9 var(--sans); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.loader-alt em { font: 500 18px/1 var(--cond); letter-spacing: .14em; color: var(--dim); font-style: normal; }
.loader-bar { height: 1px; background: var(--faint); position: relative; overflow: hidden; }
.loader-bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
.loader-call { color: var(--accent); }

/* ── nav ─────────────────────────────────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px calc(var(--gut) + 14px) 0; pointer-events: none; }
.nav > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 500 15px/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; }
.brand svg { width: 26px; height: 26px; }
.links { display: flex; gap: clamp(18px, 2.4vw, 38px); margin-left: auto; }
.links a { text-decoration: none; font: 500 13px/1 var(--sans); color: var(--dim); transition: color .3s; letter-spacing: .01em; position: relative; }
.links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.links a:hover, .links a.on { color: var(--ink); }
.links a.on::after { transform: scaleX(1); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 3px;
  text-decoration: none; font: 500 14px/1 var(--sans); letter-spacing: .01em; transition: background .35s, color .35s, box-shadow .35s; white-space: nowrap; }
.btn-solid { background: var(--accent); color: #000; }
.btn-solid:hover { background: #ff7a3d; box-shadow: 0 0 0 6px rgba(255, 91, 20, .16); }
.btn-ghost { box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); background: rgba(0, 0, 0, .25); backdrop-filter: blur(8px); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.nav .btn { height: 40px; padding: 0 18px; font-size: 13px; }

/* ── HUD: film-edge data ─────────────────────────────────── */
.hud { position: fixed; inset: var(--gut); z-index: 6; pointer-events: none; color: var(--dim); transition: opacity .6s; }
.hud > div { position: absolute; display: grid; gap: 4px; padding: 14px; font-size: 11px; }
.hud-tl { left: calc(12px - var(--gut)); top: 50%; writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); display: flex !important; gap: 18px !important; }
.hud-tr { right: calc(12px - var(--gut)); top: 50%; writing-mode: vertical-rl; transform: translateY(-50%); display: flex !important; gap: 18px !important; }
.hud-bl { left: 0; bottom: 0; padding-bottom: 12px !important; }
.hud-bl { left: 150px; }
.hud-br { right: 0; bottom: 0; text-align: right; }
.hud b { color: var(--ink); font-weight: 500; }
.hud-c { position: absolute; width: 14px; height: 14px; border-color: var(--hair); border-style: solid; border-width: 0; }
.hud-c1 { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.hud-c2 { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.hud-c3 { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.hud-c4 { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }

.telemetry { position: fixed; left: 50%; bottom: calc(var(--gut) + 8px); transform: translate(-50%, 16px); z-index: 7; display: flex; gap: 0; pointer-events: none;
  opacity: 0; transition: opacity .6s, transform .6s; }
.is-walking .telemetry { opacity: 1; transform: translate(-50%, 0); }
.telemetry > div { display: grid; gap: 2px; padding: 0 20px; border-left: 1px solid var(--faint); min-width: 104px; }
.telemetry > div:first-child { border-left: 0; }
.telemetry em { font-style: normal; color: var(--dim); font-size: 11px; }
.telemetry b { font: 500 26px/1 var(--cond); letter-spacing: .02em; color: var(--ink); }
.telemetry small { font-size: 11px; color: var(--dim); margin-left: 3px; }
.telemetry > div:first-child { grid-template-columns: auto auto; align-items: baseline; }
.telemetry > div:first-child em { grid-column: 1 / -1; }
.tm-rate { opacity: .35; transition: opacity .3s; }
.tm-rate.on { opacity: 1; }
.tm-rate.on b { color: var(--accent); }

/* ── hero ────────────────────────────────────────────────── */
.hero { position: relative; z-index: 4; height: 100vh; min-height: 620px; pointer-events: none; }
.hero-inner { position: absolute; left: calc(var(--gut) + 14px); bottom: calc(var(--gut) + 64px); max-width: min(760px, 58vw); }
.eyebrow { color: var(--dim); margin-bottom: 26px; }
.eyebrow span { color: var(--accent); margin: 0 .5em; }
.hero-title { font: 400 clamp(46px, 6.3vw, 112px)/.94 var(--sans); letter-spacing: -.042em; }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .ln > span { display: block; }
.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub { max-width: 31em; margin-top: 28px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; color: var(--dim); }
.hero-cta { display: flex; gap: 12px; margin-top: 34px; pointer-events: auto; flex-wrap: wrap; }
.scroll-hint { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--gut) + 22px); white-space: nowrap; display: flex; align-items: center; gap: 14px; color: var(--dim); }
.scroll-hint b { color: var(--ink); font-weight: 600; }
.boot { position: relative; width: 16px; height: 28px; }
.boot i { position: absolute; width: 6px; height: 11px; border-radius: 3px 3px 2px 2px; background: var(--accent); animation: step 1.6s infinite cubic-bezier(.5,0,.3,1); }
.boot i:first-child { left: 0; top: 14px; }
.boot i:last-child { right: 0; top: 2px; animation-delay: .8s; }
@keyframes step { 0%, 100% { opacity: .25; transform: translateY(4px); } 30%, 60% { opacity: 1; transform: none; } }

/* ── walk ────────────────────────────────────────────────── */
.walk { position: relative; z-index: 4; height: 900vh; pointer-events: none; }
.walk-sticky { position: sticky; top: 0; height: 100vh; }
.sec-tag { color: var(--dim); display: flex; gap: 12px; align-items: baseline; }
.sec-tag b { color: var(--accent); font-weight: 600; }
.sec-sub { color: var(--faint); color: rgba(244,243,240,.38); margin-left: 8px; }
.walk .sec-tag { position: absolute; left: calc(var(--gut) + 14px); top: 132px; opacity: 0; transition: opacity .6s; }
.is-walking .walk .sec-tag { opacity: 1; }
.cap { position: absolute; width: min(390px, 80vw); opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform 1s cubic-bezier(.2,.8,.2,1); }
.cap.on { opacity: 1; transform: none; }
.cap::before { content: ''; display: block; width: 36px; height: 2px; background: var(--accent); margin-bottom: 18px; }
.cap .rd { color: var(--dim); margin-bottom: 10px; }
.cap h3 { font: 400 clamp(26px, 2.5vw, 38px)/1.05 var(--sans); letter-spacing: -.03em; margin-bottom: 14px; }
.cap p:last-child { color: var(--dim); font-size: 15.5px; line-height: 1.55; }
.cap-a { left: calc(var(--gut) + 14px); bottom: 24vh; }
.cap-b { right: calc(var(--gut) + 14px); top: 22vh; }
.cap-c { left: calc(var(--gut) + 14px); top: 24vh; }
.cap-d { right: calc(var(--gut) + 14px); bottom: 24vh; }
.cap-e { left: calc(var(--gut) + 14px); top: 24vh; }

/* ── sticky sections ─────────────────────────────────────── */
.outpost, .days, .training, .price { position: relative; z-index: 4; pointer-events: none; }
.outpost { height: 260vh; } .days { height: 380vh; } .training { height: 240vh; } .price { height: 200vh; }
.sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.panel { position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; gap: 0; padding: 120px 0 100px; width: min(520px, 42vw); }
.panel-left { left: calc(var(--gut) + 14px); }
.panel-right { right: calc(var(--gut) + 14px); }
.panel.wide { width: min(1120px, calc(100vw - 2 * var(--gut) - 28px)); }
.panel h2 { font: 400 clamp(34px, 3.7vw, 62px)/1 var(--sans); letter-spacing: -.04em; margin: 22px 0 22px; }
.lede { color: var(--dim); font-size: clamp(15px, 1.12vw, 18px); line-height: 1.58; max-width: 34em; }
.lede.small { max-width: 38em; }
.panel > * { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.2,.8,.2,1); }
.in .panel > * { opacity: 1; transform: none; }
.in .panel > *:nth-child(2) { transition-delay: .08s; } .in .panel > *:nth-child(3) { transition-delay: .16s; }
.in .panel > *:nth-child(4) { transition-delay: .24s; } .in .panel > *:nth-child(5) { transition-delay: .32s; }
.specs { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 34px; border-top: 1px solid var(--faint); }
.specs li { padding: 16px 16px 0 0; display: grid; gap: 6px; color: var(--dim); }
.specs b { font: 400 30px/1 var(--sans); letter-spacing: -.03em; color: var(--ink); text-transform: none; }
.plate { margin-top: 34px; width: 210px; pointer-events: auto; }
.plate img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.45) contrast(1.05); border-radius: 2px; }
.plate figcaption { color: var(--dim); margin-top: 10px; font-size: 11px; }

/* hotspots on the outpost */
.hotspots { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.hs { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .6s; will-change: transform; }
.hs.on { opacity: 1; }
.hs i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 1px var(--ink); }
.hs i::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.hs div { position: absolute; left: 18px; top: -12px; width: 230px; padding: 9px 12px 10px; border-left: 1px solid var(--accent); background: rgba(0,0,0,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 0 2px 2px 0; }
.hs b { display: block; font: 500 12px/1.2 var(--cond); letter-spacing: .16em; text-transform: uppercase; }
.hs span { display: block; font-size: 13px; line-height: 1.45; color: var(--dim); margin-top: 4px; }

/* itinerary */
.itinerary { list-style: none; margin-top: 30px; border-top: 1px solid var(--faint); }
.itinerary li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--faint); opacity: .32; transition: opacity .5s; }
.itinerary li.on { opacity: 1; }
.itinerary li .rd { color: var(--accent); padding-top: 3px; }
.itinerary h3 { font: 500 17px/1.2 var(--sans); letter-spacing: -.01em; }
.itinerary p { font-size: 14px; line-height: 1.45; color: var(--dim); max-height: 0; overflow: hidden; transition: max-height .6s ease, margin .6s; }
.itinerary li.on p { max-height: 80px; margin-top: 6px; }

/* training */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 250px)); gap: 20px; margin-top: 38px; }
.tcard { display: grid; gap: 8px; align-content: start; }
.tcard img { width: 100%; height: auto; aspect-ratio: 4 / 3.2; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.92); border-radius: 2px; margin-bottom: 10px; }
.tcard .rd { color: var(--accent); }
.tcard h3 { font: 500 20px/1.1 var(--sans); letter-spacing: -.02em; }
.tcard p:last-child { color: var(--dim); font-size: 14px; line-height: 1.5; }
.suit-diagram { aspect-ratio: 4 / 3.2; margin-bottom: 10px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--faint); position: relative; overflow: hidden;
  background: repeating-linear-gradient(0deg, transparent 0 19px, rgba(244,243,240,.06) 19px 20px), repeating-linear-gradient(90deg, transparent 0 19px, rgba(244,243,240,.06) 19px 20px); }
.suit-diagram span { position: absolute; border: 1px solid var(--hair); border-radius: 50%; }
.suit-diagram span:nth-child(1) { width: 30%; aspect-ratio: 1; left: 35%; top: 12%; }
.suit-diagram span:nth-child(2) { width: 46%; height: 52%; left: 27%; top: 42%; border-radius: 40% 40% 12% 12%; }
.suit-diagram span:nth-child(3) { width: 6px; height: 6px; background: var(--accent); border: 0; left: calc(50% - 3px); top: 58%; box-shadow: 0 0 0 6px rgba(255,91,20,.18); }

/* price */
.panel-price { left: calc(var(--gut) + 14px); width: min(560px, 46vw); }
.price h2 { display: grid; gap: 0; margin-top: 18px; }
.price .big { font: 300 clamp(84px, 11vw, 196px)/.84 var(--sans); letter-spacing: -.06em; }
.price .all { font: 400 clamp(26px, 2.6vw, 42px)/1 var(--sans); letter-spacing: -.03em; color: var(--accent); margin-top: 14px; }
.incl { list-style: none; margin-top: 26px; border-top: 1px solid var(--faint); }
.incl li { padding: 11px 0; border-bottom: 1px solid var(--faint); font-size: 15px; color: var(--dim); display: flex; gap: 14px; }
.incl li::before { content: '+'; color: var(--accent); font-family: var(--cond); font-weight: 600; }
.price-cta { display: flex; gap: 12px; margin-top: 30px; pointer-events: auto; flex-wrap: wrap; }
.fine { color: rgba(244,243,240,.42); margin-top: 18px; font-size: 11px; }

/* footer */
.foot { position: relative; z-index: 4; min-height: 100vh; display: grid; align-content: end; padding: 0 calc(var(--gut) + 14px) calc(var(--gut) + 60px);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.2) 40%, rgba(0,0,0,.75)); }
.foot-exp { color: var(--accent); margin-bottom: 26px; }
.foot-title { font: 400 clamp(56px, 9.4vw, 170px)/.9 var(--sans); letter-spacing: -.05em; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr auto; gap: 40px; align-items: end; margin-top: 70px; padding-top: 26px; border-top: 1px solid var(--faint); }
.foot-cols .rd { color: var(--dim); line-height: 1.9; }
.foot-cols b { color: var(--ink); font-weight: 600; }
.legal { color: rgba(244,243,240,.36); margin-top: 40px; font-size: 11px; }

@media (max-width: 1000px) {
  .links { display: none; }
  .hud-tl, .hud-tr, .hud-bl { display: none !important; }
  .panel, .panel-price { width: calc(100vw - 2 * var(--gut) - 8px); left: calc(var(--gut) + 4px); right: auto; justify-content: flex-end; padding-bottom: 96px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .tcard p:last-child { display: none; }
}
@media (max-width: 640px) {
  :root { --gut: 14px; }
  .nav { padding: 18px 20px 0; }
  .brand { font-size: 13px; letter-spacing: .28em; }
  .nav .btn { height: 36px; padding: 0 14px; font-size: 12px; }
  .hud-br { display: none !important; }
  .hero-inner { left: 20px; right: 20px; max-width: none; bottom: 104px; }
  .hotspots { display: none; }
  .training .lede { display: none; }
  .hero-sub { font-size: 14.5px; margin-top: 18px; }
  .eyebrow { margin-bottom: 16px; font-size: 11px; }
  .hero-title { font-size: clamp(38px, 11vw, 56px); }
  .hero-sub { font-size: 15px; }
  .scroll-hint { left: 20px; right: auto; bottom: 64px; transform: none; }
  .scroll-hint span:last-child { font-size: 11px; }
  .cap { width: calc(100vw - 40px); left: 20px !important; right: auto !important; top: auto !important; bottom: 150px !important; }
  .cap h3 { font-size: 25px; }
  .cap p:last-child { font-size: 14px; }
  .walk .sec-tag { top: 84px; left: 20px; }
  .sec-sub { display: none; }
  .telemetry { bottom: 62px; }
  .telemetry > div { padding: 0 9px; min-width: 0; }
  .telemetry > div:nth-child(4), .telemetry .tm-rate { display: none; }
  .telemetry b { font-size: 19px; }
  .panel h2 { font-size: 30px; margin: 14px 0; }
  .lede { font-size: 14.5px; }
  .specs b { font-size: 22px; }
  .plate { display: none; }
  .itinerary li { grid-template-columns: 52px 1fr; padding: 8px 0; }
  .itinerary h3 { font-size: 15px; }
  .itinerary li:not(.on) { display: none; }
  .itinerary li.on p { max-height: 100px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .tcard-text { display: none; }
  .tcard h3 { font-size: 16px; }
  .price .big { font-size: 84px; }
  .incl li { font-size: 13.5px; padding: 8px 0; }
  .incl li:nth-child(n+5) { display: none; }
  .foot-cols { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
  .foot-title { font-size: 54px; }
}

/* legibility: soft scrims that belong to the photograph, not boxes */
.panel::before { content: ''; position: absolute; top: -20vh; bottom: -20vh; width: 170%; z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity 1s ease; }
.panel-left::before, .panel-price::before { left: -60%; background: radial-gradient(closest-side, rgba(0,0,0,.78), rgba(0,0,0,.5) 55%, transparent); }
.panel-right::before { right: -60%; background: radial-gradient(closest-side, rgba(0,0,0,.78), rgba(0,0,0,.5) 55%, transparent); }
.in .panel::before { opacity: 1; }
.cap::after { content: ''; position: absolute; inset: -90px -140px -90px -160px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0,0,0,.62), rgba(0,0,0,.34) 60%, transparent); }
.cap h3, .cap p, .panel h2, .panel .lede { text-shadow: 0 1px 18px rgba(0,0,0,.5); }
.telemetry::before { content: ''; position: absolute; inset: -40px -80px -30px; z-index: -1; background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); }
.panel.wide { width: min(780px, 58vw); }
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.hero-inner::before { content: ''; position: absolute; inset: -18vh -30vw -14vh -14vw; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0,0,0,.6), rgba(0,0,0,.32) 60%, transparent); }
.hero-sub { color: rgba(244,243,240,.78); }

.med { list-style: none; aspect-ratio: 4 / 3.2; margin-bottom: 10px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--faint); padding: 12px 14px;
  display: grid; align-content: space-evenly; background: linear-gradient(180deg, rgba(255,91,20,.06), transparent 60%); }
.med li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: var(--dim); font-size: 11px; border-bottom: 1px dashed rgba(244,243,240,.1); padding-bottom: 5px; }
.med li:last-child { border-bottom: 0; }
.med li span::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.med b { color: var(--ink); font-weight: 600; }
html, body { overflow-x: clip; }
main { overflow-x: clip; }