/* Wickstart landing page. Fonts: Yalaz (our own), self-hosted. No third-party requests. */

@font-face { font-family: "Yalaz Display"; font-weight: 900; font-display: swap; src: url("/assets/fonts/YalazDisplay-Black.woff2") format("woff2"); }
@font-face { font-family: "Yalaz Display"; font-weight: 700; font-display: swap; src: url("/assets/fonts/YalazDisplay-Bold.woff2") format("woff2"); }
@font-face { font-family: "Yalaz Text"; font-weight: 400; font-display: swap; src: url("/assets/fonts/YalazText-Regular.woff2") format("woff2"); }
@font-face { font-family: "Yalaz Text"; font-weight: 600; font-display: swap; src: url("/assets/fonts/YalazText-SemiBold.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --ink: #1B1640;
  --brand: #5B2EE5;
  --violet: #7C5CF0;
  --lav: #A8A3FE;
  --lilac: #D9D6FF;
  --yellow: #FFC83D;
  --orange: #FF8A1F;
  --coral: #FF6B6B;
  --ground: #3C1FBC;          /* bottom colour of the valley art; the footer continues it */

  --sky: #D9D6FF;
  --on-sky: #1B1640;
  --on-sky-soft: #3F3878;
  --accent-on-sky: #5B2EE5;
  --orb: #FFC83D;
  --bg: #FBF9FF;
  --bg-alt: #ECE8FF;
  --surface: #FFFFFF;
  --text: #1B1640;
  --text-soft: #4A4477;
  --line: #1B1640;
  --shadow: #1B1640;
  --link: #4A1FD0;
  --bubble-in: #FFFFFF;
  --bubble-out: #FFE7A0;
  --wall: #CFC9FF;
  --star-display: none;
  --cloud-fill: #FFFFFF;
  --bubble-out-text: inherit;

  --display: "Yalaz Display", "Yalaz Text", system-ui, sans-serif;
  --body: "Yalaz Text", system-ui, sans-serif;
  --wrap: 1160px;
  --r: 28px;
}
/* Dark tokens appear twice on purpose: once for the system setting (unless the visitor
   chose light) and once for an explicit choice. Keep the two lists identical. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sky: #2B1F7A;
    --on-sky: #FFFFFF;
    --on-sky-soft: #D9D6FF;
    --accent-on-sky: #FFC83D;
    --orb: #FFE9A8;
    --bg: #130E33;
    --bg-alt: #1B1447;
    --surface: #251C5E;
    --text: #F4F1FF;
    --text-soft: #BDB7EA;
    --line: #0B0822;
    --shadow: #0B0822;
    --link: #C3BBFF;
    --bubble-in: #2F2670;
    --bubble-out: #5B2EE5;
    --wall: #1D1650;
    --star-display: block;
    --cloud-fill: #4A35C8;
    --bubble-out-text: #FFFFFF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --sky: #2B1F7A;
  --on-sky: #FFFFFF;
  --on-sky-soft: #D9D6FF;
  --accent-on-sky: #FFC83D;
  --orb: #FFE9A8;
  --bg: #130E33;
  --bg-alt: #1B1447;
  --surface: #251C5E;
  --text: #F4F1FF;
  --text-soft: #BDB7EA;
  --line: #0B0822;
  --shadow: #0B0822;
  --link: #C3BBFF;
  --bubble-in: #2F2670;
  --bubble-out: #5B2EE5;
  --wall: #1D1650;
  --star-display: block;
  --cloud-fill: #4A35C8;
  --bubble-out-text: #FFFFFF;
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--link); text-underline-offset: 0.2em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
b { font-weight: 600; }
.defs { position: absolute; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 20; padding: 10px 16px; background: var(--yellow); color: var(--ink); border-radius: 12px; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 1.04; letter-spacing: -0.012em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.5rem); }
h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.15; }
h1 em, h2 em { font-style: normal; }
.eyebrow {
  font: 700 0.8125rem/1.2 var(--display);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 14px; color: var(--link);
}

/* ---------- header ---------- */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; gap: 24px;
  width: min(100% - 40px, var(--wrap)); margin-inline: auto; padding-top: 18px;
  color: var(--on-sky);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 900 1.375rem/1 var(--display); }
