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 {
--pond: #0b1511;
--ink: #16241e;
--ink-2: #33443b;
--washi: #f3efe6;
--washi-2: #e9e3d6;
--paper-line: rgba(22, 36, 30, .14);
--verm: #e0503a;
--verm-2: #c63f2b;
--moss: #6d7c4b;
--light: #f3efe6;
--light-dim: rgba(243, 239, 230, .72);
--serif: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
--sans: 'Zen Kaku Gothic New', 'Hiragino Sans', system-ui, sans-serif;
--gutter: clamp(18px, 4vw, 56px);
--fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .22 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--pond); color: var(--light); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { font: 400 16px/1.7 var(--sans); background: var(--pond); overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; touch-action: pan-y; }
.jp { font-family: var(--serif); letter-spacing: .12em; }
/* ─── Loader ─── */
.loader { position: fixed; inset: 0; z-index: 100; background: radial-gradient(120% 90% at 50% 40%, #13231c, #070d0a 70%); display: grid; place-content: center; justify-items: center; gap: 26px; }
.enso { width: 150px; height: 150px; grid-area: 1 / 1; transform: rotate(-100deg); overflow: visible; }
.enso circle { fill: none; stroke-linecap: round; }
.enso-track { stroke: rgba(243, 239, 230, .06); stroke-width: 1; }
.enso-ink { stroke: var(--washi); stroke-width: 5; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 92); opacity: .92;
filter: drop-shadow(0 0 1px rgba(243,239,230,.35)); transition: stroke-dashoffset .2s linear; }
.loader-kanji { grid-area: 1 / 1; align-self: center; font: 500 44px/1 var(--serif); color: var(--verm); opacity: calc(.25 + var(--p, 0) * .75); }
.loader-line { font: 400 13px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: rgba(243,239,230,.55); }
.loader-pct { font-variant-numeric: tabular-nums; color: var(--washi); }
.loader.out .enso { animation: ripple-out 1.6s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes ripple-out { to { transform: rotate(-100deg) scale(5.5); opacity: 0; } }
/* ─── Nav ─── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
padding: 22px var(--gutter); pointer-events: none; transition: background .6s, backdrop-filter .6s; }
.nav > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.seal { display: grid; place-items: center; width: 34px; height: 44px; background: var(--verm); color: var(--washi); border-radius: 3px;
writing-mode: vertical-rl; font: 600 15px/1 var(--serif); letter-spacing: .08em; box-shadow: 0 6px 20px -8px rgba(224, 80, 58, .8); }
.brand-name { font: 500 19px/1 var(--serif); letter-spacing: .04em; }
.links { display: flex; gap: 38px; }
.links a { text-decoration: none; font: 400 14px/1 var(--sans); letter-spacing: .06em; color: var(--light-dim); transition: color .3s; position: relative; }
.links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 1px; background: var(--verm); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.links a:hover { color: var(--light); }
.links a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.sound { display: flex; align-items: center; gap: 9px; background: none; border: 0; color: var(--light-dim); font: 400 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; padding: 8px 4px; }
.sound-bars { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound-bars i { width: 2px; background: currentColor; height: 100%; animation: bars 1.2s ease-in-out infinite; }
.sound-bars i:nth-child(2) { animation-delay: -.4s; } .sound-bars i:nth-child(3) { animation-delay: -.8s; }
.sound.off .sound-bars i { animation: none; height: 2px; }
@keyframes bars { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 24px; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer;
font: 500 14px/1 var(--sans); letter-spacing: .08em; white-space: nowrap; transition: background .35s, color .35s, box-shadow .35s; }
.btn-solid { background: var(--verm); color: #fff8f0; box-shadow: 0 10px 30px -12px rgba(224, 80, 58, .9); }
.btn-solid:hover { background: #ec6248; }
.btn-ghost { color: var(--light); box-shadow: inset 0 0 0 1px rgba(243,239,230,.35); background: rgba(8, 16, 12, .22); backdrop-filter: blur(8px); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--light); }
.btn-ink { height: 42px; padding: 0 22px; color: var(--ink); background: var(--washi); }
.btn-ink:hover { background: #fff; }
/* ─── Hero ─── */
main { position: relative; z-index: 2; pointer-events: none; }
.foot, .hero-cta, .paper, .nav a, .nav button { pointer-events: auto; }
.hero { position: relative; height: 100vh; min-height: 640px; pointer-events: none; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(90% 70% at 0% 100%, rgba(5, 12, 9, .62), transparent 62%), linear-gradient(0deg, rgba(5,12,9,.35), transparent 30%); pointer-events: none; }
.hero-copy { position: absolute; left: var(--gutter); bottom: 12vh; max-width: min(760px, 62vw); }
.eyebrow { font: 500 12px/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--verm); margin-bottom: 22px; display: flex; align-items: center; gap: 14px; }
.eyebrow .jp { letter-spacing: .3em; color: currentColor; opacity: .8; text-transform: none; font-size: 13px; }
.hero .eyebrow { color: #f19a86; }
.title { font: 500 clamp(52px, 7.4vw, 124px)/.98 var(--serif); letter-spacing: -.02em; color: var(--light); text-shadow: 0 2px 40px rgba(0, 10, 6, .45); }
.title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.title em { font-style: normal; color: var(--verm); }
.sub { max-width: 32em; margin-top: 28px; font: 400 clamp(15px, 1.2vw, 18px)/1.75 var(--sans); color: rgba(243, 239, 230, .86); text-shadow: 0 1px 18px rgba(0,0,0,.4); }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; pointer-events: auto; }
.vert { writing-mode: vertical-rl; font: 500 15px/1 var(--serif); letter-spacing: .5em; color: rgba(243,239,230,.7); }
.vert-hero { position: absolute; right: var(--gutter); bottom: 30vh; }
.hint { position: absolute; right: var(--gutter); bottom: 9vh; display: flex; gap: 18px; align-items: center; color: var(--light-dim); font: 400 13px/1.9 var(--sans); letter-spacing: .04em; opacity: 0; transform: translateX(18px); transition: opacity 1.2s, transform 1.4s cubic-bezier(.2,.8,.2,1); }
.ready .hint { opacity: 1; transform: none; }
.hint ul { list-style: none; }
.hint b { color: var(--light); font-weight: 500; }
.hint-ring { position: relative; width: 46px; height: 46px; }
.hint-ring i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(243,239,230,.7); animation: ring 2.6s cubic-bezier(.2,.6,.3,1) infinite; }
.hint-ring i:last-child { animation-delay: -1.3s; }
.hint-ring::after { content: ''; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--verm); }
@keyframes ring { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.has-fed .hint .hint-feed { opacity: .45; text-decoration: line-through; text-decoration-color: var(--verm); }
.scroll-cue { position: absolute; left: 50%; bottom: 3.5vh; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; font: 400 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: rgba(243,239,230,.55); transition: opacity .6s; }
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(rgba(243,239,230,.7), transparent); animation: drip 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.scrolled .scroll-cue, .ready.scrolled .hint { opacity: 0; }
/* ─── Paper panels ─── */
.paper { position: relative; background-color: var(--washi); background-image: var(--fibre), linear-gradient(160deg, #f6f3eb, #ece6d9); color: var(--ink);
border-radius: 2px; box-shadow: 0 40px 80px -30px rgba(0, 8, 5, .7), 0 2px 0 rgba(255,255,255,.5) inset; pointer-events: auto; }
.paper .eyebrow { color: var(--verm-2); }
.paper h2 { font: 500 clamp(30px, 3.3vw, 52px)/1.12 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.paper h2 em { font-style: normal; color: var(--verm-2); }
.lede { margin-top: 20px; font: 400 clamp(15px, 1.05vw, 17px)/1.8 var(--sans); color: var(--ink-2); max-width: 34em; }
.pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding: 0 var(--gutter); pointer-events: none; }
.steps { margin-top: -100vh; pointer-events: none; }
.step { height: 100vh; }
/* rooms */
.rooms-paper { width: min(560px, 44vw); padding: 38px 40px 30px; margin-top: 4vh; }
.room-deck { position: relative; margin-top: 28px; display: grid; }
.room { grid-area: 1 / 1; display: grid; grid-template-columns: 170px 1fr; gap: 24px; opacity: 0; transform: translateY(14px); transition: opacity .7s, transform .9s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.room.is-on { opacity: 1; transform: none; pointer-events: auto; }
.room figure { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 1px; background: #d9d2c3; }
.room figure img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s cubic-bezier(.2,.8,.2,1); }
.room.is-on figure img { transform: scale(1); }
.room-kind { display: flex; align-items: baseline; gap: 12px; font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--moss); }
.jp-big { font: 600 26px/1 var(--serif); letter-spacing: .05em; color: var(--verm-2); text-transform: none; }
.room h3 { font: 500 34px/1 var(--serif); margin: 12px 0 10px; }
.room-body > p:not([class]) { font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.room-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font: 500 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.room-meta span + span::before { content: '·'; margin-right: 14px; color: var(--verm); }
.price { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--paper-line); font-size: 13px; color: var(--ink-2); }
.price b { font: 600 22px/1 var(--serif); color: var(--ink); margin: 0 4px; }
.room-dots { list-style: none; display: flex; gap: 22px; margin-top: 26px; font: 500 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: rgba(22,36,30,.4); }
.room-dots li { position: relative; padding-top: 12px; transition: color .5s; }
.room-dots li::before { content: ''; position: absolute; top: 0; left: 0; width: 26px; height: 2px; background: currentColor; transition: width .6s, background .5s; }
.room-dots li.is-on { color: var(--ink); }
.room-dots li.is-on::before { background: var(--verm); width: 100%; }
/* kaiseki */
.kaiseki { position: relative; min-height: 150vh; display: flex; align-items: center; justify-content: flex-end; padding: 20vh var(--gutter); pointer-events: none; }
.paper-dark { background: rgba(10, 18, 14, .64); background-image: none; color: var(--light); backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1);
box-shadow: inset 0 0 0 1px rgba(243,239,230,.1), 0 40px 80px -30px rgba(0,0,0,.8); }
.paper-dark h2 { color: var(--light); }
.paper-dark .eyebrow { color: #f0906e; }
.paper-dark .lede { color: rgba(243,239,230,.74); }
.kaiseki-paper { width: min(660px, 48vw); padding: 38px 42px 32px; }
.kaiseki-paper h2 { font-size: clamp(28px, 2.6vw, 42px); }
.menu { list-style: none; margin-top: 24px; border-top: 1px solid rgba(243,239,230,.12); display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.menu li { display: grid; grid-template-columns: 44px 1fr; gap: 2px 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid rgba(243,239,230,.12); }
.menu li > span:last-child { grid-column: 2; }
.menu .jp { font-size: 17px; color: #f0906e; }
.menu b { font: 500 16px/1.3 var(--serif); }
.menu li > span:last-child { font-size: 14px; color: rgba(243,239,230,.7); line-height: 1.55; }
.tea { display: grid; grid-template-columns: auto 1fr; gap: 22px; margin-top: 22px; align-items: start; }
.tea-time { font: 500 40px/1 var(--serif); color: #ffc98a; letter-spacing: .02em; text-shadow: 0 0 30px rgba(255, 170, 90, .35); }
.tea p:last-child { font-size: 14px; color: rgba(243,239,230,.78); }
.tea b { color: var(--light); font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(243,239,230,.12); }
.stats b { display: block; font: 500 40px/1 var(--serif); color: var(--light); }
.stats span { display: block; margin-top: 8px; font: 500 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(243,239,230,.55); }
.vert-kaiseki { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); font-size: 30px; letter-spacing: .6em; color: rgba(255, 214, 170, .8); text-shadow: 0 0 40px rgba(255,160,80,.35); }
/* seasons */
.season-paper { width: min(470px, 38vw); padding: 38px 38px 30px; }
.season-list { list-style: none; margin-top: 26px; }
.season-list li { padding: 14px 0 14px 18px; border-left: 2px solid var(--paper-line); transition: border-color .6s, opacity .6s; opacity: .42; }
.season-list li.is-on { border-color: var(--verm); opacity: 1; }
.s-name { display: flex; justify-content: space-between; align-items: baseline; font: 500 20px/1.2 var(--serif); }
.s-name em { font: 500 11px/1 var(--sans); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--moss); }
.season-list li p:last-child { font-size: 14px; color: var(--ink-2); line-height: 1.7; max-height: 0; overflow: hidden; transition: max-height .8s cubic-bezier(.2,.8,.2,1), margin .6s; }
.season-list li.is-on p:last-child { max-height: 8em; margin-top: 8px; }
.season-kanji { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); display: grid; }
.season-kanji span { grid-area: 1 / 1; font: 600 clamp(120px, 16vw, 260px)/1 var(--serif); color: var(--washi); opacity: 0; transform: translateY(30px); transition: opacity 1s, transform 1.2s cubic-bezier(.2,.8,.2,1);
text-shadow: 0 10px 60px rgba(0,10,6,.5); mix-blend-mode: normal; }
.season-kanji span.is-on { opacity: .8; transform: none; }
/* reserve */
.reserve { min-height: 130vh; display: flex; align-items: center; justify-content: center; padding: 20vh var(--gutter); pointer-events: none; }
.reserve-paper { width: min(980px, 100%); padding: 48px 52px 38px; text-align: left; }
.reserve-paper h2 { max-width: 20em; }
.booking { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1fr auto; gap: 14px; align-items: end; margin-top: 34px; }
.booking label { display: grid; gap: 8px; font: 500 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.booking input, .booking select { height: 48px; border: 0; border-bottom: 1px solid rgba(22,36,30,.3); background: transparent; font: 400 17px/1 var(--serif); color: var(--ink); padding: 0 2px; border-radius: 0; appearance: none; }
.booking select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 12px) 22px, calc(100% - 7px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.booking input:focus, .booking select:focus { outline: none; border-bottom-color: var(--verm); }
.booking .btn { height: 48px; }
.fine { margin-top: 22px; font-size: 13px; color: var(--ink-2); }
/* footer */
.foot { position: relative; background-color: var(--washi); background-image: var(--fibre), linear-gradient(180deg, #f3efe6, #e8e1d2); color: var(--ink); padding: 90px var(--gutter) 46px; }
.foot-inner { max-width: 1320px; margin: 0 auto; }
.foot-mark { font: 500 clamp(54px, 9vw, 150px)/1 var(--serif); letter-spacing: -.02em; display: flex; align-items: baseline; gap: .25em; }
.foot-mark .jp { color: var(--verm); font-size: .62em; letter-spacing: .05em; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 40px; margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--paper-line); font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.foot-cols nav { display: grid; gap: 4px; }
.foot-cols nav a { text-decoration: none; color: var(--ink); }
.foot-cols nav a:hover { color: var(--verm-2); }
.foot-fine { margin-top: 56px; font-size: 12px; letter-spacing: .04em; color: rgba(22,36,30,.55); }
.toast { position: fixed; left: 50%; bottom: 5vh; transform: translate(-50%, 16px); z-index: 40; max-width: min(92vw, 560px); padding: 14px 24px; border-radius: 999px;
background: var(--washi); color: var(--ink); font-size: 14px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.5); opacity: 0; transition: opacity .5s, transform .5s; pointer-events: none; text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 900px) {
.links, .sound-label { display: none; }
.nav { padding: 16px 18px; }
.hero-copy { max-width: none; right: 18px; bottom: 15vh; }
.title { font-size: clamp(44px, 12.5vw, 72px); }
.hint { left: 18px; right: auto; bottom: 4vh; font-size: 12px; }
.hint-ring { display: none; }
.touch .hint-draw, .touch .hint-still, .hint-still { display: none; }
.hint { bottom: 76px; }
.scroll-cue { display: none; }
.vert-hero, .hide-m { display: none; }
.pin { align-items: flex-end; padding: 0 12px 64px; }
.rooms-paper, .season-paper { width: 100%; padding: 22px 20px 18px; margin: 0; }
.rooms-paper .lede, .season-paper h2 { display: none; }
.paper h2 { font-size: 26px; }
.room { grid-template-columns: 96px 1fr; gap: 14px; }
.room-body > p:not([class]) { font-size: 13px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.room h3 { font-size: 26px; margin: 8px 0 6px; }
.room-meta { display: none; }
.room-dots { margin-top: 14px; }
.kaiseki { padding: 60vh 12px 12vh; justify-content: center; }
.kaiseki-paper { width: 100%; padding: 26px 22px; }
.menu { grid-template-columns: 1fr; }
.menu li { grid-template-columns: 40px 1fr; }
.menu li > span:last-child { grid-column: 2; }
.vert-kaiseki { top: 26vh; font-size: 22px; }
.season-kanji { right: 12px; top: 22vh; transform: none; }
.season-kanji span { font-size: 110px; }
.season-list li { padding: 8px 0 8px 14px; }
.reserve-paper { padding: 28px 22px; }
.booking { grid-template-columns: 1fr 1fr; }
.booking label:first-child, .booking .btn { grid-column: 1 / -1; }
.foot-cols { grid-template-columns: 1fr; gap: 20px; }
.stats b { font-size: 30px; }
}