/* Minibased site. Tokens first; every colour and size below comes from here. */
:root {
  --ink: #0E0E0E; --paper: #FFFFFF; --ember: #FF5D2A; --lilac: #CDB0FF; --sage: #D1DDD3; --primer: #CFCFCA;
  --rule: rgba(14,14,14,.85); --soft: rgba(14,14,14,.6);
  --f-display: "Funnel Display", system-ui, sans-serif; --f-sans: "Funnel Sans", system-ui, sans-serif; --f-mono: "Space Mono", ui-monospace, monospace;
  --nav: 56px; --gut: 16px;
  --ease: cubic-bezier(.44,0,.56,1); --snap: cubic-bezier(.7,0,.2,1);
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-font-smoothing: antialiased; }
body { background: var(--paper); color: var(--ink); font: 400 17px/1.35 var(--f-sans); letter-spacing: -.01em; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.mono { font: 400 12.5px/1.25 var(--f-mono); text-transform: uppercase; letter-spacing: .02em; }
.display { font-family: var(--f-display); font-weight: 500; letter-spacing: -.045em; line-height: .95; }

/* roll: the label is written twice; hover slides the second copy in */
.roll { display: inline-grid; overflow: hidden; height: 1.15em; line-height: 1.15em; vertical-align: bottom; }
.roll > span { grid-area: 1/1; transition: transform .35s var(--snap); }
.roll > span + span { transform: translateY(105%); }
a:hover .roll > span, button:hover .roll > span, .roll-host:hover .roll > span { transform: translateY(-105%); }
a:hover .roll > span + span, button:hover .roll > span + span, .roll-host:hover .roll > span + span { transform: translateY(0); }

/* nav: blocks of flat colour, like the reference */
.nav { position: fixed; inset: 0 0 auto; height: var(--nav); display: flex; z-index: 50; background: var(--paper); font: 500 18px/1 var(--f-display); letter-spacing: -.03em; }
.nav > * { display: flex; align-items: center; padding: 0 var(--gut); }
.nav-mark { background: var(--ink); color: var(--paper); font-size: 24px; letter-spacing: -.045em; gap: 4px; min-width: 0; padding: 0 19px 0 16px; white-space: nowrap; }
.nav-mark sup { font: 400 12px var(--f-mono); letter-spacing: 0; align-self: flex-start; margin-top: 12px; color: var(--ember); }
.nav-cta { background: var(--ember); width: clamp(180px, 20vw, 320px); flex-shrink: 0; justify-content: flex-end; gap: 10px; }
.nav-store { background: var(--lilac); }
/* the Store stays out of sight until it works online (owner 2026-11-08) */
.nav-store[hidden] { display: none; }
.nav-links { margin-left: auto; gap: clamp(16px, 3vw, 56px); }
.plus { font-weight: 400; font-size: 22px; line-height: 1; }

/* hero collage */
.hero { --collage-h: 48vh; position: relative; padding-top: var(--nav); }
.collage { position: relative; height: 48vh; overflow: hidden; background: var(--lilac); }
.collage-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); filter: saturate(1.1); }
.tile { position: absolute; overflow: hidden; outline: 1px solid rgba(255,255,255,.75); }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .tag { position: absolute; right: 0; bottom: 0; background: var(--paper); padding: 4px 6px 3px; font-size: 10px; }
.tile.flash img { filter: invert(1) hue-rotate(180deg); }
.hero-copy { display: grid; grid-template-columns: 7fr 5fr; grid-template-rows: auto auto 1fr auto; min-height: calc(52vh - var(--nav)); padding: 18px var(--gut) 20px; gap: 0 var(--gut); }
/* the title and the way in on the left; the miniatures' credit on the right */
/* the miniatures' credit: a small card in the collage's bottom-right corner, clear of the page scrollbar (under the
   intro's full-screen collage) */
.hero-credit { position: absolute; z-index: 2; right: 30px; top: calc(var(--nav) + var(--collage-h)); transform: translateY(-100%);
  margin: 0; padding: 10px 15px 9px; background: var(--paper); font-size: 17px; line-height: 1.2; letter-spacing: -.02em; }
