:root {
  --bg: #1a0606; --bg2: #2a0c09; --bg3: #3a110c; --red: #ff3b1f; --ink: #fff1ec; --soft: #e9b4a7; --paper: #f1efeb; --print-ink: #1b1210; --ok: #7be06b;
  --face: "Clash Grotesk", "Helvetica Neue", Arial, sans-serif;
  --m: 48px;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.5rem, 1.3rem + 3.4vw, 4.25rem);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.45 var(--face); min-height: 100svh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* nav */
.top { display: flex; justify-content: space-between; align-items: center; padding: 26px var(--m); font-size: 15px; }
.logo { display: flex; align-items: center; gap: 10px; font: 600 24px var(--face); letter-spacing: -.02em; }
.logo img { width: 28px; height: 28px; }
.top .right { display: flex; gap: 28px; align-items: center; }
.top .right a { transition: color .2s; }
.top .right a:hover { color: var(--red); }
.wallet { background: var(--ink); color: var(--bg); border: 0; padding: 10px 16px; font-weight: 500; transition: background .2s, transform .15s; }
.wallet:hover { background: var(--red); }
.wallet:active { transform: scale(.97); }
.wallet.on { background: var(--ok); color: var(--bg); }

.stage { display: none; position: relative; padding: 10px var(--m) 70px; }
.stage.on { display: block; }

