.v13-lab {
  --ink: oklch(0.24 0.025 65);
  --paper: oklch(0.97 0.014 91);
  --cork: oklch(0.94 0.015 80);
  --red: oklch(0.57 0.19 27);
  --yellow: oklch(0.86 0.14 91);
  --green: oklch(0.74 0.13 149);
  --blue: oklch(0.7 0.1 206);
  --pink: oklch(0.76 0.13 353);
  --scene-progress: 0;
  position: relative;
  isolation: isolate;
  color: var(--ink);
  background: var(--cork);
  background-image: radial-gradient(oklch(0.88 0.01 70) 1px, transparent 1px);
  background-position: 0 0;
  background-size: 14px 14px;
  overflow: clip;
}

.v13-lab *, .v13-lab *::before, .v13-lab *::after { box-sizing: border-box; }
.v13-lab button { font: inherit; color: inherit; }
.v13-cursor { position: fixed; z-index: 180; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--paper); border-radius: 50%; opacity: 0; pointer-events: none; mix-blend-mode: difference; transition: width .2s, height .2s, opacity .2s; }
.v13-cursor.is-visible { opacity: 1; }
.v13-cursor.is-hot { width: 62px; height: 62px; }
.v13-cursor i { width: 5px; height: 5px; border-radius: 50%; background: var(--paper); }
.v13-cursor span { position: absolute; top: calc(100% + 5px); color: var(--paper); font: 700 7px/1 'JetBrains Mono', monospace; letter-spacing: 1px; }
.v13-rail { position: fixed; z-index: 80; right: -34px; top: calc(50% - 94px); display: flex; flex-direction: column; gap: 6px; padding: 10px 7px; opacity: 0; background: oklch(0.22 0.02 65 / .78); backdrop-filter: blur(8px); transition: right .3s, opacity .3s; }
.v13-rail.is-visible { right: 15px; opacity: 1; }
.v13-rail button { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: oklch(0.85 0.02 85 / .42); cursor: pointer; transition: height .25s, border-radius .25s, background .25s; }
.v13-rail button.is-active { height: 28px; border-radius: 6px; background: var(--yellow); }
.v13-rail button span { position: absolute; right: 16px; top: 50%; padding: 4px 6px; transform: translate(6px, -50%); opacity: 0; background: var(--ink); color: var(--paper); font: 600 8px/1 'JetBrains Mono', monospace; pointer-events: none; transition: transform .2s, opacity .2s; }
.v13-rail button:hover span { transform: translate(0, -50%); opacity: 1; }
.v13-chapter { position: relative; min-height: 100vh; padding: 110px max(32px, calc((100vw - 1260px) / 2)); overflow: clip; }
.v13-chapter-no, .v13-kicker { font: 600 11px/1.2 'JetBrains Mono', monospace; letter-spacing: 2.4px; text-transform: uppercase; }
.v13-chapter h2 { margin: 14px 0 0; font-size: clamp(46px, 6vw, 94px); line-height: .94; letter-spacing: -3px; text-wrap: balance; }
.v13-chapter p { font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.v13-lab__threshold { position: relative; height: 116px; background: var(--ink); color: var(--paper); overflow: hidden; }
.v13-lab__tape { position: absolute; inset: 35px -5% auto; display: flex; width: max-content; padding: 12px 0; transform: rotate(-2deg); background: var(--yellow); color: var(--ink); box-shadow: 0 8px 28px oklch(0.15 0 0 / .35); font: 700 12px/1 'JetBrains Mono', monospace; letter-spacing: 2px; text-transform: uppercase; }
.v13-lab__tape span { white-space: nowrap; animation: v13-marquee 20s linear infinite; padding-right: 45px; }
.v13-lab__threshold-mark { position: absolute; right: 4vw; bottom: 8px; z-index: 2; font: 500 9px/1 'JetBrains Mono', monospace; letter-spacing: 2px; opacity: .5; }

.v13-prologue { min-height: 120vh; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; justify-items: center; text-align: center; background: radial-gradient(circle at 50% 42%, oklch(0.83 0.08 89 / .45), transparent 34%); }
.v13-prologue h2 { width: 100%; max-width: 1040px; }
.v13-prologue > p { width: 100%; max-width: 630px; margin: 24px auto 0; }
.v13-prologue__desk { position: relative; width: min(940px, 90vw); height: 420px; margin-top: 60px; perspective: 1100px; transform-style: preserve-3d; transform: rotateX(calc(var(--v13-my, 0) * -5deg)) rotateY(calc(var(--v13-mx, 0) * 7deg)); transition: transform .14s linear; }
.v13-prologue__desk::before { content: ''; position: absolute; left: 3%; right: 3%; bottom: 14px; height: 150px; background: oklch(0.35 0.06 49); box-shadow: 0 40px 70px oklch(0.18 0.03 50 / .46); transform: rotateX(67deg); transform-origin: bottom; }
.v13-prologue__laptop { position: absolute; z-index: 3; left: 50%; bottom: 52px; width: 500px; height: 290px; transform: translateX(-50%) translateZ(40px); border: 14px solid oklch(0.22 0.01 65); border-bottom-width: 22px; border-radius: 10px 10px 4px 4px; background: var(--paper); box-shadow: 0 22px 45px oklch(0.16 0.02 60 / .52); }
.v13-prologue__laptop::after { content: ''; position: absolute; left: -65px; right: -65px; bottom: -38px; height: 18px; background: oklch(0.78 0.01 75); clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%); }
.v13-prologue__screen { position: absolute; inset: 0; overflow: hidden; background: var(--paper); background-image: linear-gradient(oklch(0.88 0.025 88) 1px, transparent 1px), linear-gradient(90deg, oklch(0.88 0.025 88) 1px, transparent 1px); background-size: 34px 34px; }
.v13-screen-time { position: absolute; top: 25px; left: 28px; font: 800 52px/1 'Inter', sans-serif; letter-spacing: -2px; }
.v13-screen-tab { position: absolute; right: 28px; top: 32px; font: 600 10px/1 'JetBrains Mono', monospace; letter-spacing: 2px; }
.v13-screen-pulse { position: absolute; left: 50%; top: 58%; width: 84px; height: 84px; border: 3px solid var(--red); border-radius: 50%; transform: translate(-50%, -50%); animation: v13-screen-pulse 2s ease-out infinite; }
.v13-prologue__lamp { position: absolute; left: 5%; bottom: 76px; width: 24px; height: 205px; background: var(--ink); transform: rotate(-6deg); transform-origin: bottom; animation: v13-lamp 5s ease-in-out infinite; }
.v13-prologue__lamp::before { content: ''; position: absolute; left: -39px; top: -28px; width: 96px; height: 62px; background: var(--yellow); clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }
.v13-prologue__lamp::after { content: ''; position: absolute; left: -70px; top: 34px; width: 160px; height: 190px; background: linear-gradient(oklch(0.92 0.13 95 / .28), transparent 78%); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.v13-prologue__mug { position: absolute; right: 11%; bottom: 65px; width: 72px; height: 82px; border-radius: 4px 4px 22px 22px; background: var(--pink); box-shadow: inset -10px -8px 0 oklch(0.62 0.12 351 / .28); }
.v13-prologue__mug::after { content: ''; position: absolute; right: -27px; top: 20px; width: 33px; height: 38px; border: 8px solid var(--pink); border-left: 0; border-radius: 0 22px 22px 0; }
.v13-prologue__hand { position: absolute; z-index: 4; bottom: 18px; width: 230px; height: 80px; border-radius: 60% 20% 20% 50%; background: oklch(0.78 0.09 54); filter: drop-shadow(0 8px 10px oklch(0.2 0.03 50 / .3)); }
.v13-prologue__hand--left { left: 17%; transform: rotate(9deg); animation: v13-type-left .9s ease-in-out infinite alternate; }
.v13-prologue__hand--right { right: 17%; transform: scaleX(-1) rotate(9deg); animation: v13-type-right .8s .18s ease-in-out infinite alternate; }
.v13-pencil-note { margin-top: -2px; font: 600 26px/1.1 'Caveat', cursive; transform: rotate(-1.5deg); }
.v13-scroll-cue { position: absolute; bottom: 40px; left: 50%; display: flex; align-items: center; gap: 12px; transform: translateX(-50%); font: 600 9px/1 'JetBrains Mono', monospace; letter-spacing: 1.8px; }
.v13-scroll-cue span { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: v13-blink 1.2s ease-in-out infinite; }

.v13-clock { height: 360vh; padding-top: 0; background: oklch(0.25 0.025 65); color: var(--paper); }
.v13-clock__sticky { position: sticky; top: 0; min-height: 100vh; padding: 100px max(32px, calc((100vw - 1260px) / 2)); overflow: hidden; }
.v13-clock h2 { max-width: 1030px; }
.v13-clock h2 span { color: var(--yellow); }
.v13-clock__rail { position: absolute; left: max(32px, calc((100vw - 1260px) / 2)); right: max(32px, calc((100vw - 1260px) / 2)); bottom: 140px; height: 190px; }
.v13-clock__line { position: absolute; left: 0; right: 0; top: 90px; height: 5px; background: oklch(0.5 0.025 65); }
.v13-clock__line::after { content: ''; display: block; width: calc(var(--scene-progress) * 100%); height: 100%; background: var(--yellow); box-shadow: 0 0 22px var(--yellow); }
.v13-clock__hour { position: absolute; left: calc(var(--i) * 16.666%); top: 50px; display: grid; gap: 7px; transform: translateX(-50%); text-align: center; opacity: calc(.25 + var(--passed, 0) * .75); transition: opacity .3s, transform .3s; }
.v13-clock__hour::after { content: ''; justify-self: center; width: 18px; height: 18px; margin-top: 9px; border: 4px solid oklch(0.25 0.025 65); border-radius: 50%; background: var(--passed-color, oklch(0.55 0.025 65)); outline: 2px solid oklch(0.7 0.03 70); }
.v13-clock__hour b { font: 700 12px/1 'JetBrains Mono', monospace; }
.v13-clock__hour small { font: 500 9px/1 'JetBrains Mono', monospace; letter-spacing: 1px; }
.v13-clock__hour i { position: absolute; top: -42px; left: 50%; padding: 7px 9px; transform: translateX(-50%) rotate(-4deg) scale(var(--passed, 0)); background: var(--yellow); color: var(--ink); font: 700 11px/1 'JetBrains Mono', monospace; font-style: normal; transition: transform .45s cubic-bezier(.2,1.8,.3,1); }
.v13-clock__runner { position: absolute; z-index: 3; left: calc(var(--scene-progress) * (100% - 18px)); top: 79px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--red); font: 700 8px/1 'JetBrains Mono', monospace; box-shadow: 0 0 0 8px oklch(0.57 0.19 27 / .18); transform: translateX(-50%); }
.v13-clock__sum { position: absolute; right: max(32px, calc((100vw - 1260px) / 2)); top: 330px; display: flex; align-items: flex-end; gap: 18px; }
.v13-clock__sum strong { font-size: 110px; line-height: .8; letter-spacing: -6px; color: var(--yellow); }
.v13-clock__sum span { font: 600 10px/1.35 'JetBrains Mono', monospace; letter-spacing: 1.4px; }

