/* fx-how: "How it would work", six steps sewn along a gold thread (fx-how.js draws the thread and lights the steps).
   The default look is the lit one, so without the script every step reads in full; .how-live adds the unlit state. */
#how .how-kick{display:block;font-family:var(--display);font-style:italic;font-size:clamp(22px,2vw,28px);line-height:1.1;color:var(--gold-3)}
#how .wrap{max-width:1120px}
.how-path{list-style:none;position:relative;margin:clamp(48px,7vh,80px) auto 0;padding:0;max-width:1000px}
/* the route, as a plain stitched line, for when the script has not run */
.how-path::before{content:"";position:absolute;left:50%;top:0;bottom:0;width:2px;margin-left:-1px;background:repeating-linear-gradient(180deg,var(--gold-3) 0 14px,transparent 14px 23px);opacity:.75}
.how-live .how-path::before{display:none}
.how-thread{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;overflow:visible;z-index:0}
.how-thread .how-guide{fill:none;stroke:rgba(231,200,119,.26);stroke-width:1.5;stroke-dasharray:2 7;stroke-linecap:round}
.how-thread .how-sh{fill:none;stroke:rgba(18,4,2,.45);stroke-width:3.4;stroke-dasharray:14 9;stroke-linecap:round;transform:translate(1px,1.6px)}
.how-thread .how-th{fill:none;stroke:var(--gold-3);stroke-width:2.4;stroke-dasharray:14 9;stroke-linecap:round}
.how-needle{transition:opacity .25s}

.how-step{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) 96px minmax(0,1fr);column-gap:30px;align-items:center}
.how-step+.how-step{margin-top:-34px}
.how-med{grid-column:2;grid-row:1;justify-self:center;position:relative;width:84px;height:84px;border-radius:50%;display:grid;place-items:center;
  background:var(--foil);color:var(--espresso-2);border:1.5px solid rgba(231,200,119,.9);
  box-shadow:0 0 0 7px rgba(111,29,17,.95),0 0 0 8px rgba(231,200,119,.28),0 12px 26px rgba(10,2,1,.45);transition:background .45s var(--out),color .45s var(--out),border-color .45s var(--out)}
/* a ring of running stitches sewn around each brass medallion */
.how-med::before{content:"";position:absolute;inset:-14px;border-radius:50%;border:1.5px dashed rgba(231,200,119,.55);transition:opacity .45s,transform .9s var(--out)}
.how-med svg{width:44px;height:44px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.how-txt{grid-row:1;min-width:0}
.how-step:nth-of-type(odd) .how-txt{grid-column:1;text-align:right}
.how-step:nth-of-type(even) .how-txt{grid-column:3}
.how-no{display:block;font-family:var(--mono);font-size:13px;letter-spacing:.03em;color:var(--gold-3)}
.how-txt h3{font-size:clamp(30px,2.7vw,40px);line-height:1;margin-top:6px;color:var(--ivory);transition:color .45s}
.how-txt h3 em{color:var(--gold-3);transition:color .45s}
.how-txt p{font-size:16.5px;line-height:1.5;color:var(--on-dark-2);margin-top:10px;max-width:36ch;transition:color .45s}
.how-step:nth-of-type(odd) .how-txt p{margin-left:auto}
.how-tag{display:inline-block;margin-top:12px;padding:3px 10px 4px;font-family:var(--mono);font-size:13px;line-height:1.4;color:var(--gold-3);border:1px solid rgba(231,200,119,.55);border-radius:2px;background:rgba(36,16,15,.3);transform:rotate(-1.5deg);transition:color .45s,border-color .45s}
.how-step:nth-of-type(even) .how-tag{transform:rotate(1.5deg)}

/* unlit: brass not yet polished, words still in pencil (contrast stays above 4.5:1 on the velvet) */
.how-live .how-step:not(.lit) .how-med{background:#5E170D;color:rgba(231,200,119,.6);border-color:rgba(231,200,119,.32)}
.how-live .how-step:not(.lit) .how-med::before{opacity:0;transform:rotate(-40deg) scale(.86)}
.how-live .how-step:not(.lit) .how-txt h3,.how-live .how-step:not(.lit) .how-txt h3 em,.how-live .how-step:not(.lit) .how-txt p{color:var(--on-dark-3)}
.how-live .how-step:not(.lit) .how-tag{color:var(--on-dark-3);border-color:rgba(196,168,147,.35)}
/* lighting up: the medallion is struck like a seal, and a ring of gold dust spreads once */
.how-live .how-step.lit .how-med{animation:how-strike .55s var(--out)}
.how-live .how-step.lit .how-med::after{content:"";position:absolute;inset:-4px;border-radius:50%;border:2px solid var(--gold-3);opacity:0;animation:how-ring .8s var(--out)}
@keyframes how-strike{0%{transform:scale(1.16)}45%{transform:scale(.95)}100%{transform:none}}
@keyframes how-ring{0%{opacity:.75;transform:scale(.9)}100%{opacity:0;transform:scale(1.7)}}

.how-foot{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(18px,2.4vw,30px);max-width:1000px;margin:8px auto 0}
.how-note{position:relative;padding:24px 26px 26px;background:rgba(36,16,15,.34);border:1px solid rgba(231,200,119,.36)}
/* a ledger head: two ruled lines across the top of each slip */
.how-note::before{content:"";position:absolute;left:12px;right:12px;top:8px;height:3px;border-top:1px solid rgba(231,200,119,.5);border-bottom:1px solid rgba(231,200,119,.5)}
.how-note h3{font-size:clamp(28px,2.4vw,34px);color:var(--ivory);margin-top:8px}
.how-note h3 em{color:var(--gold-3)}
.how-note p{font-size:16.5px;line-height:1.55;color:var(--on-dark-2);margin-top:10px}

@media (max-width:820px){
  .how-path::before{left:30px}
  .how-step{grid-template-columns:60px minmax(0,1fr);column-gap:18px;align-items:start}
  .how-step+.how-step{margin-top:34px}
  .how-med{grid-column:1;width:60px;height:60px;box-shadow:0 0 0 5px rgba(111,29,17,.95),0 0 0 6px rgba(231,200,119,.28),0 8px 18px rgba(10,2,1,.45)}
  .how-med::before{inset:-10px}
  .how-med svg{width:34px;height:34px}
  .how-step:nth-of-type(odd) .how-txt,.how-step:nth-of-type(even) .how-txt{grid-column:2;text-align:left}
  .how-step:nth-of-type(odd) .how-txt p{margin-left:0}
  .how-txt h3{font-size:clamp(27px,7.6vw,32px)}
  .how-txt p{font-size:16px}
  .how-foot{grid-template-columns:minmax(0,1fr)}
  .how-note{padding:22px 20px 22px}
}
@media (prefers-reduced-motion:reduce){
  .how-live .how-step.lit .how-med,.how-live .how-step.lit .how-med::after{animation:none}
  .how-med,.how-med::before,.how-txt h3,.how-txt p,.how-tag{transition:none}
}
