/* fets. diari — the banners. Four films, 1000×130 each: a strip, not a panel.
   Everything is scoped under `.bn` so the films cannot reach the page around them.

   There is no escape hatch here. The prototype had a button to override `prefers-reduced-motion`
   because that page existed to be watched; this one sits on top of a newspaper somebody is
   reading, so the preference is final. */

.dr-banner {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  background: var(--d-band);
  border-bottom: 1px solid var(--d-sand);
}
.dr-banner:empty { display: none; }
.dr-banner .bn { display: block; width: 100%; height: auto; }
/* On a phone the strip would be 45px tall and its 9px type would land at 3px: unreadable, and
   the one thing competing with the feed for the little room there is. */
.dr--phone .dr-banner { display: none; }

.bn .bn-serif { font-family: var(--d-serif); }
.bn .bn-sans  { font-family: var(--d-sans); }
.bn .bn-mono  { font-family: var(--d-mono); }
/* Fills are CSS PROPERTIES, never SVG presentation attributes: `fill="var(--x)"` does not
   resolve — var() lives in CSS — and the element falls back to black without saying so. */
.bn .bn-ink  { fill: var(--d-ink); }
.bn .bn-soft { fill: var(--d-ink-soft); }
.bn .bn-mute { fill: var(--d-mute); }
.bn .sig     { fill: var(--d-sig); }
.bn text { font-family: var(--d-sans); }

@keyframes bn-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes bn-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bn-draw { to { stroke-dashoffset: 0; } }

/* The closing line. Four films, one shape — two clauses, each a noun and the adjective that
   earns it. Same face, same size, same place in all of them: that repetition is what makes
   four pieces read as one campaign rather than four experiments. */
.bn .bn-close {
  fill: var(--d-ink);
  font-family: var(--d-serif);
  opacity: 0;
  animation: bn-rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--t) * 1ms);
}

/* The point lands where the MARKUP says, not where a keyframe remembers: `--mx` / `--my` are
   written by `markGeometry`, which is also what the tests read. */
@keyframes bn-land {
  0%   { opacity: 0; transform: translate(calc(var(--mx) - 30px), calc(var(--my) - 16px)) scale(2.2, 0.7); }
  60%  { opacity: 1; transform: translate(calc(var(--mx) + 4px), calc(var(--my) + 2px)) scale(1.2, 0.86); }
  100% { opacity: 1; transform: translate(var(--mx), var(--my)) scale(1); }
}