/* Light "daily route"-style redesign for the standalone clock section on the main page,
   scoped by id so the original dark lab chapter is untouched. */
#v13-daily-clock.v13-clock { height: 230vh; padding-top: 0; background: none; color: oklch(0.26 0.02 70); }
#v13-daily-clock .v13-clock__sticky { position: sticky; top: 0; height: 100vh; min-height: 620px; padding: 0 36px; display: flex; align-items: center; overflow: hidden; }
#v13-daily-clock .v13-clock__inner { max-width: 1220px; margin: 0 auto; width: 100%; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: 34px; justify-content: center; }
#v13-daily-clock .v13-clock__copy { flex: 1 1 260px; min-width: 0; max-width: 380px; }
#v13-daily-clock h2 { max-width: none; margin: 10px 0 0; font-size: 34px; font-weight: 800; letter-spacing: -1.3px; line-height: 1.08; }
#v13-daily-clock h2 span { color: oklch(0.5 0.18 25); }
#v13-daily-clock .v13-clock__copy p { margin: 14px 0 0; font-size: 15px; line-height: 1.6; color: oklch(0.36 0.02 65); }
#v13-daily-clock .v13-clock__visual { flex: 1 1 500px; min-width: 0; max-width: 660px; position: relative; background: var(--paper); padding: 56px 34px 40px; box-shadow: 6px 14px 34px oklch(0.2 0.03 60 / .3); transform: rotate(-.6deg); }
#v13-daily-clock .v13-clock__rail { position: relative; left: auto; right: auto; bottom: auto; height: 150px; }
#v13-daily-clock .v13-clock__line { background: oklch(0.85 0.02 75); }
#v13-daily-clock .v13-clock__hour::after { outline-color: var(--paper); }
#v13-daily-clock .v13-clock__hour b,
#v13-daily-clock .v13-clock__hour small { white-space: nowrap; }
#v13-daily-clock .v13-clock__hour:nth-child(3) { transform: translateX(0); }
#v13-daily-clock .v13-clock__hour:last-child { transform: translateX(-100%); }
#v13-daily-clock .v13-clock__sum { position: relative; right: auto; top: auto; margin-top: 34px; }
#v13-daily-clock .v13-clock__sum strong { font-size: 64px; letter-spacing: -3px; color: oklch(0.5 0.18 25); }
#v13-daily-clock .v13-clock__sum span { color: oklch(0.4 0.03 60); }

/* Card-free variants of the "hidden in the workday" chapter — same layout rules as
   #v13-daily-clock, minus the raised paper card. The timeline sits straight on the
   corkboard background and is held down with a different pin/tape motif each time. */
