:root {
  --ink: #16131F;
  --night: #0E0C14;
  --sky: #F4F2FC;
  --paper: #FFFFFF;
  --soft: #D9D5E6;
  --mute: #8F8AA3;
  --text: #16131F;
  --text-2: #4F4A63;
  --text-3: #8B86A0;
  --accent: #6965DB;
  --kuma: #26C26E;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "New York", "Iowan Old Style", "Charter", "Georgia", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --hand: "Virgil", "Marker Felt", "Bradley Hand", "Comic Sans MS", cursive;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: #E9E6F7; color: var(--text); overflow: hidden; font-family: var(--sans); -webkit-font-smoothing: antialiased; }
code { font-family: var(--mono); font-size: 0.86em; padding: 0.08em 0.35em; border-radius: 0.3em; background: rgba(105, 101, 219, 0.12); }

.viewport { position: fixed; inset: 0; }
.stage {
  position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px;
  transform: translate(-50%, -50%) scale(var(--scale, 0.5)); transform-origin: center;
  overflow: hidden; background: var(--sky);
}
.stage.is-paused *, .stage.is-paused *::before, .stage.is-paused *::after { animation-play-state: paused !important; }

.wallpaper {
  position: absolute; inset: -10%;
  background:
    radial-gradient(45% 55% at 16% 20%, rgba(167, 164, 240, 0.85), transparent 70%),
    radial-gradient(40% 50% at 86% 24%, rgba(125, 190, 250, 0.7), transparent 70%),
    radial-gradient(45% 55% at 72% 94%, rgba(255, 184, 120, 0.7), transparent 70%),
    radial-gradient(38% 48% at 22% 90%, rgba(130, 228, 172, 0.6), transparent 70%),
    linear-gradient(180deg, #FBFAFF, #EEEBFB);
  animation: drift 40s ease-in-out infinite alternate;
  transition: filter 1.2s var(--ease), opacity 1.2s;
}
@keyframes drift { to { transform: translate(-2%, 1.5%) scale(1.04); } }
.stage[data-scene="before"] .wallpaper { filter: saturate(0.2) brightness(0.92); }
.stage:is([data-scene="title"], [data-scene="tag"], [data-scene="end"]) .wallpaper { opacity: 0.7; }

/* menu bar */
.menubar {
  position: absolute; z-index: 20; inset: 0 0 auto 0; height: 44px;
  display: flex; align-items: center; gap: 26px; padding: 0 26px;
  background: rgba(255, 255, 255, 0.5); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: inset 0 -1px 0 rgba(22, 19, 31, 0.06);
  font-size: 19px; color: var(--text-2); opacity: 0; transform: translateY(-100%);
  transition: opacity 0.6s, transform 0.6s var(--ease);
}
.menubar b { color: var(--text); font-weight: 700; }
.menubar__mark svg { width: 22px; height: 22px; fill: var(--text); display: block; }
.menubar__mark .lit { fill: var(--accent); }
.menubar__clock { margin-left: auto; font-variant-numeric: tabular-nums; }
.menubar__clock #clock { display: inline-block; min-width: 3.2em; text-align: right; }
.menubar__clock.tick #clock { animation: tick 0.5s var(--ease); }
@keyframes tick { from { opacity: 0; transform: translateY(-8px); } }
.stage:is([data-scene="before"], [data-scene="pack"], [data-scene="kuma"], [data-scene="excal"], [data-scene="vik"], [data-scene="jup"], [data-scene="memos"], [data-scene="after"]) .menubar { opacity: 1; transform: none; }

/* scenes */
.scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.7s var(--ease), visibility 0s 0.7s; }
.scene.is-on { opacity: 1; visibility: visible; transition: opacity 0.7s var(--ease), visibility 0s; }

/* title */
.scene--title { display: grid; place-content: center; text-align: center; }
.scene--title h1 { margin: 0; font: 700 180px/1 var(--serif); letter-spacing: -0.035em; }
.kicker, .caption__tag {
  margin: 0 0 28px; font: 600 20px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent);
}
.scene--title .sub { margin: 34px 0 0; font: 400 40px/1.3 var(--serif); color: var(--text-2); }
.scene--title.is-on .kicker { animation: fade-up 1s var(--ease) 0.2s both; }
.scene--title.is-on h1 { animation: title-in 1.6s var(--ease) 0.4s both; }
.scene--title.is-on .sub { animation: fade-up 1s var(--ease) 1.4s both; }
@keyframes title-in { from { opacity: 0; letter-spacing: 0.06em; filter: blur(12px); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(26px); } }
@keyframes fade-in { from { opacity: 0; } }