/* --- 01 — the noise, read --------------------------------------------------------------- */
.bn .bn1__logo { opacity: 0; animation: bn-rise 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.bn .bn-nw {
  fill: var(--d-ink);
  opacity: 0;
  animation: bn-ink 190ms linear both;
  animation-delay: calc(var(--d) * 1ms);
}
@keyframes bn-ink { from { opacity: 0; } to { opacity: var(--o, 1); } }
/* dropped in a single frame, at the moment it is hidden under the disc */
.bn .bn1__flood { animation: bn-drop 1ms linear 4820ms both; }
@keyframes bn-drop { to { opacity: 0; } }

/* The disc and the point are ONE element from first frame to last — which is the whole idea,
   so it must not be two circles taking turns. r=7, so scale 76 clears the far corner. */
.bn .bn1__dot { opacity: 0; animation: bn1-wipe 7600ms linear both; }
@keyframes bn1-wipe {
  0%, 50.5% { opacity: 0; transform: translate(500px, 65px) scale(0.01); }
  51.3%     { opacity: 1; transform: translate(500px, 65px) scale(0.01); }
  56%       { transform: translate(500px, 65px) scale(14); }
  63.2%, 65.5% { opacity: 1; transform: translate(500px, 65px) scale(76); }
  73.7%     { transform: translate(150px, 65px) scale(1.5); }
  76.5%     { transform: translate(156px, 67px) scale(1.4); }
  80%       { transform: translate(360px, 78px) scale(2.4, 0.62); }
  82.9%     { transform: translate(544px, 88px) scale(1.3, 0.84); }
  /* the rebound is taller, so the centre rises by what it gained: it stays ON the line */
  86.8%     { transform: translate(var(--mx), calc(var(--my) - 1.12px)) scale(0.84, 1.16); }
  92%       { transform: translate(var(--mx), calc(var(--my) + 0.35px)) scale(1.07, 0.95); }
  100%      { opacity: 1; transform: translate(var(--mx), var(--my)) scale(1); }
}

/* --- 02 — the voices, all --------------------------------------------------------------- */
/* 520ms apart and held for nearly three seconds each. At 240ms nobody could read a single one,
   which made the merge look like an effect rather than an argument. */
.bn .bn2__v {
  opacity: 0;
  animation: bn2-life 7000ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i) * 520ms);
}
@keyframes bn2-life {
  0%   { opacity: 0; transform: translate(-16px, 0); }
  6%, 46% { opacity: 1; transform: none; }
  64%, 76% { opacity: 0.22; transform: translateY(calc(var(--dy) * 1px)); }
  88%, 100% { opacity: 0; transform: translateY(calc(var(--dy) * 1px)); }
}
/* each outlet's name leaves with its own line, not all at once */
.bn .bn2__src {
  fill: var(--d-mute);
  animation: bn-fade 420ms linear calc(var(--i) * 520ms + 3300ms) reverse both;
}
.bn .bn2__one { opacity: 0; animation: bn-rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 7600ms both; }
.bn .bn2__rule {
  stroke: var(--d-rule);
  stroke-width: 1;
  stroke-dasharray: 630;
  stroke-dashoffset: 630;
  animation: bn-draw 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 8200ms both;
}
.bn .bn2__cap { opacity: 0; animation: bn-fade 500ms linear 8500ms both; }
.bn .bn2__word { opacity: 0; animation: bn-fade 500ms linear 8800ms both; }
.bn .bn2__dot { opacity: 0; animation: bn-land 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 9000ms both; }

/* --- 03 — the world, whole -------------------------------------------------------------- */
.bn .bn3__ring {
  fill: none;
  stroke: var(--d-ink);
  stroke-width: 2;
  stroke-dasharray: var(--c);
  stroke-dashoffset: var(--c);
  animation: bn-draw 760ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i) * 430ms);
}
.bn .bn3__ring--in { stroke: var(--d-sig); }
.bn .bn3__lab {
  opacity: 0;
  animation: bn-rise 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i) * 430ms + 600ms);
}
/* fill-box so the collapse pulls in on the rings' own centre, not the canvas origin */
.bn .bn3__rings {
  transform-box: fill-box;
  transform-origin: center;
  animation: bn3-collapse 760ms cubic-bezier(0.2, 0.8, 0.2, 1) 2900ms both;
}
@keyframes bn3-collapse { from { transform: none; opacity: 1; } to { transform: scale(0.02); opacity: 0; } }
.bn .bn3__labs { animation: bn-fade 400ms linear 2900ms reverse both; }
.bn .bn3__dot { opacity: 0; animation: bn3-settle 1500ms cubic-bezier(0.2, 0.8, 0.2, 1) 3400ms both; }
@keyframes bn3-settle {
  0%   { opacity: 0; transform: translate(460px, 66px) scale(0.3); }
  16%, 38% { opacity: 1; transform: translate(460px, 66px) scale(1); }
  70%  { transform: translate(534px, 92px) scale(1.5, 0.72); }
  86%  { transform: translate(var(--mx), calc(var(--my) - 1.12px)) scale(0.86, 1.14); }
  100% { opacity: 1; transform: translate(var(--mx), var(--my)) scale(1); }
}
.bn .bn-l {
  opacity: 0;
  animation: bn-fade 260ms linear both;
  animation-delay: calc(3900ms + var(--i) * 130ms);
}

