/* ==========================================================================
   intro.css · the opening: WOOD & WAY strung as eight beads
   Only loads on the home page. Delete the <link> and the <script> to remove.
   ========================================================================== */

#ww-intro{
  position:fixed; inset:0; z-index:9999;
  background:#e9e8e1;
  display:grid; place-items:center;
  overflow:hidden;
}
#ww-intro .ww-strand{
  position:relative;
  display:flex; align-items:center;
  gap:clamp(7px,.95vw,13px);
}
#ww-intro .ww-cord{
  position:absolute; left:-22vw; right:-22vw; top:50%;
  height:1px; background:rgba(27,33,30,.22);
  transform-origin:0% 50%;
}
#ww-intro .ww-bead{
  position:relative; z-index:1;
  display:grid; place-items:center;
  width:clamp(46px,5.2vw,76px); height:clamp(46px,5.2vw,76px);
  border-radius:50%;
  background:#9c6b3f;
  font-family:"Marcellus",Georgia,serif;
  font-weight:600; font-size:clamp(20px,2.3vw,33px); line-height:1;
}
#ww-intro .ww-bead:nth-of-type(2n){background:#a97b4c}
#ww-intro .ww-bead:nth-of-type(3n){background:#7d5330}
#ww-intro .ww-bead:nth-of-type(5n){background:#6a4728}
#ww-intro .ww-bead > span{color:inherit;display:block}
#ww-intro .ww-bead:nth-of-type(2n) > span{color:#a97b4c}
#ww-intro .ww-bead:nth-of-type(3n) > span{color:#7d5330}
#ww-intro .ww-bead:nth-of-type(5n) > span{color:#6a4728}
#ww-intro .ww-bead.ww-knot{
  background:#2f4a42;
  width:clamp(52px,5.8vw,84px); height:clamp(52px,5.8vw,84px);
  font-size:clamp(23px,2.7vw,38px);
}
#ww-intro .ww-bead.ww-knot > span{color:#2f4a42}

#ww-skip{
  position:fixed; right:clamp(14px,2.6vw,30px); bottom:clamp(14px,2.6vw,30px);
  z-index:10000;
  background:none;border:0;padding:8px;cursor:pointer;
  font-family:'Spectral',system-ui,sans-serif;font-size:13px;
  color:rgba(27,33,30,.62);
  border-bottom:1px solid rgba(27,33,30,.3);
}
#ww-skip:hover{color:#141a17}
#ww-skip:focus-visible{outline:2px solid #2f4a42;outline-offset:4px}

/* the hero lines are only masked while the intro is running */
.ww-h1 .line{display:block;overflow:hidden}
.ww-h1 .line > span{display:block}

@media (max-width:560px){
  #ww-intro .ww-bead{width:38px;height:38px;font-size:17px}
  #ww-intro .ww-bead.ww-knot{width:44px;height:44px;font-size:19px}
  #ww-intro .ww-strand{gap:5px}
}