#v13-daily-clock-tape.v13-clock,
#v13-daily-clock-pinned.v13-clock,
#v13-daily-clock-thread.v13-clock { height: 230vh; padding-top: 0; background: none; color: oklch(0.26 0.02 70); }
#v13-daily-clock-tape .v13-clock__sticky,
#v13-daily-clock-pinned .v13-clock__sticky,
#v13-daily-clock-thread .v13-clock__sticky { position: sticky; top: 0; height: 100vh; min-height: 620px; padding: 0 36px; display: flex; align-items: center; overflow: hidden; }
#v13-daily-clock-tape .v13-clock__inner,
#v13-daily-clock-pinned .v13-clock__inner,
#v13-daily-clock-thread .v13-clock__inner { max-width: 780px; margin: 0 auto; width: 100%; box-sizing: border-box; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; justify-content: center; }
#v13-daily-clock-tape .v13-clock__copy,
#v13-daily-clock-pinned .v13-clock__copy,
#v13-daily-clock-thread .v13-clock__copy { flex: none; width: 100%; max-width: none; }
#v13-daily-clock-tape h2, #v13-daily-clock-pinned h2, #v13-daily-clock-thread h2 { max-width: none; margin: 10px 0 0; font-size: 34px; font-weight: 800; letter-spacing: -1.3px; line-height: 1.08; }
#v13-daily-clock-tape h2 span, #v13-daily-clock-pinned h2 span, #v13-daily-clock-thread h2 span { color: oklch(0.5 0.18 25); }
#v13-daily-clock-tape .v13-clock__copy p, #v13-daily-clock-pinned .v13-clock__copy p, #v13-daily-clock-thread .v13-clock__copy p { margin: 14px 0 0; max-width: 520px; font-size: 15px; line-height: 1.6; color: oklch(0.36 0.02 65); }
#v13-daily-clock-tape .v13-clock__visual,
#v13-daily-clock-pinned .v13-clock__visual,
#v13-daily-clock-thread .v13-clock__visual { flex: none; width: 100%; box-sizing: border-box; margin-top: 20px; position: relative; background: none; box-shadow: none; padding: 34px 14px 0; }
#v13-daily-clock-tape .v13-clock__rail,
#v13-daily-clock-pinned .v13-clock__rail,
#v13-daily-clock-thread .v13-clock__rail { position: relative; left: auto; right: auto; bottom: auto; height: 150px; }
#v13-daily-clock-tape .v13-clock__line,
#v13-daily-clock-pinned .v13-clock__line,
#v13-daily-clock-thread .v13-clock__line { background: oklch(0.78 0.02 75); }
#v13-daily-clock-tape .v13-clock__hour::after,
#v13-daily-clock-pinned .v13-clock__hour::after,
#v13-daily-clock-thread .v13-clock__hour::after { outline-color: oklch(0.94 0.015 80); }
#v13-daily-clock-tape .v13-clock__hour b, #v13-daily-clock-tape .v13-clock__hour small,
#v13-daily-clock-pinned .v13-clock__hour b, #v13-daily-clock-pinned .v13-clock__hour small,
#v13-daily-clock-thread .v13-clock__hour b, #v13-daily-clock-thread .v13-clock__hour small { white-space: nowrap; }
#v13-daily-clock-tape .v13-clock__hour:nth-child(3), #v13-daily-clock-pinned .v13-clock__hour:nth-child(3), #v13-daily-clock-thread .v13-clock__hour:nth-child(3) { transform: translateX(0); }
#v13-daily-clock-tape .v13-clock__hour:last-child, #v13-daily-clock-pinned .v13-clock__hour:last-child, #v13-daily-clock-thread .v13-clock__hour:last-child { transform: translateX(-100%); }
#v13-daily-clock-tape .v13-clock__sum, #v13-daily-clock-pinned .v13-clock__sum, #v13-daily-clock-thread .v13-clock__sum { position: relative; right: auto; top: auto; margin-top: 34px; }
#v13-daily-clock-tape .v13-clock__sum strong, #v13-daily-clock-pinned .v13-clock__sum strong, #v13-daily-clock-thread .v13-clock__sum strong { font-size: 64px; letter-spacing: -3px; color: oklch(0.5 0.18 25); }
#v13-daily-clock-tape .v13-clock__sum span, #v13-daily-clock-pinned .v13-clock__sum span, #v13-daily-clock-thread .v13-clock__sum span { color: oklch(0.4 0.03 60); }

/* Variant: washi tape strip standing in for the card edge. */
#v13-daily-clock-tape .v13-clock__visual::before {
  content: 'THE TIMELINE'; position: absolute; top: -4px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  padding: 7px 22px; background: oklch(0.9 0.05 90 / .75); border: 1px solid oklch(0.84 0.04 88);
  box-shadow: 4px 8px 18px oklch(0.22 0.03 60 / .28); font: 700 10px/1 'JetBrains Mono', monospace;
  letter-spacing: 2px; color: oklch(0.42 0.05 70); animation: v13-clock-tape-wiggle 7s ease-in-out infinite;
}

/* Variant: dashed sticky-note outline held by two pushpins, no fill. */
#v13-daily-clock-pinned .v13-clock__visual { border: 1px dashed oklch(0.68 0.03 65); padding: 40px 24px 20px; }
#v13-daily-clock-pinned .v13-clock__visual::before,
#v13-daily-clock-pinned .v13-clock__visual::after {
  content: ''; position: absolute; top: -8px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--red); box-shadow: inset -2px -2px 3px oklch(0.15 0 0 / .35), 0 3px 5px oklch(0.15 0 0 / .35);
}
#v13-daily-clock-pinned .v13-clock__visual::before { left: 16px; }
#v13-daily-clock-pinned .v13-clock__visual::after { right: 16px; }

/* Variant: one pin, one thread — the rail hangs rather than sits on a card. */
#v13-daily-clock-thread .v13-clock__visual { padding-top: 44px; transform-origin: top center; animation: b-hang 6s ease-in-out infinite; }
#v13-daily-clock-thread .v13-clock__visual::before {
  content: ''; position: absolute; top: -10px; left: 50%; width: 16px; height: 16px; margin-left: -8px;
  border-radius: 50%; background: var(--red); box-shadow: inset -2px -2px 3px oklch(0.15 0 0 / .35), 0 3px 5px oklch(0.15 0 0 / .35);
}
#v13-daily-clock-thread .v13-clock__visual::after {
  content: ''; position: absolute; top: 6px; left: 50%; width: 1px; height: 30px; background: oklch(0.55 0.02 65 / .5);
}

/* Standalone, light-corkboard redesign of the dark .v13-receipt lab chapter — same
   printer/receipt metaphor, re-themed in green ink instead of the lab's yellow/red. */