/* --- 04 — the sources, precise ---------------------------------------------------------- */
.bn .bn4__a { animation: bn-fade 420ms linear 3000ms reverse both; }
.bn .bn4__b { animation: bn-fade 420ms linear 6000ms reverse both; }
.bn .bn4__gl { opacity: 0; animation: bn-fade 360ms linear both; animation-delay: calc(var(--t) * 1ms); }
.bn .bn4__rule {
  stroke: var(--d-rule);
  stroke-width: 1;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: bn-draw 600ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.bn .bn4__tick {
  stroke: var(--d-rule);
  stroke-width: 1;
  opacity: 0;
  animation: bn-fade 300ms linear both;
  animation-delay: calc(300ms + var(--i) * 60ms);
}
.bn .bn4__hour { opacity: 0; animation: bn-fade 400ms linear both; animation-delay: calc(400ms + var(--i) * 80ms); }
/* The playhead takes 800ms over the six minutes that matter after 400ms over the four before
   them. That change of pace is the dramaturgy — it is the sound of finding something. At a
   constant speed those six minutes would pass in 130ms and nobody would see them. */
.bn .bn4__head { stroke: var(--d-sig); stroke-width: 1.6; opacity: 0; animation: bn4-listen 2000ms linear 700ms both; }
@keyframes bn4-listen {
  0%   { opacity: 0; transform: translateX(0); }
  5%   { opacity: 1; transform: translateX(0); }
  20%  { transform: translateX(40px); }
  60%  { transform: translateX(100px); }
  90%  { opacity: 1; transform: translateX(600px); }
  100% { opacity: 0; transform: translateX(600px); }
}
.bn .bn4__band {
  stroke: var(--d-sig);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: bn-draw 800ms linear 1100ms both;
}
.bn .bn4__qa { opacity: 0; animation: bn-rise 600ms cubic-bezier(0.2, 0.8, 0.2, 1) 2000ms both; }
.bn .bn4__ln {
  fill: var(--d-rule);
  opacity: 0;
  animation: bn-fade 240ms linear both;
  animation-delay: calc(3600ms + var(--i) * 110ms);
}
.bn .bn4__ln--cut { opacity: 0; animation: bn-fade 300ms linear 4400ms both; }
.bn .bn4__cut { stroke: var(--d-sig); stroke-width: 2; opacity: 0; animation: bn-fade 300ms linear 4450ms both; }
.bn .bn4__qb { opacity: 0; animation: bn-rise 600ms cubic-bezier(0.2, 0.8, 0.2, 1) 4900ms both; }
.bn .bn4__st { opacity: 0; animation: bn-fade 420ms linear both; animation-delay: calc(var(--t) * 1ms); }
.bn .bn4__word { opacity: 0; animation: bn-fade 460ms linear 7400ms both; }
.bn .bn4__dot { opacity: 0; animation: bn-land 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 7600ms both; }

/* A reader who asked for less motion gets the film's LAST frame, not its first.
   Rather than hand-writing a still for four films — four chances to get it subtly wrong —
   every animation is told to finish in 1ms. With `both` on all of them, each element lands on
   its own final keyframe, so the still frame is the real one by construction and cannot drift
   from the film.

   `.dr--motion` lifts it, and ONLY `?motion=on` sets that class. It is a review affordance,
   not a control: it is not in the interface, it is not remembered between visits, and nobody
   reaches it without typing it. It exists because Chrome on a Wayland desktop can report
   `reduce` while the desktop itself says the opposite — derived from `gtk-enable-animations`,
   which that session may never deliver — leaving the people who make these films unable to
   watch them (operator 2026-10-02). Every selector below carries the guard: one that did not
   would keep its own elements frozen while the rest of the film ran. */
@media (prefers-reduced-motion: reduce) {
  .dr:not(.dr--motion) .bn,
  .dr:not(.dr--motion) .bn * {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
  }
}
