/* Daleema logo system. Link after daleema.css. Works with partials/emblem.html + partials/svg_defs.html.
   Contract: .emblem-line = outline (data-draw strokes, preloader only); .emblem-fill = filled gradient mark. */

/* default (header, footer, anywhere): filled mark only */
svg .emblem-line { display: none; }
svg .emblem-fill { opacity: 1; }
svg .emblem-fill path.emblem-d, svg .emblem-fill circle { stroke: none; }
svg .emblem-fill path.emblem-d { fill: url(#dl-grad) #e8b04b; }
svg .emblem-fill circle.emblem-sun { fill: #e2425c; }
svg .emblem-ridge { fill: none; stroke: #f6d58e; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: .22 1.3; stroke-dashoffset: 1.3; opacity: 0; }
.emblem-sun { transition: transform .6s cubic-bezier(.2, .8, .2, 1); transform-box: view-box; }

.brand__mark { width: 40px; height: 40px; overflow: visible; flex: none; }
.brand__mark .emblem-d { transition: filter .5s; }

/* hover: sun lifts, a thin light travels along the ridge */
@media (hover: hover) {
  .brand:hover .emblem-sun, .brand:focus-visible .emblem-sun { transform: translateY(-2.4px); }
  .brand:hover .emblem-ridge, .brand:focus-visible .emblem-ridge { animation: dl-ridge 1.1s cubic-bezier(.4, 0, .2, 1) 1; }
  .brand:hover .emblem-d { filter: drop-shadow(0 0 6px rgba(232, 176, 75, .28)); }
}
@keyframes dl-ridge {
  0% { opacity: 0; stroke-dashoffset: 1.3; }
  15% { opacity: .95; }
  85% { opacity: .95; }
  100% { opacity: 0; stroke-dashoffset: -.22; }
}

/* preloader: outline draws (JS animates stroke), then the gradient fill fades in */
.preloader__mark { overflow: visible; }
.preloader__mark .emblem-line { display: inline; }
.preloader__mark path.emblem-d, .preloader__mark .emblem-fill circle { fill: url(#dl-grad) #e8b04b; stroke: none; }
.preloader__mark .emblem-fill circle.emblem-sun { fill: #e2425c; }
.preloader__mark .emblem-fill path.emblem-ridge { fill: none; }
.preloader__mark .emblem-line path, .preloader__mark .emblem-line circle { fill: none; stroke: #e8b04b; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.preloader__mark .emblem-fill { opacity: 0; animation: dl-fill-in .8s ease-out 1.9s forwards; }
.preloader__mark .emblem-line { animation: dl-line-out .7s ease-out 2.4s forwards; }
.preloader__mark.is-filled .emblem-fill { opacity: 1; animation: none; }
.preloader__mark.is-filled .emblem-line { opacity: 0; animation: none; }
@keyframes dl-fill-in { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } }
@keyframes dl-line-out { to { opacity: 0; } }

/* page-transition curtain sits on gold: solid dark mark */
.curtain .emblem-line { display: none; }
.curtain .emblem-fill .emblem-d { fill: #1a1205; }
.curtain .emblem-fill .emblem-sun { fill: #1a1205; }
.curtain .emblem-ridge { display: none; }

/* inline lockup (partials/logo_full.html) */
.logo-full { display: block; height: 44px; width: auto; color: var(--text, #f2f4fa); }
.logo-full__word, .logo-full__group { transition: color .3s; }
.logo-full--dark { color: #05070f; }

@media (prefers-reduced-motion: reduce) {
  .emblem-sun, .brand__mark .emblem-d { transition: none; }
  .brand:hover .emblem-sun { transform: none; }
  .brand:hover .emblem-ridge { animation: none; opacity: 0; }
  .preloader__mark .emblem-fill { animation: none; opacity: 1; }
  .preloader__mark .emblem-line { animation: none; opacity: 0; }
}
