/* Header logo (shared by every page).
   The compact logo hangs from the header with its white/black split on the header's bottom line.
   On the home page on desktop, the square logo shows at the top of the page and shrinks into the
   compact one once you scroll (the header gets .at-top from a small script in index.html). */
.site-logo{position:relative;display:block;align-self:stretch;flex:none;width:160px;}
.site-logo img{position:absolute;display:block;max-width:none;}
/* 74px tall: its split sits 44.53px down, so the black band starts exactly where the header ends */
.site-logo .logo-compact{left:-4.76px;top:calc(100% - 44.53px);width:auto;height:74px;transition:opacity .25s ease;}
.site-logo .logo-square{display:none;}

@media (min-width:1024px){
  .home-header .site-logo .logo-square{
    display:block;left:-4.97px;top:8px;width:176px;height:176px;
    opacity:0;pointer-events:none;transform:scale(.42);transform-origin:top left;
    transition:opacity .25s ease,transform .25s ease;
  }
  .home-header.at-top .site-logo .logo-square{opacity:1;pointer-events:auto;transform:none;}
  .home-header.at-top .site-logo .logo-compact{opacity:0;}
}
/* short laptop screens: a smaller square keeps the hero copy clear of the slideshow dots */
@media (min-width:1024px) and (max-height:800px){
  .home-header .site-logo .logo-square{width:152px;height:152px;transform:scale(.49);}
  .home-header.at-top .site-logo .logo-square{transform:none;}
}

@media (max-width:860px){
  .site-logo{width:124px;}
  /* 56px tall: split 33.7px down; the phone header is 1px taller than its nav, hence -32.7px */
  .site-logo .logo-compact{left:-3.6px;top:calc(100% - 32.7px);height:56px;}
  /* the logo hangs about 22px below the header, so the open menu's first link starts below it */
  .mobile-menu a:first-child{padding-top:40px;}
}

@media (prefers-reduced-motion:reduce){
  .site-logo img{transition:none !important;}
}