.brand img { width: 40px; height: 40px; border-radius: 11px; border: 2px solid var(--ink); }
.nav { margin-left: auto; display: none; gap: 26px; }
.nav a { color: inherit; text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
.nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.lang { margin-left: auto; display: flex; border: 2px solid currentColor; border-radius: 999px; overflow: hidden; font: 700 0.8125rem/1 var(--display); }
.lang a { color: inherit; text-decoration: none; padding: 8px 12px; }
.lang a[aria-current] { background: var(--on-sky); color: var(--sky); }
.theme { margin-left: auto; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 2px solid currentColor; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.theme[hidden] { display: none; }
.theme svg { grid-area: 1 / 1; width: 18px; height: 18px; fill: currentColor; display: none; }
.theme[data-mode="system"] .t-system, .theme[data-mode="light"] .t-light, .theme[data-mode="dark"] .t-dark { display: block; }
.theme:not([hidden]) ~ .lang, .theme:not([hidden]) ~ .lang-menu { margin-left: 0; }
.lang-menu { position: relative; margin-left: auto; font: 700 0.8125rem/1 var(--display); }
.lang-menu summary { list-style: none; cursor: pointer; padding: 8px 14px; border: 2px solid currentColor; border-radius: 999px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: " ▾"; }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; max-height: 60vh; overflow: auto; padding: 8px; background: var(--surface); color: var(--text); border: 2px solid var(--line); border-radius: 16px; box-shadow: 0 5px 0 var(--shadow); }
.lang-menu a { display: block; padding: 8px 10px; border-radius: 8px; color: inherit; text-decoration: none; font: 600 0.9375rem/1.2 var(--body); }
.lang-menu a:hover, .lang-menu a[aria-current] { background: var(--bg-alt); }
@media (min-width: 820px) { .nav { display: flex; } .theme { margin-left: 0; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--sky); color: var(--on-sky); border-bottom: 3px solid var(--line); }
.sky { position: absolute; inset: 0; pointer-events: none; }
.star { position: absolute; width: 26px; height: 26px; fill: var(--yellow); display: var(--star-display); }
.s1 { left: 6%; top: 16%; } .s2 { left: 17%; top: 44%; width: 16px; height: 16px; } .s3 { left: 30%; top: 9%; width: 18px; height: 18px; }
.s4 { left: 71%; top: 12%; } .s5 { left: 88%; top: 30%; width: 16px; height: 16px; } .s6 { left: 94%; top: 9%; width: 20px; height: 20px; }
.s7 { left: 80%; top: 50%; width: 15px; height: 15px; } .s8 { left: 3%; top: 58%; width: 18px; height: 18px; }
.cloud { position: absolute; width: clamp(90px, 12vw, 170px); aspect-ratio: 120 / 56; height: auto; fill: var(--cloud-fill); stroke: var(--ink); stroke-width: 3px; stroke-linejoin: round; overflow: visible; }
.c1 { left: -40px; top: 58px; } .c2 { display: none; }
@media (min-width: 900px) { .c1 { left: 5%; top: 21%; } .c2 { display: block; right: 6%; top: 34%; width: clamp(70px, 9vw, 130px); } }

.hero-copy { position: relative; z-index: 2; width: min(100% - 40px, 860px); margin-inline: auto; padding-top: clamp(104px, 13vw, 150px); text-align: center; }
.hero .eyebrow { color: var(--on-sky-soft); }
h1 { font-size: clamp(2.5rem, 1.1rem + 6.6vw, 5.25rem); }
h1 em { color: var(--accent-on-sky); display: inline-block; }
.lede { max-width: 620px; margin: 22px auto 0; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); color: var(--on-sky-soft); }

/* Official badge artwork, shown unaltered: same height for both, clear space of at
   least a quarter of the badge height on every side, no effects and no motion. */
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 32px; padding: 12px; }
.store { display: block; line-height: 0; border-radius: 8px; }
.store img { height: 48px; width: auto; max-width: none; }
.soon { margin-top: 4px; font-size: 0.9375rem; color: var(--on-sky-soft); }

