/* Tone — top */

:root {
  --logo-w: clamp(220px, 23.125vw, 600px);
}

.tone--top { height: 100vh; overflow: hidden; }

/* Background (tone-loop.js) */
.top-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--paper);
}

.top-bg__canvas {
  width: 100%;
  height: 100%;
  max-width: none;
  opacity: 0;
  transition: opacity .8s;
}
.top-bg__canvas.is-ready { opacity: 1; }

/* Identity */
.top-identity {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-3.2vh);
  pointer-events: none;
}

.top-identity__logo { width: var(--logo-w); }
.top-identity__logo img { width: 100%; }

.top-identity__tagline {
  margin-top: calc(var(--logo-w) * .101);
  margin-right: -.245em; /* cancel trailing letter-spacing */
  transform: translateX(.45em); /* optical centering */
  font-size: max(11px, calc(var(--logo-w) * .045));
  letter-spacing: .245em;
  line-height: 1;
  white-space: nowrap;
}

/* Contact link */
.top-contact {
  position: fixed;
  z-index: 2;
  top: clamp(16px, 1.4vw, 40px);
  right: clamp(20px, 4.43vw, 110px);
  margin: -8px;
  padding: 8px;
  font-size: clamp(27px, 2.156vw, 52px);
  letter-spacing: .01em;
  line-height: 1;
  text-decoration: none;
  transition: opacity .3s;
}
.top-contact:hover { opacity: .6; }

/* Admin bar */
.admin-bar .top-contact { top: calc(32px + clamp(16px, 1.4vw, 40px)); }
@media (max-width: 782px) {
  .admin-bar .top-contact { top: calc(46px + 18px); }
}

/* Mobile */
@media (max-width: 600px) {
  :root { --logo-w: min(52vw, 230px); }

  .top-identity__tagline {
    margin-right: -.18em;
    font-size: 11px;
    letter-spacing: .18em;
  }

  .top-contact {
    top: 18px;
    right: 20px;
    margin: -12px;
    padding: 12px;
    font-size: 20px;
  }
}
