/* Header button to THE FOURTH (thefourth.art). A dark pill with a slowly turning spectral edge,
   colors sampled from the rings on that site. No pseudo elements, so the nav underline and menu rules stay out of it. */
.dnav a.fourth-btn{position:relative;isolation:isolate;display:inline-flex;align-items:center;gap:8px;min-height:0;padding:6px 14px 6px 9px!important;
  border-radius:999px;border:0!important;text-decoration:none;color:#f4f6ff!important;font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;line-height:1.2;
  white-space:nowrap;-webkit-tap-highlight-color:transparent;
  box-shadow:0 0 18px -4px rgba(96,120,255,.55),0 0 34px -10px rgba(255,120,170,.4);
  transition:box-shadow .35s ease,transform .35s cubic-bezier(.2,.7,.2,1)}
.dnav a.fourth-btn:after,.dnav a.fourth-btn:before{content:none!important;display:none!important}
.fourth-btn .fb-edge{position:absolute;inset:0;z-index:-1;border-radius:inherit;overflow:hidden;-webkit-mask-image:-webkit-radial-gradient(white,black);transform:translateZ(0)}
.fourth-btn .fb-spin{position:absolute;left:50%;top:50%;width:300px;height:300px;margin:-150px 0 0 -150px;
  background:conic-gradient(from 0deg,#5d6bff,#7fd8ff,#f4f6ff,#ffcf7a,#ff7aa8,#a27bff,#5d6bff);
  animation:fb-turn 4.5s linear infinite}
.fourth-btn .fb-fill{position:absolute;inset:1.5px;border-radius:inherit;background:radial-gradient(120% 140% at 20% 0%,#16183a 0%,#07070f 55%,#030305 100%)}
.fourth-btn .fb-sheen{position:absolute;top:0;bottom:0;left:-60%;width:45%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.22),transparent);transform:skewX(-20deg);
  animation:fb-sheen 5.5s ease-in-out infinite}
.fourth-btn .fb-glyph{width:18px;height:18px;flex:none;color:#cfe8ff;filter:drop-shadow(0 0 4px rgba(127,216,255,.8))}
.fourth-btn .fb-glyph svg{display:block;width:100%;height:100%;animation:fb-turn 9s linear infinite}
.fourth-btn .fb-label{background:linear-gradient(100deg,#f4f6ff 0%,#9fdcff 35%,#c8bcff 62%,#ffc0d6 85%,#ffe2b8 100%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
.fourth-btn .fb-arrow{display:inline-block;font-size:13px;color:#ffd59a;transition:transform .35s cubic-bezier(.2,.7,.2,1)}
.dnav a.fourth-btn:hover,.dnav a.fourth-btn:focus-visible{transform:translateY(-1px);box-shadow:0 0 24px -2px rgba(96,120,255,.8),0 0 46px -8px rgba(255,120,170,.6),0 0 70px -20px rgba(127,216,255,.7)}
.dnav a.fourth-btn:hover .fb-spin,.dnav a.fourth-btn:focus-visible .fb-spin{animation-duration:1.6s}
.dnav a.fourth-btn:hover .fb-arrow,.dnav a.fourth-btn:focus-visible .fb-arrow{transform:translate(2px,-2px)}
.dnav a.fourth-btn:focus-visible{outline:2px solid #7fd8ff;outline-offset:3px}
.dnav a.fourth-btn:active{transform:scale(.97)}
@keyframes fb-turn{to{transform:rotate(360deg)}}
@keyframes fb-sheen{0%,62%{left:-60%}100%{left:130%}}

/* phone bar: a round version next to Text me. The full button is in the open menu. */
.dnav a.fourth-btn-bar{display:none}
.fourth-btn .sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media(max-width:760px){
  .dnav a.fourth-btn-bar{display:inline-flex;justify-content:center;width:44px;min-height:44px;height:44px;padding:0!important;gap:0}
  .dnav a.fourth-btn-bar .fb-glyph{width:20px;height:20px}
  #site-menu.is-open ~ .nav-end .fourth-btn-bar{opacity:0;pointer-events:none}
  #site-menu.is-open a.fourth-btn{align-self:flex-start;margin-top:8px;font-size:12px!important;font-weight:600!important;letter-spacing:.14em!important;line-height:1.2!important;
    padding:12px 22px 12px 16px!important;min-height:44px;border:0!important;border-radius:999px!important;color:#f4f6ff!important;text-transform:uppercase}
}
@media(max-width:374px){.dnav a.fourth-btn-bar{width:36px;height:36px;min-height:36px;margin-right:-2px}.dnav a.fourth-btn-bar .fb-glyph{width:17px;height:17px}}
@media(max-width:345px){.dnav a.fourth-btn-bar{display:none}}
@media(min-width:761px) and (max-width:900px){.dnav nav a.fourth-btn{letter-spacing:.08em;padding:8px 12px 8px 9px!important;gap:7px}}
@media(prefers-reduced-motion:reduce){
  .fourth-btn .fb-spin,.fourth-btn .fb-glyph svg,.fourth-btn .fb-sheen{animation:none!important}
  .fourth-btn .fb-sheen{display:none}
  .dnav a.fourth-btn,.fourth-btn .fb-arrow{transition:none!important;transform:none!important}
}