/* The valley: one piece of art, positioned children in % so they stay on their spot. */
.valley {
  position: relative; z-index: 1;
  width: max(100%, 900px); left: 50%; transform: translateX(-50%);
  aspect-ratio: 1536 / 657;
  margin-top: 10px;
  pointer-events: none;
}
/* On phones the art is wider than the screen; show the house-to-Fitil part of it. */
@media (max-width: 899px) { .valley { transform: translateX(-53%); margin-top: 22px; } .s2, .s7, .s8 { visibility: hidden; } }
.valley .land { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.orb {
  position: absolute; z-index: 0; left: 66%; top: -3%;
  width: 9.5%; aspect-ratio: 1; border-radius: 50%;
  background: var(--orb); border: 3px solid var(--ink);
}
.fitil { position: absolute; z-index: 3; }
.fitil img { position: absolute; inset: 0; width: 100%; height: 100%; }
.fitil-hero { aspect-ratio: 1230 / 1242; height: 47%; left: 49%; bottom: 5%; }
.fitil-hero .flame { transform-origin: 73.5% 32.8%; }
.fitil-hero .body { transform-origin: 60% 100%; }
.halo { position: absolute; left: -6%; top: 5%; width: 38%; aspect-ratio: 1; border-radius: 50%; background: var(--yellow); opacity: 0.28; }
.fitil-outro { aspect-ratio: 1008 / 1302; height: 46%; left: 51%; bottom: 6%; }
.fitil-outro .flame { transform-origin: 52.7% 32.9%; }
.fitil-outro .body { transform-origin: 50% 100%; }

.moth { position: absolute; z-index: 4; width: 8%; aspect-ratio: 110 / 88; }
.moth img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.moth .down { opacity: 0; }
.m1 { left: 72%; top: 30%; }
.m2 { left: 57%; top: 4%; width: 6.5%; }
.firefly { position: absolute; z-index: 4; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); }
.f1 { left: 36%; top: 48%; } .f2 { left: 47%; top: 70%; } .f3 { left: 63%; top: 30%; } .f4 { left: 69%; top: 62%; } .f5 { left: 52%; top: 38%; }

/* ---------- sections ---------- */
section { position: relative; }
.how, .pro { padding: clamp(72px, 9vw, 128px) 0; }
.how { text-align: center; }
.steps { display: grid; gap: 56px 32px; margin-top: clamp(40px, 5vw, 64px); text-align: left; }
.step { position: relative; }
.step h3 { margin-top: 26px; }
.step p { margin-top: 10px; color: var(--text-soft); }
.scene {
  border: 3px solid var(--line); border-radius: var(--r); overflow: hidden;
  box-shadow: 0 9px 0 var(--shadow); background: var(--brand);
}
.scene img { width: 100%; }
.num {
  position: absolute; left: 18px; top: 18px;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink);
  font: 900 1.625rem/1 var(--display);
}
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step:nth-child(1) .scene { rotate: -1.4deg; }
  .step:nth-child(2) { margin-top: 44px; }
  .step:nth-child(2) .scene { rotate: 1.2deg; }
  .step:nth-child(3) .scene { rotate: -0.8deg; }
}