#v13-daily-receipt.v13-receipt { display: block; height: 340vh; min-height: 0; padding: 0; background: none; color: oklch(0.26 0.02 70); --scene-progress: 0; }
#v13-daily-receipt .v13-receipt__sticky { position: sticky; top: 0; height: 100vh; min-height: 620px; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 100px; padding: 96px max(32px, calc((100vw - 1180px) / 2)); overflow: hidden; }
#v13-daily-receipt .v13-receipt__copy h2 { max-width: none; margin: 10px 0 0; font-size: 40px; font-weight: 800; letter-spacing: -1.6px; line-height: 1.06; color: oklch(0.22 0.02 70); }
#v13-daily-receipt .v13-receipt__copy h2 span { color: oklch(0.5 0.13 155); }
#v13-daily-receipt .v13-receipt__copy p { margin: 16px 0 0; max-width: 420px; font-size: 15px; line-height: 1.6; color: oklch(0.36 0.02 65); }
#v13-daily-receipt .v13-receipt__printer {
  height: min(760px, 74vh);
  --slot-border: oklch(0.18 0.02 65);
  --slot-metal-1: oklch(0.62 0.02 68);
  --slot-metal-2: oklch(0.5 0.02 68);
  --slot-metal-3: oklch(0.4 0.02 66);
  --slot-rivet: oklch(0.82 0.02 80);
  --slot-rivet-shadow: oklch(0.3 0.02 65);
}
#v13-daily-receipt .v13-receipt__slot { box-shadow: 0 20px 34px oklch(0.2 0.03 60 / .3), inset 0 2px 3px oklch(1 0 0 / .18), inset 0 -4px 8px oklch(0 0 0 / .3); }
#v13-daily-receipt .v13-receipt__slot::after { color: oklch(0.92 0.02 85); }
#v13-daily-receipt .v13-receipt__paper {
  background: var(--paper); color: oklch(0.24 0.025 65); box-shadow: 0 22px 40px oklch(0.2 0.03 60 / .28);
  transform: translateY(calc((1 - clamp(0, calc(var(--scene-progress) / .62), 1)) * -84%));
  transition: none;
}
#v13-daily-receipt .v13-receipt__paper::after { background: linear-gradient(135deg, transparent 7px, var(--paper) 0) 0 0/14px 14px repeat-x; }
#v13-daily-receipt .v13-receipt__row { border-bottom-color: oklch(0.7 0.02 70); }
#v13-daily-receipt .v13-receipt__row b { color: oklch(0.45 0.13 155); }
#v13-daily-receipt .v13-receipt__total strong { color: oklch(0.4 0.14 155); }
#v13-daily-receipt .v13-receipt__light { background: var(--green); box-shadow: 0 0 15px var(--green); }
@media (max-width: 900px) {
  #v13-daily-receipt.v13-receipt { height: 260vh; }
  #v13-daily-receipt .v13-receipt__sticky { min-height: 0; grid-template-columns: 1fr; gap: 16px; padding: 64px 22px 24px; align-content: center; justify-items: center; text-align: center; }
  #v13-daily-receipt .v13-receipt__copy p { margin: 10px auto 0; }
  #v13-daily-receipt .v13-receipt__printer { width: min(420px, 82vw); height: min(560px, 56vh); }
}

.v13-portal { min-height: 145vh; background: var(--paper); }
.v13-portal__copy { max-width: 860px; }
.v13-portal__copy p { max-width: 600px; }
.v13-portal__stage { --world: var(--yellow); position: relative; min-height: 760px; margin-top: 60px; display: grid; place-items: center; transition: background .5s; }
.v13-portal__halo { position: absolute; width: min(76vw, 900px); aspect-ratio: 1; border-radius: 50%; background: color-mix(in oklab, var(--world), transparent 36%); filter: blur(70px); opacity: .55; transform: scale(calc(.82 + var(--scene-progress) * .2)); transition: background .5s; }
.v13-portal__window { position: relative; z-index: 2; width: min(900px, 88vw); height: 540px; border: 11px solid var(--ink); border-radius: 9px; background: var(--world); box-shadow: 22px 28px 0 oklch(0.24 0.025 65 / .18), 0 45px 80px oklch(0.2 0.02 60 / .24); transform: perspective(1200px) rotateX(calc((.5 - var(--scene-progress)) * 7deg)) rotateY(calc(var(--v13-mx, 0) * 4deg)); transition: background .5s; overflow: hidden; }
.v13-portal__bar { height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: var(--ink); color: var(--paper); }
.v13-portal__bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.v13-portal__bar span:nth-child(2) { background: var(--yellow); }
.v13-portal__bar span:nth-child(3) { background: var(--green); }
.v13-portal__bar b { margin-left: 12px; font: 500 9px/1 'JetBrains Mono', monospace; letter-spacing: 1.2px; opacity: .7; }
.v13-portal__world { position: absolute; inset: 42px 0 0; display: grid; place-items: center; background-image: linear-gradient(oklch(0.25 0.02 65 / .12) 1px, transparent 1px), linear-gradient(90deg, oklch(0.25 0.02 65 / .12) 1px, transparent 1px); background-size: 42px 42px; }
.v13-vector-placeholder { padding: 26px 34px; border: 1px dashed color-mix(in oklab, var(--world), var(--ink) 45%); background: color-mix(in oklab, var(--world), var(--paper) 88%); background-image: repeating-linear-gradient(-45deg, color-mix(in oklab, var(--world), var(--paper) 62%) 0 1px, transparent 1px 9px); color: color-mix(in oklab, var(--world), var(--ink) 65%); text-align: center; font: 700 13px/1.5 'JetBrains Mono', monospace; letter-spacing: 1.4px; transform: rotate(-2deg); }
.v13-vector-placeholder small { font-size: 9px; font-weight: 500; letter-spacing: .5px; }
.v13-vector-placeholder--dark { position: absolute; left: 26px; bottom: 22px; background: oklch(0.22 0.04 155 / .84); background-image: repeating-linear-gradient(-45deg, oklch(0.32 0.06 149 / .9) 0 1px, transparent 1px 9px); color: var(--paper); border-color: oklch(0.86 0.08 149 / .5); }
.v13-portal__target { position: absolute; right: 12%; top: 18%; width: 94px; height: 94px; border: 14px double var(--red); border-radius: 50%; animation: v13-target 2.2s ease-in-out infinite; }
.v13-portal__score { position: absolute; left: 10%; bottom: 12%; font: 800 92px/1 'Inter', sans-serif; letter-spacing: -6px; transform: rotate(-8deg); opacity: .13; }
.v13-portal__choices { position: absolute; z-index: 5; bottom: 4px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.v13-portal__choices button { border: 1px solid oklch(0.72 0.02 70); padding: 12px 18px; background: var(--paper); cursor: pointer; box-shadow: 3px 5px 12px oklch(0.2 0.02 60 / .16); transition: transform .25s, background .25s, color .25s; }
.v13-portal__choices button:hover, .v13-portal__choices button.is-active { transform: translateY(-8px) rotate(-2deg); background: var(--ink); color: var(--paper); }
.v13-portal__choices span { margin-right: 9px; font: 600 9px/1 'JetBrains Mono', monospace; opacity: .55; }

.v13-orbit { min-height: 115vh; display: grid; grid-template-columns: minmax(300px, .8fr) minmax(520px, 1.2fr); align-items: center; gap: 70px; background: oklch(0.26 0.025 65); color: var(--paper); }
.v13-orbit__copy p { max-width: 470px; }
.v13-orbit__system { position: relative; justify-self: center; width: min(680px, 52vw); aspect-ratio: 1; border-radius: 50%; }
.v13-orbit__core { position: absolute; z-index: 5; left: 50%; top: 50%; display: grid; place-items: center; width: 150px; height: 150px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--yellow); color: var(--ink); box-shadow: 0 0 80px oklch(0.86 0.14 91 / .4); }
.v13-orbit__core strong { font-size: 70px; line-height: .7; letter-spacing: -4px; }
.v13-orbit__core span { font: 700 11px/1 'JetBrains Mono', monospace; letter-spacing: 2px; }
.v13-orbit__ring { position: absolute; left: 50%; top: 50%; border: 1px solid oklch(0.9 0.03 90 / .26); border-radius: 50%; transform: translate(-50%, -50%); }
.v13-orbit__ring--1 { width: 42%; height: 42%; }
.v13-orbit__ring--2 { width: 68%; height: 68%; }
.v13-orbit__ring--3 { width: 94%; height: 94%; }
.v13-orbit__token { --scatter-x: 0px; --scatter-y: 0px; position: absolute; z-index: 4; left: 50%; top: 50%; width: 64px; height: 64px; border: 0; border-radius: 50%; background: var(--red); color: var(--paper); font: 800 15px/1 'JetBrains Mono', monospace; cursor: pointer; transform: translate(-50%, -50%) rotate(var(--a)) translateX(calc(var(--r) + var(--scatter-x))) translateY(var(--scatter-y)) rotate(calc(var(--a) * -1)); animation: v13-token var(--d) linear infinite; box-shadow: 0 8px 22px oklch(0.15 0.02 60 / .35); transition: scale .2s; }
.v13-orbit__token:hover { scale: 1.25; }
.v13-orbit__label { position: absolute; left: var(--x); top: var(--y); font: 600 24px/1 'Caveat', cursive; color: var(--yellow); opacity: .7; transform: rotate(calc((var(--x) - 50%) / 8)); }