.hero-credit a { color: var(--ember); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.hero-credit a:hover { color: var(--ink); }
.hero-copy { --hero-size: clamp(64px, 8.4vw, 132px); }
.hero-title { grid-row: 1 / 3; grid-column: 1; font-size: var(--hero-size); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: block; transform: translateY(110%); transition: transform .9s var(--snap); }
.is-ready .hero-title .line > span { transform: none; }
.is-ready .hero-title .line + .line > span { transition-delay: .08s; }
.hero-foot { grid-row: 4; grid-column: 1 / 3; display: grid; grid-template-columns: 7fr 5fr; gap: 0 var(--gut); align-items: end; padding-top: 16px; }
/* the way in sits on the right, level with the title's second line and as tall as its letters (cap height
   .72em of the title, its bottom on the line's baseline) */
.hero-enter { grid-row: 2; grid-column: 2; justify-self: end; align-self: end; margin-bottom: calc(var(--hero-size) * .135);
  display: flex; justify-content: space-between; align-items: center; width: min(100%, 460px); height: calc(var(--hero-size) * .71); padding: 0 22px; background: var(--ember); color: var(--ink);
  font: 500 24px var(--f-display); letter-spacing: -.03em; transition: background .25s var(--ease), color .25s var(--ease); }
.hero-enter .arrow { font-size: 30px; transition: transform .35s var(--snap); }
.hero-enter:hover { background: var(--ink); color: var(--paper); }
.hero-enter:hover .arrow { transform: translateX(8px); }
.hero-side { grid-column: 2; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.hero-foot .scroll { display: flex; gap: 14px; font: 500 18px var(--f-display); letter-spacing: -.03em; }

/* intro: the collage fills the screen, the mark appears, then both settle into place */
.is-intro { overflow: hidden; }
.is-intro .hero { padding-top: calc(var(--nav) + 48vh); }
.is-intro .collage { position: fixed; inset: 0; height: 100vh; z-index: 60; }
.is-intro .nav { opacity: 0; }
.collage.settle { transition: top .85s var(--snap), height .85s var(--snap); top: var(--nav); height: 48vh; }
.nav { transition: opacity .3s .55s; }
/* the box itself shrinks (left/top/width/height), so the text inside never stretches: the big name fades out at
   once and the menu-sized name fades in as the box lands on the menu block */
.intro-mark { position: fixed; z-index: 70; background: var(--ink); color: var(--paper); overflow: hidden; clip-path: inset(48% 0 48% 0); }
.intro-mark .w { position: absolute; left: 16px; top: 14px; font: 500 clamp(40px, 5vw, 76px)/.9 var(--f-display); letter-spacing: -.05em; white-space: nowrap; transition: opacity .18s; }
.intro-mark .s { position: absolute; left: 16px; top: 50%; translate: 0 -50%; font: 500 24px/1 var(--f-display); letter-spacing: -.045em; white-space: nowrap; opacity: 0; transition: opacity .3s .3s; }
.intro-mark.open { clip-path: inset(0 0 0 0); transition: clip-path .45s var(--snap); }
.intro-mark.fly { transition: left .8s var(--snap), top .8s var(--snap), width .8s var(--snap), height .8s var(--snap); }
.intro-mark.fly .w { opacity: 0; }
.intro-mark.fly .s { opacity: 1; }

/* sections */
.wrap { padding: 0 var(--gut); }
.rule-top { border-top: 1px solid var(--rule); }
.formats { display: grid; grid-template-columns: 2fr 5fr 5fr; padding: 28px var(--gut) 34px; gap: var(--gut); align-items: baseline; }
.formats .list { display: flex; gap: 48px; font: 500 26px var(--f-display); letter-spacing: -.05em; }
.reflect { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gut); padding: 22px var(--gut) 120px; }
.reflect h2 { font-size: clamp(36px, 3.6vw, 54px); line-height: 1; letter-spacing: -.045em; font-weight: 500; font-family: var(--f-display); max-width: 18ch; }
.reflect p { max-width: 46ch; color: var(--soft); margin-top: 18px; }
.c-lilac { background: var(--lilac); } .c-sage { background: var(--sage); } .c-ember { background: var(--ember); } .c-primer { background: var(--primer); } .c-ink { background: var(--ink); color: var(--paper); }

/* chapters: sticky sheets that stack */
/* every sheet, from "Local only" to Supports: name and clip on the left; text, list and button on the right,
   top-aligned with the same gaps on every sheet, so nothing drifts with the window height */
.chapter { position: sticky; top: var(--nav); min-height: calc(100vh - var(--nav)); padding: 20px var(--gut) 18px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; align-content: start; gap: 0 var(--gut); }
.chapter::before { content: ""; grid-column: 1 / 3; border-top: 1px solid var(--rule); margin-bottom: 18px; }
/* a pause between sheets: one settles whole and stays for a stretch of scrolling before the next slides over it */
.chapter + .chapter { margin-top: 45vh; }
#sheets > .chapter + #tools { margin-top: 45vh; }
#tools::after { content: ""; display: block; height: 45vh; }
.chapter .num { font-size: clamp(64px, 6vw, 92px); }
.chapter h3 { font: 500 clamp(32px, 2.9vw, 44px)/1.02 var(--f-display); letter-spacing: -.045em; max-width: 14ch; }
.chapter h3 { min-height: calc(2 * 1.02em); }
.chapter .body { max-width: 44ch; margin-top: 34px; font-size: 18px; min-height: calc(3 * 1.35em); }
/* each tool shows a square clip recorded in the editor, under its name, beside the text */
/* the right column (text, list, button) sets the height; the clip fills the left column under the name, as a
   square, so its bottom edge always lands on the bottom of the black button */
.chapter .side { grid-column: 1; grid-row: 2 / 4; display: flex; flex-direction: column; gap: 20px; }
.chapter > div:not(.side):not(.cover) { grid-column: 2; grid-row: 2; }
.chapter figure { flex: 1 1 auto; min-height: 220px; position: relative; container-type: size; }
.chapter figure video, .chapter figure img { position: absolute; left: 0; bottom: 0; width: min(100cqw, 100cqh); height: min(100cqw, 100cqh); object-fit: cover; display: block; background: var(--ink); }
.chapter .cover { grid-column: 2; grid-row: 3; align-self: start; max-width: 760px; margin-top: clamp(24px, 6.5vh, 56px); }
.chapter .cover .mono { margin-bottom: 26px; }
.chapter ul { list-style: none; padding: 0; max-width: 454px; }
.chapter li { border-bottom: 1px solid var(--rule); padding: 13px 0 12px; font-size: 17px; }
.bar { display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: var(--paper); padding: 0 20px; height: 84px; margin-top: 16px; font-size: 17px; }
.bar .arrow { font-size: 26px; transition: transform .35s var(--snap); }
.bar:hover .arrow { transform: translateX(6px); }

/* join + footer */
.join { background: var(--ink); color: var(--paper); text-align: center; padding: 120px var(--gut) 110px; }
.join h2 { font: 500 clamp(32px, 2.9vw, 44px)/1.02 var(--f-display); letter-spacing: -.045em; }
.join p { color: rgba(255,255,255,.62); margin: 14px auto 30px; max-width: 46ch; }
.join .btn { display: inline-flex; gap: 40px; align-items: center; background: var(--ember); color: var(--ink); padding: 18px 22px; font: 500 18px var(--f-display); letter-spacing: -.03em; }
.footer { background: var(--ink); color: var(--paper); padding: 0 var(--gut) 18px; overflow: hidden; }
.footer .counts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.4); border-bottom: 1px solid rgba(255,255,255,.4); }
.footer .counts > div { padding: 14px 16px 12px; border-left: 1px solid rgba(255,255,255,.4); }
.footer .counts > div:first-child { border-left: 0; padding-left: 0; font: 500 30px/1.05 var(--f-display); letter-spacing: -.04em; }
.footer .counts b { display: block; font: 500 clamp(56px, 6vw, 92px)/.95 var(--f-display); letter-spacing: -.06em; }
.wordmark { font-size: 21vw; letter-spacing: -.035em; line-height: .78; margin: 6vw 0 2vw -0.6vw; white-space: nowrap; display: flex; }
.wordmark span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--snap); }
.wordmark.in span { transform: none; }
.foot-row { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: var(--gut); padding-bottom: 36px; align-items: start; }
.foot-row h5 { font: 400 12px var(--f-mono); text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 14px; }
.foot-row a { display: block; font-size: 17px; line-height: 1.95; }
.legal { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.4); padding-top: 14px; font-size: 14px; }

