/* Shared header: the horizon reveal, using the site's live theme colors. */
.logo.logo-motion { gap: 11px; min-height: 44px; }
.logo-motion .logo-mark-svg { width: 38px; height: 38px; overflow: visible; }
.logo-motion .logo-name { font-size: 17px; line-height: 1.2; letter-spacing: .035em; white-space: nowrap; }
.logo-motion .logo-line { display: block; overflow: hidden; padding-bottom: 2px; }
.logo-motion .logo-line > span { display: block; }
[data-site-logo] .logo-dot { color: var(--accent); }
.logo-motion:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

/* Static by default; animate only when motion is welcome. No JS required. */
@media (prefers-reduced-motion: no-preference) {
  .logo-motion .logo-stem {
    transform-origin: 24px 48px;
    animation: td-logo-stem 1s cubic-bezier(.16,1,.3,1) both;
  }
  .logo-motion .logo-ridge { animation: td-logo-ridge 1.2s .25s cubic-bezier(.16,1,.3,1) both; }
  .logo-motion .logo-peak { animation: td-logo-peak 1s .75s cubic-bezier(.16,1,.3,1) both; }
  .logo-motion .logo-line > span { animation: td-logo-word 1s .65s cubic-bezier(.16,1,.3,1) both; }
}
@keyframes td-logo-stem {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}
@keyframes td-logo-ridge {
  from { clip-path: inset(0 100% 0 0); transform: translateY(5px); }
  to { clip-path: inset(0); transform: translateY(0); }
}
@keyframes td-logo-peak {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes td-logo-word {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@media (max-width: 380px) {
  .logo.logo-motion { gap: 7px; }
  .logo-motion .logo-mark-svg { width: 28px; height: 28px; }
  .logo-motion .logo-name { font-size: 13px; }
}
