@charset "utf-8";
/* ==========================================================================
   Motion layer. Loaded after ink.css.

   The page is printed matter, so nothing floats in — things arrive the way
   ink does. A squeegee pass from the left. A stamp pressed down. Numbers
   ticking up on a tally sheet.

   Everything here is opacity / transform / clip-path only, so it stays cheap
   on a slow phone, and all of it is switched off under reduced motion.
   ========================================================================== */

/* ---------- reveal: an ink pass from the left ---------- */
.js [data-reveal] {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transform: translateY(14px);
  transition:
    opacity .5s ease,
    clip-path .72s cubic-bezier(.22, .75, .2, 1),
    transform .6s cubic-bezier(.22, .75, .2, 1);
  will-change: clip-path, opacity;
}
.js [data-reveal].is-in {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: none;
  will-change: auto;
}

/* a slab (card, panel) presses down instead of wiping */
.js [data-reveal="press"] {
  clip-path: none;
  opacity: 0;
  transform: translateY(26px) scale(.985);
  transition: opacity .42s ease, transform .52s cubic-bezier(.2, .8, .25, 1);
}
.js [data-reveal="press"].is-in { opacity: 1; transform: none; }

/* a rule or divider draws itself */
.js [data-reveal="rule"] {
  clip-path: none;
  opacity: 1;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .7s cubic-bezier(.22, .75, .2, 1);
}
.js [data-reveal="rule"].is-in { transform: scaleX(1); }

/* ---------- hero: one orchestrated arrival ----------
   Driven only by the .js class, which motion.js sets the moment it parses.
   Nothing here waits on a font or an observer: if the script never runs the
   hero is simply visible, and if it does the animation starts immediately.
   Content is never hidden behind something that might not happen. */
.js .hero__kicker {
  animation: inkWipe .6s cubic-bezier(.22,.75,.2,1) .05s both;
}
/* the headline arrives as two screenprint passes, one line at a time */
.js .hero h1 {
  animation: inkWipe .75s cubic-bezier(.22,.75,.2,1) .18s both;
}
.js .hero h1 em {
  animation: inkWipe .75s cubic-bezier(.22,.75,.2,1) .46s both;
}
.js .hero__lede {
  animation: riseIn .6s cubic-bezier(.2,.8,.25,1) .72s both;
}
.js .hero .btnrow {
  animation: riseIn .55s cubic-bezier(.2,.8,.25,1) .88s both;
}
/* and the stamp is pressed down on top of it */
.js .hero .stamp {
  animation: stampDown .5s cubic-bezier(.3,1.4,.5,1) 1.0s both;
}

@keyframes inkWipe {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to   { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes stampDown {
  0%   { opacity: 0; transform: rotate(-14deg) scale(1.5); }
  70%  { opacity: 1; transform: rotate(-2.2deg) scale(.97); }
  100% { opacity: 1; transform: rotate(-2.2deg) scale(1); }
}

/* ---------- counting numbers ---------- */
.figure__n[data-count],
.dstat__v[data-count],
.stat__v[data-count] {
  font-variant-numeric: tabular-nums;
}

/* ---------- bars ---------- */
.js .bar__fill[data-fill],
.js .meter__fill[data-fill] { width: 0; }

/* ---------- poster wall ---------- */
.wall {
  overflow: hidden;
  border-block: var(--heavy);
  background: var(--paper-2);
  padding-block: 1.1rem;
  position: relative;
}
.wall::before, .wall::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 90px;
  z-index: 2; pointer-events: none;
}
.wall::before { left: 0;  background: linear-gradient(90deg, var(--paper-2), transparent); }
.wall::after  { right: 0; background: linear-gradient(270deg, var(--paper-2), transparent); }

.wall__rail {
  display: flex;
  gap: 1.1rem;
  width: max-content;
  animation: drift 46s linear infinite;
}
.wall:hover .wall__rail,
.wall:focus-within .wall__rail { animation-play-state: paused; }

.wall__item {
  flex: none;
  width: clamp(130px, 17vw, 210px);
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(var(--tilt, 0deg));
}
.wall__item img { width: 100%; height: auto; display: block; }
.wall__item:nth-child(3n)   { --tilt: -1.6deg; }
.wall__item:nth-child(3n+1) { --tilt: 1.2deg; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ---------- top bar ticker ---------- */
.topbar__ticker {
  display: none;
  font-family: "Anek Bangla", sans-serif;
  font-weight: 700;
  font-size: .92rem;
  color: #fff;
  background: var(--red);
  padding: .18rem .7rem;
  white-space: nowrap;
}
.topbar.has-ticker .topbar__ticker {
  display: inline-block;
  animation: riseIn .35s ease both;
}
@media (max-width: 44rem) {
  .topbar.has-ticker .topbar__ticker { font-size: .82rem; padding: .15rem .5rem; }
}

/* ---------- engine: the flow runs left to right ---------- */
.engine { position: relative; }
.js .engine__col--mid .engine__h::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: .55rem;
  background: linear-gradient(90deg,
    var(--marigold) 0 28%, transparent 28% 100%);
  background-size: 200% 100%;
  animation: flow 2.8s linear infinite;
}

@keyframes flow {
  from { background-position: -100% 0; }
  to   { background-position: 100% 0; }
}

/* ---------- small, honest hover feedback ---------- */
.js .get { transition: background-color .2s ease; }
.js .get:hover { background: var(--paper-2); }
.js .get--big:hover { background: var(--paper-3); }

.js .pos { transition: transform .25s cubic-bezier(.2,.8,.25,1), box-shadow .25s ease; }
.js .pos:hover { transform: translateY(-6px); box-shadow: 10px 12px 0 var(--ink); }

.js .qa summary { transition: color .18s ease, padding-left .18s ease; }
.js .qa[open] summary { padding-left: .4rem; }

/* ---------- everything off, final state shown ---------- */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal],
  .js [data-reveal].is-in,
  .js [data-reveal="press"],
  .js [data-reveal="rule"] {
    opacity: 1 !important;
    clip-path: none !important;
    transform: none !important;
    transition: none !important;
  }
  .js .hero__kicker,
  .js .hero h1,
  .js .hero h1 em,
  .js .hero__lede,
  .js .hero .btnrow,
  .js .hero .stamp {
    opacity: 1 !important;
    clip-path: none !important;
    animation: none !important;
    transform: rotate(-2.2deg);
  }
  .js .hero__kicker, .js .hero h1, .js .hero h1 em,
  .js .hero__lede, .js .hero .btnrow { transform: none !important; }
  .wall__rail { animation: none !important; }
  .js .engine__col--mid .engine__h::after { animation: none !important; }
  .js .pos:hover { transform: none !important; }
}