/* scroll reveal */

/* ---- our scrollbar (scrollbar.js); the browser's own is hidden everywhere ---- */
html, * { scrollbar-width: none; }
*::-webkit-scrollbar { width: 0; height: 0; display: none; }
.sb { position: fixed; right: 0; width: 18px; z-index: 55; color: var(--ink); cursor: pointer; touch-action: none; }
.sb.inside { position: absolute; right: auto; z-index: 3; }
.sb.none { display: none; }
.sb.dark { color: var(--paper); }
.sb-line { position: absolute; right: 8px; top: 0; bottom: 0; width: 1px; background: currentColor; opacity: .28;
  transform: scaleY(0); transform-origin: top; transition: transform .75s var(--snap); }
.sb-thumb { position: absolute; right: 6px; width: 5px; background: currentColor; cursor: grab;
  opacity: 0; transform: translateX(12px); transition: opacity .3s .4s, transform .55s .4s var(--snap), color .3s; }
.sb.on .sb-line { transform: none; }
.sb.on .sb-thumb { opacity: 1; transform: none; }
.sb.ready .sb-thumb { transition: width .2s var(--snap), right .2s var(--snap), color .3s; }
.sb.ready:hover .sb-thumb, .sb.drag .sb-thumb { width: 9px; right: 4px; }
.sb.drag .sb-thumb { cursor: grabbing; }
.sb-label { position: absolute; right: 22px; white-space: nowrap; font-size: 11px; background: var(--paper); color: var(--ink); padding: 3px 6px 2px;
  opacity: 0; transform: translateX(8px); transition: opacity .25s, transform .35s var(--snap); pointer-events: none; }
