/* PSD layers share one canvas so every responsive size stays registered. */
.gate.logo-home {
  --paper: #fff;
  background: var(--paper);
  color: #111;
  overflow: auto;
  place-content: center;
  justify-items: center;
  gap: clamp(20px, 4vh, 44px);
  padding: 90px 24px 62px;
  cursor: default;
  font-family: var(--font-time);
}
body:has(.logo-home:not(.off)) #local-library-status { display: none; }
.home-meta {
  position: absolute; inset: 25px 32px auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 15px; border-bottom: 1px solid #dededb;
  font-size: 10px; letter-spacing: .17em; font-variant-numeric: tabular-nums;
}
.home-meta time { font-size: 13px; letter-spacing: .1em; }
.home-spec {
  position: absolute; left: 32px; bottom: 24px; margin: 0;
  color: #888; font-size: 10px; letter-spacing: .1em;
  font-variant-numeric: tabular-nums; pointer-events: none;
}
.logo-home.loading .home-spec, .logo-home.post-intro .home-spec { display: none; }
.home-sound {
  position: absolute; right: 32px; bottom: 20px;
  border: 0; background: none; padding: 8px 0 8px 12px;
  color: #777; font: 10px var(--font-time); letter-spacing: .1em;
  cursor: pointer;
}
.home-sound:focus-visible { outline: 1px solid #777; outline-offset: 4px; }
.logo-home.loading .home-sound, .logo-home.post-intro .home-sound { display: none; }
.gate .logo.layered-logo {
  position: relative; margin: 0; width: min(88vw, 1100px, 104vh);
  aspect-ratio: 16 / 9; animation: none;
  transform: none; filter: none;
}
.gate .logo.layered-logo::after { content: none; }
.gate .layered-logo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; mix-blend-mode: normal;
}
.layered-logo .logo-paper { z-index: 0; }
.layered-logo .logo-type { z-index: 1; animation: type-arrive 900ms cubic-bezier(.2,.7,.2,1) both; }
.layered-logo .logo-hand {
  z-index: 2; transform-origin: 42.421875% 70.601852%;
  transition: transform 200ms linear;
}
.home-copy { margin: 0; color: #666; font-size: clamp(11px, 1.7vw, 14px); letter-spacing: .2em; }
.logo-home .gate-go {
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  min-height: 55px; min-width: 250px; padding: 16px 28px;
  border: 1px solid #111; border-radius: 0; background: #111; color: #fff;
  font: 500 12px var(--font-time); letter-spacing: .16em;
  cursor: pointer; animation: none;
  transition: background .2s, color .2s, transform .2s;
}
.logo-home .gate-go:hover { background: #fff; color: #111; transform: translateY(-2px); }
.logo-home .gate-go:focus-visible { outline: 2px solid #e31b23; outline-offset: 5px; }
.logo-home.loading .gate-go { cursor: wait; opacity: .65; }
.logo-home .gate-progress { position: absolute; bottom: 25px; width: min(72vw,420px); }
.logo-home .gate-progress-track { background: #e5e5e3; }
.logo-home .gate-progress-fill { background: #e31b23; }
.logo-home .gate-progress-label { color: #666; }
.logo-home.post-intro { background: var(--bg); color: var(--ink); }
.logo-home.post-intro .home-meta, .logo-home.post-intro .home-copy { display: none; }
.logo-home.post-intro .gate-go { background: transparent; color: var(--ink); border-color: #555; }
.logo.logo-side img { mix-blend-mode: normal; }
@keyframes type-arrive { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hand-arrive { from { opacity: 0; transform: rotate(-12deg); } to { opacity: 1; transform: rotate(0); } }
@keyframes hand-tick { 0%, 100% { transform: rotate(0); } 22% { transform: rotate(2deg); } 60% { transform: rotate(-.5deg); } }
@media (max-width: 600px) {
  .gate.logo-home { padding: 80px 16px 55px; gap: 28px; }
  .home-meta { inset: 22px 20px auto; }
  .home-spec { left: 20px; bottom: 20px; }
  .home-sound { right: 20px; bottom: 16px; }
  .gate .logo.layered-logo { width: calc(100vw - 32px); }
  .logo-home .gate-go { min-width: 230px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .gate.logo-home { padding: 64px 20px 38px; gap: 13px; }
  .gate .logo.layered-logo { width: min(64vw, 85vh); }
  .home-meta { inset: 12px 24px auto; padding-bottom: 8px; }
  .logo-home .gate-go { min-height: 44px; padding: 10px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .layered-logo img, .layered-logo .logo-hand.is-ticking { animation: none !important; }
  .logo-home .gate-go, .layered-logo .logo-hand { transition: none; }
}