.math { background: var(--brand); color: #FFFFFF; padding: clamp(64px, 8vw, 112px) 0; border-block: 3px solid var(--line); }
.math .eyebrow { color: var(--lilac); }
.math h2 em { color: var(--yellow); }
.math-copy p:last-child { margin-top: 18px; max-width: 520px; color: #E7E3FF; font-size: 1.125rem; }
.math-grid { display: grid; gap: 44px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(4px, 1.4vw, 16px); align-items: end; padding: 30px clamp(10px, 2vw, 24px) 30px; background: var(--ground); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: 0 9px 0 var(--ink); }
.lamp { position: relative; display: grid; justify-items: center; gap: 8px; font: 700 0.875rem/1 var(--display); color: var(--lilac); }
.lamp img { width: min(100%, 76px); }
.lamp .lit { position: absolute; top: 0; left: 50%; translate: -50% 0; }
.lamp small { position: absolute; bottom: -2px; translate: 0 100%; font: 600 0.625rem/1 var(--body); letter-spacing: 0.04em; white-space: nowrap; color: var(--lav); }
.lamp.rest img { opacity: 0.75; }
.facts { display: grid; gap: 14px 28px; font-size: 1rem; color: #E7E3FF; }
.facts b { font: 900 1.75rem/1 var(--display); color: var(--yellow); margin-right: 6px; }
@media (min-width: 560px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) {
  .math-grid { grid-template-columns: 1.05fr 1fr; align-items: center; column-gap: 64px; }
  .facts { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); padding-top: 12px; }
  .facts li { border-top: 2px solid rgba(255, 255, 255, 0.28); padding-top: 14px; }
}

.world { background: var(--bg-alt); padding: clamp(72px, 9vw, 128px) 0; overflow: hidden; }
.world-grid { display: grid; gap: 48px; }
.world-copy p { margin-top: 16px; color: var(--text-soft); max-width: 540px; }
.world-copy p b { color: var(--text); }
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 4px; margin-top: 30px; max-width: 500px; padding: 10px 14px 18px; background: var(--surface); border: 3px dashed var(--lav); border-radius: var(--r); }
.shelf li:nth-child(odd) { rotate: -4deg; }
.shelf li:nth-child(even) { rotate: 3deg; translate: 0 8px; }
.shelf img { filter: drop-shadow(0 4px 0 rgba(27, 22, 64, 0.22)); }
.chat { align-self: start; width: min(100%, 440px); margin-inline: auto; background: var(--wall) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cpath d='M20 10c.8 5 3.5 7.7 8.5 8.5-5 .8-7.7 3.5-8.5 8.5-.8-5-3.5-7.7-8.5-8.5 5-.8 7.7-3.5 8.5-8.5zM68 58c.6 3.7 2.6 5.7 6.3 6.3-3.7.6-5.7 2.6-6.3 6.3-.6-3.7-2.6-5.7-6.3-6.3 3.7-.6 5.7-2.6 6.3-6.3z' fill='%237C5CF0' fill-opacity='.22'/%3E%3C/svg%3E"); border: 3px solid var(--line); border-radius: 34px; box-shadow: 0 10px 0 var(--shadow); overflow: hidden; }
.chat-bar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: var(--brand); color: #FFFFFF; border-bottom: 3px solid var(--line); font-size: 1rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--lilac); border: 2px solid var(--ink); overflow: hidden; flex: none; }
.avatar img { scale: 1.5; translate: 0 6px; }
.thread { display: flex; flex-direction: column; gap: 8px; padding: 20px 16px 24px; }
.msg { max-width: 78%; padding: 9px 14px; border-radius: 18px; border: 2px solid var(--line); font-size: 0.9375rem; line-height: 1.35; }
.msg.in { align-self: flex-start; background: var(--bubble-in); border-bottom-left-radius: 6px; }
.msg.out { align-self: flex-end; background: var(--bubble-out); color: var(--bubble-out-text); border-bottom-right-radius: 6px; }
.msg-sticker { width: 40%; margin-block: -16px; }
.msg-sticker.in { align-self: flex-start; }
.msg-sticker.out { align-self: flex-end; }
@media (min-width: 900px) {
  .world-grid { grid-template-columns: 1fr 440px; align-items: center; column-gap: 72px; }
  .chat { rotate: 1.5deg; }
}

.pro-grid { display: grid; gap: 48px; }
.pro .plain { margin-top: 18px; font-size: 1.1875rem; line-height: 1.5; }
.plan-note { margin-top: 14px; color: var(--text-soft); }
.ticks { margin-top: 22px; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.ticks svg { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); }
.fine { margin-top: 26px; padding-top: 18px; border-top: 2px solid color-mix(in srgb, var(--text) 18%, transparent); font-size: 0.875rem; line-height: 1.55; color: var(--text-soft); }
@media (min-width: 940px) {
  .pro-grid { grid-template-columns: 1.1fr 1fr; align-items: center; column-gap: 72px; }
  .scene-wide { rotate: -1.2deg; }
}

.faq { background: var(--bg-alt); padding: clamp(72px, 9vw, 120px) 0; }
.faq-wrap { max-width: 820px; }
.qa { margin-top: 36px; display: grid; gap: 14px; }
details { background: var(--surface); border: 3px solid var(--line); border-radius: 20px; box-shadow: 0 5px 0 var(--shadow); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font: 700 1.1875rem/1.25 var(--display); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); font: 900 1.25rem/1 var(--display); }
details[open] summary::after { content: "–"; }
details p { padding: 0 22px 20px; color: var(--text-soft); }

.outro { background: var(--sky); color: var(--on-sky); overflow: hidden; border-top: 3px solid var(--line); text-align: center; }
.outro-copy { position: relative; z-index: 2; width: min(100% - 40px, 760px); margin-inline: auto; padding-top: clamp(64px, 8vw, 104px); }
.valley-outro { margin-top: 28px; }

.foot { background: var(--ground); color: #D9D6FF; padding: 28px 0 36px; }
.foot-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot .brand { color: #FFFFFF; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: #FFFFFF; }
.foot nav a { font-weight: 600; }
.foot p { margin-left: auto; font-size: 0.9375rem; }
.foot .marks { margin-left: 0; width: 100%; font-size: 0.75rem; line-height: 1.5; opacity: 0.8; }
@media (max-width: 640px) { .foot p { margin-left: 0; width: 100%; } }

.lost { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--sky); color: var(--on-sky); }
.lost-card { width: min(100%, 520px); text-align: center; }
.lost-card .brand { justify-content: center; }
.lost-art { width: 200px; margin: 20px auto 4px; }
.lost-card section { margin-top: 22px; }
.lost-card h1 { font-size: 1.75rem; }
.lost-card p { margin-top: 8px; color: var(--on-sky-soft); }
.lost-card .back { display: inline-block; margin-top: 12px; color: var(--accent-on-sky); font-weight: 600; }

/* ---------- motion (only when the visitor has not asked for less) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fitil .flame { animation: flicker 2.6s ease-in-out infinite; }
  .fitil .body { animation: breathe 3.4s ease-in-out infinite; }
  .halo { animation: pulse 2.6s ease-in-out infinite; }
  .star { animation: twinkle 3.2s ease-in-out infinite; transform-origin: center; }
  .s2, .s5, .s8 { animation-delay: -1.1s; } .s3, .s6 { animation-delay: -2.1s; }
  .c1 { animation: drift 46s linear infinite alternate; }
  .c2 { animation: drift 60s linear infinite alternate-reverse; }
  .orb { animation: rise 1.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
  .moth .up { animation: flap 0.36s steps(1) infinite; }
  .moth .down { animation: flap 0.36s steps(1) infinite reverse; }
  .m1 { animation: bounce-off 7s ease-in-out infinite; }
  .m2 { animation: bounce-off 9s ease-in-out -3s infinite; }
  .firefly { animation: wander 6s ease-in-out infinite alternate, blink 2.8s ease-in-out infinite; }
  .f2 { animation-delay: -2s, -1s; } .f3 { animation-delay: -4s, -2s; } .f4 { animation-delay: -1s, -0.5s; } .f5 { animation-delay: -3s, -1.6s; }
  .hero-copy > * { animation: up 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; } .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.24s; } .hero-copy > :nth-child(5) { animation-delay: 0.32s; }
  .js .reveal { opacity: 0; translate: 0 28px; transition: opacity 0.7s ease, translate 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .js .reveal.in { opacity: 1; translate: 0 0; }
  .js .step:nth-child(2) { transition-delay: 0.12s; } .js .step:nth-child(3) { transition-delay: 0.24s; }
  .js .week .lit { opacity: 0; scale: 0.9; transition: opacity 0.35s ease, scale 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
  .js .week.in .lit { opacity: 1; scale: 1; }
  .week .lamp:nth-child(2) .lit { transition-delay: 0.22s; } .week .lamp:nth-child(3) .lit { transition-delay: 0.44s; }
  .week .lamp:nth-child(4) .lit { transition-delay: 0.66s; } .week .lamp:nth-child(6) .lit { transition-delay: 0.88s; }
  .week .lamp:nth-child(7) .lit { transition-delay: 1.1s; }
  .scene { transition: rotate 0.4s cubic-bezier(0.3, 1.5, 0.5, 1), translate 0.4s ease; }
  .step:hover .scene, .scene-wide:hover { rotate: 0deg; translate: 0 -4px; }
  .shelf li { transition: rotate 0.35s cubic-bezier(0.3, 1.8, 0.5, 1), scale 0.35s ease; }
  .shelf li:hover { rotate: 0deg; scale: 1.08; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@keyframes flicker {
  0%, 100% { transform: scale(1, 1) skewX(0deg); }
  20% { transform: scale(0.96, 1.07) skewX(-3deg); }
  45% { transform: scale(1.04, 0.95) skewX(2.5deg); }
  70% { transform: scale(0.98, 1.05) skewX(-1.5deg); }
}
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.012, 0.984); } }
@keyframes pulse { 0%, 100% { scale: 1; opacity: 0.22; } 50% { scale: 1.14; opacity: 0.34; } }
@keyframes twinkle { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.55); opacity: 0.55; } }
@keyframes drift { from { translate: -3vw 0; } to { translate: 5vw 0; } }
@keyframes rise { from { translate: 0 60%; } to { translate: 0 0; } }
@keyframes flap { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes bounce-off {
  0%, 100% { translate: 0 0; rotate: -6deg; }
  38% { translate: -70% 70%; rotate: -12deg; }
  44% { translate: -40% 50%; rotate: 16deg; }
  60% { translate: 30% -20%; rotate: 4deg; }
  80% { translate: 60% 30%; rotate: -6deg; }
}
@keyframes wander { from { translate: 0 0; } to { translate: 26px -30px; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes up { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