.v13-pose { min-height: 115vh; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 70px; background: oklch(0.84 0.055 147); }
.v13-pose__copy p { max-width: 470px; }
.v13-pose__privacy { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 13px; border: 1px solid oklch(0.42 0.08 148); font: 600 9px/1 'JetBrains Mono', monospace; letter-spacing: 1.5px; }
.v13-pose__privacy span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px oklch(0.74 0.13 149 / .25); animation: v13-blink 1.4s infinite; }
.v13-pose__stage { position: relative; min-height: 700px; overflow: hidden; border: 10px solid var(--ink); background: oklch(0.2 0.03 153); box-shadow: 18px 22px 0 oklch(0.23 0.03 65 / .16); }
.v13-pose__stage::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(oklch(0.76 0.12 149 / .14) 1px, transparent 1px), linear-gradient(90deg, oklch(0.76 0.12 149 / .14) 1px, transparent 1px); background-size: 42px 42px; }
.v13-pose__scan { position: absolute; z-index: 6; left: 0; right: 0; top: -10%; height: 3px; background: var(--green); box-shadow: 0 0 20px var(--green), 0 18px 60px var(--green); animation: v13-scan 3.6s linear infinite; }
.v13-pose__target { position: absolute; left: var(--x); top: var(--y); width: 80px; height: 80px; border: 3px solid var(--yellow); border-radius: 50%; transform: translate(-50%, -50%); animation: v13-target 1.8s ease-in-out infinite; }
.v13-pose__target::before, .v13-pose__target::after { content: ''; position: absolute; background: var(--yellow); }
.v13-pose__target::before { left: 50%; top: -12px; bottom: -12px; width: 1px; }
.v13-pose__target::after { top: 50%; left: -12px; right: -12px; height: 1px; }
.v13-pose__person { position: absolute; z-index: 3; left: calc(50% + var(--pose-x, 0px)); top: calc(50% + var(--pose-y, 0px)); width: 170px; height: 400px; transform: translate(-50%, -48%) rotate(calc(var(--v13-mx, 0) * 4deg)); transition: left .12s, top .12s; filter: drop-shadow(0 0 16px oklch(0.74 0.13 149 / .55)); }
.v13-pose__head { position: absolute; left: 56px; top: 0; width: 62px; height: 70px; border-radius: 48%; background: var(--green); }
.v13-pose__body { position: absolute; left: 47px; top: 65px; width: 82px; height: 174px; border-radius: 40% 40% 18% 18%; background: var(--green); }
.v13-pose__limb { position: absolute; width: 34px; height: 170px; border-radius: 22px; background: var(--green); transform-origin: 50% 14px; }
.v13-pose__arm--l { left: 48px; top: 82px; transform: rotate(calc(-48deg + var(--v13-my, 0) * 22deg)); }
.v13-pose__arm--r { right: 38px; top: 82px; transform: rotate(calc(48deg + var(--v13-my, 0) * -22deg)); }
.v13-pose__leg--l { left: 52px; top: 218px; transform: rotate(7deg); }
.v13-pose__leg--r { right: 43px; top: 218px; transform: rotate(-7deg); }
.v13-pose__hud { position: absolute; z-index: 7; left: 18px; right: 18px; top: 16px; display: flex; justify-content: space-between; color: var(--green); font: 600 9px/1 'JetBrains Mono', monospace; letter-spacing: 1.4px; }
.v13-pose__hud i { font-style: normal; }

.v13-factory { min-height: 105vh; background: oklch(0.78 0.07 74); }
.v13-factory__head { max-width: 900px; }
.v13-factory__machine { position: relative; height: 520px; margin-top: 70px; overflow: hidden; border: 12px solid var(--ink); background: oklch(0.35 0.025 67); box-shadow: 18px 24px 0 oklch(0.3 0.04 55 / .25); }
.v13-factory__belt { position: absolute; left: 0; right: 0; bottom: 100px; display: flex; width: max-content; gap: 26px; padding: 22px 40px; border-top: 8px solid var(--ink); border-bottom: 8px solid var(--ink); background: repeating-linear-gradient(90deg, oklch(0.55 0.02 65) 0 28px, oklch(0.45 0.02 65) 28px 34px); animation: v13-belt 15s linear infinite; }
.v13-factory__break { width: 170px; height: 120px; display: grid; place-content: center; gap: 10px; background: var(--paper); text-align: center; box-shadow: 7px 9px 0 oklch(0.15 0 0 / .2); }
.v13-factory__break:nth-child(2n) { background: var(--yellow); transform: rotate(2deg); }
.v13-factory__break:nth-child(3n) { background: var(--green); transform: rotate(-2deg); }
.v13-factory__break b { font: 800 28px/1 'Inter', sans-serif; }
.v13-factory__break span { font: 600 9px/1 'JetBrains Mono', monospace; letter-spacing: 1.4px; }
.v13-factory__press { position: absolute; z-index: 4; left: 50%; top: -8px; width: 230px; height: 210px; transform: translateX(-50%); background: var(--red); border: 9px solid var(--ink); animation: v13-press 2.2s cubic-bezier(.7,0,.3,1) infinite; }
.v13-factory__press::after { content: ''; position: absolute; left: -55px; right: -55px; bottom: -38px; height: 46px; background: var(--red); border: 9px solid var(--ink); }
.v13-factory__press span { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font: 800 13px/1 'JetBrains Mono', monospace; letter-spacing: 2px; color: var(--paper); }
.v13-factory__stamp { position: absolute; z-index: 6; left: 50%; bottom: 134px; padding: 12px 18px; border: 5px double var(--red); color: var(--red); background: var(--paper); font: 800 17px/1 'JetBrains Mono', monospace; transform: translateX(-50%) rotate(-7deg); animation: v13-stamp 2.2s cubic-bezier(.2,1.8,.3,1) infinite; }
.v13-factory__counter { position: absolute; right: 22px; top: 22px; width: 190px; padding: 16px; background: var(--ink); color: var(--yellow); }
.v13-factory__counter span { display: block; font: 600 9px/1 'JetBrains Mono', monospace; letter-spacing: 1.5px; }
.v13-factory__counter strong { display: block; margin-top: 8px; font: 500 35px/1 'JetBrains Mono', monospace; letter-spacing: 4px; }
.v13-factory__note { margin: 22px 0 0; font-family: 'Caveat', cursive; font-size: 24px !important; transform: rotate(-1deg); }

