/* manifesto-aside — "the / ORVÉA / way" lockup beside the manifesto paragraph.
   Base rules = the finished, static state (no JS, reduced motion).
   Compact (< 1100px): one row under the paragraph, closed by a horizontal hairline.
   Wide (>= 1100px): right-hand column behind a vertical hairline.
   --fx-manifesto-aside-p (0..1) is the hairline's draw progress, written by the JS. */

.fx-manifesto-aside{--fx-manifesto-aside-p:1;position:relative;display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding-top:clamp(16px,2.6vh,28px)}

/* hairline: ::before is the line itself; <i> is a full-length track carrying the needle point on its far end.
   The track slides in from before the start (up / left), so it never adds scrollable overflow. */
.fx-manifesto-aside-rule{position:absolute;inset:0 0 auto;height:1px}
.fx-manifesto-aside-rule::before{content:"";position:absolute;inset:0;background:rgba(255,255,255,.16);transform:scaleX(var(--fx-manifesto-aside-p));transform-origin:0 0}
.fx-manifesto-aside-rule i{position:absolute;inset:0;opacity:0;transform:translateX(calc((var(--fx-manifesto-aside-p) - 1)*100%));transition:opacity .3s}
.fx-manifesto-aside-rule i::before{content:"";position:absolute;right:-3px;bottom:-3px;width:7px;height:7px;border-radius:50%;background:var(--verm)}
.fx-manifesto-aside-drawing .fx-manifesto-aside-rule i{opacity:1}

.fx-manifesto-aside-ast{display:none;color:var(--verm)}
.fx-manifesto-aside-ast svg{width:100%;height:100%}

.fx-manifesto-aside-lockup{font-family:var(--display);font-stretch:125%;font-weight:640;letter-spacing:-.035em;line-height:.95;font-size:clamp(1.35rem,4.2vw,2.2rem);color:var(--paper)}
/* each line is a mask; the padding leaves room for the accent on É, the tail of y and the spring overshoot */
.fx-manifesto-aside-line{display:block;overflow:hidden;padding:.2em .08em .16em .04em;margin:-.2em 0 -.16em -.04em}
.fx-manifesto-aside-ch{display:inline-block;transform-origin:0 100%}
.fx-manifesto-aside-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* left-aligned inside its own block so the (A)(B)(C) markers share one edge, also in the compact row */
.fx-manifesto-aside-links{display:flex;flex-direction:column;align-items:flex-start;font-family:var(--tech);font-size:clamp(10px,.74vw,12px);letter-spacing:.14em;text-transform:uppercase;font-weight:500;line-height:1.2}
.fx-manifesto-aside-links a{display:block;overflow:hidden;padding-block:5px;color:var(--verm)}
@media (max-width:820px){.fx-manifesto-aside-links a{padding-block:11px}} /* fixer: ~44px rows on phones, where these are the only in-page links */
.fx-manifesto-aside-links a span{position:relative;display:block}
.fx-manifesto-aside-links a span::after{content:"";position:absolute;left:0;right:0;bottom:-3px;height:1px;background:currentColor;transform:scaleX(0);transform-origin:100% 0;transition:transform .45s cubic-bezier(.215,.61,.355,1)}
.fx-manifesto-aside-links i{font-style:normal;color:var(--stone);margin-right:.8em}
@media (hover:hover){
  .fx-manifesto-aside-links a:hover span::after{transform:scaleX(1);transform-origin:0 0}
}

@media (min-width:1100px){
  /* two columns: paragraph and foot on the left, the aside spans both rows on the right */
  .manifesto-in:has(> .fx-manifesto-aside){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.42fr);column-gap:clamp(24px,3vw,48px);row-gap:clamp(24px,4.6vh,56px);align-items:start}
  .manifesto-in:has(> .fx-manifesto-aside) > *{grid-column:1}
  .manifesto-in:has(> .fx-manifesto-aside) > .sec-head{grid-column:1/-1}
  .manifesto-in:has(> .fx-manifesto-aside) > .manifesto-text{font-size:clamp(1.5rem,min(3vw,5.6vh),3.3rem);max-width:none}
  .manifesto-in > .fx-manifesto-aside{grid-column:2;grid-row:2/span 2;align-self:stretch;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:clamp(16px,2.8vh,30px);padding:0 0 0 clamp(24px,3vw,48px)}

  .fx-manifesto-aside-rule{inset:0 auto 0 0;width:1px;height:auto}
  .fx-manifesto-aside-rule::before{transform:scaleY(var(--fx-manifesto-aside-p))}
  .fx-manifesto-aside-rule i{transform:translateY(calc((var(--fx-manifesto-aside-p) - 1)*100%))}

  .fx-manifesto-aside-ast{display:block;width:clamp(34px,3.2vw,50px);height:clamp(34px,3.2vw,50px)}
  /* mark at the top; lockup and links sit on the floor, level with the last line and the foot */
  .fx-manifesto-aside-lockup{margin-top:auto;font-size:clamp(2.5rem,min(4.3vw,8vh),4.6rem)}
}

/* very short compact screens (320x568, landscape phones): the pinned panel has no room left, drop the extra row */
@media (max-width:1099.98px) and (max-height:600px){
  .fx-manifesto-aside{display:none}
}

/* ---- motion layer: hidden until the scroll sequencer in js/fx/manifesto-aside.js switches each piece on ---- */
.js .fx-manifesto-aside-armed .fx-manifesto-aside-ch{transform:translate3d(0,125%,0) rotate(9deg);transition:transform .3s cubic-bezier(.5,0,.8,.3)}
.js .fx-manifesto-aside-armed .fx-manifesto-aside-ast{transform:scale(0) rotate(-150deg);transition:transform .3s cubic-bezier(.5,0,.8,.3)}
.js .fx-manifesto-aside-armed .fx-manifesto-aside-links a>span{transform:translate3d(0,150%,0);transition:transform .3s cubic-bezier(.5,0,.8,.3)}
.js .fx-manifesto-aside-armed .fx-manifesto-aside-ch.fx-manifesto-aside-on,
.js .fx-manifesto-aside-armed .fx-manifesto-aside-ast.fx-manifesto-aside-on{transform:none;transition:transform .85s var(--spring)}
/* a keyboard user can reach a link before the scroll has revealed it: never leave the focused one hidden */
.js .fx-manifesto-aside-armed .fx-manifesto-aside-links a.fx-manifesto-aside-on>span,
.js .fx-manifesto-aside-armed .fx-manifesto-aside-links a:focus-visible>span{transform:none;transition:transform .7s cubic-bezier(.215,.61,.355,1)}
