/* motion: one motif (the drop), calm and precise (eased, never bounced), and a switch that stops it all.
   html[data-motion="on|off"] and html[data-fx="full|lite|still"] are set by js/fx/fx-tier.js before anything moves. */
:root {
  --drop-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M18.55 34.49 L 43.01 4.33 A 9 9 0 0 1 56.99 4.33 L 81.45 34.49 A 40.5 40.5 0 1 1 18.55 34.49 Z'/%3E%3C/svg%3E");
  --rise: cubic-bezier(.2, .7, .2, 1);
}

/* the drop, everywhere small things are marked */
.kicker { display: inline-flex; align-items: center; gap: 8px; }
.kicker::before { content: ''; width: 9px; height: 11px; background: currentColor; -webkit-mask: var(--drop-mask) center / contain no-repeat; mask: var(--drop-mask) center / contain no-repeat; opacity: .9; }
.eyebrow i, .status .dot i, .wall-cap .live i, .jarwin-top .live i { border-radius: 0 !important; width: 8px !important; height: 10px !important; -webkit-mask: var(--drop-mask) center / contain no-repeat; mask: var(--drop-mask) center / contain no-repeat; box-shadow: none !important; }
.steps b { border-radius: 0 !important; width: 30px; height: 34px; padding-top: 6px; -webkit-mask: var(--drop-mask) center / contain no-repeat; mask: var(--drop-mask) center / contain no-repeat; }
.ticks li::before { border-radius: 0 !important; width: 10px !important; height: 12px !important; top: 7px !important; box-shadow: none !important; -webkit-mask: var(--drop-mask) center / contain no-repeat; mask: var(--drop-mask) center / contain no-repeat; }

/* sections rise in as they're reached (reveal.js adds .in), siblings a beat apart */
html[data-motion="on"] .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--rise), transform .7s var(--rise); }
html[data-motion="on"] .reveal.in { opacity: 1; transform: none; }
/* the check tiles: the flag ticks in just after its tile */
html[data-motion="on"] .check.reveal .top .flag { opacity: 0; transform: translateY(5px) scale(.96); transition: opacity .45s var(--rise) .28s, transform .45s var(--rise) .28s; }
html[data-motion="on"] .check.reveal.in .top .flag { opacity: 1; transform: none; }
/* the dev record draws its line, one coin at a time */
html[data-motion="on"] .dev-dots i { opacity: 0; transform: scale(.3); }
html[data-motion="on"] .in .dev-dots i { animation: dotin .32s var(--rise) forwards; animation-delay: calc(var(--d, 0) * 5ms + 200ms); }
@keyframes dotin { to { opacity: 1; transform: none; } }
.dev-line { height: 2px; margin-top: 14px; border-radius: 2px; background: linear-gradient(90deg, var(--honey), var(--amber)); transform-origin: 0 50%; }
html[data-motion="on"] .dev-line { transform: scaleX(0); }
html[data-motion="on"] .in .dev-line { transform: none; transition: transform 1.4s var(--rise) .2s; }
/* the bubble map breathes, each bubble on its own slow beat */
html[data-motion="on"] .bubbles .bub { transform-box: fill-box; transform-origin: center; animation: breathe 5.5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.035); } }
html[data-motion="on"] .bubbles.grow .bub { animation: bubin .7s var(--rise) both, breathe 5.5s ease-in-out .7s infinite; }
@keyframes bubin { from { transform: scale(0); opacity: 0; } }

/* Drop settles when a drop lands beside him: a soft squash and back, no bounce */
.mascot.wobble, .jar-mascot.wobble { animation: settle .62s var(--rise); }
@keyframes settle { 0% { transform: none; } 28% { transform: scale(1.045, .94); } 62% { transform: scale(.99, 1.015); } 100% { transform: none; } }

/* the resin on the branch above the live feed card */
.card .resin { position: absolute; left: -72px; top: -236px; width: 680px; height: 248px; z-index: 3; pointer-events: none; }
.card .resin .branch, .card .resin .resin-cv { position: absolute; inset: 0; width: 100%; height: 100%; }