.v13-map { min-height: 125vh; background: var(--paper); }
.v13-map__intro { max-width: 820px; }
.v13-map__intro p { max-width: 560px; }
.v13-map__paper { position: relative; height: 650px; margin-top: 60px; background: oklch(0.95 0.02 88); background-image: linear-gradient(oklch(0.82 0.025 83 / .45) 1px, transparent 1px), linear-gradient(90deg, oklch(0.82 0.025 83 / .45) 1px, transparent 1px); background-size: 30px 30px; box-shadow: 10px 18px 50px oklch(0.18 0.03 60 / .2); transform: rotate(-.6deg); }
.v13-map__paper::before, .v13-map__paper::after { content: ''; position: absolute; z-index: 5; width: 130px; height: 32px; background: oklch(0.86 0.05 90 / .76); border: 1px solid oklch(0.78 0.04 84); }
.v13-map__paper::before { left: 8%; top: -14px; transform: rotate(-4deg); }
.v13-map__paper::after { right: 8%; bottom: -13px; transform: rotate(5deg); }
.v13-map__svg { position: absolute; inset: 8% 4%; width: 92%; height: 80%; overflow: visible; }
.v13-map__ghost, .v13-map__route { fill: none; stroke-width: 11; stroke-linecap: round; }
.v13-map__ghost { stroke: oklch(0.78 0.025 78); }
.v13-map__route { stroke: var(--red); stroke-dasharray: 1500; stroke-dashoffset: calc(1500 - var(--scene-progress) * 1500); }
.v13-map__stop { position: absolute; z-index: 3; left: var(--x); top: var(--y); display: grid; min-width: 92px; gap: 4px; transform: translate(-50%, -50%) scale(calc(.5 + var(--passed, 0) * .5)); opacity: calc(.25 + var(--passed, 0) * .75); text-align: center; transition: .35s cubic-bezier(.2,1.6,.3,1); }
.v13-map__stop::before { content: ''; justify-self: center; width: 22px; height: 22px; border: 6px solid var(--paper); border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--red); }
.v13-map__stop b { font: 700 11px/1 'JetBrains Mono', monospace; }
.v13-map__stop span { font: 700 9px/1 'JetBrains Mono', monospace; letter-spacing: 1px; }
.v13-map__stop i { justify-self: center; padding: 4px 6px; background: var(--yellow); font: 700 9px/1 'JetBrains Mono', monospace; font-style: normal; }
.v13-map__vehicle { position: absolute; z-index: 4; left: 6%; top: 74%; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 8px/1 'JetBrains Mono', monospace; transform: translate(-50%, -50%); transition: left .1s linear, top .1s linear; }

.v13-polaroids { min-height: 120vh; background: var(--cork); }
.v13-polaroids::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(oklch(0.88 0.01 70) 1px, transparent 1px); background-size: 14px 14px; }
.v13-polaroids__head { position: relative; z-index: 3; max-width: 760px; }
.v13-polaroids__head p { max-width: 550px; }
.v13-polaroids__wall { position: relative; height: 720px; margin-top: 45px; }
.v13-photo { position: absolute; z-index: 2; left: var(--x); top: var(--y); width: 250px; padding: 13px 13px 20px; border: 0; background: var(--paper); box-shadow: 8px 14px 30px oklch(0.18 0.03 50 / .35); transform: rotate(var(--r)) translateY(calc((1 - var(--scene-progress)) * 80px)); transition: transform .45s cubic-bezier(.2,1.3,.3,1), box-shadow .3s; }
.v13-photo::before { content: ''; position: absolute; left: 50%; top: -11px; width: 18px; height: 18px; border-radius: 50%; background: var(--red); box-shadow: 0 3px 5px oklch(0.15 0 0 / .5); }
.v13-photo > div { height: 180px; display: grid; place-content: center; border: 1px dashed oklch(0.68 0.03 70); background: oklch(0.9 0.025 86); background-image: repeating-linear-gradient(-45deg, oklch(0.84 0.03 80) 0 1px, transparent 1px 9px); text-align: center; font: 700 12px/1.5 'JetBrains Mono', monospace; }
.v13-photo p { margin: 13px 0 0; font: 600 22px/1 'Caveat', cursive; }
.v13-photo:hover { z-index: 20; transform: rotate(0) scale(1.14) translateY(-30px); box-shadow: 18px 28px 55px oklch(0.18 0.03 50 / .42); }
.v13-photo--yellow > div { background: oklch(0.9 0.09 92); background-image: repeating-linear-gradient(-45deg, oklch(0.84 0.09 92) 0 1px, transparent 1px 9px); border-color: oklch(0.72 0.07 90); }
.v13-photo--green > div { background: oklch(0.86 0.08 149); background-image: repeating-linear-gradient(-45deg, oklch(0.8 0.08 149) 0 1px, transparent 1px 9px); border-color: oklch(0.68 0.06 148); }
.v13-photo--blue > div { background: oklch(0.87 0.08 205); background-image: repeating-linear-gradient(-45deg, oklch(0.81 0.08 205) 0 1px, transparent 1px 9px); border-color: oklch(0.68 0.06 206); }
.v13-photo--pink > div { background: oklch(0.88 0.08 353); background-image: repeating-linear-gradient(-45deg, oklch(0.82 0.08 353) 0 1px, transparent 1px 9px); border-color: oklch(0.7 0.06 352); }
.v13-photo--mini { width: 160px; }
.v13-photo--mini > div { height: 90px; font-size: 27px; }
.v13-photo--mini p { font-size: 18px; }

