/* feelings-ticker — two crossing ribbons between the hero and the manifesto.
   Base rules are the static, no-JS / reduced-motion look. js/fx/feelings-ticker.js
   owns the travel (.…-track transform) and the asterisk spin, both as WAAPI loops.

   Geometry: the ribbons tilt in opposite directions and their centres sit --gap apart,
   so they cross near the left edge and open like scissors towards the right. */
.fx-feelings-ticker{
  --fx-feelings-ticker-tilt:4deg;
  --fx-feelings-ticker-gap:6.3vw;
  --fx-feelings-ticker-h:1.26em;                 /* ribbon thickness */
  position:relative;height:22.5vw;margin-top:clamp(70px,10vw,150px);
  /* the tilted ribbons overhang both sides: clip sideways only, so the swing-open overshoot is never
     cut flat by the section's top or bottom edge (older browsers fall back to clipping both ways) */
  overflow:hidden;overflow:clip visible;
  /* type scales with the viewport, uncapped: one set must stay wider than a ribbon or the loop shows a gap */
  font:700 6vw/1 var(--display);font-stretch:125%;letter-spacing:-.04em;
}
.fx-feelings-ticker-title{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

.fx-feelings-ticker-ribbon{
  position:absolute;left:-4vw;width:108vw;height:var(--fx-feelings-ticker-h);
  top:calc(50% - var(--fx-feelings-ticker-h)/2 + var(--fx-feelings-ticker-gap)/2);
  display:flex;align-items:center;
  overflow:hidden;overflow:clip;                 /* words belong to their ribbon, also while it flies in */
  background:var(--chalk);color:transparent;-webkit-text-stroke:1.5px var(--ink);
  border-block:2px solid var(--ink);             /* 2px: a thinner tilted hairline breaks up into dashes at 1x */
  transform:rotate(var(--fx-feelings-ticker-tilt));
}
.fx-feelings-ticker-ribbon--ink{
  top:calc(50% - var(--fx-feelings-ticker-h)/2 - var(--fx-feelings-ticker-gap)/2);
  background:var(--ink);color:var(--paper);-webkit-text-stroke:0;border:0;
  transform:rotate(calc(var(--fx-feelings-ticker-tilt)*-1));
  box-shadow:0 18px 40px -26px rgba(30,33,31,.7);
}

.fx-feelings-ticker-track{display:flex;width:max-content;transform:translate3d(-2.4em,0,0)}
.fx-feelings-ticker-ribbon--paper .fx-feelings-ticker-track{transform:translate3d(-5.1em,0,0)}
.fx-feelings-ticker-set{display:flex;align-items:center;gap:.4em;padding-right:.4em;flex:none}
.fx-feelings-ticker-set li{white-space:nowrap;padding-bottom:.06em}
.fx-feelings-ticker-set svg{width:.44em;height:.44em;color:var(--verm)}

@media (max-width:820px){
  .fx-feelings-ticker{--fx-feelings-ticker-tilt:7deg;--fx-feelings-ticker-gap:11vw;height:41vw;font-size:11.5vw}
  .fx-feelings-ticker-ribbon{-webkit-text-stroke-width:1.1px}
}

/* ---- motion layer (html.js only) ----
   Entrance: both ribbons shoot in flat from opposite sides, then swing open to their tilt
   with an overshoot. `translate` and `rotate` are the individual transform properties, so the
   two moves can run on separate clocks; the starting `rotate` cancels the static tilt above.
   Browsers without them simply show the finished, tilted ribbons. */
.js .fx-feelings-ticker-track{will-change:transform}
.js .fx-feelings-ticker-ribbon{
  translate:110% 0;rotate:calc(var(--fx-feelings-ticker-tilt)*-1);
  transition:translate 1s cubic-bezier(.215,.61,.355,1) .14s,rotate 1.15s cubic-bezier(.3,2.1,.5,1) .62s;
}
.js .fx-feelings-ticker-ribbon--ink{
  translate:-110% 0;rotate:var(--fx-feelings-ticker-tilt);
  transition-delay:0s,.5s;
}
.js .fx-feelings-ticker.in .fx-feelings-ticker-ribbon{translate:0 0;rotate:0deg}

/* fixer: without the motion layer a phone sees one fixed crop of each ribbon; smaller type, starting on a whole word */
@media (max-width:820px) and (prefers-reduced-motion:reduce){
  .fx-feelings-ticker{font-size:7.4vw}
  .fx-feelings-ticker-track,.fx-feelings-ticker-ribbon--paper .fx-feelings-ticker-track{transform:translate3d(.7em,0,0)}
}