/* A: hero */
#stage-drop { padding: 0 0 0 var(--m); }
.hero { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.hero-copy { grid-column: 1 / span 6; padding: 7vh 0 64px; align-self: start; }
.huge .l { display: block; }
.huge { font: 500 clamp(2.5rem, 5.6vw, 5.75rem)/.95 var(--face); letter-spacing: -.035em; max-width: 11.5em; }
.lead { font-size: var(--step-lead); line-height: 1.35; max-width: 32ch; margin: 36px 0 40px; }
.bigdrop { display: flex; gap: 0; align-items: stretch; max-width: 640px; background: var(--bg2); transition: background .2s; }
.bigdrop.drag { background: var(--bg3); outline: 2px solid var(--red); }
.bigdrop input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 20px 18px; font-size: 19px; color: var(--ink); }
.bigdrop input::placeholder { color: #b9786a; }
.clip { display: grid; place-items: center; padding: 0 18px; background: var(--bg3); cursor: pointer; white-space: nowrap; font-size: 15px; transition: background .2s; }
.clip:hover { background: #4d1710; }
.photochip { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 6px 10px 6px 6px; background: var(--bg2); font-size: 15px; }
.photochip img { width: 36px; height: 36px; object-fit: cover; }
.photochip button { background: none; border: 0; font-size: 20px; color: var(--soft); }
.kinds { margin-top: 22px; font-size: 16px; color: var(--soft); max-width: 46ch; }
.try { background: none; border: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.try:hover { color: var(--red); }

.btn { display: inline-block; border: 0; background: var(--red); color: var(--bg); padding: 0 28px; min-height: 56px; font-weight: 600; font-size: 17px; transition: background .2s, transform .15s; }
.btn:hover { background: #ff5a40; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: wait; transform: none; }
.btn.big { padding: 0 32px; }
.ghost { background: var(--bg2); border: 0; padding: 10px 16px; font-size: 15px; transition: background .2s; }
.ghost:hover { background: var(--bg3); }
.ghost:disabled { opacity: .5; cursor: wait; }
.error { color: #ff8a73; margin-top: 16px; font-size: 15px; }
.warn { color: #f0c27b; margin-bottom: 16px; font-size: 15px; }
.fine { font-size: 14px; line-height: 1.5; color: var(--soft); margin-top: 12px; }

/* the stage with the developing print */
.tray { grid-column: 7 / -1; background: var(--red); margin-top: 24px; padding: 56px 0 80px 56px;
  clip-path: polygon(120px 0, 100% 0, 100% 100%, 0 100%, 0 120px); overflow: hidden; }
.print { width: min(600px, 100%); background: var(--paper); color: var(--print-ink); padding: 20px 20px 16px; font: 400 15px/1.4 var(--face); }
.print-src { font-size: 14px; color: #6d5f57; margin-bottom: 16px; }
.print-src q { color: var(--print-ink); }
.print-body { display: grid; grid-template-columns: 210px 1fr; gap: 20px; align-items: start; }
.print-pfp { aspect-ratio: 1; overflow: hidden; background: #2b2420; }
.print-pfp img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter 1.8s var(--ease), transform 1.8s var(--ease); }
.print-meta b { display: block; font: 600 34px/1 var(--face); letter-spacing: -.02em; }
.print-meta span { display: block; margin-top: 6px; font-size: 15px; font-weight: 500; color: #8a2a17; }
.print-meta p { margin-top: 14px; font-size: 17px; }
.print-sw { display: flex; gap: 8px; margin-top: 16px; }
.print-sw i { width: 24px; height: 24px; border-radius: 50%; }
.print-meta > * { transition: opacity .6s var(--ease), transform .6s var(--ease); }
#pBanner { display: block; width: 100%; aspect-ratio: 3 / 1; margin-top: 16px; background: #2b2420; transition: filter 1.4s var(--ease); }
.print-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 14px; color: #6d5f57; }
.print.dev .print-pfp img { filter: blur(18px) grayscale(1) brightness(.45); transform: scale(1.06); }
.print.dev #pBanner { filter: blur(10px) grayscale(1) brightness(.5); }
.print.dev .print-meta > * { opacity: 0; transform: translateY(8px); }
.print-meta > :nth-child(2) { transition-delay: .12s; }
.print-meta > :nth-child(3) { transition-delay: .24s; }
.print-meta > :nth-child(4) { transition-delay: .36s; }

/* sections */
.sites, .developed { padding: 180px var(--m) 0; }
.sec { font: 500 var(--step-head)/1 var(--face); letter-spacing: -.03em; max-width: 16em; }
.sec.small { font-size: 18px; letter-spacing: 0; color: var(--soft); font-weight: 400; margin-bottom: 18px; }
.sec-lead { font-size: var(--step-lead); line-height: 1.35; max-width: 40ch; margin: 24px 0 48px; }
.tiles { display: grid; gap: 12px; row-gap: 28px; }
.tiles.six { grid-template-columns: repeat(3, 1fr); }
.tiles.six .tile img { aspect-ratio: 4 / 3; object-position: top; }
.tiles.four { grid-template-columns: repeat(4, 1fr); }
.tile { display: block; overflow: hidden; }
.tile img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; transition: transform .6s var(--ease); }
a.tile:hover img, .tile:hover img { transform: scale(1.03); }
.strip { display: flex; flex-direction: column; gap: 6px; min-height: 88px; padding: 12px; font-size: 14px; line-height: 1.3; font-variant-numeric: tabular-nums; position: relative; }
.strip .r1, .strip .r2 { display: flex; justify-content: space-between; gap: 10px; }
.strip .r1 b { font-weight: 600; }
.strip .r2 { opacity: .8; }
.p1 .strip { background: var(--red); color: var(--bg); }
.p2 .strip { background: var(--paper); color: var(--print-ink); }
.p3 .strip { background: var(--bg3); color: var(--ink); }
.p4 .strip { background: #ffd9cf; color: var(--bg); }

.ownca { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; margin: 120px var(--m) 0; padding: 18px; background: var(--bg2); font-size: 16px; }
.ownca > span { color: var(--red); font-weight: 600; }
.ownca .ca { background: var(--bg3); border: 0; padding: 8px 12px; color: var(--ink); word-break: break-all; }
.ownca a { text-decoration: underline; text-underline-offset: 3px; }

/* faq: questions left, one answer right */
.faq { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: 180px var(--m) 0; }
.qs { grid-column: 1 / span 5; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.q { display: flex; align-items: center; gap: 14px; background: none; border: 0; font-size: 18px; color: var(--soft); text-align: left; transition: color .15s; }
.q::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--soft); flex: none; transition: background .15s; }
.q.on, .q:hover { color: var(--ink); }
.q.on::before { background: var(--red); }
.answers { grid-column: 7 / -1; position: sticky; top: 120px; align-self: start; display: grid; }
.answers .a { grid-area: 1 / 1; font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.75rem); line-height: 1.3; max-width: 30ch; opacity: 0; visibility: hidden; transition: opacity .15s, visibility 0s .15s; }
.answers .a.on { opacity: 1; visibility: visible; transition: opacity .15s; }

.foot { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: end; padding: 30svh var(--m) 30px; font-size: 15px; color: var(--soft); }
.foot-links { display: flex; gap: 24px; color: var(--ink); }
.foot-links a:hover { color: var(--red); }
.foot-end { text-align: right; }

/* entrances: only hidden once the script has started, so nothing stays hidden without it */
.js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-rise].in { opacity: 1; transform: none; }
.js .tray { animation: shutter 1.1s var(--ease) both .15s; }
.js .tray .print { animation: settle 1.1s var(--ease) both .15s; }
@keyframes shutter { from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%, 100% 120px); } }
@keyframes settle { from { transform: scale(1.12); } }

/* polaroid (developing and live stages) */
.pol { width: 100%; max-width: 380px; background: var(--paper); padding: 16px 16px 64px; position: relative; margin: 0 auto; }
.pol .img { aspect-ratio: 1; background: #2b2420; overflow: hidden; }
.pol .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pol .cap { position: absolute; bottom: 18px; left: 18px; font: 500 24px var(--face); color: var(--print-ink); }
.pol .url { position: absolute; bottom: 22px; right: 18px; font-size: 13px; color: #6d5f57; }
.pol.tilt { transform: rotate(-3deg); }
.developing { transform: rotate(-2deg); }
.developing img { filter: blur(14px) saturate(0) brightness(.4); transition: filter 6s ease-out; opacity: 0; }
.developing img.in { opacity: 1; filter: blur(0) saturate(1) brightness(1); }

/* B */
.dev { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; max-width: 1100px; margin: 40px auto 0; }
.timer { font: 500 120px/1 var(--face); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.timer small { font-size: 40px; color: var(--soft); }
.checks { list-style: none; margin-top: 22px; font-size: 17px; line-height: 2.1; color: #8c5045; }
.checks li { display: flex; align-items: center; gap: 12px; }
.checks li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.checks li.now { color: var(--ink); }
.checks li.now::before { background: var(--red); animation: pulse .8s infinite alternate; }
.checks li.ok { color: var(--ink); }
.checks li.ok::before { background: var(--ok); }
@keyframes pulse { to { opacity: .3; } }

/* C */
.step { font: 500 var(--step-lead)/1.2 var(--face); margin: 10px 0 24px; }
.kit { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; }
.pfpwrap { width: 170px; border-radius: 50%; overflow: hidden; margin-bottom: 14px; }
.pfpwrap canvas { width: 100%; display: block; }
.swatches { display: flex; gap: 8px; margin-bottom: 20px; }
.swatches i { width: 28px; height: 28px; border-radius: 50%; outline: 2px solid transparent; outline-offset: 2px; cursor: pointer; }
.swatches i.on { outline-color: var(--ink); }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 15px; color: var(--soft); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; background: var(--bg2); border: 0; padding: 12px 14px; color: var(--ink); font-size: 17px; outline: 0; resize: vertical; }
.field input:focus, .field textarea:focus { background: var(--bg3); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--bg2); border: 0; padding: 9px 14px; font-size: 15px; transition: background .2s; }
.chip:hover { background: var(--bg3); }
.chip.on { background: var(--ink); color: var(--bg); font-weight: 600; }
.kit-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
#banner { width: 100%; display: block; }
.browser { margin-top: 16px; overflow: hidden; background: #fff; }
.bar3 { background: var(--bg3); display: flex; gap: 6px; align-items: center; padding: 8px 10px; font-size: 13px; color: var(--soft); }
.bar3 i { width: 9px; height: 9px; border-radius: 50%; background: #6b2c22; }
.bar3 span { margin-left: 10px; }
.viewport { height: 440px; overflow: hidden; }
.browser iframe { width: 200%; height: 880px; border: 0; display: block; background: #fff; transform: scale(.5); transform-origin: 0 0; }
.launchbar { display: flex; align-items: end; gap: 16px; margin-top: 22px; }
.launchbar .field { margin: 0; width: 150px; }

/* D */
.done { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; max-width: 1100px; }
.done h2 { font: 500 56px/1 var(--face); letter-spacing: -.03em; }
.links { display: grid; gap: 8px; margin-top: 22px; }
.link { display: flex; justify-content: space-between; background: var(--bg2); padding: 16px; transition: background .2s; }
.link b { font-weight: 500; }
.link span { font-size: 15px; color: var(--soft); }
.link:hover { background: var(--bg3); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rise] { opacity: 1; transform: none; transition: none; }
  .js .tray, .js .tray .print { animation: none; }
  .print-pfp img, #pBanner, .print-meta > * { transition: none; }
}

@media (max-width: 1100px) {
  .tiles.four { grid-template-columns: repeat(2, 1fr); }
  .tiles.six { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --m: 16px; }
  .top .right a { display: none; }
  #stage-drop { padding: 0; }
  .hero { display: block; min-height: 0; }
  .hero-copy { padding: 28px var(--m) 48px; }
  .huge { font-size: 10vw; }
  .lead { margin: 24px 0 28px; }
  .bigdrop { flex-wrap: wrap; }
  .bigdrop input { flex-basis: 100%; }
  .clip { padding: 16px; flex: 1; }
  .bigdrop .btn { flex: 2; }
  .tray { margin-top: 0; padding: 40px 0 0 var(--m); clip-path: polygon(72px 0, 100% 0, 100% 100%, 0 100%, 0 72px); }
  .print { width: 560px; max-width: none; }
  .print-body { grid-template-columns: 150px 1fr; }
  .print-meta b { font-size: 28px; }
  .sites, .developed { padding-top: 120px; }
  .sec-lead { margin-bottom: 32px; }
  .tiles { gap: 8px; row-gap: 20px; }
  .strip .r1 { flex-wrap: wrap; row-gap: 2px; }
  .strip .r1 > :nth-child(n+3) { display: none; }
  .faq { display: block; padding-top: 120px; }
  .answers { position: static; margin-top: 28px; }
  .answers .a { font-size: 21px; }
  .foot { grid-template-columns: 1fr; gap: 8px; padding-top: 20svh; }
  .foot-end { text-align: left; }
  .dev, .kit, .done { grid-template-columns: 1fr; gap: 34px; }
  .timer { font-size: 84px; }
  .viewport { height: 380px; }
  .browser iframe { height: 760px; }
  .launchbar { flex-wrap: wrap; }
}