.v13-receipt { min-height: 115vh; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 100px; background: oklch(0.27 0.025 65); color: var(--paper); }
.v13-receipt__copy p { max-width: 480px; }
.v13-receipt__printer {
  position: relative; justify-self: center; width: min(540px, 46vw); height: 760px; padding-top: 100px; overflow: hidden;
  --slot-border: oklch(0.14 0.01 60);
  --slot-metal-1: oklch(0.58 0.02 65);
  --slot-metal-2: oklch(0.45 0.02 65);
  --slot-metal-3: oklch(0.35 0.02 63);
  --slot-rivet: oklch(0.72 0.02 70);
  --slot-rivet-shadow: oklch(0.22 0.01 60);
}
.v13-receipt__slot {
  position: absolute; z-index: 4; left: 0; right: 0; top: 70px; height: 145px;
  border: 10px solid var(--slot-border); border-radius: 6px;
  background:
    radial-gradient(circle 3px at 20px 20px, oklch(0.4 0.06 79.45) 42%, var(--slot-rivet-shadow) 44% 60%, transparent 62%),
    radial-gradient(circle 3px at calc(100% - 20px) 20px, var(--slot-rivet) 42%, var(--slot-rivet-shadow) 44% 60%, #dd7a7a00 62%),
    repeating-linear-gradient(100deg, oklch(1 0 0 / .05) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, oklch(0.05 0 0), oklch(0.47 0.01 68.02) 48%, oklch(0.28 0 0));
  box-shadow: 0 22px 40px oklch(0.1 0 0 / .4), inset 0 2px 3px oklch(1 0 0 / .18), inset 0 -4px 8px oklch(0 0 0 / .35);
}
.v13-receipt__slot::before {
  content: ''; position: absolute; left: 16%; right: 16%; bottom: 24px; height: 7px; border-radius: 4px;
  background: oklch(0.07 0 0 / .9); box-shadow: inset 0 2px 4px oklch(0 0 0 / .9), 0 1px 0 oklch(1 0 0 / .1);
}
.v13-receipt__slot::after { content: 'DAILY OUTPUT'; position: absolute; left: 50%; top: 24px; transform: translateX(-50%); color: oklch(0.8 0.02 75); font: 600 9px/1 'JetBrains Mono', monospace; letter-spacing: 2px; }
.v13-receipt__paper { position: relative; z-index: 3; width: 72%; min-height: 630px; margin: 38px auto 0; padding: 42px 34px 58px; background: oklch(0.95 0.01 95); color: oklch(0.2 0.01 65); box-shadow: 0 28px 50px oklch(0.1 0 0 / .4); transform: translateY(calc((1 - var(--scene-progress)) * -18%)); transition: transform .12s linear; font-family: 'JetBrains Mono', monospace; }
.v13-receipt__paper::after { content: ''; position: absolute; left: 0; right: 0; bottom: -12px; height: 14px; background: linear-gradient(135deg, transparent 7px, oklch(0.95 0.01 95) 0) 0 0/14px 14px repeat-x; }
.v13-receipt__logo { padding-bottom: 24px; border-bottom: 2px solid currentColor; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; }
.v13-receipt__row { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px dashed oklch(0.55 0.01 70); font-size: 12px; }
.v13-receipt__dash { margin: 22px 0; border-top: 2px dashed currentColor; }
.v13-receipt__total { display: flex; justify-content: space-between; align-items: flex-end; }
.v13-receipt__total span { font-size: 11px; }
.v13-receipt__total strong { font-size: 25px; }
.v13-receipt__barcode { height: 62px; margin-top: 30px; background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 5px, currentColor 5px 9px, transparent 9px 12px); }
.v13-receipt__paper > p { margin: 18px 0 0; text-align: center; font-size: 9px; letter-spacing: 1px; }
.v13-receipt__light { position: absolute; z-index: 6; right: 28px; top: 116px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 15px var(--green); animation: v13-blink 1.3s infinite; }

.v13-ideas { min-height: 120vh; background: oklch(0.87 0.045 91); }
.v13-ideas__head { max-width: 900px; }
.v13-ideas__head p { max-width: 640px; }
.v13-ideas__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 60px; }
.v13-idea { position: relative; min-height: 290px; padding: 24px; overflow: hidden; border: 1px solid oklch(0.7 0.03 80); background: var(--paper); box-shadow: 5px 8px 18px oklch(0.2 0.03 60 / .18); text-align: left; cursor: pointer; transition: transform .25s, box-shadow .25s; }
.v13-idea:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 10px 18px 28px oklch(0.2 0.03 60 / .24); }
.v13-idea > span { font: 600 10px/1 'JetBrains Mono', monospace; letter-spacing: 1.3px; color: var(--red); }
.v13-idea > b { position: absolute; left: 24px; bottom: 58px; font-size: 24px; letter-spacing: -.7px; }
.v13-idea > p { position: absolute; left: 24px; right: 24px; bottom: 14px; margin: 0; font-size: 12px; line-height: 1.4; }
.v13-idea > i { position: absolute; left: 50%; top: 42%; width: 90px; height: 90px; border: 10px solid var(--yellow); transform: translate(-50%, -50%) rotate(45deg); transition: .5s cubic-bezier(.2,1.7,.3,1); }
.v13-idea:nth-child(2) > i { border-radius: 50%; border-color: var(--pink); }
.v13-idea:nth-child(3) > i { border: 0; background: repeating-linear-gradient(90deg, var(--green) 0 8px, transparent 8px 16px); }
.v13-idea:nth-child(4) > i { border-radius: 50%; border-color: var(--blue); box-shadow: 0 0 0 20px oklch(0.7 0.1 206 / .16), 0 0 0 40px oklch(0.7 0.1 206 / .08); }
.v13-idea:nth-child(5) > i { border: 0; background: linear-gradient(to top, var(--red) 0 20%, var(--yellow) 20% 40%, var(--green) 40% 60%, var(--blue) 60% 80%, var(--pink) 80%); }
.v13-idea:nth-child(6) > i { border: 5px double var(--red); transform: translate(-50%, -50%) rotate(-8deg); }
.v13-idea.is-performing > i { transform: translate(-50%, -50%) rotate(765deg) scale(1.8); opacity: .15; }
.v13-idea.is-performing { animation: v13-card-perform .8s cubic-bezier(.2,1.4,.3,1); }

.v13-finale { min-height: 125vh; display: grid; place-items: center; background: oklch(0.24 0.025 65); color: var(--paper); text-align: center; }
.v13-finale__copy { position: relative; z-index: 5; display: grid; justify-items: center; }
.v13-finale__score { position: relative; display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.v13-finale__score span { font-size: clamp(120px, 20vw, 300px); line-height: .68; font-weight: 800; letter-spacing: -14px; color: var(--yellow); }
.v13-finale__score small { margin-bottom: 8px; font: 700 14px/1 'JetBrains Mono', monospace; letter-spacing: 2px; }
.v13-finale h2 { font-size: clamp(58px, 8vw, 118px); }
.v13-finale p { max-width: 540px; }
.v13-finale__cta { position: relative; margin-top: 24px; padding: 20px 28px; border: 0; background: var(--paper); color: var(--ink); font: 700 12px/1 'JetBrains Mono', monospace; letter-spacing: 1.5px; cursor: pointer; box-shadow: 8px 10px 0 var(--red); transition: transform .2s, box-shadow .2s; }
.v13-finale__cta:hover { transform: translate(4px, 4px); box-shadow: 4px 6px 0 var(--red); }
.v13-finale__rings { position: absolute; left: 50%; top: 50%; width: min(82vw, 1050px); aspect-ratio: 1; transform: translate(-50%, -50%); }
.v13-finale__rings i { position: absolute; left: 50%; top: 50%; border: 1px solid oklch(0.95 0.02 90 / .22); border-radius: 50%; transform: translate(-50%, -50%) scale(calc(.25 + var(--i, 1) * .15 + var(--scene-progress) * .15)); }
.v13-finale__rings i:nth-child(1) { --i: 1; width: 30%; height: 30%; }
.v13-finale__rings i:nth-child(2) { --i: 2; width: 48%; height: 48%; }
.v13-finale__rings i:nth-child(3) { --i: 3; width: 65%; height: 65%; }
.v13-finale__rings i:nth-child(4) { --i: 4; width: 82%; height: 82%; }
.v13-finale__rings i:nth-child(5) { --i: 5; width: 100%; height: 100%; }
.v13-finale__stamp { position: absolute; right: 7vw; bottom: 11vh; padding: 17px 22px; border: 6px double var(--red); color: var(--red); font: 800 18px/1.1 'JetBrains Mono', monospace; transform: rotate(-12deg) scale(calc(.5 + var(--scene-progress) * .5)); }
.v13-finale__stamp small { font-size: 9px; letter-spacing: 2px; }
.v13-confetti { position: fixed; z-index: 200; left: 0; top: 0; width: 10px; height: 16px; pointer-events: none; background: var(--confetti-color); animation: v13-confetti 1.35s cubic-bezier(.12,.7,.3,1) forwards; }

@keyframes v13-marquee { to { transform: translateX(-100%); } }
@keyframes v13-screen-pulse { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.55); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(2.2); } }
@keyframes v13-lamp { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(4deg); } }
@keyframes v13-type-left { to { transform: rotate(5deg) translateY(-6px); } }
@keyframes v13-type-right { to { transform: scaleX(-1) rotate(5deg) translateY(-7px); } }
@keyframes v13-blink { 50% { opacity: .25; } }
@keyframes v13-target { 50% { transform: scale(1.14) rotate(15deg); box-shadow: 0 0 0 18px oklch(0.86 0.14 91 / .12); } }
@keyframes v13-token { to { rotate: 360deg; } }
@keyframes v13-scan { to { top: 110%; } }
@keyframes v13-belt { to { transform: translateX(-40%); } }
@keyframes v13-press { 0%,65%,100% { transform: translateX(-50%) translateY(-85px); } 78%,88% { transform: translateX(-50%) translateY(0); } }
@keyframes v13-stamp { 0%,68%,100% { opacity: 0; transform: translateX(-50%) rotate(-7deg) scale(.4); } 80%,92% { opacity: 1; transform: translateX(-50%) rotate(-7deg) scale(1); } }
@keyframes v13-card-perform { 40% { transform: translateY(-24px) rotate(2deg); } }
@keyframes v13-confetti { to { transform: translate(var(--tx), var(--ty)) rotate(var(--tr)); opacity: 0; } }
/* Same wiggle as b-tape, but keeps the translateX(-50%) centering baked into every
   frame — a CSS animation replaces the whole `transform` value each frame, it
   doesn't compose with the base rule's transform, so reusing b-tape here would
   silently drop the centering and let the label drift right. */