/* before */
.tty {
  position: absolute; left: var(--x); top: var(--y); width: 700px;
  border-radius: 14px; background: #1B1824; box-shadow: 0 30px 70px rgba(22, 19, 31, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  font: 400 21px/1.9 var(--mono); color: var(--soft); transform: rotate(var(--r)); overflow: hidden;
}
.tty p { margin: 0; padding: 0 24px; white-space: nowrap; }
.tty p:last-child { padding-bottom: 18px; }
.tty b { color: var(--mute); font-weight: 400; }
.tty .dim { color: var(--mute); }
.tty .err { color: #FF8A8E; }
.tty__bar, .win__bar { display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 18px; background: rgba(255, 255, 255, 0.05); margin-bottom: 10px; }
.tty code { background: rgba(255, 255, 255, 0.1); }
.tty__bar i, .win__bar i { width: 14px; height: 14px; border-radius: 50%; background: #FF5F57; }
.tty__bar i:nth-child(2), .win__bar i:nth-child(2) { background: #FEBC2E; }
.tty__bar i:nth-child(3), .win__bar i:nth-child(3) { background: #28C840; }
.tty__bar span, .win__bar span { margin: 0 auto; padding-right: 60px; font: 600 17px/1 var(--sans); color: var(--mute); }
.scene--before.is-on .tty { animation: pop 0.6s var(--back) both; animation-delay: calc(0.35s + var(--i) * 0.55s); }
.scene--before.is-on .tty p { animation: fade-in 0.2s both; animation-delay: calc(0.6s + var(--i) * 0.55s); }
.scene--before.is-on .tty p:nth-of-type(2) { animation-delay: calc(0.95s + var(--i) * 0.55s); }
.scene--before.is-on .tty p:nth-of-type(3) { animation-delay: calc(1.3s + var(--i) * 0.55s); }
.scene--before.is-on .tty:nth-of-type(3) { animation: pop 0.6s var(--back) 1.45s both, shake 0.5s ease-in-out 3.4s 2; }
@keyframes pop { from { opacity: 0; transform: rotate(var(--r)) scale(0.82) translateY(40px); } }
@keyframes shake { 0%, 100% { transform: rotate(var(--r)); } 25% { transform: rotate(var(--r)) translateX(-14px); } 75% { transform: rotate(var(--r)) translateX(14px); } }

.caption--before {
  position: absolute; left: 120px; right: 120px; bottom: 70px; padding: 40px 48px;
  border-radius: 24px; background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 30px 70px rgba(22, 19, 31, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}
.caption--before .caption__tag { color: #E5484D; margin-bottom: 18px; }
.caption--before .caption__text { margin: 0; font: 400 46px/1.25 var(--serif); }
.scene--before.is-on .caption--before { animation: fade-up 0.9s var(--ease) 4s both; }

/* pack */
.scene--pack { display: grid; place-content: center; text-align: center; }
.pack__mark { width: 190px; height: 190px; margin: 0 auto 50px; display: block; fill: var(--text); overflow: visible; }
.pack__mark rect { transform-box: fill-box; transform-origin: center; }
.pack__mark .lit { fill: var(--accent); }
.scene--pack.is-on .pack__mark rect { animation: snap 0.9s var(--back) both; }
.scene--pack.is-on .pack__mark rect:nth-child(2) { animation-delay: 0.12s; }
.scene--pack.is-on .pack__mark rect:nth-child(3) { animation-delay: 0.24s; }
.scene--pack.is-on .pack__mark rect:nth-child(4) { animation-delay: 0.36s; }
@keyframes snap { from { opacity: 0; transform: scale(0) rotate(-90deg); } }
.pack h2 { margin: 0; font: 700 96px/1.05 var(--serif); letter-spacing: -0.03em; }
.pack__flow { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 46px 0 0; font: 500 30px/1 var(--mono); color: var(--text-2); }
.pack__flow i { width: 50px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 14px); }
.pack__sub { margin: 40px 0 0; font: 400 34px/1.3 var(--serif); color: var(--text-2); }
.scene--pack.is-on h2 { animation: fade-up 0.9s var(--ease) 0.6s both; }
.scene--pack.is-on .pack__flow > * { animation: fade-in 0.4s both; }
.scene--pack.is-on .pack__flow > :nth-child(1) { animation-delay: 1.2s; }
.scene--pack.is-on .pack__flow > :nth-child(2) { animation-delay: 1.4s; }
.scene--pack.is-on .pack__flow > :nth-child(3) { animation-delay: 1.6s; }
.scene--pack.is-on .pack__flow > :nth-child(4) { animation-delay: 1.8s; }
.scene--pack.is-on .pack__flow > :nth-child(5) { animation-delay: 2.0s; }
.scene--pack.is-on .pack__flow > :nth-child(6) { animation-delay: 2.2s; }
.scene--pack.is-on .pack__flow > :nth-child(7) { animation-delay: 2.4s; }
.scene--pack.is-on .pack__sub { animation: fade-up 0.9s var(--ease) 2.8s both; }
.scene--pack { padding-bottom: 120px; }

/* app scenes */
.caption--side { position: absolute; left: 110px; top: 250px; width: 520px; }
.caption__time { margin: 0 0 26px; font: 700 150px/0.9 var(--serif); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--c); }
.caption--side .caption__text { margin: 0; font: 400 42px/1.28 var(--serif); color: var(--text-2); }
.caption--side b { color: var(--text); }
.chip { display: inline-block; margin: 34px 0 0; padding: 12px 18px; border-radius: 99px; background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 1px rgba(22, 19, 31, 0.08), 0 6px 18px rgba(22, 19, 31, 0.06); font: 500 20px/1 var(--mono); color: var(--text-2); }
.scene--app.is-on .caption__time { animation: fade-up 0.8s var(--ease) 0.1s both; }
.scene--app.is-on .caption__text { animation: fade-up 0.8s var(--ease) 0.35s both; }
.scene--app.is-on .chip { animation: fade-up 0.8s var(--ease) 0.6s both; }

.win {
  position: absolute; left: 700px; top: 120px; width: 1110px; height: 700px;
  border-radius: 18px; background: #FBFAFD; color: var(--ink); overflow: hidden;
  box-shadow: 0 50px 110px rgba(22, 19, 31, 0.24), 0 0 0 1px rgba(22, 19, 31, 0.06);
  transform-origin: var(--from, 50%) 140%;
}
.win__bar { background: #EFEDF4; margin: 0; }
.win__bar span { color: #6E6984; }
.win__body { position: absolute; inset: 44px 0 0 0; }
.scene--app.is-on .win { animation: launch 0.9s var(--ease) 0.25s both; }
@keyframes launch { from { opacity: 0; transform: scale(0.12) translateY(260px); filter: blur(6px); } }
.scene--kuma { --from: 34%; }
.scene--excal { --from: 42%; }
.scene--vik { --from: 50%; }
.scene--jup { --from: 58%; }
.scene--memos { --from: 66%; }

/* kuma */
.kuma { padding: 40px 46px; display: grid; gap: 20px; align-content: start; }
.kuma__row { display: grid; grid-template-columns: 22px 240px 1fr 80px; align-items: center; gap: 24px; padding: 22px 26px; border-radius: 14px; background: var(--paper); box-shadow: 0 4px 16px rgba(22, 19, 31, 0.07); }
.kuma__row .up { width: 18px; height: 18px; border-radius: 50%; background: var(--kuma); box-shadow: 0 0 0 6px rgba(38, 194, 110, 0.2); }
.kuma__row .bar { height: 16px; width: var(--w); border-radius: 8px; background: #DCD9E4; }
.kuma__row .beats { height: 34px; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--kuma) 0 10px, transparent 10px 18px); background-size: 18px 34px; }
.kuma__row em { justify-self: end; padding: 7px 14px; border-radius: 99px; background: var(--kuma); color: #FFFFFF; font: 700 17px/1 var(--sans); font-style: normal; text-transform: uppercase; letter-spacing: 0.08em; }
.scene--kuma.is-on .kuma__row { animation: fade-up 0.6s var(--ease) both; animation-delay: calc(1s + var(--i) * 0.16s); }
.scene--kuma.is-on .kuma__row .beats { animation: beats 1.2s linear infinite; }
@keyframes beats { to { background-position: -18px 0; } }

/* excalidraw */
.excal { background: #FFFFFF; background-image: radial-gradient(#E6E3EE 1.2px, transparent 1.2px); background-size: 28px 28px; display: grid; place-items: center; }
.sketch { width: 980px; height: auto; }
.sketch path { fill: none; stroke: var(--c); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.sketch text { font: 400 34px/1 var(--hand); fill: var(--ink); text-anchor: middle; opacity: 0; }
.scene--excal.is-on .sketch .d path { animation: draw 1s ease-out forwards; animation-delay: calc(1.1s + var(--i) * 0.55s); }
.scene--excal.is-on .sketch .d text { animation: show 0.4s forwards; animation-delay: calc(1.6s + var(--i) * 0.55s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes show { to { opacity: 1; } }

/* vikunja */
.vik { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding: 40px; background: #F3F5F9; }
.vik__col { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: 16px; background: #E8ECF3; }
.vik__col p { margin: 0 0 6px; font: 700 22px/1 var(--sans); color: #3F4A5E; }
.vik .card { display: block; height: 78px; border-radius: 12px; background: var(--paper); box-shadow: 0 3px 10px rgba(22, 19, 31, 0.08); position: relative; }
.vik .card::before { content: ""; position: absolute; left: 20px; top: 22px; height: 14px; width: var(--w); max-width: calc(100% - 40px); border-radius: 7px; background: #D5DCE8; }
.vik .card::after { content: ""; position: absolute; left: 20px; bottom: 18px; width: 50px; height: 10px; border-radius: 5px; background: var(--c); opacity: 0.7; }
.vik .done::before { background: #E3E7EF; }
.vik .done::after { background: var(--kuma); }
.vik .slot { display: block; height: 78px; border-radius: 12px; border: 3px dashed rgba(52, 128, 240, 0.5); opacity: 0; }
.scene--vik.is-on .vik .slot { animation: show 0.3s 1.8s forwards; }
.scene--vik.is-on .vik .move { z-index: 2; animation: move-card 1.3s var(--ease) 2.2s forwards; }
@keyframes move-card {
  0% { transform: none; }
  25% { transform: translate(0, -10px) rotate(-3deg); box-shadow: 0 24px 50px rgba(22, 19, 31, 0.25); }
  100% { transform: translate(calc(100% + 70px), 94px); box-shadow: 0 3px 10px rgba(22, 19, 31, 0.08); }
}

/* jupyter */
.jup { display: grid; grid-template-columns: 250px 1fr; }
.jup__files { display: flex; flex-direction: column; gap: 6px; padding: 26px 18px; background: #F2F0F5; border-right: 1px solid #E2DFE8; font: 400 19px/1 var(--sans); color: #514C63; }
.jup__files p { margin: 0 0 12px; font: 600 15px/1 var(--mono); color: #8B86A0; }
.jup__files span { padding: 10px 12px; border-radius: 8px; }
.jup__files .is-on { background: rgba(243, 119, 41, 0.14); color: var(--ink); font-weight: 600; }
.jup__nb { padding: 30px 40px; display: flex; flex-direction: column; gap: 16px; }
.cell { display: flex; align-items: center; gap: 20px; padding: 16px 20px; border-radius: 10px; background: #F5F4F8; border-left: 4px solid var(--c); }
.cell em { font: 500 18px/1 var(--mono); color: #8B86A0; font-style: normal; }
.cell code { background: none; padding: 0; font-size: 22px; color: var(--ink); }
.chart { flex: 1; display: flex; align-items: flex-end; gap: 22px; padding: 26px 30px 0; border-bottom: 2px solid #DAD7E2; }
.chart i { flex: 1; height: var(--h); border-radius: 8px 8px 0 0; background: var(--c); transform-origin: bottom; transform: scaleY(0); }
.scene--jup.is-on .cell { animation: fade-up 0.5s var(--ease) both; }
.scene--jup.is-on .cell:nth-child(1) { animation-delay: 1s; }
.scene--jup.is-on .cell:nth-child(2) { animation-delay: 1.5s; }
.scene--jup.is-on .chart i { animation: grow 0.8s var(--ease) forwards; }
.scene--jup.is-on .chart i:nth-child(1) { animation-delay: 2.1s; }
.scene--jup.is-on .chart i:nth-child(2) { animation-delay: 2.2s; }
.scene--jup.is-on .chart i:nth-child(3) { animation-delay: 2.3s; }
.scene--jup.is-on .chart i:nth-child(4) { animation-delay: 2.4s; }
.scene--jup.is-on .chart i:nth-child(5) { animation-delay: 2.5s; }
.scene--jup.is-on .chart i:nth-child(6) { animation-delay: 2.6s; }
.scene--jup.is-on .chart i:nth-child(7) { animation-delay: 2.7s; }
.scene--jup.is-on .chart i:nth-child(8) { animation-delay: 2.8s; }
@keyframes grow { to { transform: scaleY(1); } }

/* memos */
.memos { padding: 44px 120px; display: flex; flex-direction: column; gap: 20px; background: #FAF8F5; }
.memo { padding: 26px 30px; border-radius: 16px; background: var(--paper); box-shadow: 0 4px 16px rgba(22, 19, 31, 0.07); display: flex; flex-direction: column; gap: 14px; }
.memo--new { min-height: 210px; box-shadow: 0 0 0 3px rgba(227, 162, 31, 0.5), 0 8px 24px rgba(22, 19, 31, 0.08); }
.typing { margin: 0; font: 400 30px/1.45 var(--serif); color: var(--ink); min-height: 2.9em; }
.typing::after { content: ""; display: inline-block; width: 3px; height: 1.05em; margin-left: 3px; vertical-align: -0.15em; background: var(--c); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.memo__tag { align-self: flex-start; padding: 6px 12px; border-radius: 99px; background: rgba(227, 162, 31, 0.18); color: #9A5A16; font: 600 18px/1 var(--sans); }
.memo .ln { display: block; height: 14px; width: var(--w); border-radius: 7px; background: #E6E2DC; }
.scene--memos.is-on .memo:not(.memo--new) { animation: fade-up 0.6s var(--ease) 0.9s both; }

/* dock: translucent rounded shelf, evenly spaced icons, soft reflections */
.dock {
  position: absolute; z-index: 15; left: 50%; bottom: 18px;
  display: flex; align-items: flex-end; gap: 14px; padding: 12px 14px 12px; border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.32));
  backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), inset 0 1.5px 0 rgba(255, 255, 255, 0.95), 0 0 0 1px rgba(22, 19, 31, 0.06), 0 24px 60px rgba(22, 19, 31, 0.16);
  transform: translate(-50%, 170%); transition: transform 0.9s var(--ease);
}
.dock::before { content: ""; position: absolute; left: 16px; right: 16px; top: 1px; height: 46%; border-radius: 30px 30px 14px 14px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent); pointer-events: none; }
.stage:is([data-scene="pack"], [data-scene="kuma"], [data-scene="excal"], [data-scene="vik"], [data-scene="jup"], [data-scene="memos"], [data-scene="after"]) .dock { transform: translate(-50%, 0); }
.stage[data-scene="pack"] .dock { transition-delay: 3.2s; }
.stage[data-scene="after"] .dock { transform: translate(-50%, -300px) scale(1.5); }
.dock__app { position: relative; display: grid; justify-items: center; }
.dock__app img { width: 100px; height: 100px; display: block; transform-origin: bottom center; transition: transform 0.4s var(--back); -webkit-box-reflect: below 3px linear-gradient(transparent 70%, rgba(255, 255, 255, 0.28)); }
.dock__app::after { content: ""; position: absolute; bottom: -9px; width: 6px; height: 6px; border-radius: 50%; background: rgba(22, 19, 31, 0.6); opacity: 0; transition: opacity 0.4s; }
.dock__app.is-running::after { opacity: 1; }
.dock__app em {
  position: absolute; bottom: calc(100% + 18px); padding: 9px 14px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.9); color: var(--text); box-shadow: 0 8px 24px rgba(22, 19, 31, 0.16), inset 0 0 0 1px rgba(22, 19, 31, 0.06);
  font: 600 18px/1 var(--sans); font-style: normal; white-space: nowrap; opacity: 0;
}
.dock__app.is-launch img { animation: bounce 1.1s var(--ease); }
.dock__app.is-launch em { animation: tip 1.6s var(--ease); }
.stage[data-scene="pack"] .dock__app img { animation: pop-icon 0.7s var(--back) both; animation-delay: calc(3.4s + var(--n) * 0.12s); }
@keyframes pop-icon { from { transform: scale(0); } }
@keyframes bounce { 0%, 100% { transform: none; } 25% { transform: translateY(-46px); } 50% { transform: none; } 70% { transform: translateY(-16px); } }
@keyframes tip { 0% { opacity: 0; transform: translateY(6px); } 15%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* after */
.caption--center { position: absolute; left: 0; right: 0; top: 230px; text-align: center; }
.caption--center .caption__tag { color: var(--kuma); }
.caption__big { margin: 0; font: 700 84px/1.1 var(--serif); letter-spacing: -0.03em; color: var(--text); }
.scene--after.is-on .caption__tag { animation: fade-up 0.8s var(--ease) 0.6s both; }
.scene--after.is-on .caption__big { animation: fade-up 0.9s var(--ease) 0.9s both; }

/* tagline */
.scene--tag { display: grid; place-content: center; text-align: center; }
.scene--tag h2 { margin: 0; font: 700 116px/1.05 var(--serif); letter-spacing: -0.035em; max-width: 1800px; }
.scene--tag p { margin: 40px 0 0; font: 400 64px/1 var(--serif); color: var(--text-2); }
.scene--tag em { color: var(--accent); }
.scene--tag.is-on h2 { animation: title-in 1.4s var(--ease) 0.2s both; }
.scene--tag.is-on p { animation: fade-up 1s var(--ease) 1.5s both; }

/* proof */
.scene--proof { display: flex; flex-direction: column; justify-content: center; padding: 0 180px; }
.scene--proof .caption__tag { color: var(--kuma); }
.proof { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; margin: 10px 0 0; padding: 0; }
.proof li { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 28px 14px; border-radius: 22px; background: rgba(255, 255, 255, 0.72); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 14px 36px rgba(22, 19, 31, 0.08); }
.proof img { width: 110px; height: 110px; }
.proof b { font: 700 28px/1.1 var(--serif); }
.proof code { font-size: 22px; color: var(--text-2); }
.proof__text { margin: 50px 0 0; max-width: 1400px; font: 400 36px/1.4 var(--serif); color: var(--text-2); }
.proof__fine { margin: 30px 0 0; font: 400 20px/1.4 var(--sans); color: var(--text-3); }
.scene--proof.is-on .caption__tag { animation: fade-up 0.6s var(--ease) 0.2s both; }
.scene--proof.is-on .proof li { animation: fade-up 0.7s var(--ease) both; animation-delay: calc(0.4s + var(--i) * 0.12s); }
.scene--proof.is-on .proof__text { animation: fade-up 0.8s var(--ease) 1.3s both; }
.scene--proof.is-on .proof__fine { animation: fade-in 0.8s 2s both; }

/* end */
.scene--end { display: grid; place-content: center; justify-items: center; text-align: center; }
.end__mark { width: 150px; height: 150px; fill: var(--text); overflow: visible; }
.end__mark .lit { fill: var(--accent); }
.end__mark rect { transform-box: fill-box; transform-origin: center; }
.scene--end h2 { margin: 40px 0 0; font: 700 120px/1 var(--serif); letter-spacing: -0.035em; }
.scene--end p { margin: 24px 0 0; font: 400 46px/1 var(--serif); color: var(--text-2); }
.scene--end .end__url { margin-top: 56px; font: 500 28px/1 var(--mono); color: var(--text-3); }
.scene--end.is-on .end__mark rect { animation: snap 0.9s var(--back) both; }
.scene--end.is-on .end__mark rect:nth-child(2) { animation-delay: 0.12s; }
.scene--end.is-on .end__mark rect:nth-child(3) { animation-delay: 0.24s; }
.scene--end.is-on .end__mark rect:nth-child(4) { animation-delay: 0.36s; }
.scene--end.is-on h2 { animation: fade-up 0.9s var(--ease) 0.6s both; }
.scene--end.is-on p { animation: fade-up 0.9s var(--ease) 1s both; }
.scene--end.is-on .end__url { animation-delay: 1.4s; }

/* controls */
.controls {
  position: fixed; z-index: 100; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 8px 10px; width: min(760px, calc(100% - 24px));
  border-radius: 99px; background: rgba(30, 26, 41, 0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: opacity 0.4s;
}
body.is-idle .controls, body.is-clean .controls { opacity: 0; pointer-events: none; }
body.is-idle { cursor: none; }
.ctl { flex: none; display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 12px; border: 0; border-radius: 99px; background: rgba(255, 255, 255, 0.1); color: var(--paper); font: 600 15px/1 var(--sans); cursor: pointer; text-decoration: none; }
.ctl:hover { background: rgba(255, 255, 255, 0.2); }
.ctl--text { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.progress { flex: 1; display: flex; gap: 4px; }
.progress button { flex: var(--dur, 1); height: 6px; padding: 0; border: 0; border-radius: 3px; background: rgba(255, 255, 255, 0.16); cursor: pointer; position: relative; overflow: hidden; }
.progress button i { position: absolute; inset: 0; background: var(--paper); transform-origin: left; transform: scaleX(var(--p, 0)); }

@media (prefers-reduced-motion: reduce) {
  .wallpaper { animation: none; }
}