/* scroll progress: a honey line under the status bar, with a drop at its head */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 50; pointer-events: none; }
.progress i { position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, rgba(255, 180, 42, .2), var(--amber)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* the motion switch (footer) */
.fx-switch { font: 600 12px/1 var(--mono); padding: 8px 12px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .7; }
.fx-switch:hover { opacity: 1; }

/* the wall: two rows of live coins drifting opposite ways, never stopping */
.wall { position: relative; width: 100vw; margin-left: calc(50% - 50vw); padding: 8px 0 4px; }
.wall-rows { display: grid; gap: 16px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.wall-row { overflow: hidden; }
.wall-track { display: flex; width: max-content; animation: wall 72s linear infinite; will-change: transform; }
.wall-row.rev .wall-track { animation-duration: 66s; animation-direction: reverse; }
@keyframes wall { to { transform: translateX(-33.3333%); } }
.wall-set { list-style: none; margin: 0; padding: 0 7px; display: flex; gap: 14px; }
.wt-slot { flex: none; width: 152px; height: 176px; }
.wt { position: relative; width: 100%; height: 100%; display: grid; justify-items: center; align-content: center; gap: 6px; padding: 12px 10px; border-radius: 18px; background: var(--cream); box-shadow: 0 18px 36px -26px rgba(80, 40, 0, .6), 0 0 0 1px var(--line); transition: transform .25s var(--rise), box-shadow .25s var(--rise); }
a.wt:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(80, 40, 0, .7), 0 0 0 1px var(--line-2); }
.wt-drop { position: relative; width: 84px; height: 84px; }
.wt-drop::before { content: ''; position: absolute; inset: 14px 8px 0; border-radius: 50%; background: radial-gradient(closest-side, var(--lc, transparent), transparent); filter: blur(6px); opacity: .85; }
.wt-drop .coin, .wt-drop svg { position: relative; }
.wt-drop > svg { width: 100%; height: 100%; }
.wt b { font: 700 14px/1.1 var(--mono); max-width: 132px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wt .flag { height: 22px; font-size: 11.5px; max-width: 136px; overflow: hidden; }
.wt.lvl-risk { --lc: rgba(229, 72, 77, .55); box-shadow: 0 18px 36px -26px rgba(80, 40, 0, .6), inset 0 0 0 1.5px rgba(229, 72, 77, .35); }
.wt.lvl-warn { --lc: rgba(243, 154, 34, .6); }
.wt.lvl-ok { --lc: rgba(34, 160, 107, .5); box-shadow: 0 18px 36px -26px rgba(80, 40, 0, .6), inset 0 0 0 1.5px rgba(34, 160, 107, .35); }
.wt-ph { background: rgba(255, 244, 223, .6); }
.wt-ph .ph { width: 70px; height: 84px; border-radius: 50% 50% 46% 46%; }
.wall-cap { width: min(1440px, 100%); margin: 14px auto 0; padding: 0 clamp(16px, 3.5vw, 56px); font: 500 12px/1.5 var(--mono); opacity: .72; display: flex; gap: 10px; align-items: center; }
.wall-cap .live { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #0E6B40; }
.wall-cap .live i { display: inline-block; background: #1E9E63; }

/* motion off: the wall sits still and scrolls by hand; nothing animates anywhere */
html[data-motion="off"] .wall-rows { -webkit-mask-image: none; mask-image: none; }
html[data-motion="off"] .wall-row { overflow-x: auto; scrollbar-width: none; }
html[data-motion="off"] .wall-row::-webkit-scrollbar { display: none; }
html[data-motion="off"] .wall-set[aria-hidden="true"] { display: none; }
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation: none !important; transition: none !important; }

@media (max-width: 640px) {
  .wt-slot { width: 124px; height: 150px; }
  .wt-drop { width: 66px; height: 66px; }
  .wt b { font-size: 12.5px; }
  .wall-rows { gap: 12px; }
  .wall-cap { font-size: 11px; }
  .card .resin { left: -16px; top: -196px; width: 300px; height: 206px; }
}