@keyframes v13-clock-tape-wiggle { 0%,100% { transform: translateX(-50%) rotate(-2deg) translateY(0); } 50% { transform: translateX(-50%) rotate(-1.2deg) translateY(-2px); } }

@media (max-width: 900px) {
  .v13-chapter { padding: 84px 22px; }
  .v13-chapter h2 { font-size: clamp(42px, 12vw, 70px); letter-spacing: -2px; }
  .v13-prologue { min-height: 110vh; }
  .v13-prologue__desk { height: 330px; transform: scale(.78); margin-top: 20px; }
  .v13-prologue__laptop { width: 440px; }
  .v13-clock__sticky { padding: 82px 22px; }
  .v13-clock__sum { top: auto; right: 22px; bottom: 350px; }
  .v13-clock__sum strong { font-size: 76px; }
  .v13-clock__rail { left: 28px; right: 28px; bottom: 110px; overflow: visible; }
  .v13-clock__hour small { display: none; }
  .v13-clock__hour b { font-size: 9px; }
  /* The light "no card" clock chapters keep their in-flow, position:relative
     __sum (set outside this query) — without this, the dark full-bleed clock's
     absolute-positioned bottom/right offsets above leak in and yank the kcal
     counter up into the copy column. */
  #v13-daily-clock .v13-clock__sum,
  #v13-daily-clock-tape .v13-clock__sum,
  #v13-daily-clock-pinned .v13-clock__sum,
  #v13-daily-clock-thread .v13-clock__sum { top: auto; right: auto; bottom: auto; }
  #v13-daily-clock .v13-clock__sum strong,
  #v13-daily-clock-tape .v13-clock__sum strong,
  #v13-daily-clock-pinned .v13-clock__sum strong,
  #v13-daily-clock-thread .v13-clock__sum strong { font-size: 64px; }
  .v13-portal__stage { min-height: 600px; }
  .v13-portal__window { height: 420px; }
  .v13-orbit, .v13-pose, .v13-receipt { grid-template-columns: 1fr; gap: 45px; }
  .v13-orbit__system { width: min(600px, 88vw); }
  .v13-pose__stage { min-height: 620px; }
  .v13-receipt__printer { width: min(540px, 92vw); }
  .v13-ideas__grid { grid-template-columns: repeat(2, 1fr); }
  .v13-photo { width: 210px; }
}

@media (max-width: 620px) {
  .v13-chapter h2 { font-size: clamp(40px, 9vw, 52px); letter-spacing: -1.5px; }
  .v13-prologue__desk { width: 120vw; transform: scale(.62); margin-top: -15px; }
  .v13-prologue__hand--left { left: 5%; }
  .v13-prologue__hand--right { right: 5%; }
  .v13-clock__hour:nth-child(even) b { transform: translateY(55px); }
  .v13-clock__hour i { display: none; }
  .v13-clock__sum { bottom: 310px; }
  #v13-daily-clock .v13-clock__sum,
  #v13-daily-clock-tape .v13-clock__sum,
  #v13-daily-clock-pinned .v13-clock__sum,
  #v13-daily-clock-thread .v13-clock__sum { bottom: auto; }
  #v13-daily-clock .v13-clock__hour:nth-child(even) b,
  #v13-daily-clock-tape .v13-clock__hour:nth-child(even) b,
  #v13-daily-clock-pinned .v13-clock__hour:nth-child(even) b,
  #v13-daily-clock-thread .v13-clock__hour:nth-child(even) b { transform: none; }
  /* At this width the rail is narrow enough that the desktop's edge-clipping fix
     (shifting the first/last hour off-center) collides with its neighbor instead —
     re-center both so labels stay evenly spaced. */
  #v13-daily-clock .v13-clock__hour:nth-child(3),
  #v13-daily-clock-tape .v13-clock__hour:nth-child(3),
  #v13-daily-clock-pinned .v13-clock__hour:nth-child(3),
  #v13-daily-clock-thread .v13-clock__hour:nth-child(3),
  #v13-daily-clock .v13-clock__hour:last-child,
  #v13-daily-clock-tape .v13-clock__hour:last-child,
  #v13-daily-clock-pinned .v13-clock__hour:last-child,
  #v13-daily-clock-thread .v13-clock__hour:last-child { transform: translateX(-50%); }
  .v13-portal__window { width: 94vw; height: 360px; border-width: 7px; }
  .v13-portal__choices { position: relative; margin-top: 420px; }
  .v13-portal__choices button { padding: 10px 12px; }
  .v13-orbit__token { width: 52px; height: 52px; --r: 38vw !important; }
  .v13-pose__stage { min-height: 540px; border-width: 7px; }
  .v13-factory__machine { height: 460px; }
  .v13-factory__counter { width: 150px; }
  .v13-map__paper { height: 760px; }
  .v13-map__stop { min-width: 70px; }
  .v13-polaroids__wall { height: 980px; }
  .v13-photo { width: 180px; }
  .v13-photo:nth-child(1) { left: 0; top: 8%; }
  .v13-photo:nth-child(2) { left: 40%; top: 2%; }
  .v13-photo:nth-child(3) { left: 4%; top: 34%; }
  .v13-photo:nth-child(4) { left: 44%; top: 31%; }
  .v13-photo:nth-child(5) { left: 18%; top: 61%; }
  .v13-photo--mini { display: none; }
  .v13-ideas__grid { grid-template-columns: 1fr; }
  .v13-idea { min-height: 240px; }
  .v13-receipt__paper { width: 84%; }
  .v13-finale__stamp { right: 12px; bottom: 7vh; }
}

@media (prefers-reduced-motion: reduce) {
  .v13-lab *, .v13-lab *::before, .v13-lab *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .v13-prologue__desk, .v13-portal__window, .v13-pose__person { transform: none; }
}