.sb.dark .sb-label { background: var(--ember); }
.sb.talk .sb-label, .sb.drag .sb-label { opacity: 1; transform: none; }


.rise { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .9s var(--snap); }
.rise.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  html, body { overflow-x: hidden; }
  .nav-links { display: none; } .nav-cta { width: auto; flex: 1; min-width: 0; white-space: nowrap; }
  .nav-mark { min-width: 0; }
  .hero-copy { --hero-size: clamp(40px, 13vw, 96px); }
  .collage { height: 46vh; } .hero { --collage-h: 46vh; }
  .formats .list { gap: 20px; font-size: 22px; flex-wrap: wrap; }
  .chapter { position: relative; top: 0; }
  .chapter + .chapter { margin-top: 0; } #tools::after { display: none; }
  .chapter::before { grid-column: 1 / -1; }
  .wordmark { font-size: 19vw; }
  .hero-copy, .reflect, .formats, .chapter, .hero-foot { grid-template-columns: 1fr; }
  .hero-copy { grid-template-rows: none; } .hero-foot { grid-row: auto; }
  .hero-title { grid-row: auto; grid-column: 1; margin-top: 24px; }
  .hero-enter { grid-row: auto; grid-column: 1; width: 100%; height: 64px; margin: 20px 0 0; } .hero-side { grid-column: 1; margin-top: 20px; }
  .chapter figure, .chapter .cover { grid-row: auto; grid-column: 1; margin-top: 24px; }
  /* phones: name, text, clip, list, one under the other */
  .chapter .side { display: contents; }
  .chapter > div:not(.side):not(.cover) { grid-column: 1; grid-row: auto; }
  .chapter figure { order: 1; flex: none; min-height: 0; width: 100%; aspect-ratio: 1 / 1; } .chapter .cover { order: 2; }
  .footer .counts { grid-template-columns: 1fr 1fr; }
  .foot-row { grid-template-columns: 1fr 1fr; }
}


@media (max-width: 600px) {
  :root { --nav: 104px; }
  .nav { flex-wrap: wrap; }
  .nav-mark { width: 100%; height: 56px; }
  .nav-cta { flex: 0 0 50%; height: 48px; padding: 0 12px; gap: 6px; font-size: 16px; }
}

/* strict CSP: the prototype's inline styles as classes */
.f-center { align-self: center; }
[data-lift] { position: relative; z-index: 1; }
[data-lift="paper"] { background: var(--paper); }

/* SEO pass 2026-11-12: the line beside the title, Patreon tags, two ways in */
/* same box as .hero-enter (end of column 2, up to 460px), so the line starts where the button starts */
.hero-sub { grid-row: 1; grid-column: 2; justify-self: end; width: min(100%, 460px); align-self: start; margin-top: calc(var(--hero-size) * .18);
  font: 500 clamp(20px, 1.55vw, 26px)/1.15 var(--f-display); letter-spacing: -.03em; }
.hero-sub .mono { display: block; margin-top: 14px; color: rgba(14, 14, 14, .6); }
.tier { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 6px 1px; border: 1px solid currentColor;
  font: 400 11px/1.2 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; }
.join-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.join p { max-width: 56ch; }
/* the tutorial without an account (/try) */
/* under Start Kitbashing, on the same edge */
.hero-try { grid-row: 3; grid-column: 2; justify-self: end; align-self: start; width: min(100%, 460px); margin-top: -4px;
  display: flex; gap: 10px; align-items: baseline; font: 500 17px/1.2 var(--f-display); letter-spacing: -.02em;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; text-decoration-color: var(--ember); }
.hero-try .arrow { transition: transform .35s var(--snap); }
.hero-try:hover .arrow { transform: translateX(6px); }
.join .join-try { margin: 26px auto 0; font-size: 15px; }
.join .join-try a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ember); }
@media (max-width: 860px) {
  .hero-try { grid-row: auto; grid-column: 1; width: auto; justify-self: start; margin-top: 16px; }
}
.join .btn-ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.join .btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--paper); }
@media (max-width: 860px) {
  .hero-sub { grid-row: auto; grid-column: 1; margin-top: 16px; }
}

